@cdk8s/awscdk-resolver 0.0.374 → 0.0.376

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 (423) hide show
  1. package/.jsii +2 -2
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
  4. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
  5. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
  6. package/node_modules/@smithy/abort-controller/package.json +2 -2
  7. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +158 -215
  8. package/node_modules/@smithy/config-resolver/package.json +5 -5
  9. package/node_modules/@smithy/core/dist-cjs/index.js +308 -412
  10. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +957 -969
  11. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +198 -249
  12. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +793 -895
  13. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +617 -811
  14. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +584 -680
  15. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -0
  16. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +3 -3
  17. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
  18. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
  19. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  20. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +2 -0
  21. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
  22. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +2 -0
  23. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -0
  24. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
  25. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -2
  26. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -1
  27. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +3 -5
  28. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +5 -5
  29. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +6 -5
  30. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -8
  31. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +6 -5
  32. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +3 -0
  33. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +5 -5
  34. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +6 -5
  35. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
  36. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -0
  37. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
  38. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
  39. package/node_modules/@smithy/core/package.json +11 -11
  40. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -412
  41. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
  42. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  43. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
  44. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
  45. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  46. package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
  47. package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
  48. package/node_modules/@smithy/hash-node/package.json +4 -4
  49. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
  50. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  51. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
  52. package/node_modules/@smithy/is-array-buffer/package.json +1 -1
  53. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
  54. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  55. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
  56. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
  57. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  58. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -380
  59. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
  60. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
  61. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
  62. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +5 -1
  63. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  64. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
  65. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  66. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -297
  67. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  68. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
  69. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  70. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +663 -771
  71. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -3
  72. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
  73. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
  74. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
  75. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
  76. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
  77. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
  78. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  79. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  80. package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
  81. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
  82. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
  83. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
  84. package/node_modules/@smithy/property-provider/package.json +2 -2
  85. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -246
  86. package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
  87. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
  88. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
  89. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
  90. package/node_modules/@smithy/protocol-http/package.json +2 -2
  91. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
  92. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  93. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
  94. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  95. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
  96. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  97. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +171 -210
  98. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +1 -1
  99. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  100. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -648
  101. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
  102. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
  103. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
  104. package/node_modules/@smithy/signature-v4/package.json +8 -8
  105. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +554 -747
  106. package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
  107. package/node_modules/@smithy/smithy-client/dist-es/command.js +17 -18
  108. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
  109. package/node_modules/@smithy/smithy-client/package.json +7 -7
  110. package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
  111. package/node_modules/@smithy/types/package.json +1 -1
  112. package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
  113. package/node_modules/@smithy/url-parser/package.json +3 -3
  114. package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
  115. package/node_modules/@smithy/util-base64/package.json +3 -3
  116. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -50
  117. package/node_modules/@smithy/util-body-length-browser/package.json +1 -1
  118. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +27 -50
  119. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  120. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
  121. package/node_modules/@smithy/util-buffer-from/package.json +2 -2
  122. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -56
  123. package/node_modules/@smithy/util-config-provider/package.json +1 -1
  124. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
  125. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +4 -5
  126. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
  127. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  128. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
  129. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  130. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +445 -526
  131. package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
  132. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  133. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
  134. package/node_modules/@smithy/util-hex-encoding/package.json +1 -1
  135. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -40
  136. package/node_modules/@smithy/util-middleware/package.json +2 -2
  137. package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
  138. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
  139. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
  140. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
  141. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
  142. package/node_modules/@smithy/util-retry/package.json +3 -3
  143. package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
  144. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
  145. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
  146. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  147. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
  148. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  149. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
  150. package/node_modules/@smithy/util-stream/dist-cjs/index.js +83 -93
  151. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
  152. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  153. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
  154. package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
  155. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
  156. package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
  157. package/node_modules/@smithy/util-stream/package.json +8 -8
  158. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
  159. package/node_modules/@smithy/util-uri-escape/package.json +1 -1
  160. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
  161. package/node_modules/@smithy/util-utf8/package.json +2 -2
  162. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -189
  163. package/node_modules/@smithy/util-waiter/package.json +3 -3
  164. package/node_modules/@smithy/uuid/dist-cjs/index.js +33 -42
  165. package/node_modules/@smithy/uuid/package.json +1 -1
  166. package/package.json +6 -6
  167. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  168. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  169. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
  170. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
  171. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
  172. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
  173. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
  174. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
  175. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
  176. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
  177. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
  178. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
  179. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
  180. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
  181. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
  182. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
  183. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
  184. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
  185. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
  186. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
  187. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
  188. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
  189. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
  190. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
  191. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
  192. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
  193. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
  194. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
  195. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
  196. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
  197. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
  198. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
  199. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
  200. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
  201. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
  202. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
  203. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
  204. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
  205. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
  206. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
  207. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
  208. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
  209. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
  210. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
  211. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
  212. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
  213. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
  214. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
  215. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
  216. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
  217. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
  218. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
  219. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
  220. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
  221. package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
  222. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  223. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  224. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  225. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  226. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  227. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  228. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  229. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  230. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  231. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  232. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  233. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  234. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  235. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  236. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  237. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  238. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
  239. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
  240. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
  241. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
  242. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
  243. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
  244. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
  245. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
  246. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
  247. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
  248. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
  249. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
  250. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
  251. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
  252. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
  253. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
  254. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +0 -1
  255. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
  256. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
  257. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
  258. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
  259. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
  260. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
  261. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
  262. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
  263. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
  264. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
  265. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
  266. package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
  267. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
  268. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
  269. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
  270. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
  271. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
  272. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
  273. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
  274. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
  275. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
  276. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
  277. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
  278. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
  279. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
  280. package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  281. package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  282. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  283. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  284. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  285. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  286. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  287. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  288. package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  289. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  290. package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  291. package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  292. package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  293. package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  294. package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  295. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  296. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  297. package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  298. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  299. package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  300. package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  301. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  302. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  303. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  304. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  305. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  306. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  307. package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  308. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  309. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  310. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  311. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  312. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  313. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  314. package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  315. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  316. package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  317. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  318. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  319. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  320. package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  321. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  322. package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  323. package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  324. package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  325. package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  326. package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  327. package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  328. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  329. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  330. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  331. package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  332. package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  333. package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  334. package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  335. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  336. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  337. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  338. package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  339. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  340. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  341. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  342. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  343. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  344. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  345. package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  346. package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  347. package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  348. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
  349. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
  350. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
  351. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
  352. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
  353. package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
  354. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
  355. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
  356. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
  357. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
  358. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
  359. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
  360. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
  361. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
  362. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
  363. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
  364. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
  365. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
  366. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
  367. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
  368. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
  369. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
  370. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
  371. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
  372. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
  373. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
  374. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
  375. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
  376. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
  377. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
  378. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
  379. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
  380. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
  381. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
  382. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
  383. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
  384. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
  385. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
  386. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
  387. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
  388. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
  389. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
  390. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
  391. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
  392. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
  393. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
  394. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
  395. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
  396. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
  397. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
  398. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  399. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
  400. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
  401. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  402. package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
  403. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
  404. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
  405. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
  406. package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
  407. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
  408. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
  409. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
  410. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
  411. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  412. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  413. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  414. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  415. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  416. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
  417. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
  418. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
  419. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
  420. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
  421. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
  422. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +0 -1
  423. package/node_modules/@smithy/uuid/dist-cjs/v4.js +0 -1
