@openclaw/slack 2026.7.2-beta.7 → 2026.7.34

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 (1339) hide show
  1. package/README.md +1 -1
  2. package/dist/.setup/account-configured-DzC407uv.mjs +14 -0
  3. package/dist/.setup/account-inspect-CcqRNkC3.mjs +79 -0
  4. package/dist/.setup/account-reply-mode-Bvoq75cS.mjs +15 -0
  5. package/dist/.setup/accounts-uGn8E6uq.mjs +187 -0
  6. package/dist/.setup/accounts.runtime-k_V5-EOr.mjs +2 -0
  7. package/dist/.setup/action-runtime-iq6ZxO_b.mjs +395 -0
  8. package/dist/.setup/action-runtime.runtime-DXY8CdWJ.mjs +2 -0
  9. package/dist/.setup/actions-2VEX4Wdz.mjs +950 -0
  10. package/dist/.setup/actions.runtime-CfX8mK8Y.mjs +2 -0
  11. package/dist/.setup/approval-handler.runtime-COMbf4Ud.mjs +368 -0
  12. package/dist/.setup/channel-BqOekthS.mjs +1120 -0
  13. package/dist/.setup/channel.setup-DBlZCEvc.mjs +73 -0
  14. package/dist/.setup/client-B6i83rHk.mjs +116 -0
  15. package/dist/.setup/config-api-DnT9ohtE.mjs +2 -0
  16. package/dist/.setup/config-schema-DV93lEJ7.mjs +227 -0
  17. package/dist/.setup/directory-config-DB0OcZzw.mjs +55 -0
  18. package/dist/.setup/directory-live-O3jkDEJH.mjs +131 -0
  19. package/dist/.setup/doctor-contract-Dxk57DKz.mjs +147 -0
  20. package/dist/.setup/format-xuAop9a-.mjs +108 -0
  21. package/dist/.setup/interactive-replies-BLw4HEPS.mjs +193 -0
  22. package/dist/.setup/message-tool-api-D2m68v1f.mjs +128 -0
  23. package/dist/.setup/monitor-jTrujB_u.mjs +13 -0
  24. package/dist/.setup/outbound-adapter-DwAvZVk8.mjs +273 -0
  25. package/dist/.setup/pipeline.runtime-qFsXbTJf.mjs +3646 -0
  26. package/dist/.setup/plugin-routes-C3X0eVaK.mjs +22 -0
  27. package/dist/.setup/policy-C6VVHqUf.mjs +67 -0
  28. package/dist/.setup/probe-tmU762D2.mjs +48 -0
  29. package/dist/.setup/provider-Bjv1R5E2.mjs +4720 -0
  30. package/dist/.setup/relay-source-DR--lDW8.mjs +289 -0
  31. package/dist/.setup/replies-BO37R07g.mjs +288 -0
  32. package/dist/.setup/reply-blocks-Cwu6LYJI.mjs +882 -0
  33. package/dist/.setup/resolve-allowlist-common-CP8SH0Zf.mjs +43 -0
  34. package/dist/.setup/resolve-channels-CivvCeZv.mjs +81 -0
  35. package/dist/.setup/resolve-users-D5Qb64BJ.mjs +113 -0
  36. package/dist/.setup/rolldown-runtime-D7D4PA-g.mjs +13 -0
  37. package/dist/.setup/runtime-BOk7xkOl.mjs +8 -0
  38. package/dist/.setup/runtime-api-BnavgpzD.mjs +9 -0
  39. package/dist/.setup/runtime-setter-api-C-6lgBvk.mjs +3 -0
  40. package/dist/.setup/scopes-CYSKlU91.mjs +74 -0
  41. package/dist/.setup/secret-contract-C3ChHo5A.mjs +181 -0
  42. package/dist/.setup/secret-contract-api-CcCSHlV7.mjs +3 -0
  43. package/dist/.setup/security-audit-HMEYeSrJ.mjs +51 -0
  44. package/dist/.setup/send-DEOvcVM4.mjs +933 -0
  45. package/dist/.setup/send.runtime-Bmals7DV.mjs +2 -0
  46. package/dist/.setup/setup-core-uPGudyJH.mjs +344 -0
  47. package/dist/.setup/setup-plugin-api-DMKdqvij.mjs +3 -0
  48. package/dist/.setup/setup-surface-_4luZsPQ.mjs +130 -0
  49. package/dist/.setup/shared-BqyNq0up.mjs +269 -0
  50. package/dist/.setup/slash-dispatch.runtime-eyQo6mTA.mjs +32 -0
  51. package/dist/.setup/streaming-compat-DjlgH-Be.mjs +43 -0
  52. package/dist/.setup/target-parsing-C36VFWHQ.mjs +65 -0
  53. package/dist/.setup/targets-DnpzC22e.mjs +13 -0
  54. package/dist/account-inspect-api.js +1 -1
  55. package/dist/api.js +19 -18
  56. package/dist/channel-config-api.js +1 -1
  57. package/dist/channel-plugin-api.js +1 -1
  58. package/dist/configured-state.js +11 -0
  59. package/dist/directory-contract-api.js +1 -1
  60. package/dist/doctor-contract-api.js +1 -1
  61. package/dist/http-routes-api.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/interactive-replies-api.js +2 -0
  64. package/dist/message-tool-api.js +1 -1
  65. package/dist/runtime-api.js +13 -13
  66. package/dist/runtime-setter-api.js +1 -1
  67. package/dist/secret-contract-api.js +1 -1
  68. package/dist/security-contract-api.js +1 -1
  69. package/dist/setup-entry.js +5 -4
  70. package/dist/setup-plugin-api.js +1 -1
  71. package/node_modules/@slack/bolt/dist/App.d.ts +19 -4
  72. package/node_modules/@slack/bolt/dist/App.d.ts.map +1 -1
  73. package/node_modules/@slack/bolt/dist/App.js +40 -21
  74. package/node_modules/@slack/bolt/dist/App.js.map +1 -1
  75. package/node_modules/@slack/bolt/dist/WorkflowStep.d.ts +159 -0
  76. package/node_modules/@slack/bolt/dist/WorkflowStep.d.ts.map +1 -0
  77. package/node_modules/@slack/bolt/dist/WorkflowStep.js +217 -0
  78. package/node_modules/@slack/bolt/dist/WorkflowStep.js.map +1 -0
  79. package/node_modules/@slack/bolt/dist/context/create-respond.d.ts +3 -3
  80. package/node_modules/@slack/bolt/dist/context/create-respond.d.ts.map +1 -1
  81. package/node_modules/@slack/bolt/dist/context/create-respond.js +2 -13
  82. package/node_modules/@slack/bolt/dist/context/create-respond.js.map +1 -1
  83. package/node_modules/@slack/bolt/dist/errors.d.ts +8 -6
  84. package/node_modules/@slack/bolt/dist/errors.d.ts.map +1 -1
  85. package/node_modules/@slack/bolt/dist/errors.js +11 -11
  86. package/node_modules/@slack/bolt/dist/errors.js.map +1 -1
  87. package/node_modules/@slack/bolt/dist/helpers.d.ts.map +1 -1
  88. package/node_modules/@slack/bolt/dist/helpers.js +2 -1
  89. package/node_modules/@slack/bolt/dist/helpers.js.map +1 -1
  90. package/node_modules/@slack/bolt/dist/index.d.ts +1 -0
  91. package/node_modules/@slack/bolt/dist/index.d.ts.map +1 -1
  92. package/node_modules/@slack/bolt/dist/index.js +3 -1
  93. package/node_modules/@slack/bolt/dist/index.js.map +1 -1
  94. package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.d.ts +1 -10
  95. package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -1
  96. package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.js +1 -5
  97. package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.js.map +1 -1
  98. package/node_modules/@slack/bolt/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -1
  99. package/node_modules/@slack/bolt/dist/receivers/HTTPModuleFunctions.js +14 -10
  100. package/node_modules/@slack/bolt/dist/receivers/HTTPModuleFunctions.js.map +1 -1
  101. package/node_modules/@slack/bolt/dist/receivers/SocketModeFunctions.d.ts.map +1 -1
  102. package/node_modules/@slack/bolt/dist/receivers/SocketModeFunctions.js +1 -1
  103. package/node_modules/@slack/bolt/dist/receivers/SocketModeFunctions.js.map +1 -1
  104. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.d.ts +1 -3
  105. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
  106. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +1 -2
  107. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js.map +1 -1
  108. package/node_modules/@slack/bolt/dist/types/actions/index.d.ts +4 -2
  109. package/node_modules/@slack/bolt/dist/types/actions/index.d.ts.map +1 -1
  110. package/node_modules/@slack/bolt/dist/types/actions/index.js +2 -0
  111. package/node_modules/@slack/bolt/dist/types/actions/index.js.map +1 -1
  112. package/node_modules/@slack/bolt/dist/types/actions/workflow-step-edit.d.ts +49 -0
  113. package/node_modules/@slack/bolt/dist/types/actions/workflow-step-edit.d.ts.map +1 -0
  114. package/node_modules/@slack/bolt/dist/types/actions/workflow-step-edit.js +3 -0
  115. package/node_modules/@slack/bolt/dist/types/actions/workflow-step-edit.js.map +1 -0
  116. package/node_modules/@slack/bolt/dist/types/events/index.d.ts +0 -2
  117. package/node_modules/@slack/bolt/dist/types/events/index.d.ts.map +1 -1
  118. package/node_modules/@slack/bolt/dist/types/utilities.d.ts +2 -2
  119. package/node_modules/@slack/bolt/dist/types/utilities.d.ts.map +1 -1
  120. package/node_modules/@slack/bolt/dist/types/view/index.d.ts +31 -1
  121. package/node_modules/@slack/bolt/dist/types/view/index.d.ts.map +1 -1
  122. package/node_modules/@slack/bolt/node_modules/@slack/logger/README.md +1 -1
  123. package/node_modules/@slack/bolt/node_modules/@slack/logger/dist/index.js +13 -17
  124. package/node_modules/@slack/bolt/node_modules/@slack/logger/dist/index.js.map +1 -1
  125. package/node_modules/@slack/bolt/node_modules/@slack/logger/package.json +7 -6
  126. package/node_modules/@slack/bolt/node_modules/@slack/oauth/README.md +1 -1
  127. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/errors.d.ts +14 -25
  128. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/errors.d.ts.map +1 -1
  129. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/errors.js +33 -24
  130. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/errors.js.map +1 -1
  131. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/install-provider.js +16 -58
  132. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/install-provider.js.map +1 -1
  133. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/installation-stores/file-store.js +2 -4
  134. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/installation-stores/file-store.js.map +1 -1
  135. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/installation-stores/memory-store.js +16 -3
  136. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/installation-stores/memory-store.js.map +1 -1
  137. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/state-stores/clear-state-store.js +0 -2
  138. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/state-stores/clear-state-store.js.map +1 -1
  139. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/state-stores/file-state-store.js +0 -3
  140. package/node_modules/@slack/bolt/node_modules/@slack/oauth/dist/state-stores/file-state-store.js.map +1 -1
  141. package/node_modules/@slack/bolt/node_modules/@slack/oauth/package.json +9 -8
  142. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/README.md +221 -0
  143. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/package.json +67 -0
  144. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.d.ts +96 -0
  145. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.d.ts.map +1 -0
  146. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +242 -0
  147. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js.map +1 -0
  148. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeClient.d.ts +98 -0
  149. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeClient.d.ts.map +1 -0
  150. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +363 -0
  151. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js.map +1 -0
  152. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeOptions.d.ts +47 -0
  153. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SocketModeOptions.d.ts.map +1 -0
  154. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/errors.d.ts +60 -0
  155. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/errors.d.ts.map +1 -0
  156. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/errors.js +68 -0
  157. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/errors.js.map +1 -0
  158. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/index.d.ts +6 -0
  159. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/index.d.ts.map +1 -0
  160. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/index.js +13 -0
  161. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/index.js.map +1 -0
  162. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/package.json +67 -0
  163. package/node_modules/@slack/bolt/node_modules/@types/node/README.md +1 -1
  164. package/node_modules/@slack/bolt/node_modules/@types/node/fs/promises.d.ts +6 -16
  165. package/node_modules/@slack/bolt/node_modules/@types/node/package.json +2 -2
  166. package/node_modules/@slack/bolt/node_modules/@types/ws/README.md +15 -0
  167. package/node_modules/@slack/bolt/node_modules/@types/ws/index.d.mts +451 -0
  168. package/node_modules/@slack/bolt/node_modules/@types/ws/index.d.ts +445 -0
  169. package/node_modules/@slack/bolt/node_modules/@types/ws/package.json +72 -0
  170. package/node_modules/@slack/bolt/node_modules/agent-base/README.md +145 -0
  171. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/index.d.ts +78 -0
  172. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/index.js +203 -0
  173. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/index.js.map +1 -0
  174. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  175. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/promisify.js +18 -0
  176. package/node_modules/@slack/bolt/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  177. package/node_modules/@slack/bolt/node_modules/agent-base/package.json +64 -0
  178. package/node_modules/@slack/bolt/node_modules/agent-base/src/index.ts +345 -0
  179. package/node_modules/@slack/bolt/node_modules/agent-base/src/promisify.ts +33 -0
  180. package/node_modules/@slack/bolt/node_modules/asynckit/LICENSE +21 -0
  181. package/node_modules/@slack/bolt/node_modules/asynckit/README.md +233 -0
  182. package/node_modules/@slack/bolt/node_modules/asynckit/bench.js +76 -0
  183. package/node_modules/@slack/bolt/node_modules/asynckit/index.js +6 -0
  184. package/node_modules/@slack/bolt/node_modules/asynckit/lib/abort.js +29 -0
  185. package/node_modules/@slack/bolt/node_modules/asynckit/lib/async.js +34 -0
  186. package/node_modules/@slack/bolt/node_modules/asynckit/lib/defer.js +26 -0
  187. package/node_modules/@slack/bolt/node_modules/asynckit/lib/iterate.js +75 -0
  188. package/node_modules/@slack/bolt/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  189. package/node_modules/@slack/bolt/node_modules/asynckit/lib/readable_parallel.js +25 -0
  190. package/node_modules/@slack/bolt/node_modules/asynckit/lib/readable_serial.js +25 -0
  191. package/node_modules/@slack/bolt/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  192. package/node_modules/@slack/bolt/node_modules/asynckit/lib/state.js +37 -0
  193. package/node_modules/@slack/bolt/node_modules/asynckit/lib/streamify.js +141 -0
  194. package/node_modules/@slack/bolt/node_modules/asynckit/lib/terminator.js +29 -0
  195. package/node_modules/@slack/bolt/node_modules/asynckit/package.json +63 -0
  196. package/node_modules/@slack/bolt/node_modules/asynckit/parallel.js +43 -0
  197. package/node_modules/@slack/bolt/node_modules/asynckit/serial.js +17 -0
  198. package/node_modules/@slack/bolt/node_modules/asynckit/serialOrdered.js +75 -0
  199. package/node_modules/@slack/bolt/node_modules/asynckit/stream.js +21 -0
  200. package/node_modules/@slack/bolt/node_modules/axios/CHANGELOG.md +1934 -0
  201. package/node_modules/@slack/bolt/node_modules/axios/LICENSE +7 -0
  202. package/node_modules/@slack/bolt/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  203. package/node_modules/@slack/bolt/node_modules/axios/README.md +2851 -0
  204. package/node_modules/@slack/bolt/node_modules/axios/dist/axios.js +5807 -0
  205. package/node_modules/@slack/bolt/node_modules/axios/dist/axios.min.js +5 -0
  206. package/node_modules/@slack/bolt/node_modules/axios/dist/axios.min.js.map +1 -0
  207. package/node_modules/@slack/bolt/node_modules/axios/dist/browser/axios.cjs +5829 -0
  208. package/node_modules/@slack/bolt/node_modules/axios/dist/esm/axios.js +5850 -0
  209. package/node_modules/@slack/bolt/node_modules/axios/dist/esm/axios.min.js +3 -0
  210. package/node_modules/@slack/bolt/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  211. package/node_modules/@slack/bolt/node_modules/axios/dist/node/axios.cjs +6808 -0
  212. package/node_modules/@slack/bolt/node_modules/axios/index.d.cts +766 -0
  213. package/node_modules/@slack/bolt/node_modules/axios/index.d.ts +787 -0
  214. package/node_modules/@slack/bolt/node_modules/axios/index.js +45 -0
  215. package/node_modules/@slack/bolt/node_modules/axios/lib/adapters/README.md +36 -0
  216. package/node_modules/@slack/bolt/node_modules/axios/lib/adapters/adapters.js +132 -0
  217. package/node_modules/@slack/bolt/node_modules/axios/lib/adapters/fetch.js +696 -0
  218. package/node_modules/@slack/bolt/node_modules/axios/lib/adapters/http.js +1490 -0
  219. package/node_modules/@slack/bolt/node_modules/axios/lib/adapters/xhr.js +277 -0
  220. package/node_modules/@slack/bolt/node_modules/axios/lib/axios.js +89 -0
  221. package/node_modules/@slack/bolt/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  222. package/node_modules/@slack/bolt/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  223. package/node_modules/@slack/bolt/node_modules/axios/lib/cancel/isCancel.js +5 -0
  224. package/node_modules/@slack/bolt/node_modules/axios/lib/core/Axios.js +306 -0
  225. package/node_modules/@slack/bolt/node_modules/axios/lib/core/AxiosError.js +219 -0
  226. package/node_modules/@slack/bolt/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  227. package/node_modules/@slack/bolt/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  228. package/node_modules/@slack/bolt/node_modules/axios/lib/core/README.md +8 -0
  229. package/node_modules/@slack/bolt/node_modules/axios/lib/core/buildFullPath.js +76 -0
  230. package/node_modules/@slack/bolt/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  231. package/node_modules/@slack/bolt/node_modules/axios/lib/core/mergeConfig.js +174 -0
  232. package/node_modules/@slack/bolt/node_modules/axios/lib/core/methodList.js +17 -0
  233. package/node_modules/@slack/bolt/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  234. package/node_modules/@slack/bolt/node_modules/axios/lib/core/settle.js +27 -0
  235. package/node_modules/@slack/bolt/node_modules/axios/lib/core/transformData.js +28 -0
  236. package/node_modules/@slack/bolt/node_modules/axios/lib/defaults/index.js +178 -0
  237. package/node_modules/@slack/bolt/node_modules/axios/lib/defaults/transitional.js +10 -0
  238. package/node_modules/@slack/bolt/node_modules/axios/lib/env/README.md +3 -0
  239. package/node_modules/@slack/bolt/node_modules/axios/lib/env/classes/FormData.js +2 -0
  240. package/node_modules/@slack/bolt/node_modules/axios/lib/env/data.js +1 -0
  241. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  242. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  243. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  244. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  245. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/README.md +7 -0
  246. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  247. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/bind.js +14 -0
  248. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/buildURL.js +69 -0
  249. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/callbackify.js +18 -0
  250. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  251. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  252. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/cookies.js +64 -0
  253. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  254. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  255. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  256. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  257. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  258. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  259. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  260. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  261. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  262. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/null.js +2 -0
  263. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  264. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  265. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  266. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/readBlob.js +15 -0
  267. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  268. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  269. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  270. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/speedometer.js +55 -0
  271. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/spread.js +28 -0
  272. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/throttle.js +45 -0
  273. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/toFormData.js +279 -0
  274. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  275. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/trackStream.js +89 -0
  276. package/node_modules/@slack/bolt/node_modules/axios/lib/helpers/validator.js +112 -0
  277. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  278. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  279. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  280. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/browser/index.js +13 -0
  281. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/common/utils.js +52 -0
  282. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/index.js +7 -0
  283. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  284. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  285. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  286. package/node_modules/@slack/bolt/node_modules/axios/lib/platform/node/index.js +37 -0
  287. package/node_modules/@slack/bolt/node_modules/axios/lib/utils.js +1150 -0
  288. package/node_modules/@slack/bolt/node_modules/axios/package.json +203 -0
  289. package/node_modules/@slack/bolt/node_modules/combined-stream/License +19 -0
  290. package/node_modules/@slack/bolt/node_modules/combined-stream/Readme.md +138 -0
  291. package/node_modules/@slack/bolt/node_modules/combined-stream/lib/combined_stream.js +208 -0
  292. package/node_modules/@slack/bolt/node_modules/combined-stream/package.json +25 -0
  293. package/node_modules/@slack/bolt/node_modules/delayed-stream/.npmignore +1 -0
  294. package/node_modules/@slack/bolt/node_modules/delayed-stream/License +19 -0
  295. package/node_modules/@slack/bolt/node_modules/delayed-stream/Makefile +7 -0
  296. package/node_modules/@slack/bolt/node_modules/delayed-stream/Readme.md +141 -0
  297. package/node_modules/@slack/bolt/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  298. package/node_modules/@slack/bolt/node_modules/delayed-stream/package.json +27 -0
  299. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/.eslintrc +13 -0
  300. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/.nycrc +9 -0
  301. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  302. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/LICENSE +21 -0
  303. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/README.md +53 -0
  304. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/index.d.ts +10 -0
  305. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/index.js +35 -0
  306. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/package.json +78 -0
  307. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/test/index.js +85 -0
  308. package/node_modules/@slack/bolt/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  309. package/node_modules/@slack/bolt/node_modules/follow-redirects/LICENSE +18 -0
  310. package/node_modules/@slack/bolt/node_modules/follow-redirects/README.md +157 -0
  311. package/node_modules/@slack/bolt/node_modules/follow-redirects/debug.js +15 -0
  312. package/node_modules/@slack/bolt/node_modules/follow-redirects/http.js +1 -0
  313. package/node_modules/@slack/bolt/node_modules/follow-redirects/https.js +1 -0
  314. package/node_modules/@slack/bolt/node_modules/follow-redirects/index.js +709 -0
  315. package/node_modules/@slack/bolt/node_modules/follow-redirects/package.json +58 -0
  316. package/node_modules/@slack/bolt/node_modules/form-data/CHANGELOG.md +669 -0
  317. package/node_modules/@slack/bolt/node_modules/form-data/License +19 -0
  318. package/node_modules/@slack/bolt/node_modules/form-data/README.md +350 -0
  319. package/node_modules/@slack/bolt/node_modules/form-data/index.d.ts +51 -0
  320. package/node_modules/@slack/bolt/node_modules/form-data/lib/browser.js +4 -0
  321. package/node_modules/@slack/bolt/node_modules/form-data/lib/form_data.js +514 -0
  322. package/node_modules/@slack/bolt/node_modules/form-data/lib/populate.js +10 -0
  323. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/HISTORY.md +507 -0
  324. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/LICENSE +23 -0
  325. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/README.md +100 -0
  326. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/db.json +8519 -0
  327. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/index.js +12 -0
  328. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-db/package.json +60 -0
  329. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-types/HISTORY.md +397 -0
  330. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-types/LICENSE +23 -0
  331. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-types/README.md +113 -0
  332. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-types/index.js +188 -0
  333. package/node_modules/@slack/bolt/node_modules/form-data/node_modules/mime-types/package.json +44 -0
  334. package/node_modules/@slack/bolt/node_modules/form-data/package.json +83 -0
  335. package/node_modules/@slack/bolt/node_modules/has-tostringtag/.eslintrc +5 -0
  336. package/node_modules/@slack/bolt/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  337. package/node_modules/@slack/bolt/node_modules/has-tostringtag/.nycrc +13 -0
  338. package/node_modules/@slack/bolt/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  339. package/node_modules/@slack/bolt/node_modules/has-tostringtag/LICENSE +21 -0
  340. package/node_modules/@slack/bolt/node_modules/has-tostringtag/README.md +46 -0
  341. package/node_modules/@slack/bolt/node_modules/has-tostringtag/index.d.ts +3 -0
  342. package/node_modules/@slack/bolt/node_modules/has-tostringtag/index.js +8 -0
  343. package/node_modules/@slack/bolt/node_modules/has-tostringtag/package.json +108 -0
  344. package/node_modules/@slack/bolt/node_modules/has-tostringtag/shams.d.ts +3 -0
  345. package/node_modules/@slack/bolt/node_modules/has-tostringtag/shams.js +8 -0
  346. package/node_modules/@slack/bolt/node_modules/has-tostringtag/test/index.js +21 -0
  347. package/node_modules/@slack/bolt/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  348. package/node_modules/@slack/bolt/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  349. package/node_modules/@slack/bolt/node_modules/has-tostringtag/test/tests.js +15 -0
  350. package/node_modules/@slack/bolt/node_modules/has-tostringtag/tsconfig.json +49 -0
  351. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/README.md +137 -0
  352. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  353. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/agent.js +177 -0
  354. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  355. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  356. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/index.js +14 -0
  357. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  358. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  359. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  360. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  361. package/node_modules/@slack/bolt/node_modules/https-proxy-agent/package.json +56 -0
  362. package/node_modules/@slack/bolt/node_modules/iconv-lite/encodings/sbcs-data.js +0 -2
  363. package/node_modules/@slack/bolt/node_modules/iconv-lite/encodings/utf32.js +3 -10
  364. package/node_modules/@slack/bolt/node_modules/iconv-lite/package.json +2 -2
  365. package/node_modules/@slack/bolt/node_modules/iconv-lite/types/encodings.d.ts +0 -2
  366. package/node_modules/@slack/bolt/node_modules/media-typer/README.md +14 -15
  367. package/node_modules/@slack/bolt/node_modules/media-typer/index.js +8 -0
  368. package/node_modules/@slack/bolt/node_modules/media-typer/package.json +12 -16
  369. package/node_modules/@slack/bolt/node_modules/path-to-regexp/Readme.md +3 -3
  370. package/node_modules/@slack/bolt/node_modules/path-to-regexp/dist/index.js +158 -135
  371. package/node_modules/@slack/bolt/node_modules/path-to-regexp/dist/index.js.map +1 -1
  372. package/node_modules/@slack/bolt/node_modules/path-to-regexp/package.json +2 -2
  373. package/node_modules/@slack/bolt/node_modules/proxy-addr/HISTORY.md +60 -54
  374. package/node_modules/@slack/bolt/node_modules/proxy-addr/README.md +1 -1
  375. package/node_modules/@slack/bolt/node_modules/proxy-addr/index.js +32 -0
  376. package/node_modules/@slack/bolt/node_modules/proxy-addr/package.json +8 -4
  377. package/node_modules/@slack/bolt/node_modules/proxy-from-env/LICENSE +20 -0
  378. package/node_modules/@slack/bolt/node_modules/proxy-from-env/README.md +163 -0
  379. package/node_modules/@slack/bolt/node_modules/proxy-from-env/index.cjs +105 -0
  380. package/node_modules/@slack/bolt/node_modules/proxy-from-env/index.js +103 -0
  381. package/node_modules/@slack/bolt/node_modules/proxy-from-env/package.json +43 -0
  382. package/node_modules/@slack/bolt/node_modules/qs/CHANGELOG.md +0 -11
  383. package/node_modules/@slack/bolt/node_modules/qs/dist/qs.js +17 -17
  384. package/node_modules/@slack/bolt/node_modules/qs/lib/parse.js +8 -19
  385. package/node_modules/@slack/bolt/node_modules/qs/lib/utils.js +8 -47
  386. package/node_modules/@slack/bolt/node_modules/qs/package.json +5 -6
  387. package/node_modules/@slack/bolt/node_modules/qs/test/parse.js +0 -230
  388. package/node_modules/@slack/bolt/node_modules/qs/test/utils.js +0 -194
  389. package/node_modules/@slack/bolt/package.json +11 -10
  390. package/node_modules/@slack/types/README.md +1 -1
  391. package/node_modules/@slack/types/dist/events/app.d.ts +0 -28
  392. package/node_modules/@slack/types/dist/events/app.d.ts.map +1 -1
  393. package/node_modules/@slack/types/dist/events/index.d.ts +2 -2
  394. package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
  395. package/node_modules/@slack/types/dist/events/index.js.map +1 -1
  396. package/node_modules/@slack/types/dist/events/message.d.ts +0 -2
  397. package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
  398. package/node_modules/@slack/types/package.json +3 -3
  399. package/node_modules/@slack/web-api/README.md +1 -1
  400. package/node_modules/@slack/web-api/dist/WebClient.d.ts +71 -42
  401. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  402. package/node_modules/@slack/web-api/dist/WebClient.js +248 -180
  403. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  404. package/node_modules/@slack/web-api/dist/chat-stream.js +22 -37
  405. package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
  406. package/node_modules/@slack/web-api/dist/errors.d.ts +51 -32
  407. package/node_modules/@slack/web-api/dist/errors.d.ts.map +1 -1
  408. package/node_modules/@slack/web-api/dist/errors.js +55 -64
  409. package/node_modules/@slack/web-api/dist/errors.js.map +1 -1
  410. package/node_modules/@slack/web-api/dist/file-upload.d.ts +9 -0
  411. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  412. package/node_modules/@slack/web-api/dist/file-upload.js +46 -41
  413. package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
  414. package/node_modules/@slack/web-api/dist/index.d.ts +2 -2
  415. package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
  416. package/node_modules/@slack/web-api/dist/index.js +1 -8
  417. package/node_modules/@slack/web-api/dist/index.js.map +1 -1
  418. package/node_modules/@slack/web-api/dist/methods.d.ts +38 -2
  419. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  420. package/node_modules/@slack/web-api/dist/methods.js +1384 -1347
  421. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  422. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +1 -0
  423. package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
  424. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +3 -3
  425. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  426. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -66
  427. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
  428. package/node_modules/@slack/web-api/dist/types/request/rtm.d.ts +14 -1
  429. package/node_modules/@slack/web-api/dist/types/request/rtm.d.ts.map +1 -1
  430. package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts +29 -0
  431. package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts.map +1 -1
  432. package/node_modules/@slack/web-api/node_modules/@slack/logger/README.md +1 -1
  433. package/node_modules/@slack/web-api/node_modules/@slack/logger/dist/index.js +13 -17
  434. package/node_modules/@slack/web-api/node_modules/@slack/logger/dist/index.js.map +1 -1
  435. package/node_modules/@slack/web-api/node_modules/@slack/logger/package.json +7 -6
  436. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  437. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +6 -16
  438. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  439. package/node_modules/@slack/web-api/node_modules/agent-base/README.md +145 -0
  440. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/index.d.ts +78 -0
  441. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/index.js +203 -0
  442. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/index.js.map +1 -0
  443. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  444. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/promisify.js +18 -0
  445. package/node_modules/@slack/web-api/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  446. package/node_modules/@slack/web-api/node_modules/agent-base/package.json +64 -0
  447. package/node_modules/@slack/web-api/node_modules/agent-base/src/index.ts +345 -0
  448. package/node_modules/@slack/web-api/node_modules/agent-base/src/promisify.ts +33 -0
  449. package/node_modules/@slack/web-api/node_modules/asynckit/LICENSE +21 -0
  450. package/node_modules/@slack/web-api/node_modules/asynckit/README.md +233 -0
  451. package/node_modules/@slack/web-api/node_modules/asynckit/bench.js +76 -0
  452. package/node_modules/@slack/web-api/node_modules/asynckit/index.js +6 -0
  453. package/node_modules/@slack/web-api/node_modules/asynckit/lib/abort.js +29 -0
  454. package/node_modules/@slack/web-api/node_modules/asynckit/lib/async.js +34 -0
  455. package/node_modules/@slack/web-api/node_modules/asynckit/lib/defer.js +26 -0
  456. package/node_modules/@slack/web-api/node_modules/asynckit/lib/iterate.js +75 -0
  457. package/node_modules/@slack/web-api/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  458. package/node_modules/@slack/web-api/node_modules/asynckit/lib/readable_parallel.js +25 -0
  459. package/node_modules/@slack/web-api/node_modules/asynckit/lib/readable_serial.js +25 -0
  460. package/node_modules/@slack/web-api/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  461. package/node_modules/@slack/web-api/node_modules/asynckit/lib/state.js +37 -0
  462. package/node_modules/@slack/web-api/node_modules/asynckit/lib/streamify.js +141 -0
  463. package/node_modules/@slack/web-api/node_modules/asynckit/lib/terminator.js +29 -0
  464. package/node_modules/@slack/web-api/node_modules/asynckit/package.json +63 -0
  465. package/node_modules/@slack/web-api/node_modules/asynckit/parallel.js +43 -0
  466. package/node_modules/@slack/web-api/node_modules/asynckit/serial.js +17 -0
  467. package/node_modules/@slack/web-api/node_modules/asynckit/serialOrdered.js +75 -0
  468. package/node_modules/@slack/web-api/node_modules/asynckit/stream.js +21 -0
  469. package/node_modules/@slack/web-api/node_modules/axios/CHANGELOG.md +1934 -0
  470. package/node_modules/@slack/web-api/node_modules/axios/LICENSE +7 -0
  471. package/node_modules/@slack/web-api/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  472. package/node_modules/@slack/web-api/node_modules/axios/README.md +2851 -0
  473. package/node_modules/@slack/web-api/node_modules/axios/dist/axios.js +5807 -0
  474. package/node_modules/@slack/web-api/node_modules/axios/dist/axios.min.js +5 -0
  475. package/node_modules/@slack/web-api/node_modules/axios/dist/axios.min.js.map +1 -0
  476. package/node_modules/@slack/web-api/node_modules/axios/dist/browser/axios.cjs +5829 -0
  477. package/node_modules/@slack/web-api/node_modules/axios/dist/esm/axios.js +5850 -0
  478. package/node_modules/@slack/web-api/node_modules/axios/dist/esm/axios.min.js +3 -0
  479. package/node_modules/@slack/web-api/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  480. package/node_modules/@slack/web-api/node_modules/axios/dist/node/axios.cjs +6808 -0
  481. package/node_modules/@slack/web-api/node_modules/axios/index.d.cts +766 -0
  482. package/node_modules/@slack/web-api/node_modules/axios/index.d.ts +787 -0
  483. package/node_modules/@slack/web-api/node_modules/axios/index.js +45 -0
  484. package/node_modules/@slack/web-api/node_modules/axios/lib/adapters/README.md +36 -0
  485. package/node_modules/@slack/web-api/node_modules/axios/lib/adapters/adapters.js +132 -0
  486. package/node_modules/@slack/web-api/node_modules/axios/lib/adapters/fetch.js +696 -0
  487. package/node_modules/@slack/web-api/node_modules/axios/lib/adapters/http.js +1490 -0
  488. package/node_modules/@slack/web-api/node_modules/axios/lib/adapters/xhr.js +277 -0
  489. package/node_modules/@slack/web-api/node_modules/axios/lib/axios.js +89 -0
  490. package/node_modules/@slack/web-api/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  491. package/node_modules/@slack/web-api/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  492. package/node_modules/@slack/web-api/node_modules/axios/lib/cancel/isCancel.js +5 -0
  493. package/node_modules/@slack/web-api/node_modules/axios/lib/core/Axios.js +306 -0
  494. package/node_modules/@slack/web-api/node_modules/axios/lib/core/AxiosError.js +219 -0
  495. package/node_modules/@slack/web-api/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  496. package/node_modules/@slack/web-api/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  497. package/node_modules/@slack/web-api/node_modules/axios/lib/core/README.md +8 -0
  498. package/node_modules/@slack/web-api/node_modules/axios/lib/core/buildFullPath.js +76 -0
  499. package/node_modules/@slack/web-api/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  500. package/node_modules/@slack/web-api/node_modules/axios/lib/core/mergeConfig.js +174 -0
  501. package/node_modules/@slack/web-api/node_modules/axios/lib/core/methodList.js +17 -0
  502. package/node_modules/@slack/web-api/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  503. package/node_modules/@slack/web-api/node_modules/axios/lib/core/settle.js +27 -0
  504. package/node_modules/@slack/web-api/node_modules/axios/lib/core/transformData.js +28 -0
  505. package/node_modules/@slack/web-api/node_modules/axios/lib/defaults/index.js +178 -0
  506. package/node_modules/@slack/web-api/node_modules/axios/lib/defaults/transitional.js +10 -0
  507. package/node_modules/@slack/web-api/node_modules/axios/lib/env/README.md +3 -0
  508. package/node_modules/@slack/web-api/node_modules/axios/lib/env/classes/FormData.js +2 -0
  509. package/node_modules/@slack/web-api/node_modules/axios/lib/env/data.js +1 -0
  510. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  511. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  512. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  513. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  514. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/README.md +7 -0
  515. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  516. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/bind.js +14 -0
  517. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/buildURL.js +69 -0
  518. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/callbackify.js +18 -0
  519. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  520. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  521. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/cookies.js +64 -0
  522. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  523. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  524. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  525. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  526. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  527. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  528. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  529. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  530. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  531. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/null.js +2 -0
  532. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  533. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  534. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  535. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/readBlob.js +15 -0
  536. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  537. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  538. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  539. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/speedometer.js +55 -0
  540. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/spread.js +28 -0
  541. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/throttle.js +45 -0
  542. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/toFormData.js +279 -0
  543. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  544. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/trackStream.js +89 -0
  545. package/node_modules/@slack/web-api/node_modules/axios/lib/helpers/validator.js +112 -0
  546. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  547. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  548. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  549. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/browser/index.js +13 -0
  550. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/common/utils.js +52 -0
  551. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/index.js +7 -0
  552. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  553. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  554. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  555. package/node_modules/@slack/web-api/node_modules/axios/lib/platform/node/index.js +37 -0
  556. package/node_modules/@slack/web-api/node_modules/axios/lib/utils.js +1150 -0
  557. package/node_modules/@slack/web-api/node_modules/axios/package.json +203 -0
  558. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  559. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  560. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  561. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  562. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  563. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/README.md +62 -0
  564. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  565. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  566. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  567. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  568. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  569. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  570. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  571. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  572. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  573. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/index.js +15 -0
  574. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/package.json +85 -0
  575. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  576. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  577. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  578. package/node_modules/@slack/web-api/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  579. package/node_modules/@slack/web-api/node_modules/combined-stream/License +19 -0
  580. package/node_modules/@slack/web-api/node_modules/combined-stream/Readme.md +138 -0
  581. package/node_modules/@slack/web-api/node_modules/combined-stream/lib/combined_stream.js +208 -0
  582. package/node_modules/@slack/web-api/node_modules/combined-stream/package.json +25 -0
  583. package/node_modules/@slack/web-api/node_modules/debug/LICENSE +20 -0
  584. package/node_modules/@slack/web-api/node_modules/debug/README.md +481 -0
  585. package/node_modules/@slack/web-api/node_modules/debug/package.json +64 -0
  586. package/node_modules/@slack/web-api/node_modules/debug/src/browser.js +272 -0
  587. package/node_modules/@slack/web-api/node_modules/debug/src/common.js +292 -0
  588. package/node_modules/@slack/web-api/node_modules/debug/src/index.js +10 -0
  589. package/node_modules/@slack/web-api/node_modules/debug/src/node.js +263 -0
  590. package/node_modules/@slack/web-api/node_modules/delayed-stream/.npmignore +1 -0
  591. package/node_modules/@slack/web-api/node_modules/delayed-stream/License +19 -0
  592. package/node_modules/@slack/web-api/node_modules/delayed-stream/Makefile +7 -0
  593. package/node_modules/@slack/web-api/node_modules/delayed-stream/Readme.md +141 -0
  594. package/node_modules/@slack/web-api/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  595. package/node_modules/@slack/web-api/node_modules/delayed-stream/package.json +27 -0
  596. package/node_modules/@slack/web-api/node_modules/dunder-proto/.eslintrc +5 -0
  597. package/node_modules/@slack/web-api/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  598. package/node_modules/@slack/web-api/node_modules/dunder-proto/.nycrc +13 -0
  599. package/node_modules/@slack/web-api/node_modules/dunder-proto/CHANGELOG.md +24 -0
  600. package/node_modules/@slack/web-api/node_modules/dunder-proto/LICENSE +21 -0
  601. package/node_modules/@slack/web-api/node_modules/dunder-proto/README.md +54 -0
  602. package/node_modules/@slack/web-api/node_modules/dunder-proto/get.d.ts +5 -0
  603. package/node_modules/@slack/web-api/node_modules/dunder-proto/get.js +30 -0
  604. package/node_modules/@slack/web-api/node_modules/dunder-proto/package.json +76 -0
  605. package/node_modules/@slack/web-api/node_modules/dunder-proto/set.d.ts +5 -0
  606. package/node_modules/@slack/web-api/node_modules/dunder-proto/set.js +35 -0
  607. package/node_modules/@slack/web-api/node_modules/dunder-proto/test/get.js +34 -0
  608. package/node_modules/@slack/web-api/node_modules/dunder-proto/test/index.js +4 -0
  609. package/node_modules/@slack/web-api/node_modules/dunder-proto/test/set.js +50 -0
  610. package/node_modules/@slack/web-api/node_modules/dunder-proto/tsconfig.json +9 -0
  611. package/node_modules/@slack/web-api/node_modules/es-define-property/.eslintrc +13 -0
  612. package/node_modules/@slack/web-api/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  613. package/node_modules/@slack/web-api/node_modules/es-define-property/.nycrc +9 -0
  614. package/node_modules/@slack/web-api/node_modules/es-define-property/CHANGELOG.md +29 -0
  615. package/node_modules/@slack/web-api/node_modules/es-define-property/LICENSE +21 -0
  616. package/node_modules/@slack/web-api/node_modules/es-define-property/README.md +49 -0
  617. package/node_modules/@slack/web-api/node_modules/es-define-property/index.d.ts +3 -0
  618. package/node_modules/@slack/web-api/node_modules/es-define-property/index.js +14 -0
  619. package/node_modules/@slack/web-api/node_modules/es-define-property/package.json +81 -0
  620. package/node_modules/@slack/web-api/node_modules/es-define-property/test/index.js +56 -0
  621. package/node_modules/@slack/web-api/node_modules/es-define-property/tsconfig.json +10 -0
  622. package/node_modules/@slack/web-api/node_modules/es-errors/.eslintrc +5 -0
  623. package/node_modules/@slack/web-api/node_modules/es-errors/.github/FUNDING.yml +12 -0
  624. package/node_modules/@slack/web-api/node_modules/es-errors/CHANGELOG.md +40 -0
  625. package/node_modules/@slack/web-api/node_modules/es-errors/LICENSE +21 -0
  626. package/node_modules/@slack/web-api/node_modules/es-errors/README.md +55 -0
  627. package/node_modules/@slack/web-api/node_modules/es-errors/eval.d.ts +3 -0
  628. package/node_modules/@slack/web-api/node_modules/es-errors/eval.js +4 -0
  629. package/node_modules/@slack/web-api/node_modules/es-errors/index.d.ts +3 -0
  630. package/node_modules/@slack/web-api/node_modules/es-errors/index.js +4 -0
  631. package/node_modules/@slack/web-api/node_modules/es-errors/package.json +80 -0
  632. package/node_modules/@slack/web-api/node_modules/es-errors/range.d.ts +3 -0
  633. package/node_modules/@slack/web-api/node_modules/es-errors/range.js +4 -0
  634. package/node_modules/@slack/web-api/node_modules/es-errors/ref.d.ts +3 -0
  635. package/node_modules/@slack/web-api/node_modules/es-errors/ref.js +4 -0
  636. package/node_modules/@slack/web-api/node_modules/es-errors/syntax.d.ts +3 -0
  637. package/node_modules/@slack/web-api/node_modules/es-errors/syntax.js +4 -0
  638. package/node_modules/@slack/web-api/node_modules/es-errors/test/index.js +19 -0
  639. package/node_modules/@slack/web-api/node_modules/es-errors/tsconfig.json +49 -0
  640. package/node_modules/@slack/web-api/node_modules/es-errors/type.d.ts +3 -0
  641. package/node_modules/@slack/web-api/node_modules/es-errors/type.js +4 -0
  642. package/node_modules/@slack/web-api/node_modules/es-errors/uri.d.ts +3 -0
  643. package/node_modules/@slack/web-api/node_modules/es-errors/uri.js +4 -0
  644. package/node_modules/@slack/web-api/node_modules/es-object-atoms/.eslintrc +16 -0
  645. package/node_modules/@slack/web-api/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  646. package/node_modules/@slack/web-api/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  647. package/node_modules/@slack/web-api/node_modules/es-object-atoms/LICENSE +21 -0
  648. package/node_modules/@slack/web-api/node_modules/es-object-atoms/README.md +63 -0
  649. package/node_modules/@slack/web-api/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  650. package/node_modules/@slack/web-api/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  651. package/node_modules/@slack/web-api/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  652. package/node_modules/@slack/web-api/node_modules/es-object-atoms/ToObject.js +10 -0
  653. package/node_modules/@slack/web-api/node_modules/es-object-atoms/index.d.ts +3 -0
  654. package/node_modules/@slack/web-api/node_modules/es-object-atoms/index.js +4 -0
  655. package/node_modules/@slack/web-api/node_modules/es-object-atoms/isObject.d.ts +3 -0
  656. package/node_modules/@slack/web-api/node_modules/es-object-atoms/isObject.js +6 -0
  657. package/node_modules/@slack/web-api/node_modules/es-object-atoms/package.json +79 -0
  658. package/node_modules/@slack/web-api/node_modules/es-object-atoms/test/index.js +38 -0
  659. package/node_modules/@slack/web-api/node_modules/es-object-atoms/tsconfig.json +7 -0
  660. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/.eslintrc +13 -0
  661. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/.nycrc +9 -0
  662. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  663. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/LICENSE +21 -0
  664. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/README.md +53 -0
  665. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/index.d.ts +10 -0
  666. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/index.js +35 -0
  667. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/package.json +78 -0
  668. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/test/index.js +85 -0
  669. package/node_modules/@slack/web-api/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  670. package/node_modules/@slack/web-api/node_modules/follow-redirects/LICENSE +18 -0
  671. package/node_modules/@slack/web-api/node_modules/follow-redirects/README.md +157 -0
  672. package/node_modules/@slack/web-api/node_modules/follow-redirects/debug.js +15 -0
  673. package/node_modules/@slack/web-api/node_modules/follow-redirects/http.js +1 -0
  674. package/node_modules/@slack/web-api/node_modules/follow-redirects/https.js +1 -0
  675. package/node_modules/@slack/web-api/node_modules/follow-redirects/index.js +709 -0
  676. package/node_modules/@slack/web-api/node_modules/follow-redirects/package.json +58 -0
  677. package/node_modules/@slack/web-api/node_modules/form-data/CHANGELOG.md +669 -0
  678. package/node_modules/@slack/web-api/node_modules/form-data/License +19 -0
  679. package/node_modules/@slack/web-api/node_modules/form-data/README.md +350 -0
  680. package/node_modules/@slack/web-api/node_modules/form-data/index.d.ts +51 -0
  681. package/node_modules/@slack/web-api/node_modules/form-data/lib/browser.js +4 -0
  682. package/node_modules/@slack/web-api/node_modules/form-data/lib/form_data.js +514 -0
  683. package/node_modules/@slack/web-api/node_modules/form-data/lib/populate.js +10 -0
  684. package/node_modules/@slack/web-api/node_modules/form-data/package.json +83 -0
  685. package/node_modules/@slack/web-api/node_modules/function-bind/.eslintrc +21 -0
  686. package/node_modules/@slack/web-api/node_modules/function-bind/.github/FUNDING.yml +12 -0
  687. package/node_modules/@slack/web-api/node_modules/function-bind/.github/SECURITY.md +3 -0
  688. package/node_modules/@slack/web-api/node_modules/function-bind/.nycrc +13 -0
  689. package/node_modules/@slack/web-api/node_modules/function-bind/CHANGELOG.md +136 -0
  690. package/node_modules/@slack/web-api/node_modules/function-bind/LICENSE +20 -0
  691. package/node_modules/@slack/web-api/node_modules/function-bind/README.md +46 -0
  692. package/node_modules/@slack/web-api/node_modules/function-bind/implementation.js +84 -0
  693. package/node_modules/@slack/web-api/node_modules/function-bind/index.js +5 -0
  694. package/node_modules/@slack/web-api/node_modules/function-bind/package.json +87 -0
  695. package/node_modules/@slack/web-api/node_modules/function-bind/test/.eslintrc +9 -0
  696. package/node_modules/@slack/web-api/node_modules/function-bind/test/index.js +252 -0
  697. package/node_modules/@slack/web-api/node_modules/get-intrinsic/.eslintrc +42 -0
  698. package/node_modules/@slack/web-api/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  699. package/node_modules/@slack/web-api/node_modules/get-intrinsic/.nycrc +9 -0
  700. package/node_modules/@slack/web-api/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  701. package/node_modules/@slack/web-api/node_modules/get-intrinsic/LICENSE +21 -0
  702. package/node_modules/@slack/web-api/node_modules/get-intrinsic/README.md +71 -0
  703. package/node_modules/@slack/web-api/node_modules/get-intrinsic/index.js +378 -0
  704. package/node_modules/@slack/web-api/node_modules/get-intrinsic/package.json +97 -0
  705. package/node_modules/@slack/web-api/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  706. package/node_modules/@slack/web-api/node_modules/get-proto/.eslintrc +10 -0
  707. package/node_modules/@slack/web-api/node_modules/get-proto/.github/FUNDING.yml +12 -0
  708. package/node_modules/@slack/web-api/node_modules/get-proto/.nycrc +9 -0
  709. package/node_modules/@slack/web-api/node_modules/get-proto/CHANGELOG.md +21 -0
  710. package/node_modules/@slack/web-api/node_modules/get-proto/LICENSE +21 -0
  711. package/node_modules/@slack/web-api/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  712. package/node_modules/@slack/web-api/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  713. package/node_modules/@slack/web-api/node_modules/get-proto/README.md +50 -0
  714. package/node_modules/@slack/web-api/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  715. package/node_modules/@slack/web-api/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  716. package/node_modules/@slack/web-api/node_modules/get-proto/index.d.ts +5 -0
  717. package/node_modules/@slack/web-api/node_modules/get-proto/index.js +27 -0
  718. package/node_modules/@slack/web-api/node_modules/get-proto/package.json +81 -0
  719. package/node_modules/@slack/web-api/node_modules/get-proto/test/index.js +68 -0
  720. package/node_modules/@slack/web-api/node_modules/get-proto/tsconfig.json +9 -0
  721. package/node_modules/@slack/web-api/node_modules/gopd/.eslintrc +16 -0
  722. package/node_modules/@slack/web-api/node_modules/gopd/.github/FUNDING.yml +12 -0
  723. package/node_modules/@slack/web-api/node_modules/gopd/CHANGELOG.md +45 -0
  724. package/node_modules/@slack/web-api/node_modules/gopd/LICENSE +21 -0
  725. package/node_modules/@slack/web-api/node_modules/gopd/README.md +40 -0
  726. package/node_modules/@slack/web-api/node_modules/gopd/gOPD.d.ts +1 -0
  727. package/node_modules/@slack/web-api/node_modules/gopd/gOPD.js +4 -0
  728. package/node_modules/@slack/web-api/node_modules/gopd/index.d.ts +5 -0
  729. package/node_modules/@slack/web-api/node_modules/gopd/index.js +15 -0
  730. package/node_modules/@slack/web-api/node_modules/gopd/package.json +77 -0
  731. package/node_modules/@slack/web-api/node_modules/gopd/test/index.js +36 -0
  732. package/node_modules/@slack/web-api/node_modules/gopd/tsconfig.json +9 -0
  733. package/node_modules/@slack/web-api/node_modules/has-symbols/.eslintrc +11 -0
  734. package/node_modules/@slack/web-api/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  735. package/node_modules/@slack/web-api/node_modules/has-symbols/.nycrc +9 -0
  736. package/node_modules/@slack/web-api/node_modules/has-symbols/CHANGELOG.md +91 -0
  737. package/node_modules/@slack/web-api/node_modules/has-symbols/LICENSE +21 -0
  738. package/node_modules/@slack/web-api/node_modules/has-symbols/README.md +46 -0
  739. package/node_modules/@slack/web-api/node_modules/has-symbols/index.d.ts +3 -0
  740. package/node_modules/@slack/web-api/node_modules/has-symbols/index.js +14 -0
  741. package/node_modules/@slack/web-api/node_modules/has-symbols/package.json +111 -0
  742. package/node_modules/@slack/web-api/node_modules/has-symbols/shams.d.ts +3 -0
  743. package/node_modules/@slack/web-api/node_modules/has-symbols/shams.js +45 -0
  744. package/node_modules/@slack/web-api/node_modules/has-symbols/test/index.js +22 -0
  745. package/node_modules/@slack/web-api/node_modules/has-symbols/test/shams/core-js.js +29 -0
  746. package/node_modules/@slack/web-api/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  747. package/node_modules/@slack/web-api/node_modules/has-symbols/test/tests.js +58 -0
  748. package/node_modules/@slack/web-api/node_modules/has-symbols/tsconfig.json +10 -0
  749. package/node_modules/@slack/web-api/node_modules/has-tostringtag/.eslintrc +5 -0
  750. package/node_modules/@slack/web-api/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  751. package/node_modules/@slack/web-api/node_modules/has-tostringtag/.nycrc +13 -0
  752. package/node_modules/@slack/web-api/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  753. package/node_modules/@slack/web-api/node_modules/has-tostringtag/LICENSE +21 -0
  754. package/node_modules/@slack/web-api/node_modules/has-tostringtag/README.md +46 -0
  755. package/node_modules/@slack/web-api/node_modules/has-tostringtag/index.d.ts +3 -0
  756. package/node_modules/@slack/web-api/node_modules/has-tostringtag/index.js +8 -0
  757. package/node_modules/@slack/web-api/node_modules/has-tostringtag/package.json +108 -0
  758. package/node_modules/@slack/web-api/node_modules/has-tostringtag/shams.d.ts +3 -0
  759. package/node_modules/@slack/web-api/node_modules/has-tostringtag/shams.js +8 -0
  760. package/node_modules/@slack/web-api/node_modules/has-tostringtag/test/index.js +21 -0
  761. package/node_modules/@slack/web-api/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  762. package/node_modules/@slack/web-api/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  763. package/node_modules/@slack/web-api/node_modules/has-tostringtag/test/tests.js +15 -0
  764. package/node_modules/@slack/web-api/node_modules/has-tostringtag/tsconfig.json +49 -0
  765. package/node_modules/@slack/web-api/node_modules/hasown/.github/FUNDING.yml +12 -0
  766. package/node_modules/@slack/web-api/node_modules/hasown/.nycrc +13 -0
  767. package/node_modules/@slack/web-api/node_modules/hasown/CHANGELOG.md +58 -0
  768. package/node_modules/@slack/web-api/node_modules/hasown/LICENSE +21 -0
  769. package/node_modules/@slack/web-api/node_modules/hasown/README.md +40 -0
  770. package/node_modules/@slack/web-api/node_modules/hasown/eslint.config.mjs +6 -0
  771. package/node_modules/@slack/web-api/node_modules/hasown/index.d.ts +3 -0
  772. package/node_modules/@slack/web-api/node_modules/hasown/index.js +8 -0
  773. package/node_modules/@slack/web-api/node_modules/hasown/package.json +91 -0
  774. package/node_modules/@slack/web-api/node_modules/hasown/tsconfig.json +6 -0
  775. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/README.md +137 -0
  776. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  777. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/agent.js +177 -0
  778. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  779. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  780. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/index.js +14 -0
  781. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  782. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  783. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  784. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  785. package/node_modules/@slack/web-api/node_modules/https-proxy-agent/package.json +56 -0
  786. package/node_modules/@slack/web-api/node_modules/is-electron/LICENSE +21 -0
  787. package/node_modules/@slack/web-api/node_modules/is-electron/README.md +25 -0
  788. package/node_modules/@slack/web-api/node_modules/is-electron/index.d.ts +2 -0
  789. package/node_modules/@slack/web-api/node_modules/is-electron/index.js +21 -0
  790. package/node_modules/@slack/web-api/node_modules/is-electron/package.json +34 -0
  791. package/node_modules/@slack/web-api/node_modules/is-stream/index.d.ts +79 -0
  792. package/node_modules/@slack/web-api/node_modules/is-stream/index.js +28 -0
  793. package/node_modules/@slack/web-api/node_modules/is-stream/package.json +42 -0
  794. package/node_modules/@slack/web-api/node_modules/is-stream/readme.md +60 -0
  795. package/node_modules/@slack/web-api/node_modules/math-intrinsics/.eslintrc +16 -0
  796. package/node_modules/@slack/web-api/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  797. package/node_modules/@slack/web-api/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  798. package/node_modules/@slack/web-api/node_modules/math-intrinsics/LICENSE +21 -0
  799. package/node_modules/@slack/web-api/node_modules/math-intrinsics/README.md +50 -0
  800. package/node_modules/@slack/web-api/node_modules/math-intrinsics/abs.d.ts +1 -0
  801. package/node_modules/@slack/web-api/node_modules/math-intrinsics/abs.js +4 -0
  802. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  803. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  804. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  805. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  806. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  807. package/node_modules/@slack/web-api/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  808. package/node_modules/@slack/web-api/node_modules/math-intrinsics/floor.d.ts +1 -0
  809. package/node_modules/@slack/web-api/node_modules/math-intrinsics/floor.js +4 -0
  810. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  811. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isFinite.js +12 -0
  812. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  813. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isInteger.js +16 -0
  814. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  815. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isNaN.js +6 -0
  816. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  817. package/node_modules/@slack/web-api/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  818. package/node_modules/@slack/web-api/node_modules/math-intrinsics/max.d.ts +1 -0
  819. package/node_modules/@slack/web-api/node_modules/math-intrinsics/max.js +4 -0
  820. package/node_modules/@slack/web-api/node_modules/math-intrinsics/min.d.ts +1 -0
  821. package/node_modules/@slack/web-api/node_modules/math-intrinsics/min.js +4 -0
  822. package/node_modules/@slack/web-api/node_modules/math-intrinsics/mod.d.ts +3 -0
  823. package/node_modules/@slack/web-api/node_modules/math-intrinsics/mod.js +9 -0
  824. package/node_modules/@slack/web-api/node_modules/math-intrinsics/package.json +86 -0
  825. package/node_modules/@slack/web-api/node_modules/math-intrinsics/pow.d.ts +1 -0
  826. package/node_modules/@slack/web-api/node_modules/math-intrinsics/pow.js +4 -0
  827. package/node_modules/@slack/web-api/node_modules/math-intrinsics/round.d.ts +1 -0
  828. package/node_modules/@slack/web-api/node_modules/math-intrinsics/round.js +4 -0
  829. package/node_modules/@slack/web-api/node_modules/math-intrinsics/sign.d.ts +3 -0
  830. package/node_modules/@slack/web-api/node_modules/math-intrinsics/sign.js +11 -0
  831. package/node_modules/@slack/web-api/node_modules/math-intrinsics/test/index.js +192 -0
  832. package/node_modules/@slack/web-api/node_modules/math-intrinsics/tsconfig.json +3 -0
  833. package/node_modules/@slack/web-api/node_modules/mime-db/HISTORY.md +507 -0
  834. package/node_modules/@slack/web-api/node_modules/mime-db/LICENSE +23 -0
  835. package/node_modules/@slack/web-api/node_modules/mime-db/README.md +100 -0
  836. package/node_modules/@slack/web-api/node_modules/mime-db/db.json +8519 -0
  837. package/node_modules/@slack/web-api/node_modules/mime-db/index.js +12 -0
  838. package/node_modules/@slack/web-api/node_modules/mime-db/package.json +60 -0
  839. package/node_modules/@slack/web-api/node_modules/mime-types/HISTORY.md +397 -0
  840. package/node_modules/@slack/web-api/node_modules/mime-types/LICENSE +23 -0
  841. package/node_modules/@slack/web-api/node_modules/mime-types/README.md +113 -0
  842. package/node_modules/@slack/web-api/node_modules/mime-types/index.js +188 -0
  843. package/node_modules/@slack/web-api/node_modules/mime-types/package.json +44 -0
  844. package/node_modules/@slack/web-api/node_modules/ms/index.js +162 -0
  845. package/node_modules/@slack/web-api/node_modules/ms/license.md +21 -0
  846. package/node_modules/@slack/web-api/node_modules/ms/package.json +38 -0
  847. package/node_modules/@slack/web-api/node_modules/ms/readme.md +59 -0
  848. package/node_modules/@slack/web-api/node_modules/proxy-from-env/LICENSE +20 -0
  849. package/node_modules/@slack/web-api/node_modules/proxy-from-env/README.md +163 -0
  850. package/node_modules/@slack/web-api/node_modules/proxy-from-env/index.cjs +105 -0
  851. package/node_modules/@slack/web-api/node_modules/proxy-from-env/index.js +103 -0
  852. package/node_modules/@slack/web-api/node_modules/proxy-from-env/package.json +43 -0
  853. package/node_modules/@slack/web-api/node_modules/safe-buffer/LICENSE +21 -0
  854. package/node_modules/@slack/web-api/node_modules/safe-buffer/README.md +584 -0
  855. package/node_modules/@slack/web-api/node_modules/safe-buffer/index.d.ts +187 -0
  856. package/node_modules/@slack/web-api/node_modules/safe-buffer/index.js +65 -0
  857. package/node_modules/@slack/web-api/node_modules/safe-buffer/package.json +51 -0
  858. package/node_modules/@slack/web-api/package.json +10 -6
  859. package/node_modules/typebox/build/compile/validator.d.mts +4 -1
  860. package/node_modules/typebox/build/guard/guard.d.mts +1 -1
  861. package/node_modules/typebox/build/guard/guard.mjs +2 -5
  862. package/node_modules/typebox/build/guard/string.mjs +4 -16
  863. package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
  864. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  865. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
  866. package/node_modules/typebox/build/typebox.d.mts +1 -1
  867. package/node_modules/typebox/build/typebox.mjs +1 -1
  868. package/node_modules/typebox/package.json +1 -1
  869. package/node_modules/typebox/readme.md +32 -29
  870. package/node_modules/ws/lib/permessage-deflate.js +3 -1
  871. package/node_modules/ws/package.json +1 -1
  872. package/openclaw.plugin.json +1390 -1351
  873. package/package.json +19 -109
  874. package/dist/account-configured-BwfXBo_F.js +0 -14
  875. package/dist/account-inspect-DEKpg9Ip.js +0 -89
  876. package/dist/account-reply-mode-DrUXogvO.js +0 -14
  877. package/dist/accounts-CHAeNZOX.js +0 -186
  878. package/dist/accounts.runtime-BHD4Ma2R.js +0 -2
  879. package/dist/action-runtime-DfuYoMjG.js +0 -561
  880. package/dist/action-runtime.runtime-DQErZYpz.js +0 -2
  881. package/dist/actions-D3NuJvva.js +0 -876
  882. package/dist/actions.runtime-BIRU_G4M.js +0 -2
  883. package/dist/approval-handler.runtime-BA05P0QT.js +0 -367
  884. package/dist/block-text-DkHaoGem.js +0 -79
  885. package/dist/channel-B9fVdW3s.js +0 -1118
  886. package/dist/channel-type-DXyos1d2.js +0 -108
  887. package/dist/channel.setup-CLP5oTvh.js +0 -56
  888. package/dist/config-adapter-CxBQH8fq.js +0 -566
  889. package/dist/config-schema-SgZT6nXV.js +0 -373
  890. package/dist/cursor-pages-eX7p8Wwt.js +0 -19
  891. package/dist/directory-config-CnCIAktf.js +0 -54
  892. package/dist/directory-live-DKunWh3A.js +0 -131
  893. package/dist/doctor-contract-CsGH1Dfc.js +0 -158
  894. package/dist/group-policy-NQZti9t-.js +0 -2442
  895. package/dist/message-tool-api-DkhFpMoy.js +0 -127
  896. package/dist/monitor-CmKz0wtI.js +0 -13
  897. package/dist/outbound-adapter-BkuMp2Vs.js +0 -236
  898. package/dist/pipeline.runtime-DgtmuYCP.js +0 -4360
  899. package/dist/plugin-routes-CLp4obpN.js +0 -22
  900. package/dist/policy-PRysPn23.js +0 -65
  901. package/dist/preflight-audio.runtime-D5Bgags0.js +0 -3
  902. package/dist/probe-CgDsSops.js +0 -345
  903. package/dist/provider-DmRizMZt.js +0 -5900
  904. package/dist/relay-source-Blxj8xb4.js +0 -272
  905. package/dist/replies-4s_Vq_z9.js +0 -457
  906. package/dist/resolve-channels-yEqmM-3I.js +0 -92
  907. package/dist/resolve-users-BOrt5K-5.js +0 -118
  908. package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
  909. package/dist/runtime-JSVZSWAj.js +0 -8
  910. package/dist/runtime-api-QMb-Q5Ko.js +0 -10
  911. package/dist/scopes-BJSrkAp6.js +0 -73
  912. package/dist/secret-contract-DxmvbxBF.js +0 -87
  913. package/dist/security-audit-DR097212.js +0 -41
  914. package/dist/send-DsLeZpST.js +0 -1269
  915. package/dist/send.runtime-gUdK6V3h.js +0 -2
  916. package/dist/setup-surface-BeNzrMrJ.js +0 -148
  917. package/dist/shared-DgIN3Dcr.js +0 -268
  918. package/dist/slash-dispatch.runtime-zPkyl7dB.js +0 -33
  919. package/dist/streaming-compat-3_X-21wW.js +0 -44
  920. package/dist/target-parsing-N6lHogYZ.js +0 -73
  921. package/dist/targets-KmjP2E8s.js +0 -13
  922. package/node_modules/@slack/socket-mode/README.md +0 -221
  923. package/node_modules/@slack/socket-mode/dist/package.json +0 -75
  924. package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.d.ts +0 -102
  925. package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.d.ts.map +0 -1
  926. package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +0 -330
  927. package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js.map +0 -1
  928. package/node_modules/@slack/socket-mode/dist/src/SocketModeClient.d.ts +0 -104
  929. package/node_modules/@slack/socket-mode/dist/src/SocketModeClient.d.ts.map +0 -1
  930. package/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +0 -412
  931. package/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js.map +0 -1
  932. package/node_modules/@slack/socket-mode/dist/src/SocketModeOptions.d.ts +0 -77
  933. package/node_modules/@slack/socket-mode/dist/src/SocketModeOptions.d.ts.map +0 -1
  934. package/node_modules/@slack/socket-mode/dist/src/errors.d.ts +0 -54
  935. package/node_modules/@slack/socket-mode/dist/src/errors.d.ts.map +0 -1
  936. package/node_modules/@slack/socket-mode/dist/src/errors.js +0 -64
  937. package/node_modules/@slack/socket-mode/dist/src/errors.js.map +0 -1
  938. package/node_modules/@slack/socket-mode/dist/src/index.d.ts +0 -6
  939. package/node_modules/@slack/socket-mode/dist/src/index.d.ts.map +0 -1
  940. package/node_modules/@slack/socket-mode/dist/src/index.js +0 -19
  941. package/node_modules/@slack/socket-mode/dist/src/index.js.map +0 -1
  942. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/LICENSE +0 -23
  943. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/README.md +0 -66
  944. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/dist/index.d.ts +0 -94
  945. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/dist/index.d.ts.map +0 -1
  946. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/dist/index.js +0 -98
  947. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/dist/index.js.map +0 -1
  948. package/node_modules/@slack/socket-mode/node_modules/@slack/logger/package.json +0 -42
  949. package/node_modules/@slack/socket-mode/node_modules/@types/node/README.md +0 -15
  950. package/node_modules/@slack/socket-mode/node_modules/@types/node/assert/strict.d.ts +0 -68
  951. package/node_modules/@slack/socket-mode/node_modules/@types/node/assert.d.ts +0 -1077
  952. package/node_modules/@slack/socket-mode/node_modules/@types/node/async_hooks.d.ts +0 -711
  953. package/node_modules/@slack/socket-mode/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  954. package/node_modules/@slack/socket-mode/node_modules/@types/node/buffer.d.ts +0 -1799
  955. package/node_modules/@slack/socket-mode/node_modules/@types/node/child_process.d.ts +0 -1362
  956. package/node_modules/@slack/socket-mode/node_modules/@types/node/cluster.d.ts +0 -432
  957. package/node_modules/@slack/socket-mode/node_modules/@types/node/console.d.ts +0 -93
  958. package/node_modules/@slack/socket-mode/node_modules/@types/node/constants.d.ts +0 -14
  959. package/node_modules/@slack/socket-mode/node_modules/@types/node/crypto.d.ts +0 -3954
  960. package/node_modules/@slack/socket-mode/node_modules/@types/node/dgram.d.ts +0 -537
  961. package/node_modules/@slack/socket-mode/node_modules/@types/node/diagnostics_channel.d.ts +0 -794
  962. package/node_modules/@slack/socket-mode/node_modules/@types/node/dns/promises.d.ts +0 -497
  963. package/node_modules/@slack/socket-mode/node_modules/@types/node/dns.d.ts +0 -876
  964. package/node_modules/@slack/socket-mode/node_modules/@types/node/domain.d.ts +0 -150
  965. package/node_modules/@slack/socket-mode/node_modules/@types/node/events.d.ts +0 -1008
  966. package/node_modules/@slack/socket-mode/node_modules/@types/node/ffi.d.ts +0 -486
  967. package/node_modules/@slack/socket-mode/node_modules/@types/node/fs/promises.d.ts +0 -1481
  968. package/node_modules/@slack/socket-mode/node_modules/@types/node/fs.d.ts +0 -4786
  969. package/node_modules/@slack/socket-mode/node_modules/@types/node/globals.d.ts +0 -150
  970. package/node_modules/@slack/socket-mode/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  971. package/node_modules/@slack/socket-mode/node_modules/@types/node/http.d.ts +0 -2172
  972. package/node_modules/@slack/socket-mode/node_modules/@types/node/http2.d.ts +0 -2489
  973. package/node_modules/@slack/socket-mode/node_modules/@types/node/https.d.ts +0 -400
  974. package/node_modules/@slack/socket-mode/node_modules/@types/node/index.d.ts +0 -115
  975. package/node_modules/@slack/socket-mode/node_modules/@types/node/inspector/promises.d.ts +0 -35
  976. package/node_modules/@slack/socket-mode/node_modules/@types/node/inspector.d.ts +0 -264
  977. package/node_modules/@slack/socket-mode/node_modules/@types/node/inspector.generated.d.ts +0 -4406
  978. package/node_modules/@slack/socket-mode/node_modules/@types/node/module.d.ts +0 -726
  979. package/node_modules/@slack/socket-mode/node_modules/@types/node/net.d.ts +0 -970
  980. package/node_modules/@slack/socket-mode/node_modules/@types/node/os.d.ts +0 -498
  981. package/node_modules/@slack/socket-mode/node_modules/@types/node/package.json +0 -155
  982. package/node_modules/@slack/socket-mode/node_modules/@types/node/path/posix.d.ts +0 -8
  983. package/node_modules/@slack/socket-mode/node_modules/@types/node/path/win32.d.ts +0 -8
  984. package/node_modules/@slack/socket-mode/node_modules/@types/node/path.d.ts +0 -178
  985. package/node_modules/@slack/socket-mode/node_modules/@types/node/perf_hooks.d.ts +0 -604
  986. package/node_modules/@slack/socket-mode/node_modules/@types/node/process.d.ts +0 -2217
  987. package/node_modules/@slack/socket-mode/node_modules/@types/node/punycode.d.ts +0 -89
  988. package/node_modules/@slack/socket-mode/node_modules/@types/node/querystring.d.ts +0 -139
  989. package/node_modules/@slack/socket-mode/node_modules/@types/node/quic.d.ts +0 -978
  990. package/node_modules/@slack/socket-mode/node_modules/@types/node/readline/promises.d.ts +0 -158
  991. package/node_modules/@slack/socket-mode/node_modules/@types/node/readline.d.ts +0 -508
  992. package/node_modules/@slack/socket-mode/node_modules/@types/node/repl.d.ts +0 -420
  993. package/node_modules/@slack/socket-mode/node_modules/@types/node/sea.d.ts +0 -47
  994. package/node_modules/@slack/socket-mode/node_modules/@types/node/sqlite.d.ts +0 -1123
  995. package/node_modules/@slack/socket-mode/node_modules/@types/node/stream/consumers.d.ts +0 -114
  996. package/node_modules/@slack/socket-mode/node_modules/@types/node/stream/iter.d.ts +0 -451
  997. package/node_modules/@slack/socket-mode/node_modules/@types/node/stream/promises.d.ts +0 -211
  998. package/node_modules/@slack/socket-mode/node_modules/@types/node/stream/web.d.ts +0 -300
  999. package/node_modules/@slack/socket-mode/node_modules/@types/node/stream.d.ts +0 -1806
  1000. package/node_modules/@slack/socket-mode/node_modules/@types/node/string_decoder.d.ts +0 -27
  1001. package/node_modules/@slack/socket-mode/node_modules/@types/node/test/reporters.d.ts +0 -59
  1002. package/node_modules/@slack/socket-mode/node_modules/@types/node/test.d.ts +0 -2389
  1003. package/node_modules/@slack/socket-mode/node_modules/@types/node/timers/promises.d.ts +0 -93
  1004. package/node_modules/@slack/socket-mode/node_modules/@types/node/timers.d.ts +0 -149
  1005. package/node_modules/@slack/socket-mode/node_modules/@types/node/tls.d.ts +0 -1193
  1006. package/node_modules/@slack/socket-mode/node_modules/@types/node/trace_events.d.ts +0 -103
  1007. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  1008. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  1009. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  1010. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.6/index.d.ts +0 -117
  1011. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  1012. package/node_modules/@slack/socket-mode/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  1013. package/node_modules/@slack/socket-mode/node_modules/@types/node/tty.d.ts +0 -225
  1014. package/node_modules/@slack/socket-mode/node_modules/@types/node/url.d.ts +0 -556
  1015. package/node_modules/@slack/socket-mode/node_modules/@types/node/util/types.d.ts +0 -558
  1016. package/node_modules/@slack/socket-mode/node_modules/@types/node/util.d.ts +0 -1677
  1017. package/node_modules/@slack/socket-mode/node_modules/@types/node/v8.d.ts +0 -1062
  1018. package/node_modules/@slack/socket-mode/node_modules/@types/node/vm.d.ts +0 -1136
  1019. package/node_modules/@slack/socket-mode/node_modules/@types/node/wasi.d.ts +0 -131
  1020. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  1021. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  1022. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/console.d.ts +0 -9
  1023. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  1024. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/domexception.d.ts +0 -83
  1025. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  1026. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/events.d.ts +0 -106
  1027. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  1028. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  1029. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  1030. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  1031. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  1032. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  1033. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  1034. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  1035. package/node_modules/@slack/socket-mode/node_modules/@types/node/web-globals/url.d.ts +0 -24
  1036. package/node_modules/@slack/socket-mode/node_modules/@types/node/worker_threads.d.ts +0 -669
  1037. package/node_modules/@slack/socket-mode/node_modules/@types/node/zlib/iter.d.ts +0 -131
  1038. package/node_modules/@slack/socket-mode/node_modules/@types/node/zlib.d.ts +0 -589
  1039. package/node_modules/@slack/socket-mode/node_modules/undici-types/LICENSE +0 -21
  1040. package/node_modules/@slack/socket-mode/node_modules/undici-types/README.md +0 -6
  1041. package/node_modules/@slack/socket-mode/node_modules/undici-types/agent.d.ts +0 -30
  1042. package/node_modules/@slack/socket-mode/node_modules/undici-types/api.d.ts +0 -43
  1043. package/node_modules/@slack/socket-mode/node_modules/undici-types/balanced-pool.d.ts +0 -30
  1044. package/node_modules/@slack/socket-mode/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  1045. package/node_modules/@slack/socket-mode/node_modules/undici-types/cache.d.ts +0 -36
  1046. package/node_modules/@slack/socket-mode/node_modules/undici-types/client-stats.d.ts +0 -15
  1047. package/node_modules/@slack/socket-mode/node_modules/undici-types/client.d.ts +0 -129
  1048. package/node_modules/@slack/socket-mode/node_modules/undici-types/connector.d.ts +0 -36
  1049. package/node_modules/@slack/socket-mode/node_modules/undici-types/content-type.d.ts +0 -21
  1050. package/node_modules/@slack/socket-mode/node_modules/undici-types/cookies.d.ts +0 -30
  1051. package/node_modules/@slack/socket-mode/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  1052. package/node_modules/@slack/socket-mode/node_modules/undici-types/dispatcher.d.ts +0 -253
  1053. package/node_modules/@slack/socket-mode/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  1054. package/node_modules/@slack/socket-mode/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  1055. package/node_modules/@slack/socket-mode/node_modules/undici-types/errors.d.ts +0 -177
  1056. package/node_modules/@slack/socket-mode/node_modules/undici-types/eventsource.d.ts +0 -66
  1057. package/node_modules/@slack/socket-mode/node_modules/undici-types/fetch.d.ts +0 -231
  1058. package/node_modules/@slack/socket-mode/node_modules/undici-types/formdata.d.ts +0 -108
  1059. package/node_modules/@slack/socket-mode/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1060. package/node_modules/@slack/socket-mode/node_modules/undici-types/global-origin.d.ts +0 -7
  1061. package/node_modules/@slack/socket-mode/node_modules/undici-types/h2c-client.d.ts +0 -73
  1062. package/node_modules/@slack/socket-mode/node_modules/undici-types/handlers.d.ts +0 -14
  1063. package/node_modules/@slack/socket-mode/node_modules/undici-types/header.d.ts +0 -165
  1064. package/node_modules/@slack/socket-mode/node_modules/undici-types/index.d.ts +0 -93
  1065. package/node_modules/@slack/socket-mode/node_modules/undici-types/interceptors.d.ts +0 -80
  1066. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-agent.d.ts +0 -68
  1067. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-call-history.d.ts +0 -111
  1068. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-client.d.ts +0 -27
  1069. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-errors.d.ts +0 -12
  1070. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  1071. package/node_modules/@slack/socket-mode/node_modules/undici-types/mock-pool.d.ts +0 -27
  1072. package/node_modules/@slack/socket-mode/node_modules/undici-types/package.json +0 -55
  1073. package/node_modules/@slack/socket-mode/node_modules/undici-types/patch.d.ts +0 -29
  1074. package/node_modules/@slack/socket-mode/node_modules/undici-types/pool-stats.d.ts +0 -19
  1075. package/node_modules/@slack/socket-mode/node_modules/undici-types/pool.d.ts +0 -39
  1076. package/node_modules/@slack/socket-mode/node_modules/undici-types/proxy-agent.d.ts +0 -29
  1077. package/node_modules/@slack/socket-mode/node_modules/undici-types/readable.d.ts +0 -68
  1078. package/node_modules/@slack/socket-mode/node_modules/undici-types/retry-agent.d.ts +0 -8
  1079. package/node_modules/@slack/socket-mode/node_modules/undici-types/retry-handler.d.ts +0 -125
  1080. package/node_modules/@slack/socket-mode/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  1081. package/node_modules/@slack/socket-mode/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  1082. package/node_modules/@slack/socket-mode/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  1083. package/node_modules/@slack/socket-mode/node_modules/undici-types/util.d.ts +0 -18
  1084. package/node_modules/@slack/socket-mode/node_modules/undici-types/utility.d.ts +0 -7
  1085. package/node_modules/@slack/socket-mode/node_modules/undici-types/webidl.d.ts +0 -346
  1086. package/node_modules/@slack/socket-mode/node_modules/undici-types/websocket.d.ts +0 -188
  1087. package/node_modules/@slack/socket-mode/package.json +0 -75
  1088. package/node_modules/get-east-asian-width/index.d.ts +0 -60
  1089. package/node_modules/get-east-asian-width/index.js +0 -30
  1090. package/node_modules/get-east-asian-width/lookup-data.js +0 -21
  1091. package/node_modules/get-east-asian-width/lookup.js +0 -138
  1092. package/node_modules/get-east-asian-width/package.json +0 -71
  1093. package/node_modules/get-east-asian-width/readme.md +0 -65
  1094. package/node_modules/get-east-asian-width/utilities.js +0 -24
  1095. package/node_modules/p-map/index.d.ts +0 -155
  1096. package/node_modules/p-map/index.js +0 -285
  1097. package/node_modules/p-map/license +0 -9
  1098. package/node_modules/p-map/package.json +0 -57
  1099. package/node_modules/p-map/readme.md +0 -190
  1100. package/node_modules/undici/LICENSE +0 -21
  1101. package/node_modules/undici/README.md +0 -741
  1102. package/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1103. package/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1104. package/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1105. package/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1106. package/node_modules/undici/docs/docs/api/Client.md +0 -288
  1107. package/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1108. package/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1109. package/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1110. package/node_modules/undici/docs/docs/api/Cookies.md +0 -128
  1111. package/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1112. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1113. package/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1114. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1115. package/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1116. package/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1117. package/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1118. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1119. package/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1120. package/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1121. package/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1122. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1123. package/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1124. package/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1125. package/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1126. package/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1127. package/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1128. package/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1129. package/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1130. package/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1131. package/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1132. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1133. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1134. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
  1135. package/node_modules/undici/docs/docs/api/Util.md +0 -25
  1136. package/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1137. package/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1138. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1139. package/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1140. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1141. package/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1142. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1143. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1144. package/node_modules/undici/index-fetch.js +0 -65
  1145. package/node_modules/undici/index.d.ts +0 -3
  1146. package/node_modules/undici/index.js +0 -234
  1147. package/node_modules/undici/lib/api/abort-signal.js +0 -59
  1148. package/node_modules/undici/lib/api/api-connect.js +0 -110
  1149. package/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1150. package/node_modules/undici/lib/api/api-request.js +0 -214
  1151. package/node_modules/undici/lib/api/api-stream.js +0 -209
  1152. package/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1153. package/node_modules/undici/lib/api/index.js +0 -7
  1154. package/node_modules/undici/lib/api/readable.js +0 -580
  1155. package/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
  1156. package/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
  1157. package/node_modules/undici/lib/core/connect.js +0 -153
  1158. package/node_modules/undici/lib/core/constants.js +0 -143
  1159. package/node_modules/undici/lib/core/diagnostics.js +0 -227
  1160. package/node_modules/undici/lib/core/errors.js +0 -477
  1161. package/node_modules/undici/lib/core/request.js +0 -453
  1162. package/node_modules/undici/lib/core/socks5-client.js +0 -422
  1163. package/node_modules/undici/lib/core/socks5-utils.js +0 -212
  1164. package/node_modules/undici/lib/core/symbols.js +0 -75
  1165. package/node_modules/undici/lib/core/tree.js +0 -160
  1166. package/node_modules/undici/lib/core/util.js +0 -992
  1167. package/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1168. package/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1169. package/node_modules/undici/lib/dispatcher/client-h1.js +0 -1722
  1170. package/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1171. package/node_modules/undici/lib/dispatcher/client.js +0 -664
  1172. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
  1173. package/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1174. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1175. package/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1176. package/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1177. package/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1178. package/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1179. package/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
  1180. package/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1181. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1182. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
  1183. package/node_modules/undici/lib/encoding/index.js +0 -33
  1184. package/node_modules/undici/lib/global.js +0 -59
  1185. package/node_modules/undici/lib/handler/cache-handler.js +0 -578
  1186. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1187. package/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1188. package/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1189. package/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1190. package/node_modules/undici/lib/handler/retry-handler.js +0 -394
  1191. package/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
  1192. package/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1193. package/node_modules/undici/lib/interceptor/cache.js +0 -495
  1194. package/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1195. package/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1196. package/node_modules/undici/lib/interceptor/dns.js +0 -571
  1197. package/node_modules/undici/lib/interceptor/dump.js +0 -112
  1198. package/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1199. package/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1200. package/node_modules/undici/lib/interceptor/retry.js +0 -19
  1201. package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1202. package/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
  1203. package/node_modules/undici/lib/llhttp/constants.js +0 -531
  1204. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1205. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1206. package/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
  1207. package/node_modules/undici/lib/llhttp/utils.js +0 -12
  1208. package/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1209. package/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1210. package/node_modules/undici/lib/mock/mock-client.js +0 -68
  1211. package/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1212. package/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1213. package/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1214. package/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1215. package/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1216. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1217. package/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1218. package/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1219. package/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1220. package/node_modules/undici/lib/util/cache.js +0 -414
  1221. package/node_modules/undici/lib/util/date.js +0 -653
  1222. package/node_modules/undici/lib/util/promise.js +0 -28
  1223. package/node_modules/undici/lib/util/runtime-features.js +0 -124
  1224. package/node_modules/undici/lib/util/stats.js +0 -32
  1225. package/node_modules/undici/lib/util/timers.js +0 -425
  1226. package/node_modules/undici/lib/web/cache/cache.js +0 -864
  1227. package/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1228. package/node_modules/undici/lib/web/cache/util.js +0 -45
  1229. package/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1230. package/node_modules/undici/lib/web/cookies/index.js +0 -199
  1231. package/node_modules/undici/lib/web/cookies/parse.js +0 -314
  1232. package/node_modules/undici/lib/web/cookies/util.js +0 -282
  1233. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1234. package/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1235. package/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1236. package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1237. package/node_modules/undici/lib/web/fetch/body.js +0 -509
  1238. package/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1239. package/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1240. package/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  1241. package/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1242. package/node_modules/undici/lib/web/fetch/global.js +0 -40
  1243. package/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1244. package/node_modules/undici/lib/web/fetch/index.js +0 -2413
  1245. package/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1246. package/node_modules/undici/lib/web/fetch/response.js +0 -641
  1247. package/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1248. package/node_modules/undici/lib/web/infra/index.js +0 -229
  1249. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1250. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1251. package/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1252. package/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1253. package/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1254. package/node_modules/undici/lib/web/websocket/events.js +0 -331
  1255. package/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1256. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  1257. package/node_modules/undici/lib/web/websocket/receiver.js +0 -507
  1258. package/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1259. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1260. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
  1261. package/node_modules/undici/lib/web/websocket/util.js +0 -347
  1262. package/node_modules/undici/lib/web/websocket/websocket.js +0 -758
  1263. package/node_modules/undici/package.json +0 -152
  1264. package/node_modules/undici/scripts/strip-comments.js +0 -10
  1265. package/node_modules/undici/types/README.md +0 -6
  1266. package/node_modules/undici/types/agent.d.ts +0 -32
  1267. package/node_modules/undici/types/api.d.ts +0 -43
  1268. package/node_modules/undici/types/balanced-pool.d.ts +0 -30
  1269. package/node_modules/undici/types/cache-interceptor.d.ts +0 -179
  1270. package/node_modules/undici/types/cache.d.ts +0 -36
  1271. package/node_modules/undici/types/client-stats.d.ts +0 -15
  1272. package/node_modules/undici/types/client.d.ts +0 -139
  1273. package/node_modules/undici/types/connector.d.ts +0 -36
  1274. package/node_modules/undici/types/content-type.d.ts +0 -21
  1275. package/node_modules/undici/types/cookies.d.ts +0 -30
  1276. package/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
  1277. package/node_modules/undici/types/dispatcher.d.ts +0 -275
  1278. package/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
  1279. package/node_modules/undici/types/errors.d.ts +0 -177
  1280. package/node_modules/undici/types/eventsource.d.ts +0 -66
  1281. package/node_modules/undici/types/fetch.d.ts +0 -231
  1282. package/node_modules/undici/types/formdata.d.ts +0 -114
  1283. package/node_modules/undici/types/global-dispatcher.d.ts +0 -9
  1284. package/node_modules/undici/types/global-origin.d.ts +0 -7
  1285. package/node_modules/undici/types/h2c-client.d.ts +0 -73
  1286. package/node_modules/undici/types/handlers.d.ts +0 -14
  1287. package/node_modules/undici/types/header.d.ts +0 -160
  1288. package/node_modules/undici/types/index.d.ts +0 -91
  1289. package/node_modules/undici/types/interceptors.d.ts +0 -80
  1290. package/node_modules/undici/types/mock-agent.d.ts +0 -68
  1291. package/node_modules/undici/types/mock-call-history.d.ts +0 -111
  1292. package/node_modules/undici/types/mock-client.d.ts +0 -27
  1293. package/node_modules/undici/types/mock-errors.d.ts +0 -12
  1294. package/node_modules/undici/types/mock-interceptor.d.ts +0 -94
  1295. package/node_modules/undici/types/mock-pool.d.ts +0 -27
  1296. package/node_modules/undici/types/patch.d.ts +0 -29
  1297. package/node_modules/undici/types/pool-stats.d.ts +0 -19
  1298. package/node_modules/undici/types/pool.d.ts +0 -41
  1299. package/node_modules/undici/types/proxy-agent.d.ts +0 -29
  1300. package/node_modules/undici/types/readable.d.ts +0 -68
  1301. package/node_modules/undici/types/retry-agent.d.ts +0 -8
  1302. package/node_modules/undici/types/retry-handler.d.ts +0 -125
  1303. package/node_modules/undici/types/round-robin-pool.d.ts +0 -41
  1304. package/node_modules/undici/types/snapshot-agent.d.ts +0 -109
  1305. package/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
  1306. package/node_modules/undici/types/util.d.ts +0 -18
  1307. package/node_modules/undici/types/utility.d.ts +0 -7
  1308. package/node_modules/undici/types/webidl.d.ts +0 -347
  1309. package/node_modules/undici/types/websocket.d.ts +0 -188
  1310. /package/dist/{registry-bbjH7IHX.js → .setup/registry-bbjH7IHX.mjs} +0 -0
  1311. /package/dist/{slash-commands.runtime-BTTMlmwy.js → .setup/slash-commands.runtime-BTTMlmwy.mjs} +0 -0
  1312. /package/dist/{slash-plugin-commands.runtime-Dosfcx3X.js → .setup/slash-plugin-commands.runtime-Dosfcx3X.mjs} +0 -0
  1313. /package/dist/{slash-skill-commands.runtime-CD1J2ODY.js → .setup/slash-skill-commands.runtime-CD1J2ODY.mjs} +0 -0
  1314. /package/dist/{thread-ts-DUGhaYKq.js → .setup/thread-ts-DUGhaYKq.mjs} +0 -0
  1315. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/LICENSE +0 -0
  1316. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/SocketModeOptions.js +0 -0
  1317. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/SocketModeOptions.js.map +0 -0
  1318. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/UnrecoverableSocketModeStartError.d.ts +0 -0
  1319. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/UnrecoverableSocketModeStartError.d.ts.map +0 -0
  1320. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/UnrecoverableSocketModeStartError.js +0 -0
  1321. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/UnrecoverableSocketModeStartError.js.map +0 -0
  1322. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/logger.d.ts +0 -0
  1323. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/logger.d.ts.map +0 -0
  1324. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/logger.js +0 -0
  1325. /package/node_modules/@slack/{socket-mode → bolt/node_modules/@slack/socket-mode}/dist/src/logger.js.map +0 -0
  1326. /package/node_modules/@slack/{socket-mode/node_modules/@types/node → bolt/node_modules/@types/ws}/LICENSE +0 -0
  1327. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/LICENSE +0 -0
  1328. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/README.md +0 -0
  1329. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -0
  1330. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -0
  1331. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +0 -0
  1332. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -0
  1333. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -0
  1334. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +0 -0
  1335. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/index.d.ts +0 -0
  1336. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/index.js +0 -0
  1337. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/index.mjs +0 -0
  1338. /package/node_modules/@slack/{socket-mode → bolt}/node_modules/eventemitter3/package.json +0 -0
  1339. /package/node_modules/{get-east-asian-width → @slack/web-api/node_modules/is-stream}/license +0 -0
