@cdklabs/cdk-ecs-codedeploy 0.0.421 → 0.0.423

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 (1732) hide show
  1. package/.jsii +4806 -80
  2. package/.jsii.tabl.json +1 -1
  3. package/API.md +96 -10
  4. package/lib/api-canary/index.js +1 -1
  5. package/lib/ecs-appspec/index.js +1 -1
  6. package/lib/ecs-deployment/index.js +1 -1
  7. package/lib/ecs-deployment-provider/is-complete-function.js +2 -2
  8. package/lib/ecs-deployment-provider/on-event-function.js +2 -2
  9. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  10. package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
  11. package/node_modules/@aws/lambda-invoke-store/README.md +198 -0
  12. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +119 -0
  13. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +117 -0
  14. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.benchmark.d.ts +1 -0
  15. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +49 -0
  16. package/node_modules/@aws/lambda-invoke-store/package.json +55 -0
  17. package/node_modules/@aws-sdk/client-codedeploy/README.md +1 -52
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +1 -1
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +4903 -6171
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.browser.js +3 -4
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +5 -8
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +8 -0
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +4 -2
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-es/auth/httpAuthSchemeProvider.js +3 -4
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +3 -9
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +3 -9
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +3 -9
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +3 -9
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +3 -9
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +3 -9
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +3 -9
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +3 -9
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +3 -9
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +3 -9
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +3 -9
  37. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +3 -9
  38. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +3 -9
  39. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +3 -9
  40. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +3 -9
  41. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +3 -9
  42. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +3 -9
  43. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +3 -9
  44. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +3 -9
  45. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +3 -9
  46. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +3 -9
  47. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +3 -9
  48. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +3 -9
  49. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +3 -9
  50. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +3 -9
  51. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +3 -9
  52. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +3 -9
  53. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +3 -9
  54. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +3 -9
  55. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +3 -9
  56. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +3 -9
  57. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +3 -9
  58. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +3 -9
  59. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +3 -9
  60. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +3 -9
  61. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +3 -9
  62. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  63. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +3 -9
  64. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +3 -9
  65. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +3 -9
  66. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +3 -9
  67. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +3 -9
  68. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +3 -9
  69. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +3 -9
  70. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +3 -9
  71. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +3 -9
  72. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +3 -9
  73. package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +1 -1
  74. package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +4 -1
  75. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/enums.js +221 -0
  76. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/errors.js +1321 -0
  77. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/models_0.js +1 -1542
  78. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.browser.js +3 -4
  79. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +6 -9
  80. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +8 -0
  81. package/node_modules/@aws-sdk/client-codedeploy/dist-es/schemas/schemas_0.js +2141 -0
  82. package/node_modules/@aws-sdk/client-codedeploy/dist-es/waiters/waitForDeploymentSuccessful.js +1 -1
  83. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +10 -10
  85. package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  86. package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -3
  87. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +5 -3
  88. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +5 -3
  89. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +5 -3
  90. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +5 -3
  91. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +5 -3
  92. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +5 -3
  93. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +5 -3
  94. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +5 -3
  95. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +5 -3
  96. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +5 -3
  97. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +5 -3
  98. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +5 -3
  99. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +5 -3
  100. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +5 -3
  101. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +5 -3
  102. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +5 -3
  103. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +5 -3
  104. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +5 -3
  105. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +5 -3
  106. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +5 -3
  107. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +5 -3
  108. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +5 -3
  109. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +5 -3
  110. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +5 -3
  111. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +5 -3
  112. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +5 -3
  113. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +5 -3
  114. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +5 -3
  115. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +5 -3
  116. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +5 -3
  117. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +5 -3
  118. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +5 -3
  119. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +5 -3
  120. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +5 -3
  121. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +5 -3
  122. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +5 -3
  123. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -3
  124. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +5 -3
  125. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +5 -3
  126. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +5 -3
  127. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +5 -3
  128. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +5 -3
  129. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +5 -3
  130. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +5 -3
  131. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +5 -3
  132. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +5 -3
  133. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +5 -3
  134. package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  135. package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/endpointResolver.d.ts +5 -2
  136. package/node_modules/@aws-sdk/client-codedeploy/dist-types/extensionConfiguration.d.ts +4 -4
  137. package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +4 -1
  138. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/CodeDeployServiceException.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/enums.d.ts +493 -0
  140. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/errors.d.ts +1395 -0
  141. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +116 -2003
  142. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/Interfaces.d.ts +1 -1
  143. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +1 -1
  144. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  145. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +1 -1
  146. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +1 -1
  147. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +1 -1
  148. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  149. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +7 -2
  150. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +8 -3
  151. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +7 -2
  152. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +7 -1
  153. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeExtensions.d.ts +1 -1
  154. package/node_modules/@aws-sdk/client-codedeploy/dist-types/schemas/schemas_0.d.ts +299 -0
  155. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +3 -3
  156. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  157. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +4 -1
  158. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/CodeDeployServiceException.d.ts +1 -1
  159. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/enums.d.ts +281 -0
  160. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/errors.d.ts +964 -0
  161. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +36 -1245
  162. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -1
  163. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +10 -4
  164. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -1
  165. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -0
  166. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/schemas/schemas_0.d.ts +303 -0
  167. package/node_modules/@aws-sdk/client-codedeploy/package.json +45 -42
  168. package/node_modules/@aws-sdk/client-sso/README.md +1 -9
  169. package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +27 -20
  170. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
  171. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +405 -610
  172. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +3 -4
  173. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +5 -8
  174. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +7 -0
  175. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +4 -2
  176. package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +27 -20
  177. package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
  178. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
  179. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
  180. package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
  181. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
  182. package/node_modules/@aws-sdk/client-sso/dist-es/index.js +3 -1
  183. package/node_modules/@aws-sdk/client-sso/dist-es/models/errors.js +49 -0
  184. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +1 -75
  185. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +3 -4
  186. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +6 -9
  187. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +7 -0
  188. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +152 -0
  189. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +1 -1
  190. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -10
  191. package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  192. package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -3
  193. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +5 -3
  194. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +5 -3
  195. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +5 -3
  196. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +5 -3
  197. package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  198. package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/endpointResolver.d.ts +5 -2
  199. package/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts +4 -4
  200. package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +3 -1
  201. package/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +1 -1
  202. package/node_modules/@aws-sdk/client-sso/dist-types/models/errors.d.ts +53 -0
  203. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -77
  204. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
  206. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
  207. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +7 -2
  208. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +7 -2
  209. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +7 -2
  210. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +8 -2
  211. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeExtensions.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +20 -0
  213. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +2 -2
  214. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +3 -1
  216. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts +1 -1
  217. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/errors.d.ts +30 -0
  218. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -48
  219. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -1
  220. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +9 -1
  221. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -1
  222. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -0
  223. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  224. package/node_modules/@aws-sdk/client-sso/package.json +41 -40
  225. package/node_modules/@aws-sdk/core/LICENSE +201 -0
  226. package/node_modules/@aws-sdk/core/dist-cjs/index.js +2201 -6
  227. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  228. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +36 -75
  229. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +281 -365
  230. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1803 -1666
  231. package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +3 -3
  232. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +9 -1
  233. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +122 -0
  234. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +23 -0
  235. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +49 -0
  236. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -1
  237. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  238. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +7 -1
  239. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +7 -1
  240. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +36 -44
  241. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +25 -61
  242. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +70 -37
  243. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +115 -61
  244. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +136 -0
  245. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +1 -1
  246. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +31 -42
  247. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +38 -8
  248. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +40 -0
  249. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +29 -73
  250. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +17 -13
  251. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +38 -21
  252. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
  253. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  254. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  255. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  256. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  257. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  258. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  259. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +61 -0
  260. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
  261. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +23 -0
  262. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
  263. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +10 -2
  264. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +10 -2
  265. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +13 -4
  266. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +17 -2
  267. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +2 -2
  268. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +3 -3
  269. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +19 -6
  270. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
  271. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
  272. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
  273. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +10 -3
  274. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  275. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
  276. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  277. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +11 -3
  278. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  279. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
  280. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  281. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +47 -0
  282. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -0
  283. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +33 -0
  284. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  285. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +13 -1
  286. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +13 -1
  287. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +15 -2
  288. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -0
  289. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  290. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +10 -3
  291. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
  292. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -1
  293. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  294. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +4 -1
  295. package/node_modules/@aws-sdk/core/package.json +18 -20
  296. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  297. package/node_modules/@aws-sdk/credential-provider-env/package.json +9 -8
  298. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +4 -2
  299. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +4 -2
  300. package/node_modules/@aws-sdk/credential-provider-http/package.json +14 -13
  301. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +207 -259
  302. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +3 -10
  303. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -4
  304. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js +12 -0
  305. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +8 -4
  306. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +4 -2
  307. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +4 -2
  308. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +6 -6
  309. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +4 -3
  310. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveLoginCredentials.d.ts +11 -0
  311. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +6 -1
  312. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -1
  313. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -1
  314. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -4
  315. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +5 -1
  316. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveLoginCredentials.d.ts +9 -0
  317. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +3 -0
  318. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +3 -1
  319. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +3 -1
  320. package/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -18
  321. package/node_modules/@aws-sdk/credential-provider-login/README.md +7 -0
  322. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
  323. package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +262 -0
  324. package/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js +21 -0
  325. package/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js +2 -0
  326. package/node_modules/@aws-sdk/credential-provider-login/dist-es/types.js +1 -0
  327. package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +42 -0
  328. package/node_modules/@aws-sdk/credential-provider-login/dist-types/fromLoginCredentials.d.ts +7 -0
  329. package/node_modules/@aws-sdk/credential-provider-login/dist-types/index.d.ts +8 -0
  330. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +24 -0
  331. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/fromLoginCredentials.d.ts +5 -0
  332. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/index.d.ts +2 -0
  333. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/types.d.ts +39 -0
  334. package/node_modules/@aws-sdk/credential-provider-login/dist-types/types.d.ts +59 -0
  335. package/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
  336. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +127 -124
  337. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +55 -44
  338. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +54 -0
  339. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +3 -2
  340. package/node_modules/@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain.d.ts +18 -0
  341. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +3 -2
  342. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +19 -0
  343. package/node_modules/@aws-sdk/credential-provider-node/package.json +20 -18
  344. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -106
  345. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -1
  346. package/node_modules/@aws-sdk/credential-provider-process/package.json +10 -9
  347. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +179 -233
  348. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  349. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +10 -0
  350. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -3
  351. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -1
  352. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  353. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +2 -0
  354. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +4 -0
  355. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -11
  356. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -3
  357. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  358. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +5 -3
  359. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +2 -3
  360. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +5 -3
  361. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +11 -9
  362. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  363. package/node_modules/@aws-sdk/middleware-host-header/package.json +10 -9
  364. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  365. package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +1 -1
  366. package/node_modules/@aws-sdk/middleware-logger/package.json +9 -8
  367. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +20 -67
  368. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +33 -0
  369. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
  370. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
  371. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
  372. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
  373. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
  374. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +29 -0
  375. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
  376. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
  377. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
  378. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
  379. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
  380. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
  381. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
  382. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
  383. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
  384. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
  385. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
  386. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
  387. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
  388. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +16 -10
  389. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  390. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +2 -2
  391. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +1 -1
  392. package/node_modules/@aws-sdk/middleware-user-agent/package.json +13 -12
  393. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  394. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
  395. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
  396. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
  397. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +344 -0
  398. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
  399. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
  400. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
  401. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +47 -0
  402. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  403. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +481 -854
  404. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +2 -2
  405. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +3 -4
  406. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +7 -0
  407. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -0
  408. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +1 -1
  409. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +460 -931
  410. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.browser.js +2 -2
  411. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +3 -4
  412. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +8 -0
  413. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +9 -0
  414. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +50 -0
  415. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
  416. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
  417. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
  418. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
  419. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
  420. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
  421. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
  422. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/extensionConfiguration.js +1 -0
  423. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +8 -0
  424. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
  425. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +8 -0
  426. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +57 -0
  427. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js +1 -0
  428. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
  429. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +48 -0
  430. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
  431. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +43 -0
  432. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js +9 -0
  433. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +114 -0
  434. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +4 -2
  435. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
  436. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  437. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +4 -1
  438. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js +9 -0
  439. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +181 -0
  440. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +1 -190
  441. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +2 -2
  442. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -5
  443. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +7 -0
  444. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +133 -0
  445. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +4 -2
  446. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +3 -10
  447. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +3 -10
  448. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +22 -10
  449. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +1 -1
  450. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +3 -1
  451. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +85 -0
  452. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js +1 -102
  453. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +2 -2
  454. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +4 -5
  455. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -0
  456. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +186 -0
  457. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +18 -0
  458. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +189 -0
  459. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  460. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
  461. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
  462. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
  463. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +50 -0
  464. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
  465. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
  466. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
  467. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +17 -0
  468. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
  469. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +34 -0
  470. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +102 -0
  471. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +142 -0
  472. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +63 -0
  473. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +63 -0
  474. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +62 -0
  475. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +38 -0
  476. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
  477. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +12 -0
  478. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +2 -2
  479. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +11 -11
  480. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  481. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +3 -3
  482. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +5 -3
  483. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +13 -1
  484. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/endpointResolver.d.ts +5 -2
  485. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +4 -4
  486. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +5 -2
  487. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
  488. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/enums.d.ts +25 -0
  489. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +279 -0
  490. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +1 -279
  491. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +7 -2
  492. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +7 -2
  493. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +7 -2
  494. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +8 -2
  495. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
  496. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +16 -0
  497. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +1 -1
  498. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +10 -10
  499. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  500. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
  501. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +8 -7
  502. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +10 -8
  503. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  504. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +13 -1
  505. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/endpointResolver.d.ts +5 -2
  506. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/extensionConfiguration.d.ts +4 -4
  507. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +3 -1
  508. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -1
  509. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +107 -0
  510. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +7 -131
  511. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +7 -2
  512. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +8 -3
  513. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +7 -2
  514. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +8 -2
  515. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeExtensions.d.ts +1 -1
  516. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +20 -0
  517. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
  518. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +123 -0
  519. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  520. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
  521. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
  522. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  523. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
  524. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
  525. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
  526. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
  527. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +11 -0
  528. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
  529. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
  530. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
  531. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
  532. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +125 -0
  533. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +118 -0
  534. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +129 -0
  535. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +58 -0
  536. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
  537. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +16 -0
  538. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -2
  539. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  540. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +4 -1
  541. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
  542. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/enums.d.ts +13 -0
  543. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +105 -0
  544. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -105
  545. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +9 -1
  546. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +9 -1
  547. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +9 -1
  548. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +9 -0
  549. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +20 -0
  550. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +3 -3
  551. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  552. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
  553. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  554. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +3 -1
  555. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -1
  556. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +54 -0
  557. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +0 -64
  558. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +9 -1
  559. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +9 -1
  560. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +9 -1
  561. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +9 -0
  562. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +24 -0
  563. package/node_modules/@aws-sdk/nested-clients/package.json +51 -39
  564. package/node_modules/@aws-sdk/nested-clients/signin.d.ts +7 -0
  565. package/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
  566. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +44 -100
  567. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
  568. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +6 -0
  569. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +2 -1
  570. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +2 -0
  571. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.browser.js +3 -0
  572. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.js +16 -0
  573. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.native.js +3 -0
  574. package/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +2 -2
  575. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +2 -1
  576. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/awsRegionConfig.d.ts +15 -0
  577. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.browser.d.ts +4 -0
  578. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.d.ts +14 -0
  579. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.native.d.ts +4 -0
  580. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +2 -1
  581. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/awsRegionConfig.d.ts +11 -0
  582. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.browser.d.ts +1 -0
  583. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.d.ts +7 -0
  584. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.native.d.ts +1 -0
  585. package/node_modules/@aws-sdk/region-config-resolver/package.json +14 -11
  586. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +143 -223
  587. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +2 -9
  588. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +2 -2
  589. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +4 -2
  590. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +1 -1
  591. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +3 -2
  592. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
  593. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +1 -1
  594. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +3 -1
  595. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +3 -1
  596. package/node_modules/@aws-sdk/token-providers/package.json +14 -12
  597. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  598. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -0
  599. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +2 -0
  600. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
  601. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +2 -0
  602. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +2 -0
  603. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
  604. package/node_modules/@aws-sdk/types/package.json +6 -5
  605. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +398 -466
  606. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +43 -37
  607. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +43 -37
  608. package/node_modules/@aws-sdk/util-endpoints/package.json +11 -11
  609. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +10 -38
  610. package/node_modules/@aws-sdk/util-locate-window/package.json +5 -4
  611. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
  612. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
  613. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
  614. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
  615. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
  616. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
  617. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
  618. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
  619. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
  620. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
  621. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -6
  622. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  623. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
  624. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
  625. package/node_modules/@aws-sdk/util-user-agent-node/package.json +9 -8
  626. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -155
  627. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
  628. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
  629. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +57 -0
  630. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
  631. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
  632. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
  633. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
  634. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
  635. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
  636. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
  637. package/node_modules/@aws-sdk/xml-builder/package.json +14 -5
  638. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
  639. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
  640. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
  641. package/node_modules/@smithy/abort-controller/package.json +3 -2
  642. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +172 -214
  643. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js +15 -0
  644. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +5 -5
  645. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +1 -1
  646. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +1 -1
  647. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +2 -2
  648. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +1 -1
  649. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +1 -1
  650. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/checkRegion.d.ts +9 -0
  651. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +1 -1
  652. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +1 -1
  653. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +1 -1
  654. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +1 -1
  655. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +1 -1
  656. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +1 -1
  657. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +3 -3
  658. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +1 -1
  659. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/checkRegion.d.ts +9 -0
  660. package/node_modules/@smithy/config-resolver/package.json +7 -5
  661. package/node_modules/@smithy/core/dist-cjs/index.js +308 -413
  662. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1013 -939
  663. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +251 -0
  664. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +811 -799
  665. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +585 -807
  666. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +662 -720
  667. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  668. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
  669. package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +0 -1
  670. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +113 -54
  671. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +41 -19
  672. package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +35 -1
  673. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
  674. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
  675. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
  676. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +246 -0
  677. package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +1 -0
  678. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +106 -18
  679. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +55 -101
  680. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +38 -12
  681. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  682. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +2 -0
  683. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
  684. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +23 -21
  685. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +5 -1
  686. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
  687. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +16 -12
  688. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  689. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +27 -11
  690. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
  691. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +6 -1
  692. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
  693. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -24
  694. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +11 -22
  695. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +13 -23
  696. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +149 -195
  697. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +13 -13
  698. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +17 -3
  699. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +17 -22
  700. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +13 -29
  701. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  702. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
  703. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  704. package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -53
  705. package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +2 -0
  706. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
  707. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +101 -0
  708. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +6 -24
  709. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
  710. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
  711. package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +1 -1
  712. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  713. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +2 -2
  714. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +2 -2
  715. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +1 -1
  716. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +1 -1
  717. package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +1 -1
  718. package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +1 -1
  719. package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +1 -1
  720. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +18 -14
  721. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +3 -3
  722. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +1 -1
  723. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -1
  724. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +1 -1
  725. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +2 -2
  726. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +60 -0
  727. package/node_modules/@smithy/core/dist-types/submodules/event-streams/index.d.ts +1 -0
  728. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +14 -2
  729. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +48 -5
  730. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +2 -2
  731. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +16 -0
  732. package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
  733. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +2 -0
  734. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +4 -5
  735. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +7 -4
  736. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +6 -3
  737. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +4 -5
  738. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +2 -2
  739. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +15 -6
  740. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
  741. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +2 -2
  742. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +2 -2
  743. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +2 -2
  744. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +11 -15
  745. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +6 -6
  746. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +6 -10
  747. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +38 -30
  748. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +6 -3
  749. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +7 -2
  750. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +12 -7
  751. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +6 -7
  752. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  753. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +4 -2
  754. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  755. package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +2 -1
  756. package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +2 -0
  757. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
  758. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  759. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  760. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +18 -14
  761. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +3 -3
  762. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +1 -1
  763. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +1 -1
  764. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
  765. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +1 -0
  766. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +14 -2
  767. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +48 -5
  768. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  769. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +16 -0
  770. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
  771. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +4 -5
  772. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +6 -3
  773. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +6 -3
  774. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +4 -5
  775. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +1 -1
  776. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +14 -5
  777. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
  778. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +11 -15
  779. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +6 -6
  780. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +6 -10
  781. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +38 -30
  782. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +6 -3
  783. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +7 -2
  784. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +11 -6
  785. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +6 -10
  786. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  787. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +3 -1
  788. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  789. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -0
  790. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +2 -0
  791. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +2 -0
  792. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  793. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +1 -1
  794. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +1 -1
  795. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +1 -1
  796. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +1 -1
  797. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +1 -1
  798. package/node_modules/@smithy/core/event-streams.d.ts +7 -0
  799. package/node_modules/@smithy/core/event-streams.js +6 -0
  800. package/node_modules/@smithy/core/package.json +24 -11
  801. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -413
  802. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
  803. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +1 -1
  804. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +1 -1
  805. package/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +2 -2
  806. package/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +3 -3
  807. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -1
  808. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +1 -1
  809. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  810. package/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +1 -1
  811. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +2 -2
  812. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +1 -1
  813. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +2 -2
  814. package/node_modules/@smithy/credential-provider-imds/package.json +6 -5
  815. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
  816. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
  817. package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +1 -1
  818. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +3 -2
  819. package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +1 -1
  820. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -1
  821. package/node_modules/@smithy/fetch-http-handler/package.json +9 -8
  822. package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
  823. package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
  824. package/node_modules/@smithy/hash-node/dist-types/index.d.ts +1 -1
  825. package/node_modules/@smithy/hash-node/package.json +5 -4
  826. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
  827. package/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +1 -1
  828. package/node_modules/@smithy/invalid-dependency/package.json +3 -2
  829. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
  830. package/node_modules/@smithy/is-array-buffer/package.json +5 -4
  831. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
  832. package/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +1 -1
  833. package/node_modules/@smithy/middleware-content-length/package.json +6 -5
  834. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
  835. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +226 -276
  836. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +10 -2
  837. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +1 -1
  838. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts +2 -1
  839. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +3 -3
  840. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +1 -1
  841. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -1
  842. package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +3 -3
  843. package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +3 -3
  844. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +1 -1
  845. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +1 -1
  846. package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +1 -1
  847. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +2 -1
  848. package/node_modules/@smithy/middleware-endpoint/package.json +10 -9
  849. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -394
  850. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
  851. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
  852. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
  853. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +6 -2
  854. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
  855. package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +4 -3
  856. package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +2 -2
  857. package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +2 -2
  858. package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +1 -1
  859. package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +1 -1
  860. package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +1 -1
  861. package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +2 -2
  862. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +2 -1
  863. package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +1 -1
  864. package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +1 -1
  865. package/node_modules/@smithy/middleware-retry/package.json +14 -14
  866. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +92 -118
  867. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +3 -0
  868. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -1
  869. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +1 -1
  870. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -1
  871. package/node_modules/@smithy/middleware-serde/package.json +6 -5
  872. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -302
  873. package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +1 -1
  874. package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +1 -1
  875. package/node_modules/@smithy/middleware-stack/package.json +3 -2
  876. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
  877. package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +4 -4
  878. package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +1 -1
  879. package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
  880. package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +1 -1
  881. package/node_modules/@smithy/node-config-provider/package.json +5 -4
  882. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +694 -770
  883. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +30 -16
  884. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
  885. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
  886. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
  887. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
  888. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  889. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  890. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  891. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
  892. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
  893. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +4 -4
  894. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +2 -2
  895. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -3
  896. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +4 -4
  897. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +2 -2
  898. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +3 -2
  899. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -1
  900. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +4 -4
  901. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  902. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  903. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  904. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  905. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +1 -1
  906. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -1
  907. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -3
  908. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -1
  909. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -1
  910. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  911. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -1
  912. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
  913. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +5 -4
  914. package/node_modules/@smithy/node-http-handler/package.json +6 -5
  915. package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
  916. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
  917. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
  918. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
  919. package/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +2 -1
  920. package/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +1 -1
  921. package/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +2 -1
  922. package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
  923. package/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +1 -1
  924. package/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +1 -1
  925. package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +2 -1
  926. package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +2 -1
  927. package/node_modules/@smithy/property-provider/package.json +3 -2
  928. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -247
  929. package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
  930. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
  931. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
  932. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
  933. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +2 -1
  934. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +2 -2
  935. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +1 -1
  936. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +2 -1
  937. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +1 -1
  938. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +2 -1
  939. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +2 -1
  940. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +1 -1
  941. package/node_modules/@smithy/protocol-http/package.json +3 -2
  942. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
  943. package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +1 -1
  944. package/node_modules/@smithy/querystring-builder/package.json +4 -3
  945. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
  946. package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +1 -1
  947. package/node_modules/@smithy/querystring-parser/package.json +3 -2
  948. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
  949. package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -2
  950. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
  951. package/node_modules/@smithy/service-error-classification/package.json +3 -2
  952. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +7 -4
  953. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +177 -189
  954. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  955. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  956. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  957. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  958. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +5 -2
  959. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +3 -1
  960. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +4 -4
  961. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
  962. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  963. package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  964. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  965. package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  966. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +1 -1
  967. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +7 -1
  968. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +1 -1
  969. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +3 -1
  970. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +2 -5
  971. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +1 -1
  972. package/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +1 -1
  973. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +1 -1
  974. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +2 -2
  975. package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  976. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  977. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  978. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +7 -1
  979. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +3 -1
  980. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  981. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
  982. package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +1 -1
  983. package/node_modules/@smithy/shared-ini-file-loader/package.json +6 -5
  984. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -651
  985. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
  986. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
  987. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
  988. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -2
  989. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +1 -1
  990. package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +1 -1
  991. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
  992. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
  993. package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
  994. package/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts +1 -1
  995. package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +1 -1
  996. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +2 -1
  997. package/node_modules/@smithy/signature-v4/package.json +9 -8
  998. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +563 -714
  999. package/node_modules/@smithy/smithy-client/dist-es/client.js +10 -1
  1000. package/node_modules/@smithy/smithy-client/dist-es/command.js +23 -20
  1001. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
  1002. package/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js +34 -0
  1003. package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +1 -1
  1004. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +33 -7
  1005. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  1006. package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +1 -1
  1007. package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +1 -1
  1008. package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
  1009. package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +1 -1
  1010. package/node_modules/@smithy/smithy-client/dist-types/schemaLogFilter.d.ts +9 -0
  1011. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +33 -7
  1012. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  1013. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +9 -0
  1014. package/node_modules/@smithy/smithy-client/package.json +9 -8
  1015. package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
  1016. package/node_modules/@smithy/types/dist-es/index.js +3 -0
  1017. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  1018. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  1019. package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +4 -4
  1020. package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +2 -2
  1021. package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +2 -2
  1022. package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +2 -2
  1023. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +1 -1
  1024. package/node_modules/@smithy/types/dist-types/checksum.d.ts +1 -1
  1025. package/node_modules/@smithy/types/dist-types/client.d.ts +4 -4
  1026. package/node_modules/@smithy/types/dist-types/command.d.ts +2 -2
  1027. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +2 -2
  1028. package/node_modules/@smithy/types/dist-types/encode.d.ts +1 -1
  1029. package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
  1030. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +2 -2
  1031. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +1 -1
  1032. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
  1033. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +3 -3
  1034. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +1 -1
  1035. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +3 -3
  1036. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +2 -2
  1037. package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +1 -1
  1038. package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
  1039. package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +2 -2
  1040. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +19 -12
  1041. package/node_modules/@smithy/types/dist-types/http.d.ts +2 -2
  1042. package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +1 -1
  1043. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +1 -1
  1044. package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +1 -1
  1045. package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
  1046. package/node_modules/@smithy/types/dist-types/retry.d.ts +1 -1
  1047. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +143 -0
  1048. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +33 -58
  1049. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +97 -0
  1050. package/node_modules/@smithy/types/dist-types/serde.d.ts +5 -5
  1051. package/node_modules/@smithy/types/dist-types/shapes.d.ts +2 -2
  1052. package/node_modules/@smithy/types/dist-types/signature.d.ts +2 -2
  1053. package/node_modules/@smithy/types/dist-types/stream.d.ts +3 -3
  1054. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  1055. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
  1056. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +149 -0
  1057. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +37 -62
  1058. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +116 -0
  1059. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  1060. package/node_modules/@smithy/types/dist-types/uri.d.ts +1 -1
  1061. package/node_modules/@smithy/types/dist-types/util.d.ts +3 -3
  1062. package/node_modules/@smithy/types/dist-types/waiter.d.ts +1 -1
  1063. package/node_modules/@smithy/types/package.json +2 -1
  1064. package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
  1065. package/node_modules/@smithy/url-parser/dist-types/index.d.ts +1 -1
  1066. package/node_modules/@smithy/url-parser/package.json +4 -3
  1067. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  1068. package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
  1069. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +1 -2
  1070. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  1071. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  1072. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  1073. package/node_modules/@smithy/util-base64/package.json +7 -6
  1074. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -53
  1075. package/node_modules/@smithy/util-body-length-browser/package.json +5 -4
  1076. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +29 -50
  1077. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  1078. package/node_modules/@smithy/util-body-length-node/package.json +5 -4
  1079. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
  1080. package/node_modules/@smithy/util-buffer-from/package.json +6 -5
  1081. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -60
  1082. package/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +1 -1
  1083. package/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +1 -1
  1084. package/node_modules/@smithy/util-config-provider/package.json +5 -4
  1085. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
  1086. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +13 -12
  1087. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
  1088. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  1089. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
  1090. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
  1091. package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +1 -1
  1092. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -8
  1093. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +435 -507
  1094. package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
  1095. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  1096. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  1097. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  1098. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  1099. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  1100. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  1101. package/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts +3 -3
  1102. package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +1 -1
  1103. package/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
  1104. package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +2 -2
  1105. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  1106. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  1107. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  1108. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  1109. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  1110. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  1111. package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +1 -1
  1112. package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -1
  1113. package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -1
  1114. package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -1
  1115. package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -1
  1116. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +1 -1
  1117. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  1118. package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +1 -1
  1119. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +1 -1
  1120. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +1 -1
  1121. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +2 -2
  1122. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +1 -1
  1123. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  1124. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +7 -2
  1125. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +1 -1
  1126. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  1127. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  1128. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +7 -1
  1129. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  1130. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +1 -1
  1131. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +1 -1
  1132. package/node_modules/@smithy/util-endpoints/package.json +6 -5
  1133. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
  1134. package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
  1135. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -41
  1136. package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +1 -1
  1137. package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +1 -1
  1138. package/node_modules/@smithy/util-middleware/package.json +3 -2
  1139. package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
  1140. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
  1141. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
  1142. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
  1143. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
  1144. package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
  1145. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +1 -1
  1146. package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
  1147. package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +1 -1
  1148. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
  1149. package/node_modules/@smithy/util-retry/package.json +7 -4
  1150. package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
  1151. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
  1152. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
  1153. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  1154. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
  1155. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  1156. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
  1157. package/node_modules/@smithy/util-stream/dist-cjs/index.js +78 -97
  1158. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
  1159. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  1160. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
  1161. package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
  1162. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
  1163. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
  1164. package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
  1165. package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
  1166. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  1167. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +1 -1
  1168. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +3 -2
  1169. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +1 -1
  1170. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +3 -3
  1171. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +1 -1
  1172. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +1 -1
  1173. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
  1174. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +1 -1
  1175. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
  1176. package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
  1177. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  1178. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +2 -1
  1179. package/node_modules/@smithy/util-stream/package.json +13 -12
  1180. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
  1181. package/node_modules/@smithy/util-uri-escape/package.json +5 -4
  1182. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
  1183. package/node_modules/@smithy/util-utf8/package.json +6 -5
  1184. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +164 -189
  1185. package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
  1186. package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
  1187. package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
  1188. package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
  1189. package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
  1190. package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +2 -2
  1191. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
  1192. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
  1193. package/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts +1 -1
  1194. package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +1 -1
  1195. package/node_modules/@smithy/util-waiter/package.json +4 -3
  1196. package/node_modules/@smithy/uuid/LICENSE +201 -0
  1197. package/node_modules/@smithy/uuid/README.md +10 -0
  1198. package/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
  1199. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
  1200. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
  1201. package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
  1202. package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
  1203. package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
  1204. package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
  1205. package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
  1206. package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
  1207. package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
  1208. package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
  1209. package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
  1210. package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
  1211. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
  1212. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
  1213. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
  1214. package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
  1215. package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
  1216. package/node_modules/@smithy/uuid/package.json +66 -0
  1217. package/node_modules/bowser/CHANGELOG.md +1 -1
  1218. package/node_modules/bowser/README.md +2 -4
  1219. package/node_modules/bowser/bundled.js +1 -1
  1220. package/node_modules/bowser/es5.js +1 -1
  1221. package/node_modules/bowser/index.d.ts +71 -6
  1222. package/node_modules/bowser/package.json +8 -3
  1223. package/node_modules/bowser/src/constants.js +71 -18
  1224. package/node_modules/bowser/src/parser-browsers.js +394 -0
  1225. package/node_modules/bowser/src/parser-os.js +12 -0
  1226. package/node_modules/bowser/src/parser-platforms.js +259 -1
  1227. package/node_modules/bowser/src/parser.js +20 -5
  1228. package/node_modules/bowser/src/utils.js +33 -15
  1229. package/node_modules/strnum/README.md +6 -0
  1230. package/node_modules/strnum/package.json +1 -1
  1231. package/node_modules/strnum/strnum.js +1 -1
  1232. package/package.json +12 -12
  1233. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/index.js +0 -1
  1234. package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +0 -2614
  1235. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/index.d.ts +0 -1
  1236. package/node_modules/@aws-sdk/client-codedeploy/dist-types/protocols/Aws_json1_1.d.ts +0 -425
  1237. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/index.d.ts +0 -1
  1238. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -569
  1239. package/node_modules/@aws-sdk/client-sso/dist-es/models/index.js +0 -1
  1240. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
  1241. package/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts +0 -1
  1242. package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  1243. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts +0 -1
  1244. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
  1245. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js +0 -1
  1246. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -255
  1247. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js +0 -1
  1248. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js +0 -528
  1249. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/index.d.ts +0 -1
  1250. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
  1251. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/index.d.ts +0 -1
  1252. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/protocols/Aws_query.d.ts +0 -20
  1253. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/index.d.ts +0 -1
  1254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
  1255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/index.d.ts +0 -1
  1256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +0 -29
  1257. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +0 -12
  1258. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +0 -6
  1259. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +0 -2
  1260. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +0 -1
  1261. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +0 -24
  1262. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +0 -17
  1263. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +0 -4
  1264. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +0 -8
  1265. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +0 -4
  1266. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +0 -37
  1267. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +0 -8
  1268. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +0 -1
  1269. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +0 -2
  1270. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +0 -1
  1271. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +0 -14
  1272. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  1273. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  1274. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
  1275. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
  1276. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
  1277. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
  1278. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
  1279. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
  1280. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
  1281. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
  1282. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
  1283. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
  1284. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
  1285. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
  1286. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
  1287. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
  1288. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
  1289. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
  1290. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
  1291. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
  1292. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
  1293. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
  1294. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
  1295. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -1
  1296. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -1
  1297. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -1
  1298. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
  1299. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -1
  1300. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -1
  1301. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -1
  1302. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -1
  1303. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -1
  1304. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -1
  1305. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -1
  1306. package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +0 -1
  1307. package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -1
  1308. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -1
  1309. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -1
  1310. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -1
  1311. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -1
  1312. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -1
  1313. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -1
  1314. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -1
  1315. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
  1316. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
  1317. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
  1318. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
  1319. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
  1320. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
  1321. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
  1322. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
  1323. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
  1324. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
  1325. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
  1326. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
  1327. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
  1328. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
  1329. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
  1330. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
  1331. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
  1332. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
  1333. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
  1334. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
  1335. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
  1336. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
  1337. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +0 -1
  1338. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +0 -1
  1339. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +0 -1
  1340. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +0 -1
  1341. package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +0 -1
  1342. package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +0 -1
  1343. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +0 -1
  1344. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +0 -1
  1345. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +0 -1
  1346. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +0 -1
  1347. package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +0 -1
  1348. package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  1349. package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  1350. package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +0 -1
  1351. package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +0 -1
  1352. package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +0 -1
  1353. package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +0 -1
  1354. package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +0 -1
  1355. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +0 -1
  1356. package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +0 -1
  1357. package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +0 -1
  1358. package/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +0 -274
  1359. package/node_modules/@smithy/middleware-retry/node_modules/uuid/CONTRIBUTING.md +0 -18
  1360. package/node_modules/@smithy/middleware-retry/node_modules/uuid/LICENSE.md +0 -9
  1361. package/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +0 -466
  1362. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/bin/uuid +0 -2
  1363. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  1364. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  1365. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  1366. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  1367. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  1368. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  1369. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  1370. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  1371. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  1372. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  1373. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  1374. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  1375. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  1376. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  1377. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  1378. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  1379. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/index.js +0 -9
  1380. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  1381. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/native.js +0 -4
  1382. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  1383. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  1384. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  1385. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  1386. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  1387. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  1388. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  1389. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  1390. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  1391. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  1392. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  1393. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  1394. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +0 -11
  1395. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/index.js +0 -9
  1396. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/md5.js +0 -13
  1397. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/native.js +0 -4
  1398. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/nil.js +0 -1
  1399. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/parse.js +0 -35
  1400. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/regex.js +0 -1
  1401. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/rng.js +0 -12
  1402. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  1403. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  1404. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +0 -95
  1405. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v3.js +0 -4
  1406. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +0 -66
  1407. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +0 -29
  1408. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v5.js +0 -4
  1409. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/validate.js +0 -7
  1410. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +0 -11
  1411. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +0 -79
  1412. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5-browser.js +0 -223
  1413. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5.js +0 -23
  1414. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native-browser.js +0 -11
  1415. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native.js +0 -15
  1416. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/nil.js +0 -8
  1417. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/parse.js +0 -45
  1418. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/regex.js +0 -8
  1419. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +0 -25
  1420. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng.js +0 -24
  1421. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1-browser.js +0 -104
  1422. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1.js +0 -23
  1423. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +0 -44
  1424. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/uuid-bin.js +0 -85
  1425. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +0 -107
  1426. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v3.js +0 -16
  1427. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +0 -80
  1428. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +0 -43
  1429. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v5.js +0 -16
  1430. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/validate.js +0 -17
  1431. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +0 -21
  1432. package/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +0 -135
  1433. package/node_modules/@smithy/middleware-retry/node_modules/uuid/wrapper.mjs +0 -10
  1434. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
  1435. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
  1436. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
  1437. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
  1438. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
  1439. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
  1440. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
  1441. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
  1442. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
  1443. package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
  1444. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  1445. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  1446. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  1447. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  1448. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  1449. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  1450. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  1451. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  1452. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  1453. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  1454. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  1455. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  1456. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  1457. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  1458. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  1459. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  1460. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
  1461. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
  1462. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
  1463. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
  1464. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
  1465. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
  1466. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
  1467. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
  1468. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
  1469. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
  1470. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
  1471. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
  1472. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
  1473. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
  1474. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
  1475. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
  1476. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
  1477. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
  1478. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
  1479. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
  1480. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
  1481. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
  1482. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
  1483. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
  1484. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
  1485. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
  1486. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
  1487. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
  1488. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
  1489. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
  1490. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
  1491. package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
  1492. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
  1493. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
  1494. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
  1495. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
  1496. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
  1497. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
  1498. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
  1499. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
  1500. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
  1501. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
  1502. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
  1503. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
  1504. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
  1505. package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +0 -1
  1506. package/node_modules/@smithy/smithy-client/dist-cjs/client.js +0 -1
  1507. package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +0 -1
  1508. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +0 -1
  1509. package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +0 -1
  1510. package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +0 -1
  1511. package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +0 -1
  1512. package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +0 -1
  1513. package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +0 -1
  1514. package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +0 -1
  1515. package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +0 -1
  1516. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +0 -1
  1517. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  1518. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +0 -1
  1519. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +0 -1
  1520. package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +0 -1
  1521. package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +0 -1
  1522. package/node_modules/@smithy/smithy-client/dist-cjs/is-serializable-header-value.js +0 -1
  1523. package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +0 -1
  1524. package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +0 -1
  1525. package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +0 -1
  1526. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +0 -1
  1527. package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  1528. package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  1529. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  1530. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  1531. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  1532. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  1533. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  1534. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  1535. package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  1536. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  1537. package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  1538. package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  1539. package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  1540. package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  1541. package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  1542. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  1543. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  1544. package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  1545. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  1546. package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  1547. package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  1548. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  1549. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  1550. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  1551. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  1552. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  1553. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  1554. package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  1555. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  1556. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  1557. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  1558. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  1559. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  1560. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  1561. package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  1562. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  1563. package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  1564. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  1565. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  1566. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  1567. package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  1568. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  1569. package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  1570. package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  1571. package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  1572. package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  1573. package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  1574. package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  1575. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  1576. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  1577. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  1578. package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  1579. package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  1580. package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  1581. package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  1582. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  1583. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  1584. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  1585. package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  1586. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  1587. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  1588. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  1589. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  1590. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  1591. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  1592. package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  1593. package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  1594. package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  1595. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
  1596. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
  1597. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
  1598. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
  1599. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
  1600. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +0 -1
  1601. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +0 -1
  1602. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +0 -1
  1603. package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
  1604. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
  1605. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
  1606. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
  1607. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
  1608. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
  1609. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
  1610. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
  1611. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
  1612. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
  1613. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
  1614. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
  1615. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
  1616. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
  1617. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
  1618. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
  1619. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
  1620. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
  1621. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
  1622. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
  1623. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
  1624. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
  1625. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
  1626. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
  1627. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
  1628. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
  1629. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
  1630. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
  1631. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
  1632. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
  1633. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
  1634. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
  1635. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
  1636. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
  1637. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
  1638. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
  1639. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
  1640. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
  1641. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
  1642. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
  1643. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
  1644. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
  1645. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
  1646. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
  1647. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
  1648. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  1649. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
  1650. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
  1651. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  1652. package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
  1653. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
  1654. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
  1655. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
  1656. package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
  1657. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
  1658. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
  1659. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  1660. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  1661. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
  1662. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
  1663. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
  1664. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  1665. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  1666. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  1667. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  1668. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  1669. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
  1670. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
  1671. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
  1672. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
  1673. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
  1674. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
  1675. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/CHANGELOG.md +0 -0
  1676. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/LICENSE +0 -0
  1677. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/README.md +0 -0
  1678. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js +0 -0
  1679. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js.map +0 -0
  1680. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.cjs +0 -0
  1681. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.d.cts +0 -0
  1682. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js +0 -0
  1683. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js.map +0 -0
  1684. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js +0 -0
  1685. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js.map +0 -0
  1686. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js +0 -0
  1687. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
  1688. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/package.json +0 -0
  1689. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/cli.js +0 -0
  1690. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/man.js +0 -0
  1691. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/read.js +0 -0
  1692. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.d.ts +0 -0
  1693. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.js +0 -0
  1694. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/ignoreAttributes.js +0 -0
  1695. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/util.js +0 -0
  1696. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
  1697. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
  1698. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
  1699. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
  1700. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
  1701. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
  1702. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
  1703. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -0
  1704. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Report.js +0 -0
  1705. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPath.js +0 -0
  1706. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
  1707. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XMLParser.js +0 -0
  1708. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
  1709. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
  1710. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
  1711. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
  1712. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
  1713. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
  1714. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
  1715. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
  1716. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
  1717. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
  1718. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
  1719. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
  1720. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/validator.js +0 -0
  1721. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
  1722. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/orderedJs2Xml.js +0 -0
  1723. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/prettifyJs2Xml.js +0 -0
  1724. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/DocTypeReader.js +0 -0
  1725. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OptionsBuilder.js +0 -0
  1726. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OrderedObjParser.js +0 -0
  1727. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/XMLParser.js +0 -0
  1728. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/node2json.js +0 -0
  1729. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
  1730. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  1731. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  1732. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -1,1711 +1,1848 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