@@ -1,781 +1,588 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
20
2
 
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- Client: () => Client,
25
- Command: () => Command,
26
- NoOpLogger: () => NoOpLogger,
27
- SENSITIVE_STRING: () => SENSITIVE_STRING2,
28
- ServiceException: () => ServiceException,
29
- _json: () => _json,
30
- collectBody: () => import_protocols.collectBody,
31
- convertMap: () => convertMap,
32
- createAggregatedClient: () => createAggregatedClient,
33
- decorateServiceException: () => decorateServiceException,
34
- emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
35
- extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent,
36
- getArrayIfSingleItem: () => getArrayIfSingleItem,
37
- getDefaultClientConfiguration: () => getDefaultClientConfiguration,
38
- getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,
39
- getValueFromTextNode: () => getValueFromTextNode,
40
- isSerializableHeaderValue: () => isSerializableHeaderValue,
41
- loadConfigsForDefaultMode: () => loadConfigsForDefaultMode,
42
- map: () => map,
43
- resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
44
- resolvedPath: () => import_protocols.resolvedPath,
45
- serializeDateTime: () => serializeDateTime,
46
- serializeFloat: () => serializeFloat,
47
- take: () => take,
48
- throwDefaultError: () => throwDefaultError,
49
- withBaseException: () => withBaseException
50
- });
51
- module.exports = __toCommonJS(index_exports);
3
+ var middlewareStack = require('@smithy/middleware-stack');
4
+ var protocols = require('@smithy/core/protocols');
5
+ var types = require('@smithy/types');
6
+ var schema = require('@smithy/core/schema');
7
+ var serde = require('@smithy/core/serde');
52
8
 
