@cdk8s/awscdk-resolver 0.0.67 → 0.0.76

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 (538) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/README.md +8 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +4 -2
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +169 -116
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +2 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListStackSetAutoDeploymentTargetsCommand.js +24 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +1 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/endpointResolver.js +3 -1
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +0 -1
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +0 -4
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +4 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +75 -34
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +37 -1
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +4 -3
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateOrganizationsAccessCommand.d.ts +2 -1
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateTypeCommand.d.ts +5 -4
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +2 -1
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CancelUpdateStackCommand.d.ts +2 -1
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +2 -1
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateChangeSetCommand.d.ts +2 -1
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +2 -1
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackCommand.d.ts +2 -1
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackInstancesCommand.d.ts +4 -3
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackSetCommand.d.ts +2 -1
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeactivateOrganizationsAccessCommand.d.ts +2 -1
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeactivateTypeCommand.d.ts +2 -1
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteChangeSetCommand.d.ts +2 -1
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +2 -1
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackCommand.d.ts +2 -1
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackInstancesCommand.d.ts +2 -1
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackSetCommand.d.ts +2 -1
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeregisterTypeCommand.d.ts +3 -4
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeAccountLimitsCommand.d.ts +2 -1
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +2 -1
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +2 -1
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +2 -1
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeOrganizationsAccessCommand.d.ts +2 -1
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribePublisherCommand.d.ts +3 -4
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +2 -1
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackDriftDetectionStatusCommand.d.ts +2 -1
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackEventsCommand.d.ts +4 -3
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackInstanceCommand.d.ts +3 -2
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceCommand.d.ts +2 -1
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +2 -1
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourcesCommand.d.ts +2 -1
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetCommand.d.ts +2 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetOperationCommand.d.ts +2 -1
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStacksCommand.d.ts +4 -2
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeTypeCommand.d.ts +2 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeTypeRegistrationCommand.d.ts +2 -1
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackDriftCommand.d.ts +2 -1
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackResourceDriftCommand.d.ts +2 -1
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackSetDriftCommand.d.ts +4 -3
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/EstimateTemplateCostCommand.d.ts +2 -1
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ExecuteChangeSetCommand.d.ts +2 -1
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +2 -1
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetStackPolicyCommand.d.ts +2 -1
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetTemplateCommand.d.ts +2 -1
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetTemplateSummaryCommand.d.ts +2 -1
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ImportStacksToStackSetCommand.d.ts +2 -1
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListChangeSetsCommand.d.ts +2 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListExportsCommand.d.ts +2 -1
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +2 -1
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListImportsCommand.d.ts +2 -1
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +2 -1
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +2 -1
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +2 -1
  69. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstanceResourceDriftsCommand.d.ts +2 -1
  70. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstancesCommand.d.ts +2 -1
  71. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackResourcesCommand.d.ts +2 -1
  72. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetAutoDeploymentTargetsCommand.d.ts +73 -0
  73. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +2 -1
  74. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationsCommand.d.ts +2 -1
  75. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetsCommand.d.ts +2 -1
  76. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStacksCommand.d.ts +2 -1
  77. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeRegistrationsCommand.d.ts +2 -1
  78. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeVersionsCommand.d.ts +2 -1
  79. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypesCommand.d.ts +2 -1
  80. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/PublishTypeCommand.d.ts +3 -4
  81. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RecordHandlerProgressCommand.d.ts +2 -1
  82. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterPublisherCommand.d.ts +2 -1
  83. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterTypeCommand.d.ts +5 -8
  84. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RollbackStackCommand.d.ts +2 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetStackPolicyCommand.d.ts +2 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeConfigurationCommand.d.ts +4 -5
  87. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeDefaultVersionCommand.d.ts +4 -2
  88. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SignalResourceCommand.d.ts +3 -2
  89. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +2 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +2 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +4 -7
  92. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +2 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +2 -1
  94. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +5 -10
  95. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +2 -1
  96. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +2 -1
  97. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +2 -1
  98. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +1 -0
  99. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +0 -1
  100. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1246 -1343
  101. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +184 -174
  102. package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +9 -0
  103. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -2
  104. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -2
  105. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
  106. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
  107. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +52 -0
  108. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -0
  109. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ActivateOrganizationsAccessCommand.d.ts +9 -0
  110. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ActivateTypeCommand.d.ts +9 -0
  111. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/BatchDescribeTypeConfigurationsCommand.d.ts +9 -0
  112. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CancelUpdateStackCommand.d.ts +9 -0
  113. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ContinueUpdateRollbackCommand.d.ts +9 -0
  114. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateChangeSetCommand.d.ts +9 -0
  115. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +9 -0
  116. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackCommand.d.ts +9 -0
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackInstancesCommand.d.ts +9 -0
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackSetCommand.d.ts +9 -0
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeactivateOrganizationsAccessCommand.d.ts +9 -0
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeactivateTypeCommand.d.ts +9 -0
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteChangeSetCommand.d.ts +9 -0
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +9 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackCommand.d.ts +9 -0
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackInstancesCommand.d.ts +9 -0
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackSetCommand.d.ts +9 -0
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeregisterTypeCommand.d.ts +9 -0
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +9 -0
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeChangeSetCommand.d.ts +9 -0
  129. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeChangeSetHooksCommand.d.ts +9 -0
  130. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +9 -0
  131. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeOrganizationsAccessCommand.d.ts +9 -0
  132. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribePublisherCommand.d.ts +9 -0
  133. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +9 -0
  134. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackDriftDetectionStatusCommand.d.ts +9 -0
  135. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackEventsCommand.d.ts +9 -0
  136. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackInstanceCommand.d.ts +9 -0
  137. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourceCommand.d.ts +9 -0
  138. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourceDriftsCommand.d.ts +9 -0
  139. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourcesCommand.d.ts +9 -0
  140. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackSetCommand.d.ts +9 -0
  141. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackSetOperationCommand.d.ts +9 -0
  142. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStacksCommand.d.ts +9 -0
  143. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeTypeCommand.d.ts +9 -0
  144. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeTypeRegistrationCommand.d.ts +9 -0
  145. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackDriftCommand.d.ts +9 -0
  146. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackResourceDriftCommand.d.ts +9 -0
  147. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackSetDriftCommand.d.ts +9 -0
  148. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/EstimateTemplateCostCommand.d.ts +9 -0
  149. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ExecuteChangeSetCommand.d.ts +9 -0
  150. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +9 -0
  151. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetStackPolicyCommand.d.ts +9 -0
  152. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +9 -0
  153. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetTemplateSummaryCommand.d.ts +9 -0
  154. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ImportStacksToStackSetCommand.d.ts +9 -0
  155. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListChangeSetsCommand.d.ts +9 -0
  156. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListExportsCommand.d.ts +9 -0
  157. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +9 -0
  158. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListImportsCommand.d.ts +9 -0
  159. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +9 -0
  160. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +9 -0
  161. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +9 -0
  162. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackInstanceResourceDriftsCommand.d.ts +9 -0
  163. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackInstancesCommand.d.ts +9 -0
  164. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackResourcesCommand.d.ts +9 -0
  165. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetAutoDeploymentTargetsCommand.d.ts +39 -0
  166. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationResultsCommand.d.ts +9 -0
  167. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationsCommand.d.ts +9 -0
  168. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetsCommand.d.ts +9 -0
  169. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStacksCommand.d.ts +9 -0
  170. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeRegistrationsCommand.d.ts +9 -0
  171. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeVersionsCommand.d.ts +9 -0
  172. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypesCommand.d.ts +9 -0
  173. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/PublishTypeCommand.d.ts +9 -0
  174. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RecordHandlerProgressCommand.d.ts +9 -0
  175. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterPublisherCommand.d.ts +9 -0
  176. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterTypeCommand.d.ts +9 -0
  177. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RollbackStackCommand.d.ts +9 -0
  178. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetStackPolicyCommand.d.ts +9 -0
  179. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeConfigurationCommand.d.ts +9 -0
  180. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeDefaultVersionCommand.d.ts +11 -4
  181. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SignalResourceCommand.d.ts +10 -1
  182. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +9 -0
  183. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +9 -0
  184. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +9 -0
  185. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +9 -0
  186. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +9 -0
  187. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +9 -0
  188. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +9 -0
  189. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +9 -0
  190. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +9 -0
  191. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +1 -0
  192. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +0 -1
  193. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +14 -13
  194. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +13 -0
  195. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  196. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  197. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  198. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  199. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  200. package/node_modules/@aws-sdk/client-cloudformation/package.json +41 -42
  201. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +4 -2
  202. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -49
  203. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +3 -1
  204. package/node_modules/@aws-sdk/client-sso/dist-es/index.js +0 -1
  205. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -40
  206. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +1 -1
  207. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +1 -1
  208. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +2 -1
  209. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +2 -1
  210. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +2 -1
  211. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +2 -1
  212. package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +0 -1
  213. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +32 -32
  214. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
  215. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
  216. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
  217. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +2 -2
  218. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +9 -0
  219. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +9 -0
  220. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +9 -0
  221. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +7 -0
  222. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +0 -1
  223. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  224. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  225. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  226. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  227. package/node_modules/@aws-sdk/client-sso/package.json +38 -38
  228. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +4 -2
  229. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +7 -50
  230. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +3 -1
  231. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +0 -1
  232. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -40
  233. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +1 -1
  234. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +1 -1
  235. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +2 -1
  236. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +2 -1
  237. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +2 -1
  238. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +2 -1
  239. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +0 -1
  240. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +89 -89
  241. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
  242. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
  243. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
  244. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +2 -2
  245. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +9 -0
  246. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +9 -0
  247. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +9 -0
  248. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +9 -0
  249. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +0 -1
  250. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  251. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  252. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  253. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  254. package/node_modules/@aws-sdk/client-sso-oidc/package.json +40 -40
  255. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +4 -2
  256. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -44
  257. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +3 -1
  258. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +0 -1
  259. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +2 -34
  260. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +3 -1
  261. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +1 -1
  262. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +2 -1
  263. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -1
  264. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -1
  265. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -1
  266. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -1
  267. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -1
  268. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +2 -1
  269. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +2 -1
  270. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +0 -1
  271. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +98 -98
  272. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
  273. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
  274. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
  275. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +2 -2
  276. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +2 -0
  277. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +9 -0
  278. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +9 -0
  279. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +9 -0
  280. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +9 -0
  281. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +9 -0
  282. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +9 -0
  283. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +9 -0
  284. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +9 -0
  285. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +0 -1
  286. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  287. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  288. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  289. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  290. package/node_modules/@aws-sdk/client-sts/package.json +39 -40
  291. package/node_modules/@aws-sdk/core/CHANGELOG.md +35 -0
  292. package/node_modules/@aws-sdk/core/dist-cjs/index.js +126 -1
  293. package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
  294. package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
  295. package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
  296. package/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
  297. package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
  298. package/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
  299. package/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
  300. package/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
  301. package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
  302. package/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
  303. package/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
  304. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
  305. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
  306. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
  307. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
  308. package/node_modules/@aws-sdk/core/package.json +8 -7
  309. package/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
  310. package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
  311. package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
  312. package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
  313. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  314. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  315. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  316. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  317. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  318. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  319. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  320. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  321. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  322. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  323. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  324. package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
  325. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  326. package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
  327. package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
  328. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  329. package/node_modules/@aws-sdk/types/package.json +3 -3
  330. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +2 -0
  331. package/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +1 -1
  332. package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -1
  333. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -1
  334. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  335. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +2 -0
  336. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  337. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  338. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  339. package/node_modules/@smithy/abort-controller/package.json +3 -3
  340. package/node_modules/@smithy/config-resolver/package.json +6 -6
  341. package/node_modules/@smithy/core/package.json +9 -9
  342. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +11 -1
  343. package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +1 -0
  344. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +1 -1
  345. package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +4 -0
  346. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +4 -0
  347. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  348. package/node_modules/@smithy/eventstream-codec/package.json +5 -5
  349. package/node_modules/@smithy/fetch-http-handler/package.json +9 -9
  350. package/node_modules/@smithy/hash-node/package.json +5 -5
  351. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  352. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  353. package/node_modules/@smithy/middleware-content-length/package.json +5 -5
  354. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  355. package/node_modules/@smithy/middleware-retry/package.json +11 -11
  356. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -0
  357. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +5 -0
  358. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +5 -2
  359. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +6 -2
  360. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +5 -2
  361. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +5 -2
  362. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +6 -2
  363. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +5 -2
  364. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  365. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  366. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  367. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +14 -3
  368. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +30 -0
  369. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +16 -4
  370. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +2 -0
  371. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +2 -0
  372. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  373. package/node_modules/@smithy/property-provider/package.json +3 -3
  374. package/node_modules/@smithy/protocol-http/package.json +3 -3
  375. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  376. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  377. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  378. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  379. package/node_modules/@smithy/signature-v4/package.json +10 -10
  380. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -2
  381. package/node_modules/@smithy/smithy-client/dist-es/command.js +2 -2
  382. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +2 -1
  383. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +2 -1
  384. package/node_modules/@smithy/smithy-client/package.json +7 -7
  385. package/node_modules/@smithy/types/dist-types/client.d.ts +2 -2
  386. package/node_modules/@smithy/types/dist-types/serde.d.ts +10 -3
  387. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +2 -7
  388. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +10 -3
  389. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +27 -7
  390. package/node_modules/@smithy/types/dist-types/util.d.ts +22 -7
  391. package/node_modules/@smithy/types/package.json +2 -2
  392. package/node_modules/@smithy/url-parser/package.json +4 -4
  393. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +16 -1
  394. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +14 -1
  395. package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +16 -1
  396. package/node_modules/@smithy/util-base64/dist-es/toBase64.js +14 -1
  397. package/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +4 -3
  398. package/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +4 -3
  399. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +4 -3
  400. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +4 -3
  401. package/node_modules/@smithy/util-base64/package.json +4 -3
  402. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  403. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +1 -1
  404. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +1 -1
  405. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  406. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  407. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +2 -2
  408. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  409. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  410. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  411. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  412. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  413. package/node_modules/@smithy/util-middleware/package.json +3 -3
  414. package/node_modules/@smithy/util-retry/package.json +4 -4
  415. package/node_modules/@smithy/util-stream/package.json +12 -12
  416. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  417. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +9 -1
  418. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -1
  419. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +9 -1
  420. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -1
  421. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -1
  422. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -1
  423. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -1
  424. package/node_modules/@smithy/util-utf8/package.json +3 -3
  425. package/node_modules/@smithy/util-waiter/package.json +4 -4
  426. package/node_modules/uuid/CHANGELOG.md +45 -0
  427. package/node_modules/uuid/README.md +36 -75
  428. package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  429. package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  430. package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  431. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  432. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  433. package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  434. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  435. package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  436. package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  437. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  438. package/node_modules/uuid/dist/esm-browser/version.js +1 -1
  439. package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  440. package/node_modules/uuid/dist/esm-node/v1.js +2 -2
  441. package/node_modules/uuid/dist/esm-node/v35.js +6 -4
  442. package/node_modules/uuid/dist/esm-node/v4.js +7 -2
  443. package/node_modules/uuid/dist/esm-node/version.js +1 -1
  444. package/node_modules/uuid/dist/index.js +18 -18
  445. package/node_modules/uuid/dist/rng-browser.js +2 -3
  446. package/node_modules/uuid/dist/stringify.js +8 -3
  447. package/node_modules/uuid/dist/v1.js +2 -2
  448. package/node_modules/uuid/dist/v35.js +7 -5
  449. package/node_modules/uuid/dist/v4.js +8 -2
  450. package/node_modules/uuid/dist/version.js +1 -1
  451. package/node_modules/uuid/package.json +41 -41
  452. package/package.json +8 -8
  453. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CHANGELOG.md +0 -274
  454. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CONTRIBUTING.md +0 -18
  455. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/LICENSE.md +0 -9
  456. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/README.md +0 -466
  457. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/bin/uuid +0 -2
  458. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/index.js +0 -9
  459. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  460. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  461. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  462. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  463. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  464. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  465. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  466. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  467. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  468. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  469. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  470. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  471. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  472. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/version.js +0 -11
  473. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/index.js +0 -9
  474. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/md5.js +0 -13
  475. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/nil.js +0 -1
  476. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/parse.js +0 -35
  477. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/regex.js +0 -1
  478. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/rng.js +0 -12
  479. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  480. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  481. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v1.js +0 -95
  482. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v3.js +0 -4
  483. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v35.js +0 -66
  484. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v4.js +0 -29
  485. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v5.js +0 -4
  486. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/validate.js +0 -7
  487. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/version.js +0 -11
  488. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/index.js +0 -79
  489. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5-browser.js +0 -223
  490. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5.js +0 -23
  491. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/nil.js +0 -8
  492. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/parse.js +0 -45
  493. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/regex.js +0 -8
  494. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng-browser.js +0 -25
  495. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng.js +0 -24
  496. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1-browser.js +0 -104
  497. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1.js +0 -23
  498. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/stringify.js +0 -44
  499. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/uuid-bin.js +0 -85
  500. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v1.js +0 -107
  501. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v3.js +0 -16
  502. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v35.js +0 -80
  503. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v4.js +0 -43
  504. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v5.js +0 -16
  505. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/validate.js +0 -17
  506. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/version.js +0 -21
  507. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/package.json +0 -135
  508. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/wrapper.mjs +0 -10
  509. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  510. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  511. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  512. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  513. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  514. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  515. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  516. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  517. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  518. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  519. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/index.js +0 -0
  520. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/md5.js +0 -0
  521. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/native.js +0 -0
  522. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/nil.js +0 -0
  523. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/parse.js +0 -0
  524. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/regex.js +0 -0
  525. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/rng.js +0 -0
  526. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/sha1.js +0 -0
  527. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/stringify.js +0 -0
  528. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v1.js +0 -0
  529. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v3.js +0 -0
  530. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v35.js +0 -0
  531. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v4.js +0 -0
  532. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v5.js +0 -0
  533. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/validate.js +0 -0
  534. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/version.js +0 -0
  535. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/esm-browser/native.js +0 -0
  536. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/esm-node/native.js +0 -0
  537. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/native-browser.js +0 -0
  538. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/native.js +0 -0