20
2
 
21
- // src/submodules/protocols/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AwsEc2QueryProtocol: () => AwsEc2QueryProtocol,
25
- AwsJson1_0Protocol: () => AwsJson1_0Protocol,
26
- AwsJson1_1Protocol: () => AwsJson1_1Protocol,
27
- AwsJsonRpcProtocol: () => AwsJsonRpcProtocol,
28
- AwsQueryProtocol: () => AwsQueryProtocol,
29
- AwsRestJsonProtocol: () => AwsRestJsonProtocol,
30
- AwsRestXmlProtocol: () => AwsRestXmlProtocol,
31
- JsonCodec: () => JsonCodec,
32
- JsonShapeDeserializer: () => JsonShapeDeserializer,
33
- JsonShapeSerializer: () => JsonShapeSerializer,
34
- XmlCodec: () => XmlCodec,
35
- XmlShapeDeserializer: () => XmlShapeDeserializer,
36
- XmlShapeSerializer: () => XmlShapeSerializer,
37
- _toBool: () => _toBool,
38
- _toNum: () => _toNum,
39
- _toStr: () => _toStr,
40
- awsExpectUnion: () => awsExpectUnion,
41
- loadRestJsonErrorCode: () => loadRestJsonErrorCode,
42
- loadRestXmlErrorCode: () => loadRestXmlErrorCode,
43
- parseJsonBody: () => parseJsonBody,
44
- parseJsonErrorBody: () => parseJsonErrorBody,
45
- parseXmlBody: () => parseXmlBody,
46
- parseXmlErrorBody: () => parseXmlErrorBody
47
- });
48
- module.exports = __toCommonJS(index_exports);
3
+ var cbor = require('@smithy/core/cbor');
4
+ var schema = require('@smithy/core/schema');
5
+ var smithyClient = require('@smithy/smithy-client');
6
+ var protocols = require('@smithy/core/protocols');
7
+ var serde = require('@smithy/core/serde');
8
+ var utilBase64 = require('@smithy/util-base64');
9
+ var utilUtf8 = require('@smithy/util-utf8');
10
+ var xmlBuilder = require('@aws-sdk/xml-builder');
49
11
 