53
- // src/client.ts
54
- var import_middleware_stack = require("@smithy/middleware-stack");
55
- var Client = class {
56
- constructor(config) {
57
- this.config = config;
58
- this.middlewareStack = (0, import_middleware_stack.constructStack)();
59
- }
60
- static {
61
- __name(this, "Client");
62
- }
63
- send(command, optionsOrCb, cb) {
64
- const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
65
- const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
66
- const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
67
- let handler;
68
- if (useHandlerCache) {
69
- if (!this.handlers) {
70
- this.handlers = /* @__PURE__ */ new WeakMap();
71
- }
72
- const handlers = this.handlers;
73
- if (handlers.has(command.constructor)) {
74
- handler = handlers.get(command.constructor);
75
- } else {
76
- handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
77
- handlers.set(command.constructor, handler);
78
- }
79
- } else {
80
- delete this.handlers;
81
- handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
82
- }
83
- if (callback) {
84
- handler(command).then(
85
- (result) => callback(null, result.output),
86
- (err) => callback(err)
87
- ).catch(
88
- // prevent any errors thrown in the callback from triggering an
89
- // unhandled promise rejection
90
- () => {
9
+ class Client {
10
+ config;
11
+ middlewareStack = middlewareStack.constructStack();
12
+ initConfig;
13
+ handlers;
14
+ constructor(config) {
15
+ this.config = config;
16
+ }
17
+ send(command, optionsOrCb, cb) {
18
+ const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
19
+ const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
20
+ const useHandlerCache = options === undefined && this.config.cacheMiddleware === true;
21
+ let handler;
22
+ if (useHandlerCache) {
23
+ if (!this.handlers) {
24
+ this.handlers = new WeakMap();
25
+ }
26
+ const handlers = this.handlers;
27
+ if (handlers.has(command.constructor)) {
28
+ handler = handlers.get(command.constructor);
29
+ }
30
+ else {
31
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
32
+ handlers.set(command.constructor, handler);
33
+ }
91
34
  }
92
- );
93
- } else {
94
- return handler(command).then((result) => result.output);
95
- }
96
- }
97
- destroy() {
98
- this.config?.requestHandler?.destroy?.();
99
- delete this.handlers;
100
- }
101
- };
102
-
103
- // src/collect-stream-body.ts
104
- var import_protocols = require("@smithy/core/protocols");
105
-
106
- // src/command.ts
107
-
108
- var import_types = require("@smithy/types");
35
+ else {
36
+ delete this.handlers;
37
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
38
+ }
39
+ if (callback) {
40
+ handler(command)
41
+ .then((result) => callback(null, result.output), (err) => callback(err))
42
+ .catch(() => { });
43
+ }
44
+ else {
45
+ return handler(command).then((result) => result.output);
46
+ }
47
+ }
48
+ destroy() {
49
+ this.config?.requestHandler?.destroy?.();
50
+ delete this.handlers;
51
+ }
52
+ }
109
53
 
110
- // src/schemaLogFilter.ts
111
- var import_schema = require("@smithy/core/schema");
112
- var SENSITIVE_STRING = "***SensitiveInformation***";
113
- function schemaLogFilter(schema, data) {
114
- if (data == null) {
54
+ const SENSITIVE_STRING$1 = "***SensitiveInformation***";
55
+ function schemaLogFilter(schema$1, data) {
56
+ if (data == null) {
57
+ return data;
58
+ }
59
+ const ns = schema.NormalizedSchema.of(schema$1);
60
+ if (ns.getMergedTraits().sensitive) {
61
+ return SENSITIVE_STRING$1;
62
+ }
63
+ if (ns.isListSchema()) {
64
+ const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
65
+ if (isSensitive) {
66
+ return SENSITIVE_STRING$1;
67
+ }
68
+ }
69
+ else if (ns.isMapSchema()) {
70
+ const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
71
+ if (isSensitive) {
72
+ return SENSITIVE_STRING$1;
73
+ }
74
+ }
75
+ else if (ns.isStructSchema() && typeof data === "object") {
76
+ const object = data;
77
+ const newObject = {};
78
+ for (const [member, memberNs] of ns.structIterator()) {
79
+ if (object[member] != null) {
80
+ newObject[member] = schemaLogFilter(memberNs, object[member]);
81
+ }
82
+ }
83
+ return newObject;
84
+ }
115
85
  return data;
116
- }
117
- const ns = import_schema.NormalizedSchema.of(schema);
118
- if (ns.getMergedTraits().sensitive) {
119
- return SENSITIVE_STRING;
120
- }
121
- if (ns.isListSchema()) {
122
- const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
123
- if (isSensitive) {
124
- return SENSITIVE_STRING;
125
- }
126
- } else if (ns.isMapSchema()) {
127
- const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
128
- if (isSensitive) {
129
- return SENSITIVE_STRING;
130
- }
131
- } else if (ns.isStructSchema() && typeof data === "object") {
132
- const object = data;
133
- const newObject = {};
134
- for (const [member, memberNs] of ns.structIterator()) {
135
- if (object[member] != null) {
136
- newObject[member] = schemaLogFilter(memberNs, object[member]);
137
- }
138
- }
139
- return newObject;
140
- }
141
- return data;
142
86
  }
143
- __name(schemaLogFilter, "schemaLogFilter");
144
87
 
145
- // src/command.ts
146
- var Command = class {
147
- constructor() {
148
- this.middlewareStack = (0, import_middleware_stack.constructStack)();
149
- }
150
- static {
151
- __name(this, "Command");
152
- }
153
- /**
154
- * Factory for Command ClassBuilder.
155
- * @internal
156
- */
157
- static classBuilder() {
158
- return new ClassBuilder();
159
- }
160
- /**
161
- * @internal
162
- */
163
- resolveMiddlewareWithContext(clientStack, configuration, options, {
164
- middlewareFn,
165
- clientName,
166
- commandName,
167
- inputFilterSensitiveLog,
168
- outputFilterSensitiveLog,
169
- smithyContext,
170
- additionalContext,
171
- CommandCtor
172
- }) {
173
- for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
174
- this.middlewareStack.use(mw);
175
- }
176
- const stack = clientStack.concat(this.middlewareStack);
177
- const { logger } = configuration;
178
- const handlerExecutionContext = {
179
- logger,
180
- clientName,
181
- commandName,
182
- inputFilterSensitiveLog,
183
- outputFilterSensitiveLog,
184
- [import_types.SMITHY_CONTEXT_KEY]: {
185
- commandInstance: this,
186
- ...smithyContext
187
- },
188
- ...additionalContext
189
- };
190
- const { requestHandler } = configuration;
191
- return stack.resolve(
192
- (request) => requestHandler.handle(request.request, options || {}),
193
- handlerExecutionContext
194
- );
195
- }
196
- };
197
- var ClassBuilder = class {
198
- constructor() {
199
- this._init = /* @__PURE__ */ __name(() => {
200
- }, "_init");
201
- this._ep = {};
202
- this._middlewareFn = /* @__PURE__ */ __name(() => [], "_middlewareFn");
203
- this._commandName = "";
204
- this._clientName = "";
205
- this._additionalContext = {};
206
- this._smithyContext = {};
207
- this._inputFilterSensitiveLog = void 0;
208
- this._outputFilterSensitiveLog = void 0;
209
- this._serializer = null;
210
- this._deserializer = null;
211
- }
212
- static {
213
- __name(this, "ClassBuilder");
214
- }
215
- /**
216
- * Optional init callback.
217
- */
218
- init(cb) {
219
- this._init = cb;
220
- }
221
- /**
222
- * Set the endpoint parameter instructions.
223
- */
224
- ep(endpointParameterInstructions) {
225
- this._ep = endpointParameterInstructions;
226
- return this;
227
- }
228
- /**
229
- * Add any number of middleware.
230
- */
231
- m(middlewareSupplier) {
232
- this._middlewareFn = middlewareSupplier;
233
- return this;
234
- }
235
- /**
236
- * Set the initial handler execution context Smithy field.
237
- */
238
- s(service, operation, smithyContext = {}) {
239
- this._smithyContext = {
240
- service,
241
- operation,
242
- ...smithyContext
243
- };
244
- return this;
245
- }
246
- /**
247
- * Set the initial handler execution context.
248
- */
249
- c(additionalContext = {}) {
250
- this._additionalContext = additionalContext;
251
- return this;
252
- }
253
- /**
254
- * Set constant string identifiers for the operation.
255
- */
256
- n(clientName, commandName) {
257
- this._clientName = clientName;
258
- this._commandName = commandName;
259
- return this;
260
- }
261
- /**
262
- * Set the input and output sensistive log filters.
263
- */
264
- f(inputFilter = (_) => _, outputFilter = (_) => _) {
265
- this._inputFilterSensitiveLog = inputFilter;
266
- this._outputFilterSensitiveLog = outputFilter;
267
- return this;
268
- }
269
- /**
270
- * Sets the serializer.
271
- */
272
- ser(serializer) {
273
- this._serializer = serializer;
274
- return this;
275
- }
276
- /**
277
- * Sets the deserializer.
278
- */
279
- de(deserializer) {
280
- this._deserializer = deserializer;
281
- return this;
282
- }
283
- /**
284
- * Sets input/output schema for the operation.
285
- */
286
- sc(operation) {
287
- this._operationSchema = operation;
288
- this._smithyContext.operationSchema = operation;
289
- return this;
290
- }
291
- /**
292
- * @returns a Command class with the classBuilder properties.
293
- */
294
- build() {
295
- const closure = this;
296
- let CommandRef;
297
- return CommandRef = class extends Command {
298
- /**
299
- * @public
300
- */
301
- constructor(...[input]) {
302
- super();
303
- /**
304
- * @internal
305
- */
306
- // @ts-ignore used in middlewareFn closure.
307
- this.serialize = closure._serializer;
308
- /**
309
- * @internal
310
- */
311
- // @ts-ignore used in middlewareFn closure.
312
- this.deserialize = closure._deserializer;
313
- this.input = input ?? {};
314
- closure._init(this);
315
- this.schema = closure._operationSchema;
316
- }
317
- static {
318
- __name(this, "CommandRef");
319
- }
320
- /**
321
- * @public
322
- */
323
- static getEndpointParameterInstructions() {
324
- return closure._ep;
325
- }
326
- /**
327
- * @internal
328
- */
329
- resolveMiddleware(stack, configuration, options) {
330
- return this.resolveMiddlewareWithContext(stack, configuration, options, {
331
- CommandCtor: CommandRef,
332
- middlewareFn: closure._middlewareFn,
333
- clientName: closure._clientName,
334
- commandName: closure._commandName,
335
- inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_) => _),
336
- outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
337
- smithyContext: closure._smithyContext,
338
- additionalContext: closure._additionalContext
88
+ class Command {
89
+ middlewareStack = middlewareStack.constructStack();
90
+ schema;
91
+ static classBuilder() {
92
+ return new ClassBuilder();
93
+ }
94
+ resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }) {
95
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
96
+ this.middlewareStack.use(mw);
97
+ }
98
+ const stack = clientStack.concat(this.middlewareStack);
99
+ const { logger } = configuration;
100
+ const handlerExecutionContext = {
101
+ logger,
102
+ clientName,
103
+ commandName,
104
+ inputFilterSensitiveLog,
105
+ outputFilterSensitiveLog,
106
+ [types.SMITHY_CONTEXT_KEY]: {
107
+ commandInstance: this,
108
+ ...smithyContext,
109
+ },
110
+ ...additionalContext,
111
+ };
112
+ const { requestHandler } = configuration;
113
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
114
+ }
115
+ }
116
+ class ClassBuilder {
117
+ _init = () => { };
118
+ _ep = {};
119
+ _middlewareFn = () => [];
120
+ _commandName = "";
121
+ _clientName = "";
122
+ _additionalContext = {};
123
+ _smithyContext = {};
124
+ _inputFilterSensitiveLog = undefined;
125
+ _outputFilterSensitiveLog = undefined;
126
+ _serializer = null;
127
+ _deserializer = null;
128
+ _operationSchema;
129
+ init(cb) {
130
+ this._init = cb;
131
+ }
132
+ ep(endpointParameterInstructions) {
133
+ this._ep = endpointParameterInstructions;
134
+ return this;
135
+ }
136
+ m(middlewareSupplier) {
137
+ this._middlewareFn = middlewareSupplier;
138
+ return this;
139
+ }
140
+ s(service, operation, smithyContext = {}) {
141
+ this._smithyContext = {
142
+ service,
143
+ operation,
144
+ ...smithyContext,
145
+ };
146
+ return this;
147
+ }
148
+ c(additionalContext = {}) {
149
+ this._additionalContext = additionalContext;
150
+ return this;
151
+ }
152
+ n(clientName, commandName) {
153
+ this._clientName = clientName;
154
+ this._commandName = commandName;
155
+ return this;
156
+ }
157
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
158
+ this._inputFilterSensitiveLog = inputFilter;
159
+ this._outputFilterSensitiveLog = outputFilter;
160
+ return this;
161
+ }
162
+ ser(serializer) {
163
+ this._serializer = serializer;
164
+ return this;
165
+ }
166
+ de(deserializer) {
167
+ this._deserializer = deserializer;
168
+ return this;
169
+ }
170
+ sc(operation) {
171
+ this._operationSchema = operation;
172
+ this._smithyContext.operationSchema = operation;
173
+ return this;
174
+ }
175
+ build() {
176
+ const closure = this;
177
+ let CommandRef;
178
+ return (CommandRef = class extends Command {
179
+ input;
180
+ static getEndpointParameterInstructions() {
181
+ return closure._ep;
182
+ }
183
+ constructor(...[input]) {
184
+ super();
185
+ this.input = input ?? {};
186
+ closure._init(this);
187
+ this.schema = closure._operationSchema;
188
+ }
189
+ resolveMiddleware(stack, configuration, options) {
190
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
191
+ CommandCtor: CommandRef,
192
+ middlewareFn: closure._middlewareFn,
193
+ clientName: closure._clientName,
194
+ commandName: closure._commandName,
195
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog ??
196
+ (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_) => _),
197
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog ??
198
+ (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
199
+ smithyContext: closure._smithyContext,
200
+ additionalContext: closure._additionalContext,
201
+ });
202
+ }
203
+ serialize = closure._serializer;
204
+ deserialize = closure._deserializer;
339
205
  });
340
- }
341
- };
342
- }
343
- };
344
-
345
- // src/constants.ts
346
- var SENSITIVE_STRING2 = "***SensitiveInformation***";
206
+ }
207
+ }
347
208
 
