lambda-live-debugger 1.12.7 → 1.12.8

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 (308) hide show
  1. package/dist/extension/extension.zip +0 -0
  2. package/dist/extension/nodejs/node_modules/interceptor.js +258 -47
  3. package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
  4. package/node_modules/@aws-sdk/checksums/package.json +5 -5
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  7. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  8. package/node_modules/@aws-sdk/client-iam/package.json +9 -9
  9. package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +71 -9
  10. package/node_modules/@aws-sdk/client-iot/dist-es/models/enums.js +14 -0
  11. package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +49 -8
  12. package/node_modules/@aws-sdk/client-iot/dist-types/commands/AttachSecurityProfileCommand.d.ts +4 -1
  13. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CancelDetectMitigationActionsTaskCommand.d.ts +4 -1
  14. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateCustomMetricCommand.d.ts +4 -1
  15. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateDimensionCommand.d.ts +4 -1
  16. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateSecurityProfileCommand.d.ts +4 -1
  17. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleCommand.d.ts +34 -0
  18. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleDestinationCommand.d.ts +14 -0
  19. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteCustomMetricCommand.d.ts +4 -1
  20. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteDimensionCommand.d.ts +4 -1
  21. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
  22. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -1
  23. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeprecateThingTypeCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeCustomMetricCommand.d.ts +4 -1
  26. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDetectMitigationActionsTaskCommand.d.ts +4 -1
  27. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDimensionCommand.d.ts +4 -1
  28. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeSecurityProfileCommand.d.ts +4 -1
  29. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DetachSecurityProfileCommand.d.ts +4 -1
  30. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetBehaviorModelTrainingSummariesCommand.d.ts +4 -1
  31. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleCommand.d.ts +34 -0
  32. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleDestinationCommand.d.ts +7 -0
  33. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListActiveViolationsCommand.d.ts +4 -1
  34. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListCustomMetricsCommand.d.ts +4 -1
  35. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +4 -1
  36. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsTasksCommand.d.ts +4 -1
  37. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDimensionsCommand.d.ts +4 -1
  38. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesCommand.d.ts +4 -1
  39. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -1
  40. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListStreamsCommand.d.ts +2 -1
  41. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForPolicyCommand.d.ts +1 -2
  43. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForSecurityProfileCommand.d.ts +4 -1
  44. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTopicRuleDestinationsCommand.d.ts +7 -0
  45. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListViolationEventsCommand.d.ts +4 -1
  46. package/node_modules/@aws-sdk/client-iot/dist-types/commands/PutVerificationStateOnViolationCommand.d.ts +4 -1
  47. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ReplaceTopicRuleCommand.d.ts +34 -0
  48. package/node_modules/@aws-sdk/client-iot/dist-types/commands/StartDetectMitigationActionsTaskCommand.d.ts +4 -1
  49. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateCustomMetricCommand.d.ts +4 -1
  50. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateDimensionCommand.d.ts +4 -1
  51. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateSecurityProfileCommand.d.ts +4 -1
  52. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ValidateSecurityProfileBehaviorsCommand.d.ts +4 -1
  53. package/node_modules/@aws-sdk/client-iot/dist-types/models/enums.d.ts +38 -0
  54. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_0.d.ts +195 -45
  55. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_1.d.ts +46 -69
  56. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_2.d.ts +112 -2
  57. package/node_modules/@aws-sdk/client-iot/dist-types/schemas/schemas_0.d.ts +5 -0
  58. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -4
  59. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeprecateThingTypeCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -1
  62. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  63. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +1 -2
  64. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/enums.d.ts +18 -0
  65. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_0.d.ts +36 -11
  66. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_1.d.ts +11 -18
  67. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_2.d.ts +28 -0
  68. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  69. package/node_modules/@aws-sdk/client-iot/package.json +8 -8
  70. package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +1 -1
  71. package/node_modules/@aws-sdk/client-iot-data-plane/package.json +8 -8
  72. package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
  73. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +83 -3
  74. package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
  75. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  76. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  77. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  78. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
  79. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
  80. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +52 -2
  81. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
  82. package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
  83. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
  85. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  86. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
  87. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
  88. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  89. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
  90. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
  91. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
  92. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
  93. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
  94. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
  95. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
  96. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
  97. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
  98. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
  99. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
  100. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +95 -4
  101. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
  102. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
  103. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
  104. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  105. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  106. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  107. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
  108. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  109. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +25 -0
  110. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  111. package/node_modules/@aws-sdk/client-lambda/package.json +9 -9
  112. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  113. package/node_modules/@aws-sdk/client-s3/package.json +13 -13
  114. package/node_modules/@aws-sdk/core/package.json +5 -5
  115. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +5 -5
  116. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  117. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  118. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  119. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  120. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  121. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  122. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  123. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  124. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  125. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  126. package/node_modules/@aws-sdk/credential-providers/package.json +15 -15
  127. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
  128. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  129. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  130. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  131. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  132. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  133. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  134. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  135. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  136. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  137. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  138. package/node_modules/@aws-sdk/types/package.json +2 -2
  139. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  140. package/node_modules/@inquirer/ansi/package.json +3 -2
  141. package/node_modules/@inquirer/checkbox/dist/index.d.ts +12 -1
  142. package/node_modules/@inquirer/checkbox/package.json +7 -6
  143. package/node_modules/@inquirer/confirm/README.md +23 -0
  144. package/node_modules/@inquirer/confirm/dist/index.d.ts +27 -3
  145. package/node_modules/@inquirer/confirm/dist/index.js +40 -14
  146. package/node_modules/@inquirer/confirm/package.json +5 -4
  147. package/node_modules/@inquirer/core/README.md +9 -3
  148. package/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +10 -3
  149. package/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +2 -8
  150. package/node_modules/@inquirer/core/dist/lib/make-theme.js +1 -0
  151. package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +2 -3
  152. package/node_modules/@inquirer/core/dist/lib/theme.d.ts +1 -1
  153. package/node_modules/@inquirer/core/dist/lib/use-memo.js +1 -1
  154. package/node_modules/@inquirer/core/dist/lib/use-state.d.ts +5 -2
  155. package/node_modules/@inquirer/core/dist/lib/use-state.js +7 -2
  156. package/node_modules/@inquirer/core/package.json +7 -6
  157. package/node_modules/@inquirer/editor/dist/index.d.ts +10 -2
  158. package/node_modules/@inquirer/editor/package.json +6 -5
  159. package/node_modules/@inquirer/expand/README.md +1 -1
  160. package/node_modules/@inquirer/expand/dist/index.d.ts +12 -1
  161. package/node_modules/@inquirer/expand/package.json +5 -4
  162. package/node_modules/@inquirer/external-editor/README.md +13 -0
  163. package/node_modules/@inquirer/external-editor/package.json +4 -3
  164. package/node_modules/@inquirer/figures/package.json +4 -3
  165. package/node_modules/@inquirer/input/dist/index.d.ts +13 -1
  166. package/node_modules/@inquirer/input/package.json +5 -4
  167. package/node_modules/@inquirer/number/dist/index.d.ts +12 -2
  168. package/node_modules/@inquirer/number/dist/index.js +1 -6
  169. package/node_modules/@inquirer/number/dist/is-step-of.d.ts +1 -0
  170. package/node_modules/@inquirer/number/dist/is-step-of.js +22 -0
  171. package/node_modules/@inquirer/number/package.json +5 -4
  172. package/node_modules/@inquirer/password/README.md +24 -6
  173. package/node_modules/@inquirer/password/dist/index.d.ts +9 -1
  174. package/node_modules/@inquirer/password/dist/index.js +27 -8
  175. package/node_modules/@inquirer/password/package.json +6 -5
  176. package/node_modules/@inquirer/prompts/README.md +67 -7
  177. package/node_modules/@inquirer/prompts/package.json +14 -13
  178. package/node_modules/@inquirer/rawlist/dist/index.d.ts +8 -1
  179. package/node_modules/@inquirer/rawlist/package.json +5 -4
  180. package/node_modules/@inquirer/search/README.md +9 -8
  181. package/node_modules/@inquirer/search/dist/index.d.ts +13 -1
  182. package/node_modules/@inquirer/search/dist/index.js +6 -1
  183. package/node_modules/@inquirer/search/package.json +6 -5
  184. package/node_modules/@inquirer/select/dist/index.d.ts +9 -1
  185. package/node_modules/@inquirer/select/package.json +7 -6
  186. package/node_modules/@inquirer/type/dist/utils.d.ts +8 -3
  187. package/node_modules/@inquirer/type/package.json +3 -2
  188. package/node_modules/@smithy/core/CHANGELOG.md +7 -0
  189. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  190. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  191. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  192. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  193. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  194. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  195. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  196. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  197. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  198. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  199. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  200. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  201. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  202. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  203. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  204. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  205. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  206. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  207. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  208. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  209. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  210. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  211. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  212. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  213. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  214. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  215. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  216. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  217. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  218. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  219. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  220. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  221. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  222. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  223. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  224. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  225. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  226. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  227. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  228. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  229. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  230. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  231. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  232. package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
  233. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
  234. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  235. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  236. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  237. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
  238. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
  239. package/node_modules/@smithy/core/package.json +1 -1
  240. package/node_modules/@smithy/node-http-handler/CHANGELOG.md +23 -0
  241. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +18 -6
  242. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  243. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  244. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  245. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  246. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
  247. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  248. package/node_modules/@smithy/types/CHANGELOG.md +6 -0
  249. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
  250. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
  251. package/node_modules/@smithy/types/package.json +1 -1
  252. package/node_modules/@types/node/README.md +1 -1
  253. package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
  254. package/node_modules/@types/node/crypto.d.ts +2 -4
  255. package/node_modules/@types/node/dgram.d.ts +119 -4
  256. package/node_modules/@types/node/ffi.d.ts +1 -1
  257. package/node_modules/@types/node/fs/promises.d.ts +61 -65
  258. package/node_modules/@types/node/fs.d.ts +86 -76
  259. package/node_modules/@types/node/http.d.ts +17 -1
  260. package/node_modules/@types/node/http2.d.ts +12 -4
  261. package/node_modules/@types/node/index.d.ts +1 -0
  262. package/node_modules/@types/node/inspector.d.ts +2 -1
  263. package/node_modules/@types/node/net.d.ts +108 -16
  264. package/node_modules/@types/node/package.json +2 -2
  265. package/node_modules/@types/node/process.d.ts +52 -0
  266. package/node_modules/@types/node/quic.d.ts +246 -38
  267. package/node_modules/@types/node/sqlite.d.ts +6 -2
  268. package/node_modules/@types/node/stream/iter.d.ts +4 -4
  269. package/node_modules/@types/node/test.d.ts +36 -0
  270. package/node_modules/@types/node/tls.d.ts +24 -0
  271. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
  272. package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  273. package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  274. package/node_modules/@types/node/tty.d.ts +4 -3
  275. package/node_modules/@types/node/vfs.d.ts +210 -0
  276. package/node_modules/@types/node/vm.d.ts +1 -1
  277. package/node_modules/fast-xml-parser/CHANGELOG.md +8 -1
  278. package/node_modules/fast-xml-parser/README.md +1 -1
  279. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  280. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  281. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  282. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  283. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  284. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  285. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  286. package/node_modules/fast-xml-parser/package.json +2 -2
  287. package/node_modules/fast-xml-parser/src/fxp.d.ts +2 -0
  288. package/node_modules/fast-xml-parser/src/validator.js +98 -5
  289. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +16 -1
  290. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -1
  291. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +14 -0
  292. package/node_modules/inquirer/README.md +3 -9
  293. package/node_modules/inquirer/dist/index.d.ts +2 -3
  294. package/node_modules/inquirer/dist/index.js +1 -1
  295. package/node_modules/inquirer/dist/types.d.ts +3 -3
  296. package/node_modules/inquirer/package.json +7 -6
  297. package/node_modules/strnum/CHANGELOG.md +6 -0
  298. package/node_modules/strnum/package.json +1 -1
  299. package/node_modules/strnum/strnum.js +5 -1
  300. package/package.json +19 -19
  301. package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
  302. package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
  303. package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
  304. package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
  305. package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
  306. package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
  307. package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
  308. package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export { HttpResponse } from "./httpResponse";
