@cdklabs/cdk-construct-connect-datalake 0.0.11 → 0.0.13

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 (318) hide show
  1. package/.jsii +11 -11
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +9 -9
  10. package/node_modules/@aws-sdk/client-connect/README.md +11 -6
  11. package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +74 -47
  12. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +43 -16
  13. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +12 -7
  14. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +12 -7
  15. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateVocabularyCommand.d.ts +2 -1
  16. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetMetricDataV2Command.d.ts +2 -1
  17. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactsCommand.d.ts +17 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchPromptsCommand.d.ts +1 -2
  19. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchQueuesCommand.d.ts +1 -2
  20. package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +12 -7
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +40 -37
  22. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +152 -59
  23. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +69 -63
  24. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +72 -16
  25. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +3 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +2 -4
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +2 -4
  28. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchPromptsCommand.d.ts +4 -2
  29. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchQueuesCommand.d.ts +1 -2
  30. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +9 -10
  31. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +9 -10
  32. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +19 -15
  33. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +17 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  35. package/node_modules/@aws-sdk/client-connect/package.json +9 -9
  36. package/node_modules/@aws-sdk/client-glue/README.md +14 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +38 -0
  38. package/node_modules/@aws-sdk/client-glue/dist-cjs/models/errors.js +16 -1
  39. package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +91 -36
  40. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +4 -0
  41. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetDashboardUrlCommand.js +16 -0
  42. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  43. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +2 -0
  44. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +8 -0
  45. package/node_modules/@aws-sdk/client-glue/dist-es/models/errors.js +14 -0
  46. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +66 -11
  47. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +14 -0
  48. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +4 -2
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateSessionCommand.d.ts +5 -0
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDashboardUrlCommand.d.ts +93 -0
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMLTaskRunCommand.d.ts +1 -2
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionCommand.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionEndpointCommand.d.ts +101 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListSessionsCommand.d.ts +1 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RunStatementCommand.d.ts +6 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDatabaseCommand.d.ts +1 -1
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +2 -0
  59. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +24 -0
  60. package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +17 -0
  61. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +41 -28
  62. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +70 -97
  63. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +97 -2
  64. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +8 -0
  65. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +34 -0
  66. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +12 -0
  67. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDashboardUrlCommand.d.ts +52 -0
  68. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMLTaskRunCommand.d.ts +1 -2
  69. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
  70. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +2 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +11 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/errors.d.ts +8 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +12 -7
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +18 -22
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +21 -1
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  79. package/node_modules/@aws-sdk/client-glue/package.json +9 -9
  80. package/node_modules/@aws-sdk/client-lakeformation/package.json +9 -9
  81. package/node_modules/@aws-sdk/client-ram/package.json +9 -9
  82. package/node_modules/@aws-sdk/client-sts/package.json +11 -11
  83. package/node_modules/@aws-sdk/core/dist-cjs/index.js +12 -6
  84. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
  85. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
  86. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
  87. package/node_modules/@aws-sdk/core/package.json +7 -7
  88. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  89. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +12 -6
  90. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +12 -6
  91. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -8
  92. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  93. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  94. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +12 -1
  95. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
  96. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  97. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  98. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  99. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  100. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  101. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  102. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  103. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  104. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  105. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  106. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  107. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  108. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  109. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  110. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  111. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  112. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  113. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  114. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  115. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  116. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  117. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  118. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  119. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  120. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  121. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  122. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  123. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  124. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  125. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  126. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  127. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  128. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  129. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  130. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  131. package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
  132. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -6
  133. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  134. package/node_modules/@aws-sdk/types/package.json +3 -3
  135. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  136. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  137. package/node_modules/@nodable/entities/package.json +1 -1
  138. package/node_modules/@nodable/entities/src/EntityDecoder.js +1 -1
  139. package/node_modules/@nodable/entities/src/entities.js +0 -18
  140. package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
  141. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
  142. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
  143. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
  144. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
  145. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
  146. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
  147. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
  148. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
  149. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
  150. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
  151. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  152. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  153. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  154. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
  155. package/node_modules/@smithy/core/dist-es/index.js +6 -6
  156. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
  157. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
  158. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
  159. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
  160. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
  161. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
  162. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
  163. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
  164. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
  165. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  166. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
  167. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
  168. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
  169. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
  170. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
  171. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
  172. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
  173. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
  174. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
  175. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
  176. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
  177. package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
  178. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
  179. package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
  180. package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
  181. package/node_modules/@smithy/core/dist-types/index.d.ts +10 -6
  182. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +2 -2
  183. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +2 -2
  184. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +2 -2
  185. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.d.ts +2 -2
  186. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/lib/index.d.ts +1 -1
  187. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  188. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +5 -5
  189. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/httpHandler.d.ts +1 -2
  190. package/node_modules/@smithy/core/dist-types/submodules/protocols/requestBuilder.d.ts +1 -1
  191. package/node_modules/@smithy/core/dist-types/submodules/retry/middleware-retry/configurations.d.ts +4 -1
  192. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/ConfiguredRetryStrategy.d.ts +1 -2
  193. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/DefaultRetryToken.d.ts +3 -0
  194. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/StandardRetryStrategy.d.ts +1 -1
  195. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +9 -0
  196. package/node_modules/@smithy/core/package.json +20 -11
  197. package/node_modules/@smithy/core/transport.d.ts +5 -0
  198. package/node_modules/@smithy/core/transport.js +5 -0
  199. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
  200. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
  201. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  202. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  203. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  204. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  205. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  206. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  207. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
  208. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  209. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  210. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  211. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  212. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  213. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  214. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  215. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  216. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  217. package/node_modules/@smithy/signature-v4/package.json +3 -3
  218. package/node_modules/@smithy/types/dist-types/retry.d.ts +25 -0
  219. package/node_modules/@smithy/types/package.json +1 -1
  220. package/node_modules/@types/aws-lambda/README.md +1 -1
  221. package/node_modules/@types/aws-lambda/package.json +3 -3
  222. package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +2 -0
  223. package/node_modules/hasown/CHANGELOG.md +7 -0
  224. package/node_modules/hasown/index.d.ts +0 -1
  225. package/node_modules/hasown/package.json +4 -5
  226. package/node_modules/which-typed-array/CHANGELOG.md +18 -0
  227. package/node_modules/which-typed-array/eslint.config.mjs +12 -0
  228. package/node_modules/which-typed-array/index.d.ts +22 -53
  229. package/node_modules/which-typed-array/index.js +36 -23
  230. package/node_modules/which-typed-array/package.json +8 -8
  231. package/package.json +15 -15
  232. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
  233. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
  234. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
  235. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
  236. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
  237. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
  238. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
  239. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
  240. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
  241. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
  242. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
  243. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
  244. package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
  245. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
  246. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
  247. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
  248. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
  249. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
  250. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
  251. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
  252. package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
  253. package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
  254. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
  255. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
  256. package/node_modules/@smithy/core/dist-types/request-builder/requestBuilder.d.ts +0 -6
  257. package/node_modules/@smithy/core/dist-types/submodules/client/util-middleware/getSmithyContext.d.ts +0 -5
  258. package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/TestVectors.fixture.d.ts +0 -2
  259. package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/vectorTypes.fixture.d.ts +0 -12
  260. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
  261. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +0 -8
  262. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
  263. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  264. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
  265. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -12
  266. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +0 -12
  267. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -12
  268. package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
  269. package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +0 -14
  270. package/node_modules/which-typed-array/.eslintrc +0 -10
  271. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
  272. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
  273. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
  274. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
  275. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
  276. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
  277. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
  278. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
  279. /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
  280. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
  281. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
  282. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
  283. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
  284. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
  285. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
  286. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
  287. /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
  288. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
  289. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
  290. /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
  291. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
  292. /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
  293. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
  294. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +0 -0
  295. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.d.ts +0 -0
  296. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.d.ts +0 -0
  297. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.d.ts +0 -0
  298. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.d.ts +0 -0
  299. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.d.ts +0 -0
  300. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.d.ts +0 -0
  301. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.d.ts +0 -0
  302. /package/node_modules/@smithy/core/dist-types/{pagination → legacy-root-exports/pagination}/createPaginator.d.ts +0 -0
  303. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.d.ts +0 -0
  304. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.d.ts +0 -0
  305. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.d.ts +0 -0
  306. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.d.ts +0 -0
  307. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.d.ts +0 -0
  308. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.d.ts +0 -0
  309. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.d.ts +0 -0
  310. /package/node_modules/@smithy/core/dist-types/{getSmithyContext.d.ts → submodules/transport/getSmithyContext.d.ts} +0 -0
  311. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpRequest.d.ts +0 -0
  312. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpResponse.d.ts +0 -0
  313. /package/node_modules/@smithy/core/dist-types/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.d.ts +0 -0
  314. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/isValidHostname.d.ts +0 -0
  315. /package/node_modules/@smithy/core/dist-types/submodules/{client/util-middleware → transport}/normalizeProvider.d.ts +0 -0
  316. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/querystring-parser → transport}/parseQueryString.d.ts +0 -0
  317. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/url-parser → transport}/parseUrl.d.ts +0 -0
  318. /package/node_modules/@smithy/core/dist-types/submodules/{endpoints → transport}/toEndpointV1.d.ts +0 -0