50
- // src/submodules/protocols/coercing-serializers.ts
51
- var _toStr = /* @__PURE__ */ __name((val) => {
52
- if (val == null) {
12
+ class ProtocolLib {
13
+ queryCompat;
14
+ constructor(queryCompat = false) {
15
+ this.queryCompat = queryCompat;
16
+ }
17
+ resolveRestContentType(defaultContentType, inputSchema) {
18
+ const members = inputSchema.getMemberSchemas();
19
+ const httpPayloadMember = Object.values(members).find((m) => {
20
+ return !!m.getMergedTraits().httpPayload;
21
+ });
22
+ if (httpPayloadMember) {
23
+ const mediaType = httpPayloadMember.getMergedTraits().mediaType;
24
+ if (mediaType) {
25
+ return mediaType;
26
+ }
27
+ else if (httpPayloadMember.isStringSchema()) {
28
+ return "text/plain";
29
+ }
30
+ else if (httpPayloadMember.isBlobSchema()) {
31
+ return "application/octet-stream";
32
+ }
33
+ else {
34
+ return defaultContentType;
35
+ }
36
+ }
37
+ else if (!inputSchema.isUnitSchema()) {
38
+ const hasBody = Object.values(members).find((m) => {
39
+ const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
40
+ const noPrefixHeaders = httpPrefixHeaders === void 0;
41
+ return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
42
+ });
43
+ if (hasBody) {
44
+ return defaultContentType;
45
+ }
46
+ }
47
+ }
48
+ async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
49
+ let namespace = defaultNamespace;
50
+ let errorName = errorIdentifier;
51
+ if (errorIdentifier.includes("#")) {
52
+ [namespace, errorName] = errorIdentifier.split("#");
53
+ }
54
+ const errorMetadata = {
55
+ $metadata: metadata,
56
+ $fault: response.statusCode < 500 ? "client" : "server",
57
+ };
58
+ const registry = schema.TypeRegistry.for(namespace);
59
+ try {
60
+ const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
61
+ return { errorSchema, errorMetadata };
62
+ }
63
+ catch (e) {
64
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
65
+ const synthetic = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
66
+ const baseExceptionSchema = synthetic.getBaseException();
67
+ if (baseExceptionSchema) {
68
+ const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
69
+ throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
70
+ }
71
+ throw this.decorateServiceException(Object.assign(new Error(errorName), errorMetadata), dataObject);
72
+ }
73
+ }
74
+ decorateServiceException(exception, additions = {}) {
75
+ if (this.queryCompat) {
76
+ const msg = exception.Message ?? additions.Message;
77
+ const error = smithyClient.decorateServiceException(exception, additions);
78
+ if (msg) {
79
+ error.message = msg;
80
+ }
81
+ error.Error = {
82
+ ...error.Error,
83
+ Type: error.Error.Type,
84
+ Code: error.Error.Code,
85
+ Message: error.Error.message ?? error.Error.Message ?? msg,
86
+ };
87
+ const reqId = error.$metadata.requestId;
88
+ if (reqId) {
89
+ error.RequestId = reqId;
90
+ }
91
+ return error;
92
+ }
93
+ return smithyClient.decorateServiceException(exception, additions);
94
+ }
95
+ setQueryCompatError(output, response) {
96
+ const queryErrorHeader = response.headers?.["x-amzn-query-error"];
97
+ if (output !== undefined && queryErrorHeader != null) {
98
+ const [Code, Type] = queryErrorHeader.split(";");
99
+ const entries = Object.entries(output);
100
+ const Error = {
101
+ Code,
102
+ Type,
103
+ };
104
+ Object.assign(output, Error);
105
+ for (const [k, v] of entries) {
106
+ Error[k === "message" ? "Message" : k] = v;
107
+ }
108
+ delete Error.__type;
109
+ output.Error = Error;
110
+ }
111
+ }
112
+ queryCompatOutput(queryCompatErrorData, errorData) {
113
+ if (queryCompatErrorData.Error) {
114
+ errorData.Error = queryCompatErrorData.Error;
115
+ }
116
+ if (queryCompatErrorData.Type) {
117
+ errorData.Type = queryCompatErrorData.Type;
118
+ }
119
+ if (queryCompatErrorData.Code) {
120
+ errorData.Code = queryCompatErrorData.Code;
121
+ }
122
+ }
123
+ findQueryCompatibleError(registry, errorName) {
124
+ try {
125
+ return registry.getSchema(errorName);
126
+ }
127
+ catch (e) {
128
+ return registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName);
129
+ }
130
+ }
131
+ }
132
+
133
+ class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
134
+ awsQueryCompatible;
135
+ mixin;
136
+ constructor({ defaultNamespace, awsQueryCompatible, }) {
137
+ super({ defaultNamespace });
138
+ this.awsQueryCompatible = !!awsQueryCompatible;
139
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
140
+ }
141
+ async serializeRequest(operationSchema, input, context) {
142
+ const request = await super.serializeRequest(operationSchema, input, context);
143
+ if (this.awsQueryCompatible) {
144
+ request.headers["x-amzn-query-mode"] = "true";
145
+ }
146
+ return request;
147
+ }
148
+ async handleError(operationSchema, context, response, dataObject, metadata) {
149
+ if (this.awsQueryCompatible) {
150
+ this.mixin.setQueryCompatError(dataObject, response);
151
+ }
152
+ const errorName = (() => {
153
+ const compatHeader = response.headers["x-amzn-query-error"];
154
+ if (compatHeader && this.awsQueryCompatible) {
155
+ return compatHeader.split(";")[0];
156
+ }
157
+ return cbor.loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
158
+ })();
159
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
160
+ const ns = schema.NormalizedSchema.of(errorSchema);
161
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
162
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
163
+ const exception = new ErrorCtor(message);
164
+ const output = {};
165
+ for (const [name, member] of ns.structIterator()) {
166
+ if (dataObject[name] != null) {
167
+ output[name] = this.deserializer.readValue(member, dataObject[name]);
168
+ }
169
+ }
170
+ if (this.awsQueryCompatible) {
171
+ this.mixin.queryCompatOutput(dataObject, output);
172
+ }
173
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
174
+ $fault: ns.getMergedTraits().error,
175
+ message,
176
+ }, output), dataObject);
177
+ }
178
+ }
179
+
180
+ const _toStr = (val) => {
181
+ if (val == null) {
182
+ return val;
183
+ }
184
+ if (typeof val === "number" || typeof val === "bigint") {
185
+ const warning = new Error(`Received number ${val} where a string was expected.`);
186
+ warning.name = "Warning";
187
+ console.warn(warning);
188
+ return String(val);
189
+ }
190
+ if (typeof val === "boolean") {
191
+ const warning = new Error(`Received boolean ${val} where a string was expected.`);
192
+ warning.name = "Warning";
193
+ console.warn(warning);
194
+ return String(val);
195
+ }
53
196
  return val;
54
- }
55
- if (typeof val === "number" || typeof val === "bigint") {
56
- const warning = new Error(`Received number ${val} where a string was expected.`);
57
- warning.name = "Warning";
58
- console.warn(warning);
59
- return String(val);
60
- }
61
- if (typeof val === "boolean") {
62
- const warning = new Error(`Received boolean ${val} where a string was expected.`);
63
- warning.name = "Warning";
64
- console.warn(warning);
65
- return String(val);
66
- }
67
- return val;
68
- }, "_toStr");
69
- var _toBool = /* @__PURE__ */ __name((val) => {
70
- if (val == null) {
197
+ };
198
+ const _toBool = (val) => {
199
+ if (val == null) {
200
+ return val;
201
+ }
202
+ if (typeof val === "string") {
203
+ const lowercase = val.toLowerCase();
204
+ if (val !== "" && lowercase !== "false" && lowercase !== "true") {
205
+ const warning = new Error(`Received string "${val}" where a boolean was expected.`);
206
+ warning.name = "Warning";
207
+ console.warn(warning);
208
+ }
209
+ return val !== "" && lowercase !== "false";
210
+ }
71
211
  return val;
72
- }
73
- if (typeof val === "number") {
74
- }
75
- if (typeof val === "string") {
76
- const lowercase = val.toLowerCase();
77
- if (val !== "" && lowercase !== "false" && lowercase !== "true") {
78
- const warning = new Error(`Received string "${val}" where a boolean was expected.`);
79
- warning.name = "Warning";
80
- console.warn(warning);
81
- }
82
- return val !== "" && lowercase !== "false";
83
- }
84
- return val;
85
- }, "_toBool");
86
- var _toNum = /* @__PURE__ */ __name((val) => {
87
- if (val == null) {
212
+ };
213
+ const _toNum = (val) => {
214
+ if (val == null) {
215
+ return val;
216
+ }
217
+ if (typeof val === "string") {
218
+ const num = Number(val);
219
+ if (num.toString() !== val) {
220
+ const warning = new Error(`Received string "${val}" where a number was expected.`);
221
+ warning.name = "Warning";
222
+ console.warn(warning);
223
+ return val;
224
+ }
225
+ return num;
226
+ }
88
227
  return val;
89
- }
90
- if (typeof val === "boolean") {
91
- }
92
- if (typeof val === "string") {
93
- const num = Number(val);
94
- if (num.toString() !== val) {
95
- const warning = new Error(`Received string "${val}" where a number was expected.`);
96
- warning.name = "Warning";
97
- console.warn(warning);
98
- return val;
99
- }
100
- return num;
101
- }
102
- return val;
103
- }, "_toNum");
228
+ };
104
229
 
105
- // src/submodules/protocols/json/AwsJsonRpcProtocol.ts
106
- var import_protocols = require("@smithy/core/protocols");
107
- var import_schema3 = require("@smithy/core/schema");
108
- var import_util_body_length_browser = require("@smithy/util-body-length-browser");
230
+ class SerdeContextConfig {
231
+ serdeContext;
232
+ setSerdeContext(serdeContext) {
233
+ this.serdeContext = serdeContext;
234
+ }
235
+ }
109
236
 
110
- // src/submodules/protocols/ConfigurableSerdeContext.ts
111
- var SerdeContextConfig = class {
112
- static {
113
- __name(this, "SerdeContextConfig");
114
- }
115
- serdeContext;
116
- setSerdeContext(serdeContext) {
117
- this.serdeContext = serdeContext;
118
- }
119
- };
237
+ function* serializingStructIterator(ns, sourceObject) {
238
+ if (ns.isUnitSchema()) {
239
+ return;
240
+ }
241
+ const struct = ns.getSchema();
242
+ for (let i = 0; i < struct[4].length; ++i) {
243
+ const key = struct[4][i];
244
+ const memberSchema = struct[5][i];
245
+ const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
246
+ if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
247
+ continue;
248
+ }
249
+ yield [key, memberNs];
250
+ }
251
+ }
252
+ function* deserializingStructIterator(ns, sourceObject, nameTrait) {
253
+ if (ns.isUnitSchema()) {
254
+ return;
255
+ }
256
+ const struct = ns.getSchema();
257
+ let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
258
+ for (let i = 0; i < struct[4].length; ++i) {
259
+ if (keysRemaining === 0) {
260
+ break;
261
+ }
262
+ const key = struct[4][i];
263
+ const memberSchema = struct[5][i];
264
+ const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
265
+ let serializationKey = key;
266
+ if (nameTrait) {
267
+ serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
268
+ }
269
+ if (!(serializationKey in sourceObject)) {
270
+ continue;
271
+ }
272
+ yield [key, memberNs];
273
+ keysRemaining -= 1;
274
+ }
275
+ }
120
276
 
121
- // src/submodules/protocols/json/JsonShapeDeserializer.ts
122
- var import_schema = require("@smithy/core/schema");
123
- var import_serde2 = require("@smithy/core/serde");
124
- var import_util_base64 = require("@smithy/util-base64");
277
+ class UnionSerde {
278
+ from;
279
+ to;
280
+ keys;
281
+ constructor(from, to) {
282
+ this.from = from;
283
+ this.to = to;
284
+ this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
285
+ }
286
+ mark(key) {
287
+ this.keys.delete(key);
288
+ }
289
+ hasUnknown() {
290
+ return this.keys.size === 1 && Object.keys(this.to).length === 0;
291
+ }
292
+ writeUnknown() {
293
+ if (this.hasUnknown()) {
294
+ const k = this.keys.values().next().value;
295
+ const v = this.from[k];
296
+ this.to.$unknown = [k, v];
297
+ }
298
+ }
299
+ }
125
300
 
126
- // src/submodules/protocols/json/jsonReviver.ts
127
- var import_serde = require("@smithy/core/serde");
128
301
  function jsonReviver(key, value, context) {
129
- if (context?.source) {
130
- const numericString = context.source;
131
- if (typeof value === "number") {
132
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
133
- const isFractional = numericString.includes(".");
134
- if (isFractional) {
135
- return new import_serde.NumericValue(numericString, "bigDecimal");
136
- } else {
137
- return BigInt(numericString);
138
- }
139
- }
140
- }
141
- }
142
- return value;
302
+ if (context?.source) {
303
+ const numericString = context.source;
304
+ if (typeof value === "number") {
305
+ if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
306
+ const isFractional = numericString.includes(".");
307
+ if (isFractional) {
308
+ return new serde.NumericValue(numericString, "bigDecimal");
309
+ }
310
+ else {
311
+ return BigInt(numericString);
312
+ }
313
+ }
314
+ }
315
+ }
316
+ return value;
143
317
  }
144
- __name(jsonReviver, "jsonReviver");
145
-
146
- // src/submodules/protocols/common.ts
147
- var import_smithy_client = require("@smithy/smithy-client");
148
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
149
318
 
150
- // src/submodules/protocols/json/parseJsonBody.ts
151
- var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
152
- if (encoded.length) {
153
- try {
154
- return JSON.parse(encoded);
155
- } catch (e) {
156
- if (e?.name === "SyntaxError") {
157
- Object.defineProperty(e, "$responseBodyText", {
158
- value: encoded
159
- });
160
- }
161
- throw e;
162
- }
163
- }
164
- return {};
165
- }), "parseJsonBody");
166
- var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
167
- const value = await parseJsonBody(errorBody, context);
168
- value.message = value.message ?? value.Message;
169
- return value;
170
- }, "parseJsonErrorBody");
171
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
172
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
173
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
174
- let cleanValue = rawValue;
175
- if (typeof cleanValue === "number") {
176
- cleanValue = cleanValue.toString();
177
- }
178
- if (cleanValue.indexOf(",") >= 0) {
179
- cleanValue = cleanValue.split(",")[0];
180
- }
181
- if (cleanValue.indexOf(":") >= 0) {
182
- cleanValue = cleanValue.split(":")[0];
183
- }
184
- if (cleanValue.indexOf("#") >= 0) {
185
- cleanValue = cleanValue.split("#")[1];
186
- }
187
- return cleanValue;
188
- }, "sanitizeErrorCode");
189
- const headerKey = findKey(output.headers, "x-amzn-errortype");
190
- if (headerKey !== void 0) {
191
- return sanitizeErrorCode(output.headers[headerKey]);
192
- }
193
- if (data && typeof data === "object") {
194
- const codeKey = findKey(data, "code");
195
- if (codeKey && data[codeKey] !== void 0) {
196
- return sanitizeErrorCode(data[codeKey]);
197
- }
198
- if (data["__type"] !== void 0) {
199
- return sanitizeErrorCode(data["__type"]);
200
- }
201
- }
202
- }, "loadRestJsonErrorCode");
319
+ const collectBodyString = (streamBody, context) => smithyClient.collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? utilUtf8.toUtf8)(body));
203
320
 
