cdk-preflight 1.12.0 → 1.12.2

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 (402) hide show
  1. package/.jsii +3 -3
  2. package/lib/index.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  6. package/node_modules/@aws-sdk/client-ec2/README.md +28 -0
  7. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +499 -113
  8. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +10 -0
  9. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetCapacityManagerSupportabilityScoresCommand.js +4 -0
  10. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetImageFindingsCommand.js +4 -0
  11. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
  12. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
  13. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +4 -0
  14. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +80 -29
  15. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetImageFindingsPaginator.js +4 -0
  16. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/index.js +1 -0
  17. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +365 -83
  18. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +35 -0
  19. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +8 -3
  20. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +82 -1
  21. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCarrierGatewayCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayRouteCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
  24. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteTableCommand.d.ts +5 -2
  26. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +81 -0
  27. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetHistoryCommand.d.ts +2 -1
  28. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
  29. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceStatusCommand.d.ts +5 -0
  30. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +48 -0
  31. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -1
  32. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +1 -2
  33. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -0
  34. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -2
  36. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +9 -0
  37. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +2 -2
  38. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +1 -1
  39. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +183 -0
  40. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetImageFindingsCommand.d.ts +90 -0
  41. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +19 -0
  42. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +82 -0
  43. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -1
  44. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +1 -2
  49. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +107 -0
  50. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
  52. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  54. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
  55. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  57. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
  58. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +9 -0
  59. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceTransitGatewayRouteCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/SearchTransitGatewayRoutesCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +48 -0
  62. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +4 -0
  63. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +192 -77
  64. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +165 -291
  65. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +1839 -1665
  66. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +25 -12
  67. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +27 -38
  68. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +241 -242
  69. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +247 -57
  70. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +537 -341
  71. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +389 -246
  72. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +360 -3
  73. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetImageFindingsPaginator.d.ts +7 -0
  74. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/index.d.ts +1 -0
  75. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +21 -0
  76. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +75 -0
  77. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +24 -0
  78. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCarrierGatewayCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
  81. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetHistoryCommand.d.ts +2 -1
  82. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -4
  83. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesOfferingsCommand.d.ts +4 -2
  84. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +4 -2
  86. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +42 -0
  87. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetImageFindingsCommand.d.ts +38 -0
  88. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
  89. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -4
  90. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +4 -2
  95. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
  96. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  97. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
  98. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  99. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  100. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
  101. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
  102. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  103. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
  104. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +4 -0
  105. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +99 -35
  106. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +27 -60
  107. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +118 -69
  108. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +6 -6
  109. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +10 -9
  110. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +31 -34
  111. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +37 -14
  112. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +89 -68
  113. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +86 -64
  114. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +76 -1
  115. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetImageFindingsPaginator.d.ts +11 -0
  116. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/index.d.ts +1 -0
  117. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  118. package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
  119. package/node_modules/@aws-sdk/client-lambda/README.md +1 -1
  120. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +9 -3
  121. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +4 -0
  122. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +3 -2
  123. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +1 -1
  124. package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +3 -2
  125. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +2 -0
  126. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -0
  127. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -0
  129. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  130. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -0
  131. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
  132. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
  133. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
  134. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
  135. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
  136. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
  138. package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +12 -0
  140. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +21 -16
  141. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  142. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +2 -0
  143. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  144. package/node_modules/@aws-sdk/client-service-quotas/dist-cjs/index.js +1 -1
  145. package/node_modules/@aws-sdk/client-service-quotas/dist-types/ServiceQuotasClient.d.ts +2 -1
  146. package/node_modules/@aws-sdk/client-service-quotas/package.json +6 -6
  147. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  148. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -1
  149. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  150. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
  151. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
  152. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +104 -1549
  153. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  154. package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
  155. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
  156. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  157. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
  158. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  159. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  160. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  161. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  162. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  163. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -7
  164. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
  165. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
  166. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  167. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  168. package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
  169. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
  170. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  171. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
  172. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  173. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +3 -8
  174. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  175. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  176. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  177. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  178. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
  179. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
  180. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
  181. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  182. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
  183. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +11 -10
  184. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  185. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  186. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  187. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  188. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
  189. package/node_modules/@aws-sdk/core/package.json +5 -5
  190. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  191. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  192. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  193. package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  194. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  195. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  196. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  197. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  198. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +5 -5
  199. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
  200. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +10 -2
  201. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
  202. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
  203. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
  204. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  205. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  206. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  207. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  208. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  209. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  210. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
  211. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  212. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
  213. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
  214. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  215. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  216. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  217. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  218. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
  219. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  220. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
  221. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
  222. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
  223. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
  224. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  225. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
  226. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
  227. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  228. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  229. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
  230. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
  231. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  232. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
  233. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  234. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  235. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
  236. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
  237. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  238. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
  239. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
  240. package/node_modules/@aws-sdk/types/package.json +1 -1
  241. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  242. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  243. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +45 -53
  244. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +52 -19
  245. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  246. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  247. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  248. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  249. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  250. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
  251. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
  252. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +91 -58
  253. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +53 -15
  254. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +57 -17
  255. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  256. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  257. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  258. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  259. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  260. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  261. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
  262. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  263. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  264. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  265. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  266. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  267. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  268. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +17 -2
  269. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  270. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  271. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  272. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  273. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  274. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  275. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  276. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  277. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  278. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  279. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  280. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  281. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  282. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
  283. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  284. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  285. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  286. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  287. package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  288. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  289. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  290. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
  291. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  292. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
  293. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  294. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  295. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  296. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -8
  297. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  298. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  299. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  300. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  301. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
  302. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  303. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
  304. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  305. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  306. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  307. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  308. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  309. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  310. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  311. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  312. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  313. package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  314. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  315. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  316. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  317. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  318. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
  319. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  320. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  321. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  322. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  323. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  324. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  325. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  326. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  327. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  328. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
  329. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  330. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  331. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  332. package/node_modules/@smithy/core/package.json +2 -2
  333. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +84 -29
  334. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  335. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +23 -11
  336. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +26 -2
  337. package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  338. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +30 -15
  339. package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  340. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +10 -1
  341. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  342. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +10 -1
  343. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  344. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  345. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  346. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  347. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  348. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  349. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  350. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  351. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  352. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  353. package/node_modules/@smithy/signature-v4/package.json +2 -2
  354. package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
  355. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +6 -0
  356. package/node_modules/@smithy/types/package.json +1 -1
  357. package/package.json +1 -1
  358. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
  359. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -20
  360. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
  361. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +0 -160
  362. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +0 -193
  363. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
  364. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
  365. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +0 -200
  366. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +0 -519
  367. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -18
  368. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -46
  369. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -121
  370. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +0 -41
  371. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +0 -89
  372. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
  373. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -15
  374. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  375. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -14
  376. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -29
  377. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
  378. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
  379. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -30
  380. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -60
  381. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
  382. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -21
  383. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -15
  384. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -11
  385. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +0 -22
  386. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
  387. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
  388. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  389. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  390. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  391. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  392. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
  393. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  394. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  395. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
  396. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
  397. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
  398. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
  399. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
  400. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
  401. /package/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
  402. /package/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset } = require("@smithy/core/serde");