@@ -0,0 +1,184 @@
1
+ 'use strict';
2
+
3
+ var types = require('@smithy/types');
4
+
5
+ const getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
6
+
7
+ class HttpRequest {
8
+ method;
9
+ protocol;
10
+ hostname;
11
+ port;
12
+ path;
13
+ query;
14
+ headers;
15
+ username;
16
+ password;
17
+ fragment;
18
+ body;
19
+ constructor(options) {
20
+ this.method = options.method || "GET";
21
+ this.hostname = options.hostname || "localhost";
22
+ this.port = options.port;
23
+ this.query = options.query || {};
24
+ this.headers = options.headers || {};
25
+ this.body = options.body;
26
+ this.protocol = options.protocol
27
+ ? options.protocol.slice(-1) !== ":"
28
+ ? `${options.protocol}:`
29
+ : options.protocol
30
+ : "https:";
31
+ this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
32
+ this.username = options.username;
33
+ this.password = options.password;
34
+ this.fragment = options.fragment;
35
+ }
36
+ static clone(request) {
37
+ const cloned = new HttpRequest({
38
+ ...request,
39
+ headers: { ...request.headers },
40
+ });
41
+ if (cloned.query) {
42
+ cloned.query = cloneQuery(cloned.query);
43
+ }
44
+ return cloned;
45
+ }
46
+ static isInstance(request) {
47
+ if (!request) {
48
+ return false;
49
+ }
50
+ const req = request;
51
+ return ("method" in req &&
52
+ "protocol" in req &&
53
+ "hostname" in req &&
54
+ "path" in req &&
55
+ typeof req["query"] === "object" &&
56
+ typeof req["headers"] === "object");
57
+ }
58
+ clone() {
59
+ return HttpRequest.clone(this);
60
+ }
61
+ }
62
+ function cloneQuery(query) {
63
+ return Object.keys(query).reduce((carry, paramName) => {
64
+ const param = query[paramName];
65
+ return {
66
+ ...carry,
67
+ [paramName]: Array.isArray(param) ? [...param] : param,
68
+ };
69
+ }, {});
70
+ }
71
+
72
+ class HttpResponse {
73
+ statusCode;
74
+ reason;
75
+ headers;
76
+ body;
77
+ constructor(options) {
78
+ this.statusCode = options.statusCode;
79
+ this.reason = options.reason;
80
+ this.headers = options.headers || {};
81
+ this.body = options.body;
82
+ }
83
+ static isInstance(response) {
84
+ if (!response)
85
+ return false;
86
+ const resp = response;
87
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
88
+ }
89
+ }
90
+
91
+ const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
92
+ const isValidHostLabel = (value, allowSubDomains = false) => {
93
+ if (!allowSubDomains) {
94
+ return VALID_HOST_LABEL_REGEX.test(value);
95
+ }
96
+ const labels = value.split(".");
97
+ for (const label of labels) {
98
+ if (!isValidHostLabel(label)) {
99
+ return false;
100
+ }
101
+ }
102
+ return true;
103
+ };
104
+
105
+ function isValidHostname(hostname) {
106
+ const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
107
+ return hostPattern.test(hostname);
108
+ }
109
+
110
+ const normalizeProvider = (input) => {
111
+ if (typeof input === "function")
112
+ return input;
113
+ const promisified = Promise.resolve(input);
114
+ return () => promisified;
115
+ };
116
+
117
+ function parseQueryString(querystring) {
118
+ const query = {};
119
+ querystring = querystring.replace(/^\?/, "");
120
+ if (querystring) {
121
+ for (const pair of querystring.split("&")) {
122
+ let [key, value = null] = pair.split("=");
123
+ key = decodeURIComponent(key);
124
+ if (value) {
125
+ value = decodeURIComponent(value);
126
+ }
127
+ if (!(key in query)) {
128
+ query[key] = value;
129
+ }
130
+ else if (Array.isArray(query[key])) {
131
+ query[key].push(value);
132
+ }
133
+ else {
134
+ query[key] = [query[key], value];
135
+ }
136
+ }
137
+ }
138
+ return query;
139
+ }
140
+
141
+ const parseUrl = (url) => {
142
+ if (typeof url === "string") {
143
+ return parseUrl(new URL(url));
144
+ }
145
+ const { hostname, pathname, port, protocol, search } = url;
146
+ let query;
147
+ if (search) {
148
+ query = parseQueryString(search);
149
+ }
150
+ return {
151
+ hostname,
152
+ port: port ? parseInt(port) : undefined,
153
+ protocol,
154
+ path: pathname,
155
+ query,
156
+ };
157
+ };
158
+
159
+ const toEndpointV1 = (endpoint) => {
160
+ if (typeof endpoint === "object") {
161
+ if ("url" in endpoint) {
162
+ const v1Endpoint = parseUrl(endpoint.url);
163
+ if (endpoint.headers) {
164
+ v1Endpoint.headers = {};
165
+ for (const name in endpoint.headers) {
166
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
167
+ }
168
+ }
169
+ return v1Endpoint;
170
+ }
171
+ return endpoint;
172
+ }
173
+ return parseUrl(endpoint);
174
+ };
175
+
176
+ exports.HttpRequest = HttpRequest;
177
+ exports.HttpResponse = HttpResponse;
178
+ exports.getSmithyContext = getSmithyContext;
179
+ exports.isValidHostLabel = isValidHostLabel;
180
+ exports.isValidHostname = isValidHostname;
181
+ exports.normalizeProvider = normalizeProvider;
182
+ exports.parseQueryString = parseQueryString;
183
+ exports.parseUrl = parseUrl;
184
+ exports.toEndpointV1 = toEndpointV1;
@@ -1,8 +1,8 @@
1
- export * from "./getSmithyContext";
2
- export * from "./middleware-http-auth-scheme";
3
- export * from "./middleware-http-signing";
1
+ export { getSmithyContext } from "@smithy/core/transport";
2
+ export * from "./legacy-root-exports/middleware-http-auth-scheme";
3
+ export * from "./legacy-root-exports/middleware-http-signing";
4
4
  export * from "./normalizeProvider";