204
- // src/submodules/protocols/json/JsonShapeDeserializer.ts
205
- var JsonShapeDeserializer = class extends SerdeContextConfig {
206
- constructor(settings) {
207
- super();
208
- this.settings = settings;
209
- }
210
- static {
211
- __name(this, "JsonShapeDeserializer");
212
- }
213
- async read(schema, data) {
214
- return this._read(
215
- schema,
216
- typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext)
217
- );
218
- }
219
- readObject(schema, data) {
220
- return this._read(schema, data);
221
- }
222
- _read(schema, value) {
223
- const isObject = value !== null && typeof value === "object";
224
- const ns = import_schema.NormalizedSchema.of(schema);
225
- if (ns.isListSchema() && Array.isArray(value)) {
226
- const listMember = ns.getValueSchema();
227
- const out = [];
228
- const sparse = !!ns.getMergedTraits().sparse;
229
- for (const item of value) {
230
- if (sparse || item != null) {
231
- out.push(this._read(listMember, item));
232
- }
233
- }
234
- return out;
235
- } else if (ns.isMapSchema() && isObject) {
236
- const mapMember = ns.getValueSchema();
237
- const out = {};
238
- const sparse = !!ns.getMergedTraits().sparse;
239
- for (const [_k, _v] of Object.entries(value)) {
240
- if (sparse || _v != null) {
241
- out[_k] = this._read(mapMember, _v);
242
- }
243
- }
244
- return out;
245
- } else if (ns.isStructSchema() && isObject) {
246
- const out = {};
247
- for (const [memberName, memberSchema] of ns.structIterator()) {
248
- const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
249
- const deserializedValue = this._read(memberSchema, value[fromKey]);
250
- if (deserializedValue != null) {
251
- out[memberName] = deserializedValue;
252
- }
253
- }
254
- return out;
255
- }
256
- if (ns.isBlobSchema() && typeof value === "string") {
257
- return (0, import_util_base64.fromBase64)(value);
258
- }
259
- const mediaType = ns.getMergedTraits().mediaType;
260
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
261
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
262
- if (isJson) {
263
- return import_serde2.LazyJsonString.from(value);
264
- }
265
- }
266
- if (ns.isTimestampSchema()) {
267
- const options = this.settings.timestampFormat;
268
- const format = options.useTrait ? ns.getSchema() === import_schema.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
269
- switch (format) {
270
- case import_schema.SCHEMA.TIMESTAMP_DATE_TIME:
271
- return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value);
272
- case import_schema.SCHEMA.TIMESTAMP_HTTP_DATE:
273
- return (0, import_serde2.parseRfc7231DateTime)(value);
274
- case import_schema.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
275
- return (0, import_serde2.parseEpochTimestamp)(value);
276
- default:
277
- console.warn("Missing timestamp format, parsing value with Date constructor:", value);
278
- return new Date(value);
279
- }
280
- }
281
- if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
282
- return BigInt(value);
283
- }
284
- if (ns.isBigDecimalSchema() && value != void 0) {
285
- if (value instanceof import_serde2.NumericValue) {
286
- return value;
287
- }
288
- return new import_serde2.NumericValue(String(value), "bigDecimal");
289
- }
290
- if (ns.isNumericSchema() && typeof value === "string") {
291
- switch (value) {
292
- case "Infinity":
293
- return Infinity;
294
- case "-Infinity":
295
- return -Infinity;
296
- case "NaN":
297
- return NaN;
298
- }
321
+ const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
322
+ if (encoded.length) {
323
+ try {
324
+ return JSON.parse(encoded);
325
+ }
326
+ catch (e) {
327
+ if (e?.name === "SyntaxError") {
328
+ Object.defineProperty(e, "$responseBodyText", {
329
+ value: encoded,
330
+ });
331
+ }
332
+ throw e;
333
+ }
299
334
  }
335
+ return {};
336
+ });
337
+ const parseJsonErrorBody = async (errorBody, context) => {
338
+ const value = await parseJsonBody(errorBody, context);
339
+ value.message = value.message ?? value.Message;
300
340
  return value;
301
- }
302
341
  };
303
-
304
- // src/submodules/protocols/json/JsonShapeSerializer.ts
305
- var import_schema2 = require("@smithy/core/schema");
306
- var import_serde4 = require("@smithy/core/serde");
307
- var import_serde5 = require("@smithy/core/serde");
308
-
309
- // src/submodules/protocols/json/jsonReplacer.ts
310
- var import_serde3 = require("@smithy/core/serde");
311
- var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
312
- var JsonReplacer = class {
313
- static {
314
- __name(this, "JsonReplacer");
315
- }
316
- /**
317
- * Stores placeholder key to true serialized value lookup.
318
- */
319
- values = /* @__PURE__ */ new Map();
320
- counter = 0;
321
- stage = 0;
322
- /**
323
- * Creates a jsonReplacer function that reserves big integer and big decimal values
324
- * for later replacement.
325
- */
326
- createReplacer() {
327
- if (this.stage === 1) {
328
- throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
329
- }
330
- if (this.stage === 2) {
331
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
332
- }
333
- this.stage = 1;
334
- return (key, value) => {
335
- if (value instanceof import_serde3.NumericValue) {
336
- const v = `${NUMERIC_CONTROL_CHAR + +"nv" + this.counter++}_` + value.string;
337
- this.values.set(`"${v}"`, value.string);
338
- return v;
339
- }
340
- if (typeof value === "bigint") {
341
- const s = value.toString();
342
- const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
343
- this.values.set(`"${v}"`, s);
344
- return v;
345
- }
346
- return value;
342
+ const loadRestJsonErrorCode = (output, data) => {
343
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
344
+ const sanitizeErrorCode = (rawValue) => {
345
+ let cleanValue = rawValue;
346
+ if (typeof cleanValue === "number") {
347
+ cleanValue = cleanValue.toString();
348
+ }
349
+ if (cleanValue.indexOf(",") >= 0) {
350
+ cleanValue = cleanValue.split(",")[0];
351
+ }
352
+ if (cleanValue.indexOf(":") >= 0) {
353
+ cleanValue = cleanValue.split(":")[0];
354
+ }
355
+ if (cleanValue.indexOf("#") >= 0) {
356
+ cleanValue = cleanValue.split("#")[1];
357
+ }
358
+ return cleanValue;
347
359
  };
348
- }
349
- /**
350
- * Replaces placeholder keys with their true values.
351
- */
352
- replaceInJson(json) {
353
- if (this.stage === 0) {
354
- throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
355
- }
356
- if (this.stage === 2) {
357
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
358
- }
359
- this.stage = 2;
360
- if (this.counter === 0) {
361
- return json;
362
- }
363
- for (const [key, value] of this.values) {
364
- json = json.replace(key, value);
365
- }
366
- return json;
367
- }
360
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
361
+ if (headerKey !== undefined) {
362
+ return sanitizeErrorCode(output.headers[headerKey]);
363
+ }
364
+ if (data && typeof data === "object") {
365
+ const codeKey = findKey(data, "code");
366
+ if (codeKey && data[codeKey] !== undefined) {
367
+ return sanitizeErrorCode(data[codeKey]);
368
+ }
369
+ if (data["__type"] !== undefined) {
370
+ return sanitizeErrorCode(data["__type"]);
371
+ }
372
+ }
368
373
  };
369
374
 
370
- // src/submodules/protocols/json/JsonShapeSerializer.ts
371
- var JsonShapeSerializer = class extends SerdeContextConfig {
372
- constructor(settings) {
373
- super();
374
- this.settings = settings;
375
- }
376
- static {
377
- __name(this, "JsonShapeSerializer");
378
- }
379
- buffer;
380
- rootSchema;
381
- write(schema, value) {
382
- this.rootSchema = import_schema2.NormalizedSchema.of(schema);
383
- this.buffer = this._write(this.rootSchema, value);
384
- }
385
- flush() {
386
- if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) {
387
- const replacer = new JsonReplacer();
388
- return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
389
- }
390
- return this.buffer;
391
- }
392
- _write(schema, value, container) {
393
- const isObject = value !== null && typeof value === "object";
394
- const ns = import_schema2.NormalizedSchema.of(schema);
395
- if (ns.isListSchema() && Array.isArray(value)) {
396
- const listMember = ns.getValueSchema();
397
- const out = [];
398
- const sparse = !!ns.getMergedTraits().sparse;
399
- for (const item of value) {
400
- if (sparse || item != null) {
401
- out.push(this._write(listMember, item));
402
- }
403
- }
404
- return out;
405
- } else if (ns.isMapSchema() && isObject) {
406
- const mapMember = ns.getValueSchema();
407
- const out = {};
408
- const sparse = !!ns.getMergedTraits().sparse;
409
- for (const [_k, _v] of Object.entries(value)) {
410
- if (sparse || _v != null) {
411
- out[_k] = this._write(mapMember, _v);
412
- }
413
- }
414
- return out;
415
- } else if (ns.isStructSchema() && isObject) {
416
- const out = {};
417
- for (const [memberName, memberSchema] of ns.structIterator()) {
418
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
419
- const serializableValue = this._write(memberSchema, value[memberName], ns);
420
- if (serializableValue !== void 0) {
421
- out[targetKey] = serializableValue;
422
- }
423
- }
424
- return out;
425
- }
426
- if (value === null && container?.isStructSchema()) {
427
- return void 0;
428
- }
429
- if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) {
430
- if (ns === this.rootSchema) {
375
+ class JsonShapeDeserializer extends SerdeContextConfig {
376
+ settings;
377
+ constructor(settings) {
378
+ super();
379
+ this.settings = settings;
380
+ }
381
+ async read(schema, data) {
382
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
383
+ }
384
+ readObject(schema, data) {
385
+ return this._read(schema, data);
386
+ }
387
+ _read(schema$1, value) {
388
+ const isObject = value !== null && typeof value === "object";
389
+ const ns = schema.NormalizedSchema.of(schema$1);
390
+ if (isObject) {
391
+ if (ns.isStructSchema()) {
392
+ const union = ns.isUnionSchema();
393
+ const out = {};
394
+ let unionSerde;
395
+ if (union) {
396
+ unionSerde = new UnionSerde(value, out);
397
+ }
398
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
399
+ const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
400
+ if (union) {
401
+ unionSerde.mark(fromKey);
402
+ }
403
+ if (value[fromKey] != null) {
404
+ out[memberName] = this._read(memberSchema, value[fromKey]);
405
+ }
406
+ }
407
+ if (union) {
408
+ unionSerde.writeUnknown();
409
+ }
410
+ return out;
411
+ }
412
+ if (Array.isArray(value) && ns.isListSchema()) {
413
+ const listMember = ns.getValueSchema();
414
+ const out = [];
415
+ const sparse = !!ns.getMergedTraits().sparse;
416
+ for (const item of value) {
417
+ if (sparse || item != null) {
418
+ out.push(this._read(listMember, item));
419
+ }
420
+ }
421
+ return out;
422
+ }
423
+ if (ns.isMapSchema()) {
424
+ const mapMember = ns.getValueSchema();
425
+ const out = {};
426
+ const sparse = !!ns.getMergedTraits().sparse;
427
+ for (const [_k, _v] of Object.entries(value)) {
428
+ if (sparse || _v != null) {
429
+ out[_k] = this._read(mapMember, _v);
430
+ }
431
+ }
432
+ return out;
433
+ }
434
+ }
435
+ if (ns.isBlobSchema() && typeof value === "string") {
436
+ return utilBase64.fromBase64(value);
437
+ }
438
+ const mediaType = ns.getMergedTraits().mediaType;
439
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
440
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
441
+ if (isJson) {
442
+ return serde.LazyJsonString.from(value);
443
+ }
444
+ return value;
445
+ }
446
+ if (ns.isTimestampSchema() && value != null) {
447
+ const format = protocols.determineTimestampFormat(ns, this.settings);
448
+ switch (format) {
449
+ case 5:
450
+ return serde.parseRfc3339DateTimeWithOffset(value);
451
+ case 6:
452
+ return serde.parseRfc7231DateTime(value);
453
+ case 7:
454
+ return serde.parseEpochTimestamp(value);
455
+ default:
456
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
457
+ return new Date(value);
458
+ }
459
+ }
460
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
461
+ return BigInt(value);
462
+ }
463
+ if (ns.isBigDecimalSchema() && value != undefined) {
464
+ if (value instanceof serde.NumericValue) {
465
+ return value;
466
+ }
467
+ const untyped = value;
468
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
469
+ return new serde.NumericValue(untyped.string, untyped.type);
470
+ }
471
+ return new serde.NumericValue(String(value), "bigDecimal");
472
+ }
473
+ if (ns.isNumericSchema() && typeof value === "string") {
474
+ switch (value) {
475
+ case "Infinity":
476
+ return Infinity;
477
+ case "-Infinity":
478
+ return -Infinity;
479
+ case "NaN":
480
+ return NaN;
481
+ }
482
+ return value;
483
+ }
484
+ if (ns.isDocumentSchema()) {
485
+ if (isObject) {
486
+ const out = Array.isArray(value) ? [] : {};
487
+ for (const [k, v] of Object.entries(value)) {
488
+ if (v instanceof serde.NumericValue) {
489
+ out[k] = v;
490
+ }
491
+ else {
492
+ out[k] = this._read(ns, v);
493
+ }
494
+ }
495
+ return out;
496
+ }
497
+ else {
498
+ return structuredClone(value);
499
+ }
500
+ }
431
501
  return value;
432
- }
433
- if (!this.serdeContext?.base64Encoder) {
434
- throw new Error("Missing base64Encoder in serdeContext");
435
- }
436
- return this.serdeContext?.base64Encoder(value);
437
- }
438
- if (ns.isTimestampSchema() && value instanceof Date) {
439
- const options = this.settings.timestampFormat;
440
- const format = options.useTrait ? ns.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
441
- switch (format) {
442
- case import_schema2.SCHEMA.TIMESTAMP_DATE_TIME:
443
- return value.toISOString().replace(".000Z", "Z");
444
- case import_schema2.SCHEMA.TIMESTAMP_HTTP_DATE:
445
- return (0, import_serde4.dateToUtcString)(value);
446
- case import_schema2.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
447
- return value.getTime() / 1e3;
448
- default:
449
- console.warn("Missing timestamp format, using epoch seconds", value);
450
- return value.getTime() / 1e3;
451
- }
452
- }
453
- if (ns.isNumericSchema() && typeof value === "number") {
454
- if (Math.abs(value) === Infinity || isNaN(value)) {
455
- return String(value);
456
- }
457
- }
458
- const mediaType = ns.getMergedTraits().mediaType;
459
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
460
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
461
- if (isJson) {
462
- return import_serde5.LazyJsonString.from(value);
463
- }
464
502
  }
465
- return value;
466
- }
467
- };
468
-
469
- // src/submodules/protocols/json/JsonCodec.ts
470
- var JsonCodec = class extends SerdeContextConfig {
471
- constructor(settings) {
472
- super();
473
- this.settings = settings;
474
- }
475
- static {
476
- __name(this, "JsonCodec");
477
- }
478
- createSerializer() {
479
- const serializer = new JsonShapeSerializer(this.settings);
480
- serializer.setSerdeContext(this.serdeContext);
481
- return serializer;
482
- }
483
- createDeserializer() {
484
- const deserializer = new JsonShapeDeserializer(this.settings);
485
- deserializer.setSerdeContext(this.serdeContext);
486
- return deserializer;
487
- }
488
- };
503
+ }
489
504
 
490
- // src/submodules/protocols/json/AwsJsonRpcProtocol.ts
491
- var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
492
- static {
493
- __name(this, "AwsJsonRpcProtocol");
494
- }
495
- serializer;
496
- deserializer;
497
- codec;
498
- constructor({ defaultNamespace }) {
499
- super({
500
- defaultNamespace
501
- });
502
- this.codec = new JsonCodec({
503
- timestampFormat: {
504
- useTrait: true,
505
- default: import_schema3.SCHEMA.TIMESTAMP_EPOCH_SECONDS
506
- },
507
- jsonName: false
508
- });
509
- this.serializer = this.codec.createSerializer();
510
- this.deserializer = this.codec.createDeserializer();
511
- }
512
- async serializeRequest(operationSchema, input, context) {
513
- const request = await super.serializeRequest(operationSchema, input, context);
514
- if (!request.path.endsWith("/")) {
515
- request.path += "/";
516
- }
517
- Object.assign(request.headers, {
518
- "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
519
- "x-amz-target": (this.getJsonRpcVersion() === "1.0" ? `JsonRpc10.` : `JsonProtocol.`) + import_schema3.NormalizedSchema.of(operationSchema).getName()
520
- });
521
- if ((0, import_schema3.deref)(operationSchema.input) === "unit" || !request.body) {
522
- request.body = "{}";
523
- }
524
- try {
525
- request.headers["content-length"] = String((0, import_util_body_length_browser.calculateBodyLength)(request.body));
526
- } catch (e) {
527
- }
528
- return request;
529
- }
530
- getPayloadCodec() {
531
- return this.codec;
532
- }
533
- async handleError(operationSchema, context, response, dataObject, metadata) {
534
- const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
535
- let namespace = this.options.defaultNamespace;
536
- let errorName = errorIdentifier;
537
- if (errorIdentifier.includes("#")) {
538
- [namespace, errorName] = errorIdentifier.split("#");
539
- }
540
- const registry = import_schema3.TypeRegistry.for(namespace);
541
- let errorSchema;
542
- try {
543
- errorSchema = registry.getSchema(errorIdentifier);
544
- } catch (e) {
545
- const baseExceptionSchema = import_schema3.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
546
- if (baseExceptionSchema) {
547
- const ErrorCtor = baseExceptionSchema.ctor;
548
- throw Object.assign(new ErrorCtor(errorName), dataObject);
549
- }
550
- throw new Error(errorName);
551
- }
552
- const ns = import_schema3.NormalizedSchema.of(errorSchema);
553
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
554
- const exception = new errorSchema.ctor(message);
555
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
556
- const output = {};
557
- for (const [name, member] of ns.structIterator()) {
558
- const target = member.getMergedTraits().jsonName ?? name;
559
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
560
- }
561
- Object.assign(exception, {
562
- $metadata: metadata,
563
- $response: response,
564
- $fault: ns.getMergedTraits().error,
565
- message,
566
- ...output
567
- });
568
- throw exception;
569
- }
570
- };
505
+ const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
506
+ class JsonReplacer {
507
+ values = new Map();
508
+ counter = 0;
509
+ stage = 0;
510
+ createReplacer() {
511
+ if (this.stage === 1) {
512
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
513
+ }
514
+ if (this.stage === 2) {
515
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
516
+ }
517
+ this.stage = 1;
518
+ return (key, value) => {
519
+ if (value instanceof serde.NumericValue) {
520
+ const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
521
+ this.values.set(`"${v}"`, value.string);
522
+ return v;
523
+ }
524
+ if (typeof value === "bigint") {
525
+ const s = value.toString();
526
+ const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
527
+ this.values.set(`"${v}"`, s);
528
+ return v;
529
+ }
530
+ return value;
531
+ };
532
+ }
533
+ replaceInJson(json) {
534
+ if (this.stage === 0) {
535
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
536
+ }
537
+ if (this.stage === 2) {
538
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
539
+ }
540
+ this.stage = 2;
541
+ if (this.counter === 0) {
542
+ return json;
543
+ }
544
+ for (const [key, value] of this.values) {
545
+ json = json.replace(key, value);
546
+ }
547
+ return json;
548
+ }
549
+ }
571
550
 
572
- // src/submodules/protocols/json/AwsJson1_0Protocol.ts
573
- var AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
574
- static {
575
- __name(this, "AwsJson1_0Protocol");
576
- }
577
- constructor({ defaultNamespace }) {
578
- super({
579
- defaultNamespace
580
- });
581
- }
582
- getShapeId() {
583
- return "aws.protocols#awsJson1_0";
584
- }
585
- getJsonRpcVersion() {
586
- return "1.0";
587
- }
588
- };
551
+ class JsonShapeSerializer extends SerdeContextConfig {
552
+ settings;
553
+ buffer;
554
+ useReplacer = false;
555
+ rootSchema;
556
+ constructor(settings) {
557
+ super();
558
+ this.settings = settings;
559
+ }
560
+ write(schema$1, value) {
561
+ this.rootSchema = schema.NormalizedSchema.of(schema$1);
562
+ this.buffer = this._write(this.rootSchema, value);
563
+ }
564
+ writeDiscriminatedDocument(schema$1, value) {
565
+ this.write(schema$1, value);
566
+ if (typeof this.buffer === "object") {
567
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
568
+ }
569
+ }
570
+ flush() {
571
+ const { rootSchema, useReplacer } = this;
572
+ this.rootSchema = undefined;
573
+ this.useReplacer = false;
574
+ if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
575
+ if (!useReplacer) {
576
+ return JSON.stringify(this.buffer);
577
+ }
578
+ const replacer = new JsonReplacer();
579
+ return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
580
+ }
581
+ return this.buffer;
582
+ }
583
+ _write(schema$1, value, container) {
584
+ const isObject = value !== null && typeof value === "object";
585
+ const ns = schema.NormalizedSchema.of(schema$1);
586
+ if (isObject) {
587
+ if (ns.isStructSchema()) {
588
+ const out = {};
589
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
590
+ const serializableValue = this._write(memberSchema, value[memberName], ns);
591
+ if (serializableValue !== undefined) {
592
+ const jsonName = memberSchema.getMergedTraits().jsonName;
593
+ const targetKey = this.settings.jsonName ? jsonName ?? memberName : memberName;
594
+ out[targetKey] = serializableValue;
595
+ }
596
+ }
597
+ if (ns.isUnionSchema() && Object.keys(out).length === 0) {
598
+ const { $unknown } = value;
599
+ if (Array.isArray($unknown)) {
600
+ const [k, v] = $unknown;
601
+ out[k] = this._write(15, v);
602
+ }
603
+ }
604
+ return out;
605
+ }
606
+ if (Array.isArray(value) && ns.isListSchema()) {
607
+ const listMember = ns.getValueSchema();
608
+ const out = [];
609
+ const sparse = !!ns.getMergedTraits().sparse;
610
+ for (const item of value) {
611
+ if (sparse || item != null) {
612
+ out.push(this._write(listMember, item));
613
+ }
614
+ }
615
+ return out;
616
+ }
617
+ if (ns.isMapSchema()) {
618
+ const mapMember = ns.getValueSchema();
619
+ const out = {};
620
+ const sparse = !!ns.getMergedTraits().sparse;
621
+ for (const [_k, _v] of Object.entries(value)) {
622
+ if (sparse || _v != null) {
623
+ out[_k] = this._write(mapMember, _v);
624
+ }
625
+ }
626
+ return out;
627
+ }
628
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
629
+ if (ns === this.rootSchema) {
630
+ return value;
631
+ }
632
+ return (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
633
+ }
634
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
635
+ const format = protocols.determineTimestampFormat(ns, this.settings);
636
+ switch (format) {
637
+ case 5:
638
+ return value.toISOString().replace(".000Z", "Z");
639
+ case 6:
640
+ return serde.dateToUtcString(value);
641
+ case 7:
642
+ return value.getTime() / 1000;
643
+ default:
644
+ console.warn("Missing timestamp format, using epoch seconds", value);
645
+ return value.getTime() / 1000;
646
+ }
647
+ }
648
+ if (value instanceof serde.NumericValue) {
649
+ this.useReplacer = true;
650
+ }
651
+ }
652
+ if (value === null && container?.isStructSchema()) {
653
+ return void 0;
654
+ }
655
+ if (ns.isStringSchema()) {
656
+ if (typeof value === "undefined" && ns.isIdempotencyToken()) {
657
+ return serde.generateIdempotencyToken();
658
+ }
659
+ const mediaType = ns.getMergedTraits().mediaType;
660
+ if (value != null && mediaType) {
661
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
662
+ if (isJson) {
663
+ return serde.LazyJsonString.from(value);
664
+ }
665
+ }
666
+ return value;
667
+ }
668
+ if (typeof value === "number" && ns.isNumericSchema()) {
669
+ if (Math.abs(value) === Infinity || isNaN(value)) {
670
+ return String(value);
671
+ }
672
+ return value;
673
+ }
674
+ if (typeof value === "string" && ns.isBlobSchema()) {
675
+ if (ns === this.rootSchema) {
676
+ return value;
677
+ }
678
+ return (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
679
+ }
680
+ if (typeof value === "bigint") {
681
+ this.useReplacer = true;
682
+ }
683
+ if (ns.isDocumentSchema()) {
684
+ if (isObject) {
685
+ const out = Array.isArray(value) ? [] : {};
686
+ for (const [k, v] of Object.entries(value)) {
687
+ if (v instanceof serde.NumericValue) {
688
+ this.useReplacer = true;
689
+ out[k] = v;
690
+ }
691
+ else {
692
+ out[k] = this._write(ns, v);
693
+ }
694
+ }
695
+ return out;
696
+ }
697
+ else {
698
+ return structuredClone(value);
699
+ }
700
+ }
701
+ return value;
702
+ }
703
+ }
589
704
 
