@openclaw/slack 2026.7.2-beta.7 → 2026.7.33

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,1806 +0,0 @@
1
- declare module "node:stream" {
2
- import { Blob } from "node:buffer";
3
- import { Abortable, EventEmitter } from "node:events";
4
- import { ByteReadableStream, toAsyncStreamable } from "node:stream/iter";
5
- import * as promises from "node:stream/promises";
6
- import * as web from "node:stream/web";
7
- class Stream extends EventEmitter {
8
- /**
9
- * @since v0.9.4
10
- */
11
- pipe<T extends NodeJS.WritableStream>(
12
- destination: T,
13
- options?: Stream.PipeOptions,
14
- ): T;
15
- }
16
- namespace Stream {
17
- export { promises, Stream };
18
- }
19
- namespace Stream {
20
- interface PipeOptions {
21
- /**
22
- * End the writer when the reader ends.
23
- * @default true
24
- */
25
- end?: boolean | undefined;
26
- }
27
- interface StreamOptions<T extends Stream> extends Abortable {
28
- emitClose?: boolean | undefined;
29
- highWaterMark?: number | undefined;
30
- objectMode?: boolean | undefined;
31
- construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined;
32
- destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined;
33
- autoDestroy?: boolean | undefined;
34
- }
35
- interface ReadableOptions<T extends Readable = Readable> extends StreamOptions<T> {
36
- encoding?: BufferEncoding | undefined;
37
- read?: ((this: T, size: number) => void) | undefined;
38
- }
39
- interface ReadableIteratorOptions {
40
- /**
41
- * When set to `false`, calling `return` on the async iterator,
42
- * or exiting a `for await...of` iteration using a `break`,
43
- * `return`, or `throw` will not destroy the stream.
44
- * @default true
45
- */
46
- destroyOnReturn?: boolean | undefined;
47
- }
48
- interface ReadableOperatorOptions extends Abortable {
49
- /**
50
- * The maximum concurrent invocations of `fn` to call
51
- * on the stream at once.
52
- * @default 1
53
- */
54
- concurrency?: number | undefined;
55
- /**
56
- * How many items to buffer while waiting for user consumption
57
- * of the output.
58
- * @default concurrency * 2 - 1
59
- */
60
- highWaterMark?: number | undefined;
61
- }
62
- /** @deprecated Use `ReadableOperatorOptions` instead. */
63
- interface ArrayOptions extends ReadableOperatorOptions {}
64
- interface ReadableToWebOptions {
65
- strategy?: web.QueuingStrategy | undefined;
66
- type?: web.ReadableStreamType | undefined;
67
- }
68
- interface ReadableEventMap {
69
- "close": [];
70
- "data": [chunk: any];
71
- "end": [];
72
- "error": [err: Error];
73
- "pause": [];
74
- "readable": [];
75
- "resume": [];
76
- }
77
- /**
78
- * @since v0.9.4
79
- */
80
- class Readable extends Stream implements NodeJS.ReadableStream {
81
- constructor(options?: ReadableOptions);
82
- /**
83
- * A utility method for creating Readable Streams out of iterators.
84
- * @since v12.3.0, v10.17.0
85
- * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed.
86
- * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`.
87
- */
88
- static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
89
- /**
90
- * A utility method for creating a `Readable` from a web `ReadableStream`.
91
- * @since v17.0.0
92
- */
93
- static fromWeb(
94
- readableStream: web.ReadableStream,
95
- options?: Pick<ReadableOptions, "encoding" | "highWaterMark" | "objectMode" | "signal">,
96
- ): Readable;
97
- /**
98
- * A utility method for creating a web `ReadableStream` from a `Readable`.
99
- * @since v17.0.0
100
- */
101
- static toWeb(
102
- streamReadable: NodeJS.ReadableStream,
103
- options?: ReadableToWebOptions,
104
- ): web.ReadableStream;
105
- /**
106
- * Returns whether the stream has been read from or cancelled.
107
- * @since v16.8.0
108
- */
109
- static isDisturbed(stream: NodeJS.ReadableStream | web.ReadableStream): boolean;
110
- /**
111
- * Returns whether the stream was destroyed or errored before emitting `'end'`.
112
- * @since v16.8.0
113
- */
114
- readonly readableAborted: boolean;
115
- /**
116
- * Is `true` if it is safe to call {@link read}, which means
117
- * the stream has not been destroyed or emitted `'error'` or `'end'`.
118
- * @since v11.4.0
119
- */
120
- readable: boolean;
121
- /**
122
- * Returns whether `'data'` has been emitted.
123
- * @since v16.7.0, v14.18.0
124
- */
125
- readonly readableDidRead: boolean;
126
- /**
127
- * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method.
128
- * @since v12.7.0
129
- */
130
- readonly readableEncoding: BufferEncoding | null;
131
- /**
132
- * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v26.x/api/stream.html#event-end) event is emitted.
133
- * @since v12.9.0
134
- */
135
- readonly readableEnded: boolean;
136
- /**
137
- * This property reflects the current state of a `Readable` stream as described
138
- * in the [Three states](https://nodejs.org/docs/latest-v26.x/api/stream.html#three-states) section.
139
- * @since v9.4.0
140
- */
141
- readableFlowing: boolean | null;
142
- /**
143
- * Returns the value of `highWaterMark` passed when creating this `Readable`.
144
- * @since v9.3.0
145
- */
146
- readonly readableHighWaterMark: number;
147
- /**
148
- * This property contains the number of bytes (or objects) in the queue
149
- * ready to be read. The value provides introspection data regarding
150
- * the status of the `highWaterMark`.
151
- * @since v9.4.0
152
- */
153
- readonly readableLength: number;
154
- /**
155
- * Getter for the property `objectMode` of a given `Readable` stream.
156
- * @since v12.3.0
157
- */
158
- readonly readableObjectMode: boolean;
159
- /**
160
- * Is `true` after `readable.destroy()` has been called.
161
- * @since v8.0.0
162
- */
163
- destroyed: boolean;
164
- /**
165
- * Is `true` after `'close'` has been emitted.
166
- * @since v18.0.0
167
- */
168
- readonly closed: boolean;
169
- /**
170
- * Returns error if the stream has been destroyed with an error.
171
- * @since v18.0.0
172
- */
173
- readonly errored: Error | null;
174
- _construct?(callback: (error?: Error | null) => void): void;
175
- _read(size: number): void;
176
- /**
177
- * The `readable.read()` method reads data out of the internal buffer and
178
- * returns it. If no data is available to be read, `null` is returned. By default,
179
- * the data is returned as a `Buffer` object unless an encoding has been
180
- * specified using the `readable.setEncoding()` method or the stream is operating
181
- * in object mode.
182
- *
183
- * The optional `size` argument specifies a specific number of bytes to read. If
184
- * `size` bytes are not available to be read, `null` will be returned _unless_ the
185
- * stream has ended, in which case all of the data remaining in the internal buffer
186
- * will be returned.
187
- *
188
- * If the `size` argument is not specified, all of the data contained in the
189
- * internal buffer will be returned.
190
- *
191
- * The `size` argument must be less than or equal to 1 GiB.
192
- *
193
- * The `readable.read()` method should only be called on `Readable` streams
194
- * operating in paused mode. In flowing mode, `readable.read()` is called
195
- * automatically until the internal buffer is fully drained.
196
- *
197
- * ```js
198
- * const readable = getReadableStreamSomehow();
199
- *
200
- * // 'readable' may be triggered multiple times as data is buffered in
201
- * readable.on('readable', () => {
202
- * let chunk;
203
- * console.log('Stream is readable (new data received in buffer)');
204
- * // Use a loop to make sure we read all currently available data
205
- * while (null !== (chunk = readable.read())) {
206
- * console.log(`Read ${chunk.length} bytes of data...`);
207
- * }
208
- * });
209
- *
210
- * // 'end' will be triggered once when there is no more data available
211
- * readable.on('end', () => {
212
- * console.log('Reached end of stream.');
213
- * });
214
- * ```
215
- *
216
- * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks
217
- * are not concatenated. A `while` loop is necessary to consume all data
218
- * currently in the buffer. When reading a large file `.read()` may return `null`,
219
- * having consumed all buffered content so far, but there is still more data to
220
- * come not yet buffered. In this case a new `'readable'` event will be emitted
221
- * when there is more data in the buffer. Finally the `'end'` event will be
222
- * emitted when there is no more data to come.
223
- *
224
- * Therefore to read a file's whole contents from a `readable`, it is necessary
225
- * to collect chunks across multiple `'readable'` events:
226
- *
227
- * ```js
228
- * const chunks = [];
229
- *
230
- * readable.on('readable', () => {
231
- * let chunk;
232
- * while (null !== (chunk = readable.read())) {
233
- * chunks.push(chunk);
234
- * }
235
- * });
236
- *
237
- * readable.on('end', () => {
238
- * const content = chunks.join('');
239
- * });
240
- * ```
241
- *
242
- * A `Readable` stream in object mode will always return a single item from
243
- * a call to `readable.read(size)`, regardless of the value of the `size` argument.
244
- *
245
- * If the `readable.read()` method returns a chunk of data, a `'data'` event will
246
- * also be emitted.
247
- *
248
- * Calling {@link read} after the `'end'` event has
249
- * been emitted will return `null`. No runtime error will be raised.
250
- * @since v0.9.4
251
- * @param size Optional argument to specify how much data to read.
252
- */
253
- read(size?: number): any;
254
- /**
255
- * The `readable.setEncoding()` method sets the character encoding for
256
- * data read from the `Readable` stream.
257
- *
258
- * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data
259
- * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the
260
- * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal
261
- * string format.
262
- *
263
- * The `Readable` stream will properly handle multi-byte characters delivered
264
- * through the stream that would otherwise become improperly decoded if simply
265
- * pulled from the stream as `Buffer` objects.
266
- *
267
- * ```js
268
- * const readable = getReadableStreamSomehow();
269
- * readable.setEncoding('utf8');
270
- * readable.on('data', (chunk) => {
271
- * assert.equal(typeof chunk, 'string');
272
- * console.log('Got %d characters of string data:', chunk.length);
273
- * });
274
- * ```
275
- * @since v0.9.4
276
- * @param encoding The encoding to use.
277
- */
278
- setEncoding(encoding: BufferEncoding): this;
279
- /**
280
- * The `readable.pause()` method will cause a stream in flowing mode to stop
281
- * emitting `'data'` events, switching out of flowing mode. Any data that
282
- * becomes available will remain in the internal buffer.
283
- *
284
- * ```js
285
- * const readable = getReadableStreamSomehow();
286
- * readable.on('data', (chunk) => {
287
- * console.log(`Received ${chunk.length} bytes of data.`);
288
- * readable.pause();
289
- * console.log('There will be no additional data for 1 second.');
290
- * setTimeout(() => {
291
- * console.log('Now data will start flowing again.');
292
- * readable.resume();
293
- * }, 1000);
294
- * });
295
- * ```
296
- *
297
- * The `readable.pause()` method has no effect if there is a `'readable'` event listener.
298
- * @since v0.9.4
299
- */
300
- pause(): this;
301
- /**
302
- * The `readable.resume()` method causes an explicitly paused `Readable` stream to
303
- * resume emitting `'data'` events, switching the stream into flowing mode.
304
- *
305
- * The `readable.resume()` method can be used to fully consume the data from a
306
- * stream without actually processing any of that data:
307
- *
308
- * ```js
309
- * getReadableStreamSomehow()
310
- * .resume()
311
- * .on('end', () => {
312
- * console.log('Reached the end, but did not read anything.');
313
- * });
314
- * ```
315
- *
316
- * The `readable.resume()` method has no effect if there is a `'readable'` event listener.
317
- * @since v0.9.4
318
- */
319
- resume(): this;
320
- /**
321
- * The `readable.isPaused()` method returns the current operating state of the `Readable`.
322
- * This is used primarily by the mechanism that underlies the `readable.pipe()` method.
323
- * In most typical cases, there will be no reason to use this method directly.
324
- *
325
- * ```js
326
- * const readable = new stream.Readable();
327
- *
328
- * readable.isPaused(); // === false
329
- * readable.pause();
330
- * readable.isPaused(); // === true
331
- * readable.resume();
332
- * readable.isPaused(); // === false
333
- * ```
334
- * @since v0.11.14
335
- */
336
- isPaused(): boolean;
337
- /**
338
- * The `readable.unpipe()` method detaches a `Writable` stream previously attached
339
- * using the {@link pipe} method.
340
- *
341
- * If the `destination` is not specified, then _all_ pipes are detached.
342
- *
343
- * If the `destination` is specified, but no pipe is set up for it, then
344
- * the method does nothing.
345
- *
346
- * ```js
347
- * import fs from 'node:fs';
348
- * const readable = getReadableStreamSomehow();
349
- * const writable = fs.createWriteStream('file.txt');
350
- * // All the data from readable goes into 'file.txt',
351
- * // but only for the first second.
352
- * readable.pipe(writable);
353
- * setTimeout(() => {
354
- * console.log('Stop writing to file.txt.');
355
- * readable.unpipe(writable);
356
- * console.log('Manually close the file stream.');
357
- * writable.end();
358
- * }, 1000);
359
- * ```
360
- * @since v0.9.4
361
- * @param destination Optional specific stream to unpipe
362
- */
363
- unpipe(destination?: NodeJS.WritableStream): this;
364
- /**
365
- * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the
366
- * same as `readable.push(null)`, after which no more data can be written. The EOF
367
- * signal is put at the end of the buffer and any buffered data will still be
368
- * flushed.
369
- *
370
- * The `readable.unshift()` method pushes a chunk of data back into the internal
371
- * buffer. This is useful in certain situations where a stream is being consumed by
372
- * code that needs to "un-consume" some amount of data that it has optimistically
373
- * pulled out of the source, so that the data can be passed on to some other party.
374
- *
375
- * The `stream.unshift(chunk)` method cannot be called after the `'end'` event
376
- * has been emitted or a runtime error will be thrown.
377
- *
378
- * Developers using `stream.unshift()` often should consider switching to
379
- * use of a `Transform` stream instead. See the `API for stream implementers` section for more information.
380
- *
381
- * ```js
382
- * // Pull off a header delimited by \n\n.
383
- * // Use unshift() if we get too much.
384
- * // Call the callback with (error, header, stream).
385
- * import { StringDecoder } from 'node:string_decoder';
386
- * function parseHeader(stream, callback) {
387
- * stream.on('error', callback);
388
- * stream.on('readable', onReadable);
389
- * const decoder = new StringDecoder('utf8');
390
- * let header = '';
391
- * function onReadable() {
392
- * let chunk;
393
- * while (null !== (chunk = stream.read())) {
394
- * const str = decoder.write(chunk);
395
- * if (str.includes('\n\n')) {
396
- * // Found the header boundary.
397
- * const split = str.split(/\n\n/);
398
- * header += split.shift();
399
- * const remaining = split.join('\n\n');
400
- * const buf = Buffer.from(remaining, 'utf8');
401
- * stream.removeListener('error', callback);
402
- * // Remove the 'readable' listener before unshifting.
403
- * stream.removeListener('readable', onReadable);
404
- * if (buf.length)
405
- * stream.unshift(buf);
406
- * // Now the body of the message can be read from the stream.
407
- * callback(null, header, stream);
408
- * return;
409
- * }
410
- * // Still reading the header.
411
- * header += str;
412
- * }
413
- * }
414
- * }
415
- * ```
416
- *
417
- * Unlike {@link push}, `stream.unshift(chunk)` will not
418
- * end the reading process by resetting the internal reading state of the stream.
419
- * This can cause unexpected results if `readable.unshift()` is called during a
420
- * read (i.e. from within a {@link _read} implementation on a
421
- * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately,
422
- * however it is best to simply avoid calling `readable.unshift()` while in the
423
- * process of performing a read.
424
- * @since v0.9.11
425
- * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must
426
- * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value.
427
- * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`.
428
- */
429
- unshift(chunk: any, encoding?: BufferEncoding): void;
430
- /**
431
- * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more
432
- * information.)
433
- *
434
- * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable`
435
- * stream that uses
436
- * the old stream as its data source.
437
- *
438
- * It will rarely be necessary to use `readable.wrap()` but the method has been
439
- * provided as a convenience for interacting with older Node.js applications and
440
- * libraries.
441
- *
442
- * ```js
443
- * import { OldReader } from './old-api-module.js';
444
- * import { Readable } from 'node:stream';
445
- * const oreader = new OldReader();
446
- * const myReader = new Readable().wrap(oreader);
447
- *
448
- * myReader.on('readable', () => {
449
- * myReader.read(); // etc.
450
- * });
451
- * ```
452
- * @since v0.9.4
453
- * @param stream An "old style" readable stream
454
- */
455
- wrap(stream: NodeJS.ReadableStream): this;
456
- push(chunk: any, encoding?: BufferEncoding): boolean;
457
- /**
458
- * ```js
459
- * import { Readable } from 'node:stream';
460
- *
461
- * async function* splitToWords(source) {
462
- * for await (const chunk of source) {
463
- * const words = String(chunk).split(' ');
464
- *
465
- * for (const word of words) {
466
- * yield word;
467
- * }
468
- * }
469
- * }
470
- *
471
- * const wordsStream = Readable.from(['text passed through', 'composed stream']).compose(splitToWords);
472
- * const words = await wordsStream.toArray();
473
- *
474
- * console.log(words); // prints ['text', 'passed', 'through', 'composed', 'stream']
475
- * ```
476
- *
477
- * `readable.compose(s)` is equivalent to `stream.compose(readable, s)`.
478
- *
479
- * This method also allows for an `AbortSignal` to be provided, which will destroy
480
- * the composed stream when aborted.
481
- *
482
- * See [`stream.compose(...streams)`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streamcomposestreams) for more information.
483
- * @since v19.1.0, v18.13.0
484
- * @returns a stream composed with the stream `stream`.
485
- */
486
- compose(
487
- stream: NodeJS.WritableStream | web.WritableStream | web.TransformStream | ((source: any) => void),
488
- options?: Abortable,
489
- ): Duplex;
490
- /**
491
- * The iterator created by this method gives users the option to cancel the destruction
492
- * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`,
493
- * or if the iterator should destroy the stream if the stream emitted an error during iteration.
494
- * @since v16.3.0
495
- */
496
- iterator(options?: ReadableIteratorOptions): NodeJS.AsyncIterator<any>;
497
- /**
498
- * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
499
- * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
500
- * @since v17.4.0, v16.14.0
501
- * @param fn a function to map over every chunk in the stream. Async or not.
502
- * @returns a stream mapped with the function *fn*.
503
- */
504
- map(fn: (data: any, options?: Abortable) => any, options?: ReadableOperatorOptions): Readable;
505
- /**
506
- * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called
507
- * and if it returns a truthy value, the chunk will be passed to the result stream.
508
- * If the *fn* function returns a promise - that promise will be `await`ed.
509
- * @since v17.4.0, v16.14.0
510
- * @param fn a function to filter chunks from the stream. Async or not.
511
- * @returns a stream filtered with the predicate *fn*.
512
- */
513
- filter(
514
- fn: (data: any, options?: Abortable) => boolean | Promise<boolean>,
515
- options?: ReadableOperatorOptions,
516
- ): Readable;
517
- /**
518
- * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called.
519
- * If the *fn* function returns a promise - that promise will be `await`ed.
520
- *
521
- * This method is different from `for await...of` loops in that it can optionally process chunks concurrently.
522
- * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option
523
- * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`.
524
- * In either case the stream will be destroyed.
525
- *
526
- * This method is different from listening to the `'data'` event in that it uses the `readable` event
527
- * in the underlying machinary and can limit the number of concurrent *fn* calls.
528
- * @since v17.5.0
529
- * @param fn a function to call on each chunk of the stream. Async or not.
530
- * @returns a promise for when the stream has finished.
531
- */
532
- forEach(
533
- fn: (data: any, options?: Abortable) => void | Promise<void>,
534
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
535
- ): Promise<void>;
536
- /**
537
- * This method allows easily obtaining the contents of a stream.
538
- *
539
- * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended
540
- * for interoperability and convenience, not as the primary way to consume streams.
541
- * @since v17.5.0
542
- * @returns a promise containing an array with the contents of the stream.
543
- */
544
- toArray(options?: Abortable): Promise<any[]>;
545
- /**
546
- * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream
547
- * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk
548
- * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`.
549
- * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`.
550
- * @since v17.5.0
551
- * @param fn a function to call on each chunk of the stream. Async or not.
552
- * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks.
553
- */
554
- some(
555
- fn: (data: any, options?: Abortable) => boolean | Promise<boolean>,
556
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
557
- ): Promise<boolean>;
558
- /**
559
- * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream
560
- * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy,
561
- * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value.
562
- * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`.
563
- * @since v17.5.0
564
- * @param fn a function to call on each chunk of the stream. Async or not.
565
- * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value,
566
- * or `undefined` if no element was found.
567
- */
568
- find<T>(
569
- fn: (data: any, options?: Abortable) => data is T,
570
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
571
- ): Promise<T | undefined>;
572
- find(
573
- fn: (data: any, options?: Abortable) => boolean | Promise<boolean>,
574
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
575
- ): Promise<any>;
576
- /**
577
- * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream
578
- * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk
579
- * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`.
580
- * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`.
581
- * @since v17.5.0
582
- * @param fn a function to call on each chunk of the stream. Async or not.
583
- * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks.
584
- */
585
- every(
586
- fn: (data: any, options?: Abortable) => boolean | Promise<boolean>,
587
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
588
- ): Promise<boolean>;
589
- /**
590
- * This method returns a new stream by applying the given callback to each chunk of the stream
591
- * and then flattening the result.
592
- *
593
- * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams
594
- * will be merged (flattened) into the returned stream.
595
- * @since v17.5.0
596
- * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator.
597
- * @returns a stream flat-mapped with the function *fn*.
598
- */
599
- flatMap(
600
- fn: (data: any, options?: Abortable) => any,
601
- options?: Pick<ReadableOperatorOptions, "concurrency" | "signal">,
602
- ): Readable;
603
- /**
604
- * This method returns a new stream with the first *limit* chunks dropped from the start.
605
- * @since v17.5.0
606
- * @param limit the number of chunks to drop from the readable.
607
- * @returns a stream with *limit* chunks dropped from the start.
608
- */
609
- drop(limit: number, options?: Abortable): Readable;
610
- /**
611
- * This method returns a new stream with the first *limit* chunks.
612
- * @since v17.5.0
613
- * @param limit the number of chunks to take from the readable.
614
- * @returns a stream with *limit* chunks taken.
615
- */
616
- take(limit: number, options?: Abortable): Readable;
617
- /**
618
- * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation
619
- * on the previous element. It returns a promise for the final value of the reduction.
620
- *
621
- * If no *initial* value is supplied the first chunk of the stream is used as the initial value.
622
- * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property.
623
- *
624
- * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter
625
- * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method.
626
- * @since v17.5.0
627
- * @param fn a reducer function to call over every chunk in the stream. Async or not.
628
- * @param initial the initial value to use in the reduction.
629
- * @returns a promise for the final value of the reduction.
630
- */
631
- reduce<T>(fn: (previous: any, data: any, options?: Abortable) => T): Promise<T>;
632
- reduce<T>(
633
- fn: (previous: T, data: any, options?: Abortable) => T,
634
- initial: T,
635
- options?: Abortable,
636
- ): Promise<T>;
637
- _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
638
- /**
639
- * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable
640
- * stream will release any internal resources and subsequent calls to `push()` will be ignored.
641
- *
642
- * Once `destroy()` has been called any further calls will be a no-op and no
643
- * further errors except from `_destroy()` may be emitted as `'error'`.
644
- *
645
- * Implementors should not override this method, but instead implement `readable._destroy()`.
646
- * @since v8.0.0
647
- * @param error Error which will be passed as payload in `'error'` event
648
- */
649
- destroy(error?: Error): this;
650
- /**
651
- * @returns `AsyncIterator` to fully consume the stream.
652
- * @since v10.0.0
653
- */
654
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
655
- /**
656
- * When the `--experimental-stream-iter` flag is enabled, `Readable` streams
657
- * implement the `Stream.toAsyncStreamable` protocol, enabling efficient
658
- * consumption by the `stream/iter` API.
659
- *
660
- * This provides a batched async iterator that drains the stream's internal
661
- * buffer into `Uint8Array[]` batches, amortizing the per-chunk Promise overhead
662
- * of the standard `Symbol.asyncIterator` path. For byte-mode streams, chunks
663
- * are yielded directly as `Buffer` instances (which are `Uint8Array` subclasses).
664
- * For object-mode or encoded streams, each chunk is normalized to `Uint8Array`
665
- * before batching.
666
- *
667
- * The returned iterator is tagged as a validated source, so `from()`
668
- * passes it through without additional normalization.
669
- *
670
- * ```js
671
- * import { Readable } from 'node:stream';
672
- * import { text, from } from 'node:stream/iter';
673
- *
674
- * const readable = new Readable({
675
- * read() { this.push('hello'); this.push(null); },
676
- * });
677
- *
678
- * // Readable is automatically consumed via toAsyncStreamable
679
- * console.log(await text(from(readable))); // 'hello'
680
- * ```
681
- *
682
- * Without the `--experimental-stream-iter` flag, calling this method throws
683
- * `ERR_STREAM_ITER_MISSING_FLAG`.
684
- */
685
- [toAsyncStreamable](): ByteReadableStream;
686
- /**
687
- * Calls `readable.destroy()` with an `AbortError` and returns
688
- * a promise that fulfills when the stream is finished.
689
- * @since v20.4.0
690
- */
691
- [Symbol.asyncDispose](): Promise<void>;
692
- // #region InternalEventEmitter
693
- addListener<E extends keyof ReadableEventMap>(
694
- eventName: E,
695
- listener: (...args: ReadableEventMap[E]) => void,
696
- ): this;
697
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
698
- emit<E extends keyof ReadableEventMap>(eventName: E, ...args: ReadableEventMap[E]): boolean;
699
- emit(eventName: string | symbol, ...args: any[]): boolean;
700
- listenerCount<E extends keyof ReadableEventMap>(
701
- eventName: E,
702
- listener?: (...args: ReadableEventMap[E]) => void,
703
- ): number;
704
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
705
- listeners<E extends keyof ReadableEventMap>(eventName: E): ((...args: ReadableEventMap[E]) => void)[];
706
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
707
- off<E extends keyof ReadableEventMap>(eventName: E, listener: (...args: ReadableEventMap[E]) => void): this;
708
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
709
- on<E extends keyof ReadableEventMap>(eventName: E, listener: (...args: ReadableEventMap[E]) => void): this;
710
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
711
- once<E extends keyof ReadableEventMap>(
712
- eventName: E,
713
- listener: (...args: ReadableEventMap[E]) => void,
714
- ): this;
715
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
716
- prependListener<E extends keyof ReadableEventMap>(
717
- eventName: E,
718
- listener: (...args: ReadableEventMap[E]) => void,
719
- ): this;
720
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
721
- prependOnceListener<E extends keyof ReadableEventMap>(
722
- eventName: E,
723
- listener: (...args: ReadableEventMap[E]) => void,
724
- ): this;
725
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
726
- rawListeners<E extends keyof ReadableEventMap>(eventName: E): ((...args: ReadableEventMap[E]) => void)[];
727
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
728
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
729
- removeAllListeners<E extends keyof ReadableEventMap>(eventName?: E): this;
730
- removeAllListeners(eventName?: string | symbol): this;
731
- removeListener<E extends keyof ReadableEventMap>(
732
- eventName: E,
733
- listener: (...args: ReadableEventMap[E]) => void,
734
- ): this;
735
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
736
- // #endregion
737
- }
738
- interface WritableOptions<T extends Writable = Writable> extends StreamOptions<T> {
739
- decodeStrings?: boolean | undefined;
740
- defaultEncoding?: BufferEncoding | undefined;
741
- write?:
742
- | ((
743
- this: T,
744
- chunk: any,
745
- encoding: BufferEncoding,
746
- callback: (error?: Error | null) => void,
747
- ) => void)
748
- | undefined;
749
- writev?:
750
- | ((
751
- this: T,
752
- chunks: {
753
- chunk: any;
754
- encoding: BufferEncoding;
755
- }[],
756
- callback: (error?: Error | null) => void,
757
- ) => void)
758
- | undefined;
759
- final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined;
760
- }
761
- interface WritableEventMap {
762
- "close": [];
763
- "drain": [];
764
- "error": [err: Error];
765
- "finish": [];
766
- "pipe": [src: Readable];
767
- "unpipe": [src: Readable];
768
- }
769
- /**
770
- * @since v0.9.4
771
- */
772
- class Writable extends Stream implements NodeJS.WritableStream {
773
- constructor(options?: WritableOptions);
774
- /**
775
- * A utility method for creating a `Writable` from a web `WritableStream`.
776
- * @since v17.0.0
777
- */
778
- static fromWeb(
779
- writableStream: web.WritableStream,
780
- options?: Pick<WritableOptions, "decodeStrings" | "highWaterMark" | "objectMode" | "signal">,
781
- ): Writable;
782
- /**
783
- * A utility method for creating a web `WritableStream` from a `Writable`.
784
- * @since v17.0.0
785
- */
786
- static toWeb(streamWritable: NodeJS.WritableStream): web.WritableStream;
787
- /**
788
- * Is `true` if it is safe to call `writable.write()`, which means
789
- * the stream has not been destroyed, errored, or ended.
790
- * @since v11.4.0
791
- */
792
- writable: boolean;
793
- /**
794
- * Returns whether the stream was destroyed or errored before emitting `'finish'`.
795
- * @since v18.0.0, v16.17.0
796
- */
797
- readonly writableAborted: boolean;
798
- /**
799
- * Is `true` after `writable.end()` has been called. This property
800
- * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead.
801
- * @since v12.9.0
802
- */
803
- readonly writableEnded: boolean;
804
- /**
805
- * Is set to `true` immediately before the `'finish'` event is emitted.
806
- * @since v12.6.0
807
- */
808
- readonly writableFinished: boolean;
809
- /**
810
- * Return the value of `highWaterMark` passed when creating this `Writable`.
811
- * @since v9.3.0
812
- */
813
- readonly writableHighWaterMark: number;
814
- /**
815
- * This property contains the number of bytes (or objects) in the queue
816
- * ready to be written. The value provides introspection data regarding
817
- * the status of the `highWaterMark`.
818
- * @since v9.4.0
819
- */
820
- readonly writableLength: number;
821
- /**
822
- * Getter for the property `objectMode` of a given `Writable` stream.
823
- * @since v12.3.0
824
- */
825
- readonly writableObjectMode: boolean;
826
- /**
827
- * Number of times `writable.uncork()` needs to be
828
- * called in order to fully uncork the stream.
829
- * @since v13.2.0, v12.16.0
830
- */
831
- readonly writableCorked: number;
832
- /**
833
- * Is `true` after `writable.destroy()` has been called.
834
- * @since v8.0.0
835
- */
836
- destroyed: boolean;
837
- /**
838
- * Is `true` after `'close'` has been emitted.
839
- * @since v18.0.0
840
- */
841
- readonly closed: boolean;
842
- /**
843
- * Returns error if the stream has been destroyed with an error.
844
- * @since v18.0.0
845
- */
846
- readonly errored: Error | null;
847
- /**
848
- * Is `true` if the stream's buffer has been full and stream will emit `'drain'`.
849
- * @since v15.2.0, v14.17.0
850
- */
851
- readonly writableNeedDrain: boolean;
852
- _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
853
- _writev?(
854
- chunks: {
855
- chunk: any;
856
- encoding: BufferEncoding;
857
- }[],
858
- callback: (error?: Error | null) => void,
859
- ): void;
860
- _construct?(callback: (error?: Error | null) => void): void;
861
- _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
862
- _final(callback: (error?: Error | null) => void): void;
863
- /**
864
- * The `writable.write()` method writes some data to the stream, and calls the
865
- * supplied `callback` once the data has been fully handled. If an error
866
- * occurs, the `callback` will be called with the error as its
867
- * first argument. The `callback` is called asynchronously and before `'error'` is
868
- * emitted.
869
- *
870
- * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`.
871
- * If `false` is returned, further attempts to write data to the stream should
872
- * stop until the `'drain'` event is emitted.
873
- *
874
- * While a stream is not draining, calls to `write()` will buffer `chunk`, and
875
- * return false. Once all currently buffered chunks are drained (accepted for
876
- * delivery by the operating system), the `'drain'` event will be emitted.
877
- * Once `write()` returns false, do not write more chunks
878
- * until the `'drain'` event is emitted. While calling `write()` on a stream that
879
- * is not draining is allowed, Node.js will buffer all written chunks until
880
- * maximum memory usage occurs, at which point it will abort unconditionally.
881
- * Even before it aborts, high memory usage will cause poor garbage collector
882
- * performance and high RSS (which is not typically released back to the system,
883
- * even after the memory is no longer required). Since TCP sockets may never
884
- * drain if the remote peer does not read the data, writing a socket that is
885
- * not draining may lead to a remotely exploitable vulnerability.
886
- *
887
- * Writing data while the stream is not draining is particularly
888
- * problematic for a `Transform`, because the `Transform` streams are paused
889
- * by default until they are piped or a `'data'` or `'readable'` event handler
890
- * is added.
891
- *
892
- * If the data to be written can be generated or fetched on demand, it is
893
- * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is
894
- * possible to respect backpressure and avoid memory issues using the `'drain'` event:
895
- *
896
- * ```js
897
- * function write(data, cb) {
898
- * if (!stream.write(data)) {
899
- * stream.once('drain', cb);
900
- * } else {
901
- * process.nextTick(cb);
902
- * }
903
- * }
904
- *
905
- * // Wait for cb to be called before doing any other write.
906
- * write('hello', () => {
907
- * console.log('Write completed, do more writes now.');
908
- * });
909
- * ```
910
- *
911
- * A `Writable` stream in object mode will always ignore the `encoding` argument.
912
- * @since v0.9.4
913
- * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
914
- * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
915
- * @param callback Callback for when this chunk of data is flushed.
916
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
917
- */
918
- write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean;
919
- /**
920
- * Writes data to the stream, with an explicit encoding for string data.
921
- * @see {@link Writable.write} for full details.
922
- * @since v0.9.4
923
- * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
924
- * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
925
- * @param encoding The encoding, if `chunk` is a string.
926
- * @param callback Callback for when this chunk of data is flushed.
927
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
928
- */
929
- write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean;
930
- /**
931
- * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream.
932
- * @since v0.11.15
933
- * @param encoding The new default encoding
934
- */
935
- setDefaultEncoding(encoding: BufferEncoding): this;
936
- /**
937
- * Calling the `writable.end()` method signals that no more data will be written
938
- * to the `Writable`. The optional `chunk` and `encoding` arguments allow one
939
- * final additional chunk of data to be written immediately before closing the
940
- * stream.
941
- *
942
- * Calling the {@link write} method after calling {@link end} will raise an error.
943
- *
944
- * ```js
945
- * // Write 'hello, ' and then end with 'world!'.
946
- * import fs from 'node:fs';
947
- * const file = fs.createWriteStream('example.txt');
948
- * file.write('hello, ');
949
- * file.end('world!');
950
- * // Writing more now is not allowed!
951
- * ```
952
- * @since v0.9.4
953
- * @param cb Callback for when the stream is finished.
954
- */
955
- end(cb?: () => void): this;
956
- /**
957
- * Signals that no more data will be written, with one final chunk of data.
958
- * @see {@link Writable.end} for full details.
959
- * @since v0.9.4
960
- * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
961
- * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
962
- * @param cb Callback for when the stream is finished.
963
- */
964
- end(chunk: any, cb?: () => void): this;
965
- /**
966
- * Signals that no more data will be written, with one final chunk of data.
967
- * @see {@link Writable.end} for full details.
968
- * @since v0.9.4
969
- * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
970
- * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
971
- * @param encoding The encoding if `chunk` is a string
972
- * @param cb Callback for when the stream is finished.
973
- */
974
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
975
- /**
976
- * The `writable.cork()` method forces all written data to be buffered in memory.
977
- * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
978
- *
979
- * The primary intent of `writable.cork()` is to accommodate a situation in which
980
- * several small chunks are written to the stream in rapid succession. Instead of
981
- * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them
982
- * all to `writable._writev()`, if present. This prevents a head-of-line blocking
983
- * situation where data is being buffered while waiting for the first small chunk
984
- * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput.
985
- *
986
- * See also: `writable.uncork()`, `writable._writev()`.
987
- * @since v0.11.2
988
- */
989
- cork(): void;
990
- /**
991
- * The `writable.uncork()` method flushes all data buffered since {@link cork} was called.
992
- *
993
- * When using `writable.cork()` and `writable.uncork()` to manage the buffering
994
- * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event
995
- * loop phase.
996
- *
997
- * ```js
998
- * stream.cork();
999
- * stream.write('some ');
1000
- * stream.write('data ');
1001
- * process.nextTick(() => stream.uncork());
1002
- * ```
1003
- *
1004
- * If the `writable.cork()` method is called multiple times on a stream, the
1005
- * same number of calls to `writable.uncork()` must be called to flush the buffered
1006
- * data.
1007
- *
1008
- * ```js
1009
- * stream.cork();
1010
- * stream.write('some ');
1011
- * stream.cork();
1012
- * stream.write('data ');
1013
- * process.nextTick(() => {
1014
- * stream.uncork();
1015
- * // The data will not be flushed until uncork() is called a second time.
1016
- * stream.uncork();
1017
- * });
1018
- * ```
1019
- *
1020
- * See also: `writable.cork()`.
1021
- * @since v0.11.2
1022
- */
1023
- uncork(): void;
1024
- /**
1025
- * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable
1026
- * stream has ended and subsequent calls to `write()` or `end()` will result in
1027
- * an `ERR_STREAM_DESTROYED` error.
1028
- * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error.
1029
- * Use `end()` instead of destroy if data should flush before close, or wait for
1030
- * the `'drain'` event before destroying the stream.
1031
- *
1032
- * Once `destroy()` has been called any further calls will be a no-op and no
1033
- * further errors except from `_destroy()` may be emitted as `'error'`.
1034
- *
1035
- * Implementors should not override this method,
1036
- * but instead implement `writable._destroy()`.
1037
- * @since v8.0.0
1038
- * @param error Optional, an error to emit with `'error'` event.
1039
- */
1040
- destroy(error?: Error): this;
1041
- /**
1042
- * Calls `writable.destroy()` with an `AbortError` and returns
1043
- * a promise that fulfills when the stream is finished.
1044
- * @since v22.4.0, v20.16.0
1045
- */
1046
- [Symbol.asyncDispose](): Promise<void>;
1047
- // #region InternalEventEmitter
1048
- addListener<E extends keyof WritableEventMap>(
1049
- eventName: E,
1050
- listener: (...args: WritableEventMap[E]) => void,
1051
- ): this;
1052
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1053
- emit<E extends keyof WritableEventMap>(eventName: E, ...args: WritableEventMap[E]): boolean;
1054
- emit(eventName: string | symbol, ...args: any[]): boolean;
1055
- listenerCount<E extends keyof WritableEventMap>(
1056
- eventName: E,
1057
- listener?: (...args: WritableEventMap[E]) => void,
1058
- ): number;
1059
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
1060
- listeners<E extends keyof WritableEventMap>(eventName: E): ((...args: WritableEventMap[E]) => void)[];
1061
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
1062
- off<E extends keyof WritableEventMap>(eventName: E, listener: (...args: WritableEventMap[E]) => void): this;
1063
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
1064
- on<E extends keyof WritableEventMap>(eventName: E, listener: (...args: WritableEventMap[E]) => void): this;
1065
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
1066
- once<E extends keyof WritableEventMap>(
1067
- eventName: E,
1068
- listener: (...args: WritableEventMap[E]) => void,
1069
- ): this;
1070
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
1071
- prependListener<E extends keyof WritableEventMap>(
1072
- eventName: E,
1073
- listener: (...args: WritableEventMap[E]) => void,
1074
- ): this;
1075
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1076
- prependOnceListener<E extends keyof WritableEventMap>(
1077
- eventName: E,
1078
- listener: (...args: WritableEventMap[E]) => void,
1079
- ): this;
1080
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1081
- rawListeners<E extends keyof WritableEventMap>(eventName: E): ((...args: WritableEventMap[E]) => void)[];
1082
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
1083
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
1084
- removeAllListeners<E extends keyof WritableEventMap>(eventName?: E): this;
1085
- removeAllListeners(eventName?: string | symbol): this;
1086
- removeListener<E extends keyof WritableEventMap>(
1087
- eventName: E,
1088
- listener: (...args: WritableEventMap[E]) => void,
1089
- ): this;
1090
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1091
- // #endregion
1092
- }
1093
- interface DuplexOptions<T extends Duplex = Duplex> extends ReadableOptions<T>, WritableOptions<T> {
1094
- allowHalfOpen?: boolean | undefined;
1095
- readableObjectMode?: boolean | undefined;
1096
- writableObjectMode?: boolean | undefined;
1097
- readableHighWaterMark?: number | undefined;
1098
- writableHighWaterMark?: number | undefined;
1099
- writableCorked?: number | undefined;
1100
- }
1101
- interface DuplexToWebOptions {
1102
- readableType?: web.ReadableStreamType | undefined;
1103
- }
1104
- interface DuplexEventMap extends ReadableEventMap, WritableEventMap {}
1105
- /**
1106
- * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
1107
- *
1108
- * Examples of `Duplex` streams include:
1109
- *
1110
- * * `TCP sockets`
1111
- * * `zlib streams`
1112
- * * `crypto streams`
1113
- * @since v0.9.4
1114
- */
1115
- class Duplex extends Stream implements NodeJS.ReadWriteStream {
1116
- constructor(options?: DuplexOptions);
1117
- /**
1118
- * A utility method for creating duplex streams.
1119
- *
1120
- * - `Stream` converts writable stream into writable `Duplex` and readable stream
1121
- * to `Duplex`.
1122
- * - `Blob` converts into readable `Duplex`.
1123
- * - `string` converts into readable `Duplex`.
1124
- * - `ArrayBuffer` converts into readable `Duplex`.
1125
- * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`.
1126
- * - `AsyncGeneratorFunction` converts into a readable/writable transform
1127
- * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield
1128
- * `null`.
1129
- * - `AsyncFunction` converts into a writable `Duplex`. Must return
1130
- * either `null` or `undefined`
1131
- * - `Object ({ writable, readable })` converts `readable` and
1132
- * `writable` into `Stream` and then combines them into `Duplex` where the
1133
- * `Duplex` will write to the `writable` and read from the `readable`.
1134
- * - `Promise` converts into readable `Duplex`. Value `null` is ignored.
1135
- *
1136
- * @since v16.8.0
1137
- */
1138
- static from(
1139
- src:
1140
- | NodeJS.ReadableStream
1141
- | NodeJS.WritableStream
1142
- | Blob
1143
- | string
1144
- | Iterable<any>
1145
- | AsyncIterable<any>
1146
- | ((source: AsyncIterable<any>) => AsyncIterable<any>)
1147
- | ((source: AsyncIterable<any>) => Promise<void>)
1148
- | Promise<any>
1149
- | web.ReadableWritablePair
1150
- | web.ReadableStream
1151
- | web.WritableStream,
1152
- ): Duplex;
1153
- /**
1154
- * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
1155
- * @since v17.0.0
1156
- */
1157
- static toWeb(streamDuplex: NodeJS.ReadWriteStream, options?: DuplexToWebOptions): web.ReadableWritablePair;
1158
- /**
1159
- * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
1160
- * @since v17.0.0
1161
- */
1162
- static fromWeb(
1163
- duplexStream: web.ReadableWritablePair,
1164
- options?: Pick<
1165
- DuplexOptions,
1166
- "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal"
1167
- >,
1168
- ): Duplex;
1169
- /**
1170
- * If `false` then the stream will automatically end the writable side when the
1171
- * readable side ends. Set initially by the `allowHalfOpen` constructor option,
1172
- * which defaults to `true`.
1173
- *
1174
- * This can be changed manually to change the half-open behavior of an existing
1175
- * `Duplex` stream instance, but must be changed before the `'end'` event is emitted.
1176
- * @since v0.9.4
1177
- */
1178
- allowHalfOpen: boolean;
1179
- // #region InternalEventEmitter
1180
- addListener<E extends keyof DuplexEventMap>(
1181
- eventName: E,
1182
- listener: (...args: DuplexEventMap[E]) => void,
1183
- ): this;
1184
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1185
- emit<E extends keyof DuplexEventMap>(eventName: E, ...args: DuplexEventMap[E]): boolean;
1186
- emit(eventName: string | symbol, ...args: any[]): boolean;
1187
- listenerCount<E extends keyof DuplexEventMap>(
1188
- eventName: E,
1189
- listener?: (...args: DuplexEventMap[E]) => void,
1190
- ): number;
1191
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
1192
- listeners<E extends keyof DuplexEventMap>(eventName: E): ((...args: DuplexEventMap[E]) => void)[];
1193
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
1194
- off<E extends keyof DuplexEventMap>(eventName: E, listener: (...args: DuplexEventMap[E]) => void): this;
1195
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
1196
- on<E extends keyof DuplexEventMap>(eventName: E, listener: (...args: DuplexEventMap[E]) => void): this;
1197
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
1198
- once<E extends keyof DuplexEventMap>(eventName: E, listener: (...args: DuplexEventMap[E]) => void): this;
1199
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
1200
- prependListener<E extends keyof DuplexEventMap>(
1201
- eventName: E,
1202
- listener: (...args: DuplexEventMap[E]) => void,
1203
- ): this;
1204
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1205
- prependOnceListener<E extends keyof DuplexEventMap>(
1206
- eventName: E,
1207
- listener: (...args: DuplexEventMap[E]) => void,
1208
- ): this;
1209
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1210
- rawListeners<E extends keyof DuplexEventMap>(eventName: E): ((...args: DuplexEventMap[E]) => void)[];
1211
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
1212
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
1213
- removeAllListeners<E extends keyof DuplexEventMap>(eventName?: E): this;
1214
- removeAllListeners(eventName?: string | symbol): this;
1215
- removeListener<E extends keyof DuplexEventMap>(
1216
- eventName: E,
1217
- listener: (...args: DuplexEventMap[E]) => void,
1218
- ): this;
1219
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
1220
- // #endregion
1221
- }
1222
- interface Duplex extends Readable, Writable {}
1223
- /**
1224
- * The utility function `duplexPair` returns an Array with two items,
1225
- * each being a `Duplex` stream connected to the other side:
1226
- *
1227
- * ```js
1228
- * const [ sideA, sideB ] = duplexPair();
1229
- * ```
1230
- *
1231
- * Whatever is written to one stream is made readable on the other. It provides
1232
- * behavior analogous to a network connection, where the data written by the client
1233
- * becomes readable by the server, and vice-versa.
1234
- *
1235
- * The Duplex streams are symmetrical; one or the other may be used without any
1236
- * difference in behavior.
1237
- * @param options A value to pass to both {@link Duplex} constructors,
1238
- * to set options such as buffering.
1239
- * @since v22.6.0
1240
- */
1241
- function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
1242
- type TransformCallback = (error?: Error | null, data?: any) => void;
1243
- interface TransformOptions<T extends Transform = Transform> extends DuplexOptions<T> {
1244
- transform?:
1245
- | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void)
1246
- | undefined;
1247
- flush?: ((this: T, callback: TransformCallback) => void) | undefined;
1248
- }
1249
- /**
1250
- * Transform streams are `Duplex` streams where the output is in some way
1251
- * related to the input. Like all `Duplex` streams, `Transform` streams
1252
- * implement both the `Readable` and `Writable` interfaces.
1253
- *
1254
- * Examples of `Transform` streams include:
1255
- *
1256
- * * `zlib streams`
1257
- * * `crypto streams`
1258
- * @since v0.9.4
1259
- */
1260
- class Transform extends Duplex {
1261
- constructor(options?: TransformOptions);
1262
- _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
1263
- _flush(callback: TransformCallback): void;
1264
- }
1265
- /**
1266
- * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is
1267
- * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams.
1268
- */
1269
- class PassThrough extends Transform {}
1270
- /**
1271
- * A stream to attach a signal to.
1272
- *
1273
- * Attaches an AbortSignal to a readable or writeable stream. This lets code
1274
- * control stream destruction using an `AbortController`.
1275
- *
1276
- * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the
1277
- * stream, and `controller.error(new AbortError())` for webstreams.
1278
- *
1279
- * ```js
1280
- * import fs from 'node:fs';
1281
- *
1282
- * const controller = new AbortController();
1283
- * const read = addAbortSignal(
1284
- * controller.signal,
1285
- * fs.createReadStream(('object.json')),
1286
- * );
1287
- * // Later, abort the operation closing the stream
1288
- * controller.abort();
1289
- * ```
1290
- *
1291
- * Or using an `AbortSignal` with a readable stream as an async iterable:
1292
- *
1293
- * ```js
1294
- * const controller = new AbortController();
1295
- * setTimeout(() => controller.abort(), 10_000); // set a timeout
1296
- * const stream = addAbortSignal(
1297
- * controller.signal,
1298
- * fs.createReadStream(('object.json')),
1299
- * );
1300
- * (async () => {
1301
- * try {
1302
- * for await (const chunk of stream) {
1303
- * await process(chunk);
1304
- * }
1305
- * } catch (e) {
1306
- * if (e.name === 'AbortError') {
1307
- * // The operation was cancelled
1308
- * } else {
1309
- * throw e;
1310
- * }
1311
- * }
1312
- * })();
1313
- * ```
1314
- *
1315
- * Or using an `AbortSignal` with a ReadableStream:
1316
- *
1317
- * ```js
1318
- * const controller = new AbortController();
1319
- * const rs = new ReadableStream({
1320
- * start(controller) {
1321
- * controller.enqueue('hello');
1322
- * controller.enqueue('world');
1323
- * controller.close();
1324
- * },
1325
- * });
1326
- *
1327
- * addAbortSignal(controller.signal, rs);
1328
- *
1329
- * finished(rs, (err) => {
1330
- * if (err) {
1331
- * if (err.name === 'AbortError') {
1332
- * // The operation was cancelled
1333
- * }
1334
- * }
1335
- * });
1336
- *
1337
- * const reader = rs.getReader();
1338
- *
1339
- * reader.read().then(({ value, done }) => {
1340
- * console.log(value); // hello
1341
- * console.log(done); // false
1342
- * controller.abort();
1343
- * });
1344
- * ```
1345
- * @since v15.4.0
1346
- * @param signal A signal representing possible cancellation
1347
- * @param stream A stream to attach a signal to.
1348
- */
1349
- function addAbortSignal<
1350
- T extends NodeJS.ReadableStream | NodeJS.WritableStream | web.ReadableStream | web.WritableStream,
1351
- >(signal: AbortSignal, stream: T): T;
1352
- /**
1353
- * Returns the default highWaterMark used by streams.
1354
- * Defaults to `65536` (64 KiB), or `16` for `objectMode`.
1355
- * @since v19.9.0
1356
- */
1357
- function getDefaultHighWaterMark(objectMode: boolean): number;
1358
- /**
1359
- * Sets the default highWaterMark used by streams.
1360
- * @since v19.9.0
1361
- * @param value highWaterMark value
1362
- */
1363
- function setDefaultHighWaterMark(objectMode: boolean, value: number): void;
1364
- interface FinishedOptions extends Abortable {
1365
- error?: boolean | undefined;
1366
- readable?: boolean | undefined;
1367
- writable?: boolean | undefined;
1368
- }
1369
- /**
1370
- * A readable and/or writable stream/webstream.
1371
- *
1372
- * A function to get notified when a stream is no longer readable, writable
1373
- * or has experienced an error or a premature close event.
1374
- *
1375
- * ```js
1376
- * import { finished } from 'node:stream';
1377
- * import fs from 'node:fs';
1378
- *
1379
- * const rs = fs.createReadStream('archive.tar');
1380
- *
1381
- * finished(rs, (err) => {
1382
- * if (err) {
1383
- * console.error('Stream failed.', err);
1384
- * } else {
1385
- * console.log('Stream is done reading.');
1386
- * }
1387
- * });
1388
- *
1389
- * rs.resume(); // Drain the stream.
1390
- * ```
1391
- *
1392
- * Especially useful in error handling scenarios where a stream is destroyed
1393
- * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
1394
- *
1395
- * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streamfinishedstream-options).
1396
- *
1397
- * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
1398
- * invoked. The reason for this is so that unexpected `'error'` events (due to
1399
- * incorrect stream implementations) do not cause unexpected crashes.
1400
- * If this is unwanted behavior then the returned cleanup function needs to be
1401
- * invoked in the callback:
1402
- *
1403
- * ```js
1404
- * const cleanup = finished(rs, (err) => {
1405
- * cleanup();
1406
- * // ...
1407
- * });
1408
- * ```
1409
- * @since v10.0.0
1410
- * @param stream A readable and/or writable stream.
1411
- * @param callback A callback function that takes an optional error argument.
1412
- * @returns A cleanup function which removes all registered listeners.
1413
- */
1414
- function finished(
1415
- stream: NodeJS.ReadableStream | NodeJS.WritableStream | web.ReadableStream | web.WritableStream,
1416
- options: FinishedOptions,
1417
- callback: (err?: NodeJS.ErrnoException | null) => void,
1418
- ): () => void;
1419
- function finished(
1420
- stream: NodeJS.ReadableStream | NodeJS.WritableStream | web.ReadableStream | web.WritableStream,
1421
- callback: (err?: NodeJS.ErrnoException | null) => void,
1422
- ): () => void;
1423
- namespace finished {
1424
- import __promisify__ = promises.finished;
1425
- export { __promisify__ };
1426
- }
1427
- type PipelineSourceFunction<O> = (options?: Abortable) => Iterable<O> | AsyncIterable<O>;
1428
- type PipelineSource<O> =
1429
- | NodeJS.ReadableStream
1430
- | web.ReadableStream<O>
1431
- | web.TransformStream<any, O>
1432
- | Iterable<O>
1433
- | AsyncIterable<O>
1434
- | PipelineSourceFunction<O>;
1435
- type PipelineSourceArgument<T> = (T extends (...args: any[]) => infer R ? R : T) extends infer S
1436
- ? S extends web.TransformStream<any, infer O> ? web.ReadableStream<O> : S
1437
- : never;
1438
- type PipelineTransformGenerator<S extends PipelineTransformSource<any>, O> = (
1439
- source: PipelineSourceArgument<S>,
1440
- options?: Abortable,
1441
- ) => AsyncIterable<O>;
1442
- type PipelineTransformStreams<I, O> =
1443
- | NodeJS.ReadWriteStream
1444
- | web.TransformStream<I, O>;
1445
- type PipelineTransform<S extends PipelineTransformSource<any>, O> = S extends
1446
- PipelineSource<infer I> | PipelineTransformStreams<any, infer I> | ((...args: any[]) => infer I)
1447
- ? PipelineTransformStreams<I, O> | PipelineTransformGenerator<S, O>
1448
- : never;
1449
- type PipelineTransformSource<O> = PipelineSource<O> | PipelineTransform<any, O>;
1450
- type PipelineDestinationFunction<S extends PipelineTransformSource<any>, R> = (
1451
- source: PipelineSourceArgument<S>,
1452
- options?: Abortable,
1453
- ) => R;
1454
- type PipelineDestination<S extends PipelineTransformSource<any>, R> = S extends
1455
- PipelineSource<infer I> | PipelineTransform<any, infer I> ?
1456
- | NodeJS.WritableStream
1457
- | web.WritableStream<I>
1458
- | web.TransformStream<I, any>
1459
- | PipelineDestinationFunction<S, R>
1460
- : never;
1461
- type PipelineCallback<S extends PipelineDestination<any, any>> = (
1462
- err: NodeJS.ErrnoException | null,
1463
- value: S extends (...args: any[]) => PromiseLike<infer R> ? R : undefined,
1464
- ) => void;
1465
- type PipelineResult<S extends PipelineDestination<any, any>> = S extends NodeJS.WritableStream ? S : Duplex;
1466
- /**
1467
- * A module method to pipe between streams and generators forwarding errors and
1468
- * properly cleaning up and provide a callback when the pipeline is complete.
1469
- *
1470
- * ```js
1471
- * import { pipeline } from 'node:stream';
1472
- * import fs from 'node:fs';
1473
- * import zlib from 'node:zlib';
1474
- *
1475
- * // Use the pipeline API to easily pipe a series of streams
1476
- * // together and get notified when the pipeline is fully done.
1477
- *
1478
- * // A pipeline to gzip a potentially huge tar file efficiently:
1479
- *
1480
- * pipeline(
1481
- * fs.createReadStream('archive.tar'),
1482
- * zlib.createGzip(),
1483
- * fs.createWriteStream('archive.tar.gz'),
1484
- * (err) => {
1485
- * if (err) {
1486
- * console.error('Pipeline failed.', err);
1487
- * } else {
1488
- * console.log('Pipeline succeeded.');
1489
- * }
1490
- * },
1491
- * );
1492
- * ```
1493
- *
1494
- * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streampipelinesource-transforms-destination-options).
1495
- *
1496
- * `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
1497
- *
1498
- * * `Readable` streams which have emitted `'end'` or `'close'`.
1499
- * * `Writable` streams which have emitted `'finish'` or `'close'`.
1500
- *
1501
- * `stream.pipeline()` leaves dangling event listeners on the streams
1502
- * after the `callback` has been invoked. In the case of reuse of streams after
1503
- * failure, this can cause event listener leaks and swallowed errors. If the last
1504
- * stream is readable, dangling event listeners will be removed so that the last
1505
- * stream can be consumed later.
1506
- *
1507
- * `stream.pipeline()` closes all the streams when an error is raised.
1508
- * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior
1509
- * once it would destroy the socket without sending the expected response.
1510
- * See the example below:
1511
- *
1512
- * ```js
1513
- * import fs from 'node:fs';
1514
- * import http from 'node:http';
1515
- * import { pipeline } from 'node:stream';
1516
- *
1517
- * const server = http.createServer((req, res) => {
1518
- * const fileStream = fs.createReadStream('./fileNotExist.txt');
1519
- * pipeline(fileStream, res, (err) => {
1520
- * if (err) {
1521
- * console.log(err); // No such file
1522
- * // this message can't be sent once `pipeline` already destroyed the socket
1523
- * return res.end('error!!!');
1524
- * }
1525
- * });
1526
- * });
1527
- * ```
1528
- * @since v10.0.0
1529
- * @param callback Called when the pipeline is fully done.
1530
- */
1531
- function pipeline<S extends PipelineSource<any>, D extends PipelineDestination<S, any>>(
1532
- source: S,
1533
- destination: D,
1534
- callback: PipelineCallback<D>,
1535
- ): PipelineResult<D>;
1536
- function pipeline<
1537
- S extends PipelineSource<any>,
1538
- T extends PipelineTransform<S, any>,
1539
- D extends PipelineDestination<T, any>,
1540
- >(
1541
- source: S,
1542
- transform: T,
1543
- destination: D,
1544
- callback: PipelineCallback<D>,
1545
- ): PipelineResult<D>;
1546
- function pipeline<
1547
- S extends PipelineSource<any>,
1548
- T1 extends PipelineTransform<S, any>,
1549
- T2 extends PipelineTransform<T1, any>,
1550
- D extends PipelineDestination<T2, any>,
1551
- >(
1552
- source: S,
1553
- transform1: T1,
1554
- transform2: T2,
1555
- destination: D,
1556
- callback: PipelineCallback<D>,
1557
- ): PipelineResult<D>;
1558
- function pipeline<
1559
- S extends PipelineSource<any>,
1560
- T1 extends PipelineTransform<S, any>,
1561
- T2 extends PipelineTransform<T1, any>,
1562
- T3 extends PipelineTransform<T2, any>,
1563
- D extends PipelineDestination<T3, any>,
1564
- >(
1565
- source: S,
1566
- transform1: T1,
1567
- transform2: T2,
1568
- transform3: T3,
1569
- destination: D,
1570
- callback: PipelineCallback<D>,
1571
- ): PipelineResult<D>;
1572
- function pipeline<
1573
- S extends PipelineSource<any>,
1574
- T1 extends PipelineTransform<S, any>,
1575
- T2 extends PipelineTransform<T1, any>,
1576
- T3 extends PipelineTransform<T2, any>,
1577
- T4 extends PipelineTransform<T3, any>,
1578
- D extends PipelineDestination<T4, any>,
1579
- >(
1580
- source: S,
1581
- transform1: T1,
1582
- transform2: T2,
1583
- transform3: T3,
1584
- transform4: T4,
1585
- destination: D,
1586
- callback: PipelineCallback<D>,
1587
- ): PipelineResult<D>;
1588
- function pipeline(
1589
- streams: ReadonlyArray<PipelineSource<any> | PipelineTransform<any, any> | PipelineDestination<any, any>>,
1590
- callback: (err: NodeJS.ErrnoException | null) => void,
1591
- ): NodeJS.WritableStream;
1592
- function pipeline(
1593
- ...streams: [
1594
- ...[PipelineSource<any>, ...PipelineTransform<any, any>[], PipelineDestination<any, any>],
1595
- callback: ((err: NodeJS.ErrnoException | null) => void),
1596
- ]
1597
- ): NodeJS.WritableStream;
1598
- namespace pipeline {
1599
- import __promisify__ = promises.pipeline;
1600
- export { __promisify__ };
1601
- }
1602
- type ComposeSource<O> =
1603
- | NodeJS.ReadableStream
1604
- | web.ReadableStream<O>
1605
- | Iterable<O>
1606
- | AsyncIterable<O>
1607
- | (() => AsyncIterable<O>);
1608
- type ComposeTransformStreams<I, O> = NodeJS.ReadWriteStream | web.TransformStream<I, O>;
1609
- type ComposeTransformGenerator<I, O> = (source: AsyncIterable<I>) => AsyncIterable<O>;
1610
- type ComposeTransform<S extends ComposeTransformSource<any>, O> = S extends
1611
- ComposeSource<infer I> | ComposeTransformStreams<any, infer I> | ComposeTransformGenerator<any, infer I>
1612
- ? ComposeTransformStreams<I, O> | ComposeTransformGenerator<I, O>
1613
- : never;
1614
- type ComposeTransformSource<O> = ComposeSource<O> | ComposeTransform<any, O>;
1615
- type ComposeDestination<S extends ComposeTransformSource<any>> = S extends ComposeTransformSource<infer I> ?
1616
- | NodeJS.WritableStream
1617
- | web.WritableStream<I>
1618
- | web.TransformStream<I, any>
1619
- | ((source: AsyncIterable<I>) => void)
1620
- : never;
1621
- /**
1622
- * Combines two or more streams into a `Duplex` stream that writes to the
1623
- * first stream and reads from the last. Each provided stream is piped into
1624
- * the next, using `stream.pipeline`. If any of the streams error then all
1625
- * are destroyed, including the outer `Duplex` stream.
1626
- *
1627
- * Because `stream.compose` returns a new stream that in turn can (and
1628
- * should) be piped into other streams, it enables composition. In contrast,
1629
- * when passing streams to `stream.pipeline`, typically the first stream is
1630
- * a readable stream and the last a writable stream, forming a closed
1631
- * circuit.
1632
- *
1633
- * If passed a `Function` it must be a factory method taking a `source`
1634
- * `Iterable`.
1635
- *
1636
- * ```js
1637
- * import { compose, Transform } from 'node:stream';
1638
- *
1639
- * const removeSpaces = new Transform({
1640
- * transform(chunk, encoding, callback) {
1641
- * callback(null, String(chunk).replace(' ', ''));
1642
- * },
1643
- * });
1644
- *
1645
- * async function* toUpper(source) {
1646
- * for await (const chunk of source) {
1647
- * yield String(chunk).toUpperCase();
1648
- * }
1649
- * }
1650
- *
1651
- * let res = '';
1652
- * for await (const buf of compose(removeSpaces, toUpper).end('hello world')) {
1653
- * res += buf;
1654
- * }
1655
- *
1656
- * console.log(res); // prints 'HELLOWORLD'
1657
- * ```
1658
- *
1659
- * `stream.compose` can be used to convert async iterables, generators and
1660
- * functions into streams.
1661
- *
1662
- * * `AsyncIterable` converts into a readable `Duplex`. Cannot yield
1663
- * `null`.
1664
- * * `AsyncGeneratorFunction` converts into a readable/writable transform `Duplex`.
1665
- * Must take a source `AsyncIterable` as first parameter. Cannot yield
1666
- * `null`.
1667
- * * `AsyncFunction` converts into a writable `Duplex`. Must return
1668
- * either `null` or `undefined`.
1669
- *
1670
- * ```js
1671
- * import { compose } from 'node:stream';
1672
- * import { finished } from 'node:stream/promises';
1673
- *
1674
- * // Convert AsyncIterable into readable Duplex.
1675
- * const s1 = compose(async function*() {
1676
- * yield 'Hello';
1677
- * yield 'World';
1678
- * }());
1679
- *
1680
- * // Convert AsyncGenerator into transform Duplex.
1681
- * const s2 = compose(async function*(source) {
1682
- * for await (const chunk of source) {
1683
- * yield String(chunk).toUpperCase();
1684
- * }
1685
- * });
1686
- *
1687
- * let res = '';
1688
- *
1689
- * // Convert AsyncFunction into writable Duplex.
1690
- * const s3 = compose(async function(source) {
1691
- * for await (const chunk of source) {
1692
- * res += chunk;
1693
- * }
1694
- * });
1695
- *
1696
- * await finished(compose(s1, s2, s3));
1697
- *
1698
- * console.log(res); // prints 'HELLOWORLD'
1699
- * ```
1700
- *
1701
- * For convenience, the `readable.compose(stream)` method is available on
1702
- * `Readable` and `Duplex` streams as a wrapper for this function.
1703
- * @since v16.9.0
1704
- * @experimental
1705
- */
1706
- /* eslint-disable @definitelytyped/no-unnecessary-generics */
1707
- function compose(stream: ComposeSource<any> | ComposeDestination<any>): Duplex;
1708
- function compose<
1709
- S extends ComposeSource<any> | ComposeTransform<any, any>,
1710
- D extends ComposeTransform<S, any> | ComposeDestination<S>,
1711
- >(
1712
- source: S,
1713
- destination: D,
1714
- ): Duplex;
1715
- function compose<
1716
- S extends ComposeSource<any> | ComposeTransform<any, any>,
1717
- T extends ComposeTransform<S, any>,
1718
- D extends ComposeTransform<T, any> | ComposeDestination<T>,
1719
- >(source: S, transform: T, destination: D): Duplex;
1720
- function compose<
1721
- S extends ComposeSource<any> | ComposeTransform<any, any>,
1722
- T1 extends ComposeTransform<S, any>,
1723
- T2 extends ComposeTransform<T1, any>,
1724
- D extends ComposeTransform<T2, any> | ComposeDestination<T2>,
1725
- >(source: S, transform1: T1, transform2: T2, destination: D): Duplex;
1726
- function compose<
1727
- S extends ComposeSource<any> | ComposeTransform<any, any>,
1728
- T1 extends ComposeTransform<S, any>,
1729
- T2 extends ComposeTransform<T1, any>,
1730
- T3 extends ComposeTransform<T2, any>,
1731
- D extends ComposeTransform<T3, any> | ComposeDestination<T3>,
1732
- >(source: S, transform1: T1, transform2: T2, transform3: T3, destination: D): Duplex;
1733
- function compose<
1734
- S extends ComposeSource<any> | ComposeTransform<any, any>,
1735
- T1 extends ComposeTransform<S, any>,
1736
- T2 extends ComposeTransform<T1, any>,
1737
- T3 extends ComposeTransform<T2, any>,
1738
- T4 extends ComposeTransform<T3, any>,
1739
- D extends ComposeTransform<T4, any> | ComposeDestination<T4>,
1740
- >(source: S, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: D): Duplex;
1741
- function compose(
1742
- ...streams: [
1743
- ComposeSource<any>,
1744
- ...ComposeTransform<any, any>[],
1745
- ComposeDestination<any>,
1746
- ]
1747
- ): Duplex;
1748
- /* eslint-enable @definitelytyped/no-unnecessary-generics */
1749
- /**
1750
- * Returns whether the stream has encountered an error.
1751
- * @since v17.3.0, v16.14.0
1752
- */
1753
- function isErrored(
1754
- stream: NodeJS.ReadableStream | NodeJS.WritableStream | web.ReadableStream | web.WritableStream,
1755
- ): boolean;
1756
- /**
1757
- * Returns whether the stream is readable.
1758
- * @since v17.4.0, v16.14.0
1759
- * @returns Only returns `null` if `stream` is not a valid `Readable`, `Duplex` or `ReadableStream`.
1760
- */
1761
- function isReadable(stream: NodeJS.ReadableStream | web.ReadableStream): boolean | null;
1762
- /**
1763
- * Returns whether the stream is writable.
1764
- * @since v20.0.0
1765
- * @returns Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.
1766
- */
1767
- function isWritable(stream: NodeJS.WritableStream | web.WritableStream): boolean | null;
1768
- }
1769
- global {
1770
- namespace NodeJS {
1771
- // These interfaces are vestigial, and correspond roughly to the "streams2" interfaces
1772
- // from early versions of Node.js, but they are still used widely across the ecosystem.
1773
- // Accordingly, they are commonly used as "in-types" for @types/node APIs, so that
1774
- // eg. streams returned from older libraries will still be considered valid input to
1775
- // functions which accept stream arguments.
1776
- // It's not possible to change or remove these without astronomical levels of breakage.
1777
- interface ReadableStream extends EventEmitter {
1778
- readable: boolean;
1779
- read(size?: number): string | Buffer;
1780
- setEncoding(encoding: BufferEncoding): this;
1781
- pause(): this;
1782
- resume(): this;
1783
- isPaused(): boolean;
1784
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
1785
- unpipe(destination?: WritableStream): this;
1786
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
1787
- wrap(oldStream: ReadableStream): this;
1788
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
1789
- }
1790
- interface WritableStream extends EventEmitter {
1791
- writable: boolean;
1792
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
1793
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
1794
- end(cb?: () => void): this;
1795
- end(data: string | Uint8Array, cb?: () => void): this;
1796
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
1797
- }
1798
- interface ReadWriteStream extends ReadableStream, WritableStream {}
1799
- }
1800
- }
1801
- export = Stream;
1802
- }
1803
- declare module "stream" {
1804
- import stream = require("node:stream");
1805
- export = stream;
1806
- }