348
- // src/create-aggregated-client.ts
349
- var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => {
350
- for (const command of Object.keys(commands)) {
351
- const CommandCtor = commands[command];
352
- const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
353
- const command2 = new CommandCtor(args);
354
- if (typeof optionsOrCb === "function") {
355
- this.send(command2, optionsOrCb);
356
- } else if (typeof cb === "function") {
357
- if (typeof optionsOrCb !== "object") throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
358
- this.send(command2, optionsOrCb || {}, cb);
359
- } else {
360
- return this.send(command2, optionsOrCb);
361
- }
362
- }, "methodImpl");
363
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
364
- Client2.prototype[methodName] = methodImpl;
365
- }
366
- }, "createAggregatedClient");
209
+ const SENSITIVE_STRING = "***SensitiveInformation***";
367
210
 
368
- // src/exceptions.ts
369
- var ServiceException = class _ServiceException extends Error {
370
- static {
371
- __name(this, "ServiceException");
372
- }
373
- constructor(options) {
374
- super(options.message);
375
- Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
376
- this.name = options.name;
377
- this.$fault = options.$fault;
378
- this.$metadata = options.$metadata;
379
- }
380
- /**
381
- * Checks if a value is an instance of ServiceException (duck typed)
382
- */
383
- static isInstance(value) {
384
- if (!value) return false;
385
- const candidate = value;
386
- return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
387
- }
388
- /**
389
- * Custom instanceof check to support the operator for ServiceException base class
390
- */
391
- static [Symbol.hasInstance](instance) {
392
- if (!instance) return false;
393
- const candidate = instance;
394
- if (this === _ServiceException) {
395
- return _ServiceException.isInstance(instance);
396
- }
397
- if (_ServiceException.isInstance(instance)) {
398
- if (candidate.name && this.name) {
399
- return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
400
- }
401
- return this.prototype.isPrototypeOf(instance);
402
- }
403
- return false;
404
- }
211
+ const createAggregatedClient = (commands, Client) => {
212
+ for (const command of Object.keys(commands)) {
213
+ const CommandCtor = commands[command];
214
+ const methodImpl = async function (args, optionsOrCb, cb) {
215
+ const command = new CommandCtor(args);
216
+ if (typeof optionsOrCb === "function") {
217
+ this.send(command, optionsOrCb);
218
+ }
219
+ else if (typeof cb === "function") {
220
+ if (typeof optionsOrCb !== "object")
221
+ throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
222
+ this.send(command, optionsOrCb || {}, cb);
223
+ }
224
+ else {
225
+ return this.send(command, optionsOrCb);
226
+ }
227
+ };
228
+ const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
229
+ Client.prototype[methodName] = methodImpl;
230
+ }
405
231
  };
406
- var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {
407
- Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
408
- if (exception[k] == void 0 || exception[k] === "") {
409
- exception[k] = v;
410
- }
411
- });
412
- const message = exception.message || exception.Message || "UnknownError";
413
- exception.message = message;
414
- delete exception.Message;
415
- return exception;
416
- }, "decorateServiceException");
417
-
418
- // src/default-error-handler.ts
419
- var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => {
420
- const $metadata = deserializeMetadata(output);
421
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
422
- const response = new exceptionCtor({
423
- name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
424
- $fault: "client",
425
- $metadata
426
- });
427
- throw decorateServiceException(response, parsedBody);
428
- }, "throwDefaultError");
429
- var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => {
430
- return ({ output, parsedBody, errorCode }) => {
431
- throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
432
- };
433
- }, "withBaseException");
434
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
435
- httpStatusCode: output.statusCode,
436
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
437
- extendedRequestId: output.headers["x-amz-id-2"],
438
- cfId: output.headers["x-amz-cf-id"]
439
- }), "deserializeMetadata");
440
232
 