1
+ const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader, writeKey, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset } = require("@smithy/core/serde");
2
2
  const { HttpRequest, HttpResponse, hasOwn, isValidHostname, getSmithyContext } = require("@smithy/core/transport");
3
3
  const { parseQueryString, parseUrl } = require("@smithy/core/transport");
4
4
  exports.HttpRequest = HttpRequest;
@@ -75,8 +75,9 @@ class HttpProtocol extends SerdeContext {
75
75
  }
76
76
  if (endpoint.headers) {
77
77
  for (const name in endpoint.headers) {
78
- if (!hasOwn(endpoint.headers, name))
78
+ if (!hasOwn(endpoint.headers, name)) {
79
79
  continue;
80
+ }
80
81
  request.headers[name] = endpoint.headers[name].join(", ");
81
82
  }
82
83
  }
@@ -92,8 +93,9 @@ class HttpProtocol extends SerdeContext {
92
93
  };
93
94
  if (endpoint.headers) {
94
95
  for (const name in endpoint.headers) {
95
- if (!hasOwn(endpoint.headers, name))
96
+ if (!hasOwn(endpoint.headers, name)) {
96
97
  continue;
98
+ }
97
99
  request.headers[name] = endpoint.headers[name];
98
100
  }
99
101
  }
@@ -314,8 +316,9 @@ class HttpBindingProtocol extends HttpProtocol {
314
316
  }