590
- // src/submodules/protocols/json/AwsJson1_1Protocol.ts
591
- var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
592
- static {
593
- __name(this, "AwsJson1_1Protocol");
594
- }
595
- constructor({ defaultNamespace }) {
596
- super({
597
- defaultNamespace
598
- });
599
- }
600
- getShapeId() {
601
- return "aws.protocols#awsJson1_1";
602
- }
603
- getJsonRpcVersion() {
604
- return "1.1";
605
- }
606
- };
705
+ class JsonCodec extends SerdeContextConfig {
706
+ settings;
707
+ constructor(settings) {
708
+ super();
709
+ this.settings = settings;
710
+ }
711
+ createSerializer() {
712
+ const serializer = new JsonShapeSerializer(this.settings);
713
+ serializer.setSerdeContext(this.serdeContext);
714
+ return serializer;
715
+ }
716
+ createDeserializer() {
717
+ const deserializer = new JsonShapeDeserializer(this.settings);
718
+ deserializer.setSerdeContext(this.serdeContext);
719
+ return deserializer;
720
+ }
721
+ }
607
722
 
608
- // src/submodules/protocols/json/AwsRestJsonProtocol.ts
609
- var import_protocols2 = require("@smithy/core/protocols");
610
- var import_schema4 = require("@smithy/core/schema");
611
- var import_util_body_length_browser2 = require("@smithy/util-body-length-browser");
612
- var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
613
- static {
614
- __name(this, "AwsRestJsonProtocol");
615
- }
616
- serializer;
617
- deserializer;
618
- codec;
619
- constructor({ defaultNamespace }) {
620
- super({
621
- defaultNamespace
622
- });
623
- const settings = {
624
- timestampFormat: {
625
- useTrait: true,
626
- default: import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS
627
- },
628
- httpBindings: true,
629
- jsonName: true
630
- };
631
- this.codec = new JsonCodec(settings);
632
- this.serializer = new import_protocols2.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
633
- this.deserializer = new import_protocols2.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
634
- }
635
- getShapeId() {
636
- return "aws.protocols#restJson1";
637
- }
638
- getPayloadCodec() {
639
- return this.codec;
640
- }
641
- setSerdeContext(serdeContext) {
642
- this.codec.setSerdeContext(serdeContext);
643
- super.setSerdeContext(serdeContext);
644
- }
645
- async serializeRequest(operationSchema, input, context) {
646
- const request = await super.serializeRequest(operationSchema, input, context);
647
- const inputSchema = import_schema4.NormalizedSchema.of(operationSchema.input);
648
- const members = inputSchema.getMemberSchemas();
649
- if (!request.headers["content-type"]) {
650
- const httpPayloadMember = Object.values(members).find((m) => {
651
- return !!m.getMergedTraits().httpPayload;
652
- });
653
- if (httpPayloadMember) {
654
- const mediaType = httpPayloadMember.getMergedTraits().mediaType;
655
- if (mediaType) {
656
- request.headers["content-type"] = mediaType;
657
- } else if (httpPayloadMember.isStringSchema()) {
658
- request.headers["content-type"] = "text/plain";
659
- } else if (httpPayloadMember.isBlobSchema()) {
660
- request.headers["content-type"] = "application/octet-stream";
661
- } else {
662
- request.headers["content-type"] = "application/json";
663
- }
664
- } else if (!inputSchema.isUnitSchema()) {
665
- const hasBody = Object.values(members).find((m) => {
666
- const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
667
- return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
723
+ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
724
+ serializer;
725
+ deserializer;
726
+ serviceTarget;
727
+ codec;
728
+ mixin;
729
+ awsQueryCompatible;
730
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
731
+ super({
732
+ defaultNamespace,
668
733
  });
669
- if (hasBody) {
670
- request.headers["content-type"] = "application/json";
671
- }
672
- }
673
- }
674
- if (request.headers["content-type"] && !request.body) {
675
- request.body = "{}";
676
- }
677
- if (request.body) {
678
- try {
679
- request.headers["content-length"] = String((0, import_util_body_length_browser2.calculateBodyLength)(request.body));
680
- } catch (e) {
681
- }
682
- }
683
- return request;
684
- }
685
- async handleError(operationSchema, context, response, dataObject, metadata) {
686
- const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
687
- let namespace = this.options.defaultNamespace;
688
- let errorName = errorIdentifier;
689
- if (errorIdentifier.includes("#")) {
690
- [namespace, errorName] = errorIdentifier.split("#");
691
- }
692
- const registry = import_schema4.TypeRegistry.for(namespace);
693
- let errorSchema;
694
- try {
695
- errorSchema = registry.getSchema(errorIdentifier);
696
- } catch (e) {
697
- const baseExceptionSchema = import_schema4.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
698
- if (baseExceptionSchema) {
699
- const ErrorCtor = baseExceptionSchema.ctor;
700
- throw Object.assign(new ErrorCtor(errorName), dataObject);
701
- }
702
- throw new Error(errorName);
703
- }
704
- const ns = import_schema4.NormalizedSchema.of(errorSchema);
705
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
706
- const exception = new errorSchema.ctor(message);
707
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
708
- const output = {};
709
- for (const [name, member] of ns.structIterator()) {
710
- const target = member.getMergedTraits().jsonName ?? name;
711
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
712
- }
713
- Object.assign(exception, {
714
- $metadata: metadata,
715
- $response: response,
716
- $fault: ns.getMergedTraits().error,
717
- message,
718
- ...output
719
- });
720
- throw exception;
721
- }
722
- };
734
+ this.serviceTarget = serviceTarget;
735
+ this.codec =
736
+ jsonCodec ??
737
+ new JsonCodec({
738
+ timestampFormat: {
739
+ useTrait: true,
740
+ default: 7,
741
+ },
742
+ jsonName: false,
743
+ });
744
+ this.serializer = this.codec.createSerializer();
745
+ this.deserializer = this.codec.createDeserializer();
746
+ this.awsQueryCompatible = !!awsQueryCompatible;
747
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
748
+ }
749
+ async serializeRequest(operationSchema, input, context) {
750
+ const request = await super.serializeRequest(operationSchema, input, context);
751
+ if (!request.path.endsWith("/")) {
752
+ request.path += "/";
753
+ }
754
+ Object.assign(request.headers, {
755
+ "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
756
+ "x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
757
+ });
758
+ if (this.awsQueryCompatible) {
759
+ request.headers["x-amzn-query-mode"] = "true";
760
+ }
761
+ if (schema.deref(operationSchema.input) === "unit" || !request.body) {
762
+ request.body = "{}";
763
+ }
764
+ return request;
765
+ }
766
+ getPayloadCodec() {
767
+ return this.codec;
768
+ }
769
+ async handleError(operationSchema, context, response, dataObject, metadata) {
770
+ if (this.awsQueryCompatible) {
771
+ this.mixin.setQueryCompatError(dataObject, response);
772
+ }
773
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
774
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
775
+ const ns = schema.NormalizedSchema.of(errorSchema);
776
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
777
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
778
+ const exception = new ErrorCtor(message);
779
+ const output = {};
780
+ for (const [name, member] of ns.structIterator()) {
781
+ if (dataObject[name] != null) {
782
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[name]);
783
+ }
784
+ }
785
+ if (this.awsQueryCompatible) {
786
+ this.mixin.queryCompatOutput(dataObject, output);
787
+ }
788
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
789
+ $fault: ns.getMergedTraits().error,
790
+ message,
791
+ }, output), dataObject);
792
+ }
793
+ }
723
794
 
724
- // src/submodules/protocols/json/awsExpectUnion.ts
725
- var import_smithy_client2 = require("@smithy/smithy-client");
726
- var awsExpectUnion = /* @__PURE__ */ __name((value) => {
727
- if (value == null) {
728
- return void 0;
729
- }
730
- if (typeof value === "object" && "__type" in value) {
731
- delete value.__type;
732
- }
733
- return (0, import_smithy_client2.expectUnion)(value);
734
- }, "awsExpectUnion");
795
+ class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
796
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
797
+ super({
798
+ defaultNamespace,
799
+ serviceTarget,
800
+ awsQueryCompatible,
801
+ jsonCodec,
802
+ });
803
+ }
804
+ getShapeId() {
805
+ return "aws.protocols#awsJson1_0";
806
+ }
807
+ getJsonRpcVersion() {
808
+ return "1.0";
809
+ }
810
+ getDefaultContentType() {
811
+ return "application/x-amz-json-1.0";
812
+ }
813
+ }
735
814
 
736
- // src/submodules/protocols/query/AwsQueryProtocol.ts
737
- var import_protocols5 = require("@smithy/core/protocols");
738
- var import_schema7 = require("@smithy/core/schema");
739
- var import_util_body_length_browser3 = require("@smithy/util-body-length-browser");
815
+ class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
816
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
817
+ super({
818
+ defaultNamespace,
819
+ serviceTarget,
820
+ awsQueryCompatible,
821
+ jsonCodec,
822
+ });
823
+ }
824
+ getShapeId() {
825
+ return "aws.protocols#awsJson1_1";
826
+ }
827
+ getJsonRpcVersion() {
828
+ return "1.1";
829
+ }
830
+ getDefaultContentType() {
831
+ return "application/x-amz-json-1.1";
832
+ }
833
+ }
740
834
 
741
- // src/submodules/protocols/xml/XmlShapeDeserializer.ts
742
- var import_protocols3 = require("@smithy/core/protocols");
743
- var import_schema5 = require("@smithy/core/schema");
744
- var import_smithy_client3 = require("@smithy/smithy-client");
745
- var import_util_utf8 = require("@smithy/util-utf8");
746
- var import_fast_xml_parser = require("fast-xml-parser");
747
- var XmlShapeDeserializer = class extends SerdeContextConfig {
748
- constructor(settings) {
749
- super();
750
- this.settings = settings;
751
- this.stringDeserializer = new import_protocols3.FromStringShapeDeserializer(settings);
752
- }
753
- static {
754
- __name(this, "XmlShapeDeserializer");
755
- }
756
- stringDeserializer;
757
- setSerdeContext(serdeContext) {
758
- this.serdeContext = serdeContext;
759
- this.stringDeserializer.setSerdeContext(serdeContext);
760
- }
761
- /**
762
- * @param schema - describing the data.
763
- * @param bytes - serialized data.
764
- * @param key - used by AwsQuery to step one additional depth into the object before reading it.
765
- */
766
- read(schema, bytes, key) {
767
- const ns = import_schema5.NormalizedSchema.of(schema);
768
- const memberSchemas = ns.getMemberSchemas();
769
- const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
770
- return !!memberNs.getMemberTraits().eventPayload;
771
- });
772
- if (isEventPayload) {
773
- const output = {};
774
- const memberName = Object.keys(memberSchemas)[0];
775
- const eventMemberSchema = memberSchemas[memberName];
776
- if (eventMemberSchema.isBlobSchema()) {
777
- output[memberName] = bytes;
778
- } else {
779
- output[memberName] = this.read(memberSchemas[memberName], bytes);
780
- }
781
- return output;
782
- }
783
- const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf8.toUtf8)(bytes);
784
- const parsedObject = this.parseXml(xmlString);
785
- return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
786
- }
787
- readSchema(_schema, value) {
788
- const ns = import_schema5.NormalizedSchema.of(_schema);
789
- const traits = ns.getMergedTraits();
790
- if (ns.isListSchema() && !Array.isArray(value)) {
791
- return this.readSchema(ns, [value]);
835
+ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
836
+ serializer;
837
+ deserializer;
838
+ codec;
839
+ mixin = new ProtocolLib();
840
+ constructor({ defaultNamespace }) {
841
+ super({
842
+ defaultNamespace,
843
+ });
844
+ const settings = {
845
+ timestampFormat: {
846
+ useTrait: true,
847
+ default: 7,
848
+ },
849
+ httpBindings: true,
850
+ jsonName: true,
851
+ };
852
+ this.codec = new JsonCodec(settings);
853
+ this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
854
+ this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
855
+ }
856
+ getShapeId() {
857
+ return "aws.protocols#restJson1";
858
+ }
859
+ getPayloadCodec() {
860
+ return this.codec;
861
+ }
862
+ setSerdeContext(serdeContext) {
863
+ this.codec.setSerdeContext(serdeContext);
864
+ super.setSerdeContext(serdeContext);
865
+ }
866
+ async serializeRequest(operationSchema, input, context) {
867
+ const request = await super.serializeRequest(operationSchema, input, context);
868
+ const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
869
+ if (!request.headers["content-type"]) {
870
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
871
+ if (contentType) {
872
+ request.headers["content-type"] = contentType;
873
+ }
874
+ }
875
+ if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
876
+ request.body = "{}";
877
+ }
878
+ return request;
879
+ }
880
+ async deserializeResponse(operationSchema, context, response) {
881
+ const output = await super.deserializeResponse(operationSchema, context, response);
882
+ const outputSchema = schema.NormalizedSchema.of(operationSchema.output);
883
+ for (const [name, member] of outputSchema.structIterator()) {
884
+ if (member.getMemberTraits().httpPayload && !(name in output)) {
885
+ output[name] = null;
886
+ }
887
+ }
888
+ return output;
889
+ }
890
+ async handleError(operationSchema, context, response, dataObject, metadata) {
891
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
892
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
893
+ const ns = schema.NormalizedSchema.of(errorSchema);
894
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
895
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
896
+ const exception = new ErrorCtor(message);
897
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
898
+ const output = {};
899
+ for (const [name, member] of ns.structIterator()) {
900
+ const target = member.getMergedTraits().jsonName ?? name;
901
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
902
+ }
903
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
904
+ $fault: ns.getMergedTraits().error,
905
+ message,
906
+ }, output), dataObject);
792
907
  }
908
+ getDefaultContentType() {
909
+ return "application/json";
910
+ }
911
+ }
912
+
913
+ const awsExpectUnion = (value) => {
793
914
  if (value == null) {
794
- return value;
795
- }
796
- if (typeof value === "object") {
797
- const sparse = !!traits.sparse;
798
- const flat = !!traits.xmlFlattened;
799
- if (ns.isListSchema()) {
800
- const listValue = ns.getValueSchema();
801
- const buffer2 = [];
802
- const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
803
- const source = flat ? value : (value[0] ?? value)[sourceKey];
804
- const sourceArray = Array.isArray(source) ? source : [source];
805
- for (const v of sourceArray) {
806
- if (v != null || sparse) {
807
- buffer2.push(this.readSchema(listValue, v));
808
- }
809
- }
810
- return buffer2;
811
- }
812
- const buffer = {};
813
- if (ns.isMapSchema()) {
814
- const keyNs = ns.getKeySchema();
815
- const memberNs = ns.getValueSchema();
816
- let entries;
817
- if (flat) {
818
- entries = Array.isArray(value) ? value : [value];
819
- } else {
820
- entries = Array.isArray(value.entry) ? value.entry : [value.entry];
821
- }
822
- const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
823
- const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
824
- for (const entry of entries) {
825
- const key = entry[keyProperty];
826
- const value2 = entry[valueProperty];
827
- if (value2 != null || sparse) {
828
- buffer[key] = this.readSchema(memberNs, value2);
829
- }
830
- }
831
- return buffer;
832
- }
833
- if (ns.isStructSchema()) {
834
- for (const [memberName, memberSchema] of ns.structIterator()) {
835
- const memberTraits = memberSchema.getMergedTraits();
836
- const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName();
837
- if (value[xmlObjectKey] != null) {
838
- buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
839
- }
840
- }
841
- return buffer;
842
- }
843
- if (ns.isDocumentSchema()) {
844
- return value;
845
- }
846
- throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
847
- }
848
- if (ns.isListSchema()) {
849
- return [];
850
- }
851
- if (ns.isMapSchema() || ns.isStructSchema()) {
852
- return {};
853
- }
854
- return this.stringDeserializer.read(ns, value);
855
- }
856
- parseXml(xml) {
857
- if (xml.length) {
858
- const parser = new import_fast_xml_parser.XMLParser({
859
- attributeNamePrefix: "",
860
- htmlEntities: true,
861
- ignoreAttributes: false,
862
- ignoreDeclaration: true,
863
- parseTagValue: false,
864
- trimValues: false,
865
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
866
- });
867
- parser.addEntity("#xD", "\r");
868
- parser.addEntity("#10", "\n");
869
- let parsedObj;
870
- try {
871
- parsedObj = parser.parse(xml, true);
872
- } catch (e) {
873
- if (e && typeof e === "object") {
874
- Object.defineProperty(e, "$responseBodyText", {
875
- value: xml
876
- });
877
- }
878
- throw e;
879
- }
880
- const textNodeName = "#text";
881
- const key = Object.keys(parsedObj)[0];
882
- const parsedObjToReturn = parsedObj[key];
883
- if (parsedObjToReturn[textNodeName]) {
884
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
885
- delete parsedObjToReturn[textNodeName];
886
- }
887
- return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
915
+ return undefined;
888
916
  }
889
- return {};
890
- }
917
+ if (typeof value === "object" && "__type" in value) {
918
+ delete value.__type;
919
+ }
920
+ return smithyClient.expectUnion(value);
891
921
  };
892
922
 