441
- // src/defaults-mode.ts
442
- var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => {
443
- switch (mode) {
444
- case "standard":
445
- return {
446
- retryMode: "standard",
447
- connectionTimeout: 3100
448
- };
449
- case "in-region":
450
- return {
451
- retryMode: "standard",
452
- connectionTimeout: 1100
453
- };
454
- case "cross-region":
455
- return {
456
- retryMode: "standard",
457
- connectionTimeout: 3100
458
- };
459
- case "mobile":
460
- return {
461
- retryMode: "standard",
462
- connectionTimeout: 3e4
463
- };
464
- default:
465
- return {};
466
- }
467
- }, "loadConfigsForDefaultMode");
468
-
469
- // src/emitWarningIfUnsupportedVersion.ts
470
- var warningEmitted = false;
471
- var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
472
- if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
473
- warningEmitted = true;
474
- }
475
- }, "emitWarningIfUnsupportedVersion");
233
+ class ServiceException extends Error {
234
+ $fault;
235
+ $response;
236
+ $retryable;
237
+ $metadata;
238
+ constructor(options) {
239
+ super(options.message);
240
+ Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
241
+ this.name = options.name;
242
+ this.$fault = options.$fault;
243
+ this.$metadata = options.$metadata;
244
+ }
245
+ static isInstance(value) {
246
+ if (!value)
247
+ return false;
248
+ const candidate = value;
249
+ return (ServiceException.prototype.isPrototypeOf(candidate) ||
250
+ (Boolean(candidate.$fault) &&
251
+ Boolean(candidate.$metadata) &&
252
+ (candidate.$fault === "client" || candidate.$fault === "server")));
253
+ }
254
+ static [Symbol.hasInstance](instance) {
255
+ if (!instance)
256
+ return false;
257
+ const candidate = instance;
258
+ if (this === ServiceException) {
259
+ return ServiceException.isInstance(instance);
260
+ }
261
+ if (ServiceException.isInstance(instance)) {
262
+ if (candidate.name && this.name) {
263
+ return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
264
+ }
265
+ return this.prototype.isPrototypeOf(instance);
266
+ }
267
+ return false;
268
+ }
269
+ }
270
+ const decorateServiceException = (exception, additions = {}) => {
271
+ Object.entries(additions)
272
+ .filter(([, v]) => v !== undefined)
273
+ .forEach(([k, v]) => {
274
+ if (exception[k] == undefined || exception[k] === "") {
275
+ exception[k] = v;
276
+ }
277
+ });
278
+ const message = exception.message || exception.Message || "UnknownError";
279
+ exception.message = message;
280
+ delete exception.Message;
281
+ return exception;
282
+ };
476
283
 
477
- // src/extended-encode-uri-component.ts
284
+ const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => {
285
+ const $metadata = deserializeMetadata(output);
286
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
287
+ const response = new exceptionCtor({
288
+ name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
289
+ $fault: "client",
290
+ $metadata,
291
+ });
292
+ throw decorateServiceException(response, parsedBody);
293
+ };
294
+ const withBaseException = (ExceptionCtor) => {
295
+ return ({ output, parsedBody, errorCode }) => {
296
+ throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
297
+ };
298
+ };
299
+ const deserializeMetadata = (output) => ({
300
+ httpStatusCode: output.statusCode,
301
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
302
+ extendedRequestId: output.headers["x-amz-id-2"],
303
+ cfId: output.headers["x-amz-cf-id"],
304
+ });
478
305
 
