@code-yeongyu/senpi 2026.8.20-2 → 2026.8.20

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 (505) hide show
  1. package/CHANGELOG.md +0 -16
  2. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +13 -38
  3. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +12 -34
  5. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseCommand.d.ts +0 -29
  6. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseStreamCommand.d.ts +0 -15
  7. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/CountTokensCommand.d.ts +0 -14
  8. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/index.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/models/models_0.d.ts +1 -119
  10. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.browser.d.ts +46 -46
  11. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.d.ts +36 -36
  12. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.native.d.ts +48 -48
  13. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.shared.d.ts +2 -2
  14. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/schemas/schemas_0.d.ts +0 -3
  15. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/index.d.ts +1 -1
  16. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/models/models_0.d.ts +0 -76
  17. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.browser.d.ts +72 -70
  18. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.d.ts +68 -68
  19. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -86
  20. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  21. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -3
  22. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +14 -14
  23. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +426 -1343
  24. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +5 -8
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonCodec.js → JsonCodec.js} +1 -1
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonShapeDeserializer.js → JsonShapeDeserializer.js} +6 -6
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonShapeSerializer.js → JsonShapeSerializer.js} +5 -8
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v2/JsonShapeDeserializer2.js → experimental/BufferJsonShapeDeserializer.js} +18 -38
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v2/JsonShapeSerializer2.js → experimental/ByteJsonShapeSerializer.js} +71 -107
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +9 -93
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +6 -9
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -3
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -3
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -4
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -5
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonCodec.d.ts → JsonCodec.d.ts} +8 -4
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonShapeDeserializer.d.ts → JsonShapeDeserializer.d.ts} +2 -3
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonShapeSerializer.d.ts → JsonShapeSerializer.d.ts} +2 -3
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v2/JsonShapeDeserializer2.d.ts → experimental/BufferJsonShapeDeserializer.d.ts} +3 -4
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v2/JsonShapeSerializer2.d.ts → experimental/ByteJsonShapeSerializer.d.ts} +16 -19
  47. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
  48. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
  50. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
  51. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
  52. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
  53. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
  54. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
  55. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
  56. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
  57. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
  58. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
  59. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
  60. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
  61. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
  62. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
  63. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
  64. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
  65. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
  66. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
  67. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
  68. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  69. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
  70. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  71. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
  72. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
  73. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
  74. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
  75. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
  76. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
  77. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
  78. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
  79. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  80. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
  81. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
  82. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
  83. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
  84. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  85. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
  86. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  87. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
  89. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  90. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  91. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  92. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
  93. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -15
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -10
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
  99. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -14
  100. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
  101. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
  102. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
  103. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -39
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -1
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -1
  108. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -4
  109. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
  110. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
  111. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -57
  112. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -32
  113. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -32
  114. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
  115. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
  116. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -2
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -6
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -30
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -22
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -22
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -50
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -52
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -0
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -0
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -2
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -14
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
  145. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
  146. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
  147. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -1
  148. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
  149. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
  150. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
  151. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  152. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
  153. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
  154. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  155. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
  156. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
  157. package/node_modules/@aws-sdk/core/package.json +6 -6
  158. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  159. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  160. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +9 -0
  161. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +840 -0
  162. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  163. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  164. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  165. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
  166. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  167. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +241 -0
  168. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
  169. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  170. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +173 -0
  171. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  172. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  173. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  174. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  175. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  176. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
  177. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  178. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  179. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  180. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  181. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  182. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  183. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  184. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  185. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  186. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  187. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  188. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  189. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  190. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  191. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  192. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  193. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  194. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  195. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  196. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  197. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  198. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
  199. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  200. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
  201. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
  202. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
  203. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
  204. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
  205. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
  206. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  207. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  208. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  209. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
  210. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
  211. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  212. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  213. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +64 -0
  214. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  215. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  216. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +28 -35
  217. package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +28 -35
  218. package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +0 -1
  219. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +0 -1
  220. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  221. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  222. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  223. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
  224. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  225. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  226. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  227. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  228. package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
  229. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  230. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  231. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  232. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  233. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +66 -64
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +70 -68
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +69 -67
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +73 -71
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +66 -64
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
  264. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +70 -68
  265. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
  266. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +66 -64
  267. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
  268. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +70 -68
  269. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
  270. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +70 -68
  271. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
  272. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +74 -72
  273. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
  274. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  275. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +9 -0
  276. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +840 -0
  277. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  278. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  279. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  280. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
  281. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  282. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +241 -0
  283. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
  284. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  285. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +173 -0
  286. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  287. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  288. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  289. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  290. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  291. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
  292. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  293. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  294. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  295. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  296. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  297. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  298. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  299. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  300. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  301. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  302. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  303. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  304. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  305. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  306. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  307. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  308. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  309. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  310. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  311. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  312. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  313. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
  314. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  315. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
  316. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
  317. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
  318. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
  319. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
  320. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
  321. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  322. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  323. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  324. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
  325. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
  326. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  327. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  328. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +64 -0
  329. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  330. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  331. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  332. package/node_modules/@aws-sdk/types/package.json +2 -2
  333. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  334. package/node_modules/@bufbuild/protobuf/README.md +15 -12
  335. package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +162 -199
  336. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +153 -321
  337. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +303 -601
  338. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.d.ts +1 -27
  339. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +56 -80
  340. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +80 -3
  341. package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +3 -12
  342. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.d.ts +0 -4
  343. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +127 -365
  344. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +159 -393
  345. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.d.ts +1 -3
  346. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +8 -40
  347. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.d.ts +19 -37
  348. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +85 -281
  349. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.d.ts +1 -1
  350. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +1 -4
  351. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.d.ts +2 -19
  352. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +13 -47
  353. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.d.ts +4 -4
  354. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +23 -35
  355. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +12 -12
  356. package/node_modules/@bufbuild/protobuf/dist/esm/create.js +162 -199
  357. package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +153 -321
  358. package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +304 -602
  359. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +1 -27
  360. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +57 -79
  361. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +78 -1
  362. package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +3 -12
  363. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +0 -4
  364. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +127 -365
  365. package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +159 -393
  366. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +1 -3
  367. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +8 -40
  368. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +19 -37
  369. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +87 -283
  370. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts +1 -1
  371. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +1 -1
  372. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +2 -19
  373. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +13 -46
  374. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +4 -4
  375. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +23 -35
  376. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +12 -12
  377. package/node_modules/@bufbuild/protobuf/package.json +2 -2
  378. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +0 -12
  379. package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
  380. package/node_modules/@earendil-works/pi-agent-core/package.json +6 -6
  381. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  382. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  383. package/node_modules/@earendil-works/pi-ai/package.json +8 -8
  384. package/node_modules/@earendil-works/pi-pty/package.json +2 -2
  385. package/node_modules/@earendil-works/pi-telemetry/package.json +2 -2
  386. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  387. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +337 -1560
  388. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +23 -23
  389. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +23 -23
  390. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +13 -17
  391. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +10 -0
  392. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +205 -4
  393. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -1
  394. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  395. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +1 -5
  396. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +4 -4
  397. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +19 -19
  398. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +4 -3
  399. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +4 -6
  400. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +5 -8
  401. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +2 -0
  402. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +2 -0
  403. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +2 -0
  404. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +2 -0
  405. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +2 -0
  406. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +27 -5
  407. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  408. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +1 -5
  409. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +7 -1
  410. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +1 -2
  411. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  412. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  413. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  414. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  415. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  416. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  417. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +2 -14
  418. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +2 -7
  419. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  420. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  421. package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
  422. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +27 -5
  423. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  424. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +1 -5
  425. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +7 -1
  426. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +1 -2
  427. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  428. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  429. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  430. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  431. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  432. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  433. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +2 -14
  434. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +2 -7
  435. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  436. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  437. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
  438. package/node_modules/@smithy/core/package.json +11 -4
  439. package/node_modules/@smithy/credential-provider-imds/package.json +12 -4
  440. package/node_modules/@smithy/fetch-http-handler/package.json +13 -5
  441. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -9
  442. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -9
  443. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  444. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  445. package/node_modules/@smithy/node-http-handler/package.json +13 -5
  446. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +9 -9
  447. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +9 -9
  448. package/node_modules/@smithy/signature-v4/package.json +12 -4
  449. package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
  450. package/node_modules/@smithy/types/package.json +39 -29
  451. package/node_modules/@types/node/README.md +1 -1
  452. package/node_modules/@types/node/child_process.d.ts +1 -0
  453. package/node_modules/@types/node/crypto.d.ts +7 -7
  454. package/node_modules/@types/node/dns/promises.d.ts +5 -5
  455. package/node_modules/@types/node/dns.d.ts +5 -5
  456. package/node_modules/@types/node/fs.d.ts +0 -7
  457. package/node_modules/@types/node/http.d.ts +0 -30
  458. package/node_modules/@types/node/http2.d.ts +4 -4
  459. package/node_modules/@types/node/os.d.ts +30 -30
  460. package/node_modules/@types/node/package.json +2 -2
  461. package/node_modules/@types/node/perf_hooks.d.ts +1 -2
  462. package/node_modules/@types/node/process.d.ts +43 -42
  463. package/node_modules/@types/node/quic.d.ts +84 -1049
  464. package/node_modules/@types/node/sqlite.d.ts +1 -14
  465. package/node_modules/@types/node/stream/iter.d.ts +2 -3
  466. package/node_modules/@types/node/test.d.ts +0 -61
  467. package/node_modules/@types/node/v8.d.ts +23 -20
  468. package/package.json +36 -36
  469. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
  470. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
  471. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
  472. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
  473. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
  474. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  475. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
  476. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
  477. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
  478. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
  479. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  480. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  481. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  482. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  483. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
  484. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  485. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  486. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.d.ts +0 -49
  487. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
  488. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.d.ts +0 -28
  489. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
  490. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.d.ts +0 -49
  491. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
  492. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.d.ts +0 -28
  493. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
  494. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +0 -113
  495. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +0 -103
  496. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +0 -621
  497. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +0 -602
  498. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +0 -13
  499. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +0 -15
  500. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +0 -18
  501. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +0 -35
  502. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +0 -13
  503. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +0 -15
  504. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +0 -18
  505. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +0 -35