893
- // src/submodules/protocols/query/QueryShapeSerializer.ts
894
- var import_protocols4 = require("@smithy/core/protocols");
895
- var import_schema6 = require("@smithy/core/schema");
896
- var import_serde6 = require("@smithy/core/serde");
897
- var import_smithy_client4 = require("@smithy/smithy-client");
898
- var import_util_base642 = require("@smithy/util-base64");
899
- var QueryShapeSerializer = class extends SerdeContextConfig {
900
- constructor(settings) {
901
- super();
902
- this.settings = settings;
903
- }
904
- static {
905
- __name(this, "QueryShapeSerializer");
906
- }
907
- buffer;
908
- write(schema, value, prefix = "") {
909
- if (this.buffer === void 0) {
910
- this.buffer = "";
911
- }
912
- const ns = import_schema6.NormalizedSchema.of(schema);
913
- if (prefix && !prefix.endsWith(".")) {
914
- prefix += ".";
915
- }
916
- if (ns.isBlobSchema()) {
917
- if (typeof value === "string" || value instanceof Uint8Array) {
918
- this.writeKey(prefix);
919
- this.writeValue((this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value));
920
- }
921
- } else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
922
- if (value != null) {
923
- this.writeKey(prefix);
924
- this.writeValue(String(value));
925
- }
926
- } else if (ns.isBigIntegerSchema()) {
927
- if (value != null) {
928
- this.writeKey(prefix);
929
- this.writeValue(String(value));
930
- }
931
- } else if (ns.isBigDecimalSchema()) {
932
- if (value != null) {
933
- this.writeKey(prefix);
934
- this.writeValue(value instanceof import_serde6.NumericValue ? value.string : String(value));
935
- }
936
- } else if (ns.isTimestampSchema()) {
937
- if (value instanceof Date) {
938
- this.writeKey(prefix);
939
- const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings);
940
- switch (format) {
941
- case import_schema6.SCHEMA.TIMESTAMP_DATE_TIME:
942
- this.writeValue(value.toISOString().replace(".000Z", "Z"));
943
- break;
944
- case import_schema6.SCHEMA.TIMESTAMP_HTTP_DATE:
945
- this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
946
- break;
947
- case import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
948
- this.writeValue(String(value.getTime() / 1e3));
949
- break;
923
+ class XmlShapeDeserializer extends SerdeContextConfig {
924
+ settings;
925
+ stringDeserializer;
926
+ constructor(settings) {
927
+ super();
928
+ this.settings = settings;
929
+ this.stringDeserializer = new protocols.FromStringShapeDeserializer(settings);
930
+ }
931
+ setSerdeContext(serdeContext) {
932
+ this.serdeContext = serdeContext;
933
+ this.stringDeserializer.setSerdeContext(serdeContext);
934
+ }
935
+ read(schema$1, bytes, key) {
936
+ const ns = schema.NormalizedSchema.of(schema$1);
937
+ const memberSchemas = ns.getMemberSchemas();
938
+ const isEventPayload = ns.isStructSchema() &&
939
+ ns.isMemberSchema() &&
940
+ !!Object.values(memberSchemas).find((memberNs) => {
941
+ return !!memberNs.getMemberTraits().eventPayload;
942
+ });
943
+ if (isEventPayload) {
944
+ const output = {};
945
+ const memberName = Object.keys(memberSchemas)[0];
946
+ const eventMemberSchema = memberSchemas[memberName];
947
+ if (eventMemberSchema.isBlobSchema()) {
948
+ output[memberName] = bytes;
949
+ }
950
+ else {
951
+ output[memberName] = this.read(memberSchemas[memberName], bytes);
952
+ }
953
+ return output;
950
954
  }
951
- }
952
- } else if (ns.isDocumentSchema()) {
953
- throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`);
954
- } else if (ns.isListSchema()) {
955
- if (Array.isArray(value)) {
956
- if (value.length === 0) {
957
- if (this.settings.serializeEmptyLists) {
958
- this.writeKey(prefix);
959
- this.writeValue("");
960
- }
961
- } else {
962
- const member = ns.getValueSchema();
963
- const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
964
- let i = 1;
965
- for (const item of value) {
966
- if (item == null) {
967
- continue;
968
- }
969
- const suffix = this.getKey("member", member.getMergedTraits().xmlName);
970
- const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
971
- this.write(member, item, key);
972
- ++i;
973
- }
974
- }
975
- }
976
- } else if (ns.isMapSchema()) {
977
- if (value && typeof value === "object") {
978
- const keySchema = ns.getKeySchema();
979
- const memberSchema = ns.getValueSchema();
980
- const flat = ns.getMergedTraits().xmlFlattened;
981
- let i = 1;
982
- for (const [k, v] of Object.entries(value)) {
983
- if (v == null) {
984
- continue;
985
- }
986
- const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
987
- const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
988
- const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
989
- const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
990
- this.write(keySchema, k, key);
991
- this.write(memberSchema, v, valueKey);
992
- ++i;
993
- }
994
- }
995
- } else if (ns.isStructSchema()) {
996
- if (value && typeof value === "object") {
997
- for (const [memberName, member] of ns.structIterator()) {
998
- if (value[memberName] == null) {
999
- continue;
1000
- }
1001
- const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
1002
- const key = `${prefix}${suffix}`;
1003
- this.write(member, value[memberName], key);
1004
- }
1005
- }
1006
- } else if (ns.isUnitSchema()) {
1007
- } else {
1008
- throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
1009
- }
1010
- }
1011
- flush() {
1012
- if (this.buffer === void 0) {
1013
- throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
1014
- }
1015
- const str = this.buffer;
1016
- delete this.buffer;
1017
- return str;
1018
- }
1019
- getKey(memberName, xmlName) {
1020
- const key = xmlName ?? memberName;
1021
- if (this.settings.capitalizeKeys) {
1022
- return key[0].toUpperCase() + key.slice(1);
1023
- }
1024
- return key;
1025
- }
1026
- writeKey(key) {
1027
- if (key.endsWith(".")) {
1028
- key = key.slice(0, key.length - 1);
1029
- }
1030
- this.buffer += `&${(0, import_protocols4.extendedEncodeURIComponent)(key)}=`;
1031
- }
1032
- writeValue(value) {
1033
- this.buffer += (0, import_protocols4.extendedEncodeURIComponent)(value);
1034
- }
1035
- };
955
+ const xmlString = (this.serdeContext?.utf8Encoder ?? utilUtf8.toUtf8)(bytes);
956
+ const parsedObject = this.parseXml(xmlString);
957
+ return this.readSchema(schema$1, key ? parsedObject[key] : parsedObject);
958
+ }
959
+ readSchema(_schema, value) {
960
+ const ns = schema.NormalizedSchema.of(_schema);
961
+ if (ns.isUnitSchema()) {
962
+ return;
963
+ }
964
+ const traits = ns.getMergedTraits();
965
+ if (ns.isListSchema() && !Array.isArray(value)) {
966
+ return this.readSchema(ns, [value]);
967
+ }
968
+ if (value == null) {
969
+ return value;
970
+ }
971
+ if (typeof value === "object") {
972
+ const sparse = !!traits.sparse;
973
+ const flat = !!traits.xmlFlattened;
974
+ if (ns.isListSchema()) {
975
+ const listValue = ns.getValueSchema();
976
+ const buffer = [];
977
+ const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
978
+ const source = flat ? value : (value[0] ?? value)[sourceKey];
979
+ const sourceArray = Array.isArray(source) ? source : [source];
980
+ for (const v of sourceArray) {
981
+ if (v != null || sparse) {
982
+ buffer.push(this.readSchema(listValue, v));
983
+ }
984
+ }
985
+ return buffer;
986
+ }
987
+ const buffer = {};
988
+ if (ns.isMapSchema()) {
989
+ const keyNs = ns.getKeySchema();
990
+ const memberNs = ns.getValueSchema();
991
+ let entries;
992
+ if (flat) {
993
+ entries = Array.isArray(value) ? value : [value];
994
+ }
995
+ else {
996
+ entries = Array.isArray(value.entry) ? value.entry : [value.entry];
997
+ }
998
+ const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
999
+ const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
1000
+ for (const entry of entries) {
1001
+ const key = entry[keyProperty];
1002
+ const value = entry[valueProperty];
1003
+ if (value != null || sparse) {
1004
+ buffer[key] = this.readSchema(memberNs, value);
1005
+ }
1006
+ }
1007
+ return buffer;
1008
+ }
1009
+ if (ns.isStructSchema()) {
1010
+ const union = ns.isUnionSchema();
1011
+ let unionSerde;
1012
+ if (union) {
1013
+ unionSerde = new UnionSerde(value, buffer);
1014
+ }
1015
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1016
+ const memberTraits = memberSchema.getMergedTraits();
1017
+ const xmlObjectKey = !memberTraits.httpPayload
1018
+ ? memberSchema.getMemberTraits().xmlName ?? memberName
1019
+ : memberTraits.xmlName ?? memberSchema.getName();
1020
+ if (union) {
1021
+ unionSerde.mark(xmlObjectKey);
1022
+ }
1023
+ if (value[xmlObjectKey] != null) {
1024
+ buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
1025
+ }
1026
+ }
1027
+ if (union) {
1028
+ unionSerde.writeUnknown();
1029
+ }
1030
+ return buffer;
1031
+ }
1032
+ if (ns.isDocumentSchema()) {
1033
+ return value;
1034
+ }
1035
+ throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
1036
+ }
1037
+ if (ns.isListSchema()) {
1038
+ return [];
1039
+ }
1040
+ if (ns.isMapSchema() || ns.isStructSchema()) {
1041
+ return {};
1042
+ }
1043
+ return this.stringDeserializer.read(ns, value);
1044
+ }
1045
+ parseXml(xml) {
1046
+ if (xml.length) {
1047
+ let parsedObj;
1048
+ try {
1049
+ parsedObj = xmlBuilder.parseXML(xml);
1050
+ }
1051
+ catch (e) {
1052
+ if (e && typeof e === "object") {
1053
+ Object.defineProperty(e, "$responseBodyText", {
1054
+ value: xml,
1055
+ });
1056
+ }
1057
+ throw e;
1058
+ }
1059
+ const textNodeName = "#text";
1060
+ const key = Object.keys(parsedObj)[0];
1061
+ const parsedObjToReturn = parsedObj[key];
1062
+ if (parsedObjToReturn[textNodeName]) {
1063
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1064
+ delete parsedObjToReturn[textNodeName];
1065
+ }
1066
+ return smithyClient.getValueFromTextNode(parsedObjToReturn);
1067
+ }
1068
+ return {};
1069
+ }
1070
+ }
1036
1071
 
1037
- // src/submodules/protocols/query/AwsQueryProtocol.ts
1038
- var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
1039
- constructor(options) {
1040
- super({
1041
- defaultNamespace: options.defaultNamespace
1042
- });
1043
- this.options = options;
1044
- const settings = {
1045
- timestampFormat: {
1046
- useTrait: true,
1047
- default: import_schema7.SCHEMA.TIMESTAMP_DATE_TIME
1048
- },
1049
- httpBindings: false,
1050
- xmlNamespace: options.xmlNamespace,
1051
- serviceNamespace: options.defaultNamespace,
1052
- serializeEmptyLists: true
1053
- };
1054
- this.serializer = new QueryShapeSerializer(settings);
1055
- this.deserializer = new XmlShapeDeserializer(settings);
1056
- }
1057
- static {
1058
- __name(this, "AwsQueryProtocol");
1059
- }
1060
- serializer;
1061
- deserializer;
1062
- getShapeId() {
1063
- return "aws.protocols#awsQuery";
1064
- }
1065
- setSerdeContext(serdeContext) {
1066
- this.serializer.setSerdeContext(serdeContext);
1067
- this.deserializer.setSerdeContext(serdeContext);
1068
- }
1069
- getPayloadCodec() {
1070
- throw new Error("AWSQuery protocol has no payload codec.");
1071
- }
1072
- async serializeRequest(operationSchema, input, context) {
1073
- const request = await super.serializeRequest(operationSchema, input, context);
1074
- if (!request.path.endsWith("/")) {
1075
- request.path += "/";
1076
- }
1077
- Object.assign(request.headers, {
1078
- "content-type": `application/x-www-form-urlencoded`
1079
- });
1080
- if ((0, import_schema7.deref)(operationSchema.input) === "unit" || !request.body) {
1081
- request.body = "";
1082
- }
1083
- request.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request.body;
1084
- if (request.body.endsWith("&")) {
1085
- request.body = request.body.slice(-1);
1086
- }
1087
- try {
1088
- request.headers["content-length"] = String((0, import_util_body_length_browser3.calculateBodyLength)(request.body));
1089
- } catch (e) {
1090
- }
1091
- return request;
1092
- }
1093
- async deserializeResponse(operationSchema, context, response) {
1094
- const deserializer = this.deserializer;
1095
- const ns = import_schema7.NormalizedSchema.of(operationSchema.output);
1096
- const dataObject = {};
1097
- if (response.statusCode >= 300) {
1098
- const bytes2 = await (0, import_protocols5.collectBody)(response.body, context);
1099
- if (bytes2.byteLength > 0) {
1100
- Object.assign(dataObject, await deserializer.read(import_schema7.SCHEMA.DOCUMENT, bytes2));
1101
- }
1102
- await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
1103
- }
1104
- for (const header in response.headers) {
1105
- const value = response.headers[header];
1106
- delete response.headers[header];
1107
- response.headers[header.toLowerCase()] = value;
1108
- }
1109
- const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : void 0;
1110
- const bytes = await (0, import_protocols5.collectBody)(response.body, context);
1111
- if (bytes.byteLength > 0) {
1112
- Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1113
- }
1114
- const output = {
1115
- $metadata: this.deserializeMetadata(response),
1116
- ...dataObject
1117
- };
1118
- return output;
1119
- }
1120
- /**
1121
- * EC2 Query overrides this.
1122
- */
1123
- useNestedResult() {
1124
- return true;
1125
- }
1126
- async handleError(operationSchema, context, response, dataObject, metadata) {
1127
- const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1128
- let namespace = this.options.defaultNamespace;
1129
- let errorName = errorIdentifier;
1130
- if (errorIdentifier.includes("#")) {
1131
- [namespace, errorName] = errorIdentifier.split("#");
1132
- }
1133
- const errorDataSource = this.loadQueryError(dataObject);
1134
- const registry = import_schema7.TypeRegistry.for(namespace);
1135
- let errorSchema;
1136
- try {
1137
- errorSchema = registry.find(
1138
- (schema) => import_schema7.NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName
1139
- );
1140
- if (!errorSchema) {
1141
- errorSchema = registry.getSchema(errorIdentifier);
1142
- }
1143
- } catch (e) {
1144
- const baseExceptionSchema = import_schema7.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
1145
- if (baseExceptionSchema) {
1146
- const ErrorCtor = baseExceptionSchema.ctor;
1147
- throw Object.assign(new ErrorCtor(errorName), errorDataSource);
1148
- }
1149
- throw new Error(errorName);
1150
- }
1151
- const ns = import_schema7.NormalizedSchema.of(errorSchema);
1152
- const message = this.loadQueryErrorMessage(dataObject);
1153
- const exception = new errorSchema.ctor(message);
1154
- const output = {};
1155
- for (const [name, member] of ns.structIterator()) {
1156
- const target = member.getMergedTraits().xmlName ?? name;
1157
- const value = errorDataSource[target] ?? dataObject[target];
1158
- output[name] = this.deserializer.readSchema(member, value);
1159
- }
1160
- Object.assign(exception, {
1161
- $metadata: metadata,
1162
- $response: response,
1163
- $fault: ns.getMergedTraits().error,
1164
- message,
1165
- ...output
1166
- });
1167
- throw exception;
1168
- }
1169
- /**
1170
- * The variations in the error and error message locations are attributed to
1171
- * divergence between AWS Query and EC2 Query behavior.
1172
- */
1173
- loadQueryErrorCode(output, data) {
1174
- const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
1175
- if (code !== void 0) {
1176
- return code;
1072
+ class QueryShapeSerializer extends SerdeContextConfig {
1073
+ settings;
1074
+ buffer;
1075
+ constructor(settings) {
1076
+ super();
1077
+ this.settings = settings;
1078
+ }
1079
+ write(schema$1, value, prefix = "") {
1080
+ if (this.buffer === undefined) {
1081
+ this.buffer = "";
1082
+ }
1083
+ const ns = schema.NormalizedSchema.of(schema$1);
1084
+ if (prefix && !prefix.endsWith(".")) {
1085
+ prefix += ".";
1086
+ }
1087
+ if (ns.isBlobSchema()) {
1088
+ if (typeof value === "string" || value instanceof Uint8Array) {
1089
+ this.writeKey(prefix);
1090
+ this.writeValue((this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value));
1091
+ }
1092
+ }
1093
+ else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
1094
+ if (value != null) {
1095
+ this.writeKey(prefix);
1096
+ this.writeValue(String(value));
1097
+ }
1098
+ else if (ns.isIdempotencyToken()) {
1099
+ this.writeKey(prefix);
1100
+ this.writeValue(serde.generateIdempotencyToken());
1101
+ }
1102
+ }
1103
+ else if (ns.isBigIntegerSchema()) {
1104
+ if (value != null) {
1105
+ this.writeKey(prefix);
1106
+ this.writeValue(String(value));
1107
+ }
1108
+ }
1109
+ else if (ns.isBigDecimalSchema()) {
1110
+ if (value != null) {
1111
+ this.writeKey(prefix);
1112
+ this.writeValue(value instanceof serde.NumericValue ? value.string : String(value));
1113
+ }
1114
+ }
1115
+ else if (ns.isTimestampSchema()) {
1116
+ if (value instanceof Date) {
1117
+ this.writeKey(prefix);
1118
+ const format = protocols.determineTimestampFormat(ns, this.settings);
1119
+ switch (format) {
1120
+ case 5:
1121
+ this.writeValue(value.toISOString().replace(".000Z", "Z"));
1122
+ break;
1123
+ case 6:
1124
+ this.writeValue(smithyClient.dateToUtcString(value));
1125
+ break;
1126
+ case 7:
1127
+ this.writeValue(String(value.getTime() / 1000));
1128
+ break;
1129
+ }
1130
+ }
1131
+ }
1132
+ else if (ns.isDocumentSchema()) {
1133
+ if (Array.isArray(value)) {
1134
+ this.write(64 | 15, value, prefix);
1135
+ }
1136
+ else if (value instanceof Date) {
1137
+ this.write(4, value, prefix);
1138
+ }
1139
+ else if (value instanceof Uint8Array) {
1140
+ this.write(21, value, prefix);
1141
+ }
1142
+ else if (value && typeof value === "object") {
1143
+ this.write(128 | 15, value, prefix);
1144
+ }
1145
+ else {
1146
+ this.writeKey(prefix);
1147
+ this.writeValue(String(value));
1148
+ }
1149
+ }
1150
+ else if (ns.isListSchema()) {
1151
+ if (Array.isArray(value)) {
1152
+ if (value.length === 0) {
1153
+ if (this.settings.serializeEmptyLists) {
1154
+ this.writeKey(prefix);
1155
+ this.writeValue("");
1156
+ }
1157
+ }
1158
+ else {
1159
+ const member = ns.getValueSchema();
1160
+ const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
1161
+ let i = 1;
1162
+ for (const item of value) {
1163
+ if (item == null) {
1164
+ continue;
1165
+ }
1166
+ const suffix = this.getKey("member", member.getMergedTraits().xmlName);
1167
+ const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
1168
+ this.write(member, item, key);
1169
+ ++i;
1170
+ }
1171
+ }
1172
+ }
1173
+ }
1174
+ else if (ns.isMapSchema()) {
1175
+ if (value && typeof value === "object") {
1176
+ const keySchema = ns.getKeySchema();
1177
+ const memberSchema = ns.getValueSchema();
1178
+ const flat = ns.getMergedTraits().xmlFlattened;
1179
+ let i = 1;
1180
+ for (const [k, v] of Object.entries(value)) {
1181
+ if (v == null) {
1182
+ continue;
1183
+ }
1184
+ const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
1185
+ const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
1186
+ const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
1187
+ const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
1188
+ this.write(keySchema, k, key);
1189
+ this.write(memberSchema, v, valueKey);
1190
+ ++i;
1191
+ }
1192
+ }
1193
+ }
1194
+ else if (ns.isStructSchema()) {
1195
+ if (value && typeof value === "object") {
1196
+ let didWriteMember = false;
1197
+ for (const [memberName, member] of serializingStructIterator(ns, value)) {
1198
+ if (value[memberName] == null && !member.isIdempotencyToken()) {
1199
+ continue;
1200
+ }
1201
+ const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
1202
+ const key = `${prefix}${suffix}`;
1203
+ this.write(member, value[memberName], key);
1204
+ didWriteMember = true;
1205
+ }
1206
+ if (!didWriteMember && ns.isUnionSchema()) {
1207
+ const { $unknown } = value;
1208
+ if (Array.isArray($unknown)) {
1209
+ const [k, v] = $unknown;
1210
+ const key = `${prefix}${k}`;
1211
+ this.write(15, v, key);
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ else if (ns.isUnitSchema()) ;
1217
+ else {
1218
+ throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
1219
+ }
1177
1220
  }
1178
- if (output.statusCode == 404) {
1179
- return "NotFound";
1180
- }
1181
- }
1182
- loadQueryError(data) {
1183
- return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
1184
- }
1185
- loadQueryErrorMessage(data) {
1186
- const errorData = this.loadQueryError(data);
1187
- return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
1188
- }
1189
- };
1221
+ flush() {
1222
+ if (this.buffer === undefined) {
1223
+ throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
1224
+ }
1225
+ const str = this.buffer;
1226
+ delete this.buffer;
1227
+ return str;
1228
+ }
1229
+ getKey(memberName, xmlName) {
1230
+ const key = xmlName ?? memberName;
1231
+ if (this.settings.capitalizeKeys) {
1232
+ return key[0].toUpperCase() + key.slice(1);
1233
+ }
1234
+ return key;
1235
+ }
1236
+ writeKey(key) {
1237
+ if (key.endsWith(".")) {
1238
+ key = key.slice(0, key.length - 1);
1239
+ }
1240
+ this.buffer += `&${protocols.extendedEncodeURIComponent(key)}=`;
1241
+ }
1242
+ writeValue(value) {
1243
+ this.buffer += protocols.extendedEncodeURIComponent(value);
1244
+ }
1245
+ }
1190
1246
 
1191
- // src/submodules/protocols/query/AwsEc2QueryProtocol.ts
1192
- var AwsEc2QueryProtocol = class extends AwsQueryProtocol {
1193
- constructor(options) {
1194
- super(options);
1195
- this.options = options;
1196
- const ec2Settings = {
1197
- capitalizeKeys: true,
1198
- flattenLists: true,
1199
- serializeEmptyLists: false
1200
- };
1201
- Object.assign(this.serializer.settings, ec2Settings);
1202
- }
1203
- static {
1204
- __name(this, "AwsEc2QueryProtocol");
1205
- }
1206
- /**
1207
- * EC2 Query reads XResponse.XResult instead of XResponse directly.
1208
- */
1209
- useNestedResult() {
1210
- return false;
1211
- }
1212
- };
1247
+ class AwsQueryProtocol extends protocols.RpcProtocol {
1248
+ options;
1249
+ serializer;
1250
+ deserializer;
1251
+ mixin = new ProtocolLib();
1252
+ constructor(options) {
1253
+ super({
1254
+ defaultNamespace: options.defaultNamespace,
1255
+ });
1256
+ this.options = options;
1257
+ const settings = {
1258
+ timestampFormat: {
1259
+ useTrait: true,
1260
+ default: 5,
1261
+ },
1262
+ httpBindings: false,
1263
+ xmlNamespace: options.xmlNamespace,
1264
+ serviceNamespace: options.defaultNamespace,
1265
+ serializeEmptyLists: true,
1266
+ };
1267
+ this.serializer = new QueryShapeSerializer(settings);
1268
+ this.deserializer = new XmlShapeDeserializer(settings);
1269
+ }
1270
+ getShapeId() {
1271
+ return "aws.protocols#awsQuery";
1272
+ }
1273
+ setSerdeContext(serdeContext) {
1274
+ this.serializer.setSerdeContext(serdeContext);
1275
+ this.deserializer.setSerdeContext(serdeContext);
1276
+ }
1277
+ getPayloadCodec() {
1278
+ throw new Error("AWSQuery protocol has no payload codec.");
1279
+ }
1280
+ async serializeRequest(operationSchema, input, context) {
1281
+ const request = await super.serializeRequest(operationSchema, input, context);
1282
+ if (!request.path.endsWith("/")) {
1283
+ request.path += "/";
1284
+ }
1285
+ Object.assign(request.headers, {
1286
+ "content-type": `application/x-www-form-urlencoded`,
1287
+ });
1288
+ if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1289
+ request.body = "";
1290
+ }
1291
+ const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
1292
+ request.body = `Action=${action}&Version=${this.options.version}` + request.body;
1293
+ if (request.body.endsWith("&")) {
1294
+ request.body = request.body.slice(-1);
1295
+ }
1296
+ return request;
1297
+ }
1298
+ async deserializeResponse(operationSchema, context, response) {
1299
+ const deserializer = this.deserializer;
1300
+ const ns = schema.NormalizedSchema.of(operationSchema.output);
1301
+ const dataObject = {};
1302
+ if (response.statusCode >= 300) {
1303
+ const bytes = await protocols.collectBody(response.body, context);
1304
+ if (bytes.byteLength > 0) {
1305
+ Object.assign(dataObject, await deserializer.read(15, bytes));
1306
+ }
1307
+ await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
1308
+ }
1309
+ for (const header in response.headers) {
1310
+ const value = response.headers[header];
1311
+ delete response.headers[header];
1312
+ response.headers[header.toLowerCase()] = value;
1313
+ }
1314
+ const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
1315
+ const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined;
1316
+ const bytes = await protocols.collectBody(response.body, context);
1317
+ if (bytes.byteLength > 0) {
1318
+ Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1319
+ }
1320
+ const output = {
1321
+ $metadata: this.deserializeMetadata(response),
1322
+ ...dataObject,
1323
+ };
1324
+ return output;
1325
+ }
1326
+ useNestedResult() {
1327
+ return true;
1328
+ }
1329
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1330
+ const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1331
+ const errorData = this.loadQueryError(dataObject);
1332
+ const message = this.loadQueryErrorMessage(dataObject);
1333
+ errorData.message = message;
1334
+ errorData.Error = {
1335
+ Type: errorData.Type,
1336
+ Code: errorData.Code,
1337
+ Message: message,
1338
+ };
1339
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
1340
+ const ns = schema.NormalizedSchema.of(errorSchema);
1341
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
1342
+ const exception = new ErrorCtor(message);
1343
+ const output = {
1344
+ Type: errorData.Error.Type,
1345
+ Code: errorData.Error.Code,
1346
+ Error: errorData.Error,
1347
+ };
1348
+ for (const [name, member] of ns.structIterator()) {
1349
+ const target = member.getMergedTraits().xmlName ?? name;
1350
+ const value = errorData[target] ?? dataObject[target];
1351
+ output[name] = this.deserializer.readSchema(member, value);
1352
+ }
1353
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1354
+ $fault: ns.getMergedTraits().error,
1355
+ message,
1356
+ }, output), dataObject);
1357
+ }
1358
+ loadQueryErrorCode(output, data) {
1359
+ const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
1360
+ if (code !== undefined) {
1361
+ return code;
1362
+ }
1363
+ if (output.statusCode == 404) {
1364
+ return "NotFound";
1365
+ }
1366
+ }
1367
+ loadQueryError(data) {
1368
+ return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
1369
+ }
1370
+ loadQueryErrorMessage(data) {
1371
+ const errorData = this.loadQueryError(data);
1372
+ return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
1373
+ }
1374
+ getDefaultContentType() {
1375
+ return "application/x-www-form-urlencoded";
1376
+ }
1377
+ }
1213
1378
 
1214
- // src/submodules/protocols/xml/AwsRestXmlProtocol.ts
1215
- var import_protocols6 = require("@smithy/core/protocols");
1216
- var import_schema9 = require("@smithy/core/schema");
1217
- var import_util_body_length_browser4 = require("@smithy/util-body-length-browser");
1379
+ class AwsEc2QueryProtocol extends AwsQueryProtocol {
1380
+ options;
1381
+ constructor(options) {
1382
+ super(options);
1383
+ this.options = options;
1384
+ const ec2Settings = {
1385
+ capitalizeKeys: true,
1386
+ flattenLists: true,
1387
+ serializeEmptyLists: false,
1388
+ };
1389
+ Object.assign(this.serializer.settings, ec2Settings);
1390
+ }
1391
+ useNestedResult() {
1392
+ return false;
1393
+ }
1394
+ }
1218
1395
 
1219
- // src/submodules/protocols/xml/parseXmlBody.ts
1220
- var import_smithy_client5 = require("@smithy/smithy-client");
1221
- var import_fast_xml_parser2 = require("fast-xml-parser");
1222
- var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1223
- if (encoded.length) {
1224
- const parser = new import_fast_xml_parser2.XMLParser({
1225
- attributeNamePrefix: "",
1226
- htmlEntities: true,
1227
- ignoreAttributes: false,
1228
- ignoreDeclaration: true,
1229
- parseTagValue: false,
1230
- trimValues: false,
1231
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
1232
- });
1233
- parser.addEntity("#xD", "\r");
1234
- parser.addEntity("#10", "\n");
1235
- let parsedObj;
1236
- try {
1237
- parsedObj = parser.parse(encoded, true);
1238
- } catch (e) {
1239
- if (e && typeof e === "object") {
1240
- Object.defineProperty(e, "$responseBodyText", {
1241
- value: encoded
1242
- });
1243
- }
1244
- throw e;
1245
- }
1246
- const textNodeName = "#text";
1247
- const key = Object.keys(parsedObj)[0];
1248
- const parsedObjToReturn = parsedObj[key];
1249
- if (parsedObjToReturn[textNodeName]) {
1250
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1251
- delete parsedObjToReturn[textNodeName];
1252
- }
1253
- return (0, import_smithy_client5.getValueFromTextNode)(parsedObjToReturn);
1254
- }
1255
- return {};
1256
- }), "parseXmlBody");
1257
- var parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1258
- const value = await parseXmlBody(errorBody, context);
1259
- if (value.Error) {
1260
- value.Error.message = value.Error.message ?? value.Error.Message;
1261
- }
1262
- return value;
1263
- }, "parseXmlErrorBody");
1264
- var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
1265
- if (data?.Error?.Code !== void 0) {
1266
- return data.Error.Code;
1267
- }
1268
- if (data?.Code !== void 0) {
1269
- return data.Code;
1270
- }
1271
- if (output.statusCode == 404) {
1272
- return "NotFound";
1273
- }
1274
- }, "loadRestXmlErrorCode");
1396
+ const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1397
+ if (encoded.length) {
1398
+ let parsedObj;
1399
+ try {
1400
+ parsedObj = xmlBuilder.parseXML(encoded);
1401
+ }
1402
+ catch (e) {
1403
+ if (e && typeof e === "object") {
1404
+ Object.defineProperty(e, "$responseBodyText", {
1405
+ value: encoded,
1406
+ });
1407
+ }
1408
+ throw e;
1409
+ }
1410
+ const textNodeName = "#text";
1411
+ const key = Object.keys(parsedObj)[0];
1412
+ const parsedObjToReturn = parsedObj[key];
1413
+ if (parsedObjToReturn[textNodeName]) {
1414
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1415
+ delete parsedObjToReturn[textNodeName];
1416
+ }
1417
+ return smithyClient.getValueFromTextNode(parsedObjToReturn);
1418
+ }
1419
+ return {};
1420
+ });
1421
+ const parseXmlErrorBody = async (errorBody, context) => {
1422
+ const value = await parseXmlBody(errorBody, context);
1423
+ if (value.Error) {
1424
+ value.Error.message = value.Error.message ?? value.Error.Message;
1425
+ }
1426
+ return value;
1427
+ };
1428
+ const loadRestXmlErrorCode = (output, data) => {
1429
+ if (data?.Error?.Code !== undefined) {
1430
+ return data.Error.Code;
1431
+ }
1432
+ if (data?.Code !== undefined) {
1433
+ return data.Code;
1434
+ }
1435
+ if (output.statusCode == 404) {
1436
+ return "NotFound";
1437
+ }
1438
+ };
1275
1439
 
1276
- // src/submodules/protocols/xml/XmlShapeSerializer.ts
1277
- var import_xml_builder = require("@aws-sdk/xml-builder");
1278
- var import_schema8 = require("@smithy/core/schema");
1279
- var import_serde7 = require("@smithy/core/serde");
1280
- var import_smithy_client6 = require("@smithy/smithy-client");
1281
- var import_util_base643 = require("@smithy/util-base64");
1282
- var XmlShapeSerializer = class extends SerdeContextConfig {
1283
- constructor(settings) {
1284
- super();
1285
- this.settings = settings;
1286
- }
1287
- static {
1288
- __name(this, "XmlShapeSerializer");
1289
- }
1290
- stringBuffer;
1291
- byteBuffer;
1292
- buffer;
1293
- write(schema, value) {
1294
- const ns = import_schema8.NormalizedSchema.of(schema);
1295
- if (ns.isStringSchema() && typeof value === "string") {
1296
- this.stringBuffer = value;
1297
- } else if (ns.isBlobSchema()) {
1298
- this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(value);
1299
- } else {
1300
- this.buffer = this.writeStruct(ns, value, void 0);
1301
- const traits = ns.getMergedTraits();
1302
- if (traits.httpPayload && !traits.xmlName) {
1303
- this.buffer.withName(ns.getName());
1304
- }
1305
- }
1306
- }
1307
- flush() {
1308
- if (this.byteBuffer !== void 0) {
1309
- const bytes = this.byteBuffer;
1310
- delete this.byteBuffer;
1311
- return bytes;
1312
- }
1313
- if (this.stringBuffer !== void 0) {
1314
- const str = this.stringBuffer;
1315
- delete this.stringBuffer;
1316
- return str;
1317
- }
1318
- const buffer = this.buffer;
1319
- if (this.settings.xmlNamespace) {
1320
- if (!buffer?.attributes?.["xmlns"]) {
1321
- buffer.addAttribute("xmlns", this.settings.xmlNamespace);
1322
- }
1323
- }
1324
- delete this.buffer;
1325
- return buffer.toString();
1326
- }
1327
- writeStruct(ns, value, parentXmlns) {
1328
- const traits = ns.getMergedTraits();
1329
- const name = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName();
1330
- if (!name || !ns.isStructSchema()) {
1331
- throw new Error(
1332
- `@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(
1333
- true
1334
- )}.`
1335
- );
1336
- }
1337
- const structXmlNode = import_xml_builder.XmlNode.of(name);
1338
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1339
- if (xmlns) {
1340
- structXmlNode.addAttribute(xmlnsAttr, xmlns);
1341
- }
1342
- for (const [memberName, memberSchema] of ns.structIterator()) {
1343
- const val = value[memberName];
1344
- if (val != null) {
1345
- if (memberSchema.getMergedTraits().xmlAttribute) {
1346
- structXmlNode.addAttribute(
1347
- memberSchema.getMergedTraits().xmlName ?? memberName,
1348
- this.writeSimple(memberSchema, val)
1349
- );
1350
- continue;
1351
- }
1352
- if (memberSchema.isListSchema()) {
1353
- this.writeList(memberSchema, val, structXmlNode, xmlns);
1354
- } else if (memberSchema.isMapSchema()) {
1355
- this.writeMap(memberSchema, val, structXmlNode, xmlns);
1356
- } else if (memberSchema.isStructSchema()) {
1357
- structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1358
- } else {
1359
- const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1360
- this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1361
- structXmlNode.addChildNode(memberNode);
1362
- }
1363
- }
1364
- }
1365
- return structXmlNode;
1366
- }
1367
- writeList(listMember, array, container, parentXmlns) {
1368
- if (!listMember.isMemberSchema()) {
1369
- throw new Error(
1370
- `@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`
1371
- );
1372
- }
1373
- const listTraits = listMember.getMergedTraits();
1374
- const listValueSchema = listMember.getValueSchema();
1375
- const listValueTraits = listValueSchema.getMergedTraits();
1376
- const sparse = !!listValueTraits.sparse;
1377
- const flat = !!listTraits.xmlFlattened;
1378
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
1379
- const writeItem = /* @__PURE__ */ __name((container2, value) => {
1380
- if (listValueSchema.isListSchema()) {
1381
- this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns);
1382
- } else if (listValueSchema.isMapSchema()) {
1383
- this.writeMap(listValueSchema, value, container2, xmlns);
1384
- } else if (listValueSchema.isStructSchema()) {
1385
- const struct = this.writeStruct(listValueSchema, value, xmlns);
1386
- container2.addChildNode(
1387
- struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")
1388
- );
1389
- } else {
1390
- const listItemNode = import_xml_builder.XmlNode.of(
1391
- flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"
1392
- );
1393
- this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
1394
- container2.addChildNode(listItemNode);
1395
- }
1396
- }, "writeItem");
1397
- if (flat) {
1398
- for (const value of array) {
1399
- if (sparse || value != null) {
1400
- writeItem(container, value);
1401
- }
1402
- }
1403
- } else {
1404
- const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1405
- if (xmlns) {
1406
- listNode.addAttribute(xmlnsAttr, xmlns);
1407
- }
1408
- for (const value of array) {
1409
- if (sparse || value != null) {
1410
- writeItem(listNode, value);
1411
- }
1412
- }
1413
- container.addChildNode(listNode);
1414
- }
1415
- }
1416
- writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
1417
- if (!mapMember.isMemberSchema()) {
1418
- throw new Error(
1419
- `@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`
1420
- );
1421
- }
1422
- const mapTraits = mapMember.getMergedTraits();
1423
- const mapKeySchema = mapMember.getKeySchema();
1424
- const mapKeyTraits = mapKeySchema.getMergedTraits();
1425
- const keyTag = mapKeyTraits.xmlName ?? "key";
1426
- const mapValueSchema = mapMember.getValueSchema();
1427
- const mapValueTraits = mapValueSchema.getMergedTraits();
1428
- const valueTag = mapValueTraits.xmlName ?? "value";
1429
- const sparse = !!mapValueTraits.sparse;
1430
- const flat = !!mapTraits.xmlFlattened;
1431
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
1432
- const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
1433
- const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
1434
- const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
1435
- if (keyXmlns) {
1436
- keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
1437
- }
1438
- entry.addChildNode(keyNode);
1439
- let valueNode = import_xml_builder.XmlNode.of(valueTag);
1440
- if (mapValueSchema.isListSchema()) {
1441
- this.writeList(mapValueSchema, val, valueNode, xmlns);
1442
- } else if (mapValueSchema.isMapSchema()) {
1443
- this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
1444
- } else if (mapValueSchema.isStructSchema()) {
1445
- valueNode = this.writeStruct(mapValueSchema, val, xmlns);
1446
- } else {
1447
- this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
1448
- }
1449
- entry.addChildNode(valueNode);
1450
- }, "addKeyValue");
1451
- if (flat) {
1452
- for (const [key, val] of Object.entries(map)) {
1453
- if (sparse || val != null) {
1454
- const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1455
- addKeyValue(entry, key, val);
1456
- container.addChildNode(entry);
1457
- }
1458
- }
1459
- } else {
1460
- let mapNode;
1461
- if (!containerIsMap) {
1462
- mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1440
+ class XmlShapeSerializer extends SerdeContextConfig {
1441
+ settings;
1442
+ stringBuffer;
1443
+ byteBuffer;
1444
+ buffer;
1445
+ constructor(settings) {
1446
+ super();
1447
+ this.settings = settings;
1448
+ }
1449
+ write(schema$1, value) {
1450
+ const ns = schema.NormalizedSchema.of(schema$1);
1451
+ if (ns.isStringSchema() && typeof value === "string") {
1452
+ this.stringBuffer = value;
1453
+ }
1454
+ else if (ns.isBlobSchema()) {
1455
+ this.byteBuffer =
1456
+ "byteLength" in value
1457
+ ? value
1458
+ : (this.serdeContext?.base64Decoder ?? utilBase64.fromBase64)(value);
1459
+ }
1460
+ else {
1461
+ this.buffer = this.writeStruct(ns, value, undefined);
1462
+ const traits = ns.getMergedTraits();
1463
+ if (traits.httpPayload && !traits.xmlName) {
1464
+ this.buffer.withName(ns.getName());
1465
+ }
1466
+ }
1467
+ }
1468
+ flush() {
1469
+ if (this.byteBuffer !== undefined) {
1470
+ const bytes = this.byteBuffer;
1471
+ delete this.byteBuffer;
1472
+ return bytes;
1473
+ }
1474
+ if (this.stringBuffer !== undefined) {
1475
+ const str = this.stringBuffer;
1476
+ delete this.stringBuffer;
1477
+ return str;
1478
+ }
1479
+ const buffer = this.buffer;
1480
+ if (this.settings.xmlNamespace) {
1481
+ if (!buffer?.attributes?.["xmlns"]) {
1482
+ buffer.addAttribute("xmlns", this.settings.xmlNamespace);
1483
+ }
1484
+ }
1485
+ delete this.buffer;
1486
+ return buffer.toString();
1487
+ }
1488
+ writeStruct(ns, value, parentXmlns) {
1489
+ const traits = ns.getMergedTraits();
1490
+ const name = ns.isMemberSchema() && !traits.httpPayload
1491
+ ? ns.getMemberTraits().xmlName ?? ns.getMemberName()
1492
+ : traits.xmlName ?? ns.getName();
1493
+ if (!name || !ns.isStructSchema()) {
1494
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
1495
+ }
1496
+ const structXmlNode = xmlBuilder.XmlNode.of(name);
1497
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1498
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
1499
+ const val = value[memberName];
1500
+ if (val != null || memberSchema.isIdempotencyToken()) {
1501
+ if (memberSchema.getMergedTraits().xmlAttribute) {
1502
+ structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
1503
+ continue;
1504
+ }
1505
+ if (memberSchema.isListSchema()) {
1506
+ this.writeList(memberSchema, val, structXmlNode, xmlns);
1507
+ }
1508
+ else if (memberSchema.isMapSchema()) {
1509
+ this.writeMap(memberSchema, val, structXmlNode, xmlns);
1510
+ }
1511
+ else if (memberSchema.isStructSchema()) {
1512
+ structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1513
+ }
1514
+ else {
1515
+ const memberNode = xmlBuilder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1516
+ this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1517
+ structXmlNode.addChildNode(memberNode);
1518
+ }
1519
+ }
1520
+ }
1521
+ const { $unknown } = value;
1522
+ if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) {
1523
+ const [k, v] = $unknown;
1524
+ const node = xmlBuilder.XmlNode.of(k);
1525
+ if (typeof v !== "string") {
1526
+ if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) {
1527
+ structXmlNode.addChildNode(value);
1528
+ }
1529
+ else {
1530
+ throw new Error(`@aws-sdk - $unknown union member in XML requires ` +
1531
+ `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);
1532
+ }
1533
+ }
1534
+ this.writeSimpleInto(0, v, node, xmlns);
1535
+ structXmlNode.addChildNode(node);
1536
+ }
1463
1537
  if (xmlns) {
1464
- mapNode.addAttribute(xmlnsAttr, xmlns);
1465
- }
1466
- container.addChildNode(mapNode);
1467
- }
1468
- for (const [key, val] of Object.entries(map)) {
1469
- if (sparse || val != null) {
1470
- const entry = import_xml_builder.XmlNode.of("entry");
1471
- addKeyValue(entry, key, val);
1472
- (containerIsMap ? container : mapNode).addChildNode(entry);
1473
- }
1474
- }
1475
- }
1476
- }
1477
- writeSimple(_schema, value) {
1478
- if (null === value) {
1479
- throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
1480
- }
1481
- const ns = import_schema8.NormalizedSchema.of(_schema);
1482
- let nodeContents = null;
1483
- if (value && typeof value === "object") {
1484
- if (ns.isBlobSchema()) {
1485
- nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value);
1486
- } else if (ns.isTimestampSchema() && value instanceof Date) {
1487
- const options = this.settings.timestampFormat;
1488
- const format = options.useTrait ? ns.getSchema() === import_schema8.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
1489
- switch (format) {
1490
- case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME:
1491
- nodeContents = value.toISOString().replace(".000Z", "Z");
1492
- break;
1493
- case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE:
1494
- nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
1495
- break;
1496
- case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
1497
- nodeContents = String(value.getTime() / 1e3);
1498
- break;
1499
- default:
1500
- console.warn("Missing timestamp format, using http date", value);
1501
- nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
1502
- break;
1538
+ structXmlNode.addAttribute(xmlnsAttr, xmlns);
1503
1539
  }
1504
- } else if (ns.isBigDecimalSchema() && value) {
1505
- if (value instanceof import_serde7.NumericValue) {
1506
- return value.string;
1507
- }
1508
- return String(value);
1509
- } else if (ns.isMapSchema() || ns.isListSchema()) {
1510
- throw new Error(
1511
- "@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."
1512
- );
1513
- } else {
1514
- throw new Error(
1515
- `@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(
1516
- true
1517
- )}`
1518
- );
1519
- }
1520
- }
1521
- if (ns.isStringSchema() || ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1522
- nodeContents = String(value);
1523
- }
1524
- if (nodeContents === null) {
1525
- throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
1526
- }
1527
- return nodeContents;
1528
- }
1529
- writeSimpleInto(_schema, value, into, parentXmlns) {
1530
- const nodeContents = this.writeSimple(_schema, value);
1531
- const ns = import_schema8.NormalizedSchema.of(_schema);
1532
- const content = new import_xml_builder.XmlText(nodeContents);
1533
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1534
- if (xmlns) {
1535
- into.addAttribute(xmlnsAttr, xmlns);
1536
- }
1537
- into.addChildNode(content);
1538
- }
1539
- getXmlnsAttribute(ns, parentXmlns) {
1540
- const traits = ns.getMergedTraits();
1541
- const [prefix, xmlns] = traits.xmlNamespace ?? [];
1542
- if (xmlns && xmlns !== parentXmlns) {
1543
- return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
1544
- }
1545
- return [void 0, void 0];
1546
- }
1547
- };
1540
+ return structXmlNode;
1541
+ }
1542
+ writeList(listMember, array, container, parentXmlns) {
1543
+ if (!listMember.isMemberSchema()) {
1544
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
1545
+ }
1546
+ const listTraits = listMember.getMergedTraits();
1547
+ const listValueSchema = listMember.getValueSchema();
1548
+ const listValueTraits = listValueSchema.getMergedTraits();
1549
+ const sparse = !!listValueTraits.sparse;
1550
+ const flat = !!listTraits.xmlFlattened;
1551
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
1552
+ const writeItem = (container, value) => {
1553
+ if (listValueSchema.isListSchema()) {
1554
+ this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
1555
+ }
1556
+ else if (listValueSchema.isMapSchema()) {
1557
+ this.writeMap(listValueSchema, value, container, xmlns);
1558
+ }
1559
+ else if (listValueSchema.isStructSchema()) {
1560
+ const struct = this.writeStruct(listValueSchema, value, xmlns);
1561
+ container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
1562
+ }
1563
+ else {
1564
+ const listItemNode = xmlBuilder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
1565
+ this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
1566
+ container.addChildNode(listItemNode);
1567
+ }
1568
+ };
1569
+ if (flat) {
1570
+ for (const value of array) {
1571
+ if (sparse || value != null) {
1572
+ writeItem(container, value);
1573
+ }
1574
+ }
1575
+ }
1576
+ else {
1577
+ const listNode = xmlBuilder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1578
+ if (xmlns) {
1579
+ listNode.addAttribute(xmlnsAttr, xmlns);
1580
+ }
1581
+ for (const value of array) {
1582
+ if (sparse || value != null) {
1583
+ writeItem(listNode, value);
1584
+ }
1585
+ }
1586
+ container.addChildNode(listNode);
1587
+ }
1588
+ }
1589
+ writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
1590
+ if (!mapMember.isMemberSchema()) {
1591
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
1592
+ }
1593
+ const mapTraits = mapMember.getMergedTraits();
1594
+ const mapKeySchema = mapMember.getKeySchema();
1595
+ const mapKeyTraits = mapKeySchema.getMergedTraits();
1596
+ const keyTag = mapKeyTraits.xmlName ?? "key";
1597
+ const mapValueSchema = mapMember.getValueSchema();
1598
+ const mapValueTraits = mapValueSchema.getMergedTraits();
1599
+ const valueTag = mapValueTraits.xmlName ?? "value";
1600
+ const sparse = !!mapValueTraits.sparse;
1601
+ const flat = !!mapTraits.xmlFlattened;
1602
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
1603
+ const addKeyValue = (entry, key, val) => {
1604
+ const keyNode = xmlBuilder.XmlNode.of(keyTag, key);
1605
+ const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
1606
+ if (keyXmlns) {
1607
+ keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
1608
+ }
1609
+ entry.addChildNode(keyNode);
1610
+ let valueNode = xmlBuilder.XmlNode.of(valueTag);
1611
+ if (mapValueSchema.isListSchema()) {
1612
+ this.writeList(mapValueSchema, val, valueNode, xmlns);
1613
+ }
1614
+ else if (mapValueSchema.isMapSchema()) {
1615
+ this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
1616
+ }
1617
+ else if (mapValueSchema.isStructSchema()) {
1618
+ valueNode = this.writeStruct(mapValueSchema, val, xmlns);
1619
+ }
1620
+ else {
1621
+ this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
1622
+ }
1623
+ entry.addChildNode(valueNode);
1624
+ };
1625
+ if (flat) {
1626
+ for (const [key, val] of Object.entries(map)) {
1627
+ if (sparse || val != null) {
1628
+ const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1629
+ addKeyValue(entry, key, val);
1630
+ container.addChildNode(entry);
1631
+ }
1632
+ }
1633
+ }
1634
+ else {
1635
+ let mapNode;
1636
+ if (!containerIsMap) {
1637
+ mapNode = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1638
+ if (xmlns) {
1639
+ mapNode.addAttribute(xmlnsAttr, xmlns);
1640
+ }
1641
+ container.addChildNode(mapNode);
1642
+ }
1643
+ for (const [key, val] of Object.entries(map)) {
1644
+ if (sparse || val != null) {
1645
+ const entry = xmlBuilder.XmlNode.of("entry");
1646
+ addKeyValue(entry, key, val);
1647
+ (containerIsMap ? container : mapNode).addChildNode(entry);
1648
+ }
1649
+ }
1650
+ }
1651
+ }
1652
+ writeSimple(_schema, value) {
1653
+ if (null === value) {
1654
+ throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
1655
+ }
1656
+ const ns = schema.NormalizedSchema.of(_schema);
1657
+ let nodeContents = null;
1658
+ if (value && typeof value === "object") {
1659
+ if (ns.isBlobSchema()) {
1660
+ nodeContents = (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
1661
+ }
1662
+ else if (ns.isTimestampSchema() && value instanceof Date) {
1663
+ const format = protocols.determineTimestampFormat(ns, this.settings);
1664
+ switch (format) {
1665
+ case 5:
1666
+ nodeContents = value.toISOString().replace(".000Z", "Z");
1667
+ break;
1668
+ case 6:
1669
+ nodeContents = smithyClient.dateToUtcString(value);
1670
+ break;
1671
+ case 7:
1672
+ nodeContents = String(value.getTime() / 1000);
1673
+ break;
1674
+ default:
1675
+ console.warn("Missing timestamp format, using http date", value);
1676
+ nodeContents = smithyClient.dateToUtcString(value);
1677
+ break;
1678
+ }
1679
+ }
1680
+ else if (ns.isBigDecimalSchema() && value) {
1681
+ if (value instanceof serde.NumericValue) {
1682
+ return value.string;
1683
+ }
1684
+ return String(value);
1685
+ }
1686
+ else if (ns.isMapSchema() || ns.isListSchema()) {
1687
+ throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
1688
+ }
1689
+ else {
1690
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
1691
+ }
1692
+ }
1693
+ if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1694
+ nodeContents = String(value);
1695
+ }
1696
+ if (ns.isStringSchema()) {
1697
+ if (value === undefined && ns.isIdempotencyToken()) {
1698
+ nodeContents = serde.generateIdempotencyToken();
1699
+ }
1700
+ else {
1701
+ nodeContents = String(value);
1702
+ }
1703
+ }
1704
+ if (nodeContents === null) {
1705
+ throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
1706
+ }
1707
+ return nodeContents;
1708
+ }
1709
+ writeSimpleInto(_schema, value, into, parentXmlns) {
1710
+ const nodeContents = this.writeSimple(_schema, value);
1711
+ const ns = schema.NormalizedSchema.of(_schema);
1712
+ const content = new xmlBuilder.XmlText(nodeContents);
1713
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1714
+ if (xmlns) {
1715
+ into.addAttribute(xmlnsAttr, xmlns);
1716
+ }
1717
+ into.addChildNode(content);
1718
+ }
1719
+ getXmlnsAttribute(ns, parentXmlns) {
1720
+ const traits = ns.getMergedTraits();
1721
+ const [prefix, xmlns] = traits.xmlNamespace ?? [];
1722
+ if (xmlns && xmlns !== parentXmlns) {
1723
+ return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
1724
+ }
1725
+ return [void 0, void 0];
1726
+ }
1727
+ }
1548
1728
 