306
+ const loadConfigsForDefaultMode = (mode) => {
307
+ switch (mode) {
308
+ case "standard":
309
+ return {
310
+ retryMode: "standard",
311
+ connectionTimeout: 3100,
312
+ };
313
+ case "in-region":
314
+ return {
315
+ retryMode: "standard",
316
+ connectionTimeout: 1100,
317
+ };
318
+ case "cross-region":
319
+ return {
320
+ retryMode: "standard",
321
+ connectionTimeout: 3100,
322
+ };
323
+ case "mobile":
324
+ return {
325
+ retryMode: "standard",
326
+ connectionTimeout: 30000,
327
+ };
328
+ default:
329
+ return {};
330
+ }
331
+ };
479
332
 
480
- // src/extensions/checksum.ts
333
+ let warningEmitted = false;
334
+ const emitWarningIfUnsupportedVersion = (version) => {
335
+ if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
336
+ warningEmitted = true;
337
+ }
338
+ };
481
339
 
482
- var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
483
- const checksumAlgorithms = [];
484
- for (const id in import_types.AlgorithmId) {
485
- const algorithmId = import_types.AlgorithmId[id];
486
- if (runtimeConfig[algorithmId] === void 0) {
487
- continue;
488
- }
489
- checksumAlgorithms.push({
490
- algorithmId: /* @__PURE__ */ __name(() => algorithmId, "algorithmId"),
491
- checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig[algorithmId], "checksumConstructor")
340
+ const getChecksumConfiguration = (runtimeConfig) => {
341
+ const checksumAlgorithms = [];
342
+ for (const id in types.AlgorithmId) {
343
+ const algorithmId = types.AlgorithmId[id];
344
+ if (runtimeConfig[algorithmId] === undefined) {
345
+ continue;
346
+ }
347
+ checksumAlgorithms.push({
348
+ algorithmId: () => algorithmId,
349
+ checksumConstructor: () => runtimeConfig[algorithmId],
350
+ });
351
+ }
352
+ return {
353
+ addChecksumAlgorithm(algo) {
354
+ checksumAlgorithms.push(algo);
355
+ },
356
+ checksumAlgorithms() {
357
+ return checksumAlgorithms;
358
+ },
359
+ };
360
+ };
361
+ const resolveChecksumRuntimeConfig = (clientConfig) => {
362
+ const runtimeConfig = {};
363
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
364
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
492
365
  });
493
- }
494
- return {
495
- addChecksumAlgorithm(algo) {
496
- checksumAlgorithms.push(algo);
497
- },
498
- checksumAlgorithms() {
499
- return checksumAlgorithms;
500
- }
501
- };
502
- }, "getChecksumConfiguration");
503
- var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
504
- const runtimeConfig = {};
505
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
506
- runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
507
- });
508
- return runtimeConfig;
509
- }, "resolveChecksumRuntimeConfig");
510
-
511
- // src/extensions/retry.ts
512
- var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
513
- return {
514
- setRetryStrategy(retryStrategy) {
515
- runtimeConfig.retryStrategy = retryStrategy;
516
- },
517
- retryStrategy() {
518
- return runtimeConfig.retryStrategy;
519
- }
520
- };
521
- }, "getRetryConfiguration");
522
- var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => {
523
- const runtimeConfig = {};
524
- runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
525
- return runtimeConfig;
526
- }, "resolveRetryRuntimeConfig");
366
+ return runtimeConfig;
367
+ };
527
368
 
528
- // src/extensions/defaultExtensionConfiguration.ts
529
- var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
530
- return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
531
- }, "getDefaultExtensionConfiguration");
532
- var getDefaultClientConfiguration = getDefaultExtensionConfiguration;
533
- var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
534
- return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
535
- }, "resolveDefaultRuntimeConfig");
369
+ const getRetryConfiguration = (runtimeConfig) => {
370
+ return {
371
+ setRetryStrategy(retryStrategy) {
372
+ runtimeConfig.retryStrategy = retryStrategy;
373
+ },
374
+ retryStrategy() {
375
+ return runtimeConfig.retryStrategy;
376
+ },
377
+ };
378
+ };
379
+ const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
380
+ const runtimeConfig = {};
381
+ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
382
+ return runtimeConfig;
383
+ };
536
384
 
537
- // src/get-array-if-single-item.ts
538
- var getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem");
385
+ const getDefaultExtensionConfiguration = (runtimeConfig) => {
386
+ return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
387
+ };
388
+ const getDefaultClientConfiguration = getDefaultExtensionConfiguration;
389
+ const resolveDefaultRuntimeConfig = (config) => {
390
+ return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
391
+ };
539
392
 
540
- // src/get-value-from-text-node.ts
541
- var getValueFromTextNode = /* @__PURE__ */ __name((obj) => {
542
- const textNodeName = "#text";
543
- for (const key in obj) {
544
- if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {
545
- obj[key] = obj[key][textNodeName];
546
- } else if (typeof obj[key] === "object" && obj[key] !== null) {
547
- obj[key] = getValueFromTextNode(obj[key]);
548
- }
549
- }
550
- return obj;
551
- }, "getValueFromTextNode");
393
+ const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];
552
394
 
553
- // src/is-serializable-header-value.ts
554
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {
555
- return value != null;
556
- }, "isSerializableHeaderValue");
395
+ const getValueFromTextNode = (obj) => {
396
+ const textNodeName = "#text";
397
+ for (const key in obj) {
398
+ if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {
399
+ obj[key] = obj[key][textNodeName];
400
+ }
401
+ else if (typeof obj[key] === "object" && obj[key] !== null) {
402
+ obj[key] = getValueFromTextNode(obj[key]);
403
+ }
404
+ }
405
+ return obj;
406
+ };
557
407
 