315
317
  else if (typeof memberTraits.httpPrefixHeaders === "string") {
316
318
  for (const key in inputMemberValue) {
317
- if (!hasOwn(inputMemberValue, key))
319
+ if (!hasOwn(inputMemberValue, key)) {
318
320
  continue;
321
+ }
319
322
  const val = inputMemberValue[key];
320
323
  const amalgam = memberTraits.httpPrefixHeaders + key;
321
324
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
@@ -362,8 +365,9 @@ class HttpBindingProtocol extends HttpProtocol {
362
365
  const traits = ns.getMergedTraits();
363
366
  if (traits.httpQueryParams) {
364
367
  for (const key in data) {
365
- if (!hasOwn(data, key))
368
+ if (!hasOwn(data, key)) {
366
369
  continue;
370
+ }
367
371
  if (!(key in query)) {
368
372
  const val = data[key];
369
373
  const valueSchema = ns.getValueSchema();
@@ -407,8 +411,9 @@ class HttpBindingProtocol extends HttpProtocol {
407
411
  throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
408
412
  }
409
413
  for (const header in response.headers) {
410
- if (!hasOwn(response.headers, header))
414
+ if (!hasOwn(response.headers, header)) {
411
415
  continue;
416
+ }
412
417
  const value = response.headers[header];
413
418
  delete response.headers[header];
414
419
  response.headers[header.toLowerCase()] = value;
@@ -496,8 +501,9 @@ class HttpBindingProtocol extends HttpProtocol {
496
501
  else if (memberTraits.httpPrefixHeaders !== undefined) {
497
502
  dataObject[memberName] = {};
498
503
  for (const header in response.headers) {
499
- if (!hasOwn(response.headers, header))
504
+ if (!hasOwn(response.headers, header)) {
500
505
  continue;
506
+ }
501
507
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
502
508
  const value = response.headers[header];
503
509
  const valueSchema = memberSchema.getValueSchema();
@@ -574,7 +580,7 @@ class RpcProtocol extends HttpProtocol {
574
580
  const deserializer = this.deserializer;
575
581
  const ns = NormalizedSchema.of(operationSchema.output);
576
582
  const dataObject = {};
577
- if (response.statusCode >= 300) {
583
+ if (this.isErrorResponse(response.statusCode)) {
578
584
  const bytes = await collectBody(response.body, context);
579
585
  if (bytes.byteLength > 0) {
580
586
  Object.assign(dataObject, await deserializer.read(15, bytes));
@@ -583,8 +589,9 @@ class RpcProtocol extends HttpProtocol {
583
589
  throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
584
590
  }
585
591
  for (const header in response.headers) {
586
- if (!hasOwn(response.headers, header))
592
+ if (!hasOwn(response.headers, header)) {
587
593
  continue;
594
+ }
588
595
  const value = response.headers[header];
589
596
  delete response.headers[header];
590
597
  response.headers[header.toLowerCase()] = value;
@@ -606,6 +613,42 @@ class RpcProtocol extends HttpProtocol {
606
613
  dataObject.$metadata = this.deserializeMetadata(response);
607
614
  return dataObject;
608
615
  }
616
+ isErrorResponse(statusCode) {
617
+ return statusCode >= 300;
618
+ }
619
+ }
620
+
621
+ class AbstractRpcV2Protocol extends RpcProtocol {
622
+ constructor({ defaultNamespace, errorTypeRegistries, }) {
623
+ super({ defaultNamespace, errorTypeRegistries });
624
+ }
625
+ async serializeRequest(operationSchema, input, context) {
626
+ const request = await super.serializeRequest(operationSchema, input, context);
627
+ Object.assign(request.headers, {
628
+ "content-type": this.getDefaultContentType(),
629
+ "smithy-protocol": this.getSmithyProtocolHeaderValue(),
630
+ accept: this.getDefaultContentType(),
631
+ });
632
+ if (deref(operationSchema.input) === "unit") {
633
+ delete request.body;
634
+ delete request.headers["content-type"];
635
+ }
636
+ else {
637
+ this.applyEmptyBody(request);
638
+ }
639
+ const { service, operation } = getSmithyContext(context);
640
+ const path = `/service/${service}/operation/${operation}`;
641
+ if (request.path.endsWith("/")) {
642
+ request.path += path.slice(1);
643
+ }
644
+ else {
645
+ request.path += path;
646
+ }
647
+ return request;
648
+ }
649
+ isErrorResponse(statusCode) {
650
+ return statusCode !== 200;
651
+ }
609
652
  }
610
653
 
611
654
  const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
@@ -985,6 +1028,9 @@ const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
985
1028
  if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
986
1029
  runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
987
1030
  }
1031
+ if (runtimeConfig.defaultSocketTimeout) {
1032
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"), runtimeConfig.defaultSocketTimeout);
1033
+ }
988
1034
  return {
989
1035
  setHttpHandler(handler) {
990
1036
  runtimeConfig.requestHandler = handler;
@@ -1390,10 +1436,6 @@ const loadErrorCode = ({ headers }, data, order) => {
1390
1436
  }
1391
1437
  };
1392
1438
 
1393
- function writeKey(obj) {
1394
- Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
1395
- }
1396
-
1397
1439
  class JsonShapeDeserializer2 extends SerdeContextConfig {
1398
1440
  settings;
1399
1441
  constructor(settings) {
@@ -1445,8 +1487,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1445
1487
  const map = value;
1446
1488
  if (this.needsTransform(mapMember)) {
1447
1489
  for (const k in map) {
1448
- if (!hasOwn(map, k))
1490
+ if (!hasOwn(map, k)) {
1449
1491
  continue;
1492
+ }
1450
1493
  if (k === "__proto__") {
1451
1494
  writeKey(map);
1452
1495
  }
@@ -1518,8 +1561,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1518
1561
  else {
1519
1562
  const doc = value;
1520
1563
  for (const k in doc) {
1521
- if (!hasOwn(doc, k))
1564
+ if (!hasOwn(doc, k)) {
1522
1565
  continue;
1566
+ }
1523
1567
  if (k === "__proto__") {
1524
1568
  writeKey(doc);
1525
1569
  }
@@ -1566,8 +1610,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1566
1610
  }
1567
1611
  else if (hasType) {
1568
1612
  for (const k in record) {
1569
- if (!hasOwn(record, k))
1613
+ if (!hasOwn(record, k)) {
1570
1614
  continue;
1615
+ }
1571
1616
  const v = record[k];
1572
1617
  const t = jsonName ? (nameMap[k] ?? k) : k;
1573
1618
  if (!(t in out)) {
@@ -1812,9 +1857,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
1812
1857
  this.i = i;
1813
1858
  }
1814
1859
  writeJsonString(s) {
1815
- this.ensure(s.length * 3 + 2);
1816
- this.json[this.i++] = QUOTE;
1817
1860
  const z = s.length;
1861
+ this.ensure(z * 3 + 2);
1862
+ this.json[this.i++] = QUOTE;
1818
1863
  for (let j = 0; j < z; ++j) {
1819
1864
  const c = s.charCodeAt(j);
1820
1865
  if (c > 0x22 && c < 0x5c) {
@@ -1823,7 +1868,7 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
1823
1868
  else if (c < 0x80) {
1824
1869
  const esc = ESCAPE_TABLE[c];
1825
1870
  if (esc !== null) {
1826
- this.ensure(esc.length + 1);
1871
+ this.ensure(esc.length + 1 + (z - j - 1) * 3 + 1);
1827
1872
  this.json[this.i++] = BACKSLASH;
1828
1873
  for (let k = 0; k < esc.length; k++) {
1829
1874
  this.json[this.i++] = esc.charCodeAt(k);
@@ -1842,12 +1887,12 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
1842
1887
  ++j;
1843
1888
  }
1844
1889
  else {
1845
- this.ensure(6);
1890
+ this.ensure(6 + (z - j - 1) * 3 + 1);
1846
1891
  this.writeUnicodeEscape(c);
1847
1892
  }
1848
1893
  }
1849
1894
  else if (c >= 0xdc00 && c <= 0xdfff) {
1850
- this.ensure(6);
1895
+ this.ensure(6 + (z - j - 1) * 3 + 1);
1851
1896
  this.writeUnicodeEscape(c);
1852
1897
  }
1853
1898
  else {
@@ -2111,8 +2156,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2111
2156
  const out = [];
2112
2157
  for (let i = 0; i < value.length; ++i) {
2113
2158
  const v = value[i];
2114
- if (v == null && !sparse)
2159
+ if (v == null && !sparse) {
2115
2160
  continue;
2161
+ }
2116
2162
  if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2117
2163
  out.push(String(v));
2118
2164
  }
@@ -2152,8 +2198,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2152
2198
  if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2153
2199
  let modifications;
2154
2200
  for (const k in value) {
2155
- if (!hasOwn(value, k))
2201
+ if (!hasOwn(value, k)) {
2156
2202
  continue;
2203
+ }
2157
2204
  const v = value[k];
2158
2205
  if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2159
2206
  (modifications ??= {})[k] = v;
@@ -2177,8 +2224,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2177
2224
  this.json[this.i++] = OPEN_BRACE;
2178
2225
  let first = true;
2179
2226
  for (const k in value) {
2180
- if (!hasOwn(value, k))
2227
+ if (!hasOwn(value, k)) {
2181
2228
  continue;
2229
+ }
2182
2230
  const v = value[k];
2183
2231
  if (isDocument ? v === undefined : v == null && !sparse) {
2184
2232
  continue;
@@ -2240,7 +2288,7 @@ class JsonCodec2 extends SerdeContextConfig {
2240
2288
  }
2241
2289
  }
2242
2290
 
2243
- class SmithyRpcV2JsonProtocol extends RpcProtocol {
2291
+ class SmithyRpcV2JsonProtocol extends AbstractRpcV2Protocol {
2244
2292
  codec = new JsonCodec2({
2245
2293
  timestampFormat: {
2246
2294
  useTrait: false,
@@ -2251,41 +2299,19 @@ class SmithyRpcV2JsonProtocol extends RpcProtocol {
2251
2299
  });
2252
2300
  serializer = this.codec.createSerializer();
2253
2301
  deserializer = this.codec.createDeserializer();
2254
- constructor({ defaultNamespace, errorTypeRegistries, }) {
2255
- super({ defaultNamespace, errorTypeRegistries });
2256
- }
2257
2302
  getShapeId() {
2258
2303
  return "smithy.protocols#rpcv2Json";
2259
2304
  }
2260
2305
  getPayloadCodec() {
2261
2306
  return this.codec;
2262
2307
  }
2263
- async serializeRequest(operationSchema, input, context) {
2264
- const request = await super.serializeRequest(operationSchema, input, context);
2265
- Object.assign(request.headers, {
2266
- "content-type": this.getDefaultContentType(),
2267
- "smithy-protocol": "rpc-v2-json",
2268
- accept: this.getDefaultContentType(),
2269
- });
2270
- if (deref(operationSchema.input) === "unit") {
2271
- delete request.body;
2272
- delete request.headers["content-type"];
2273
- }
2274
- else if (!request.body) {
2308
+ getSmithyProtocolHeaderValue() {
2309
+ return "rpc-v2-json";
2310
+ }
2311
+ applyEmptyBody(request) {
2312
+ if (!request.body) {
2275
2313
  request.body = "{}";
2276
2314
  }
2277
- const { service, operation } = getSmithyContext(context);
2278
- const path = `/service/${service}/operation/${operation}`;
2279
- if (request.path.endsWith("/")) {
2280
- request.path += path.slice(1);
2281
- }
2282
- else {
2283
- request.path += path;
2284
- }
2285
- return request;
2286
- }
2287
- async deserializeResponse(operationSchema, context, response) {
2288
- return super.deserializeResponse(operationSchema, context, response);
2289
2315
  }
2290
2316
  async handleError(operationSchema, context, response, dataObject, metadata) {
2291
2317
  const errorName = loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
@@ -2386,8 +2412,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2386
2412
  }
2387
2413
  else if (typeof record.__type === "string") {
2388
2414
  for (const k in record) {
2389
- if (!hasOwn(record, k))
2415
+ if (!hasOwn(record, k)) {
2390
2416
  continue;
2417
+ }
2391
2418
  const v = record[k];
2392
2419
  const t = jsonName ? (nameMap[k] ?? k) : k;
2393
2420
  if (!(t in out)) {
@@ -2409,8 +2436,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2409
2436
  const mapMember = ns.getValueSchema();
2410
2437
  const out = {};
2411
2438
  for (const _k in value) {
2412
- if (!hasOwn(value, _k))
2439
+ if (!hasOwn(value, _k)) {
2413
2440
  continue;
2441
+ }
2414
2442
  if (_k === "__proto__") {
2415
2443
  writeKey(out);
2416
2444
  }
@@ -2472,8 +2500,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2472
2500
  if (isObject) {
2473
2501
  const out = Array.isArray(value) ? [] : {};
2474
2502
  for (const k in value) {
2475
- if (!hasOwn(value, k))
2503
+ if (!hasOwn(value, k)) {
2476
2504
  continue;
2505
+ }
2477
2506
  if (k === "__proto__") {
2478
2507
  writeKey(out);
2479
2508
  }
@@ -2610,8 +2639,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2610
2639
  }
2611
2640
  else if (typeof record.__type === "string") {
2612
2641
  for (const k in record) {
2613
- if (!hasOwn(record, k))
2642
+ if (!hasOwn(record, k)) {
2614
2643
  continue;
2644
+ }
2615
2645
  const v = record[k];
2616
2646
  const targetKey = jsonName ? (nameMap[k] ?? k) : k;
2617
2647
  if (!(targetKey in out)) {
@@ -2637,8 +2667,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2637
2667
  const out = {};
2638
2668
  const sparse = !!ns.getMergedTraits().sparse;
2639
2669
  for (const _k in value) {
2640
- if (!hasOwn(value, _k))
2670
+ if (!hasOwn(value, _k)) {
2641
2671
  continue;
2672
+ }
2642
2673
  const _v = value[_k];
2643
2674
  if (sparse || _v != null) {
2644
2675
  if (_k === "__proto__") {
@@ -2711,8 +2742,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2711
2742
  }
2712
2743
  const out = Array.isArray(value) ? [] : {};
2713
2744
  for (const k in value) {
2714
- if (!hasOwn(value, k))
2745
+ if (!hasOwn(value, k)) {
2715
2746
  continue;
2747
+ }
2716
2748
  const v = value[k];
2717
2749
  if (k === "__proto__") {
2718
2750
  writeKey(out);
@@ -2753,6 +2785,7 @@ class JsonCodec extends SerdeContextConfig {
2753
2785
  }
2754
2786
  }
2755
2787
 
2788
+ exports.AbstractRpcV2Protocol = AbstractRpcV2Protocol;
2756
2789
  exports.Field = Field;
2757
2790
  exports.Fields = Fields;
2758
2791
  exports.FromStringShapeDeserializer = FromStringShapeDeserializer;
@@ -1,6 +1,7 @@
1
1
  const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
2
2
  const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
3
3
  const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
4
+ const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
4
5
  const { hasOwn } = require("@smithy/core/transport");
5
6
 
6
7
  const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
@@ -80,6 +81,29 @@ function isNodeJsHttp2TransientError(error) {
80
81
  return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
81
82
  }
82
83
 
84
+ const race = (promise, signal) => {
85
+ if (!signal) {
86
+ return promise;
87
+ }
88
+ let cleanup = () => { };
89
+ const aborted = new Promise((_, reject) => {
90
+ const handler = () => reject(createAbortError());
91
+ if (signal.aborted) {
92
+ handler();
93
+ }
94
+ else if (typeof signal.addEventListener === "function") {
95
+ signal.addEventListener("abort", handler, { once: true });
96
+ cleanup = () => signal.removeEventListener("abort", handler);
97
+ }
98
+ else {
99
+ signal.onabort = handler;
100
+ }
101
+ });
102
+ return Promise.race([promise, aborted]).finally(cleanup);
103
+ };
104
+ const createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
105
+ const isAbortError = (error) => typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
106
+
83
107
  const DEFAULT_RETRY_DELAY_BASE = 100;
84
108
  const MAXIMUM_RETRY_DELAY = 20 * 1000;
85
109
  const THROTTLING_RETRY_DELAY_BASE = 500;
@@ -95,8 +119,9 @@ function parseRetryAfterHeader(response, logger) {
95
119
  return;
96
120
  }
97
121
  for (const header in response.headers) {
98
- if (!hasOwn(response.headers, header))
122
+ if (!hasOwn(response.headers, header)) {
99
123
  continue;
124
+ }
100
125
  const h = header.toLowerCase();
101
126
  if (h === "retry-after") {
102
127
  const retryAfter = response.headers[header];
@@ -141,12 +166,15 @@ function getRetryAfterHint(response, logger) {
141
166
  }
142
167
 
143
168
  const asSdkError = (error) => {
144
- if (error instanceof Error)
169
+ if (error instanceof Error) {
145
170
  return error;
146
- if (error instanceof Object)
171
+ }
172
+ if (error instanceof Object) {
147
173
  return Object.assign(new Error(), error);
148
- if (typeof error === "string")
174
+ }
175
+ if (typeof error === "string") {
149
176
  return new Error(error);
177
+ }
150
178
  return new Error(`AWS SDK error wrapper for ${error}`);
151
179
  };
152
180
 
@@ -154,9 +182,11 @@ function bindRetryMiddleware(isStreamingPayload) {
154
182
  return (options) => (next, context) => async (args) => {
155
183
  let retryStrategy = await options.retryStrategy();
156
184
  const maxAttempts = await options.maxAttempts();
185
+ const abortSignal = context[SMITHY_CONTEXT_KEY]?.abortSignal;
157
186
  if (isRetryStrategyV2(retryStrategy)) {
158
187
  retryStrategy = retryStrategy;
159
- let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
188
+ const retryTokenScope = (context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "");
189
+ let retryToken = await race(retryStrategy.acquireInitialRetryToken(retryTokenScope), abortSignal);
160
190
  let lastError = new Error();
161
191
  let attempts = 0;
162
192
  let totalRetryDelay = 0;
@@ -184,9 +214,12 @@ function bindRetryMiddleware(isStreamingPayload) {
184
214
  throw lastError;
185
215
  }
186
216
  try {
187
- retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
217
+ retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
188
218
  }
189
- catch (ignoredRefreshError) {
219
+ catch (refreshError) {
220
+ if (abortSignal?.aborted && isAbortError(refreshError)) {
221
+ throw refreshError;
222
+ }
190
223
  if (!lastError.$metadata) {
191
224
  lastError.$metadata = {};
192
225
  }
@@ -198,7 +231,7 @@ function bindRetryMiddleware(isStreamingPayload) {
198
231
  const delay = retryToken.getRetryDelay();
199
232
  totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
200
233
  if (delay > 0) {
201
- await cooldown(delay);
234
+ await race(new Promise((resolve) => setTimeout(resolve, delay)), abortSignal);
202
235
  }
203
236
  }
204
237
  }
@@ -212,7 +245,6 @@ function bindRetryMiddleware(isStreamingPayload) {
212
245
  }
213
246
  };
214
247
  }
215
- const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
216
248
  const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
217
249
  typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
218
250
  typeof retryStrategy.recordSuccess !== "undefined";
@@ -228,12 +260,15 @@ const getRetryErrorInfo = (error, logger) => {
228
260
  return errorInfo;
229
261
  };
230
262
  const getRetryErrorType = (error) => {
231
- if (isThrottlingError(error))
263
+ if (isThrottlingError(error)) {
232
264
  return "THROTTLING";
233
- if (isTransientError(error))
265
+ }
266
+ if (isTransientError(error)) {
234
267
  return "TRANSIENT";
235
- if (isServerError(error))
268
+ }
269
+ if (isServerError(error)) {
236
270
  return "SERVER_ERROR";
271
+ }
237
272
  return "CLIENT_ERROR";
238
273
  };
239
274
  const retryMiddlewareOptions = {
@@ -685,15 +720,18 @@ class StandardRetryStrategy {
685
720
  }
686
721
  }
687
722
  const getDelayFromRetryAfterHeader = (response) => {
688
- if (!HttpResponse.isInstance(response))
723
+ if (!HttpResponse.isInstance(response)) {
689
724
  return;
725
+ }
690
726
  const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
691
- if (!retryAfterHeaderName)
727
+ if (!retryAfterHeaderName) {
692
728
  return;
729
+ }
693
730
  const retryAfter = response.headers[retryAfterHeaderName];
694
731
  const retryAfterSeconds = Number(retryAfter);
695
- if (!Number.isNaN(retryAfterSeconds))
732
+ if (!Number.isNaN(retryAfterSeconds)) {
696
733
  return Math.min(retryAfterSeconds * 1000, 20_000);
734
+ }
697
735
  const retryAfterDate = new Date(retryAfter);
698
736
  return Math.min(retryAfterDate.getTime() - Date.now(), 20_000);
699
737
  };