1549
- // src/submodules/protocols/xml/XmlCodec.ts
1550
- var XmlCodec = class extends SerdeContextConfig {
1551
- constructor(settings) {
1552
- super();
1553
- this.settings = settings;
1554
- }
1555
- static {
1556
- __name(this, "XmlCodec");
1557
- }
1558
- createSerializer() {
1559
- const serializer = new XmlShapeSerializer(this.settings);
1560
- serializer.setSerdeContext(this.serdeContext);
1561
- return serializer;
1562
- }
1563
- createDeserializer() {
1564
- const deserializer = new XmlShapeDeserializer(this.settings);
1565
- deserializer.setSerdeContext(this.serdeContext);
1566
- return deserializer;
1567
- }
1568
- };
1729
+ class XmlCodec extends SerdeContextConfig {
1730
+ settings;
1731
+ constructor(settings) {
1732
+ super();
1733
+ this.settings = settings;
1734
+ }
1735
+ createSerializer() {
1736
+ const serializer = new XmlShapeSerializer(this.settings);
1737
+ serializer.setSerdeContext(this.serdeContext);
1738
+ return serializer;
1739
+ }
1740
+ createDeserializer() {
1741
+ const deserializer = new XmlShapeDeserializer(this.settings);
1742
+ deserializer.setSerdeContext(this.serdeContext);
1743
+ return deserializer;
1744
+ }
1745
+ }
1569
1746
 