@@ -0,0 +1,57 @@
1
+ import { getValueFromTextNode } from "@smithy/smithy-client";
2
+ import { XMLParser } from "fast-xml-parser";
3
+ import { collectBodyString } from "../common";
4
+ export const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5
+ if (encoded.length) {
6
+ const parser = new XMLParser({
7
+ attributeNamePrefix: "",
8
+ htmlEntities: true,
9
+ ignoreAttributes: false,
10
+ ignoreDeclaration: true,
11
+ parseTagValue: false,
12
+ trimValues: false,
13
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
14
+ });
15
+ parser.addEntity("#xD", "\r");
16
+ parser.addEntity("#10", "\n");
17
+ let parsedObj;
18
+ try {
19
+ parsedObj = parser.parse(encoded);
20
+ }
21
+ catch (e) {
22
+ if (e && typeof e === "object") {
23
+ Object.defineProperty(e, "$responseBodyText", {
24
+ value: encoded,
25
+ });
26
+ }
27
+ throw e;
28
+ }
29
+ const textNodeName = "#text";
30
+ const key = Object.keys(parsedObj)[0];
31
+ const parsedObjToReturn = parsedObj[key];
32
+ if (parsedObjToReturn[textNodeName]) {
33
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
34
+ delete parsedObjToReturn[textNodeName];
35
+ }
36
+ return getValueFromTextNode(parsedObjToReturn);
37
+ }
38
+ return {};
39
+ });
40
+ export const parseXmlErrorBody = async (errorBody, context) => {
41
+ const value = await parseXmlBody(errorBody, context);
42
+ if (value.Error) {
43
+ value.Error.message = value.Error.message ?? value.Error.Message;
44
+ }
45
+ return value;
46
+ };
47
+ export const loadRestXmlErrorCode = (output, data) => {
48
+ if (data?.Error?.Code !== undefined) {
49
+ return data.Error.Code;
50
+ }
51
+ if (data?.Code !== undefined) {
52
+ return data.Code;
53
+ }
54
+ if (output.statusCode == 404) {
55
+ return "NotFound";
56
+ }
57
+ };
@@ -0,0 +1,2 @@
1
+ import type { SerdeContext } from "@smithy/types";
2
+ export declare const collectBodyString: (streamBody: any, context: SerdeContext) => Promise<string>;
@@ -1,2 +1,4 @@
1
1
  export * from "./coercing-serializers";