@@ -0,0 +1,840 @@
1
+ const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
+ const node_https = require("node:https");
3
+ const { Readable } = require("node:stream");
4
+ const http2 = require("node:http2");
5
+ const { streamCollector } = require("@smithy/core/serde");
6
+ exports.streamCollector = streamCollector;
7
+
8
+ function buildAbortError(abortSignal) {
9
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
10
+ ? abortSignal.reason
11
+ : undefined;
12
+ if (reason) {
13
+ if (reason instanceof Error) {
14
+ const abortError = new Error("Request aborted");
15
+ abortError.name = "AbortError";
16
+ abortError.cause = reason;
17
+ return abortError;
18
+ }
19
+ const abortError = new Error(String(reason));
20
+ abortError.name = "AbortError";
21
+ return abortError;
22
+ }
23
+ const abortError = new Error("Request aborted");
24
+ abortError.name = "AbortError";
25
+ return abortError;
26
+ }
27
+
28
+ const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
29
+
30
+ const getTransformedHeaders = (headers) => {
31
+ const transformedHeaders = {};
32
+ for (const name in headers) {
33
+ const headerValues = headers[name];
34
+ transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
35
+ }
36
+ return transformedHeaders;
37
+ };
38
+
39
+ const timing = {
40
+ setTimeout: (cb, ms) => setTimeout(cb, ms),
41
+ clearTimeout: (timeoutId) => clearTimeout(timeoutId),
42
+ };
43
+
44
+ const DEFER_EVENT_LISTENER_TIME$2 = 1000;
45
+ const setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
46
+ if (!timeoutInMs) {
47
+ return -1;
48
+ }
49
+ const registerTimeout = (offset) => {
50
+ const timeoutId = timing.setTimeout(() => {
51
+ request.destroy();
52
+ reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${timeoutInMs} ms.`), {
53
+ name: "TimeoutError",
54
+ }));
55
+ }, timeoutInMs - offset);
56
+ const doWithSocket = (socket) => {
57
+ if (socket?.connecting) {
58
+ socket.on("connect", () => {
59
+ timing.clearTimeout(timeoutId);
60
+ });
61
+ }
62
+ else {
63
+ timing.clearTimeout(timeoutId);
64
+ }
65
+ };
66
+ if (request.socket) {
67
+ doWithSocket(request.socket);
68
+ }
69
+ else {
70
+ request.on("socket", doWithSocket);
71
+ }
72
+ };
73
+ if (timeoutInMs < 2000) {
74
+ registerTimeout(0);
75
+ return 0;
76
+ }
77
+ return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME$2), DEFER_EVENT_LISTENER_TIME$2);
78
+ };
79
+
80
+ const setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => {
81
+ if (timeoutInMs) {
82
+ return timing.setTimeout(() => {
83
+ let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
84
+ if (throwOnRequestTimeout) {
85
+ const error = Object.assign(new Error(msg), {
86
+ name: "TimeoutError",
87
+ code: "ETIMEDOUT",
88
+ });
89
+ req.destroy(error);
90
+ reject(error);
91
+ }
92
+ else {
93
+ msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
94
+ logger?.warn?.(msg);
95
+ }
96
+ }, timeoutInMs);
97
+ }
98
+ return -1;
99
+ };
100
+
101
+ const DEFER_EVENT_LISTENER_TIME$1 = 3000;
102
+ const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME$1) => {
103
+ if (keepAlive !== true) {
104
+ return -1;
105
+ }
106
+ const registerListener = () => {
107
+ if (request.socket) {
108
+ request.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
109
+ }
110
+ else {
111
+ request.on("socket", (socket) => {
112
+ socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
113
+ });
114
+ }
115
+ };
116
+ if (deferTimeMs === 0) {
117
+ registerListener();
118
+ return 0;
119
+ }
120
+ return timing.setTimeout(registerListener, deferTimeMs);
121
+ };
122
+
123
+ const DEFER_EVENT_LISTENER_TIME = 3000;
124
+ const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
125
+ const registerTimeout = (offset) => {
126
+ const timeout = timeoutInMs - offset;
127
+ const onTimeout = () => {
128
+ request.destroy();
129
+ reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" }));
130
+ };
131
+ if (request.socket) {
132
+ request.socket.setTimeout(timeout, onTimeout);
133
+ request.on("close", () => request.socket?.removeListener("timeout", onTimeout));
134
+ }
135
+ else {
136
+ request.setTimeout(timeout, onTimeout);
137
+ }
138
+ };
139
+ if (0 < timeoutInMs && timeoutInMs < 6000) {
140
+ registerTimeout(0);
141
+ return 0;
142
+ }
143
+ return timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
144
+ };
145
+
146
+ const MIN_WAIT_TIME = 6_000;
147
+ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
148
+ const headers = request.headers;
149
+ const expect = headers ? headers.Expect || headers.expect : undefined;
150
+ let timeoutId = -1;
151
+ let sendBody = true;
152
+ if (!externalAgent && expect === "100-continue") {
153
+ sendBody = await Promise.race([
154
+ new Promise((resolve) => {
155
+ timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
156
+ }),
157
+ new Promise((resolve) => {
158
+ httpRequest.on("continue", () => {
159
+ timing.clearTimeout(timeoutId);
160
+ resolve(true);
161
+ });
162
+ httpRequest.on("response", () => {
163
+ timing.clearTimeout(timeoutId);
164
+ resolve(false);
165
+ });
166
+ httpRequest.on("error", () => {
167
+ timing.clearTimeout(timeoutId);
168
+ resolve(false);
169
+ });
170
+ }),
171
+ ]);
172
+ }
173
+ if (sendBody) {
174
+ writeBody(httpRequest, request.body);
175
+ }
176
+ }
177
+ function writeBody(httpRequest, body) {
178
+ if (body instanceof Readable) {
179
+ body.pipe(httpRequest);
180
+ return;
181
+ }
182
+ if (body) {
183
+ const isBuffer = Buffer.isBuffer(body);
184
+ const isString = typeof body === "string";
185
+ if (isBuffer || isString) {
186
+ if (isBuffer && body.byteLength === 0) {
187
+ httpRequest.end();
188
+ }
189
+ else {
190
+ httpRequest.end(body);
191
+ }
192
+ return;
193
+ }
194
+ const uint8 = body;
195
+ if (typeof uint8 === "object" &&
196
+ uint8.buffer &&
197
+ typeof uint8.byteOffset === "number" &&
198
+ typeof uint8.byteLength === "number") {
199
+ httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
200
+ return;
201
+ }
202
+ httpRequest.end(Buffer.from(body));
203
+ return;
204
+ }
205
+ httpRequest.end();
206
+ }
207
+
208
+ const DEFAULT_REQUEST_TIMEOUT = 0;
209
+ let hAgent = undefined;
210
+ let hRequest = undefined;
211
+ class NodeHttpHandler {
212
+ config;
213
+ configProvider;
214
+ socketWarningTimestamp = 0;
215
+ externalAgent = false;
216
+ metadata = { handlerProtocol: "http/1.1" };
217
+ static create(instanceOrOptions) {
218
+ if (typeof instanceOrOptions?.handle === "function") {
219
+ return instanceOrOptions;
220
+ }
221
+ return new NodeHttpHandler(instanceOrOptions);
222
+ }
223
+ static checkSocketUsage(agent, socketWarningTimestamp, logger = console) {
224
+ const { sockets, requests, maxSockets } = agent;
225
+ if (typeof maxSockets !== "number" || maxSockets === Infinity) {
226
+ return socketWarningTimestamp;
227
+ }
228
+ const interval = 15_000;
229
+ if (Date.now() - interval < socketWarningTimestamp) {
230
+ return socketWarningTimestamp;
231
+ }
232
+ if (sockets && requests) {
233
+ for (const origin in sockets) {
234
+ const socketsInUse = sockets[origin]?.length ?? 0;
235
+ const requestsEnqueued = requests[origin]?.length ?? 0;
236
+ if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
237
+ logger?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.
238
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
239
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);
240
+ return Date.now();
241
+ }
242
+ }
243
+ }
244
+ return socketWarningTimestamp;
245
+ }
246
+ constructor(options) {
247
+ this.configProvider = new Promise((resolve, reject) => {
248
+ if (typeof options === "function") {
249
+ options()
250
+ .then((_options) => {
251
+ resolve(this.resolveDefaultConfig(_options));
252
+ })
253
+ .catch(reject);
254
+ }
255
+ else {
256
+ resolve(this.resolveDefaultConfig(options));
257
+ }
258
+ });
259
+ }
260
+ destroy() {
261
+ this.config?.httpAgent?.destroy();
262
+ this.config?.httpsAgent?.destroy();
263
+ }
264
+ async handle(request, { abortSignal, requestTimeout } = {}) {
265
+ if (!this.config) {
266
+ this.config = await this.configProvider;
267
+ }
268
+ const config = this.config;
269
+ const isSSL = request.protocol === "https:";
270
+ if (!isSSL && !this.config.httpAgent) {
271
+ this.config.httpAgent = await this.config.httpAgentProvider();
272
+ }
273
+ return new Promise((_resolve, _reject) => {
274
+ let writeRequestBodyPromise = undefined;
275
+ let socketWarningTimeoutId = -1;
276
+ let connectionTimeoutId = -1;
277
+ let requestTimeoutId = -1;
278
+ let socketTimeoutId = -1;
279
+ let keepAliveTimeoutId = -1;
280
+ const clearTimeouts = () => {
281
+ timing.clearTimeout(socketWarningTimeoutId);
282
+ timing.clearTimeout(connectionTimeoutId);
283
+ timing.clearTimeout(requestTimeoutId);
284
+ timing.clearTimeout(socketTimeoutId);
285
+ timing.clearTimeout(keepAliveTimeoutId);
286
+ };
287
+ const resolve = async (arg) => {
288
+ await writeRequestBodyPromise;
289
+ clearTimeouts();
290
+ _resolve(arg);
291
+ };
292
+ const reject = async (arg) => {
293
+ await writeRequestBodyPromise;
294
+ clearTimeouts();
295
+ _reject(arg);
296
+ };
297
+ if (abortSignal?.aborted) {
298
+ const abortError = buildAbortError(abortSignal);
299
+ reject(abortError);
300
+ return;
301
+ }
302
+ const headers = request.headers;
303
+ const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false;
304
+ let agent = isSSL ? config.httpsAgent : config.httpAgent;
305
+ if (expectContinue && !this.externalAgent) {
306
+ agent = new (isSSL ? node_https.Agent : hAgent)({
307
+ keepAlive: false,
308
+ maxSockets: Infinity,
309
+ });
310
+ }
311
+ socketWarningTimeoutId = timing.setTimeout(() => {
312
+ this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger);
313
+ }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000));
314
+ const queryString = request.query ? buildQueryString(request.query) : "";
315
+ let auth = undefined;
316
+ if (request.username != null || request.password != null) {
317
+ const username = request.username ?? "";
318
+ const password = request.password ?? "";
319
+ auth = `${username}:${password}`;
320
+ }
321
+ let path = request.path;
322
+ if (queryString) {
323
+ path += `?${queryString}`;
324
+ }
325
+ if (request.fragment) {
326
+ path += `#${request.fragment}`;
327
+ }
328
+ let hostname = request.hostname ?? "";
329
+ if (hostname[0] === "[" && hostname.endsWith("]")) {
330
+ hostname = request.hostname.slice(1, -1);
331
+ }
332
+ else {
333
+ hostname = request.hostname;
334
+ }
335
+ const nodeHttpsOptions = {
336
+ headers: request.headers,
337
+ host: hostname,
338
+ method: request.method,
339
+ path,
340
+ port: request.port,
341
+ agent,
342
+ auth,
343
+ };
344
+ const requestFunc = isSSL ? node_https.request : hRequest;
345
+ const req = requestFunc(nodeHttpsOptions, (res) => {
346
+ const httpResponse = new HttpResponse({
347
+ statusCode: res.statusCode || -1,
348
+ reason: res.statusMessage,
349
+ headers: getTransformedHeaders(res.headers),
350
+ body: res,
351
+ });
352
+ resolve({ response: httpResponse });
353
+ });
354
+ req.on("error", (err) => {
355
+ if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
356
+ reject(Object.assign(err, { name: "TimeoutError" }));
357
+ }
358
+ else {
359
+ reject(err);
360
+ }
361
+ });
362
+ if (abortSignal) {
363
+ const onAbort = () => {
364
+ req.destroy();
365
+ const abortError = buildAbortError(abortSignal);
366
+ reject(abortError);
367
+ };
368
+ if (typeof abortSignal.addEventListener === "function") {
369
+ const signal = abortSignal;
370
+ signal.addEventListener("abort", onAbort, { once: true });
371
+ req.once("close", () => signal.removeEventListener("abort", onAbort));
372
+ }
373
+ else {
374
+ abortSignal.onabort = onAbort;
375
+ }
376
+ }
377
+ const effectiveRequestTimeout = requestTimeout ?? config.requestTimeout;
378
+ connectionTimeoutId = setConnectionTimeout(req, reject, config.connectionTimeout);
379
+ requestTimeoutId = setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, config.logger ?? console);
380
+ socketTimeoutId = setSocketTimeout(req, reject, config.socketTimeout);
381
+ const httpAgent = nodeHttpsOptions.agent;
382
+ if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
383
+ keepAliveTimeoutId = setSocketKeepAlive(req, {
384
+ keepAlive: httpAgent.keepAlive,
385
+ keepAliveMsecs: httpAgent.keepAliveMsecs,
386
+ });
387
+ }
388
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => {
389
+ clearTimeouts();
390
+ return _reject(e);
391
+ });
392
+ });
393
+ }
394
+ updateHttpClientConfig(key, value) {
395
+ this.config = undefined;
396
+ this.configProvider = this.configProvider.then((config) => {
397
+ return {
398
+ ...config,
399
+ [key]: value,
400
+ };
401
+ });
402
+ }
403
+ httpHandlerConfigs() {
404
+ return this.config ?? {};
405
+ }
406
+ resolveDefaultConfig(options) {
407
+ const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {};
408
+ const keepAlive = true;
409
+ const maxSockets = 50;
410
+ return {
411
+ connectionTimeout,
412
+ requestTimeout,
413
+ socketTimeout,
414
+ socketAcquisitionWarningTimeout,
415
+ throwOnRequestTimeout,
416
+ httpAgentProvider: async () => {
417
+ const node_http = require('node:http');
418
+ const { Agent, request } = node_http.default ?? node_http;
419
+ hRequest = request;
420
+ hAgent = Agent;
421
+ if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
422
+ this.externalAgent = true;
423
+ return httpAgent;
424
+ }
425
+ return new hAgent({ keepAlive, maxSockets, ...httpAgent });
426
+ },
427
+ httpsAgent: (() => {
428
+ if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
429
+ this.externalAgent = true;
430
+ return httpsAgent;
431
+ }
432
+ return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
433
+ })(),
434
+ logger,
435
+ };
436
+ }
437
+ }
438
+
439
+ const ids = new Uint16Array(1);
440
+ class ClientHttp2SessionRef {
441
+ id = ids[0]++;
442
+ total = 0;
443
+ max = 0;
444
+ session;
445
+ refs = 0;
446
+ constructor(session) {
447
+ session.unref();
448
+ this.session = session;
449
+ }
450
+ retain() {
451
+ if (this.session.destroyed) {
452
+ throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");
453
+ }
454
+ this.refs += 1;
455
+ this.total += 1;
456
+ this.max = Math.max(this.refs, this.max);
457
+ this.session.ref();
458
+ }
459
+ free() {
460
+ if (this.session.destroyed) {
461
+ return;
462
+ }
463
+ this.refs -= 1;
464
+ if (this.refs === 0) {
465
+ this.session.unref();
466
+ }
467
+ if (this.refs < 0) {
468
+ throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.");
469
+ }
470
+ }
471
+ deref() {
472
+ return this.session;
473
+ }
474
+ close() {
475
+ if (!this.session.closed) {
476
+ this.session.close();
477
+ }
478
+ }
479
+ destroy() {
480
+ this.refs = 0;
481
+ if (!this.session.destroyed) {
482
+ this.session.destroy();
483
+ }
484
+ }
485
+ useCount() {
486
+ return this.refs;
487
+ }
488
+ }
489
+
490
+ class NodeHttp2ConnectionPool {
491
+ sessions = [];
492
+ maxConcurrency = 0;
493
+ constructor(sessions) {
494
+ this.sessions = (sessions ?? []).map((session) => new ClientHttp2SessionRef(session));
495
+ }
496
+ poll() {
497
+ let cleanup = false;
498
+ for (const session of this.sessions) {
499
+ if (session.deref().destroyed) {
500
+ cleanup = true;
501
+ continue;
502
+ }
503
+ if (!this.maxConcurrency || session.useCount() < this.maxConcurrency) {
504
+ return session;
505
+ }
506
+ }
507
+ if (cleanup) {
508
+ for (const session of this.sessions) {
509
+ if (session.deref().destroyed) {
510
+ this.remove(session);
511
+ }
512
+ }
513
+ }
514
+ }
515
+ offerLast(ref) {
516
+ this.sessions.push(ref);
517
+ }
518
+ remove(ref) {
519
+ const ix = this.sessions.indexOf(ref);
520
+ if (ix > -1) {
521
+ this.sessions.splice(ix, 1);
522
+ }
523
+ }
524
+ [Symbol.iterator]() {
525
+ return this.sessions[Symbol.iterator]();
526
+ }
527
+ setMaxConcurrency(maxConcurrency) {
528
+ this.maxConcurrency = maxConcurrency;
529
+ }
530
+ destroy(ref) {
531
+ this.remove(ref);
532
+ ref.destroy();
533
+ }
534
+ }
535
+
536
+ class NodeHttp2ConnectionManager {
537
+ config;
538
+ connectOptions;
539
+ connectionPools = new Map();
540
+ constructor(config) {
541
+ this.config = config;
542
+ if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
543
+ throw new RangeError("maxConcurrency must be greater than zero.");
544
+ }
545
+ }
546
+ lease(requestContext, connectionConfiguration) {
547
+ const url = this.getUrlString(requestContext);
548
+ const pool = this.getPool(url);
549
+ if (!this.config.disableConcurrency && !connectionConfiguration.isEventStream) {
550
+ const available = pool.poll();
551
+ if (available) {
552
+ available.retain();
553
+ return available;
554
+ }
555
+ }
556
+ const ref = new ClientHttp2SessionRef(this.connect(url));
557
+ const session = ref.deref();
558
+ if (this.config.maxConcurrency) {
559
+ session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {
560
+ if (err) {
561
+ throw new Error("Fail to set maxConcurrentStreams to " +
562
+ this.config.maxConcurrency +
563
+ "when creating new session for " +
564
+ requestContext.destination.toString());
565
+ }
566
+ });
567
+ }
568
+ const graceful = () => {
569
+ this.removeFromPoolAndClose(url, ref);
570
+ };
571
+ const ensureDestroyed = () => {
572
+ this.removeFromPoolAndCheckedDestroy(url, ref);
573
+ };
574
+ session.on("goaway", graceful);
575
+ session.on("error", ensureDestroyed);
576
+ session.on("frameError", ensureDestroyed);
577
+ session.on("close", ensureDestroyed);
578
+ if (connectionConfiguration.requestTimeout) {
579
+ session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
580
+ }
581
+ pool.offerLast(ref);
582
+ ref.retain();
583
+ return ref;
584
+ }
585
+ release(_requestContext, ref) {
586
+ ref.free();
587
+ }
588
+ createIsolatedSession(requestContext, connectionConfiguration) {
589
+ const url = this.getUrlString(requestContext);
590
+ const ref = new ClientHttp2SessionRef(this.connect(url));
591
+ const session = ref.deref();
592
+ session.settings({ maxConcurrentStreams: 1 });
593
+ const ensureDestroyed = () => {
594
+ ref.destroy();
595
+ };
596
+ session.on("error", ensureDestroyed);
597
+ session.on("frameError", ensureDestroyed);
598
+ session.on("close", ensureDestroyed);
599
+ if (connectionConfiguration.requestTimeout) {
600
+ session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
601
+ }
602
+ ref.retain();
603
+ return ref;
604
+ }
605
+ destroy() {
606
+ for (const [url, connectionPool] of this.connectionPools) {
607
+ for (const session of [...connectionPool]) {
608
+ session.destroy();
609
+ }
610
+ this.connectionPools.delete(url);
611
+ }
612
+ }
613
+ setMaxConcurrentStreams(maxConcurrentStreams) {
614
+ if (maxConcurrentStreams && maxConcurrentStreams <= 0) {
615
+ throw new RangeError("maxConcurrentStreams must be greater than zero.");
616
+ }
617
+ this.config.maxConcurrency = maxConcurrentStreams;
618
+ for (const pool of this.connectionPools.values()) {
619
+ pool.setMaxConcurrency(maxConcurrentStreams);
620
+ }
621
+ }
622
+ setDisableConcurrentStreams(disableConcurrentStreams) {
623
+ this.config.disableConcurrency = disableConcurrentStreams;
624
+ }
625
+ setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions) {
626
+ this.connectOptions = nodeHttp2ConnectOptions;
627
+ }
628
+ debug() {
629
+ const pools = {};
630
+ for (const [url, pool] of this.connectionPools) {
631
+ const sessions = [];
632
+ for (const ref of pool) {
633
+ sessions.push({
634
+ id: ref.id,
635
+ active: ref.useCount(),
636
+ maxConcurrent: ref.max,
637
+ totalRequests: ref.total,
638
+ });
639
+ }
640
+ pools[url] = { sessions };
641
+ }
642
+ return pools;
643
+ }
644
+ removeFromPoolAndClose(authority, ref) {
645
+ this.connectionPools.get(authority)?.remove(ref);
646
+ ref.close();
647
+ }
648
+ removeFromPoolAndCheckedDestroy(authority, ref) {
649
+ this.connectionPools.get(authority)?.remove(ref);
650
+ ref.destroy();
651
+ }
652
+ getPool(url) {
653
+ if (!this.connectionPools.has(url)) {
654
+ const pool = new NodeHttp2ConnectionPool();
655
+ if (this.config.maxConcurrency) {
656
+ pool.setMaxConcurrency(this.config.maxConcurrency);
657
+ }
658
+ this.connectionPools.set(url, pool);
659
+ }
660
+ return this.connectionPools.get(url);
661
+ }
662
+ getUrlString(request) {
663
+ return request.destination.toString();
664
+ }
665
+ connect(url) {
666
+ return this.connectOptions === undefined ? http2.connect(url) : http2.connect(url, this.connectOptions);
667
+ }
668
+ }
669
+
670
+ const { constants } = http2;
671
+ class NodeHttp2Handler {
672
+ config;
673
+ configProvider;
674
+ metadata = { handlerProtocol: "h2" };
675
+ connectionManager = new NodeHttp2ConnectionManager({});
676
+ static create(instanceOrOptions) {
677
+ if (typeof instanceOrOptions?.handle === "function") {
678
+ return instanceOrOptions;
679
+ }
680
+ return new NodeHttp2Handler(instanceOrOptions);
681
+ }
682
+ constructor(options) {
683
+ this.configProvider = new Promise((resolve, reject) => {
684
+ if (typeof options === "function") {
685
+ options()
686
+ .then((opts) => {
687
+ resolve(opts || {});
688
+ })
689
+ .catch(reject);
690
+ }
691
+ else {
692
+ resolve(options || {});
693
+ }
694
+ });
695
+ }
696
+ destroy() {
697
+ this.connectionManager.destroy();
698
+ }
699
+ async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) {
700
+ if (!this.config) {
701
+ this.config = await this.configProvider;
702
+ const { disableConcurrentStreams, maxConcurrentStreams, nodeHttp2ConnectOptions } = this.config;
703
+ this.connectionManager.setDisableConcurrentStreams(disableConcurrentStreams ?? false);
704
+ if (maxConcurrentStreams) {
705
+ this.connectionManager.setMaxConcurrentStreams(maxConcurrentStreams);
706
+ }
707
+ if (nodeHttp2ConnectOptions) {
708
+ this.connectionManager.setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions);
709
+ }
710
+ }
711
+ const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
712
+ const useIsolatedSession = disableConcurrentStreams || isEventStream;
713
+ const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
714
+ return new Promise((_resolve, _reject) => {
715
+ let fulfilled = false;
716
+ let writeRequestBodyPromise = undefined;
717
+ const resolve = async (arg) => {
718
+ await writeRequestBodyPromise;
719
+ _resolve(arg);
720
+ };
721
+ const reject = async (arg) => {
722
+ await writeRequestBodyPromise;
723
+ _reject(arg);
724
+ };
725
+ if (abortSignal?.aborted) {
726
+ fulfilled = true;
727
+ const abortError = buildAbortError(abortSignal);
728
+ reject(abortError);
729
+ return;
730
+ }
731
+ const { hostname, method, port, protocol, query } = request;
732
+ let auth = "";
733
+ if (request.username != null || request.password != null) {
734
+ const username = request.username ?? "";
735
+ const password = request.password ?? "";
736
+ auth = `${username}:${password}@`;
737
+ }
738
+ const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
739
+ const requestContext = { destination: new URL(authority) };
740
+ const connectConfig = {
741
+ requestTimeout: this.config?.sessionTimeout,
742
+ isEventStream,
743
+ };
744
+ const ref = useIsolatedSession
745
+ ? this.connectionManager.createIsolatedSession(requestContext, connectConfig)
746
+ : this.connectionManager.lease(requestContext, connectConfig);
747
+ const session = ref.deref();
748
+ const rejectWithDestroy = (err) => {
749
+ if (useIsolatedSession) {
750
+ ref.destroy();
751
+ }
752
+ fulfilled = true;
753
+ reject(err);
754
+ };
755
+ const queryString = query ? buildQueryString(query) : "";
756
+ let path = request.path;
757
+ if (queryString) {
758
+ path += `?${queryString}`;
759
+ }
760
+ if (request.fragment) {
761
+ path += `#${request.fragment}`;
762
+ }
763
+ const clientHttp2Stream = session.request({
764
+ ...request.headers,
765
+ [constants.HTTP2_HEADER_PATH]: path,
766
+ [constants.HTTP2_HEADER_METHOD]: method,
767
+ });
768
+ if (effectiveRequestTimeout) {
769
+ clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
770
+ clientHttp2Stream.close();
771
+ const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
772
+ timeoutError.name = "TimeoutError";
773
+ rejectWithDestroy(timeoutError);
774
+ });
775
+ }
776
+ if (abortSignal) {
777
+ const onAbort = () => {
778
+ clientHttp2Stream.close();
779
+ const abortError = buildAbortError(abortSignal);
780
+ rejectWithDestroy(abortError);
781
+ };
782
+ if (typeof abortSignal.addEventListener === "function") {
783
+ const signal = abortSignal;
784
+ signal.addEventListener("abort", onAbort, { once: true });
785
+ clientHttp2Stream.once("close", () => signal.removeEventListener("abort", onAbort));
786
+ }
787
+ else {
788
+ abortSignal.onabort = onAbort;
789
+ }
790
+ }
791
+ clientHttp2Stream.on("frameError", (type, code, id) => {
792
+ rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
793
+ });
794
+ clientHttp2Stream.on("error", rejectWithDestroy);
795
+ clientHttp2Stream.on("aborted", () => {
796
+ rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`));
797
+ });
798
+ clientHttp2Stream.on("response", (headers) => {
799
+ const httpResponse = new HttpResponse({
800
+ statusCode: headers[":status"] ?? -1,
801
+ headers: getTransformedHeaders(headers),
802
+ body: clientHttp2Stream,
803
+ });
804
+ fulfilled = true;
805
+ resolve({ response: httpResponse });
806
+ if (useIsolatedSession) {
807
+ session.close();
808
+ }
809
+ });
810
+ clientHttp2Stream.on("close", () => {
811
+ if (useIsolatedSession) {
812
+ ref.destroy();
813
+ }
814
+ else {
815
+ this.connectionManager.release(requestContext, ref);
816
+ }
817
+ if (!fulfilled) {
818
+ rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
819
+ }
820
+ });
821
+ writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
822
+ });
823
+ }
824
+ updateHttpClientConfig(key, value) {
825
+ this.config = undefined;
826
+ this.configProvider = this.configProvider.then((config) => {
827
+ return {
828
+ ...config,
829
+ [key]: value,
830
+ };
831
+ });
832
+ }
833
+ httpHandlerConfigs() {
834
+ return this.config ?? {};
835
+ }
836
+ }
837
+
838
+ exports.DEFAULT_REQUEST_TIMEOUT = DEFAULT_REQUEST_TIMEOUT;
839
+ exports.NodeHttp2Handler = NodeHttp2Handler;
840
+ exports.NodeHttpHandler = NodeHttpHandler;