4
5
  export { isValidHostLabel } from "./isValidHostLabel";
@@ -1,3 +1,4 @@
1
+ import { hasOwn } from "./hasOwn";
1
2
  import { parseUrl } from "./parseUrl";
2
3
  export const toEndpointV1 = (endpoint) => {
3
4
  if (typeof endpoint === "object") {
@@ -6,6 +7,8 @@ export const toEndpointV1 = (endpoint) => {
6
7
  if (endpoint.headers) {
7
8
  v1Endpoint.headers = {};
8
9
  for (const name in endpoint.headers) {
10
+ if (!hasOwn(endpoint.headers, name))
11
+ continue;
9
12
  v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
10
13
  }
11
14
  }
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
39
39
  export { streamCollector } from "./util-stream/stream-collector.browser";
40
40
  export declare const v4: () => string;
41
41
  export declare const generateIdempotencyToken: () => string;
42
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector.browser";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function hasOwn(o: object, k: string): boolean;
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export type { IHttpRequest } from "./httpRequest";
4
5
  export { HttpResponse } from "./httpResponse";
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
39
39
  export { streamCollector } from "./util-stream/stream-collector.browser";
40
40
  export declare const v4: () => string;
41
41
  export declare const generateIdempotencyToken: () => string;
42
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector.browser";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function hasOwn(o: object, k: string): boolean;
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export { IHttpRequest } from "./httpRequest";
4
5
  export { HttpResponse } from "./httpResponse";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.2",
3
+ "version": "3.33.3",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -1,5 +1,28 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1d85108: Clear the HTTP/2 session timeout before destroying a session. Node keeps a destroyed `Http2Session` reachable until its pending `setTimeout` fires, so with the default 300 s timer on isolated sessions every completed request was retained for 5 minutes.
8
+ - Updated dependencies [016389b]
9
+ - @smithy/types@4.18.0
10
+
11
+ ## 4.12.0
12
+
13
+ ### Minor Changes
14
+
15
+ - bb68484: destroy isolated http2 session and manage timeout
16
+
17
+ ## 4.11.3
18
+
19
+ ### Patch Changes
20
+
21
+ - a825452: switch for-in loops to guarded
22
+ - Updated dependencies [e82a22b]
23
+ - Updated dependencies [a825452]
24
+ - @smithy/core@3.33.3
25
+
3
26
  ## 4.11.2
4
27
 
5
28
  ### Patch Changes
@@ -1,9 +1,10 @@
1
+ const { hasOwn } = require("@smithy/core/serde");
2
+ const { streamCollector } = require("@smithy/core/serde");
3
+ exports.streamCollector = streamCollector;
1
4
  const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
5
  const node_https = require("node:https");
3
6
  const { Readable } = require("node:stream");
4
7
  const http2 = require("node:http2");
5
- const { streamCollector } = require("@smithy/core/serde");
6
- exports.streamCollector = streamCollector;
7
8
 
8
9
  function buildAbortError(abortSignal) {
9
10
  const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
@@ -30,6 +31,8 @@ const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
30
31
  const getTransformedHeaders = (headers) => {
31
32
  const transformedHeaders = {};
32
33
  for (const name in headers) {
34
+ if (!hasOwn(headers, name))
35
+ continue;
33
36
  const headerValues = headers[name];
34
37
  transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
35
38
  }
@@ -231,6 +234,8 @@ class NodeHttpHandler {
231
234
  }
232
235
  if (sockets && requests) {
233
236
  for (const origin in sockets) {
237
+ if (!hasOwn(sockets, origin))
238
+ continue;
234
239
  const socketsInUse = sockets[origin]?.length ?? 0;
235
240
  const requestsEnqueued = requests[origin]?.length ?? 0;
236
241
  if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
@@ -486,6 +491,7 @@ class ClientHttp2SessionRef {
486
491
  destroy() {
487
492
  this.refs = 0;
488
493
  if (!this.session.destroyed) {
494
+ this.session.setTimeout(0);
489
495
  this.session.destroy();
490
496
  }
491
497
  }
@@ -603,9 +609,8 @@ class NodeHttp2ConnectionManager {
603
609
  session.on("error", ensureDestroyed);
604
610
  session.on("frameError", ensureDestroyed);
605
611
  session.on("close", ensureDestroyed);
606
- if (connectionConfiguration.requestTimeout) {
607
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
608
- }
612
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
613
+ session.setTimeout(timeout, ensureDestroyed);
609
614
  ref.retain();
610
615
  return ref;
611
616
  }
@@ -812,6 +817,9 @@ class NodeHttp2Handler {
812
817
  resolve({ response: httpResponse });
813
818
  if (useIsolatedSession) {
814
819
  session.close();
820
+ clientHttp2Stream.on("end", () => {
821
+ ref.destroy();
822
+ });
815
823
  }
816
824
  });
817
825
  clientHttp2Stream.on("close", () => {
@@ -822,7 +830,11 @@ class NodeHttp2Handler {
822
830
  this.connectionManager.release(requestContext, ref);
823
831
  }
824
832
  if (!fulfilled) {
825
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
833
+ const error = new Error("Unexpected error: http2 request did not get a response");
834
+ if (session.destroyed) {
835
+ error.name = "TimeoutError";
836
+ }
837
+ rejectWithDestroy(error);
826
838
  }
827
839
  });
828
840
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,9 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  const getTransformedHeaders = (headers) => {
2
3
  const transformedHeaders = {};
3
4
  for (const name in headers) {
5
+ if (!hasOwn(headers, name))
6
+ continue;
4
7
  const headerValues = headers[name];
5
8
  transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
6
9
  }
@@ -41,6 +41,7 @@ export class ClientHttp2SessionRef {
41
41
  destroy() {
42
42
  this.refs = 0;
43
43
  if (!this.session.destroyed) {
44
+ this.session.setTimeout(0);
44
45
  this.session.destroy();
45
46
  }
46
47
  }
@@ -1,3 +1,4 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
2
3
  import { buildAbortError } from "./build-abort-error";
3
4
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
@@ -35,6 +36,8 @@ export class NodeHttpHandler {
35
36
  }
36
37
  if (sockets && requests) {
37
38
  for (const origin in sockets) {
39
+ if (!hasOwn(sockets, origin))
40
+ continue;
38
41
  const socketsInUse = sockets[origin]?.length ?? 0;
39
42
  const requestsEnqueued = requests[origin]?.length ?? 0;
40
43
  if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
64
64
  session.on("error", ensureDestroyed);
65
65
  session.on("frameError", ensureDestroyed);
66
66
  session.on("close", ensureDestroyed);
67
- if (connectionConfiguration.requestTimeout) {
68
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
69
- }
67
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
68
+ session.setTimeout(timeout, ensureDestroyed);
70
69
  ref.retain();
71
70
  return ref;
72
71
  }
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
142
142
  resolve({ response: httpResponse });
143
143
  if (useIsolatedSession) {
144
144
  session.close();
145
+ clientHttp2Stream.on("end", () => {
146
+ ref.destroy();
147
+ });
145
148
  }
146
149
  });
147
150
  clientHttp2Stream.on("close", () => {
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
152
155
  this.connectionManager.release(requestContext, ref);
153
156
  }
154
157
  if (!fulfilled) {
155
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
158
+ const error = new Error("Unexpected error: http2 request did not get a response");
159
+ if (session.destroyed) {
160
+ error.name = "TimeoutError";
161
+ }
162
+ rejectWithDestroy(error);
156
163
  }
157
164
  });
158
165
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.11.2",
3
+ "version": "4.12.1",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
6
  "license": "Apache-2.0",
@@ -39,8 +39,8 @@
39
39
  "test:watch": "yarn g:vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@smithy/core": "^3.33.2",
43
- "@smithy/types": "^4.17.2",
42
+ "@smithy/core": "^3.33.3",
43
+ "@smithy/types": "^4.18.0",
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "devDependencies": {
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 016389b: Allow passing custom fetch function to fetch-http-handler
8
+
3
9
  ## 4.17.2
4
10
 
5
11
  ### Patch Changes
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
118
118
  * ```
119
119
  */
120
120
  requestInit?: (httpRequest: IHttpRequest) => RequestInit;
121
+ /**
122
+ * An optional custom fetch implementation to use in place of the
123
+ * global fetch function.
124
+ *
125
+ * @example
126
+ * ```js
127
+ * new Client({
128
+ * requestHandler: {
129
+ * customFetch: (request) => myFetchImplementation(request)
130
+ * }
131
+ * });
132
+ * ```
133
+ */
134
+ customFetch?: typeof fetch;
121
135
  }
122
136
  declare global {
123
137
  /**
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
118
118
  * ```
119
119
  */
120
120
  requestInit?: (httpRequest: IHttpRequest) => RequestInit;
121
+ /**
122
+ * An optional custom fetch implementation to use in place of the
123
+ * global fetch function.
124
+ *
125
+ * @example
126
+ * ```js
127
+ * new Client({
128
+ * requestHandler: {
129
+ * customFetch: (request) => myFetchImplementation(request)
130
+ * }
131
+ * });
132
+ * ```
133
+ */
134
+ customFetch?: typeof fetch;
121
135
  }
122
136
  declare global {
123
137
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.17.2",
3
+ "version": "4.18.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/types",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 07 Aug 2026 17:46:44 GMT
11
+ * Last updated: Tue, 01 Sep 2026 20:06:05 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -316,11 +316,11 @@ declare module "node:buffer" {
316
316
  * such `Buffer` instances with zeroes.
317
317
  *
318
318
  * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
319
- * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
320
- * allows applications to avoid the garbage collection overhead of creating many
321
- * individually allocated `Buffer` instances. This approach improves both
322
- * performance and memory usage by eliminating the need to track and clean up as
323
- * many individual `ArrayBuffer` objects.
319
+ * allocations less than `Buffer.poolSize >>> 1` (32KiB when default poolSize is used) are sliced
320
+ * from a single pre-allocated `Buffer`. This allows applications to avoid the
321
+ * garbage collection overhead of creating many individually allocated `Buffer`
322
+ * instances. This approach improves both performance and memory usage by
323
+ * eliminating the need to track and clean up as many individual `ArrayBuffer` objects.
324
324
  *
325
325
  * However, in the case where a developer may need to retain a small chunk of
326
326
  * memory from a pool for an indeterminate amount of time, it may be appropriate
@@ -463,4 +463,9 @@ declare module "node:buffer" {
463
463
  */
464
464
  type AllowSharedBuffer = Buffer<ArrayBufferLike>;
465
465
  }
466
+ /**
467
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
468
+ * TypeScript versions earlier than 5.7.
469
+ */
470
+ type BufferView<T extends NodeJS.ArrayBufferView> = T extends NodeJS.ArrayBufferView<infer B> ? Buffer<B> : never;
466
471
  }
@@ -3475,7 +3475,6 @@ declare module "node:crypto" {
3475
3475
  * ```
3476
3476
  * @since v24.7.0
3477
3477
  * @param algorithm Variant of Argon2, one of `"argon2d"`, `"argon2i"` or `"argon2id"`.
3478
- * @experimental
3479
3478
  */
3480
3479
  function argon2(
3481
3480
  algorithm: Argon2Algorithm,
@@ -3515,7 +3514,6 @@ declare module "node:crypto" {
3515
3514
  * console.log(derivedKey.toString('hex')); // 'af91dad...9520f15'
3516
3515
  * ```
3517
3516
  * @since v24.7.0
3518
- * @experimental
3519
3517
  */
3520
3518
  function argon2Sync(algorithm: Argon2Algorithm, parameters: Argon2Parameters): NonSharedBuffer;
3521
3519
  /**
@@ -3742,7 +3740,7 @@ declare module "node:crypto" {
3742
3740
  ciphertext: NodeJS.BufferSource,
3743
3741
  sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
3744
3742
  extractable: boolean,
3745
- usages: KeyUsage[],
3743
+ keyUsages: KeyUsage[],
3746
3744
  ): Promise<CryptoKey>;
3747
3745
  decrypt(
3748
3746
  algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
@@ -3774,7 +3772,7 @@ declare module "node:crypto" {
3774
3772
  encapsulationKey: CryptoKey,
3775
3773
  sharedKeyAlgorithm: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | KmacImportParams,
3776
3774
  extractable: boolean,
3777
- usages: KeyUsage[],
3775
+ keyUsages: KeyUsage[],
3778
3776
  ): Promise<EncapsulatedKey>;
3779
3777
  encrypt(
3780
3778
  algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
@@ -15,6 +15,10 @@ declare module "node:dgram" {
15
15
  exclusive?: boolean | undefined;
16
16
  fd?: number | undefined;
17
17
  }
18
+ interface BindSyncOptions {
19
+ port?: number | undefined;
20
+ address?: string | undefined;
21
+ }
18
22
  type SocketType = "udp4" | "udp6";
19
23
  interface SocketOptions extends Abortable {
20
24
  type: SocketType;
@@ -117,10 +121,12 @@ declare module "node:dgram" {
117
121
  * messages on a named `port` and optional `address`. If `port` is not
118
122
  * specified or is `0`, the operating system will attempt to bind to a
119
123
  * random port. If `address` is not specified, the operating system will
120
- * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is
124
+ * attempt to listen on all addresses. Once binding is complete, a
125
+ * `'listening'` event is emitted and the optional `callback` function is
121
126
  * called.
122
127
  *
123
- * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very
128
+ * Specifying both a `'listening'` event listener and passing a
129
+ * `callback` to the `socket.bind()` method is not harmful but not very
124
130
  * useful.
125
131
  *
126
132
  * A bound datagram socket keeps the Node.js process running to receive
@@ -157,9 +163,82 @@ declare module "node:dgram" {
157
163
  * @param callback with no parameters. Called when binding is complete.
158
164
  */
159
165
  bind(port?: number, address?: string, callback?: () => void): this;
160
- bind(port?: number, callback?: () => void): this;
161
- bind(callback?: () => void): this;
166
+ bind(port: number, callback: () => void): this;
167
+ bind(callback: () => void): this;
168
+ /**
169
+ * For UDP sockets, causes the `dgram.Socket` to listen for datagram
170
+ * messages on a named `port` and optional `address` that are passed as
171
+ * properties of an `options` object passed as the first argument. If
172
+ * `port` is not specified or is `0`, the operating system will attempt
173
+ * to bind to a random port. If `address` is not specified, the operating
174
+ * system will attempt to listen on all addresses. Once binding is
175
+ * complete, a `'listening'` event is emitted and the optional `callback`
176
+ * function is called.
177
+ *
178
+ * The `options` object may contain a `fd` property. When a `fd` greater
179
+ * than `0` is set, it will wrap around an existing socket with the given
180
+ * file descriptor. In this case, the properties of `port` and `address`
181
+ * will be ignored.
182
+ *
183
+ * Specifying both a `'listening'` event listener and passing a
184
+ * `callback` to the `socket.bind()` method is not harmful but not very
185
+ * useful.
186
+ *
187
+ * The `options` object may contain an additional `exclusive` property that is
188
+ * used when using `dgram.Socket` objects with the [`cluster`](https://nodejs.org/docs/latest-v26.x/api/cluster.html) module. When
189
+ * `exclusive` is set to `false` (the default), cluster workers will use the same
190
+ * underlying socket handle allowing connection handling duties to be shared.
191
+ * When `exclusive` is `true`, however, the handle is not shared and attempted
192
+ * port sharing results in an error. Creating a `dgram.Socket` with the `reusePort`
193
+ * option set to `true` causes `exclusive` to always be `true` when `socket.bind()`
194
+ * is called.
195
+ *
196
+ * A bound datagram socket keeps the Node.js process running to receive
197
+ * datagram messages.
198
+ *
199
+ * If binding fails, an `'error'` event is generated. In rare case (e.g.
200
+ * attempting to bind with a closed socket), an `Error` may be thrown.
201
+ *
202
+ * An example socket listening on an exclusive port is shown below.
203
+ *
204
+ * ```js
205
+ * socket.bind({
206
+ * address: 'localhost',
207
+ * port: 8000,
208
+ * exclusive: true,
209
+ * });
210
+ * ```
211
+ * @since v0.11.14
212
+ * @param options Required. Supports the following properties:
213
+ */
162
214
  bind(options: BindOptions, callback?: () => void): this;
215
+ /**
216
+ * The synchronous counterpart of `socket.bind()`. `bind(2)` is a local,
217
+ * non-blocking system call, so the bind is performed inline and the resolved
218
+ * address is returned immediately, including the operating-system-assigned
219
+ * ephemeral port when `port` is `0`:
220
+ *
221
+ * ```js
222
+ * const dgram = require('node:dgram');
223
+ *
224
+ * const socket = dgram.createSocket('udp4');
225
+ * const address = socket.bindSync({ address: '0.0.0.0', port: 0 });
226
+ * console.log(address); // e.g. { address: '0.0.0.0', family: 'IPv4', port: 53124 }
227
+ * ```
228
+ *
229
+ * A bind failure such as `EADDRINUSE` is thrown synchronously rather than emitted
230
+ * as an `'error'` event. After `bindSync()` returns, `socket.address()` is
231
+ * valid synchronously and the `'listening'` event is emitted on the next tick.
232
+ *
233
+ * `address` must be a numeric IP literal; `bindSync()` never performs DNS
234
+ * resolution (asynchronous name resolution being the only genuinely blocking part
235
+ * of binding). Incoming datagrams continue to be delivered asynchronously via the
236
+ * `'message'` event. `bindSync()` always binds the socket's own handle and
237
+ * does not participate in [`cluster`](https://nodejs.org/docs/latest-v26.x/api/cluster.html) handle sharing.
238
+ * @since v26.4.0
239
+ * @returns The bound address as returned by `socket.address()`.
240
+ */
241
+ bindSync(options?: BindSyncOptions): AddressInfo;
163
242
  /**
164
243
  * Close the underlying socket and stop listening for data on it. If a callback is
165
244
  * provided, it is added as a listener for the `'close'` event.
@@ -182,6 +261,42 @@ declare module "node:dgram" {
182
261
  */
183
262
  connect(port: number, address?: string, callback?: () => void): void;
184
263
  connect(port: number, callback: () => void): void;
264
+ /**
265
+ * The synchronous counterpart of `socket.connect()`. For a UDP socket
266
+ * `connect(2)` only records the default peer address and is a local, non-blocking
267
+ * system call, so the association is performed inline. Any error raised by the
268
+ * call itself (for example `EAFNOSUPPORT` for a mismatched address family) is
269
+ * thrown synchronously rather than reported via the `'error'` event. Because
270
+ * `connect(2)` does not probe reachability, errors such as `ECONNREFUSED` are
271
+ * still surfaced asynchronously on a later send or receive, exactly as for
272
+ * `socket.connect()`:
273
+ *
274
+ * ```js
275
+ * const dgram = require('node:dgram');
276
+ *
277
+ * const socket = dgram.createSocket('udp4');
278
+ * socket.connectSync(41234, '127.0.0.1');
279
+ * console.log(socket.remoteAddress()); // { address: '127.0.0.1', family: 'IPv4', port: 41234 }
280
+ * ```
281
+ *
282
+ * If the socket is still unbound it is bound synchronously first. After
283
+ * `connectSync()` returns, `socket.remoteAddress()` is valid synchronously
284
+ * and the `'connect'` event is emitted on the next tick. Trying to call
285
+ * `connectSync()` on an already connected socket throws an
286
+ * `ERR_SOCKET_DGRAM_IS_CONNECTED` exception, and calling it while an
287
+ * asynchronous [`socket.bind()`][] is still in progress throws an
288
+ * `ERR_SOCKET_ALREADY_BOUND` exception.
289
+ *
290
+ * `address` must be a numeric IP literal; `connectSync()` never performs DNS
291
+ * resolution (asynchronous name resolution being the only genuinely blocking part
292
+ * of connecting).
293
+ * @since v26.4.0
294
+ * @param address A numeric IP address to connect to. Unlike
295
+ * `socket.connect()`, no DNS resolution is performed, so a host name is not
296
+ * accepted. If omitted, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for
297
+ * `udp6` sockets) is used.
298
+ */
299
+ connectSync(port: number, address?: string): void;
185
300
  /**
186
301
  * A synchronous function that disassociates a connected `dgram.Socket` from
187
302
  * its remote address. Trying to call `disconnect()` on an unbound or already
@@ -459,7 +459,7 @@ declare module "node:ffi" {
459
459
  "void": void;
460
460
  "number": number;
461
461
  "bigint": bigint;
462
- "pointer": bigint | null;
462
+ "pointer": bigint;
463
463
  }
464
464
  enum types {
465
465
  VOID = "void",