558
- // src/NoOpLogger.ts
559
- var NoOpLogger = class {
560
- static {
561
- __name(this, "NoOpLogger");
562
- }
563
- trace() {
564
- }
565
- debug() {
566
- }
567
- info() {
568
- }
569
- warn() {
570
- }
571
- error() {
572
- }
408
+ const isSerializableHeaderValue = (value) => {
409
+ return value != null;
573
410
  };
574
411
 
575
- // src/object-mapping.ts
412
+ class NoOpLogger {
413
+ trace() { }
414
+ debug() { }
415
+ info() { }
416
+ warn() { }
417
+ error() { }
418
+ }
419
+
576
420
  function map(arg0, arg1, arg2) {
577
- let target;
578
- let filter;
579
- let instructions;
580
- if (typeof arg1 === "undefined" && typeof arg2 === "undefined") {
581
- target = {};
582
- instructions = arg0;
583
- } else {
584
- target = arg0;
585
- if (typeof arg1 === "function") {
586
- filter = arg1;
587
- instructions = arg2;
588
- return mapWithFilter(target, filter, instructions);
589
- } else {
590
- instructions = arg1;
591
- }
592
- }
593
- for (const key of Object.keys(instructions)) {
594
- if (!Array.isArray(instructions[key])) {
595
- target[key] = instructions[key];
596
- continue;
597
- }
598
- applyInstruction(target, null, instructions, key);
599
- }
600
- return target;
421
+ let target;
422
+ let filter;
423
+ let instructions;
424
+ if (typeof arg1 === "undefined" && typeof arg2 === "undefined") {
425
+ target = {};
426
+ instructions = arg0;
427
+ }
428
+ else {
429
+ target = arg0;
430
+ if (typeof arg1 === "function") {
431
+ filter = arg1;
432
+ instructions = arg2;
433
+ return mapWithFilter(target, filter, instructions);
434
+ }
435
+ else {
436
+ instructions = arg1;
437
+ }
438
+ }
439
+ for (const key of Object.keys(instructions)) {
440
+ if (!Array.isArray(instructions[key])) {
441
+ target[key] = instructions[key];
442
+ continue;
443
+ }
444
+ applyInstruction(target, null, instructions, key);
445
+ }
446
+ return target;
601
447
  }
602
- __name(map, "map");
603
- var convertMap = /* @__PURE__ */ __name((target) => {
604
- const output = {};
605
- for (const [k, v] of Object.entries(target || {})) {
606
- output[k] = [, v];
607
- }
608
- return output;
609
- }, "convertMap");
610
- var take = /* @__PURE__ */ __name((source, instructions) => {
611
- const out = {};
612
- for (const key in instructions) {
613
- applyInstruction(out, source, instructions, key);
614
- }
615
- return out;
616
- }, "take");
617
- var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => {
618
- return map(
619
- target,
620
- Object.entries(instructions).reduce(
621
- (_instructions, [key, value]) => {
448
+ const convertMap = (target) => {
449
+ const output = {};
450
+ for (const [k, v] of Object.entries(target || {})) {
451
+ output[k] = [, v];
452
+ }
453
+ return output;
454
+ };
455
+ const take = (source, instructions) => {
456
+ const out = {};
457
+ for (const key in instructions) {
458
+ applyInstruction(out, source, instructions, key);
459
+ }
460
+ return out;
461
+ };
462
+ const mapWithFilter = (target, filter, instructions) => {
463
+ return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => {
622
464
  if (Array.isArray(value)) {
623
- _instructions[key] = value;
624
- } else {
625
- if (typeof value === "function") {
626
- _instructions[key] = [filter, value()];
627
- } else {
628
- _instructions[key] = [filter, value];
629
- }
465
+ _instructions[key] = value;
466
+ }
467
+ else {
468
+ if (typeof value === "function") {
469
+ _instructions[key] = [filter, value()];
470
+ }
471
+ else {
472
+ _instructions[key] = [filter, value];
473
+ }
630
474
  }
631
475
  return _instructions;
632
- },
633
- {}
634
- )
635
- );
636
- }, "mapWithFilter");
637
- var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => {
638
- if (source !== null) {
639
- let instruction = instructions[targetKey];
640
- if (typeof instruction === "function") {
641
- instruction = [, instruction];
642
- }
643
- const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
644
- if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) {
645
- target[targetKey] = valueFn(source[sourceKey]);
646
- }
647
- return;
648
- }
649
- let [filter, value] = instructions[targetKey];
650
- if (typeof value === "function") {
651
- let _value;
652
- const defaultFilterPassed = filter === void 0 && (_value = value()) != null;
653
- const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter;
654
- if (defaultFilterPassed) {
655
- target[targetKey] = _value;
656
- } else if (customFilterPassed) {
657
- target[targetKey] = value();
658
- }
659
- } else {
660
- const defaultFilterPassed = filter === void 0 && value != null;
661
- const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter;
662
- if (defaultFilterPassed || customFilterPassed) {
663
- target[targetKey] = value;
664
- }
665
- }
666
- }, "applyInstruction");
667
- var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish");
668
- var pass = /* @__PURE__ */ __name((_) => _, "pass");
669
-
670
- // src/resolve-path.ts
671
-
672
-
673
- // src/ser-utils.ts
674
- var serializeFloat = /* @__PURE__ */ __name((value) => {
675
- if (value !== value) {
676
- return "NaN";
677
- }
678
- switch (value) {
679
- case Infinity:
680
- return "Infinity";
681
- case -Infinity:
682
- return "-Infinity";
683
- default:
684
- return value;
685
- }
686
- }, "serializeFloat");
687
- var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime");
476
+ }, {}));
477
+ };
478
+ const applyInstruction = (target, source, instructions, targetKey) => {
479
+ if (source !== null) {
480
+ let instruction = instructions[targetKey];
481
+ if (typeof instruction === "function") {
482
+ instruction = [, instruction];
483
+ }
484
+ const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
485
+ if ((typeof filter === "function" && filter(source[sourceKey])) || (typeof filter !== "function" && !!filter)) {
486
+ target[targetKey] = valueFn(source[sourceKey]);
487
+ }
488
+ return;
489
+ }
490
+ let [filter, value] = instructions[targetKey];
491
+ if (typeof value === "function") {
492
+ let _value;
493
+ const defaultFilterPassed = filter === undefined && (_value = value()) != null;
494
+ const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter);
495
+ if (defaultFilterPassed) {
496
+ target[targetKey] = _value;
497
+ }
498
+ else if (customFilterPassed) {
499
+ target[targetKey] = value();
500
+ }
501
+ }
502
+ else {
503
+ const defaultFilterPassed = filter === undefined && value != null;
504
+ const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter);
505
+ if (defaultFilterPassed || customFilterPassed) {
506
+ target[targetKey] = value;
507
+ }
508
+ }
509
+ };
510
+ const nonNullish = (_) => _ != null;
511
+ const pass = (_) => _;
688
512
 