2
2
  export * from "./json/awsExpectUnion";
3
+ export * from "./json/parseJsonBody";
4
+ export * from "./xml/parseXmlBody";
@@ -0,0 +1,4 @@
1
+ import type { HttpResponse, SerdeContext } from "@smithy/types";
2
+ export declare const parseJsonBody: (streamBody: any, context: SerdeContext) => any;
3
+ export declare const parseJsonErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
4
+ export declare const loadRestJsonErrorCode: (output: HttpResponse, data: any) => string | undefined;
@@ -0,0 +1,4 @@
1
+ import type { HttpResponse, SerdeContext } from "@smithy/types";
2
+ export declare const parseXmlBody: (streamBody: any, context: SerdeContext) => any;
3
+ export declare const parseXmlErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
4
+ export declare const loadRestXmlErrorCode: (output: HttpResponse, data: any) => string | undefined;
@@ -0,0 +1,5 @@
1
+ import { SerdeContext } from "@smithy/types";
2
+ export declare const collectBodyString: (
3
+ streamBody: any,
4
+ context: SerdeContext
5
+ ) => Promise<string>;
@@ -1,2 +1,4 @@
1
1
  export * from "./coercing-serializers";
2
2
  export * from "./json/awsExpectUnion";
3
+ export * from "./json/parseJsonBody";
4
+ export * from "./xml/parseXmlBody";
@@ -0,0 +1,13 @@
1
+ import { HttpResponse, SerdeContext } from "@smithy/types";
2
+ export declare const parseJsonBody: (
3
+ streamBody: any,
4
+ context: SerdeContext
5
+ ) => any;
6
+ export declare const parseJsonErrorBody: (
7
+ errorBody: any,
8
+ context: SerdeContext
9
+ ) => Promise<any>;
10
+ export declare const loadRestJsonErrorCode: (
11
+ output: HttpResponse,
12
+ data: any
13
+ ) => string | undefined;
@@ -0,0 +1,13 @@
1
+ import { HttpResponse, SerdeContext } from "@smithy/types";
2
+ export declare const parseXmlBody: (
3
+ streamBody: any,
4
+ context: SerdeContext
5
+ ) => any;
6
+ export declare const parseXmlErrorBody: (
7
+ errorBody: any,
8
+ context: SerdeContext
9
+ ) => Promise<any>;
10
+ export declare const loadRestXmlErrorCode: (
11
+ output: HttpResponse,
12
+ data: any
13
+ ) => string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.525.0",
3
+ "version": "3.535.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -25,12 +25,13 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@smithy/core": "^1.3.5",
29
- "@smithy/protocol-http": "^3.2.1",
30
- "@smithy/signature-v4": "^2.1.3",
31
- "@smithy/smithy-client": "^2.4.2",
32
- "@smithy/types": "^2.10.1",
33
- "tslib": "^2.5.0"
28
+ "@smithy/core": "^1.4.0",
29
+ "@smithy/protocol-http": "^3.3.0",
30
+ "@smithy/signature-v4": "^2.2.0",
31
+ "@smithy/smithy-client": "^2.5.0",
32
+ "@smithy/types": "^2.12.0",
33
+ "fast-xml-parser": "4.2.5",
34
+ "tslib": "^2.6.2"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@tsconfig/recommended": "1.0.1",
@@ -0,0 +1,5 @@
1
+ import { collectBody } from "@smithy/smithy-client";
2
+ import type { HttpResponse, SerdeContext } from "@smithy/types";
3
+
4
+ export const collectBodyString = (streamBody: any, context: SerdeContext): Promise<string> =>
5
+ collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
@@ -1,2 +1,4 @@
1
1
  export * from "./coercing-serializers";