5
- export { createPaginator } from "./pagination/createPaginator";
6
- export * from "./request-builder/requestBuilder";
5
+ export { createPaginator } from "./legacy-root-exports/pagination/createPaginator";
6
+ export { requestBuilder } from "@smithy/core/protocols";
7
7
  export * from "./setFeature";
8
- export * from "./util-identity-and-auth";
8
+ export * from "./legacy-root-exports/util-identity-and-auth";
@@ -1,6 +1,6 @@
1
1
  export { constructStack } from "./middleware-stack/MiddlewareStack";
2
- export { getSmithyContext } from "./util-middleware/getSmithyContext";
3
- export { normalizeProvider } from "./util-middleware/normalizeProvider";
2
+ export { getSmithyContext } from "@smithy/core/transport";
3
+ export { normalizeProvider } from "@smithy/core/transport";
4
4
  export { invalidFunction } from "./invalid-dependency/invalidFunction";
5
5
  export { invalidProvider } from "./invalid-dependency/invalidProvider";
6
6
  export { createWaiter } from "./util-waiter/createWaiter";
@@ -1,4 +1,4 @@
1
- import { isValidHostLabel } from "@smithy/core/endpoints";
1
+ import { isValidHostLabel } from "@smithy/core/transport";
2
2
  const validRegions = new Set();