689
- // src/serde-json.ts
690
- var _json = /* @__PURE__ */ __name((obj) => {
691
- if (obj == null) {
692
- return {};
693
- }
694
- if (Array.isArray(obj)) {
695
- return obj.filter((_) => _ != null).map(_json);
696
- }
697
- if (typeof obj === "object") {
698
- const target = {};
699
- for (const key of Object.keys(obj)) {
700
- if (obj[key] == null) {
701
- continue;
702
- }
703
- target[key] = _json(obj[key]);
513
+ const serializeFloat = (value) => {
514
+ if (value !== value) {
515
+ return "NaN";
704
516
  }
705
- return target;
706
- }
707
- return obj;
708
- }, "_json");
517
+ switch (value) {
518
+ case Infinity:
519
+ return "Infinity";
520
+ case -Infinity:
521
+ return "-Infinity";
522
+ default:
523
+ return value;
524
+ }
525
+ };
526
+ const serializeDateTime = (date) => date.toISOString().replace(".000Z", "Z");
709
527
 
710
- // src/index.ts
711
- __reExport(index_exports, require("@smithy/core/serde"), module.exports);
712
- // Annotate the CommonJS export names for ESM import in node:
528
+ const _json = (obj) => {
529
+ if (obj == null) {
530
+ return {};
531
+ }
532
+ if (Array.isArray(obj)) {
533
+ return obj.filter((_) => _ != null).map(_json);
534
+ }
535
+ if (typeof obj === "object") {
536
+ const target = {};
537
+ for (const key of Object.keys(obj)) {
538
+ if (obj[key] == null) {
539
+ continue;
540
+ }
541
+ target[key] = _json(obj[key]);
542
+ }
543
+ return target;
544
+ }
545
+ return obj;
546
+ };
713
547
 
714
- 0 && (module.exports = {
715
- Client,
716
- collectBody,
717
- Command,
718
- SENSITIVE_STRING,
719
- createAggregatedClient,
720
- throwDefaultError,
721
- withBaseException,
722
- loadConfigsForDefaultMode,
723
- emitWarningIfUnsupportedVersion,
724
- ServiceException,
725
- decorateServiceException,
726
- extendedEncodeURIComponent,
727
- getDefaultExtensionConfiguration,
728
- getDefaultClientConfiguration,
729
- resolveDefaultRuntimeConfig,
730
- getArrayIfSingleItem,
731
- getValueFromTextNode,
732
- isSerializableHeaderValue,
733
- NoOpLogger,
734
- convertMap,
735
- take,
736
- map,
737
- resolvedPath,
738
- serializeFloat,
739
- serializeDateTime,
740
- _json,
741
- LazyJsonString,
742
- NumericValue,
743
- copyDocumentWithTransform,
744
- dateToUtcString,
745
- expectBoolean,
746
- expectByte,
747
- expectFloat32,
748
- expectInt,
749
- expectInt32,
750
- expectLong,
751
- expectNonNull,
752
- expectNumber,
753
- expectObject,
754
- expectShort,
755
- expectString,
756
- expectUnion,
757
- generateIdempotencyToken,
758
- handleFloat,
759
- limitedParseDouble,
760
- limitedParseFloat,
761
- limitedParseFloat32,
762
- logger,
763
- nv,
764
- parseBoolean,
765
- parseEpochTimestamp,
766
- parseRfc3339DateTime,
767
- parseRfc3339DateTimeWithOffset,
768
- parseRfc7231DateTime,
769
- quoteHeader,
770
- splitEvery,
771
- splitHeader,
772
- strictParseByte,
773
- strictParseDouble,
774
- strictParseFloat,
775
- strictParseFloat32,
776
- strictParseInt,
777
- strictParseInt32,
778
- strictParseLong,
779
- strictParseShort
548
+ Object.defineProperty(exports, "collectBody", {
549
+ enumerable: true,
550
+ get: function () { return protocols.collectBody; }
551
+ });
552
+ Object.defineProperty(exports, "extendedEncodeURIComponent", {
553
+ enumerable: true,
554
+ get: function () { return protocols.extendedEncodeURIComponent; }
555
+ });
556
+ Object.defineProperty(exports, "resolvedPath", {
557
+ enumerable: true,
558
+ get: function () { return protocols.resolvedPath; }
559
+ });
560
+ exports.Client = Client;
561
+ exports.Command = Command;
562
+ exports.NoOpLogger = NoOpLogger;
563
+ exports.SENSITIVE_STRING = SENSITIVE_STRING;
564
+ exports.ServiceException = ServiceException;
565
+ exports._json = _json;
566
+ exports.convertMap = convertMap;
567
+ exports.createAggregatedClient = createAggregatedClient;
568
+ exports.decorateServiceException = decorateServiceException;
569
+ exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
570
+ exports.getArrayIfSingleItem = getArrayIfSingleItem;
571
+ exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
572
+ exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
573
+ exports.getValueFromTextNode = getValueFromTextNode;
574
+ exports.isSerializableHeaderValue = isSerializableHeaderValue;
575
+ exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode;
576
+ exports.map = map;
577
+ exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
578
+ exports.serializeDateTime = serializeDateTime;
579
+ exports.serializeFloat = serializeFloat;
580
+ exports.take = take;
581
+ exports.throwDefaultError = throwDefaultError;
582
+ exports.withBaseException = withBaseException;
583
+ Object.keys(serde).forEach(function (k) {
584
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
585
+ enumerable: true,
586
+ get: function () { return serde[k]; }
587
+ });
780
588
  });
781
-