@@ -1,2172 +0,0 @@
1
- declare module "node:http" {
2
- import { NonSharedBuffer } from "node:buffer";
3
- import { LookupOptions } from "node:dns";
4
- import { EventEmitter } from "node:events";
5
- import * as net from "node:net";
6
- import * as stream from "node:stream";
7
- import { URL } from "node:url";
8
- // incoming headers will never contain number
9
- interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
10
- accept?: string | undefined;
11
- "accept-encoding"?: string | undefined;
12
- "accept-language"?: string | undefined;
13
- "accept-patch"?: string | undefined;
14
- "accept-ranges"?: string | undefined;
15
- "access-control-allow-credentials"?: string | undefined;
16
- "access-control-allow-headers"?: string | undefined;
17
- "access-control-allow-methods"?: string | undefined;
18
- "access-control-allow-origin"?: string | undefined;
19
- "access-control-expose-headers"?: string | undefined;
20
- "access-control-max-age"?: string | undefined;
21
- "access-control-request-headers"?: string | undefined;
22
- "access-control-request-method"?: string | undefined;
23
- age?: string | undefined;
24
- allow?: string | undefined;
25
- "alt-svc"?: string | undefined;
26
- authorization?: string | undefined;
27
- "cache-control"?: string | undefined;
28
- connection?: string | undefined;
29
- "content-disposition"?: string | undefined;
30
- "content-encoding"?: string | undefined;
31
- "content-language"?: string | undefined;
32
- "content-length"?: string | undefined;
33
- "content-location"?: string | undefined;
34
- "content-range"?: string | undefined;
35
- "content-type"?: string | undefined;
36
- cookie?: string | undefined;
37
- date?: string | undefined;
38
- etag?: string | undefined;
39
- expect?: string | undefined;
40
- expires?: string | undefined;
41
- forwarded?: string | undefined;
42
- from?: string | undefined;
43
- host?: string | undefined;
44
- "if-match"?: string | undefined;
45
- "if-modified-since"?: string | undefined;
46
- "if-none-match"?: string | undefined;
47
- "if-unmodified-since"?: string | undefined;
48
- "last-modified"?: string | undefined;
49
- location?: string | undefined;
50
- origin?: string | undefined;
51
- pragma?: string | undefined;
52
- "proxy-authenticate"?: string | undefined;
53
- "proxy-authorization"?: string | undefined;
54
- "public-key-pins"?: string | undefined;
55
- range?: string | undefined;
56
- referer?: string | undefined;
57
- "retry-after"?: string | undefined;
58
- "sec-fetch-site"?: string | undefined;
59
- "sec-fetch-mode"?: string | undefined;
60
- "sec-fetch-user"?: string | undefined;
61
- "sec-fetch-dest"?: string | undefined;
62
- "sec-websocket-accept"?: string | undefined;
63
- "sec-websocket-extensions"?: string | undefined;
64
- "sec-websocket-key"?: string | undefined;
65
- "sec-websocket-protocol"?: string | undefined;
66
- "sec-websocket-version"?: string | undefined;
67
- "set-cookie"?: string[] | undefined;
68
- "strict-transport-security"?: string | undefined;
69
- tk?: string | undefined;
70
- trailer?: string | undefined;
71
- "transfer-encoding"?: string | undefined;
72
- upgrade?: string | undefined;
73
- "user-agent"?: string | undefined;
74
- vary?: string | undefined;
75
- via?: string | undefined;
76
- warning?: string | undefined;
77
- "www-authenticate"?: string | undefined;
78
- }
79
- // outgoing headers allows numbers (as they are converted internally to strings)
80
- type OutgoingHttpHeader = number | string | string[];
81
- interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
82
- accept?: string | string[] | undefined;
83
- "accept-charset"?: string | string[] | undefined;
84
- "accept-encoding"?: string | string[] | undefined;
85
- "accept-language"?: string | string[] | undefined;
86
- "accept-ranges"?: string | undefined;
87
- "access-control-allow-credentials"?: string | undefined;
88
- "access-control-allow-headers"?: string | undefined;
89
- "access-control-allow-methods"?: string | undefined;
90
- "access-control-allow-origin"?: string | undefined;
91
- "access-control-expose-headers"?: string | undefined;
92
- "access-control-max-age"?: string | undefined;
93
- "access-control-request-headers"?: string | undefined;
94
- "access-control-request-method"?: string | undefined;
95
- age?: string | undefined;
96
- allow?: string | undefined;
97
- authorization?: string | undefined;
98
- "cache-control"?: string | undefined;
99
- "cdn-cache-control"?: string | undefined;
100
- connection?: string | string[] | undefined;
101
- "content-disposition"?: string | undefined;
102
- "content-encoding"?: string | undefined;
103
- "content-language"?: string | undefined;
104
- "content-length"?: string | number | undefined;
105
- "content-location"?: string | undefined;
106
- "content-range"?: string | undefined;
107
- "content-security-policy"?: string | undefined;
108
- "content-security-policy-report-only"?: string | undefined;
109
- "content-type"?: string | undefined;
110
- cookie?: string | string[] | undefined;
111
- dav?: string | string[] | undefined;
112
- dnt?: string | undefined;
113
- date?: string | undefined;
114
- etag?: string | undefined;
115
- expect?: string | undefined;
116
- expires?: string | undefined;
117
- forwarded?: string | undefined;
118
- from?: string | undefined;
119
- host?: string | undefined;
120
- "if-match"?: string | undefined;
121
- "if-modified-since"?: string | undefined;
122
- "if-none-match"?: string | undefined;
123
- "if-range"?: string | undefined;
124
- "if-unmodified-since"?: string | undefined;
125
- "last-modified"?: string | undefined;
126
- link?: string | string[] | undefined;
127
- location?: string | undefined;
128
- "max-forwards"?: string | undefined;
129
- origin?: string | undefined;
130
- pragma?: string | string[] | undefined;
131
- "proxy-authenticate"?: string | string[] | undefined;
132
- "proxy-authorization"?: string | undefined;
133
- "public-key-pins"?: string | undefined;
134
- "public-key-pins-report-only"?: string | undefined;
135
- range?: string | undefined;
136
- referer?: string | undefined;
137
- "referrer-policy"?: string | undefined;
138
- refresh?: string | undefined;
139
- "retry-after"?: string | undefined;
140
- "sec-websocket-accept"?: string | undefined;
141
- "sec-websocket-extensions"?: string | string[] | undefined;
142
- "sec-websocket-key"?: string | undefined;
143
- "sec-websocket-protocol"?: string | string[] | undefined;
144
- "sec-websocket-version"?: string | undefined;
145
- server?: string | undefined;
146
- "set-cookie"?: string | string[] | undefined;
147
- "strict-transport-security"?: string | undefined;
148
- te?: string | undefined;
149
- trailer?: string | undefined;
150
- "transfer-encoding"?: string | undefined;
151
- "user-agent"?: string | undefined;
152
- upgrade?: string | undefined;
153
- "upgrade-insecure-requests"?: string | undefined;
154
- vary?: string | undefined;
155
- via?: string | string[] | undefined;
156
- warning?: string | undefined;
157
- "www-authenticate"?: string | string[] | undefined;
158
- "x-content-type-options"?: string | undefined;
159
- "x-dns-prefetch-control"?: string | undefined;
160
- "x-frame-options"?: string | undefined;
161
- "x-xss-protection"?: string | undefined;
162
- }
163
- interface ClientRequestArgs extends Pick<LookupOptions, "hints"> {
164
- _defaultAgent?: Agent | undefined;
165
- agent?: Agent | boolean | undefined;
166
- auth?: string | null | undefined;
167
- createConnection?:
168
- | ((
169
- options: ClientRequestArgs,
170
- oncreate: (err: Error | null, socket: stream.Duplex) => void,
171
- ) => stream.Duplex | null | undefined)
172
- | undefined;
173
- defaultPort?: number | string | undefined;
174
- family?: number | undefined;
175
- headers?: OutgoingHttpHeaders | readonly string[] | undefined;
176
- host?: string | null | undefined;
177
- hostname?: string | null | undefined;
178
- insecureHTTPParser?: boolean | undefined;
179
- localAddress?: string | undefined;
180
- localPort?: number | undefined;
181
- lookup?: net.LookupFunction | undefined;
182
- /**
183
- * @default 16384
184
- */
185
- maxHeaderSize?: number | undefined;
186
- method?: string | undefined;
187
- path?: string | null | undefined;
188
- port?: number | string | null | undefined;
189
- protocol?: string | null | undefined;
190
- setDefaultHeaders?: boolean | undefined;
191
- setHost?: boolean | undefined;
192
- signal?: AbortSignal | undefined;
193
- socketPath?: string | undefined;
194
- timeout?: number | undefined;
195
- uniqueHeaders?: Array<string | string[]> | undefined;
196
- joinDuplicateHeaders?: boolean | undefined;
197
- }
198
- interface ServerOptions<
199
- Request extends typeof IncomingMessage = typeof IncomingMessage,
200
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
201
- > {
202
- /**
203
- * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
204
- */
205
- IncomingMessage?: Request | undefined;
206
- /**
207
- * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
208
- */
209
- ServerResponse?: Response | undefined;
210
- /**
211
- * Sets the timeout value in milliseconds for receiving the entire request from the client.
212
- * @see Server.requestTimeout for more information.
213
- * @default 300000
214
- * @since v18.0.0
215
- */
216
- requestTimeout?: number | undefined;
217
- /**
218
- * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.
219
- * @default false
220
- * @since v18.14.0
221
- */
222
- joinDuplicateHeaders?: boolean | undefined;
223
- /**
224
- * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
225
- * after it has finished writing the last response, before a socket will be destroyed.
226
- * @see Server.keepAliveTimeout for more information.
227
- * @default 5000
228
- * @since v18.0.0
229
- */
230
- keepAliveTimeout?: number | undefined;
231
- /**
232
- * An additional buffer time added to the
233
- * `server.keepAliveTimeout` to extend the internal socket timeout.
234
- * @since 24.6.0
235
- * @default 1000
236
- */
237
- keepAliveTimeoutBuffer?: number | undefined;
238
- /**
239
- * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
240
- * @default 30000
241
- */
242
- connectionsCheckingInterval?: number | undefined;
243
- /**
244
- * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client.
245
- * See {@link Server.headersTimeout} for more information.
246
- * @default 60000
247
- * @since 18.0.0
248
- */
249
- headersTimeout?: number | undefined;
250
- /**
251
- * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
252
- * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
253
- * Default: @see stream.getDefaultHighWaterMark().
254
- * @since v20.1.0
255
- */
256
- highWaterMark?: number | undefined;
257
- /**
258
- * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
259
- * Using the insecure parser should be avoided.
260
- * See --insecure-http-parser for more information.
261
- * @default false
262
- */
263
- insecureHTTPParser?: boolean | undefined;
264
- /**
265
- * Optionally overrides the value of `--max-http-header-size` for requests received by
266
- * this server, i.e. the maximum length of request headers in bytes.
267
- * @default 16384
268
- * @since v13.3.0
269
- */
270
- maxHeaderSize?: number | undefined;
271
- /**
272
- * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
273
- * @default true
274
- * @since v16.5.0
275
- */
276
- noDelay?: boolean | undefined;
277
- /**
278
- * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code
279
- * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification).
280
- * @default true
281
- * @since 20.0.0
282
- */
283
- requireHostHeader?: boolean | undefined;
284
- /**
285
- * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
286
- * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
287
- * @default false
288
- * @since v16.5.0
289
- */
290
- keepAlive?: boolean | undefined;
291
- /**
292
- * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
293
- * @default 0
294
- * @since v16.5.0
295
- */
296
- keepAliveInitialDelay?: number | undefined;
297
- /**
298
- * A list of response headers that should be sent only once.
299
- * If the header's value is an array, the items will be joined using `; `.
300
- */
301
- uniqueHeaders?: Array<string | string[]> | undefined;
302
- /**
303
- * A callback which receives an
304
- * incoming request and returns a boolean, to control which upgrade attempts
305
- * should be accepted. Accepted upgrades will fire an `'upgrade'` event (or
306
- * their sockets will be destroyed, if no listener is registered) while
307
- * rejected upgrades will fire a `'request'` event like any non-upgrade
308
- * request.
309
- * @since v24.9.0
310
- * @default () => server.listenerCount('upgrade') > 0
311
- */
312
- shouldUpgradeCallback?: ((request: InstanceType<Request>) => boolean) | undefined;
313
- /**
314
- * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body.
315
- * @default false
316
- * @since v18.17.0, v20.2.0
317
- */
318
- rejectNonStandardBodyWrites?: boolean | undefined;
319
- /**
320
- * If set to `true`, requests without `Content-Length`
321
- * or `Transfer-Encoding` headers (indicating no body) will be initialized with an
322
- * already-ended body stream, so they will never emit any stream events
323
- * (like `'data'` or `'end'`). You can use `req.readableEnded` to detect this case.
324
- * @since v25.1.0
325
- * @default false
326
- */
327
- optimizeEmptyRequests?: boolean | undefined;
328
- }
329
- type RequestListener<
330
- Request extends typeof IncomingMessage = typeof IncomingMessage,
331
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
332
- > = (request: InstanceType<Request>, response: InstanceType<Response> & { req: InstanceType<Request> }) => void;
333
- interface ServerEventMap<
334
- Request extends typeof IncomingMessage = typeof IncomingMessage,
335
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
336
- > extends net.ServerEventMap {
337
- "checkContinue": Parameters<RequestListener<Request, Response>>;
338
- "checkExpectation": Parameters<RequestListener<Request, Response>>;
339
- "clientError": [exception: Error, socket: stream.Duplex];
340
- "connect": [request: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer];
341
- "connection": [socket: net.Socket];
342
- "dropRequest": [request: InstanceType<Request>, socket: stream.Duplex];
343
- "request": Parameters<RequestListener<Request, Response>>;
344
- "upgrade": [req: InstanceType<Request>, stream: stream.Duplex, head: NonSharedBuffer];
345
- }
346
- /**
347
- * @since v0.1.17
348
- */
349
- class Server<
350
- Request extends typeof IncomingMessage = typeof IncomingMessage,
351
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
352
- > extends net.Server {
353
- constructor(requestListener?: RequestListener<Request, Response>);
354
- constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
355
- /**
356
- * Sets the timeout value for sockets, and emits a `'timeout'` event on
357
- * the Server object, passing the socket as an argument, if a timeout
358
- * occurs.
359
- *
360
- * If there is a `'timeout'` event listener on the Server object, then it
361
- * will be called with the timed-out socket as an argument.
362
- *
363
- * By default, the Server does not timeout sockets. However, if a callback
364
- * is assigned to the Server's `'timeout'` event, timeouts must be handled
365
- * explicitly.
366
- * @since v0.9.12
367
- * @param [msecs=0 (no timeout)]
368
- */
369
- setTimeout(msecs?: number, callback?: (socket: net.Socket) => void): this;
370
- setTimeout(callback: (socket: net.Socket) => void): this;
371
- /**
372
- * Limits maximum incoming headers count. If set to 0, no limit will be applied.
373
- * @since v0.7.0
374
- */
375
- maxHeadersCount: number | null;
376
- /**
377
- * The maximum number of requests socket can handle
378
- * before closing keep alive connection.
379
- *
380
- * A value of `0` will disable the limit.
381
- *
382
- * When the limit is reached it will set the `Connection` header value to `close`,
383
- * but will not actually close the connection, subsequent requests sent
384
- * after the limit is reached will get `503 Service Unavailable` as a response.
385
- * @since v16.10.0
386
- */
387
- maxRequestsPerSocket: number | null;
388
- /**
389
- * The number of milliseconds of inactivity before a socket is presumed
390
- * to have timed out.
391
- *
392
- * A value of `0` will disable the timeout behavior on incoming connections.
393
- *
394
- * The socket timeout logic is set up on connection, so changing this
395
- * value only affects new connections to the server, not any existing connections.
396
- * @since v0.9.12
397
- */
398
- timeout: number;
399
- /**
400
- * Limit the amount of time the parser will wait to receive the complete HTTP
401
- * headers.
402
- *
403
- * If the timeout expires, the server responds with status 408 without
404
- * forwarding the request to the request listener and then closes the connection.
405
- *
406
- * It must be set to a non-zero value (e.g. 120 seconds) to protect against
407
- * potential Denial-of-Service attacks in case the server is deployed without a
408
- * reverse proxy in front.
409
- * @since v11.3.0, v10.14.0
410
- */
411
- headersTimeout: number;
412
- /**
413
- * The number of milliseconds of inactivity a server needs to wait for additional
414
- * incoming data, after it has finished writing the last response, before a socket
415
- * will be destroyed.
416
- *
417
- * This timeout value is combined with the
418
- * `server.keepAliveTimeoutBuffer` option to determine the actual socket
419
- * timeout, calculated as:
420
- * socketTimeout = keepAliveTimeout + keepAliveTimeoutBuffer
421
- * If the server receives new data before the keep-alive timeout has fired, it
422
- * will reset the regular inactivity timeout, i.e., `server.timeout`.
423
- *
424
- * A value of `0` will disable the keep-alive timeout behavior on incoming
425
- * connections.
426
- * A value of `0` makes the HTTP server behave similarly to Node.js versions prior
427
- * to 8.0.0, which did not have a keep-alive timeout.
428
- *
429
- * The socket timeout logic is set up on connection, so changing this value only
430
- * affects new connections to the server, not any existing connections.
431
- * @since v8.0.0
432
- */
433
- keepAliveTimeout: number;
434
- /**
435
- * An additional buffer time added to the
436
- * `server.keepAliveTimeout` to extend the internal socket timeout.
437
- *
438
- * This buffer helps reduce connection reset (`ECONNRESET`) errors by increasing
439
- * the socket timeout slightly beyond the advertised keep-alive timeout.
440
- *
441
- * This option applies only to new incoming connections.
442
- * @since v24.6.0
443
- * @default 1000
444
- */
445
- keepAliveTimeoutBuffer: number;
446
- /**
447
- * Sets the timeout value in milliseconds for receiving the entire request from
448
- * the client.
449
- *
450
- * If the timeout expires, the server responds with status 408 without
451
- * forwarding the request to the request listener and then closes the connection.
452
- *
453
- * It must be set to a non-zero value (e.g. 120 seconds) to protect against
454
- * potential Denial-of-Service attacks in case the server is deployed without a
455
- * reverse proxy in front.
456
- * @since v14.11.0
457
- */
458
- requestTimeout: number;
459
- /**
460
- * Closes all connections connected to this server.
461
- * @since v18.2.0
462
- */
463
- closeAllConnections(): void;
464
- /**
465
- * Closes all connections connected to this server which are not sending a request
466
- * or waiting for a response.
467
- * @since v18.2.0
468
- */
469
- closeIdleConnections(): void;
470
- // #region InternalEventEmitter
471
- addListener<E extends keyof ServerEventMap>(
472
- eventName: E,
473
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
474
- ): this;
475
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
476
- emit<E extends keyof ServerEventMap>(eventName: E, ...args: ServerEventMap<Request, Response>[E]): boolean;
477
- emit(eventName: string | symbol, ...args: any[]): boolean;
478
- listenerCount<E extends keyof ServerEventMap>(
479
- eventName: E,
480
- listener?: (...args: ServerEventMap<Request, Response>[E]) => void,
481
- ): number;
482
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
483
- listeners<E extends keyof ServerEventMap>(
484
- eventName: E,
485
- ): ((...args: ServerEventMap<Request, Response>[E]) => void)[];
486
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
487
- off<E extends keyof ServerEventMap>(
488
- eventName: E,
489
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
490
- ): this;
491
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
492
- on<E extends keyof ServerEventMap>(
493
- eventName: E,
494
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
495
- ): this;
496
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
497
- once<E extends keyof ServerEventMap>(
498
- eventName: E,
499
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
500
- ): this;
501
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
502
- prependListener<E extends keyof ServerEventMap>(
503
- eventName: E,
504
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
505
- ): this;
506
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
507
- prependOnceListener<E extends keyof ServerEventMap>(
508
- eventName: E,
509
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
510
- ): this;
511
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
512
- rawListeners<E extends keyof ServerEventMap>(
513
- eventName: E,
514
- ): ((...args: ServerEventMap<Request, Response>[E]) => void)[];
515
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
516
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
517
- removeAllListeners<E extends keyof ServerEventMap>(eventName?: E): this;
518
- removeAllListeners(eventName?: string | symbol): this;
519
- removeListener<E extends keyof ServerEventMap>(
520
- eventName: E,
521
- listener: (...args: ServerEventMap<Request, Response>[E]) => void,
522
- ): this;
523
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
524
- // #endregion
525
- }
526
- interface OutgoingMessageEventMap extends stream.WritableEventMap {
527
- "prefinish": [];
528
- }
529
- /**
530
- * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from
531
- * the perspective of the participants of an HTTP transaction.
532
- * @since v0.1.17
533
- */
534
- class OutgoingMessage<Request extends IncomingMessage = IncomingMessage> extends stream.Writable {
535
- constructor();
536
- readonly req: Request;
537
- chunkedEncoding: boolean;
538
- shouldKeepAlive: boolean;
539
- useChunkedEncodingByDefault: boolean;
540
- sendDate: boolean;
541
- /**
542
- * @deprecated Use `writableEnded` instead.
543
- */
544
- finished: boolean;
545
- /**
546
- * Read-only. `true` if the headers were sent, otherwise `false`.
547
- * @since v0.9.3
548
- */
549
- readonly headersSent: boolean;
550
- /**
551
- * Alias of `outgoingMessage.socket`.
552
- * @since v0.3.0
553
- * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead.
554
- */
555
- readonly connection: net.Socket | null;
556
- /**
557
- * Reference to the underlying socket. Usually, users will not want to access
558
- * this property.
559
- *
560
- * After calling `outgoingMessage.end()`, this property will be nulled.
561
- * @since v0.3.0
562
- */
563
- readonly socket: net.Socket | null;
564
- /**
565
- * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter.
566
- * @since v0.9.12
567
- * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
568
- */
569
- setTimeout(msecs: number, callback?: () => void): this;
570
- /**
571
- * Sets a single header value. If the header already exists in the to-be-sent
572
- * headers, its value will be replaced. Use an array of strings to send multiple
573
- * headers with the same name.
574
- * @since v0.4.0
575
- * @param name Header name
576
- * @param value Header value
577
- */
578
- setHeader(name: string, value: number | string | readonly string[]): this;
579
- /**
580
- * Sets multiple header values for implicit headers. headers must be an instance of
581
- * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its
582
- * value will be replaced.
583
- *
584
- * ```js
585
- * const headers = new Headers({ foo: 'bar' });
586
- * outgoingMessage.setHeaders(headers);
587
- * ```
588
- *
589
- * or
590
- *
591
- * ```js
592
- * const headers = new Map([['foo', 'bar']]);
593
- * outgoingMessage.setHeaders(headers);
594
- * ```
595
- *
596
- * When headers have been set with `outgoingMessage.setHeaders()`, they will be
597
- * merged with any headers passed to `response.writeHead()`, with the headers passed
598
- * to `response.writeHead()` given precedence.
599
- *
600
- * ```js
601
- * // Returns content-type = text/plain
602
- * const server = http.createServer((req, res) => {
603
- * const headers = new Headers({ 'Content-Type': 'text/html' });
604
- * res.setHeaders(headers);
605
- * res.writeHead(200, { 'Content-Type': 'text/plain' });
606
- * res.end('ok');
607
- * });
608
- * ```
609
- *
610
- * @since v19.6.0, v18.15.0
611
- * @param name Header name
612
- * @param value Header value
613
- */
614
- setHeaders(headers: Headers | Map<string, number | string | readonly string[]>): this;
615
- /**
616
- * Append a single header value to the header object.
617
- *
618
- * If the value is an array, this is equivalent to calling this method multiple
619
- * times.
620
- *
621
- * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`.
622
- *
623
- * Depending of the value of `options.uniqueHeaders` when the client request or the
624
- * server were created, this will end up in the header being sent multiple times or
625
- * a single time with values joined using `; `.
626
- * @since v18.3.0, v16.17.0
627
- * @param name Header name
628
- * @param value Header value
629
- */
630
- appendHeader(name: string, value: string | readonly string[]): this;
631
- /**
632
- * Gets the value of the HTTP header with the given name. If that header is not
633
- * set, the returned value will be `undefined`.
634
- * @since v0.4.0
635
- * @param name Name of header
636
- */
637
- getHeader(name: string): number | string | string[] | undefined;
638
- /**
639
- * Returns a shallow copy of the current outgoing headers. Since a shallow
640
- * copy is used, array values may be mutated without additional calls to
641
- * various header-related HTTP module methods. The keys of the returned
642
- * object are the header names and the values are the respective header
643
- * values. All header names are lowercase.
644
- *
645
- * The object returned by the `outgoingMessage.getHeaders()` method does
646
- * not prototypically inherit from the JavaScript `Object`. This means that
647
- * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
648
- * and others are not defined and will not work.
649
- *
650
- * ```js
651
- * outgoingMessage.setHeader('Foo', 'bar');
652
- * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
653
- *
654
- * const headers = outgoingMessage.getHeaders();
655
- * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
656
- * ```
657
- * @since v7.7.0
658
- */
659
- getHeaders(): OutgoingHttpHeaders;
660
- /**
661
- * Returns an array containing the unique names of the current outgoing headers.
662
- * All names are lowercase.
663
- * @since v7.7.0
664
- */
665
- getHeaderNames(): string[];
666
- /**
667
- * Returns `true` if the header identified by `name` is currently set in the
668
- * outgoing headers. The header name is case-insensitive.
669
- *
670
- * ```js
671
- * const hasContentType = outgoingMessage.hasHeader('content-type');
672
- * ```
673
- * @since v7.7.0
674
- */
675
- hasHeader(name: string): boolean;
676
- /**
677
- * Removes a header that is queued for implicit sending.
678
- *
679
- * ```js
680
- * outgoingMessage.removeHeader('Content-Encoding');
681
- * ```
682
- * @since v0.4.0
683
- * @param name Header name
684
- */
685
- removeHeader(name: string): void;
686
- /**
687
- * Adds HTTP trailers (headers but at the end of the message) to the message.
688
- *
689
- * Trailers will **only** be emitted if the message is chunked encoded. If not,
690
- * the trailers will be silently discarded.
691
- *
692
- * HTTP requires the `Trailer` header to be sent to emit trailers,
693
- * with a list of header field names in its value, e.g.
694
- *
695
- * ```js
696
- * message.writeHead(200, { 'Content-Type': 'text/plain',
697
- * 'Trailer': 'Content-MD5' });
698
- * message.write(fileData);
699
- * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' });
700
- * message.end();
701
- * ```
702
- *
703
- * Attempting to set a header field name or value that contains invalid characters
704
- * will result in a `TypeError` being thrown.
705
- * @since v0.3.0
706
- */
707
- addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
708
- /**
709
- * Flushes the message headers.
710
- *
711
- * For efficiency reason, Node.js normally buffers the message headers
712
- * until `outgoingMessage.end()` is called or the first chunk of message data
713
- * is written. It then tries to pack the headers and data into a single TCP
714
- * packet.
715
- *
716
- * It is usually desired (it saves a TCP round-trip), but not when the first
717
- * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message.
718
- * @since v1.6.0
719
- */
720
- flushHeaders(): void;
721
- // #region InternalEventEmitter
722
- addListener<E extends keyof OutgoingMessageEventMap>(
723
- eventName: E,
724
- listener: (...args: OutgoingMessageEventMap[E]) => void,
725
- ): this;
726
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
727
- emit<E extends keyof OutgoingMessageEventMap>(eventName: E, ...args: OutgoingMessageEventMap[E]): boolean;
728
- emit(eventName: string | symbol, ...args: any[]): boolean;
729
- listenerCount<E extends keyof OutgoingMessageEventMap>(
730
- eventName: E,
731
- listener?: (...args: OutgoingMessageEventMap[E]) => void,
732
- ): number;
733
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
734
- listeners<E extends keyof OutgoingMessageEventMap>(
735
- eventName: E,
736
- ): ((...args: OutgoingMessageEventMap[E]) => void)[];
737
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
738
- off<E extends keyof OutgoingMessageEventMap>(
739
- eventName: E,
740
- listener: (...args: OutgoingMessageEventMap[E]) => void,
741
- ): this;
742
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
743
- on<E extends keyof OutgoingMessageEventMap>(
744
- eventName: E,
745
- listener: (...args: OutgoingMessageEventMap[E]) => void,
746
- ): this;
747
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
748
- once<E extends keyof OutgoingMessageEventMap>(
749
- eventName: E,
750
- listener: (...args: OutgoingMessageEventMap[E]) => void,
751
- ): this;
752
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
753
- prependListener<E extends keyof OutgoingMessageEventMap>(
754
- eventName: E,
755
- listener: (...args: OutgoingMessageEventMap[E]) => void,
756
- ): this;
757
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
758
- prependOnceListener<E extends keyof OutgoingMessageEventMap>(
759
- eventName: E,
760
- listener: (...args: OutgoingMessageEventMap[E]) => void,
761
- ): this;
762
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
763
- rawListeners<E extends keyof OutgoingMessageEventMap>(
764
- eventName: E,
765
- ): ((...args: OutgoingMessageEventMap[E]) => void)[];
766
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
767
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
768
- removeAllListeners<E extends keyof OutgoingMessageEventMap>(eventName?: E): this;
769
- removeAllListeners(eventName?: string | symbol): this;
770
- removeListener<E extends keyof OutgoingMessageEventMap>(
771
- eventName: E,
772
- listener: (...args: OutgoingMessageEventMap[E]) => void,
773
- ): this;
774
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
775
- // #endregion
776
- }
777
- /**
778
- * This object is created internally by an HTTP server, not by the user. It is
779
- * passed as the second parameter to the `'request'` event.
780
- * @since v0.1.17
781
- */
782
- class ServerResponse<Request extends IncomingMessage = IncomingMessage> extends OutgoingMessage<Request> {
783
- /**
784
- * When using implicit headers (not calling `response.writeHead()` explicitly),
785
- * this property controls the status code that will be sent to the client when
786
- * the headers get flushed.
787
- *
788
- * ```js
789
- * response.statusCode = 404;
790
- * ```
791
- *
792
- * After response header was sent to the client, this property indicates the
793
- * status code which was sent out.
794
- * @since v0.4.0
795
- */
796
- statusCode: number;
797
- /**
798
- * When using implicit headers (not calling `response.writeHead()` explicitly),
799
- * this property controls the status message that will be sent to the client when
800
- * the headers get flushed. If this is left as `undefined` then the standard
801
- * message for the status code will be used.
802
- *
803
- * ```js
804
- * response.statusMessage = 'Not found';
805
- * ```
806
- *
807
- * After response header was sent to the client, this property indicates the
808
- * status message which was sent out.
809
- * @since v0.11.8
810
- */
811
- statusMessage: string;
812
- /**
813
- * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal.
814
- * Mismatching the `Content-Length` header value will result
815
- * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
816
- * @since v18.10.0, v16.18.0
817
- */
818
- strictContentLength: boolean;
819
- constructor(req: Request);
820
- assignSocket(socket: net.Socket): void;
821
- detachSocket(socket: net.Socket): void;
822
- /**
823
- * Sends an HTTP/1.1 100 Continue message to the client, indicating that
824
- * the request body should be sent. See the `'checkContinue'` event on `Server`.
825
- * @since v0.3.0
826
- */
827
- writeContinue(callback?: () => void): void;
828
- /**
829
- * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header,
830
- * indicating that the user agent can preload/preconnect the linked resources.
831
- * The `hints` is an object containing the values of headers to be sent with
832
- * early hints message. The optional `callback` argument will be called when
833
- * the response message has been written.
834
- *
835
- * **Example**
836
- *
837
- * ```js
838
- * const earlyHintsLink = '</styles.css>; rel=preload; as=style';
839
- * response.writeEarlyHints({
840
- * 'link': earlyHintsLink,
841
- * });
842
- *
843
- * const earlyHintsLinks = [
844
- * '</styles.css>; rel=preload; as=style',
845
- * '</scripts.js>; rel=preload; as=script',
846
- * ];
847
- * response.writeEarlyHints({
848
- * 'link': earlyHintsLinks,
849
- * 'x-trace-id': 'id for diagnostics',
850
- * });
851
- *
852
- * const earlyHintsCallback = () => console.log('early hints message sent');
853
- * response.writeEarlyHints({
854
- * 'link': earlyHintsLinks,
855
- * }, earlyHintsCallback);
856
- * ```
857
- * @since v18.11.0
858
- * @param hints An object containing the values of headers
859
- * @param callback Will be called when the response message has been written
860
- */
861
- writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
862
- /**
863
- * Sends a response header to the request. The status code is a 3-digit HTTP
864
- * status code, like `404`. The last argument, `headers`, are the response headers.
865
- * Optionally one can give a human-readable `statusMessage` as the second
866
- * argument.
867
- *
868
- * `headers` may be an `Array` where the keys and values are in the same list.
869
- * It is _not_ a list of tuples. So, the even-numbered offsets are key values,
870
- * and the odd-numbered offsets are the associated values. The array is in the same
871
- * format as `request.rawHeaders`.
872
- *
873
- * Returns a reference to the `ServerResponse`, so that calls can be chained.
874
- *
875
- * ```js
876
- * const body = 'hello world';
877
- * response
878
- * .writeHead(200, {
879
- * 'Content-Length': Buffer.byteLength(body),
880
- * 'Content-Type': 'text/plain',
881
- * })
882
- * .end(body);
883
- * ```
884
- *
885
- * This method must only be called once on a message and it must
886
- * be called before `response.end()` is called.
887
- *
888
- * If `response.write()` or `response.end()` are called before calling
889
- * this, the implicit/mutable headers will be calculated and call this function.
890
- *
891
- * When headers have been set with `response.setHeader()`, they will be merged
892
- * with any headers passed to `response.writeHead()`, with the headers passed
893
- * to `response.writeHead()` given precedence.
894
- *
895
- * If this method is called and `response.setHeader()` has not been called,
896
- * it will directly write the supplied header values onto the network channel
897
- * without caching internally, and the `response.getHeader()` on the header
898
- * will not yield the expected result. If progressive population of headers is
899
- * desired with potential future retrieval and modification, use `response.setHeader()` instead.
900
- *
901
- * ```js
902
- * // Returns content-type = text/plain
903
- * const server = http.createServer((req, res) => {
904
- * res.setHeader('Content-Type', 'text/html');
905
- * res.setHeader('X-Foo', 'bar');
906
- * res.writeHead(200, { 'Content-Type': 'text/plain' });
907
- * res.end('ok');
908
- * });
909
- * ```
910
- *
911
- * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js
912
- * will check whether `Content-Length` and the length of the body which has
913
- * been transmitted are equal or not.
914
- *
915
- * Attempting to set a header field name or value that contains invalid characters
916
- * will result in a `Error` being thrown.
917
- * @since v0.1.30
918
- */
919
- writeHead(
920
- statusCode: number,
921
- statusMessage?: string,
922
- headers?: OutgoingHttpHeaders | OutgoingHttpHeader[],
923
- ): this;
924
- writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
925
- /**
926
- * Sends a HTTP/1.1 102 Processing message to the client, indicating that
927
- * the request body should be sent.
928
- * @since v10.0.0
929
- */
930
- writeProcessing(callback?: () => void): void;
931
- }
932
- interface InformationEvent {
933
- httpVersion: string;
934
- httpVersionMajor: number;
935
- httpVersionMinor: number;
936
- statusCode: number;
937
- statusMessage: string;
938
- headers: IncomingHttpHeaders;
939
- rawHeaders: string[];
940
- }
941
- interface ClientRequestEventMap extends stream.WritableEventMap {
942
- /** @deprecated Listen for the `'close'` event instead. */
943
- "abort": [];
944
- "connect": [response: IncomingMessage, socket: net.Socket, head: NonSharedBuffer];
945
- "continue": [];
946
- "information": [info: InformationEvent];
947
- "response": [response: IncomingMessage];
948
- "socket": [socket: net.Socket];
949
- "timeout": [];
950
- "upgrade": [response: IncomingMessage, stream: net.Socket, head: NonSharedBuffer];
951
- }
952
- /**
953
- * This object is created internally and returned from {@link request}. It
954
- * represents an _in-progress_ request whose header has already been queued. The
955
- * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
956
- * be sent along with the first data chunk or when calling `request.end()`.
957
- *
958
- * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response
959
- * headers have been received. The `'response'` event is executed with one
960
- * argument which is an instance of {@link IncomingMessage}.
961
- *
962
- * During the `'response'` event, one can add listeners to the
963
- * response object; particularly to listen for the `'data'` event.
964
- *
965
- * If no `'response'` handler is added, then the response will be
966
- * entirely discarded. However, if a `'response'` event handler is added,
967
- * then the data from the response object **must** be consumed, either by
968
- * calling `response.read()` whenever there is a `'readable'` event, or
969
- * by adding a `'data'` handler, or by calling the `.resume()` method.
970
- * Until the data is consumed, the `'end'` event will not fire. Also, until
971
- * the data is read it will consume memory that can eventually lead to a
972
- * 'process out of memory' error.
973
- *
974
- * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered.
975
- *
976
- * Set `Content-Length` header to limit the response body size.
977
- * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown,
978
- * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
979
- *
980
- * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes.
981
- * @since v0.1.17
982
- */
983
- class ClientRequest extends OutgoingMessage {
984
- /**
985
- * The `request.aborted` property will be `true` if the request has
986
- * been aborted.
987
- * @since v0.11.14
988
- * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead.
989
- */
990
- aborted: boolean;
991
- /**
992
- * The request host.
993
- * @since v14.5.0, v12.19.0
994
- */
995
- host: string;
996
- /**
997
- * The request protocol.
998
- * @since v14.5.0, v12.19.0
999
- */
1000
- protocol: string;
1001
- /**
1002
- * When sending request through a keep-alive enabled agent, the underlying socket
1003
- * might be reused. But if server closes connection at unfortunate time, client
1004
- * may run into a 'ECONNRESET' error.
1005
- *
1006
- * ```js
1007
- * import http from 'node:http';
1008
- * const agent = new http.Agent({ keepAlive: true });
1009
- *
1010
- * // Server has a 5 seconds keep-alive timeout by default
1011
- * http
1012
- * .createServer((req, res) => {
1013
- * res.write('hello\n');
1014
- * res.end();
1015
- * })
1016
- * .listen(3000);
1017
- *
1018
- * setInterval(() => {
1019
- * // Adapting a keep-alive agent
1020
- * http.get('http://localhost:3000', { agent }, (res) => {
1021
- * res.on('data', (data) => {
1022
- * // Do nothing
1023
- * });
1024
- * });
1025
- * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout
1026
- * ```
1027
- *
1028
- * By marking a request whether it reused socket or not, we can do
1029
- * automatic error retry base on it.
1030
- *
1031
- * ```js
1032
- * import http from 'node:http';
1033
- * const agent = new http.Agent({ keepAlive: true });
1034
- *
1035
- * function retriableRequest() {
1036
- * const req = http
1037
- * .get('http://localhost:3000', { agent }, (res) => {
1038
- * // ...
1039
- * })
1040
- * .on('error', (err) => {
1041
- * // Check if retry is needed
1042
- * if (req.reusedSocket &#x26;&#x26; err.code === 'ECONNRESET') {
1043
- * retriableRequest();
1044
- * }
1045
- * });
1046
- * }
1047
- *
1048
- * retriableRequest();
1049
- * ```
1050
- * @since v13.0.0, v12.16.0
1051
- */
1052
- reusedSocket: boolean;
1053
- /**
1054
- * Limits maximum response headers count. If set to 0, no limit will be applied.
1055
- */
1056
- maxHeadersCount: number;
1057
- constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
1058
- /**
1059
- * The request method.
1060
- * @since v0.1.97
1061
- */
1062
- method: string;
1063
- /**
1064
- * The request path.
1065
- * @since v0.4.0
1066
- */
1067
- path: string;
1068
- /**
1069
- * Marks the request as aborting. Calling this will cause remaining data
1070
- * in the response to be dropped and the socket to be destroyed.
1071
- * @since v0.3.8
1072
- * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead.
1073
- */
1074
- abort(): void;
1075
- onSocket(socket: net.Socket): void;
1076
- /**
1077
- * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called.
1078
- * @since v0.5.9
1079
- * @param timeout Milliseconds before a request times out.
1080
- * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event.
1081
- */
1082
- setTimeout(timeout: number, callback?: () => void): this;
1083
- /**
1084
- * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called.
1085
- * @since v0.5.9
1086
- */
1087
- setNoDelay(noDelay?: boolean): void;
1088
- /**
1089
- * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called.
1090
- * @since v0.5.9
1091
- */
1092
- setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
1093
- /**
1094
- * Returns an array containing the unique names of the current outgoing raw
1095
- * headers. Header names are returned with their exact casing being set.
1096
- *
1097
- * ```js
1098
- * request.setHeader('Foo', 'bar');
1099
- * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
1100
- *
1101
- * const headerNames = request.getRawHeaderNames();
1102
- * // headerNames === ['Foo', 'Set-Cookie']
1103
- * ```
1104
- * @since v15.13.0, v14.17.0
1105
- */
1106
- getRawHeaderNames(): string[];
1107
- // #region InternalEventEmitter
1108
- addListener<E extends keyof ClientRequestEventMap>(
1109
- eventName: E,
1110
- listener: (...args: ClientRequestEventMap[E]) => void,
1111
- ): this;
1112
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1113
- emit<E extends keyof ClientRequestEventMap>(eventName: E, ...args: ClientRequestEventMap[E]): boolean;
1114
- emit(eventName: string | symbol, ...args: any[]): boolean;
1115
- listenerCount<E extends keyof ClientRequestEventMap>(
1116
- eventName: E,
1117
- listener?: (...args: ClientRequestEventMap[E]) => void,
1118
- ): number;
1119
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
1120
- listeners<E extends keyof ClientRequestEventMap>(eventName: E): ((...args: ClientRequestEventMap[E]) => void)[];
1121
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
1122
- off<E extends keyof ClientRequestEventMap>(
1123
- eventName: E,
1124
- listener: (...args: ClientRequestEventMap[E]) => void,
1125
- ): this;
1126
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
1127
- on<E extends keyof ClientRequestEventMap>(
1128
- eventName: E,
1129
- listener: (...args: ClientRequestEventMap[E]) => void,
1130
- ): this;
1131
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
1132
- once<E extends keyof ClientRequestEventMap>(
1133
- eventName: E,
1134
- listener: (...args: ClientRequestEventMap[E]) => void,
1135
- ): this;
1136
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
1137
- prependListener<E extends keyof ClientRequestEventMap>(
1138
- eventName: E,
1139
- listener: (...args: ClientRequestEventMap[E]) => void,
1140
- ): this;
1141
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1142
- prependOnceListener<E extends keyof ClientRequestEventMap>(
1143
- eventName: E,
1144
- listener: (...args: ClientRequestEventMap[E]) => void,
1145
- ): this;
1146
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1147
- rawListeners<E extends keyof ClientRequestEventMap>(
1148
- eventName: E,
1149
- ): ((...args: ClientRequestEventMap[E]) => void)[];
1150
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
1151
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
1152
- removeAllListeners<E extends keyof ClientRequestEventMap>(eventName?: E): this;
1153
- removeAllListeners(eventName?: string | symbol): this;
1154
- removeListener<E extends keyof ClientRequestEventMap>(
1155
- eventName: E,
1156
- listener: (...args: ClientRequestEventMap[E]) => void,
1157
- ): this;
1158
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1159
- // #endregion
1160
- }
1161
- interface IncomingMessageEventMap extends stream.ReadableEventMap {
1162
- /** @deprecated Listen for `'close'` event instead. */
1163
- "aborted": [];
1164
- }
1165
- /**
1166
- * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to
1167
- * access response
1168
- * status, headers, and data.
1169
- *
1170
- * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to
1171
- * parse and emit the incoming HTTP headers and payload, as the underlying socket
1172
- * may be reused multiple times in case of keep-alive.
1173
- * @since v0.1.17
1174
- */
1175
- class IncomingMessage extends stream.Readable {
1176
- constructor(socket: net.Socket);
1177
- /**
1178
- * The `message.aborted` property will be `true` if the request has
1179
- * been aborted.
1180
- * @since v10.1.0
1181
- * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from <a href="stream.html#class-streamreadable" class="type">stream.Readable</a>.
1182
- */
1183
- aborted: boolean;
1184
- /**
1185
- * In case of server request, the HTTP version sent by the client. In the case of
1186
- * client response, the HTTP version of the connected-to server.
1187
- * Probably either `'1.1'` or `'1.0'`.
1188
- *
1189
- * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.
1190
- * @since v0.1.1
1191
- */
1192
- httpVersion: string;
1193
- httpVersionMajor: number;
1194
- httpVersionMinor: number;
1195
- /**
1196
- * The `message.complete` property will be `true` if a complete HTTP message has
1197
- * been received and successfully parsed.
1198
- *
1199
- * This property is particularly useful as a means of determining if a client or
1200
- * server fully transmitted a message before a connection was terminated:
1201
- *
1202
- * ```js
1203
- * const req = http.request({
1204
- * host: '127.0.0.1',
1205
- * port: 8080,
1206
- * method: 'POST',
1207
- * }, (res) => {
1208
- * res.resume();
1209
- * res.on('end', () => {
1210
- * if (!res.complete)
1211
- * console.error(
1212
- * 'The connection was terminated while the message was still being sent');
1213
- * });
1214
- * });
1215
- * ```
1216
- * @since v0.3.0
1217
- */
1218
- complete: boolean;
1219
- /**
1220
- * Alias for `message.socket`.
1221
- * @since v0.1.90
1222
- * @deprecated Since v16.0.0 - Use `socket`.
1223
- */
1224
- connection: net.Socket;
1225
- /**
1226
- * The `net.Socket` object associated with the connection.
1227
- *
1228
- * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
1229
- * client's authentication details.
1230
- *
1231
- * This property is guaranteed to be an instance of the `net.Socket` class,
1232
- * a subclass of `stream.Duplex`, unless the user specified a socket
1233
- * type other than `net.Socket` or internally nulled.
1234
- * @since v0.3.0
1235
- */
1236
- socket: net.Socket;
1237
- /**
1238
- * The request/response headers object.
1239
- *
1240
- * Key-value pairs of header names and values. Header names are lower-cased.
1241
- *
1242
- * ```js
1243
- * // Prints something like:
1244
- * //
1245
- * // { 'user-agent': 'curl/7.22.0',
1246
- * // host: '127.0.0.1:8000',
1247
- * // accept: '*' }
1248
- * console.log(request.headers);
1249
- * ```
1250
- *
1251
- * Duplicates in raw headers are handled in the following ways, depending on the
1252
- * header name:
1253
- *
1254
- * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
1255
- * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
1256
- * To allow duplicate values of the headers listed above to be joined,
1257
- * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more
1258
- * information.
1259
- * * `set-cookie` is always an array. Duplicates are added to the array.
1260
- * * For duplicate `cookie` headers, the values are joined together with `; `.
1261
- * * For all other headers, the values are joined together with `, `.
1262
- * @since v0.1.5
1263
- */
1264
- headers: IncomingHttpHeaders;
1265
- /**
1266
- * Similar to `message.headers`, but there is no join logic and the values are
1267
- * always arrays of strings, even for headers received just once.
1268
- *
1269
- * ```js
1270
- * // Prints something like:
1271
- * //
1272
- * // { 'user-agent': ['curl/7.22.0'],
1273
- * // host: ['127.0.0.1:8000'],
1274
- * // accept: ['*'] }
1275
- * console.log(request.headersDistinct);
1276
- * ```
1277
- * @since v18.3.0, v16.17.0
1278
- */
1279
- headersDistinct: NodeJS.Dict<string[]>;
1280
- /**
1281
- * The raw request/response headers list exactly as they were received.
1282
- *
1283
- * The keys and values are in the same list. It is _not_ a
1284
- * list of tuples. So, the even-numbered offsets are key values, and the
1285
- * odd-numbered offsets are the associated values.
1286
- *
1287
- * Header names are not lowercased, and duplicates are not merged.
1288
- *
1289
- * ```js
1290
- * // Prints something like:
1291
- * //
1292
- * // [ 'user-agent',
1293
- * // 'this is invalid because there can be only one',
1294
- * // 'User-Agent',
1295
- * // 'curl/7.22.0',
1296
- * // 'Host',
1297
- * // '127.0.0.1:8000',
1298
- * // 'ACCEPT',
1299
- * // '*' ]
1300
- * console.log(request.rawHeaders);
1301
- * ```
1302
- * @since v0.11.6
1303
- */
1304
- rawHeaders: string[];
1305
- /**
1306
- * The request/response trailers object. Only populated at the `'end'` event.
1307
- * @since v0.3.0
1308
- */
1309
- trailers: NodeJS.Dict<string>;
1310
- /**
1311
- * Similar to `message.trailers`, but there is no join logic and the values are
1312
- * always arrays of strings, even for headers received just once.
1313
- * Only populated at the `'end'` event.
1314
- * @since v18.3.0, v16.17.0
1315
- */
1316
- trailersDistinct: NodeJS.Dict<string[]>;
1317
- /**
1318
- * The raw request/response trailer keys and values exactly as they were
1319
- * received. Only populated at the `'end'` event.
1320
- * @since v0.11.6
1321
- */
1322
- rawTrailers: string[];
1323
- /**
1324
- * Calls `message.socket.setTimeout(msecs, callback)`.
1325
- * @since v0.5.9
1326
- */
1327
- setTimeout(msecs: number, callback?: () => void): this;
1328
- /**
1329
- * An `AbortSignal` that is aborted when the underlying socket closes or the
1330
- * request is destroyed. The signal is created lazily on first access — no
1331
- * `AbortController` is allocated for requests that never use this property.
1332
- *
1333
- * This is useful for cancelling downstream asynchronous work such as database
1334
- * queries or `fetch` calls when a client disconnects mid-request.
1335
- *
1336
- * ```js
1337
- * import http from 'node:http';
1338
- *
1339
- * http.createServer(async (req, res) => {
1340
- * try {
1341
- * const data = await fetch('https://example.com/api', { signal: req.signal });
1342
- * res.end(JSON.stringify(await data.json()));
1343
- * } catch (err) {
1344
- * if (err.name === 'AbortError') return;
1345
- * res.statusCode = 500;
1346
- * res.end('Internal Server Error');
1347
- * }
1348
- * }).listen(3000);
1349
- * ```
1350
- * @since v26.1.0
1351
- */
1352
- readonly signal: AbortSignal;
1353
- /**
1354
- * **Only valid for request obtained from {@link Server}.**
1355
- *
1356
- * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`.
1357
- * @since v0.1.1
1358
- */
1359
- method?: string | undefined;
1360
- /**
1361
- * **Only valid for request obtained from {@link Server}.**
1362
- *
1363
- * Request URL string. This contains only the URL that is present in the actual
1364
- * HTTP request. Take the following request:
1365
- *
1366
- * ```http
1367
- * GET /status?name=ryan HTTP/1.1
1368
- * Accept: text/plain
1369
- * ```
1370
- *
1371
- * To parse the URL into its parts:
1372
- *
1373
- * ```js
1374
- * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
1375
- * ```
1376
- *
1377
- * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined:
1378
- *
1379
- * ```console
1380
- * $ node
1381
- * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
1382
- * URL {
1383
- * href: 'http://localhost/status?name=ryan',
1384
- * origin: 'http://localhost',
1385
- * protocol: 'http:',
1386
- * username: '',
1387
- * password: '',
1388
- * host: 'localhost',
1389
- * hostname: 'localhost',
1390
- * port: '',
1391
- * pathname: '/status',
1392
- * search: '?name=ryan',
1393
- * searchParams: URLSearchParams { 'name' => 'ryan' },
1394
- * hash: ''
1395
- * }
1396
- * ```
1397
- *
1398
- * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper
1399
- * validation is used, as clients may specify a custom `Host` header.
1400
- * @since v0.1.90
1401
- */
1402
- url?: string | undefined;
1403
- /**
1404
- * **Only valid for response obtained from {@link ClientRequest}.**
1405
- *
1406
- * The 3-digit HTTP response status code. E.G. `404`.
1407
- * @since v0.1.1
1408
- */
1409
- statusCode?: number | undefined;
1410
- /**
1411
- * **Only valid for response obtained from {@link ClientRequest}.**
1412
- *
1413
- * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`.
1414
- * @since v0.11.10
1415
- */
1416
- statusMessage?: string | undefined;
1417
- /**
1418
- * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed
1419
- * as an argument to any listeners on the event.
1420
- * @since v0.3.0
1421
- */
1422
- destroy(error?: Error): this;
1423
- // #region InternalEventEmitter
1424
- addListener<E extends keyof IncomingMessageEventMap>(
1425
- eventName: E,
1426
- listener: (...args: IncomingMessageEventMap[E]) => void,
1427
- ): this;
1428
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1429
- emit<E extends keyof IncomingMessageEventMap>(eventName: E, ...args: IncomingMessageEventMap[E]): boolean;
1430
- emit(eventName: string | symbol, ...args: any[]): boolean;
1431
- listenerCount<E extends keyof IncomingMessageEventMap>(
1432
- eventName: E,
1433
- listener?: (...args: IncomingMessageEventMap[E]) => void,
1434
- ): number;
1435
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
1436
- listeners<E extends keyof IncomingMessageEventMap>(
1437
- eventName: E,
1438
- ): ((...args: IncomingMessageEventMap[E]) => void)[];
1439
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
1440
- off<E extends keyof IncomingMessageEventMap>(
1441
- eventName: E,
1442
- listener: (...args: IncomingMessageEventMap[E]) => void,
1443
- ): this;
1444
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
1445
- on<E extends keyof IncomingMessageEventMap>(
1446
- eventName: E,
1447
- listener: (...args: IncomingMessageEventMap[E]) => void,
1448
- ): this;
1449
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
1450
- once<E extends keyof IncomingMessageEventMap>(
1451
- eventName: E,
1452
- listener: (...args: IncomingMessageEventMap[E]) => void,
1453
- ): this;
1454
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
1455
- prependListener<E extends keyof IncomingMessageEventMap>(
1456
- eventName: E,
1457
- listener: (...args: IncomingMessageEventMap[E]) => void,
1458
- ): this;
1459
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1460
- prependOnceListener<E extends keyof IncomingMessageEventMap>(
1461
- eventName: E,
1462
- listener: (...args: IncomingMessageEventMap[E]) => void,
1463
- ): this;
1464
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1465
- rawListeners<E extends keyof IncomingMessageEventMap>(
1466
- eventName: E,
1467
- ): ((...args: IncomingMessageEventMap[E]) => void)[];
1468
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
1469
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
1470
- removeAllListeners<E extends keyof IncomingMessageEventMap>(eventName?: E): this;
1471
- removeAllListeners(eventName?: string | symbol): this;
1472
- removeListener<E extends keyof IncomingMessageEventMap>(
1473
- eventName: E,
1474
- listener: (...args: IncomingMessageEventMap[E]) => void,
1475
- ): this;
1476
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1477
- // #endregion
1478
- }
1479
- interface ProxyEnv extends NodeJS.ProcessEnv {
1480
- HTTP_PROXY?: string | undefined;
1481
- HTTPS_PROXY?: string | undefined;
1482
- NO_PROXY?: string | undefined;
1483
- http_proxy?: string | undefined;
1484
- https_proxy?: string | undefined;
1485
- no_proxy?: string | undefined;
1486
- }
1487
- interface AgentOptions extends NodeJS.PartialOptions<net.TcpSocketConnectOpts> {
1488
- /**
1489
- * Keep sockets around in a pool to be used by other requests in the future. Default = false
1490
- */
1491
- keepAlive?: boolean | undefined;
1492
- /**
1493
- * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
1494
- * Only relevant if keepAlive is set to true.
1495
- */
1496
- keepAliveMsecs?: number | undefined;
1497
- /**
1498
- * Milliseconds to subtract from
1499
- * the server-provided `keep-alive: timeout=...` hint when determining socket
1500
- * expiration time. This buffer helps ensure the agent closes the socket
1501
- * slightly before the server does, reducing the chance of sending a request
1502
- * on a socket that’s about to be closed by the server.
1503
- * @since v24.7.0
1504
- * @default 1000
1505
- */
1506
- agentKeepAliveTimeoutBuffer?: number | undefined;
1507
- /**
1508
- * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
1509
- */
1510
- maxSockets?: number | undefined;
1511
- /**
1512
- * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
1513
- */
1514
- maxTotalSockets?: number | undefined;
1515
- /**
1516
- * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
1517
- */
1518
- maxFreeSockets?: number | undefined;
1519
- /**
1520
- * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
1521
- */
1522
- timeout?: number | undefined;
1523
- /**
1524
- * Scheduling strategy to apply when picking the next free socket to use.
1525
- * @default `lifo`
1526
- */
1527
- scheduling?: "fifo" | "lifo" | undefined;
1528
- /**
1529
- * Environment variables for proxy configuration. See
1530
- * [Built-in Proxy Support](https://nodejs.org/docs/latest-v26.x/api/http.html#built-in-proxy-support) for details.
1531
- * @since v24.5.0
1532
- */
1533
- proxyEnv?: ProxyEnv | undefined;
1534
- /**
1535
- * Default port to use when the port is not specified in requests.
1536
- * @since v24.5.0
1537
- */
1538
- defaultPort?: number | undefined;
1539
- /**
1540
- * The protocol to use for the agent.
1541
- * @since v24.5.0
1542
- */
1543
- protocol?: string | undefined;
1544
- }
1545
- /**
1546
- * An `Agent` is responsible for managing connection persistence
1547
- * and reuse for HTTP clients. It maintains a queue of pending requests
1548
- * for a given host and port, reusing a single socket connection for each
1549
- * until the queue is empty, at which time the socket is either destroyed
1550
- * or put into a pool where it is kept to be used again for requests to the
1551
- * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`.
1552
- *
1553
- * Pooled connections have TCP Keep-Alive enabled for them, but servers may
1554
- * still close idle connections, in which case they will be removed from the
1555
- * pool and a new connection will be made when a new HTTP request is made for
1556
- * that host and port. Servers may also refuse to allow multiple requests
1557
- * over the same connection, in which case the connection will have to be
1558
- * remade for every request and cannot be pooled. The `Agent` will still make
1559
- * the requests to that server, but each one will occur over a new connection.
1560
- *
1561
- * When a connection is closed by the client or the server, it is removed
1562
- * from the pool. Any unused sockets in the pool will be unrefed so as not
1563
- * to keep the Node.js process running when there are no outstanding requests.
1564
- * (see `socket.unref()`).
1565
- *
1566
- * It is good practice, to `destroy()` an `Agent` instance when it is no
1567
- * longer in use, because unused sockets consume OS resources.
1568
- *
1569
- * Sockets are removed from an agent when the socket emits either
1570
- * a `'close'` event or an `'agentRemove'` event. When intending to keep one
1571
- * HTTP request open for a long time without keeping it in the agent, something
1572
- * like the following may be done:
1573
- *
1574
- * ```js
1575
- * http.get(options, (res) => {
1576
- * // Do stuff
1577
- * }).on('socket', (socket) => {
1578
- * socket.emit('agentRemove');
1579
- * });
1580
- * ```
1581
- *
1582
- * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options
1583
- * will be used
1584
- * for the client connection.
1585
- *
1586
- * `agent:false`:
1587
- *
1588
- * ```js
1589
- * http.get({
1590
- * hostname: 'localhost',
1591
- * port: 80,
1592
- * path: '/',
1593
- * agent: false, // Create a new agent just for this one request
1594
- * }, (res) => {
1595
- * // Do stuff with response
1596
- * });
1597
- * ```
1598
- *
1599
- * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v26.x/api/net.html#socketconnectoptions-connectlistener) are also supported.
1600
- *
1601
- * To configure any of them, a custom {@link Agent} instance must be created.
1602
- *
1603
- * ```js
1604
- * import http from 'node:http';
1605
- * const keepAliveAgent = new http.Agent({ keepAlive: true });
1606
- * options.agent = keepAliveAgent;
1607
- * http.request(options, onResponseCallback)
1608
- * ```
1609
- * @since v0.3.4
1610
- */
1611
- class Agent extends EventEmitter {
1612
- /**
1613
- * By default set to 256. For agents with `keepAlive` enabled, this
1614
- * sets the maximum number of sockets that will be left open in the free
1615
- * state.
1616
- * @since v0.11.7
1617
- */
1618
- maxFreeSockets: number;
1619
- /**
1620
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1621
- * can have open per origin. Origin is the returned value of `agent.getName()`.
1622
- * @since v0.3.6
1623
- */
1624
- maxSockets: number;
1625
- /**
1626
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1627
- * can have open. Unlike `maxSockets`, this parameter applies across all origins.
1628
- * @since v14.5.0, v12.19.0
1629
- */
1630
- maxTotalSockets: number;
1631
- /**
1632
- * An object which contains arrays of sockets currently awaiting use by
1633
- * the agent when `keepAlive` is enabled. Do not modify.
1634
- *
1635
- * Sockets in the `freeSockets` list will be automatically destroyed and
1636
- * removed from the array on `'timeout'`.
1637
- * @since v0.11.4
1638
- */
1639
- readonly freeSockets: NodeJS.ReadOnlyDict<net.Socket[]>;
1640
- /**
1641
- * An object which contains arrays of sockets currently in use by the
1642
- * agent. Do not modify.
1643
- * @since v0.3.6
1644
- */
1645
- readonly sockets: NodeJS.ReadOnlyDict<net.Socket[]>;
1646
- /**
1647
- * An object which contains queues of requests that have not yet been assigned to
1648
- * sockets. Do not modify.
1649
- * @since v0.5.9
1650
- */
1651
- readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
1652
- constructor(opts?: AgentOptions);
1653
- /**
1654
- * Destroy any sockets that are currently in use by the agent.
1655
- *
1656
- * It is usually not necessary to do this. However, if using an
1657
- * agent with `keepAlive` enabled, then it is best to explicitly shut down
1658
- * the agent when it is no longer needed. Otherwise,
1659
- * sockets might stay open for quite a long time before the server
1660
- * terminates them.
1661
- * @since v0.11.4
1662
- */
1663
- destroy(): void;
1664
- /**
1665
- * Produces a socket/stream to be used for HTTP requests.
1666
- *
1667
- * By default, this function behaves identically to `net.createConnection()`,
1668
- * synchronously returning the created socket. The optional `callback` parameter in the
1669
- * signature is **not** used by this default implementation.
1670
- *
1671
- * However, custom agents may override this method to provide greater flexibility,
1672
- * for example, to create sockets asynchronously. When overriding `createConnection`:
1673
- *
1674
- * 1. **Synchronous socket creation**: The overriding method can return the
1675
- * socket/stream directly.
1676
- * 2. **Asynchronous socket creation**: The overriding method can accept the `callback`
1677
- * and pass the created socket/stream to it (e.g., `callback(null, newSocket)`).
1678
- * If an error occurs during socket creation, it should be passed as the first
1679
- * argument to the `callback` (e.g., `callback(err)`).
1680
- *
1681
- * The agent will call the provided `createConnection` function with `options` and
1682
- * this internal `callback`. The `callback` provided by the agent has a signature
1683
- * of `(err, stream)`.
1684
- * @since v0.11.4
1685
- * @param options Options containing connection details. Check
1686
- * `net.createConnection` for the format of the options. For custom agents,
1687
- * this object is passed to the custom `createConnection` function.
1688
- * @param callback (Optional, primarily for custom agents) A function to be
1689
- * called by a custom `createConnection` implementation when the socket is
1690
- * created, especially for asynchronous operations.
1691
- * @returns The created socket. This is returned by the default
1692
- * implementation or by a custom synchronous `createConnection` implementation.
1693
- * If a custom `createConnection` uses the `callback` for asynchronous
1694
- * operation, this return value might not be the primary way to obtain the socket.
1695
- */
1696
- createConnection(
1697
- options: ClientRequestArgs,
1698
- callback?: (err: Error | null, stream: stream.Duplex) => void,
1699
- ): stream.Duplex | null | undefined;
1700
- /**
1701
- * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1702
- *
1703
- * ```js
1704
- * socket.setKeepAlive(true, this.keepAliveMsecs);
1705
- * socket.unref();
1706
- * return true;
1707
- * ```
1708
- *
1709
- * This method can be overridden by a particular `Agent` subclass. If this
1710
- * method returns a falsy value, the socket will be destroyed instead of persisting
1711
- * it for use with the next request.
1712
- *
1713
- * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`.
1714
- * @since v8.1.0
1715
- */
1716
- keepSocketAlive(socket: stream.Duplex): void;
1717
- /**
1718
- * Called when `socket` is attached to `request` after being persisted because of
1719
- * the keep-alive options. Default behavior is to:
1720
- *
1721
- * ```js
1722
- * socket.ref();
1723
- * ```
1724
- *
1725
- * This method can be overridden by a particular `Agent` subclass.
1726
- *
1727
- * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`.
1728
- * @since v8.1.0
1729
- */
1730
- reuseSocket(socket: stream.Duplex, request: ClientRequest): void;
1731
- /**
1732
- * Get a unique name for a set of request options, to determine whether a
1733
- * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent,
1734
- * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options
1735
- * that determine socket reusability.
1736
- * @since v0.11.4
1737
- * @param options A set of options providing information for name generation
1738
- */
1739
- getName(options?: ClientRequestArgs): string;
1740
- }
1741
- const METHODS: string[];
1742
- const STATUS_CODES: {
1743
- [errorCode: number]: string | undefined;
1744
- [errorCode: string]: string | undefined;
1745
- };
1746
- /**
1747
- * Returns a new instance of {@link Server}.
1748
- *
1749
- * The `requestListener` is a function which is automatically
1750
- * added to the `'request'` event.
1751
- *
1752
- * ```js
1753
- * import http from 'node:http';
1754
- *
1755
- * // Create a local server to receive data from
1756
- * const server = http.createServer((req, res) => {
1757
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1758
- * res.end(JSON.stringify({
1759
- * data: 'Hello World!',
1760
- * }));
1761
- * });
1762
- *
1763
- * server.listen(8000);
1764
- * ```
1765
- *
1766
- * ```js
1767
- * import http from 'node:http';
1768
- *
1769
- * // Create a local server to receive data from
1770
- * const server = http.createServer();
1771
- *
1772
- * // Listen to the request event
1773
- * server.on('request', (request, res) => {
1774
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1775
- * res.end(JSON.stringify({
1776
- * data: 'Hello World!',
1777
- * }));
1778
- * });
1779
- *
1780
- * server.listen(8000);
1781
- * ```
1782
- * @since v0.1.13
1783
- */
1784
- function createServer<
1785
- Request extends typeof IncomingMessage = typeof IncomingMessage,
1786
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
1787
- >(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
1788
- function createServer<
1789
- Request extends typeof IncomingMessage = typeof IncomingMessage,
1790
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
1791
- >(
1792
- options: ServerOptions<Request, Response>,
1793
- requestListener?: RequestListener<Request, Response>,
1794
- ): Server<Request, Response>;
1795
- // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
1796
- // create interface RequestOptions would make the naming more clear to developers
1797
- interface RequestOptions extends ClientRequestArgs {}
1798
- /**
1799
- * `options` in `socket.connect()` are also supported.
1800
- *
1801
- * Node.js maintains several connections per server to make HTTP requests.
1802
- * This function allows one to transparently issue requests.
1803
- *
1804
- * `url` can be a string or a `URL` object. If `url` is a
1805
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
1806
- *
1807
- * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence.
1808
- *
1809
- * The optional `callback` parameter will be added as a one-time listener for
1810
- * the `'response'` event.
1811
- *
1812
- * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to
1813
- * upload a file with a POST request, then write to the `ClientRequest` object.
1814
- *
1815
- * ```js
1816
- * import http from 'node:http';
1817
- * import { Buffer } from 'node:buffer';
1818
- *
1819
- * const postData = JSON.stringify({
1820
- * 'msg': 'Hello World!',
1821
- * });
1822
- *
1823
- * const options = {
1824
- * hostname: 'www.google.com',
1825
- * port: 80,
1826
- * path: '/upload',
1827
- * method: 'POST',
1828
- * headers: {
1829
- * 'Content-Type': 'application/json',
1830
- * 'Content-Length': Buffer.byteLength(postData),
1831
- * },
1832
- * };
1833
- *
1834
- * const req = http.request(options, (res) => {
1835
- * console.log(`STATUS: ${res.statusCode}`);
1836
- * console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
1837
- * res.setEncoding('utf8');
1838
- * res.on('data', (chunk) => {
1839
- * console.log(`BODY: ${chunk}`);
1840
- * });
1841
- * res.on('end', () => {
1842
- * console.log('No more data in response.');
1843
- * });
1844
- * });
1845
- *
1846
- * req.on('error', (e) => {
1847
- * console.error(`problem with request: ${e.message}`);
1848
- * });
1849
- *
1850
- * // Write data to request body
1851
- * req.write(postData);
1852
- * req.end();
1853
- * ```
1854
- *
1855
- * In the example `req.end()` was called. With `http.request()` one
1856
- * must always call `req.end()` to signify the end of the request -
1857
- * even if there is no data being written to the request body.
1858
- *
1859
- * If any error is encountered during the request (be that with DNS resolution,
1860
- * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
1861
- * on the returned request object. As with all `'error'` events, if no listeners
1862
- * are registered the error will be thrown.
1863
- *
1864
- * There are a few special headers that should be noted.
1865
- *
1866
- * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
1867
- * the server should be persisted until the next request.
1868
- * * Sending a 'Content-Length' header will disable the default chunked encoding.
1869
- * * Sending an 'Expect' header will immediately send the request headers.
1870
- * Usually, when sending 'Expect: 100-continue', both a timeout and a listener
1871
- * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
1872
- * information.
1873
- * * Sending an Authorization header will override using the `auth` option
1874
- * to compute basic authentication.
1875
- *
1876
- * Example using a `URL` as `options`:
1877
- *
1878
- * ```js
1879
- * const options = new URL('http://abc:xyz@example.com');
1880
- *
1881
- * const req = http.request(options, (res) => {
1882
- * // ...
1883
- * });
1884
- * ```
1885
- *
1886
- * In a successful request, the following events will be emitted in the following
1887
- * order:
1888
- *
1889
- * * `'socket'`
1890
- * * `'response'`
1891
- * * `'data'` any number of times, on the `res` object
1892
- * (`'data'` will not be emitted at all if the response body is empty, for
1893
- * instance, in most redirects)
1894
- * * `'end'` on the `res` object
1895
- * * `'close'`
1896
- *
1897
- * In the case of a connection error, the following events will be emitted:
1898
- *
1899
- * * `'socket'`
1900
- * * `'error'`
1901
- * * `'close'`
1902
- *
1903
- * In the case of a premature connection close before the response is received,
1904
- * the following events will be emitted in the following order:
1905
- *
1906
- * * `'socket'`
1907
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
1908
- * * `'close'`
1909
- *
1910
- * In the case of a premature connection close after the response is received,
1911
- * the following events will be emitted in the following order:
1912
- *
1913
- * * `'socket'`
1914
- * * `'response'`
1915
- * * `'data'` any number of times, on the `res` object
1916
- * * (connection closed here)
1917
- * * `'aborted'` on the `res` object
1918
- * * `'close'`
1919
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`
1920
- * * `'close'` on the `res` object
1921
- *
1922
- * If `req.destroy()` is called before a socket is assigned, the following
1923
- * events will be emitted in the following order:
1924
- *
1925
- * * (`req.destroy()` called here)
1926
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1927
- * * `'close'`
1928
- *
1929
- * If `req.destroy()` is called before the connection succeeds, the following
1930
- * events will be emitted in the following order:
1931
- *
1932
- * * `'socket'`
1933
- * * (`req.destroy()` called here)
1934
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1935
- * * `'close'`
1936
- *
1937
- * If `req.destroy()` is called after the response is received, the following
1938
- * events will be emitted in the following order:
1939
- *
1940
- * * `'socket'`
1941
- * * `'response'`
1942
- * * `'data'` any number of times, on the `res` object
1943
- * * (`req.destroy()` called here)
1944
- * * `'aborted'` on the `res` object
1945
- * * `'close'`
1946
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1947
- * * `'close'` on the `res` object
1948
- *
1949
- * If `req.abort()` is called before a socket is assigned, the following
1950
- * events will be emitted in the following order:
1951
- *
1952
- * * (`req.abort()` called here)
1953
- * * `'abort'`
1954
- * * `'close'`
1955
- *
1956
- * If `req.abort()` is called before the connection succeeds, the following
1957
- * events will be emitted in the following order:
1958
- *
1959
- * * `'socket'`
1960
- * * (`req.abort()` called here)
1961
- * * `'abort'`
1962
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
1963
- * * `'close'`
1964
- *
1965
- * If `req.abort()` is called after the response is received, the following
1966
- * events will be emitted in the following order:
1967
- *
1968
- * * `'socket'`
1969
- * * `'response'`
1970
- * * `'data'` any number of times, on the `res` object
1971
- * * (`req.abort()` called here)
1972
- * * `'abort'`
1973
- * * `'aborted'` on the `res` object
1974
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`.
1975
- * * `'close'`
1976
- * * `'close'` on the `res` object
1977
- *
1978
- * Setting the `timeout` option or using the `setTimeout()` function will
1979
- * not abort the request or do anything besides add a `'timeout'` event.
1980
- *
1981
- * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the
1982
- * request. Specifically, the `'error'` event will be emitted with an error with
1983
- * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided.
1984
- * @since v0.3.6
1985
- */
1986
- function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1987
- function request(
1988
- url: string | URL,
1989
- options: RequestOptions,
1990
- callback?: (res: IncomingMessage) => void,
1991
- ): ClientRequest;
1992
- /**
1993
- * Since most requests are GET requests without bodies, Node.js provides this
1994
- * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to
1995
- * consume the response
1996
- * data for reasons stated in {@link ClientRequest} section.
1997
- *
1998
- * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
1999
- *
2000
- * JSON fetching example:
2001
- *
2002
- * ```js
2003
- * http.get('http://localhost:8000/', (res) => {
2004
- * const { statusCode } = res;
2005
- * const contentType = res.headers['content-type'];
2006
- *
2007
- * let error;
2008
- * // Any 2xx status code signals a successful response but
2009
- * // here we're only checking for 200.
2010
- * if (statusCode !== 200) {
2011
- * error = new Error('Request Failed.\n' +
2012
- * `Status Code: ${statusCode}`);
2013
- * } else if (!/^application\/json/.test(contentType)) {
2014
- * error = new Error('Invalid content-type.\n' +
2015
- * `Expected application/json but received ${contentType}`);
2016
- * }
2017
- * if (error) {
2018
- * console.error(error.message);
2019
- * // Consume response data to free up memory
2020
- * res.resume();
2021
- * return;
2022
- * }
2023
- *
2024
- * res.setEncoding('utf8');
2025
- * let rawData = '';
2026
- * res.on('data', (chunk) => { rawData += chunk; });
2027
- * res.on('end', () => {
2028
- * try {
2029
- * const parsedData = JSON.parse(rawData);
2030
- * console.log(parsedData);
2031
- * } catch (e) {
2032
- * console.error(e.message);
2033
- * }
2034
- * });
2035
- * }).on('error', (e) => {
2036
- * console.error(`Got error: ${e.message}`);
2037
- * });
2038
- *
2039
- * // Create a local server to receive data from
2040
- * const server = http.createServer((req, res) => {
2041
- * res.writeHead(200, { 'Content-Type': 'application/json' });
2042
- * res.end(JSON.stringify({
2043
- * data: 'Hello World!',
2044
- * }));
2045
- * });
2046
- *
2047
- * server.listen(8000);
2048
- * ```
2049
- * @since v0.3.6
2050
- * @param options Accepts the same `options` as {@link request}, with the method set to GET by default.
2051
- */
2052
- function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
2053
- function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
2054
- /**
2055
- * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called.
2056
- *
2057
- * Passing illegal value as `name` will result in a `TypeError` being thrown,
2058
- * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
2059
- *
2060
- * It is not necessary to use this method before passing headers to an HTTP request
2061
- * or response. The HTTP module will automatically validate such headers.
2062
- *
2063
- * Example:
2064
- *
2065
- * ```js
2066
- * import { validateHeaderName } from 'node:http';
2067
- *
2068
- * try {
2069
- * validateHeaderName('');
2070
- * } catch (err) {
2071
- * console.error(err instanceof TypeError); // --> true
2072
- * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN'
2073
- * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]'
2074
- * }
2075
- * ```
2076
- * @since v14.3.0
2077
- * @param [label='Header name'] Label for error message.
2078
- */
2079
- function validateHeaderName(name: string): void;
2080
- /**
2081
- * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called.
2082
- *
2083
- * Passing illegal value as `value` will result in a `TypeError` being thrown.
2084
- *
2085
- * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`.
2086
- * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`.
2087
- *
2088
- * It is not necessary to use this method before passing headers to an HTTP request
2089
- * or response. The HTTP module will automatically validate such headers.
2090
- *
2091
- * Examples:
2092
- *
2093
- * ```js
2094
- * import { validateHeaderValue } from 'node:http';
2095
- *
2096
- * try {
2097
- * validateHeaderValue('x-my-header', undefined);
2098
- * } catch (err) {
2099
- * console.error(err instanceof TypeError); // --> true
2100
- * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true
2101
- * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"'
2102
- * }
2103
- *
2104
- * try {
2105
- * validateHeaderValue('x-my-header', 'oʊmɪɡə');
2106
- * } catch (err) {
2107
- * console.error(err instanceof TypeError); // --> true
2108
- * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true
2109
- * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]'
2110
- * }
2111
- * ```
2112
- * @since v14.3.0
2113
- * @param name Header name
2114
- * @param value Header value
2115
- */
2116
- function validateHeaderValue(name: string, value: string): void;
2117
- /**
2118
- * Set the maximum number of idle HTTP parsers.
2119
- * @since v18.8.0, v16.18.0
2120
- * @param [max=1000]
2121
- */
2122
- function setMaxIdleHTTPParsers(max: number): void;
2123
- /**
2124
- * Dynamically resets the global configurations to enable built-in proxy support for
2125
- * `fetch()` and `http.request()`/`https.request()` at runtime, as an alternative
2126
- * to using the `--use-env-proxy` flag or `NODE_USE_ENV_PROXY` environment variable.
2127
- * It can also be used to override settings configured from the environment variables.
2128
- *
2129
- * As this function resets the global configurations, any previously configured
2130
- * `http.globalAgent`, `https.globalAgent` or undici global dispatcher would be
2131
- * overridden after this function is invoked. It's recommended to invoke it before any
2132
- * requests are made and avoid invoking it in the middle of any requests.
2133
- *
2134
- * See [Built-in Proxy Support](https://nodejs.org/docs/latest-v26.x/api/http.html#built-in-proxy-support) for details on proxy URL formats and `NO_PROXY`
2135
- * syntax.
2136
- * @since v25.4.0
2137
- * @param proxyEnv An object containing proxy configuration. This accepts the
2138
- * same options as the `proxyEnv` option accepted by {@link Agent}. **Default:**
2139
- * `process.env`.
2140
- * @returns A function that restores the original agent and dispatcher
2141
- * settings to the state before this `http.setGlobalProxyFromEnv()` is invoked.
2142
- */
2143
- function setGlobalProxyFromEnv(proxyEnv?: ProxyEnv): () => void;
2144
- /**
2145
- * Global instance of `Agent` which is used as the default for all HTTP client
2146
- * requests. Diverges from a default `Agent` configuration by having `keepAlive`
2147
- * enabled and a `timeout` of 5 seconds.
2148
- * @since v0.5.9
2149
- */
2150
- let globalAgent: Agent;
2151
- /**
2152
- * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
2153
- * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option.
2154
- */
2155
- const maxHeaderSize: number;
2156
- /**
2157
- * A browser-compatible implementation of `WebSocket`.
2158
- * @since v22.5.0
2159
- */
2160
- const WebSocket: typeof import("undici-types").WebSocket;
2161
- /**
2162
- * @since v22.5.0
2163
- */
2164
- const CloseEvent: typeof import("undici-types").CloseEvent;
2165
- /**
2166
- * @since v22.5.0
2167
- */
2168
- const MessageEvent: typeof import("undici-types").MessageEvent;
2169
- }
2170
- declare module "http" {
2171
- export * from "node:http";
2172
- }