3
3
  export const checkRegion = (region, check = isValidHostLabel) => {
4
4
  if (!validRegions.has(region) && !check(region)) {
@@ -3,12 +3,12 @@ import { bindGetEndpointFromInstructions } from "./middleware-endpoint/adaptors/
3
3
  import { bindEndpointMiddleware } from "./middleware-endpoint/endpointMiddleware";
4
4
  import { bindGetEndpointPlugin } from "./middleware-endpoint/getEndpointPlugin";
5
5
  import { bindResolveEndpointConfig } from "./middleware-endpoint/resolveEndpointConfig";
6
- export * from "./toEndpointV1";
6
+ export { toEndpointV1 } from "@smithy/core/transport";
7
7
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
8
8
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
9
9
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
10
10
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
11
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
11
+ export { isValidHostLabel } from "@smithy/core/transport";
12
12
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
13
13
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
14
14
  export * from "./util-endpoints/types";
@@ -3,12 +3,12 @@ import { bindGetEndpointFromInstructions } from "./middleware-endpoint/adaptors/
3
3
  import { bindEndpointMiddleware } from "./middleware-endpoint/endpointMiddleware";
4
4
  import { bindGetEndpointPlugin } from "./middleware-endpoint/getEndpointPlugin";
5
5
  import { bindResolveEndpointConfig } from "./middleware-endpoint/resolveEndpointConfig";
6
- export * from "./toEndpointV1";
6
+ export { toEndpointV1 } from "@smithy/core/transport";
7
7
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
8
8
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
9
9
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
10
10
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
11
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
11
+ export { isValidHostLabel } from "@smithy/core/transport";
12
12
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
13
13
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
14
14
  export * from "./util-endpoints/types";
@@ -1 +1 @@
1
- export { toEndpointV1 } from "../../toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
@@ -1,4 +1,4 @@
1
- import { normalizeProvider } from "@smithy/core/client";
1
+ import { normalizeProvider } from "@smithy/core/transport";
2
2
  import { toEndpointV1 } from "./adaptors/toEndpointV1";
3
3
  export function bindResolveEndpointConfig(getEndpointFromConfig) {
4
4
  return (input) => {
@@ -2,7 +2,7 @@ export * from "./booleanEquals";
2
2
  export * from "./coalesce";
3
3
  export * from "./getAttr";
4
4
  export * from "./isSet";
5
- export * from "./isValidHostLabel";
5
+ export { isValidHostLabel } from "@smithy/core/transport";
6
6
  export * from "./ite";
7
7
  export * from "./not";
8
8
  export * from "./parseURL";
@@ -1,9 +1,9 @@
1
1
  import { NormalizedSchema, translateTraits } from "@smithy/core/schema";
2
2
  import { sdkStreamMixin, splitEvery, splitHeader } from "@smithy/core/serde";
3
+ import { HttpRequest } from "@smithy/core/transport";
3
4
  import { HttpProtocol } from "./HttpProtocol";
4
5
  import { collectBody } from "./collect-stream-body";
5
6
  import { extendedEncodeURIComponent } from "./extended-encode-uri-component";
6
- import { HttpRequest } from "./protocol-http/httpRequest";
7
7
  export class HttpBindingProtocol extends HttpProtocol {
8
8
  async serializeRequest(operationSchema, _input, context) {
9
9
  const input = _input && typeof _input === "object" ? _input : {};
@@ -1,7 +1,6 @@
1
1
  import { NormalizedSchema, TypeRegistry, translateTraits } from "@smithy/core/schema";
2
+ import { HttpRequest, HttpResponse } from "@smithy/core/transport";
2
3
  import { SerdeContext } from "./SerdeContext";
3
- import { HttpRequest } from "./protocol-http/httpRequest";
4
- import { HttpResponse } from "./protocol-http/httpResponse";
5
4
  export class HttpProtocol extends SerdeContext {
6
5
  options;
7
6
  compositeErrorRegistry;
@@ -1,7 +1,7 @@
1
1
  import { NormalizedSchema } from "@smithy/core/schema";
2
+ import { HttpRequest } from "@smithy/core/transport";
2
3
  import { HttpProtocol } from "./HttpProtocol";
3
4
  import { collectBody } from "./collect-stream-body";
4
- import { HttpRequest } from "./protocol-http/httpRequest";
5
5
  export class RpcProtocol extends HttpProtocol {
6
6
  async serializeRequest(operationSchema, _input, context) {
7
7
  const serializer = this.serializer;
@@ -13,13 +13,13 @@ export * from "./serde/determineTimestampFormat";
13
13
  export * from "./SerdeContext";
14
14
  export { Field } from "./protocol-http/Field";
15
15
  export { Fields } from "./protocol-http/Fields";
16
- export { HttpRequest } from "./protocol-http/httpRequest";
17
- export { HttpResponse } from "./protocol-http/httpResponse";
18
- export { isValidHostname } from "./protocol-http/isValidHostname";
16
+ export { HttpRequest } from "@smithy/core/transport";
17
+ export { HttpResponse } from "@smithy/core/transport";
18
+ export { isValidHostname } from "@smithy/core/transport";
19
19
  export { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "./protocol-http/extensions/httpExtensionConfiguration";
20
20
  export { contentLengthMiddleware, contentLengthMiddlewareOptions, getContentLengthPlugin, } from "./middleware-content-length/contentLengthMiddleware";
21
21
  export { escapeUri } from "./util-uri-escape/escape-uri";
22
22
  export { escapeUriPath } from "./util-uri-escape/escape-uri-path";
23
23
  export { buildQueryString } from "./querystring-builder/buildQueryString";
24
- export { parseQueryString } from "./querystring-parser/parseQueryString";
25
- export { parseUrl } from "./url-parser/parseUrl";
24
+ export { parseQueryString } from "@smithy/core/transport";
25
+ export { parseUrl } from "@smithy/core/transport";
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "../protocol-http/httpRequest";
1
+ import { HttpRequest } from "@smithy/core/transport";
2
2
  const CONTENT_LENGTH_HEADER = "content-length";
3
3
  export function contentLengthMiddleware(bodyLengthChecker) {
4
4
  return (next) => async (args) => {
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "./protocol-http/httpRequest";
1
+ import { HttpRequest } from "@smithy/core/transport";
2
2
  import { resolvedPath } from "./resolve-path";
3
3
  export function requestBuilder(input, context) {
4
4
  return new RequestBuilder(input, context);
@@ -2,6 +2,7 @@ import { normalizeProvider } from "@smithy/core/client";
2
2
  import { AdaptiveRetryStrategy } from "../util-retry/AdaptiveRetryStrategy";
3
3
  import { StandardRetryStrategy } from "../util-retry/StandardRetryStrategy";
4
4
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, RETRY_MODES } from "../util-retry/config";
5
+ import { Retry } from "../util-retry/retries-2026-config";
5
6
  export const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
6
7
  export const CONFIG_MAX_ATTEMPTS = "max_attempts";
7
8
  export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@@ -27,17 +28,29 @@ export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
27
28
  },
28
29
  default: DEFAULT_MAX_ATTEMPTS,
29
30
  };
30
- export const resolveRetryConfig = (input) => {
31
+ export const resolveRetryConfig = (input, defaults) => {
31
32
  const { retryStrategy, retryMode } = input;
32
- const maxAttempts = normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
33
+ const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {};
34
+ const maxAttemptsProvider = normalizeProvider(input.maxAttempts ?? defaultMaxAttempts);
33
35
  let controller = retryStrategy
34
36
  ? Promise.resolve(retryStrategy)
35
37
  : undefined;
36
- const getDefault = async () => (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE
37
- ? new AdaptiveRetryStrategy(maxAttempts)
38
- : new StandardRetryStrategy(maxAttempts);
38
+ const getDefault = async () => {
39
+ const maxAttempts = await maxAttemptsProvider();
40
+ const adaptive = (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE;
41
+ if (adaptive) {
42
+ return new AdaptiveRetryStrategy(maxAttemptsProvider, {
43
+ maxAttempts,
44
+ baseDelay: defaultBaseDelay,
45
+ });
46
+ }
47
+ return new StandardRetryStrategy({
48
+ maxAttempts,
49
+ baseDelay: defaultBaseDelay,
50
+ });
51
+ };
39
52
  return Object.assign(input, {
40
- maxAttempts,
53
+ maxAttempts: maxAttemptsProvider,
41
54
  retryStrategy: () => (controller ??= getDefault()),
42
55
  });
43
56
  };
@@ -42,9 +42,6 @@ export function bindRetryMiddleware(isStreamingPayload) {
42
42
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
43
43
  }
44
44
  catch (refreshError) {
45
- if (typeof refreshError.$backoff === "number") {
46
- await cooldown(refreshError.$backoff);
47
- }
48
45
  if (!lastError.$metadata) {
49
46
  lastError.$metadata = {};
50
47
  }
@@ -54,8 +51,10 @@ export function bindRetryMiddleware(isStreamingPayload) {
54
51
  }
55
52
  attempts = retryToken.getRetryCount();
56
53
  const delay = retryToken.getRetryDelay();
57
- totalRetryDelay += delay;
58
- await cooldown(delay);
54
+ totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
55
+ if (delay > 0) {
56
+ await cooldown(delay);
57
+ }
59
58
  }
60
59
  }
61
60
  }
@@ -25,4 +25,4 @@ export const THROTTLING_ERROR_CODES = [
25
25
  export const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
26
26
  export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
27
27
  export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
28
- export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
28
+ export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"];
@@ -10,10 +10,9 @@ export class ConfiguredRetryStrategy extends StandardRetryStrategy {
10
10
  else {
11
11
  this.computeNextBackoffDelay = computeNextBackoffDelay;
12
12
  }
13
- }
14
- async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
15
- const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
16
- token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
17
- return token;
13
+ this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => {
14
+ const nextAttempt = completedAttempt + 1;
15
+ return this.computeNextBackoffDelay(nextAttempt);
16
+ };
18
17
  }
19
18
  }
@@ -4,6 +4,9 @@ export class DefaultRetryToken {
4
4
  count;
5
5
  cost;
6
6
  longPoll;
7
+ $retryLog = {
8
+ acquisitionDelay: 0,
9
+ };
7
10
  constructor(delay, count, cost, longPoll) {
8
11
  this.delay = delay;
9
12
  this.count = count;
@@ -10,8 +10,8 @@ const refusal = {
10
10
  };
11
11
  export class StandardRetryStrategy {
12
12
  mode = RETRY_MODES.STANDARD;
13
- capacity = INITIAL_RETRY_TOKENS;
14
13
  retryBackoffStrategy;
14
+ capacity = INITIAL_RETRY_TOKENS;
15
15
  maxAttemptsProvider;
16
16
  baseDelay;
17
17
  constructor(arg1) {
@@ -47,14 +47,18 @@ export class StandardRetryStrategy {
47
47
  retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5_000));
48
48
  }
49
49
  if (!shouldRetry) {
50
- throw Object.assign(new Error("No retry token available"), {
51
- $backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0,
52
- });
50
+ const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0;
51
+ if (longPollBackoff > 0) {
52
+ await new Promise((r) => setTimeout(r, longPollBackoff));
53
+ }
53
54
  }
54
55
  else {
55
56
  const capacityCost = this.getCapacityCost(errorType);
56
57
  this.capacity -= capacityCost;
57
- return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
58
+ const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
59
+ await new Promise((r) => setTimeout(r, retryDelay));
60
+ nextToken.$retryLog.acquisitionDelay = retryDelay;
61
+ return nextToken;
58
62
  }
59
63
  }
60
64
  throw new Error("No retry token available");
@@ -1,5 +1,4 @@
1
- import { getSmithyContext } from "@smithy/core/client";
2
- import { HttpResponse } from "@smithy/core/protocols";
1
+ import { HttpResponse, getSmithyContext } from "@smithy/core/transport";
3
2
  import { operation } from "../schemas/operation";
4
3
  export const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
5
4
  const { response } = await next(args);
@@ -42,10 +41,10 @@ export const schemaDeserializationMiddleware = (config) => (next, context) => as
42
41
  }
43
42
  try {
44
43
  if (HttpResponse.isInstance(response)) {
45
- const { headers = {} } = response;
44
+ const { headers = {}, statusCode } = response;
46
45
  const headerEntries = Object.entries(headers);
47
46
  error.$metadata = {
48
- httpStatusCode: response.statusCode,
47
+ httpStatusCode: statusCode,
49
48
  requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
50
49
  extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
51
50
  cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
@@ -1,5 +1,4 @@
1
- import { getSmithyContext } from "@smithy/core/client";
2
- import { toEndpointV1 } from "@smithy/core/endpoints";
1
+ import { getSmithyContext, toEndpointV1 } from "@smithy/core/transport";
3
2
  import { operation } from "../schemas/operation";
4
3
  export const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
5
4
  const { operationSchema } = getSmithyContext(context);
@@ -1,4 +1,4 @@
1
- import { HttpResponse } from "@smithy/core/protocols";
1
+ import { HttpResponse } from "@smithy/core/transport";
2
2
  export const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
3
3
  const { response } = await next(args);
4
4
  try {
@@ -0,0 +1,9 @@
1
+ export { getSmithyContext } from "./getSmithyContext";
2
+ export { HttpRequest } from "./httpRequest";
3
+ export { HttpResponse } from "./httpResponse";
4
+ export { isValidHostLabel } from "./isValidHostLabel";
5
+ export { isValidHostname } from "./isValidHostname";
6
+ export { normalizeProvider } from "./normalizeProvider";
7
+ export { parseQueryString } from "./parseQueryString";
8
+ export { parseUrl } from "./parseUrl";
9
+ export { toEndpointV1 } from "./toEndpointV1";
@@ -1,4 +1,4 @@
1
- import { parseQueryString } from "../querystring-parser/parseQueryString";
1
+ import { parseQueryString } from "./parseQueryString";
2
2
  export const parseUrl = (url) => {
3
3
  if (typeof url === "string") {
4
4
  return parseUrl(new URL(url));
@@ -1,4 +1,4 @@
1
- import { parseUrl } from "@smithy/core/protocols";
1
+ import { parseUrl } from "./parseUrl";
2
2
  export const toEndpointV1 = (endpoint) => {
3
3
  if (typeof endpoint === "object") {
4
4
  if ("url" in endpoint) {
@@ -1,8 +1,12 @@
1
- export * from "./getSmithyContext";
2
- export * from "./middleware-http-auth-scheme";
3
- export * from "./middleware-http-signing";
1
+ export { getSmithyContext } from "@smithy/core/transport";
2
+ export * from "./legacy-root-exports/middleware-http-auth-scheme";
3
+ export * from "./legacy-root-exports/middleware-http-signing";
4
4
  export * from "./normalizeProvider";
5
- export { createPaginator } from "./pagination/createPaginator";
6
- export * from "./request-builder/requestBuilder";
5
+ export { createPaginator } from "./legacy-root-exports/pagination/createPaginator";
6
+ /**
7
+ * Backwards compatibility re-export.
8
+ * @internal
9
+ */
10
+ export { requestBuilder } from "@smithy/core/protocols";
7
11
  export * from "./setFeature";
8
- export * from "./util-identity-and-auth";
12
+ export * from "./legacy-root-exports/util-identity-and-auth";
@@ -1,6 +1,6 @@
1
1
  export { constructStack } from "./middleware-stack/MiddlewareStack";
2
- export { getSmithyContext } from "./util-middleware/getSmithyContext";
3
- export { normalizeProvider } from "./util-middleware/normalizeProvider";
2
+ export { getSmithyContext } from "@smithy/core/transport";
3
+ export { normalizeProvider } from "@smithy/core/transport";
4
4
  export { invalidFunction } from "./invalid-dependency/invalidFunction";
5
5
  export { invalidProvider } from "./invalid-dependency/invalidProvider";
6
6
  export { createWaiter } from "./util-waiter/createWaiter";
@@ -1,9 +1,9 @@
1
- export * from "./toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
2
2
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
3
3
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
4
4
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
5
5
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
6
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
6
+ export { isValidHostLabel } from "@smithy/core/transport";
7
7
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
8
8
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
9
9
  export * from "./util-endpoints/types";
@@ -1,9 +1,9 @@
1
- export * from "./toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
2
2
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
3
3
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
4
4
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
5
5
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
6
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
6
+ export { isValidHostLabel } from "@smithy/core/transport";
7
7
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
8
8
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
9
9
  export * from "./util-endpoints/types";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @deprecated Use `toEndpointV1` from `@smithy/core/endpoints` instead.
2
+ * @deprecated Use `toEndpointV1` from `@smithy/core/transport` instead.
3
3
  * @internal
4
4
  */
5
- export { toEndpointV1 } from "../../toEndpointV1";
5
+ export { toEndpointV1 } from "@smithy/core/transport";
@@ -2,7 +2,7 @@ export * from "./booleanEquals";
2
2
  export * from "./coalesce";
3
3
  export * from "./getAttr";
4
4
  export * from "./isSet";
5
- export * from "./isValidHostLabel";
5
+ export { isValidHostLabel } from "@smithy/core/transport";
6
6
  export * from "./ite";
7
7
  export * from "./not";
8
8
  export * from "./parseURL";
@@ -1,7 +1,7 @@
1
1
  import { NormalizedSchema, type TypeRegistry } from "@smithy/core/schema";
2
+ import { HttpRequest } from "@smithy/core/transport";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, Schema, SerdeFunctions } from "@smithy/types";
3
4
  import { HttpProtocol } from "./HttpProtocol";
4
- import { HttpRequest } from "./protocol-http/httpRequest";
5
5
  /**
6
6
  * Base for HTTP-binding protocols. Downstream examples
7
7
  * include AWS REST JSON and AWS REST XML.