1570
- // src/submodules/protocols/xml/AwsRestXmlProtocol.ts
1571
- var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
1572
- static {
1573
- __name(this, "AwsRestXmlProtocol");
1574
- }
1575
- codec;
1576
- serializer;
1577
- deserializer;
1578
- constructor(options) {
1579
- super(options);
1580
- const settings = {
1581
- timestampFormat: {
1582
- useTrait: true,
1583
- default: import_schema9.SCHEMA.TIMESTAMP_DATE_TIME
1584
- },
1585
- httpBindings: true,
1586
- xmlNamespace: options.xmlNamespace,
1587
- serviceNamespace: options.defaultNamespace
1588
- };
1589
- this.codec = new XmlCodec(settings);
1590
- this.serializer = new import_protocols6.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1591
- this.deserializer = new import_protocols6.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1592
- }
1593
- getPayloadCodec() {
1594
- return this.codec;
1595
- }
1596
- getShapeId() {
1597
- return "aws.protocols#restXml";
1598
- }
1599
- async serializeRequest(operationSchema, input, context) {
1600
- const request = await super.serializeRequest(operationSchema, input, context);
1601
- const ns = import_schema9.NormalizedSchema.of(operationSchema.input);
1602
- const members = ns.getMemberSchemas();
1603
- request.path = String(request.path).split("/").filter((segment) => {
1604
- return segment !== "{Bucket}";
1605
- }).join("/") || "/";
1606
- if (!request.headers["content-type"]) {
1607
- const httpPayloadMember = Object.values(members).find((m) => {
1608
- return !!m.getMergedTraits().httpPayload;
1609
- });
1610
- if (httpPayloadMember) {
1611
- const mediaType = httpPayloadMember.getMergedTraits().mediaType;
1612
- if (mediaType) {
1613
- request.headers["content-type"] = mediaType;
1614
- } else if (httpPayloadMember.isStringSchema()) {
1615
- request.headers["content-type"] = "text/plain";
1616
- } else if (httpPayloadMember.isBlobSchema()) {
1617
- request.headers["content-type"] = "application/octet-stream";
1618
- } else {
1619
- request.headers["content-type"] = "application/xml";
1620
- }
1621
- } else if (!ns.isUnitSchema()) {
1622
- const hasBody = Object.values(members).find((m) => {
1623
- const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
1624
- return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
1625
- });
1626
- if (hasBody) {
1627
- request.headers["content-type"] = "application/xml";
1628
- }
1629
- }
1630
- }
1631
- if (request.headers["content-type"] === "application/xml") {
1632
- if (typeof request.body === "string") {
1633
- request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1634
- }
1635
- }
1636
- if (request.body) {
1637
- try {
1638
- request.headers["content-length"] = String((0, import_util_body_length_browser4.calculateBodyLength)(request.body));
1639
- } catch (e) {
1640
- }
1641
- }
1642
- return request;
1643
- }
1644
- async deserializeResponse(operationSchema, context, response) {
1645
- return super.deserializeResponse(operationSchema, context, response);
1646
- }
1647
- async handleError(operationSchema, context, response, dataObject, metadata) {
1648
- const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
1649
- let namespace = this.options.defaultNamespace;
1650
- let errorName = errorIdentifier;
1651
- if (errorIdentifier.includes("#")) {
1652
- [namespace, errorName] = errorIdentifier.split("#");
1653
- }
1654
- const registry = import_schema9.TypeRegistry.for(namespace);
1655
- let errorSchema;
1656
- try {
1657
- errorSchema = registry.getSchema(errorIdentifier);
1658
- } catch (e) {
1659
- const baseExceptionSchema = import_schema9.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
1660
- if (baseExceptionSchema) {
1661
- const ErrorCtor = baseExceptionSchema.ctor;
1662
- throw Object.assign(new ErrorCtor(errorName), dataObject);
1663
- }
1664
- throw new Error(errorName);
1665
- }
1666
- const ns = import_schema9.NormalizedSchema.of(errorSchema);
1667
- const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
1668
- const exception = new errorSchema.ctor(message);
1669
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1670
- const output = {};
1671
- for (const [name, member] of ns.structIterator()) {
1672
- const target = member.getMergedTraits().xmlName ?? name;
1673
- const value = dataObject.Error?.[target] ?? dataObject[target];
1674
- output[name] = this.codec.createDeserializer().readSchema(member, value);
1675
- }
1676
- Object.assign(exception, {
1677
- $metadata: metadata,
1678
- $response: response,
1679
- $fault: ns.getMergedTraits().error,
1680
- message,
1681
- ...output
1682
- });
1683
- throw exception;
1684
- }
1685
- };
1686
- // Annotate the CommonJS export names for ESM import in node:
1687
- 0 && (module.exports = {
1688
- AwsEc2QueryProtocol,
1689
- AwsJson1_0Protocol,
1690
- AwsJson1_1Protocol,
1691
- AwsJsonRpcProtocol,
1692
- AwsQueryProtocol,
1693
- AwsRestJsonProtocol,
1694
- AwsRestXmlProtocol,
1695
- JsonCodec,
1696
- JsonShapeDeserializer,
1697
- JsonShapeSerializer,
1698
- XmlCodec,
1699
- XmlShapeDeserializer,
1700
- XmlShapeSerializer,
1701
- _toBool,
1702
- _toNum,
1703
- _toStr,
1704
- awsExpectUnion,
1705
- loadRestJsonErrorCode,
1706
- loadRestXmlErrorCode,
1707
- parseJsonBody,
1708
- parseJsonErrorBody,
1709
- parseXmlBody,
1710
- parseXmlErrorBody
1711
- });
1747
+ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
1748
+ codec;
1749
+ serializer;
1750
+ deserializer;
1751
+ mixin = new ProtocolLib();
1752
+ constructor(options) {
1753
+ super(options);
1754
+ const settings = {
1755
+ timestampFormat: {
1756
+ useTrait: true,
1757
+ default: 5,
1758
+ },
1759
+ httpBindings: true,
1760
+ xmlNamespace: options.xmlNamespace,
1761
+ serviceNamespace: options.defaultNamespace,
1762
+ };
1763
+ this.codec = new XmlCodec(settings);
1764
+ this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1765
+ this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1766
+ }
1767
+ getPayloadCodec() {
1768
+ return this.codec;
1769
+ }
1770
+ getShapeId() {
1771
+ return "aws.protocols#restXml";
1772
+ }
1773
+ async serializeRequest(operationSchema, input, context) {
1774
+ const request = await super.serializeRequest(operationSchema, input, context);
1775
+ const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
1776
+ if (!request.headers["content-type"]) {
1777
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
1778
+ if (contentType) {
1779
+ request.headers["content-type"] = contentType;
1780
+ }
1781
+ }
1782
+ if (typeof request.body === "string" &&
1783
+ request.headers["content-type"] === this.getDefaultContentType() &&
1784
+ !request.body.startsWith("<?xml ") &&
1785
+ !this.hasUnstructuredPayloadBinding(inputSchema)) {
1786
+ request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1787
+ }
1788
+ return request;
1789
+ }
1790
+ async deserializeResponse(operationSchema, context, response) {
1791
+ return super.deserializeResponse(operationSchema, context, response);
1792
+ }
1793
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1794
+ const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
1795
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
1796
+ const ns = schema.NormalizedSchema.of(errorSchema);
1797
+ const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
1798
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
1799
+ const exception = new ErrorCtor(message);
1800
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1801
+ const output = {};
1802
+ for (const [name, member] of ns.structIterator()) {
1803
+ const target = member.getMergedTraits().xmlName ?? name;
1804
+ const value = dataObject.Error?.[target] ?? dataObject[target];
1805
+ output[name] = this.codec.createDeserializer().readSchema(member, value);
1806
+ }
1807
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1808
+ $fault: ns.getMergedTraits().error,
1809
+ message,
1810
+ }, output), dataObject);
1811
+ }
1812
+ getDefaultContentType() {
1813
+ return "application/xml";
1814
+ }
1815
+ hasUnstructuredPayloadBinding(ns) {
1816
+ for (const [, member] of ns.structIterator()) {
1817
+ if (member.getMergedTraits().httpPayload) {
1818
+ return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema());
1819
+ }
1820
+ }
1821
+ return false;
1822
+ }
1823
+ }
1824
+
1825
+ exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
1826
+ exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
1827
+ exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
1828
+ exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
1829
+ exports.AwsQueryProtocol = AwsQueryProtocol;
1830
+ exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
1831
+ exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
1832
+ exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
1833
+ exports.JsonCodec = JsonCodec;
1834
+ exports.JsonShapeDeserializer = JsonShapeDeserializer;
1835
+ exports.JsonShapeSerializer = JsonShapeSerializer;
1836
+ exports.XmlCodec = XmlCodec;
1837
+ exports.XmlShapeDeserializer = XmlShapeDeserializer;
1838
+ exports.XmlShapeSerializer = XmlShapeSerializer;
1839
+ exports._toBool = _toBool;
1840
+ exports._toNum = _toNum;
1841
+ exports._toStr = _toStr;
1842
+ exports.awsExpectUnion = awsExpectUnion;
1843
+ exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
1844
+ exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
1845
+ exports.parseJsonBody = parseJsonBody;
1846
+ exports.parseJsonErrorBody = parseJsonErrorBody;
1847
+ exports.parseXmlBody = parseXmlBody;
1848
+ exports.parseXmlErrorBody = parseXmlErrorBody;