2
2
  export * from "./json/awsExpectUnion";
3
+ export * from "./json/parseJsonBody";
4
+ export * from "./xml/parseXmlBody";
@@ -0,0 +1,60 @@
1
+ import type { HttpResponse, SerdeContext } from "@smithy/types";
2
+
3
+ import { collectBodyString } from "../common";
4
+
5
+ export const parseJsonBody = (streamBody: any, context: SerdeContext): any =>
6
+ collectBodyString(streamBody, context).then((encoded) => {
7
+ if (encoded.length) {
8
+ try {
9
+ return JSON.parse(encoded);
10
+ } catch (e: any) {
11
+ if (e?.name === "SyntaxError") {
12
+ Object.defineProperty(e, "$responseBodyText", {
13
+ value: encoded,
14
+ });
15
+ }
16
+ throw e;
17
+ }
18
+ }
19
+ return {};
20
+ });
21
+
22
+ export const parseJsonErrorBody = async (errorBody: any, context: SerdeContext) => {
23
+ const value = await parseJsonBody(errorBody, context);
24
+ value.message = value.message ?? value.Message;
25
+ return value;
26
+ };
27
+
28
+ export const loadRestJsonErrorCode = (output: HttpResponse, data: any): string | undefined => {
29
+ const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
30
+
31
+ const sanitizeErrorCode = (rawValue: string | number): string => {
32
+ let cleanValue = rawValue;
33
+ if (typeof cleanValue === "number") {
34
+ cleanValue = cleanValue.toString();
35
+ }
36
+ if (cleanValue.indexOf(",") >= 0) {
37
+ cleanValue = cleanValue.split(",")[0];
38
+ }
39
+ if (cleanValue.indexOf(":") >= 0) {
40
+ cleanValue = cleanValue.split(":")[0];
41
+ }
42
+ if (cleanValue.indexOf("#") >= 0) {
43
+ cleanValue = cleanValue.split("#")[1];
44
+ }
45
+ return cleanValue;
46
+ };
47
+
48
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
49
+ if (headerKey !== undefined) {
50
+ return sanitizeErrorCode(output.headers[headerKey]);
51
+ }
52
+
53
+ if (data.code !== undefined) {
54
+ return sanitizeErrorCode(data.code);
55
+ }
56
+
57
+ if (data["__type"] !== undefined) {
58
+ return sanitizeErrorCode(data["__type"]);
59
+ }
60
+ };
@@ -0,0 +1,64 @@
1
+ import { getValueFromTextNode } from "@smithy/smithy-client";
2
+ import type { HttpResponse, SerdeContext } from "@smithy/types";
3
+ import { XMLParser } from "fast-xml-parser";
4
+
5
+ import { collectBodyString } from "../common";
6
+
7
+ export const parseXmlBody = (streamBody: any, context: SerdeContext): any =>
8
+ collectBodyString(streamBody, context).then((encoded) => {
9
+ if (encoded.length) {
10
+ const parser = new XMLParser({
11
+ attributeNamePrefix: "",
12
+ htmlEntities: true,
13
+ ignoreAttributes: false,
14
+ ignoreDeclaration: true,
15
+ parseTagValue: false,
16
+ trimValues: false,
17
+ tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
18
+ });
19
+ parser.addEntity("#xD", "\r");
20
+ parser.addEntity("#10", "\n");
21
+
22
+ let parsedObj;
23
+ try {
24
+ parsedObj = parser.parse(encoded);
25
+ } catch (e: any) {
26
+ if (e && typeof e === "object") {
27
+ Object.defineProperty(e, "$responseBodyText", {
28
+ value: encoded,
29
+ });
30
+ }
31
+ throw e;
32
+ }
33
+
34
+ const textNodeName = "#text";
35
+ const key = Object.keys(parsedObj)[0];
36
+ const parsedObjToReturn = parsedObj[key];
37
+ if (parsedObjToReturn[textNodeName]) {
38
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
39
+ delete parsedObjToReturn[textNodeName];
40
+ }
41
+ return getValueFromTextNode(parsedObjToReturn);
42
+ }
43
+ return {};
44
+ });
45
+
46
+ export const parseXmlErrorBody = async (errorBody: any, context: SerdeContext) => {
47
+ const value = await parseXmlBody(errorBody, context);
48
+ if (value.Error) {
49
+ value.Error.message = value.Error.message ?? value.Error.Message;
50
+ }
51
+ return value;
52
+ };
53
+
54
+ export const loadRestXmlErrorCode = (output: HttpResponse, data: any): string | undefined => {
55
+ if (data?.Error?.Code !== undefined) {
56
+ return data.Error.Code;
57
+ }
58
+ if (data?.Code !== undefined) {
59
+ return data.Code;
60
+ }
61
+ if (output.statusCode == 404) {
62
+ return "NotFound";
63
+ }
64
+ };