@openclaw/twitch 2026.7.2-beta.3 → 2026.7.2-beta.5

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 (1808) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/channel-plugin-api.js +1 -1
  3. package/dist/{monitor-8jPqCs8-.js → monitor-D9sSDntu.js} +214 -15
  4. package/dist/{plugin-D1zR5fBz.js → plugin-CNFX3B8N.js} +16 -42
  5. package/dist/setup-plugin-api.js +1 -1
  6. package/dist/{setup-surface-CxAa0pLj.js → setup-surface-Dh9kVN1p.js} +67 -68
  7. package/openclaw.plugin.json +0 -5
  8. package/package.json +23 -13
  9. package/node_modules/@d-fischer/cache-decorators/LICENSE +0 -21
  10. package/node_modules/@d-fischer/cache-decorators/es/decorators/Cacheable.mjs +0 -63
  11. package/node_modules/@d-fischer/cache-decorators/es/decorators/Cached.mjs +0 -19
  12. package/node_modules/@d-fischer/cache-decorators/es/decorators/CachedGetter.mjs +0 -20
  13. package/node_modules/@d-fischer/cache-decorators/es/decorators/ClearsCache.mjs +0 -12
  14. package/node_modules/@d-fischer/cache-decorators/es/index.mjs +0 -5
  15. package/node_modules/@d-fischer/cache-decorators/es/types/CacheEntry.mjs +0 -1
  16. package/node_modules/@d-fischer/cache-decorators/es/utils/createCacheKey.mjs +0 -27
  17. package/node_modules/@d-fischer/cache-decorators/lib/decorators/Cacheable.d.ts +0 -7
  18. package/node_modules/@d-fischer/cache-decorators/lib/decorators/Cacheable.js +0 -67
  19. package/node_modules/@d-fischer/cache-decorators/lib/decorators/Cached.d.ts +0 -1
  20. package/node_modules/@d-fischer/cache-decorators/lib/decorators/Cached.js +0 -23
  21. package/node_modules/@d-fischer/cache-decorators/lib/decorators/CachedGetter.d.ts +0 -1
  22. package/node_modules/@d-fischer/cache-decorators/lib/decorators/CachedGetter.js +0 -24
  23. package/node_modules/@d-fischer/cache-decorators/lib/decorators/ClearsCache.d.ts +0 -1
  24. package/node_modules/@d-fischer/cache-decorators/lib/decorators/ClearsCache.js +0 -16
  25. package/node_modules/@d-fischer/cache-decorators/lib/index.d.ts +0 -6
  26. package/node_modules/@d-fischer/cache-decorators/lib/index.js +0 -13
  27. package/node_modules/@d-fischer/cache-decorators/lib/types/CacheEntry.d.ts +0 -4
  28. package/node_modules/@d-fischer/cache-decorators/lib/types/CacheEntry.js +0 -2
  29. package/node_modules/@d-fischer/cache-decorators/lib/utils/createCacheKey.d.ts +0 -1
  30. package/node_modules/@d-fischer/cache-decorators/lib/utils/createCacheKey.js +0 -31
  31. package/node_modules/@d-fischer/cache-decorators/package.json +0 -57
  32. package/node_modules/@d-fischer/connection/LICENSE +0 -21
  33. package/node_modules/@d-fischer/connection/es/AbstractConnection.mjs +0 -52
  34. package/node_modules/@d-fischer/connection/es/Connection.mjs +0 -1
  35. package/node_modules/@d-fischer/connection/es/DirectConnection-stub.mjs +0 -5
  36. package/node_modules/@d-fischer/connection/es/DirectConnection.mjs +0 -85
  37. package/node_modules/@d-fischer/connection/es/PersistentConnection.mjs +0 -136
  38. package/node_modules/@d-fischer/connection/es/WebSocketConnection.mjs +0 -88
  39. package/node_modules/@d-fischer/connection/es/browser.mjs +0 -4
  40. package/node_modules/@d-fischer/connection/es/index.mjs +0 -4
  41. package/node_modules/@d-fischer/connection/lib/AbstractConnection.d.ts +0 -27
  42. package/node_modules/@d-fischer/connection/lib/AbstractConnection.js +0 -56
  43. package/node_modules/@d-fischer/connection/lib/Connection.d.ts +0 -26
  44. package/node_modules/@d-fischer/connection/lib/Connection.js +0 -2
  45. package/node_modules/@d-fischer/connection/lib/DirectConnection-stub.d.ts +0 -17
  46. package/node_modules/@d-fischer/connection/lib/DirectConnection-stub.js +0 -9
  47. package/node_modules/@d-fischer/connection/lib/DirectConnection.d.ts +0 -16
  48. package/node_modules/@d-fischer/connection/lib/DirectConnection.js +0 -89
  49. package/node_modules/@d-fischer/connection/lib/PersistentConnection.d.ts +0 -39
  50. package/node_modules/@d-fischer/connection/lib/PersistentConnection.js +0 -140
  51. package/node_modules/@d-fischer/connection/lib/WebSocketConnection.d.ts +0 -18
  52. package/node_modules/@d-fischer/connection/lib/WebSocketConnection.js +0 -92
  53. package/node_modules/@d-fischer/connection/lib/browser.d.ts +0 -8
  54. package/node_modules/@d-fischer/connection/lib/browser.js +0 -11
  55. package/node_modules/@d-fischer/connection/lib/index.d.ts +0 -8
  56. package/node_modules/@d-fischer/connection/lib/index.js +0 -11
  57. package/node_modules/@d-fischer/connection/package.json +0 -68
  58. package/node_modules/@d-fischer/deprecate/.idea/jsLibraryMappings.xml +0 -6
  59. package/node_modules/@d-fischer/deprecate/.idea/modules.xml +0 -8
  60. package/node_modules/@d-fischer/deprecate/.idea/node-deprecate.iml +0 -12
  61. package/node_modules/@d-fischer/deprecate/.idea/vcs.xml +0 -6
  62. package/node_modules/@d-fischer/deprecate/.idea/workspace.xml +0 -104
  63. package/node_modules/@d-fischer/deprecate/.travis.yml +0 -3
  64. package/node_modules/@d-fischer/deprecate/README.md +0 -50
  65. package/node_modules/@d-fischer/deprecate/index.d.ts +0 -33
  66. package/node_modules/@d-fischer/deprecate/index.js +0 -46
  67. package/node_modules/@d-fischer/deprecate/index.mjs +0 -3
  68. package/node_modules/@d-fischer/deprecate/package.json +0 -31
  69. package/node_modules/@d-fischer/deprecate/test/index.js +0 -64
  70. package/node_modules/@d-fischer/detect-node/LICENSE +0 -21
  71. package/node_modules/@d-fischer/detect-node/Readme.md +0 -30
  72. package/node_modules/@d-fischer/detect-node/browser.js +0 -2
  73. package/node_modules/@d-fischer/detect-node/index.d.ts +0 -1
  74. package/node_modules/@d-fischer/detect-node/index.esm.js +0 -2
  75. package/node_modules/@d-fischer/detect-node/index.js +0 -2
  76. package/node_modules/@d-fischer/detect-node/package.json +0 -25
  77. package/node_modules/@d-fischer/escape-string-regexp/index.d.ts +0 -18
  78. package/node_modules/@d-fischer/escape-string-regexp/index.js +0 -15
  79. package/node_modules/@d-fischer/escape-string-regexp/license +0 -9
  80. package/node_modules/@d-fischer/escape-string-regexp/package.json +0 -36
  81. package/node_modules/@d-fischer/escape-string-regexp/readme.md +0 -34
  82. package/node_modules/@d-fischer/isomorphic-ws/LICENSE +0 -21
  83. package/node_modules/@d-fischer/isomorphic-ws/README.md +0 -59
  84. package/node_modules/@d-fischer/isomorphic-ws/browser.js +0 -17
  85. package/node_modules/@d-fischer/isomorphic-ws/browser.mjs +0 -19
  86. package/node_modules/@d-fischer/isomorphic-ws/index.d.ts +0 -38
  87. package/node_modules/@d-fischer/isomorphic-ws/node.js +0 -6
  88. package/node_modules/@d-fischer/isomorphic-ws/node.mjs +0 -5
  89. package/node_modules/@d-fischer/isomorphic-ws/package.json +0 -51
  90. package/node_modules/@d-fischer/logger/LICENSE +0 -21
  91. package/node_modules/@d-fischer/logger/es/BaseLogger.mjs +0 -37
  92. package/node_modules/@d-fischer/logger/es/BrowserLogger.mjs +0 -22
  93. package/node_modules/@d-fischer/logger/es/CustomLoggerWrapper.mjs +0 -69
  94. package/node_modules/@d-fischer/logger/es/LogLevel.mjs +0 -42
  95. package/node_modules/@d-fischer/logger/es/Logger.mjs +0 -1
  96. package/node_modules/@d-fischer/logger/es/LoggerOptions.mjs +0 -1
  97. package/node_modules/@d-fischer/logger/es/NodeLogger.mjs +0 -105
  98. package/node_modules/@d-fischer/logger/es/createLogger.mjs +0 -13
  99. package/node_modules/@d-fischer/logger/es/getMinLogLevelFromEnv.mjs +0 -38
  100. package/node_modules/@d-fischer/logger/es/index.mjs +0 -2
  101. package/node_modules/@d-fischer/logger/lib/BaseLogger.d.ts +0 -18
  102. package/node_modules/@d-fischer/logger/lib/BaseLogger.js +0 -40
  103. package/node_modules/@d-fischer/logger/lib/BrowserLogger.d.ts +0 -5
  104. package/node_modules/@d-fischer/logger/lib/BrowserLogger.js +0 -25
  105. package/node_modules/@d-fischer/logger/lib/CustomLoggerWrapper.d.ts +0 -26
  106. package/node_modules/@d-fischer/logger/lib/CustomLoggerWrapper.js +0 -72
  107. package/node_modules/@d-fischer/logger/lib/LogLevel.d.ts +0 -13
  108. package/node_modules/@d-fischer/logger/lib/LogLevel.js +0 -47
  109. package/node_modules/@d-fischer/logger/lib/Logger.d.ts +0 -10
  110. package/node_modules/@d-fischer/logger/lib/Logger.js +0 -2
  111. package/node_modules/@d-fischer/logger/lib/LoggerOptions.d.ts +0 -10
  112. package/node_modules/@d-fischer/logger/lib/LoggerOptions.js +0 -2
  113. package/node_modules/@d-fischer/logger/lib/NodeLogger.d.ts +0 -11
  114. package/node_modules/@d-fischer/logger/lib/NodeLogger.js +0 -108
  115. package/node_modules/@d-fischer/logger/lib/createLogger.d.ts +0 -3
  116. package/node_modules/@d-fischer/logger/lib/createLogger.js +0 -17
  117. package/node_modules/@d-fischer/logger/lib/getMinLogLevelFromEnv.d.ts +0 -2
  118. package/node_modules/@d-fischer/logger/lib/getMinLogLevelFromEnv.js +0 -42
  119. package/node_modules/@d-fischer/logger/lib/index.d.ts +0 -5
  120. package/node_modules/@d-fischer/logger/lib/index.js +0 -7
  121. package/node_modules/@d-fischer/logger/package.json +0 -62
  122. package/node_modules/@d-fischer/rate-limiter/LICENSE +0 -21
  123. package/node_modules/@d-fischer/rate-limiter/es/QueueEntry.mjs +0 -1
  124. package/node_modules/@d-fischer/rate-limiter/es/RateLimiter.mjs +0 -1
  125. package/node_modules/@d-fischer/rate-limiter/es/RateLimiterStats.mjs +0 -1
  126. package/node_modules/@d-fischer/rate-limiter/es/errors/CustomError.mjs +0 -15
  127. package/node_modules/@d-fischer/rate-limiter/es/errors/RateLimitReachedError.mjs +0 -3
  128. package/node_modules/@d-fischer/rate-limiter/es/errors/RateLimiterDestroyedError.mjs +0 -3
  129. package/node_modules/@d-fischer/rate-limiter/es/errors/RetryAfterError.mjs +0 -10
  130. package/node_modules/@d-fischer/rate-limiter/es/index.mjs +0 -9
  131. package/node_modules/@d-fischer/rate-limiter/es/limiters/NullRateLimiter.mjs +0 -17
  132. package/node_modules/@d-fischer/rate-limiter/es/limiters/PartitionedRateLimiter.mjs +0 -52
  133. package/node_modules/@d-fischer/rate-limiter/es/limiters/PartitionedTimeBasedRateLimiter.mjs +0 -138
  134. package/node_modules/@d-fischer/rate-limiter/es/limiters/ResponseBasedRateLimiter.mjs +0 -159
  135. package/node_modules/@d-fischer/rate-limiter/es/limiters/TimeBasedRateLimiter.mjs +0 -117
  136. package/node_modules/@d-fischer/rate-limiter/es/limiters/TimedPassthruRateLimiter.mjs +0 -11
  137. package/node_modules/@d-fischer/rate-limiter/lib/QueueEntry.d.ts +0 -7
  138. package/node_modules/@d-fischer/rate-limiter/lib/QueueEntry.js +0 -2
  139. package/node_modules/@d-fischer/rate-limiter/lib/RateLimiter.d.ts +0 -11
  140. package/node_modules/@d-fischer/rate-limiter/lib/RateLimiter.js +0 -2
  141. package/node_modules/@d-fischer/rate-limiter/lib/RateLimiterStats.d.ts +0 -5
  142. package/node_modules/@d-fischer/rate-limiter/lib/RateLimiterStats.js +0 -2
  143. package/node_modules/@d-fischer/rate-limiter/lib/errors/CustomError.d.ts +0 -5
  144. package/node_modules/@d-fischer/rate-limiter/lib/errors/CustomError.js +0 -19
  145. package/node_modules/@d-fischer/rate-limiter/lib/errors/RateLimitReachedError.d.ts +0 -3
  146. package/node_modules/@d-fischer/rate-limiter/lib/errors/RateLimitReachedError.js +0 -7
  147. package/node_modules/@d-fischer/rate-limiter/lib/errors/RateLimiterDestroyedError.d.ts +0 -3
  148. package/node_modules/@d-fischer/rate-limiter/lib/errors/RateLimiterDestroyedError.js +0 -7
  149. package/node_modules/@d-fischer/rate-limiter/lib/errors/RetryAfterError.d.ts +0 -6
  150. package/node_modules/@d-fischer/rate-limiter/lib/errors/RetryAfterError.js +0 -14
  151. package/node_modules/@d-fischer/rate-limiter/lib/index.d.ts +0 -12
  152. package/node_modules/@d-fischer/rate-limiter/lib/index.js +0 -21
  153. package/node_modules/@d-fischer/rate-limiter/lib/limiters/NullRateLimiter.d.ts +0 -9
  154. package/node_modules/@d-fischer/rate-limiter/lib/limiters/NullRateLimiter.js +0 -21
  155. package/node_modules/@d-fischer/rate-limiter/lib/limiters/PartitionedRateLimiter.d.ts +0 -19
  156. package/node_modules/@d-fischer/rate-limiter/lib/limiters/PartitionedRateLimiter.js +0 -56
  157. package/node_modules/@d-fischer/rate-limiter/lib/limiters/PartitionedTimeBasedRateLimiter.d.ts +0 -26
  158. package/node_modules/@d-fischer/rate-limiter/lib/limiters/PartitionedTimeBasedRateLimiter.js +0 -142
  159. package/node_modules/@d-fischer/rate-limiter/lib/limiters/ResponseBasedRateLimiter.d.ts +0 -30
  160. package/node_modules/@d-fischer/rate-limiter/lib/limiters/ResponseBasedRateLimiter.js +0 -163
  161. package/node_modules/@d-fischer/rate-limiter/lib/limiters/TimeBasedRateLimiter.d.ts +0 -27
  162. package/node_modules/@d-fischer/rate-limiter/lib/limiters/TimeBasedRateLimiter.js +0 -121
  163. package/node_modules/@d-fischer/rate-limiter/lib/limiters/TimedPassthruRateLimiter.d.ts +0 -5
  164. package/node_modules/@d-fischer/rate-limiter/lib/limiters/TimedPassthruRateLimiter.js +0 -15
  165. package/node_modules/@d-fischer/rate-limiter/package.json +0 -64
  166. package/node_modules/@d-fischer/shared-utils/LICENSE +0 -21
  167. package/node_modules/@d-fischer/shared-utils/es/decorators/Enumerable.mjs +0 -23
  168. package/node_modules/@d-fischer/shared-utils/es/functions/array/flatten.mjs +0 -5
  169. package/node_modules/@d-fischer/shared-utils/es/functions/array/immutableSplice.mjs +0 -8
  170. package/node_modules/@d-fischer/shared-utils/es/functions/array/partitionedFlatMap.mjs +0 -29
  171. package/node_modules/@d-fischer/shared-utils/es/functions/config/resolveConfigValue.mjs +0 -23
  172. package/node_modules/@d-fischer/shared-utils/es/functions/deprecate/deprecateClass.mjs +0 -22
  173. package/node_modules/@d-fischer/shared-utils/es/functions/match/match.mjs +0 -15
  174. package/node_modules/@d-fischer/shared-utils/es/functions/math/fib.mjs +0 -27
  175. package/node_modules/@d-fischer/shared-utils/es/functions/object/arrayToObject.mjs +0 -4
  176. package/node_modules/@d-fischer/shared-utils/es/functions/object/entriesToObject.mjs +0 -9
  177. package/node_modules/@d-fischer/shared-utils/es/functions/object/forEachObjectEntry.mjs +0 -7
  178. package/node_modules/@d-fischer/shared-utils/es/functions/object/groupBy.mjs +0 -26
  179. package/node_modules/@d-fischer/shared-utils/es/functions/object/indexBy.mjs +0 -12
  180. package/node_modules/@d-fischer/shared-utils/es/functions/object/mapObject.mjs +0 -11
  181. package/node_modules/@d-fischer/shared-utils/es/functions/object/omit.mjs +0 -5
  182. package/node_modules/@d-fischer/shared-utils/es/functions/object/pick.mjs +0 -14
  183. package/node_modules/@d-fischer/shared-utils/es/functions/optional/mapOptional.mjs +0 -9
  184. package/node_modules/@d-fischer/shared-utils/es/functions/promise/delay.mjs +0 -13
  185. package/node_modules/@d-fischer/shared-utils/es/functions/promise/withResolvers.mjs +0 -11
  186. package/node_modules/@d-fischer/shared-utils/es/functions/string/padLeft.mjs +0 -25
  187. package/node_modules/@d-fischer/shared-utils/es/functions/string/splitWithLimit.mjs +0 -8
  188. package/node_modules/@d-fischer/shared-utils/es/functions/string/utf8.mjs +0 -7
  189. package/node_modules/@d-fischer/shared-utils/es/index.mjs +0 -22
  190. package/node_modules/@d-fischer/shared-utils/es/types/MakeOptional.mjs +0 -1
  191. package/node_modules/@d-fischer/shared-utils/es/types/NoInfer.mjs +0 -1
  192. package/node_modules/@d-fischer/shared-utils/es/types/PickType.mjs +0 -1
  193. package/node_modules/@d-fischer/shared-utils/es/types/constructor.mjs +0 -1
  194. package/node_modules/@d-fischer/shared-utils/es/types/object.mjs +0 -1
  195. package/node_modules/@d-fischer/shared-utils/lib/decorators/Enumerable.d.ts +0 -1
  196. package/node_modules/@d-fischer/shared-utils/lib/decorators/Enumerable.js +0 -27
  197. package/node_modules/@d-fischer/shared-utils/lib/functions/array/flatten.d.ts +0 -1
  198. package/node_modules/@d-fischer/shared-utils/lib/functions/array/flatten.js +0 -9
  199. package/node_modules/@d-fischer/shared-utils/lib/functions/array/immutableSplice.d.ts +0 -1
  200. package/node_modules/@d-fischer/shared-utils/lib/functions/array/immutableSplice.js +0 -12
  201. package/node_modules/@d-fischer/shared-utils/lib/functions/array/partitionedFlatMap.d.ts +0 -1
  202. package/node_modules/@d-fischer/shared-utils/lib/functions/array/partitionedFlatMap.js +0 -33
  203. package/node_modules/@d-fischer/shared-utils/lib/functions/config/resolveConfigValue.d.ts +0 -4
  204. package/node_modules/@d-fischer/shared-utils/lib/functions/config/resolveConfigValue.js +0 -28
  205. package/node_modules/@d-fischer/shared-utils/lib/functions/deprecate/deprecateClass.d.ts +0 -2
  206. package/node_modules/@d-fischer/shared-utils/lib/functions/deprecate/deprecateClass.js +0 -26
  207. package/node_modules/@d-fischer/shared-utils/lib/functions/match/match.d.ts +0 -10
  208. package/node_modules/@d-fischer/shared-utils/lib/functions/match/match.js +0 -19
  209. package/node_modules/@d-fischer/shared-utils/lib/functions/math/fib.d.ts +0 -1
  210. package/node_modules/@d-fischer/shared-utils/lib/functions/math/fib.js +0 -31
  211. package/node_modules/@d-fischer/shared-utils/lib/functions/object/arrayToObject.d.ts +0 -2
  212. package/node_modules/@d-fischer/shared-utils/lib/functions/object/arrayToObject.js +0 -8
  213. package/node_modules/@d-fischer/shared-utils/lib/functions/object/entriesToObject.d.ts +0 -1
  214. package/node_modules/@d-fischer/shared-utils/lib/functions/object/entriesToObject.js +0 -13
  215. package/node_modules/@d-fischer/shared-utils/lib/functions/object/forEachObjectEntry.d.ts +0 -1
  216. package/node_modules/@d-fischer/shared-utils/lib/functions/object/forEachObjectEntry.js +0 -11
  217. package/node_modules/@d-fischer/shared-utils/lib/functions/object/groupBy.d.ts +0 -2
  218. package/node_modules/@d-fischer/shared-utils/lib/functions/object/groupBy.js +0 -30
  219. package/node_modules/@d-fischer/shared-utils/lib/functions/object/indexBy.d.ts +0 -2
  220. package/node_modules/@d-fischer/shared-utils/lib/functions/object/indexBy.js +0 -16
  221. package/node_modules/@d-fischer/shared-utils/lib/functions/object/mapObject.d.ts +0 -2
  222. package/node_modules/@d-fischer/shared-utils/lib/functions/object/mapObject.js +0 -15
  223. package/node_modules/@d-fischer/shared-utils/lib/functions/object/omit.d.ts +0 -1
  224. package/node_modules/@d-fischer/shared-utils/lib/functions/object/omit.js +0 -9
  225. package/node_modules/@d-fischer/shared-utils/lib/functions/object/pick.d.ts +0 -1
  226. package/node_modules/@d-fischer/shared-utils/lib/functions/object/pick.js +0 -18
  227. package/node_modules/@d-fischer/shared-utils/lib/functions/optional/mapOptional.d.ts +0 -3
  228. package/node_modules/@d-fischer/shared-utils/lib/functions/optional/mapOptional.js +0 -15
  229. package/node_modules/@d-fischer/shared-utils/lib/functions/promise/delay.d.ts +0 -1
  230. package/node_modules/@d-fischer/shared-utils/lib/functions/promise/delay.js +0 -17
  231. package/node_modules/@d-fischer/shared-utils/lib/functions/promise/withResolvers.d.ts +0 -6
  232. package/node_modules/@d-fischer/shared-utils/lib/functions/promise/withResolvers.js +0 -15
  233. package/node_modules/@d-fischer/shared-utils/lib/functions/string/padLeft.d.ts +0 -1
  234. package/node_modules/@d-fischer/shared-utils/lib/functions/string/padLeft.js +0 -29
  235. package/node_modules/@d-fischer/shared-utils/lib/functions/string/splitWithLimit.d.ts +0 -1
  236. package/node_modules/@d-fischer/shared-utils/lib/functions/string/splitWithLimit.js +0 -12
  237. package/node_modules/@d-fischer/shared-utils/lib/functions/string/utf8.d.ts +0 -2
  238. package/node_modules/@d-fischer/shared-utils/lib/functions/string/utf8.js +0 -12
  239. package/node_modules/@d-fischer/shared-utils/lib/index.d.ts +0 -27
  240. package/node_modules/@d-fischer/shared-utils/lib/index.js +0 -52
  241. package/node_modules/@d-fischer/shared-utils/lib/types/MakeOptional.d.ts +0 -5
  242. package/node_modules/@d-fischer/shared-utils/lib/types/MakeOptional.js +0 -2
  243. package/node_modules/@d-fischer/shared-utils/lib/types/NoInfer.d.ts +0 -1
  244. package/node_modules/@d-fischer/shared-utils/lib/types/NoInfer.js +0 -2
  245. package/node_modules/@d-fischer/shared-utils/lib/types/PickType.d.ts +0 -5
  246. package/node_modules/@d-fischer/shared-utils/lib/types/PickType.js +0 -2
  247. package/node_modules/@d-fischer/shared-utils/lib/types/constructor.d.ts +0 -2
  248. package/node_modules/@d-fischer/shared-utils/lib/types/constructor.js +0 -2
  249. package/node_modules/@d-fischer/shared-utils/lib/types/object.d.ts +0 -5
  250. package/node_modules/@d-fischer/shared-utils/lib/types/object.js +0 -2
  251. package/node_modules/@d-fischer/shared-utils/package.json +0 -57
  252. package/node_modules/@d-fischer/typed-event-emitter/LICENSE +0 -45
  253. package/node_modules/@d-fischer/typed-event-emitter/README.md +0 -172
  254. package/node_modules/@d-fischer/typed-event-emitter/es/EventEmitter.mjs +0 -77
  255. package/node_modules/@d-fischer/typed-event-emitter/es/Listener.mjs +0 -13
  256. package/node_modules/@d-fischer/typed-event-emitter/es/index.mjs +0 -2
  257. package/node_modules/@d-fischer/typed-event-emitter/lib/EventEmitter.d.ts +0 -19
  258. package/node_modules/@d-fischer/typed-event-emitter/lib/EventEmitter.js +0 -81
  259. package/node_modules/@d-fischer/typed-event-emitter/lib/Listener.d.ts +0 -11
  260. package/node_modules/@d-fischer/typed-event-emitter/lib/Listener.js +0 -17
  261. package/node_modules/@d-fischer/typed-event-emitter/lib/index.d.ts +0 -3
  262. package/node_modules/@d-fischer/typed-event-emitter/lib/index.js +0 -7
  263. package/node_modules/@d-fischer/typed-event-emitter/package.json +0 -74
  264. package/node_modules/@twurple/api-call/LICENSE +0 -21
  265. package/node_modules/@twurple/api-call/README.md +0 -9
  266. package/node_modules/@twurple/api-call/lib/HelixResponse.d.ts +0 -15
  267. package/node_modules/@twurple/api-call/lib/HelixResponse.js +0 -1
  268. package/node_modules/@twurple/api-call/lib/TwitchApiCallOptions.d.ts +0 -74
  269. package/node_modules/@twurple/api-call/lib/TwitchApiCallOptions.js +0 -1
  270. package/node_modules/@twurple/api-call/lib/apiCall.d.ts +0 -31
  271. package/node_modules/@twurple/api-call/lib/apiCall.js +0 -59
  272. package/node_modules/@twurple/api-call/lib/errors/HttpStatusCodeError.d.ts +0 -29
  273. package/node_modules/@twurple/api-call/lib/errors/HttpStatusCodeError.js +0 -42
  274. package/node_modules/@twurple/api-call/lib/helpers/queries.external.d.ts +0 -3
  275. package/node_modules/@twurple/api-call/lib/helpers/queries.external.js +0 -6
  276. package/node_modules/@twurple/api-call/lib/helpers/transform.d.ts +0 -7
  277. package/node_modules/@twurple/api-call/lib/helpers/transform.js +0 -23
  278. package/node_modules/@twurple/api-call/lib/helpers/url.d.ts +0 -2
  279. package/node_modules/@twurple/api-call/lib/helpers/url.js +0 -25
  280. package/node_modules/@twurple/api-call/lib/index.d.ts +0 -7
  281. package/node_modules/@twurple/api-call/lib/index.js +0 -4
  282. package/node_modules/@twurple/api-call/package.json +0 -44
  283. package/node_modules/@twurple/auth/LICENSE +0 -21
  284. package/node_modules/@twurple/auth/README.md +0 -24
  285. package/node_modules/@twurple/auth/lib/AccessToken.d.ts +0 -77
  286. package/node_modules/@twurple/auth/lib/AccessToken.external.d.ts +0 -2
  287. package/node_modules/@twurple/auth/lib/AccessToken.external.js +0 -1
  288. package/node_modules/@twurple/auth/lib/AccessToken.js +0 -29
  289. package/node_modules/@twurple/auth/lib/TokenFetcher.d.ts +0 -12
  290. package/node_modules/@twurple/auth/lib/TokenFetcher.js +0 -67
  291. package/node_modules/@twurple/auth/lib/TokenInfo.d.ts +0 -31
  292. package/node_modules/@twurple/auth/lib/TokenInfo.external.d.ts +0 -8
  293. package/node_modules/@twurple/auth/lib/TokenInfo.external.js +0 -1
  294. package/node_modules/@twurple/auth/lib/TokenInfo.js +0 -50
  295. package/node_modules/@twurple/auth/lib/errors/CachedRefreshFailureError.d.ts +0 -10
  296. package/node_modules/@twurple/auth/lib/errors/CachedRefreshFailureError.js +0 -15
  297. package/node_modules/@twurple/auth/lib/errors/IntermediateUserRemovalError.d.ts +0 -10
  298. package/node_modules/@twurple/auth/lib/errors/IntermediateUserRemovalError.js +0 -14
  299. package/node_modules/@twurple/auth/lib/errors/InvalidTokenError.d.ts +0 -9
  300. package/node_modules/@twurple/auth/lib/errors/InvalidTokenError.js +0 -10
  301. package/node_modules/@twurple/auth/lib/errors/InvalidTokenTypeError.d.ts +0 -7
  302. package/node_modules/@twurple/auth/lib/errors/InvalidTokenTypeError.js +0 -6
  303. package/node_modules/@twurple/auth/lib/errors/UnknownIntentError.d.ts +0 -13
  304. package/node_modules/@twurple/auth/lib/errors/UnknownIntentError.js +0 -15
  305. package/node_modules/@twurple/auth/lib/helpers.d.ts +0 -82
  306. package/node_modules/@twurple/auth/lib/helpers.external.d.ts +0 -2
  307. package/node_modules/@twurple/auth/lib/helpers.external.js +0 -34
  308. package/node_modules/@twurple/auth/lib/helpers.js +0 -250
  309. package/node_modules/@twurple/auth/lib/index.d.ts +0 -17
  310. package/node_modules/@twurple/auth/lib/index.js +0 -12
  311. package/node_modules/@twurple/auth/lib/providers/AppTokenAuthProvider.d.ts +0 -52
  312. package/node_modules/@twurple/auth/lib/providers/AppTokenAuthProvider.js +0 -114
  313. package/node_modules/@twurple/auth/lib/providers/AuthProvider.d.ts +0 -105
  314. package/node_modules/@twurple/auth/lib/providers/AuthProvider.js +0 -1
  315. package/node_modules/@twurple/auth/lib/providers/RefreshingAuthProvider.d.ts +0 -186
  316. package/node_modules/@twurple/auth/lib/providers/RefreshingAuthProvider.js +0 -442
  317. package/node_modules/@twurple/auth/lib/providers/StaticAuthProvider.d.ts +0 -62
  318. package/node_modules/@twurple/auth/lib/providers/StaticAuthProvider.js +0 -102
  319. package/node_modules/@twurple/auth/package.json +0 -49
  320. package/node_modules/@twurple/chat/LICENSE +0 -21
  321. package/node_modules/@twurple/chat/README.md +0 -24
  322. package/node_modules/@twurple/chat/lib/ChatClient.d.ts +0 -577
  323. package/node_modules/@twurple/chat/lib/ChatClient.js +0 -1153
  324. package/node_modules/@twurple/chat/lib/ChatMessageAttributes.d.ts +0 -13
  325. package/node_modules/@twurple/chat/lib/ChatMessageAttributes.js +0 -5
  326. package/node_modules/@twurple/chat/lib/ChatUser.d.ts +0 -68
  327. package/node_modules/@twurple/chat/lib/ChatUser.js +0 -134
  328. package/node_modules/@twurple/chat/lib/caps/TwitchMembershipCapability.d.ts +0 -2
  329. package/node_modules/@twurple/chat/lib/caps/TwitchMembershipCapability.js +0 -9
  330. package/node_modules/@twurple/chat/lib/caps/twitchCommands/index.d.ts +0 -2
  331. package/node_modules/@twurple/chat/lib/caps/twitchCommands/index.js +0 -11
  332. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/ClearChat.d.ts +0 -16
  333. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/ClearChat.js +0 -20
  334. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/Reconnect.d.ts +0 -6
  335. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/Reconnect.js +0 -5
  336. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/RoomState.d.ts +0 -12
  337. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/RoomState.js +0 -9
  338. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/UserNotice.d.ts +0 -19
  339. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/UserNotice.js +0 -28
  340. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/UserState.d.ts +0 -14
  341. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/UserState.js +0 -10
  342. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/Whisper.d.ts +0 -18
  343. package/node_modules/@twurple/chat/lib/caps/twitchCommands/messageTypes/Whisper.js +0 -19
  344. package/node_modules/@twurple/chat/lib/caps/twitchTags/index.d.ts +0 -2
  345. package/node_modules/@twurple/chat/lib/caps/twitchTags/index.js +0 -11
  346. package/node_modules/@twurple/chat/lib/caps/twitchTags/messageTypes/ClearMsg.d.ts +0 -17
  347. package/node_modules/@twurple/chat/lib/caps/twitchTags/messageTypes/ClearMsg.js +0 -23
  348. package/node_modules/@twurple/chat/lib/caps/twitchTags/messageTypes/GlobalUserState.d.ts +0 -10
  349. package/node_modules/@twurple/chat/lib/caps/twitchTags/messageTypes/GlobalUserState.js +0 -9
  350. package/node_modules/@twurple/chat/lib/commands/ChatMessage.d.ts +0 -137
  351. package/node_modules/@twurple/chat/lib/commands/ChatMessage.js +0 -216
  352. package/node_modules/@twurple/chat/lib/emotes/ParsedMessagePart.d.ts +0 -76
  353. package/node_modules/@twurple/chat/lib/emotes/ParsedMessagePart.js +0 -1
  354. package/node_modules/@twurple/chat/lib/emotes/buildEmoteImageUrl.d.ts +0 -39
  355. package/node_modules/@twurple/chat/lib/emotes/buildEmoteImageUrl.js +0 -12
  356. package/node_modules/@twurple/chat/lib/emotes/messagePartParser.d.ts +0 -31
  357. package/node_modules/@twurple/chat/lib/emotes/messagePartParser.js +0 -109
  358. package/node_modules/@twurple/chat/lib/index.d.ts +0 -33
  359. package/node_modules/@twurple/chat/lib/index.js +0 -18
  360. package/node_modules/@twurple/chat/lib/userNotices/ChatAnnouncementInfo.d.ts +0 -12
  361. package/node_modules/@twurple/chat/lib/userNotices/ChatAnnouncementInfo.js +0 -1
  362. package/node_modules/@twurple/chat/lib/userNotices/ChatBitsBadgeUpgradeInfo.d.ts +0 -14
  363. package/node_modules/@twurple/chat/lib/userNotices/ChatBitsBadgeUpgradeInfo.js +0 -1
  364. package/node_modules/@twurple/chat/lib/userNotices/ChatCommunityPayForwardInfo.d.ts +0 -26
  365. package/node_modules/@twurple/chat/lib/userNotices/ChatCommunityPayForwardInfo.js +0 -1
  366. package/node_modules/@twurple/chat/lib/userNotices/ChatCommunitySubInfo.d.ts +0 -32
  367. package/node_modules/@twurple/chat/lib/userNotices/ChatCommunitySubInfo.js +0 -1
  368. package/node_modules/@twurple/chat/lib/userNotices/ChatPrimeCommunityGiftInfo.d.ts +0 -18
  369. package/node_modules/@twurple/chat/lib/userNotices/ChatPrimeCommunityGiftInfo.js +0 -1
  370. package/node_modules/@twurple/chat/lib/userNotices/ChatRaidInfo.d.ts +0 -14
  371. package/node_modules/@twurple/chat/lib/userNotices/ChatRaidInfo.js +0 -1
  372. package/node_modules/@twurple/chat/lib/userNotices/ChatRewardGiftInfo.d.ts +0 -32
  373. package/node_modules/@twurple/chat/lib/userNotices/ChatRewardGiftInfo.js +0 -1
  374. package/node_modules/@twurple/chat/lib/userNotices/ChatRitualInfo.d.ts +0 -18
  375. package/node_modules/@twurple/chat/lib/userNotices/ChatRitualInfo.js +0 -1
  376. package/node_modules/@twurple/chat/lib/userNotices/ChatStandardPayForwardInfo.d.ts +0 -34
  377. package/node_modules/@twurple/chat/lib/userNotices/ChatStandardPayForwardInfo.js +0 -1
  378. package/node_modules/@twurple/chat/lib/userNotices/ChatSubInfo.d.ts +0 -171
  379. package/node_modules/@twurple/chat/lib/userNotices/ChatSubInfo.js +0 -1
  380. package/node_modules/@twurple/chat/lib/userNotices/ChatViewerMilestoneInfo.d.ts +0 -30
  381. package/node_modules/@twurple/chat/lib/userNotices/ChatViewerMilestoneInfo.js +0 -1
  382. package/node_modules/@twurple/chat/lib/utils/emoteUtil.d.ts +0 -7
  383. package/node_modules/@twurple/chat/lib/utils/emoteUtil.js +0 -20
  384. package/node_modules/@twurple/chat/lib/utils/messageUtil.d.ts +0 -17
  385. package/node_modules/@twurple/chat/lib/utils/messageUtil.js +0 -87
  386. package/node_modules/@twurple/chat/lib/utils/userUtil.d.ts +0 -13
  387. package/node_modules/@twurple/chat/lib/utils/userUtil.js +0 -24
  388. package/node_modules/@twurple/chat/package.json +0 -58
  389. package/node_modules/@twurple/common/LICENSE +0 -21
  390. package/node_modules/@twurple/common/README.md +0 -9
  391. package/node_modules/@twurple/common/lib/DataObject.d.ts +0 -15
  392. package/node_modules/@twurple/common/lib/DataObject.js +0 -19
  393. package/node_modules/@twurple/common/lib/errors/CustomError.d.ts +0 -10
  394. package/node_modules/@twurple/common/lib/errors/CustomError.js +0 -13
  395. package/node_modules/@twurple/common/lib/errors/HellFreezesOverError.d.ts +0 -10
  396. package/node_modules/@twurple/common/lib/errors/HellFreezesOverError.js +0 -11
  397. package/node_modules/@twurple/common/lib/errors/RelationAssertionError.d.ts +0 -8
  398. package/node_modules/@twurple/common/lib/errors/RelationAssertionError.js +0 -9
  399. package/node_modules/@twurple/common/lib/extensions/HelixExtension.d.ts +0 -224
  400. package/node_modules/@twurple/common/lib/extensions/HelixExtension.external.d.ts +0 -87
  401. package/node_modules/@twurple/common/lib/extensions/HelixExtension.external.js +0 -1
  402. package/node_modules/@twurple/common/lib/extensions/HelixExtension.js +0 -314
  403. package/node_modules/@twurple/common/lib/index.d.ts +0 -14
  404. package/node_modules/@twurple/common/lib/index.js +0 -10
  405. package/node_modules/@twurple/common/lib/mockApiPort.d.ts +0 -3
  406. package/node_modules/@twurple/common/lib/mockApiPort.js +0 -15
  407. package/node_modules/@twurple/common/lib/qs.d.ts +0 -2
  408. package/node_modules/@twurple/common/lib/qs.js +0 -21
  409. package/node_modules/@twurple/common/lib/relations.d.ts +0 -3
  410. package/node_modules/@twurple/common/lib/relations.js +0 -8
  411. package/node_modules/@twurple/common/lib/rtfm.d.ts +0 -9
  412. package/node_modules/@twurple/common/lib/rtfm.js +0 -17
  413. package/node_modules/@twurple/common/lib/types.d.ts +0 -9
  414. package/node_modules/@twurple/common/lib/types.js +0 -1
  415. package/node_modules/@twurple/common/lib/userResolvers.d.ts +0 -42
  416. package/node_modules/@twurple/common/lib/userResolvers.js +0 -22
  417. package/node_modules/@twurple/common/package.json +0 -43
  418. package/node_modules/@types/node/LICENSE +0 -21
  419. package/node_modules/@types/node/README.md +0 -15
  420. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  421. package/node_modules/@types/node/assert.d.ts +0 -1062
  422. package/node_modules/@types/node/async_hooks.d.ts +0 -605
  423. package/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  424. package/node_modules/@types/node/buffer.d.ts +0 -1936
  425. package/node_modules/@types/node/child_process.d.ts +0 -1475
  426. package/node_modules/@types/node/cluster.d.ts +0 -577
  427. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  428. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  429. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  430. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  431. package/node_modules/@types/node/console.d.ts +0 -452
  432. package/node_modules/@types/node/constants.d.ts +0 -21
  433. package/node_modules/@types/node/crypto.d.ts +0 -4590
  434. package/node_modules/@types/node/dgram.d.ts +0 -597
  435. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  436. package/node_modules/@types/node/dns/promises.d.ts +0 -479
  437. package/node_modules/@types/node/dns.d.ts +0 -871
  438. package/node_modules/@types/node/domain.d.ts +0 -170
  439. package/node_modules/@types/node/events.d.ts +0 -977
  440. package/node_modules/@types/node/fs/promises.d.ts +0 -1270
  441. package/node_modules/@types/node/fs.d.ts +0 -4375
  442. package/node_modules/@types/node/globals.d.ts +0 -172
  443. package/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  444. package/node_modules/@types/node/http.d.ts +0 -2049
  445. package/node_modules/@types/node/http2.d.ts +0 -2712
  446. package/node_modules/@types/node/https.d.ts +0 -578
  447. package/node_modules/@types/node/index.d.ts +0 -93
  448. package/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  449. package/node_modules/@types/node/module.d.ts +0 -539
  450. package/node_modules/@types/node/net.d.ts +0 -1031
  451. package/node_modules/@types/node/os.d.ts +0 -506
  452. package/node_modules/@types/node/package.json +0 -140
  453. package/node_modules/@types/node/path.d.ts +0 -200
  454. package/node_modules/@types/node/perf_hooks.d.ts +0 -961
  455. package/node_modules/@types/node/process.d.ts +0 -1961
  456. package/node_modules/@types/node/punycode.d.ts +0 -117
  457. package/node_modules/@types/node/querystring.d.ts +0 -152
  458. package/node_modules/@types/node/readline/promises.d.ts +0 -162
  459. package/node_modules/@types/node/readline.d.ts +0 -589
  460. package/node_modules/@types/node/repl.d.ts +0 -430
  461. package/node_modules/@types/node/sea.d.ts +0 -153
  462. package/node_modules/@types/node/stream/consumers.d.ts +0 -38
  463. package/node_modules/@types/node/stream/promises.d.ts +0 -90
  464. package/node_modules/@types/node/stream/web.d.ts +0 -533
  465. package/node_modules/@types/node/stream.d.ts +0 -1698
  466. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  467. package/node_modules/@types/node/test.d.ts +0 -1787
  468. package/node_modules/@types/node/timers/promises.d.ts +0 -108
  469. package/node_modules/@types/node/timers.d.ts +0 -286
  470. package/node_modules/@types/node/tls.d.ts +0 -1259
  471. package/node_modules/@types/node/trace_events.d.ts +0 -197
  472. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  473. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  474. package/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  475. package/node_modules/@types/node/tty.d.ts +0 -208
  476. package/node_modules/@types/node/url.d.ts +0 -964
  477. package/node_modules/@types/node/util.d.ts +0 -2331
  478. package/node_modules/@types/node/v8.d.ts +0 -809
  479. package/node_modules/@types/node/vm.d.ts +0 -1001
  480. package/node_modules/@types/node/wasi.d.ts +0 -181
  481. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  482. package/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  483. package/node_modules/@types/node/web-globals/events.d.ts +0 -97
  484. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  485. package/node_modules/@types/node/worker_threads.d.ts +0 -715
  486. package/node_modules/@types/node/zlib.d.ts +0 -598
  487. package/node_modules/@types/ws/LICENSE +0 -21
  488. package/node_modules/@types/ws/README.md +0 -15
  489. package/node_modules/@types/ws/index.d.mts +0 -451
  490. package/node_modules/@types/ws/index.d.ts +0 -445
  491. package/node_modules/@types/ws/node_modules/@types/node/LICENSE +0 -21
  492. package/node_modules/@types/ws/node_modules/@types/node/README.md +0 -15
  493. package/node_modules/@types/ws/node_modules/@types/node/assert/strict.d.ts +0 -68
  494. package/node_modules/@types/ws/node_modules/@types/node/assert.d.ts +0 -1077
  495. package/node_modules/@types/ws/node_modules/@types/node/async_hooks.d.ts +0 -711
  496. package/node_modules/@types/ws/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  497. package/node_modules/@types/ws/node_modules/@types/node/buffer.d.ts +0 -1799
  498. package/node_modules/@types/ws/node_modules/@types/node/child_process.d.ts +0 -1362
  499. package/node_modules/@types/ws/node_modules/@types/node/cluster.d.ts +0 -432
  500. package/node_modules/@types/ws/node_modules/@types/node/console.d.ts +0 -93
  501. package/node_modules/@types/ws/node_modules/@types/node/constants.d.ts +0 -14
  502. package/node_modules/@types/ws/node_modules/@types/node/crypto.d.ts +0 -3954
  503. package/node_modules/@types/ws/node_modules/@types/node/dgram.d.ts +0 -537
  504. package/node_modules/@types/ws/node_modules/@types/node/diagnostics_channel.d.ts +0 -794
  505. package/node_modules/@types/ws/node_modules/@types/node/dns/promises.d.ts +0 -497
  506. package/node_modules/@types/ws/node_modules/@types/node/dns.d.ts +0 -876
  507. package/node_modules/@types/ws/node_modules/@types/node/domain.d.ts +0 -150
  508. package/node_modules/@types/ws/node_modules/@types/node/events.d.ts +0 -1008
  509. package/node_modules/@types/ws/node_modules/@types/node/ffi.d.ts +0 -486
  510. package/node_modules/@types/ws/node_modules/@types/node/fs/promises.d.ts +0 -1471
  511. package/node_modules/@types/ws/node_modules/@types/node/fs.d.ts +0 -4786
  512. package/node_modules/@types/ws/node_modules/@types/node/globals.d.ts +0 -150
  513. package/node_modules/@types/ws/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  514. package/node_modules/@types/ws/node_modules/@types/node/http.d.ts +0 -2172
  515. package/node_modules/@types/ws/node_modules/@types/node/http2.d.ts +0 -2489
  516. package/node_modules/@types/ws/node_modules/@types/node/https.d.ts +0 -400
  517. package/node_modules/@types/ws/node_modules/@types/node/index.d.ts +0 -115
  518. package/node_modules/@types/ws/node_modules/@types/node/inspector/promises.d.ts +0 -35
  519. package/node_modules/@types/ws/node_modules/@types/node/inspector.d.ts +0 -264
  520. package/node_modules/@types/ws/node_modules/@types/node/inspector.generated.d.ts +0 -4406
  521. package/node_modules/@types/ws/node_modules/@types/node/module.d.ts +0 -726
  522. package/node_modules/@types/ws/node_modules/@types/node/net.d.ts +0 -970
  523. package/node_modules/@types/ws/node_modules/@types/node/os.d.ts +0 -498
  524. package/node_modules/@types/ws/node_modules/@types/node/package.json +0 -155
  525. package/node_modules/@types/ws/node_modules/@types/node/path/posix.d.ts +0 -8
  526. package/node_modules/@types/ws/node_modules/@types/node/path/win32.d.ts +0 -8
  527. package/node_modules/@types/ws/node_modules/@types/node/path.d.ts +0 -178
  528. package/node_modules/@types/ws/node_modules/@types/node/perf_hooks.d.ts +0 -604
  529. package/node_modules/@types/ws/node_modules/@types/node/process.d.ts +0 -2217
  530. package/node_modules/@types/ws/node_modules/@types/node/punycode.d.ts +0 -89
  531. package/node_modules/@types/ws/node_modules/@types/node/querystring.d.ts +0 -139
  532. package/node_modules/@types/ws/node_modules/@types/node/quic.d.ts +0 -978
  533. package/node_modules/@types/ws/node_modules/@types/node/readline/promises.d.ts +0 -158
  534. package/node_modules/@types/ws/node_modules/@types/node/readline.d.ts +0 -508
  535. package/node_modules/@types/ws/node_modules/@types/node/repl.d.ts +0 -420
  536. package/node_modules/@types/ws/node_modules/@types/node/sea.d.ts +0 -47
  537. package/node_modules/@types/ws/node_modules/@types/node/sqlite.d.ts +0 -1123
  538. package/node_modules/@types/ws/node_modules/@types/node/stream/consumers.d.ts +0 -114
  539. package/node_modules/@types/ws/node_modules/@types/node/stream/iter.d.ts +0 -451
  540. package/node_modules/@types/ws/node_modules/@types/node/stream/promises.d.ts +0 -211
  541. package/node_modules/@types/ws/node_modules/@types/node/stream/web.d.ts +0 -300
  542. package/node_modules/@types/ws/node_modules/@types/node/stream.d.ts +0 -1806
  543. package/node_modules/@types/ws/node_modules/@types/node/string_decoder.d.ts +0 -27
  544. package/node_modules/@types/ws/node_modules/@types/node/test/reporters.d.ts +0 -59
  545. package/node_modules/@types/ws/node_modules/@types/node/test.d.ts +0 -2389
  546. package/node_modules/@types/ws/node_modules/@types/node/timers/promises.d.ts +0 -93
  547. package/node_modules/@types/ws/node_modules/@types/node/timers.d.ts +0 -149
  548. package/node_modules/@types/ws/node_modules/@types/node/tls.d.ts +0 -1193
  549. package/node_modules/@types/ws/node_modules/@types/node/trace_events.d.ts +0 -103
  550. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  551. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  552. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  553. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/index.d.ts +0 -117
  554. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  555. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  556. package/node_modules/@types/ws/node_modules/@types/node/tty.d.ts +0 -225
  557. package/node_modules/@types/ws/node_modules/@types/node/url.d.ts +0 -556
  558. package/node_modules/@types/ws/node_modules/@types/node/util/types.d.ts +0 -558
  559. package/node_modules/@types/ws/node_modules/@types/node/util.d.ts +0 -1677
  560. package/node_modules/@types/ws/node_modules/@types/node/v8.d.ts +0 -1062
  561. package/node_modules/@types/ws/node_modules/@types/node/vm.d.ts +0 -1136
  562. package/node_modules/@types/ws/node_modules/@types/node/wasi.d.ts +0 -131
  563. package/node_modules/@types/ws/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  564. package/node_modules/@types/ws/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  565. package/node_modules/@types/ws/node_modules/@types/node/web-globals/console.d.ts +0 -9
  566. package/node_modules/@types/ws/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  567. package/node_modules/@types/ws/node_modules/@types/node/web-globals/domexception.d.ts +0 -83
  568. package/node_modules/@types/ws/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  569. package/node_modules/@types/ws/node_modules/@types/node/web-globals/events.d.ts +0 -106
  570. package/node_modules/@types/ws/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  571. package/node_modules/@types/ws/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  572. package/node_modules/@types/ws/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  573. package/node_modules/@types/ws/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  574. package/node_modules/@types/ws/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  575. package/node_modules/@types/ws/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  576. package/node_modules/@types/ws/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  577. package/node_modules/@types/ws/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  578. package/node_modules/@types/ws/node_modules/@types/node/web-globals/url.d.ts +0 -24
  579. package/node_modules/@types/ws/node_modules/@types/node/worker_threads.d.ts +0 -669
  580. package/node_modules/@types/ws/node_modules/@types/node/zlib/iter.d.ts +0 -131
  581. package/node_modules/@types/ws/node_modules/@types/node/zlib.d.ts +0 -589
  582. package/node_modules/@types/ws/node_modules/undici-types/LICENSE +0 -21
  583. package/node_modules/@types/ws/node_modules/undici-types/README.md +0 -6
  584. package/node_modules/@types/ws/node_modules/undici-types/agent.d.ts +0 -30
  585. package/node_modules/@types/ws/node_modules/undici-types/api.d.ts +0 -43
  586. package/node_modules/@types/ws/node_modules/undici-types/balanced-pool.d.ts +0 -30
  587. package/node_modules/@types/ws/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  588. package/node_modules/@types/ws/node_modules/undici-types/cache.d.ts +0 -36
  589. package/node_modules/@types/ws/node_modules/undici-types/client-stats.d.ts +0 -15
  590. package/node_modules/@types/ws/node_modules/undici-types/client.d.ts +0 -129
  591. package/node_modules/@types/ws/node_modules/undici-types/connector.d.ts +0 -36
  592. package/node_modules/@types/ws/node_modules/undici-types/content-type.d.ts +0 -21
  593. package/node_modules/@types/ws/node_modules/undici-types/cookies.d.ts +0 -30
  594. package/node_modules/@types/ws/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  595. package/node_modules/@types/ws/node_modules/undici-types/dispatcher.d.ts +0 -253
  596. package/node_modules/@types/ws/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  597. package/node_modules/@types/ws/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  598. package/node_modules/@types/ws/node_modules/undici-types/errors.d.ts +0 -177
  599. package/node_modules/@types/ws/node_modules/undici-types/eventsource.d.ts +0 -66
  600. package/node_modules/@types/ws/node_modules/undici-types/fetch.d.ts +0 -231
  601. package/node_modules/@types/ws/node_modules/undici-types/formdata.d.ts +0 -108
  602. package/node_modules/@types/ws/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  603. package/node_modules/@types/ws/node_modules/undici-types/global-origin.d.ts +0 -7
  604. package/node_modules/@types/ws/node_modules/undici-types/h2c-client.d.ts +0 -73
  605. package/node_modules/@types/ws/node_modules/undici-types/handlers.d.ts +0 -14
  606. package/node_modules/@types/ws/node_modules/undici-types/header.d.ts +0 -165
  607. package/node_modules/@types/ws/node_modules/undici-types/index.d.ts +0 -93
  608. package/node_modules/@types/ws/node_modules/undici-types/interceptors.d.ts +0 -80
  609. package/node_modules/@types/ws/node_modules/undici-types/mock-agent.d.ts +0 -68
  610. package/node_modules/@types/ws/node_modules/undici-types/mock-call-history.d.ts +0 -111
  611. package/node_modules/@types/ws/node_modules/undici-types/mock-client.d.ts +0 -27
  612. package/node_modules/@types/ws/node_modules/undici-types/mock-errors.d.ts +0 -12
  613. package/node_modules/@types/ws/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  614. package/node_modules/@types/ws/node_modules/undici-types/mock-pool.d.ts +0 -27
  615. package/node_modules/@types/ws/node_modules/undici-types/package.json +0 -55
  616. package/node_modules/@types/ws/node_modules/undici-types/patch.d.ts +0 -29
  617. package/node_modules/@types/ws/node_modules/undici-types/pool-stats.d.ts +0 -19
  618. package/node_modules/@types/ws/node_modules/undici-types/pool.d.ts +0 -39
  619. package/node_modules/@types/ws/node_modules/undici-types/proxy-agent.d.ts +0 -29
  620. package/node_modules/@types/ws/node_modules/undici-types/readable.d.ts +0 -68
  621. package/node_modules/@types/ws/node_modules/undici-types/retry-agent.d.ts +0 -8
  622. package/node_modules/@types/ws/node_modules/undici-types/retry-handler.d.ts +0 -125
  623. package/node_modules/@types/ws/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  624. package/node_modules/@types/ws/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  625. package/node_modules/@types/ws/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  626. package/node_modules/@types/ws/node_modules/undici-types/util.d.ts +0 -18
  627. package/node_modules/@types/ws/node_modules/undici-types/utility.d.ts +0 -7
  628. package/node_modules/@types/ws/node_modules/undici-types/webidl.d.ts +0 -346
  629. package/node_modules/@types/ws/node_modules/undici-types/websocket.d.ts +0 -188
  630. package/node_modules/@types/ws/package.json +0 -72
  631. package/node_modules/ircv3/LICENSE +0 -21
  632. package/node_modules/ircv3/README.md +0 -6
  633. package/node_modules/ircv3/es/Capability/Capability.mjs +0 -1
  634. package/node_modules/ircv3/es/Capability/CoreCapabilities/AwayNotifyCapability.mjs +0 -4
  635. package/node_modules/ircv3/es/Capability/CoreCapabilities/BatchCapability/MessageTypes/Commands/Batch.mjs +0 -11
  636. package/node_modules/ircv3/es/Capability/CoreCapabilities/BatchCapability/index.mjs +0 -6
  637. package/node_modules/ircv3/es/Capability/CoreCapabilities/CapNotifyCapability.mjs +0 -4
  638. package/node_modules/ircv3/es/Capability/CoreCapabilities/ChgHostCapability/MessageTypes/Commands/ChgHost.mjs +0 -10
  639. package/node_modules/ircv3/es/Capability/CoreCapabilities/ChgHostCapability/index.mjs +0 -5
  640. package/node_modules/ircv3/es/Capability/CoreCapabilities/InviteNotifyCapability.mjs +0 -4
  641. package/node_modules/ircv3/es/Capability/CoreCapabilities/LabeledResponseCapability/MessageTypes/Commands/Acknowledgement.mjs +0 -4
  642. package/node_modules/ircv3/es/Capability/CoreCapabilities/LabeledResponseCapability/index.mjs +0 -6
  643. package/node_modules/ircv3/es/Capability/CoreCapabilities/MessageTagsCapability.mjs +0 -5
  644. package/node_modules/ircv3/es/Capability/CoreCapabilities/MultiPrefixCapability.mjs +0 -4
  645. package/node_modules/ircv3/es/Capability/CoreCapabilities/index.mjs +0 -8
  646. package/node_modules/ircv3/es/Errors/MessageError.mjs +0 -14
  647. package/node_modules/ircv3/es/Errors/NotEnoughParametersError.mjs +0 -22
  648. package/node_modules/ircv3/es/Errors/ParameterRequirementMismatchError.mjs +0 -27
  649. package/node_modules/ircv3/es/Errors/UnknownChannelModeCharError.mjs +0 -14
  650. package/node_modules/ircv3/es/IrcClient.mjs +0 -638
  651. package/node_modules/ircv3/es/Message/Message.mjs +0 -291
  652. package/node_modules/ircv3/es/Message/MessageCollector.mjs +0 -49
  653. package/node_modules/ircv3/es/Message/MessageParser.mjs +0 -98
  654. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Away.mjs +0 -12
  655. package/node_modules/ircv3/es/Message/MessageTypes/Commands/CapabilityNegotiation.mjs +0 -51
  656. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ChannelInvite.mjs +0 -10
  657. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ChannelJoin.mjs +0 -10
  658. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ChannelKick.mjs +0 -11
  659. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ChannelList.mjs +0 -10
  660. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ChannelPart.mjs +0 -10
  661. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ClientQuit.mjs +0 -9
  662. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ErrorMessage.mjs +0 -9
  663. package/node_modules/ircv3/es/Message/MessageTypes/Commands/IsOnQuery.mjs +0 -9
  664. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Kill.mjs +0 -10
  665. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Mode.mjs +0 -83
  666. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Names.mjs +0 -10
  667. package/node_modules/ircv3/es/Message/MessageTypes/Commands/NickChange.mjs +0 -9
  668. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Notice.mjs +0 -10
  669. package/node_modules/ircv3/es/Message/MessageTypes/Commands/OperLogin.mjs +0 -10
  670. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Password.mjs +0 -9
  671. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Ping.mjs +0 -9
  672. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Pong.mjs +0 -10
  673. package/node_modules/ircv3/es/Message/MessageTypes/Commands/PrivateMessage.mjs +0 -10
  674. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Rehash.mjs +0 -4
  675. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Restart.mjs +0 -4
  676. package/node_modules/ircv3/es/Message/MessageTypes/Commands/ServerQuit.mjs +0 -10
  677. package/node_modules/ircv3/es/Message/MessageTypes/Commands/TagMessage.mjs +0 -9
  678. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Time.mjs +0 -9
  679. package/node_modules/ircv3/es/Message/MessageTypes/Commands/Topic.mjs +0 -10
  680. package/node_modules/ircv3/es/Message/MessageTypes/Commands/UserHostQuery.mjs +0 -9
  681. package/node_modules/ircv3/es/Message/MessageTypes/Commands/UserRegistration.mjs +0 -12
  682. package/node_modules/ircv3/es/Message/MessageTypes/Commands/WallopsMessage.mjs +0 -9
  683. package/node_modules/ircv3/es/Message/MessageTypes/Commands/WhoIsQuery.mjs +0 -10
  684. package/node_modules/ircv3/es/Message/MessageTypes/Commands/WhoQuery.mjs +0 -11
  685. package/node_modules/ircv3/es/Message/MessageTypes/Commands/WhoWasQuery.mjs +0 -11
  686. package/node_modules/ircv3/es/Message/MessageTypes/Commands/index.mjs +0 -33
  687. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error401NoSuchNick.mjs +0 -11
  688. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error402NoSuchServer.mjs +0 -11
  689. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error403NoSuchChannel.mjs +0 -11
  690. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error404CanNotSendToChan.mjs +0 -11
  691. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error405TooManyChannels.mjs +0 -11
  692. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error410InvalidCapCmd.mjs +0 -11
  693. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error421UnknownCommand.mjs +0 -17
  694. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error422NoMotd.mjs +0 -10
  695. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error431NoNickNameGiven.mjs +0 -16
  696. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error432ErroneusNickname.mjs +0 -17
  697. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error433NickNameInUse.mjs +0 -17
  698. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error436NickCollision.mjs +0 -17
  699. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error441UserNotInChannel.mjs +0 -18
  700. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error442NotOnChannel.mjs +0 -17
  701. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error443UserOnChannel.mjs +0 -18
  702. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error451NotRegistered.mjs +0 -10
  703. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error461NeedMoreParams.mjs +0 -11
  704. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error462AlreadyRegistered.mjs +0 -10
  705. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error471ChannelIsFull.mjs +0 -11
  706. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error472UnknownMode.mjs +0 -11
  707. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error473InviteOnlyChan.mjs +0 -11
  708. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error474BannedFromChan.mjs +0 -11
  709. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error475BadChannelKey.mjs +0 -11
  710. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error479BadChanName.mjs +0 -11
  711. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error481NoPrivileges.mjs +0 -10
  712. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error482ChanOpPrivsNeeded.mjs +0 -11
  713. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error491NoOperHost.mjs +0 -10
  714. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error501UmodeUnknownFlag.mjs +0 -11
  715. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Error502UsersDontMatch.mjs +0 -10
  716. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply001Welcome.mjs +0 -12
  717. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply002YourHost.mjs +0 -10
  718. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply003Created.mjs +0 -10
  719. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply004ServerInfo.mjs +0 -16
  720. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply005Isupport.mjs +0 -11
  721. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply221UmodeIs.mjs +0 -10
  722. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply301Away.mjs +0 -11
  723. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply302UserHost.mjs +0 -10
  724. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply305UnAway.mjs +0 -10
  725. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply306NowAway.mjs +0 -10
  726. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply311WhoisUser.mjs +0 -14
  727. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply315EndOfWho.mjs +0 -18
  728. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply318EndOfWhois.mjs +0 -11
  729. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply319WhoisChannels.mjs +0 -11
  730. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply322List.mjs +0 -12
  731. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply323ListEnd.mjs +0 -10
  732. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply324ChannelModeIs.mjs +0 -11
  733. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply331NoTopic.mjs +0 -11
  734. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply332Topic.mjs +0 -11
  735. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply333TopicWhoTime.mjs +0 -12
  736. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply341Inviting.mjs +0 -11
  737. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply348ExceptList.mjs +0 -13
  738. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply349EndOfExceptList.mjs +0 -11
  739. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply352WhoReply.mjs +0 -38
  740. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply353NamesReply.mjs +0 -16
  741. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply366EndOfNames.mjs +0 -18
  742. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply367BanList.mjs +0 -13
  743. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply368EndOfBanList.mjs +0 -11
  744. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply372Motd.mjs +0 -10
  745. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply375MotdStart.mjs +0 -10
  746. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply376EndOfMotd.mjs +0 -10
  747. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply381YoureOper.mjs +0 -10
  748. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/Reply391Time.mjs +0 -11
  749. package/node_modules/ircv3/es/Message/MessageTypes/Numerics/index.mjs +0 -62
  750. package/node_modules/ircv3/es/Message/MessageTypes/index.mjs +0 -4
  751. package/node_modules/ircv3/es/ServerProperties.mjs +0 -22
  752. package/node_modules/ircv3/es/Toolkit/StringTools.mjs +0 -40
  753. package/node_modules/ircv3/es/index.mjs +0 -14
  754. package/node_modules/ircv3/lib/Capability/Capability.d.ts +0 -9
  755. package/node_modules/ircv3/lib/Capability/Capability.js +0 -2
  756. package/node_modules/ircv3/lib/Capability/CoreCapabilities/AwayNotifyCapability.d.ts +0 -2
  757. package/node_modules/ircv3/lib/Capability/CoreCapabilities/AwayNotifyCapability.js +0 -7
  758. package/node_modules/ircv3/lib/Capability/CoreCapabilities/BatchCapability/MessageTypes/Commands/Batch.d.ts +0 -13
  759. package/node_modules/ircv3/lib/Capability/CoreCapabilities/BatchCapability/MessageTypes/Commands/Batch.js +0 -15
  760. package/node_modules/ircv3/lib/Capability/CoreCapabilities/BatchCapability/index.d.ts +0 -2
  761. package/node_modules/ircv3/lib/Capability/CoreCapabilities/BatchCapability/index.js +0 -9
  762. package/node_modules/ircv3/lib/Capability/CoreCapabilities/CapNotifyCapability.d.ts +0 -2
  763. package/node_modules/ircv3/lib/Capability/CoreCapabilities/CapNotifyCapability.js +0 -7
  764. package/node_modules/ircv3/lib/Capability/CoreCapabilities/ChgHostCapability/MessageTypes/Commands/ChgHost.d.ts +0 -12
  765. package/node_modules/ircv3/lib/Capability/CoreCapabilities/ChgHostCapability/MessageTypes/Commands/ChgHost.js +0 -14
  766. package/node_modules/ircv3/lib/Capability/CoreCapabilities/ChgHostCapability/index.d.ts +0 -2
  767. package/node_modules/ircv3/lib/Capability/CoreCapabilities/ChgHostCapability/index.js +0 -8
  768. package/node_modules/ircv3/lib/Capability/CoreCapabilities/InviteNotifyCapability.d.ts +0 -2
  769. package/node_modules/ircv3/lib/Capability/CoreCapabilities/InviteNotifyCapability.js +0 -7
  770. package/node_modules/ircv3/lib/Capability/CoreCapabilities/LabeledResponseCapability/MessageTypes/Commands/Acknowledgement.d.ts +0 -4
  771. package/node_modules/ircv3/lib/Capability/CoreCapabilities/LabeledResponseCapability/MessageTypes/Commands/Acknowledgement.js +0 -8
  772. package/node_modules/ircv3/lib/Capability/CoreCapabilities/LabeledResponseCapability/index.d.ts +0 -2
  773. package/node_modules/ircv3/lib/Capability/CoreCapabilities/LabeledResponseCapability/index.js +0 -9
  774. package/node_modules/ircv3/lib/Capability/CoreCapabilities/MessageTagsCapability.d.ts +0 -2
  775. package/node_modules/ircv3/lib/Capability/CoreCapabilities/MessageTagsCapability.js +0 -8
  776. package/node_modules/ircv3/lib/Capability/CoreCapabilities/MultiPrefixCapability.d.ts +0 -2
  777. package/node_modules/ircv3/lib/Capability/CoreCapabilities/MultiPrefixCapability.js +0 -7
  778. package/node_modules/ircv3/lib/Capability/CoreCapabilities/index.d.ts +0 -8
  779. package/node_modules/ircv3/lib/Capability/CoreCapabilities/index.js +0 -19
  780. package/node_modules/ircv3/lib/Errors/MessageError.d.ts +0 -6
  781. package/node_modules/ircv3/lib/Errors/MessageError.js +0 -18
  782. package/node_modules/ircv3/lib/Errors/NotEnoughParametersError.d.ts +0 -9
  783. package/node_modules/ircv3/lib/Errors/NotEnoughParametersError.js +0 -26
  784. package/node_modules/ircv3/lib/Errors/ParameterRequirementMismatchError.d.ts +0 -12
  785. package/node_modules/ircv3/lib/Errors/ParameterRequirementMismatchError.js +0 -31
  786. package/node_modules/ircv3/lib/Errors/UnknownChannelModeCharError.d.ts +0 -5
  787. package/node_modules/ircv3/lib/Errors/UnknownChannelModeCharError.js +0 -18
  788. package/node_modules/ircv3/lib/IrcClient.d.ts +0 -154
  789. package/node_modules/ircv3/lib/IrcClient.js +0 -642
  790. package/node_modules/ircv3/lib/Message/Message.d.ts +0 -88
  791. package/node_modules/ircv3/lib/Message/Message.js +0 -297
  792. package/node_modules/ircv3/lib/Message/MessageCollector.d.ts +0 -20
  793. package/node_modules/ircv3/lib/Message/MessageCollector.js +0 -53
  794. package/node_modules/ircv3/lib/Message/MessageParser.d.ts +0 -5
  795. package/node_modules/ircv3/lib/Message/MessageParser.js +0 -104
  796. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Away.d.ts +0 -11
  797. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Away.js +0 -16
  798. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/CapabilityNegotiation.d.ts +0 -18
  799. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/CapabilityNegotiation.js +0 -55
  800. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelInvite.d.ts +0 -12
  801. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelInvite.js +0 -14
  802. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelJoin.d.ts +0 -12
  803. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelJoin.js +0 -14
  804. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelKick.d.ts +0 -13
  805. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelKick.js +0 -15
  806. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelList.d.ts +0 -12
  807. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelList.js +0 -14
  808. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelPart.d.ts +0 -12
  809. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ChannelPart.js +0 -14
  810. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ClientQuit.d.ts +0 -11
  811. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ClientQuit.js +0 -13
  812. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ErrorMessage.d.ts +0 -11
  813. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ErrorMessage.js +0 -13
  814. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/IsOnQuery.d.ts +0 -11
  815. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/IsOnQuery.js +0 -13
  816. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Kill.d.ts +0 -12
  817. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Kill.js +0 -14
  818. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Mode.d.ts +0 -22
  819. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Mode.js +0 -87
  820. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Names.d.ts +0 -12
  821. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Names.js +0 -14
  822. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/NickChange.d.ts +0 -11
  823. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/NickChange.js +0 -13
  824. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Notice.d.ts +0 -12
  825. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Notice.js +0 -14
  826. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/OperLogin.d.ts +0 -12
  827. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/OperLogin.js +0 -14
  828. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Password.d.ts +0 -11
  829. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Password.js +0 -13
  830. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Ping.d.ts +0 -11
  831. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Ping.js +0 -13
  832. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Pong.d.ts +0 -12
  833. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Pong.js +0 -14
  834. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/PrivateMessage.d.ts +0 -12
  835. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/PrivateMessage.js +0 -14
  836. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Rehash.d.ts +0 -4
  837. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Rehash.js +0 -8
  838. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Restart.d.ts +0 -4
  839. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Restart.js +0 -8
  840. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ServerQuit.d.ts +0 -12
  841. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/ServerQuit.js +0 -14
  842. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/TagMessage.d.ts +0 -11
  843. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/TagMessage.js +0 -13
  844. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Time.d.ts +0 -11
  845. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Time.js +0 -13
  846. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Topic.d.ts +0 -12
  847. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/Topic.js +0 -14
  848. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/UserHostQuery.d.ts +0 -11
  849. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/UserHostQuery.js +0 -13
  850. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/UserRegistration.d.ts +0 -14
  851. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/UserRegistration.js +0 -16
  852. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WallopsMessage.d.ts +0 -11
  853. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WallopsMessage.js +0 -13
  854. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoIsQuery.d.ts +0 -12
  855. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoIsQuery.js +0 -14
  856. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoQuery.d.ts +0 -13
  857. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoQuery.js +0 -15
  858. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoWasQuery.d.ts +0 -13
  859. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/WhoWasQuery.js +0 -15
  860. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/index.d.ts +0 -32
  861. package/node_modules/ircv3/lib/Message/MessageTypes/Commands/index.js +0 -126
  862. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error401NoSuchNick.d.ts +0 -13
  863. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error401NoSuchNick.js +0 -15
  864. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error402NoSuchServer.d.ts +0 -13
  865. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error402NoSuchServer.js +0 -15
  866. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error403NoSuchChannel.d.ts +0 -13
  867. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error403NoSuchChannel.js +0 -15
  868. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error404CanNotSendToChan.d.ts +0 -13
  869. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error404CanNotSendToChan.js +0 -15
  870. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error405TooManyChannels.d.ts +0 -13
  871. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error405TooManyChannels.js +0 -15
  872. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error410InvalidCapCmd.d.ts +0 -13
  873. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error410InvalidCapCmd.js +0 -15
  874. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error421UnknownCommand.d.ts +0 -15
  875. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error421UnknownCommand.js +0 -21
  876. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error422NoMotd.d.ts +0 -12
  877. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error422NoMotd.js +0 -14
  878. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error431NoNickNameGiven.d.ts +0 -14
  879. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error431NoNickNameGiven.js +0 -20
  880. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error432ErroneusNickname.d.ts +0 -15
  881. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error432ErroneusNickname.js +0 -21
  882. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error433NickNameInUse.d.ts +0 -15
  883. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error433NickNameInUse.js +0 -21
  884. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error436NickCollision.d.ts +0 -15
  885. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error436NickCollision.js +0 -21
  886. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error441UserNotInChannel.d.ts +0 -16
  887. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error441UserNotInChannel.js +0 -22
  888. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error442NotOnChannel.d.ts +0 -15
  889. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error442NotOnChannel.js +0 -21
  890. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error443UserOnChannel.d.ts +0 -16
  891. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error443UserOnChannel.js +0 -22
  892. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error451NotRegistered.d.ts +0 -12
  893. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error451NotRegistered.js +0 -14
  894. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error461NeedMoreParams.d.ts +0 -13
  895. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error461NeedMoreParams.js +0 -15
  896. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error462AlreadyRegistered.d.ts +0 -12
  897. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error462AlreadyRegistered.js +0 -14
  898. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error471ChannelIsFull.d.ts +0 -13
  899. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error471ChannelIsFull.js +0 -15
  900. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error472UnknownMode.d.ts +0 -13
  901. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error472UnknownMode.js +0 -15
  902. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error473InviteOnlyChan.d.ts +0 -13
  903. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error473InviteOnlyChan.js +0 -15
  904. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error474BannedFromChan.d.ts +0 -13
  905. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error474BannedFromChan.js +0 -15
  906. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error475BadChannelKey.d.ts +0 -13
  907. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error475BadChannelKey.js +0 -15
  908. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error479BadChanName.d.ts +0 -13
  909. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error479BadChanName.js +0 -15
  910. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error481NoPrivileges.d.ts +0 -12
  911. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error481NoPrivileges.js +0 -14
  912. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error482ChanOpPrivsNeeded.d.ts +0 -13
  913. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error482ChanOpPrivsNeeded.js +0 -15
  914. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error491NoOperHost.d.ts +0 -12
  915. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error491NoOperHost.js +0 -14
  916. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error501UmodeUnknownFlag.d.ts +0 -13
  917. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error501UmodeUnknownFlag.js +0 -15
  918. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error502UsersDontMatch.d.ts +0 -12
  919. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error502UsersDontMatch.js +0 -14
  920. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply001Welcome.d.ts +0 -12
  921. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply001Welcome.js +0 -16
  922. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply002YourHost.d.ts +0 -12
  923. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply002YourHost.js +0 -14
  924. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply003Created.d.ts +0 -12
  925. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply003Created.js +0 -14
  926. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply004ServerInfo.d.ts +0 -16
  927. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply004ServerInfo.js +0 -20
  928. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply005Isupport.d.ts +0 -13
  929. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply005Isupport.js +0 -15
  930. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply221UmodeIs.d.ts +0 -12
  931. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply221UmodeIs.js +0 -14
  932. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply301Away.d.ts +0 -13
  933. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply301Away.js +0 -15
  934. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply302UserHost.d.ts +0 -12
  935. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply302UserHost.js +0 -14
  936. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply305UnAway.d.ts +0 -12
  937. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply305UnAway.js +0 -14
  938. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply306NowAway.d.ts +0 -12
  939. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply306NowAway.js +0 -14
  940. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply311WhoisUser.d.ts +0 -16
  941. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply311WhoisUser.js +0 -18
  942. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply315EndOfWho.d.ts +0 -15
  943. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply315EndOfWho.js +0 -22
  944. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply318EndOfWhois.d.ts +0 -13
  945. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply318EndOfWhois.js +0 -15
  946. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply319WhoisChannels.d.ts +0 -13
  947. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply319WhoisChannels.js +0 -15
  948. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply322List.d.ts +0 -14
  949. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply322List.js +0 -16
  950. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply323ListEnd.d.ts +0 -12
  951. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply323ListEnd.js +0 -14
  952. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply324ChannelModeIs.d.ts +0 -13
  953. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply324ChannelModeIs.js +0 -15
  954. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply331NoTopic.d.ts +0 -13
  955. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply331NoTopic.js +0 -15
  956. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply332Topic.d.ts +0 -13
  957. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply332Topic.js +0 -15
  958. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply333TopicWhoTime.d.ts +0 -14
  959. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply333TopicWhoTime.js +0 -16
  960. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply341Inviting.d.ts +0 -13
  961. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply341Inviting.js +0 -15
  962. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply348ExceptList.d.ts +0 -15
  963. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply348ExceptList.js +0 -17
  964. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply349EndOfExceptList.d.ts +0 -13
  965. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply349EndOfExceptList.js +0 -15
  966. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply352WhoReply.d.ts +0 -31
  967. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply352WhoReply.js +0 -42
  968. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply353NamesReply.d.ts +0 -15
  969. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply353NamesReply.js +0 -20
  970. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply366EndOfNames.d.ts +0 -15
  971. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply366EndOfNames.js +0 -22
  972. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply367BanList.d.ts +0 -15
  973. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply367BanList.js +0 -17
  974. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply368EndOfBanList.d.ts +0 -13
  975. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply368EndOfBanList.js +0 -15
  976. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply372Motd.d.ts +0 -12
  977. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply372Motd.js +0 -14
  978. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply375MotdStart.d.ts +0 -12
  979. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply375MotdStart.js +0 -14
  980. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply376EndOfMotd.d.ts +0 -12
  981. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply376EndOfMotd.js +0 -14
  982. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply381YoureOper.d.ts +0 -12
  983. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply381YoureOper.js +0 -14
  984. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply391Time.d.ts +0 -13
  985. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/Reply391Time.js +0 -15
  986. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/index.d.ts +0 -62
  987. package/node_modules/ircv3/lib/Message/MessageTypes/Numerics/index.js +0 -128
  988. package/node_modules/ircv3/lib/Message/MessageTypes/index.d.ts +0 -5
  989. package/node_modules/ircv3/lib/Message/MessageTypes/index.js +0 -8
  990. package/node_modules/ircv3/lib/ServerProperties.d.ts +0 -18
  991. package/node_modules/ircv3/lib/ServerProperties.js +0 -25
  992. package/node_modules/ircv3/lib/Toolkit/StringTools.d.ts +0 -7
  993. package/node_modules/ircv3/lib/Toolkit/StringTools.js +0 -46
  994. package/node_modules/ircv3/lib/index.d.ts +0 -20
  995. package/node_modules/ircv3/lib/index.js +0 -34
  996. package/node_modules/ircv3/package.json +0 -67
  997. package/node_modules/klona/dist/index.js +0 -83
  998. package/node_modules/klona/dist/index.min.js +0 -1
  999. package/node_modules/klona/dist/index.mjs +0 -81
  1000. package/node_modules/klona/full/index.d.ts +0 -1
  1001. package/node_modules/klona/full/index.js +0 -55
  1002. package/node_modules/klona/full/index.min.js +0 -1
  1003. package/node_modules/klona/full/index.mjs +0 -53
  1004. package/node_modules/klona/index.d.ts +0 -1
  1005. package/node_modules/klona/json/index.d.ts +0 -1
  1006. package/node_modules/klona/json/index.js +0 -30
  1007. package/node_modules/klona/json/index.min.js +0 -1
  1008. package/node_modules/klona/json/index.mjs +0 -28
  1009. package/node_modules/klona/license +0 -9
  1010. package/node_modules/klona/lite/index.d.ts +0 -1
  1011. package/node_modules/klona/lite/index.js +0 -53
  1012. package/node_modules/klona/lite/index.min.js +0 -1
  1013. package/node_modules/klona/lite/index.mjs +0 -51
  1014. package/node_modules/klona/package.json +0 -74
  1015. package/node_modules/klona/readme.md +0 -213
  1016. package/node_modules/tslib/CopyrightNotice.txt +0 -15
  1017. package/node_modules/tslib/LICENSE.txt +0 -12
  1018. package/node_modules/tslib/README.md +0 -164
  1019. package/node_modules/tslib/SECURITY.md +0 -41
  1020. package/node_modules/tslib/modules/index.d.ts +0 -38
  1021. package/node_modules/tslib/modules/index.js +0 -70
  1022. package/node_modules/tslib/modules/package.json +0 -3
  1023. package/node_modules/tslib/package.json +0 -47
  1024. package/node_modules/tslib/tslib.d.ts +0 -460
  1025. package/node_modules/tslib/tslib.es6.html +0 -1
  1026. package/node_modules/tslib/tslib.es6.js +0 -402
  1027. package/node_modules/tslib/tslib.es6.mjs +0 -401
  1028. package/node_modules/tslib/tslib.html +0 -1
  1029. package/node_modules/tslib/tslib.js +0 -484
  1030. package/node_modules/undici-types/LICENSE +0 -21
  1031. package/node_modules/undici-types/README.md +0 -6
  1032. package/node_modules/undici-types/agent.d.ts +0 -31
  1033. package/node_modules/undici-types/api.d.ts +0 -43
  1034. package/node_modules/undici-types/balanced-pool.d.ts +0 -29
  1035. package/node_modules/undici-types/cache.d.ts +0 -36
  1036. package/node_modules/undici-types/client.d.ts +0 -108
  1037. package/node_modules/undici-types/connector.d.ts +0 -34
  1038. package/node_modules/undici-types/content-type.d.ts +0 -21
  1039. package/node_modules/undici-types/cookies.d.ts +0 -28
  1040. package/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  1041. package/node_modules/undici-types/dispatcher.d.ts +0 -256
  1042. package/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  1043. package/node_modules/undici-types/errors.d.ts +0 -149
  1044. package/node_modules/undici-types/eventsource.d.ts +0 -61
  1045. package/node_modules/undici-types/fetch.d.ts +0 -209
  1046. package/node_modules/undici-types/file.d.ts +0 -39
  1047. package/node_modules/undici-types/filereader.d.ts +0 -54
  1048. package/node_modules/undici-types/formdata.d.ts +0 -108
  1049. package/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1050. package/node_modules/undici-types/global-origin.d.ts +0 -7
  1051. package/node_modules/undici-types/handlers.d.ts +0 -15
  1052. package/node_modules/undici-types/header.d.ts +0 -4
  1053. package/node_modules/undici-types/index.d.ts +0 -71
  1054. package/node_modules/undici-types/interceptors.d.ts +0 -17
  1055. package/node_modules/undici-types/mock-agent.d.ts +0 -50
  1056. package/node_modules/undici-types/mock-client.d.ts +0 -25
  1057. package/node_modules/undici-types/mock-errors.d.ts +0 -12
  1058. package/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  1059. package/node_modules/undici-types/mock-pool.d.ts +0 -25
  1060. package/node_modules/undici-types/package.json +0 -55
  1061. package/node_modules/undici-types/patch.d.ts +0 -33
  1062. package/node_modules/undici-types/pool-stats.d.ts +0 -19
  1063. package/node_modules/undici-types/pool.d.ts +0 -39
  1064. package/node_modules/undici-types/proxy-agent.d.ts +0 -28
  1065. package/node_modules/undici-types/readable.d.ts +0 -65
  1066. package/node_modules/undici-types/retry-agent.d.ts +0 -8
  1067. package/node_modules/undici-types/retry-handler.d.ts +0 -116
  1068. package/node_modules/undici-types/util.d.ts +0 -18
  1069. package/node_modules/undici-types/webidl.d.ts +0 -228
  1070. package/node_modules/undici-types/websocket.d.ts +0 -150
  1071. package/node_modules/ws/LICENSE +0 -20
  1072. package/node_modules/ws/README.md +0 -548
  1073. package/node_modules/ws/browser.js +0 -8
  1074. package/node_modules/ws/index.js +0 -22
  1075. package/node_modules/ws/lib/buffer-util.js +0 -131
  1076. package/node_modules/ws/lib/constants.js +0 -19
  1077. package/node_modules/ws/lib/event-target.js +0 -292
  1078. package/node_modules/ws/lib/extension.js +0 -203
  1079. package/node_modules/ws/lib/limiter.js +0 -55
  1080. package/node_modules/ws/lib/permessage-deflate.js +0 -528
  1081. package/node_modules/ws/lib/receiver.js +0 -760
  1082. package/node_modules/ws/lib/sender.js +0 -607
  1083. package/node_modules/ws/lib/stream.js +0 -161
  1084. package/node_modules/ws/lib/subprotocol.js +0 -62
  1085. package/node_modules/ws/lib/validation.js +0 -152
  1086. package/node_modules/ws/lib/websocket-server.js +0 -562
  1087. package/node_modules/ws/lib/websocket.js +0 -1407
  1088. package/node_modules/ws/package.json +0 -70
  1089. package/node_modules/ws/wrapper.mjs +0 -21
  1090. package/node_modules/zod/LICENSE +0 -21
  1091. package/node_modules/zod/README.md +0 -191
  1092. package/node_modules/zod/index.cjs +0 -33
  1093. package/node_modules/zod/index.d.cts +0 -4
  1094. package/node_modules/zod/index.d.ts +0 -4
  1095. package/node_modules/zod/index.js +0 -4
  1096. package/node_modules/zod/locales/index.cjs +0 -17
  1097. package/node_modules/zod/locales/index.d.cts +0 -1
  1098. package/node_modules/zod/locales/index.d.ts +0 -1
  1099. package/node_modules/zod/locales/index.js +0 -1
  1100. package/node_modules/zod/locales/package.json +0 -7
  1101. package/node_modules/zod/mini/index.cjs +0 -32
  1102. package/node_modules/zod/mini/index.d.cts +0 -3
  1103. package/node_modules/zod/mini/index.d.ts +0 -3
  1104. package/node_modules/zod/mini/index.js +0 -3
  1105. package/node_modules/zod/mini/package.json +0 -7
  1106. package/node_modules/zod/package.json +0 -135
  1107. package/node_modules/zod/src/index.ts +0 -4
  1108. package/node_modules/zod/src/locales/index.ts +0 -1
  1109. package/node_modules/zod/src/mini/index.ts +0 -3
  1110. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  1111. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  1112. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  1113. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  1114. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  1115. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  1116. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  1117. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  1118. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  1119. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  1120. package/node_modules/zod/src/v3/errors.ts +0 -13
  1121. package/node_modules/zod/src/v3/external.ts +0 -6
  1122. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  1123. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  1124. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  1125. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  1126. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  1127. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  1128. package/node_modules/zod/src/v3/index.ts +0 -4
  1129. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  1130. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  1131. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  1132. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  1133. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  1134. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  1135. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  1136. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  1137. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  1138. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  1139. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  1140. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  1141. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  1142. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  1143. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  1144. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  1145. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  1146. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  1147. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  1148. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  1149. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  1150. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  1151. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  1152. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  1153. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  1154. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  1155. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  1156. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  1157. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  1158. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  1159. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  1160. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  1161. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  1162. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  1163. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  1164. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  1165. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  1166. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  1167. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  1168. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  1169. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  1170. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  1171. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  1172. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  1173. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  1174. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  1175. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  1176. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  1177. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  1178. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  1179. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  1180. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  1181. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  1182. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  1183. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  1184. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  1185. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  1186. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  1187. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  1188. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  1189. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  1190. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  1191. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  1192. package/node_modules/zod/src/v3/types.ts +0 -5138
  1193. package/node_modules/zod/src/v4/classic/checks.ts +0 -32
  1194. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  1195. package/node_modules/zod/src/v4/classic/compat.ts +0 -70
  1196. package/node_modules/zod/src/v4/classic/errors.ts +0 -82
  1197. package/node_modules/zod/src/v4/classic/external.ts +0 -52
  1198. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  1199. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  1200. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  1201. package/node_modules/zod/src/v4/classic/parse.ts +0 -82
  1202. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  1203. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  1204. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  1205. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  1206. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  1207. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  1208. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  1209. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  1210. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  1211. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  1212. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  1213. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  1214. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  1215. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  1216. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  1217. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  1218. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  1219. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  1220. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  1221. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  1222. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  1223. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  1224. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  1225. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  1226. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  1227. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  1228. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  1229. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  1230. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  1231. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  1232. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  1233. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  1234. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  1235. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  1236. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  1237. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  1238. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  1239. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  1240. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  1241. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  1242. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  1243. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  1244. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  1245. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  1246. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  1247. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  1248. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  1249. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  1250. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  1251. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  1252. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  1253. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  1254. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  1255. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  1256. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  1257. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  1258. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  1259. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  1260. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  1261. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  1262. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  1263. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  1264. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  1265. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  1266. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  1267. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  1268. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  1269. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  1270. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  1271. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  1272. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  1273. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  1274. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  1275. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  1276. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  1277. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  1278. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  1279. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  1280. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  1281. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  1282. package/node_modules/zod/src/v4/core/api.ts +0 -1823
  1283. package/node_modules/zod/src/v4/core/checks.ts +0 -1293
  1284. package/node_modules/zod/src/v4/core/config.ts +0 -15
  1285. package/node_modules/zod/src/v4/core/core.ts +0 -153
  1286. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  1287. package/node_modules/zod/src/v4/core/errors.ts +0 -455
  1288. package/node_modules/zod/src/v4/core/index.ts +0 -16
  1289. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  1290. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  1291. package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  1292. package/node_modules/zod/src/v4/core/parse.ts +0 -195
  1293. package/node_modules/zod/src/v4/core/regexes.ts +0 -190
  1294. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  1295. package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  1296. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  1297. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  1298. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  1299. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  1300. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  1301. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  1302. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  1303. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  1304. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  1305. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  1306. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  1307. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  1308. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  1309. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  1310. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  1311. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  1312. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  1313. package/node_modules/zod/src/v4/core/util.ts +0 -983
  1314. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  1315. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  1316. package/node_modules/zod/src/v4/index.ts +0 -4
  1317. package/node_modules/zod/src/v4/locales/ar.ts +0 -115
  1318. package/node_modules/zod/src/v4/locales/az.ts +0 -111
  1319. package/node_modules/zod/src/v4/locales/be.ts +0 -176
  1320. package/node_modules/zod/src/v4/locales/bg.ts +0 -128
  1321. package/node_modules/zod/src/v4/locales/ca.ts +0 -116
  1322. package/node_modules/zod/src/v4/locales/cs.ts +0 -118
  1323. package/node_modules/zod/src/v4/locales/da.ts +0 -123
  1324. package/node_modules/zod/src/v4/locales/de.ts +0 -116
  1325. package/node_modules/zod/src/v4/locales/el.ts +0 -121
  1326. package/node_modules/zod/src/v4/locales/en.ts +0 -123
  1327. package/node_modules/zod/src/v4/locales/eo.ts +0 -118
  1328. package/node_modules/zod/src/v4/locales/es.ts +0 -141
  1329. package/node_modules/zod/src/v4/locales/fa.ts +0 -126
  1330. package/node_modules/zod/src/v4/locales/fi.ts +0 -121
  1331. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  1332. package/node_modules/zod/src/v4/locales/fr.ts +0 -132
  1333. package/node_modules/zod/src/v4/locales/he.ts +0 -246
  1334. package/node_modules/zod/src/v4/locales/hr.ts +0 -131
  1335. package/node_modules/zod/src/v4/locales/hu.ts +0 -117
  1336. package/node_modules/zod/src/v4/locales/hy.ts +0 -164
  1337. package/node_modules/zod/src/v4/locales/id.ts +0 -115
  1338. package/node_modules/zod/src/v4/locales/index.ts +0 -52
  1339. package/node_modules/zod/src/v4/locales/is.ts +0 -119
  1340. package/node_modules/zod/src/v4/locales/it.ts +0 -116
  1341. package/node_modules/zod/src/v4/locales/ja.ts +0 -114
  1342. package/node_modules/zod/src/v4/locales/ka.ts +0 -123
  1343. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  1344. package/node_modules/zod/src/v4/locales/km.ts +0 -119
  1345. package/node_modules/zod/src/v4/locales/ko.ts +0 -121
  1346. package/node_modules/zod/src/v4/locales/lt.ts +0 -239
  1347. package/node_modules/zod/src/v4/locales/mk.ts +0 -118
  1348. package/node_modules/zod/src/v4/locales/ms.ts +0 -115
  1349. package/node_modules/zod/src/v4/locales/nl.ts +0 -121
  1350. package/node_modules/zod/src/v4/locales/no.ts +0 -116
  1351. package/node_modules/zod/src/v4/locales/ota.ts +0 -117
  1352. package/node_modules/zod/src/v4/locales/pl.ts +0 -118
  1353. package/node_modules/zod/src/v4/locales/ps.ts +0 -126
  1354. package/node_modules/zod/src/v4/locales/pt.ts +0 -116
  1355. package/node_modules/zod/src/v4/locales/ro.ts +0 -129
  1356. package/node_modules/zod/src/v4/locales/ru.ts +0 -176
  1357. package/node_modules/zod/src/v4/locales/sl.ts +0 -118
  1358. package/node_modules/zod/src/v4/locales/sv.ts +0 -119
  1359. package/node_modules/zod/src/v4/locales/ta.ts +0 -118
  1360. package/node_modules/zod/src/v4/locales/th.ts +0 -119
  1361. package/node_modules/zod/src/v4/locales/tr.ts +0 -111
  1362. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  1363. package/node_modules/zod/src/v4/locales/uk.ts +0 -117
  1364. package/node_modules/zod/src/v4/locales/ur.ts +0 -119
  1365. package/node_modules/zod/src/v4/locales/uz.ts +0 -117
  1366. package/node_modules/zod/src/v4/locales/vi.ts +0 -117
  1367. package/node_modules/zod/src/v4/locales/yo.ts +0 -124
  1368. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  1369. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  1370. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  1371. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  1372. package/node_modules/zod/src/v4/mini/external.ts +0 -41
  1373. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  1374. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  1375. package/node_modules/zod/src/v4/mini/parse.ts +0 -14
  1376. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  1377. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  1378. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  1379. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  1380. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  1381. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  1382. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  1383. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  1384. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  1385. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  1386. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  1387. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  1388. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  1389. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  1390. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  1391. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  1392. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  1393. package/node_modules/zod/v3/ZodError.cjs +0 -138
  1394. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  1395. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  1396. package/node_modules/zod/v3/ZodError.js +0 -133
  1397. package/node_modules/zod/v3/errors.cjs +0 -17
  1398. package/node_modules/zod/v3/errors.d.cts +0 -5
  1399. package/node_modules/zod/v3/errors.d.ts +0 -5
  1400. package/node_modules/zod/v3/errors.js +0 -9
  1401. package/node_modules/zod/v3/external.cjs +0 -22
  1402. package/node_modules/zod/v3/external.d.cts +0 -6
  1403. package/node_modules/zod/v3/external.d.ts +0 -6
  1404. package/node_modules/zod/v3/external.js +0 -6
  1405. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  1406. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  1407. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  1408. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  1409. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  1410. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  1411. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  1412. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  1413. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  1414. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  1415. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  1416. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  1417. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  1418. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  1419. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  1420. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  1421. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  1422. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  1423. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  1424. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  1425. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  1426. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  1427. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  1428. package/node_modules/zod/v3/helpers/util.js +0 -133
  1429. package/node_modules/zod/v3/index.cjs +0 -33
  1430. package/node_modules/zod/v3/index.d.cts +0 -4
  1431. package/node_modules/zod/v3/index.d.ts +0 -4
  1432. package/node_modules/zod/v3/index.js +0 -4
  1433. package/node_modules/zod/v3/locales/en.cjs +0 -112
  1434. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  1435. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  1436. package/node_modules/zod/v3/locales/en.js +0 -109
  1437. package/node_modules/zod/v3/package.json +0 -7
  1438. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  1439. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  1440. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  1441. package/node_modules/zod/v3/standard-schema.js +0 -1
  1442. package/node_modules/zod/v3/types.cjs +0 -3777
  1443. package/node_modules/zod/v3/types.d.cts +0 -1034
  1444. package/node_modules/zod/v3/types.d.ts +0 -1034
  1445. package/node_modules/zod/v3/types.js +0 -3695
  1446. package/node_modules/zod/v4/classic/checks.cjs +0 -33
  1447. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  1448. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  1449. package/node_modules/zod/v4/classic/checks.js +0 -1
  1450. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  1451. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  1452. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  1453. package/node_modules/zod/v4/classic/coerce.js +0 -17
  1454. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  1455. package/node_modules/zod/v4/classic/compat.d.cts +0 -50
  1456. package/node_modules/zod/v4/classic/compat.d.ts +0 -50
  1457. package/node_modules/zod/v4/classic/compat.js +0 -31
  1458. package/node_modules/zod/v4/classic/errors.cjs +0 -74
  1459. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  1460. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  1461. package/node_modules/zod/v4/classic/errors.js +0 -48
  1462. package/node_modules/zod/v4/classic/external.cjs +0 -73
  1463. package/node_modules/zod/v4/classic/external.d.cts +0 -16
  1464. package/node_modules/zod/v4/classic/external.d.ts +0 -16
  1465. package/node_modules/zod/v4/classic/external.js +0 -20
  1466. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
  1467. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  1468. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  1469. package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  1470. package/node_modules/zod/v4/classic/index.cjs +0 -33
  1471. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  1472. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  1473. package/node_modules/zod/v4/classic/index.js +0 -4
  1474. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  1475. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  1476. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  1477. package/node_modules/zod/v4/classic/iso.js +0 -30
  1478. package/node_modules/zod/v4/classic/package.json +0 -7
  1479. package/node_modules/zod/v4/classic/parse.cjs +0 -41
  1480. package/node_modules/zod/v4/classic/parse.d.cts +0 -31
  1481. package/node_modules/zod/v4/classic/parse.d.ts +0 -31
  1482. package/node_modules/zod/v4/classic/parse.js +0 -15
  1483. package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
  1484. package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
  1485. package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
  1486. package/node_modules/zod/v4/classic/schemas.js +0 -1395
  1487. package/node_modules/zod/v4/core/api.cjs +0 -1227
  1488. package/node_modules/zod/v4/core/api.d.cts +0 -325
  1489. package/node_modules/zod/v4/core/api.d.ts +0 -325
  1490. package/node_modules/zod/v4/core/api.js +0 -1087
  1491. package/node_modules/zod/v4/core/checks.cjs +0 -601
  1492. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  1493. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  1494. package/node_modules/zod/v4/core/checks.js +0 -575
  1495. package/node_modules/zod/v4/core/core.cjs +0 -85
  1496. package/node_modules/zod/v4/core/core.d.cts +0 -70
  1497. package/node_modules/zod/v4/core/core.d.ts +0 -70
  1498. package/node_modules/zod/v4/core/core.js +0 -78
  1499. package/node_modules/zod/v4/core/doc.cjs +0 -39
  1500. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  1501. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  1502. package/node_modules/zod/v4/core/doc.js +0 -35
  1503. package/node_modules/zod/v4/core/errors.cjs +0 -216
  1504. package/node_modules/zod/v4/core/errors.d.cts +0 -221
  1505. package/node_modules/zod/v4/core/errors.d.ts +0 -221
  1506. package/node_modules/zod/v4/core/errors.js +0 -185
  1507. package/node_modules/zod/v4/core/index.cjs +0 -47
  1508. package/node_modules/zod/v4/core/index.d.cts +0 -16
  1509. package/node_modules/zod/v4/core/index.d.ts +0 -16
  1510. package/node_modules/zod/v4/core/index.js +0 -16
  1511. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  1512. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  1513. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  1514. package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  1515. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
  1516. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  1517. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  1518. package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  1519. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  1520. package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  1521. package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  1522. package/node_modules/zod/v4/core/json-schema.js +0 -1
  1523. package/node_modules/zod/v4/core/package.json +0 -7
  1524. package/node_modules/zod/v4/core/parse.cjs +0 -131
  1525. package/node_modules/zod/v4/core/parse.d.cts +0 -49
  1526. package/node_modules/zod/v4/core/parse.d.ts +0 -49
  1527. package/node_modules/zod/v4/core/parse.js +0 -93
  1528. package/node_modules/zod/v4/core/regexes.cjs +0 -172
  1529. package/node_modules/zod/v4/core/regexes.d.cts +0 -85
  1530. package/node_modules/zod/v4/core/regexes.d.ts +0 -85
  1531. package/node_modules/zod/v4/core/regexes.js +0 -139
  1532. package/node_modules/zod/v4/core/registries.cjs +0 -56
  1533. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  1534. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  1535. package/node_modules/zod/v4/core/registries.js +0 -51
  1536. package/node_modules/zod/v4/core/schemas.cjs +0 -2270
  1537. package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
  1538. package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
  1539. package/node_modules/zod/v4/core/schemas.js +0 -2239
  1540. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  1541. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  1542. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  1543. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  1544. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
  1545. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  1546. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  1547. package/node_modules/zod/v4/core/to-json-schema.js +0 -448
  1548. package/node_modules/zod/v4/core/util.cjs +0 -734
  1549. package/node_modules/zod/v4/core/util.d.cts +0 -200
  1550. package/node_modules/zod/v4/core/util.d.ts +0 -200
  1551. package/node_modules/zod/v4/core/util.js +0 -674
  1552. package/node_modules/zod/v4/core/versions.cjs +0 -8
  1553. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  1554. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  1555. package/node_modules/zod/v4/core/versions.js +0 -5
  1556. package/node_modules/zod/v4/index.cjs +0 -22
  1557. package/node_modules/zod/v4/index.d.cts +0 -3
  1558. package/node_modules/zod/v4/index.d.ts +0 -3
  1559. package/node_modules/zod/v4/index.js +0 -3
  1560. package/node_modules/zod/v4/locales/ar.cjs +0 -133
  1561. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  1562. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  1563. package/node_modules/zod/v4/locales/ar.js +0 -106
  1564. package/node_modules/zod/v4/locales/az.cjs +0 -132
  1565. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  1566. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  1567. package/node_modules/zod/v4/locales/az.js +0 -105
  1568. package/node_modules/zod/v4/locales/be.cjs +0 -183
  1569. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  1570. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  1571. package/node_modules/zod/v4/locales/be.js +0 -156
  1572. package/node_modules/zod/v4/locales/bg.cjs +0 -147
  1573. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1574. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1575. package/node_modules/zod/v4/locales/bg.js +0 -120
  1576. package/node_modules/zod/v4/locales/ca.cjs +0 -134
  1577. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1578. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1579. package/node_modules/zod/v4/locales/ca.js +0 -107
  1580. package/node_modules/zod/v4/locales/cs.cjs +0 -138
  1581. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1582. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1583. package/node_modules/zod/v4/locales/cs.js +0 -111
  1584. package/node_modules/zod/v4/locales/da.cjs +0 -142
  1585. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  1586. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  1587. package/node_modules/zod/v4/locales/da.js +0 -115
  1588. package/node_modules/zod/v4/locales/de.cjs +0 -135
  1589. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  1590. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  1591. package/node_modules/zod/v4/locales/de.js +0 -108
  1592. package/node_modules/zod/v4/locales/el.cjs +0 -136
  1593. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  1594. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  1595. package/node_modules/zod/v4/locales/el.js +0 -109
  1596. package/node_modules/zod/v4/locales/en.cjs +0 -140
  1597. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  1598. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  1599. package/node_modules/zod/v4/locales/en.js +0 -113
  1600. package/node_modules/zod/v4/locales/eo.cjs +0 -136
  1601. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1602. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1603. package/node_modules/zod/v4/locales/eo.js +0 -109
  1604. package/node_modules/zod/v4/locales/es.cjs +0 -159
  1605. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  1606. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  1607. package/node_modules/zod/v4/locales/es.js +0 -132
  1608. package/node_modules/zod/v4/locales/fa.cjs +0 -141
  1609. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1610. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1611. package/node_modules/zod/v4/locales/fa.js +0 -114
  1612. package/node_modules/zod/v4/locales/fi.cjs +0 -139
  1613. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1614. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1615. package/node_modules/zod/v4/locales/fi.js +0 -112
  1616. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  1617. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1618. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1619. package/node_modules/zod/v4/locales/fr-CA.js +0 -107
  1620. package/node_modules/zod/v4/locales/fr.cjs +0 -152
  1621. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1622. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1623. package/node_modules/zod/v4/locales/fr.js +0 -125
  1624. package/node_modules/zod/v4/locales/he.cjs +0 -241
  1625. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  1626. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  1627. package/node_modules/zod/v4/locales/he.js +0 -214
  1628. package/node_modules/zod/v4/locales/hr.cjs +0 -149
  1629. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  1630. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  1631. package/node_modules/zod/v4/locales/hr.js +0 -122
  1632. package/node_modules/zod/v4/locales/hu.cjs +0 -135
  1633. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1634. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1635. package/node_modules/zod/v4/locales/hu.js +0 -108
  1636. package/node_modules/zod/v4/locales/hy.cjs +0 -174
  1637. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1638. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1639. package/node_modules/zod/v4/locales/hy.js +0 -147
  1640. package/node_modules/zod/v4/locales/id.cjs +0 -133
  1641. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  1642. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  1643. package/node_modules/zod/v4/locales/id.js +0 -106
  1644. package/node_modules/zod/v4/locales/index.cjs +0 -111
  1645. package/node_modules/zod/v4/locales/index.d.cts +0 -52
  1646. package/node_modules/zod/v4/locales/index.d.ts +0 -52
  1647. package/node_modules/zod/v4/locales/index.js +0 -52
  1648. package/node_modules/zod/v4/locales/is.cjs +0 -136
  1649. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  1650. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  1651. package/node_modules/zod/v4/locales/is.js +0 -109
  1652. package/node_modules/zod/v4/locales/it.cjs +0 -135
  1653. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  1654. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  1655. package/node_modules/zod/v4/locales/it.js +0 -108
  1656. package/node_modules/zod/v4/locales/ja.cjs +0 -134
  1657. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1658. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1659. package/node_modules/zod/v4/locales/ja.js +0 -107
  1660. package/node_modules/zod/v4/locales/ka.cjs +0 -139
  1661. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1662. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1663. package/node_modules/zod/v4/locales/ka.js +0 -112
  1664. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  1665. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1666. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1667. package/node_modules/zod/v4/locales/kh.js +0 -5
  1668. package/node_modules/zod/v4/locales/km.cjs +0 -137
  1669. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  1670. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  1671. package/node_modules/zod/v4/locales/km.js +0 -110
  1672. package/node_modules/zod/v4/locales/ko.cjs +0 -138
  1673. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1674. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1675. package/node_modules/zod/v4/locales/ko.js +0 -111
  1676. package/node_modules/zod/v4/locales/lt.cjs +0 -230
  1677. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1678. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1679. package/node_modules/zod/v4/locales/lt.js +0 -203
  1680. package/node_modules/zod/v4/locales/mk.cjs +0 -136
  1681. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1682. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1683. package/node_modules/zod/v4/locales/mk.js +0 -109
  1684. package/node_modules/zod/v4/locales/ms.cjs +0 -134
  1685. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1686. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1687. package/node_modules/zod/v4/locales/ms.js +0 -107
  1688. package/node_modules/zod/v4/locales/nl.cjs +0 -137
  1689. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1690. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1691. package/node_modules/zod/v4/locales/nl.js +0 -110
  1692. package/node_modules/zod/v4/locales/no.cjs +0 -135
  1693. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  1694. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  1695. package/node_modules/zod/v4/locales/no.js +0 -108
  1696. package/node_modules/zod/v4/locales/ota.cjs +0 -136
  1697. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1698. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1699. package/node_modules/zod/v4/locales/ota.js +0 -109
  1700. package/node_modules/zod/v4/locales/package.json +0 -7
  1701. package/node_modules/zod/v4/locales/pl.cjs +0 -136
  1702. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1703. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1704. package/node_modules/zod/v4/locales/pl.js +0 -109
  1705. package/node_modules/zod/v4/locales/ps.cjs +0 -141
  1706. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1707. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1708. package/node_modules/zod/v4/locales/ps.js +0 -114
  1709. package/node_modules/zod/v4/locales/pt.cjs +0 -135
  1710. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1711. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1712. package/node_modules/zod/v4/locales/pt.js +0 -108
  1713. package/node_modules/zod/v4/locales/ro.cjs +0 -146
  1714. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  1715. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  1716. package/node_modules/zod/v4/locales/ro.js +0 -119
  1717. package/node_modules/zod/v4/locales/ru.cjs +0 -183
  1718. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1719. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1720. package/node_modules/zod/v4/locales/ru.js +0 -156
  1721. package/node_modules/zod/v4/locales/sl.cjs +0 -136
  1722. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1723. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1724. package/node_modules/zod/v4/locales/sl.js +0 -109
  1725. package/node_modules/zod/v4/locales/sv.cjs +0 -137
  1726. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1727. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1728. package/node_modules/zod/v4/locales/sv.js +0 -110
  1729. package/node_modules/zod/v4/locales/ta.cjs +0 -137
  1730. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1731. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1732. package/node_modules/zod/v4/locales/ta.js +0 -110
  1733. package/node_modules/zod/v4/locales/th.cjs +0 -137
  1734. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  1735. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  1736. package/node_modules/zod/v4/locales/th.js +0 -110
  1737. package/node_modules/zod/v4/locales/tr.cjs +0 -132
  1738. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1739. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1740. package/node_modules/zod/v4/locales/tr.js +0 -105
  1741. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  1742. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1743. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1744. package/node_modules/zod/v4/locales/ua.js +0 -5
  1745. package/node_modules/zod/v4/locales/uk.cjs +0 -135
  1746. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1747. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1748. package/node_modules/zod/v4/locales/uk.js +0 -108
  1749. package/node_modules/zod/v4/locales/ur.cjs +0 -137
  1750. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1751. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1752. package/node_modules/zod/v4/locales/ur.js +0 -110
  1753. package/node_modules/zod/v4/locales/uz.cjs +0 -137
  1754. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1755. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1756. package/node_modules/zod/v4/locales/uz.js +0 -110
  1757. package/node_modules/zod/v4/locales/vi.cjs +0 -135
  1758. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1759. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1760. package/node_modules/zod/v4/locales/vi.js +0 -108
  1761. package/node_modules/zod/v4/locales/yo.cjs +0 -134
  1762. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1763. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1764. package/node_modules/zod/v4/locales/yo.js +0 -107
  1765. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  1766. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1767. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1768. package/node_modules/zod/v4/locales/zh-CN.js +0 -109
  1769. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  1770. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1771. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1772. package/node_modules/zod/v4/locales/zh-TW.js +0 -107
  1773. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  1774. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1775. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1776. package/node_modules/zod/v4/mini/checks.js +0 -1
  1777. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1778. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1779. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1780. package/node_modules/zod/v4/mini/coerce.js +0 -22
  1781. package/node_modules/zod/v4/mini/external.cjs +0 -63
  1782. package/node_modules/zod/v4/mini/external.d.cts +0 -13
  1783. package/node_modules/zod/v4/mini/external.d.ts +0 -13
  1784. package/node_modules/zod/v4/mini/external.js +0 -14
  1785. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1786. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1787. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1788. package/node_modules/zod/v4/mini/index.js +0 -3
  1789. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  1790. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1791. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1792. package/node_modules/zod/v4/mini/iso.js +0 -34
  1793. package/node_modules/zod/v4/mini/package.json +0 -7
  1794. package/node_modules/zod/v4/mini/parse.cjs +0 -16
  1795. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1796. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1797. package/node_modules/zod/v4/mini/parse.js +0 -1
  1798. package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
  1799. package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
  1800. package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
  1801. package/node_modules/zod/v4/mini/schemas.js +0 -961
  1802. package/node_modules/zod/v4/package.json +0 -7
  1803. package/node_modules/zod/v4-mini/index.cjs +0 -32
  1804. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  1805. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  1806. package/node_modules/zod/v4-mini/index.js +0 -3
  1807. package/node_modules/zod/v4-mini/package.json +0 -7
  1808. package/npm-shrinkwrap.json +0 -299
@@ -1,2049 +0,0 @@
1
- /**
2
- * To use the HTTP server and client one must import the `node:http` module.
3
- *
4
- * The HTTP interfaces in Node.js are designed to support many features
5
- * of the protocol which have been traditionally difficult to use.
6
- * In particular, large, possibly chunk-encoded, messages. The interface is
7
- * careful to never buffer entire requests or responses, so the
8
- * user is able to stream data.
9
- *
10
- * HTTP message headers are represented by an object like this:
11
- *
12
- * ```json
13
- * { "content-length": "123",
14
- * "content-type": "text/plain",
15
- * "connection": "keep-alive",
16
- * "host": "example.com",
17
- * "accept": "*" }
18
- * ```
19
- *
20
- * Keys are lowercased. Values are not modified.
21
- *
22
- * In order to support the full spectrum of possible HTTP applications, the Node.js
23
- * HTTP API is very low-level. It deals with stream handling and message
24
- * parsing only. It parses a message into headers and body but it does not
25
- * parse the actual headers or the body.
26
- *
27
- * See `message.headers` for details on how duplicate headers are handled.
28
- *
29
- * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For
30
- * example, the previous message header object might have a `rawHeaders` list like the following:
31
- *
32
- * ```js
33
- * [ 'ConTent-Length', '123456',
34
- * 'content-LENGTH', '123',
35
- * 'content-type', 'text/plain',
36
- * 'CONNECTION', 'keep-alive',
37
- * 'Host', 'example.com',
38
- * 'accepT', '*' ]
39
- * ```
40
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js)
41
- */
42
- declare module "http" {
43
- import { NonSharedBuffer } from "node:buffer";
44
- import * as stream from "node:stream";
45
- import { URL } from "node:url";
46
- import { LookupOptions } from "node:dns";
47
- import { EventEmitter } from "node:events";
48
- import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
49
- // incoming headers will never contain number
50
- interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
51
- accept?: string | undefined;
52
- "accept-encoding"?: string | undefined;
53
- "accept-language"?: string | undefined;
54
- "accept-patch"?: string | undefined;
55
- "accept-ranges"?: string | undefined;
56
- "access-control-allow-credentials"?: string | undefined;
57
- "access-control-allow-headers"?: string | undefined;
58
- "access-control-allow-methods"?: string | undefined;
59
- "access-control-allow-origin"?: string | undefined;
60
- "access-control-expose-headers"?: string | undefined;
61
- "access-control-max-age"?: string | undefined;
62
- "access-control-request-headers"?: string | undefined;
63
- "access-control-request-method"?: string | undefined;
64
- age?: string | undefined;
65
- allow?: string | undefined;
66
- "alt-svc"?: string | undefined;
67
- authorization?: string | undefined;
68
- "cache-control"?: string | undefined;
69
- connection?: string | undefined;
70
- "content-disposition"?: string | undefined;
71
- "content-encoding"?: string | undefined;
72
- "content-language"?: string | undefined;
73
- "content-length"?: string | undefined;
74
- "content-location"?: string | undefined;
75
- "content-range"?: string | undefined;
76
- "content-type"?: string | undefined;
77
- cookie?: string | undefined;
78
- date?: string | undefined;
79
- etag?: string | undefined;
80
- expect?: string | undefined;
81
- expires?: string | undefined;
82
- forwarded?: string | undefined;
83
- from?: string | undefined;
84
- host?: string | undefined;
85
- "if-match"?: string | undefined;
86
- "if-modified-since"?: string | undefined;
87
- "if-none-match"?: string | undefined;
88
- "if-unmodified-since"?: string | undefined;
89
- "last-modified"?: string | undefined;
90
- location?: string | undefined;
91
- origin?: string | undefined;
92
- pragma?: string | undefined;
93
- "proxy-authenticate"?: string | undefined;
94
- "proxy-authorization"?: string | undefined;
95
- "public-key-pins"?: string | undefined;
96
- range?: string | undefined;
97
- referer?: string | undefined;
98
- "retry-after"?: string | undefined;
99
- "sec-fetch-site"?: string | undefined;
100
- "sec-fetch-mode"?: string | undefined;
101
- "sec-fetch-user"?: string | undefined;
102
- "sec-fetch-dest"?: string | undefined;
103
- "sec-websocket-accept"?: string | undefined;
104
- "sec-websocket-extensions"?: string | undefined;
105
- "sec-websocket-key"?: string | undefined;
106
- "sec-websocket-protocol"?: string | undefined;
107
- "sec-websocket-version"?: string | undefined;
108
- "set-cookie"?: string[] | undefined;
109
- "strict-transport-security"?: string | undefined;
110
- tk?: string | undefined;
111
- trailer?: string | undefined;
112
- "transfer-encoding"?: string | undefined;
113
- upgrade?: string | undefined;
114
- "user-agent"?: string | undefined;
115
- vary?: string | undefined;
116
- via?: string | undefined;
117
- warning?: string | undefined;
118
- "www-authenticate"?: string | undefined;
119
- }
120
- // outgoing headers allows numbers (as they are converted internally to strings)
121
- type OutgoingHttpHeader = number | string | string[];
122
- interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
123
- accept?: string | string[] | undefined;
124
- "accept-charset"?: string | string[] | undefined;
125
- "accept-encoding"?: string | string[] | undefined;
126
- "accept-language"?: string | string[] | undefined;
127
- "accept-ranges"?: string | undefined;
128
- "access-control-allow-credentials"?: string | undefined;
129
- "access-control-allow-headers"?: string | undefined;
130
- "access-control-allow-methods"?: string | undefined;
131
- "access-control-allow-origin"?: string | undefined;
132
- "access-control-expose-headers"?: string | undefined;
133
- "access-control-max-age"?: string | undefined;
134
- "access-control-request-headers"?: string | undefined;
135
- "access-control-request-method"?: string | undefined;
136
- age?: string | undefined;
137
- allow?: string | undefined;
138
- authorization?: string | undefined;
139
- "cache-control"?: string | undefined;
140
- "cdn-cache-control"?: string | undefined;
141
- connection?: string | string[] | undefined;
142
- "content-disposition"?: string | undefined;
143
- "content-encoding"?: string | undefined;
144
- "content-language"?: string | undefined;
145
- "content-length"?: string | number | undefined;
146
- "content-location"?: string | undefined;
147
- "content-range"?: string | undefined;
148
- "content-security-policy"?: string | undefined;
149
- "content-security-policy-report-only"?: string | undefined;
150
- cookie?: string | string[] | undefined;
151
- dav?: string | string[] | undefined;
152
- dnt?: string | undefined;
153
- date?: string | undefined;
154
- etag?: string | undefined;
155
- expect?: string | undefined;
156
- expires?: string | undefined;
157
- forwarded?: string | undefined;
158
- from?: string | undefined;
159
- host?: string | undefined;
160
- "if-match"?: string | undefined;
161
- "if-modified-since"?: string | undefined;
162
- "if-none-match"?: string | undefined;
163
- "if-range"?: string | undefined;
164
- "if-unmodified-since"?: string | undefined;
165
- "last-modified"?: string | undefined;
166
- link?: string | string[] | undefined;
167
- location?: string | undefined;
168
- "max-forwards"?: string | undefined;
169
- origin?: string | undefined;
170
- pragma?: string | string[] | undefined;
171
- "proxy-authenticate"?: string | string[] | undefined;
172
- "proxy-authorization"?: string | undefined;
173
- "public-key-pins"?: string | undefined;
174
- "public-key-pins-report-only"?: string | undefined;
175
- range?: string | undefined;
176
- referer?: string | undefined;
177
- "referrer-policy"?: string | undefined;
178
- refresh?: string | undefined;
179
- "retry-after"?: string | undefined;
180
- "sec-websocket-accept"?: string | undefined;
181
- "sec-websocket-extensions"?: string | string[] | undefined;
182
- "sec-websocket-key"?: string | undefined;
183
- "sec-websocket-protocol"?: string | string[] | undefined;
184
- "sec-websocket-version"?: string | undefined;
185
- server?: string | undefined;
186
- "set-cookie"?: string | string[] | undefined;
187
- "strict-transport-security"?: string | undefined;
188
- te?: string | undefined;
189
- trailer?: string | undefined;
190
- "transfer-encoding"?: string | undefined;
191
- "user-agent"?: string | undefined;
192
- upgrade?: string | undefined;
193
- "upgrade-insecure-requests"?: string | undefined;
194
- vary?: string | undefined;
195
- via?: string | string[] | undefined;
196
- warning?: string | undefined;
197
- "www-authenticate"?: string | string[] | undefined;
198
- "x-content-type-options"?: string | undefined;
199
- "x-dns-prefetch-control"?: string | undefined;
200
- "x-frame-options"?: string | undefined;
201
- "x-xss-protection"?: string | undefined;
202
- }
203
- interface ClientRequestArgs extends Pick<LookupOptions, "hints"> {
204
- _defaultAgent?: Agent | undefined;
205
- agent?: Agent | boolean | undefined;
206
- auth?: string | null | undefined;
207
- createConnection?:
208
- | ((
209
- options: ClientRequestArgs,
210
- oncreate: (err: Error | null, socket: stream.Duplex) => void,
211
- ) => stream.Duplex | null | undefined)
212
- | undefined;
213
- defaultPort?: number | string | undefined;
214
- family?: number | undefined;
215
- headers?: OutgoingHttpHeaders | readonly string[] | undefined;
216
- host?: string | null | undefined;
217
- hostname?: string | null | undefined;
218
- insecureHTTPParser?: boolean | undefined;
219
- localAddress?: string | undefined;
220
- localPort?: number | undefined;
221
- lookup?: LookupFunction | undefined;
222
- /**
223
- * @default 16384
224
- */
225
- maxHeaderSize?: number | undefined;
226
- method?: string | undefined;
227
- path?: string | null | undefined;
228
- port?: number | string | null | undefined;
229
- protocol?: string | null | undefined;
230
- setHost?: boolean | undefined;
231
- signal?: AbortSignal | undefined;
232
- socketPath?: string | undefined;
233
- timeout?: number | undefined;
234
- uniqueHeaders?: Array<string | string[]> | undefined;
235
- joinDuplicateHeaders?: boolean | undefined;
236
- }
237
- interface ServerOptions<
238
- Request extends typeof IncomingMessage = typeof IncomingMessage,
239
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
240
- > {
241
- /**
242
- * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
243
- */
244
- IncomingMessage?: Request | undefined;
245
- /**
246
- * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
247
- */
248
- ServerResponse?: Response | undefined;
249
- /**
250
- * Sets the timeout value in milliseconds for receiving the entire request from the client.
251
- * @see Server.requestTimeout for more information.
252
- * @default 300000
253
- * @since v18.0.0
254
- */
255
- requestTimeout?: number | undefined;
256
- /**
257
- * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.
258
- * @default false
259
- * @since v18.14.0
260
- */
261
- joinDuplicateHeaders?: boolean | undefined;
262
- /**
263
- * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
264
- * after it has finished writing the last response, before a socket will be destroyed.
265
- * @see Server.keepAliveTimeout for more information.
266
- * @default 5000
267
- * @since v18.0.0
268
- */
269
- keepAliveTimeout?: number | undefined;
270
- /**
271
- * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
272
- * @default 30000
273
- */
274
- connectionsCheckingInterval?: number | undefined;
275
- /**
276
- * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client.
277
- * See {@link Server.headersTimeout} for more information.
278
- * @default 60000
279
- * @since 18.0.0
280
- */
281
- headersTimeout?: number | undefined;
282
- /**
283
- * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
284
- * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
285
- * Default: @see stream.getDefaultHighWaterMark().
286
- * @since v20.1.0
287
- */
288
- highWaterMark?: number | undefined;
289
- /**
290
- * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
291
- * Using the insecure parser should be avoided.
292
- * See --insecure-http-parser for more information.
293
- * @default false
294
- */
295
- insecureHTTPParser?: boolean | undefined;
296
- /**
297
- * Optionally overrides the value of `--max-http-header-size` for requests received by
298
- * this server, i.e. the maximum length of request headers in bytes.
299
- * @default 16384
300
- * @since v13.3.0
301
- */
302
- maxHeaderSize?: number | undefined;
303
- /**
304
- * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
305
- * @default true
306
- * @since v16.5.0
307
- */
308
- noDelay?: boolean | undefined;
309
- /**
310
- * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code
311
- * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification).
312
- * @default true
313
- * @since 20.0.0
314
- */
315
- requireHostHeader?: boolean | undefined;
316
- /**
317
- * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
318
- * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
319
- * @default false
320
- * @since v16.5.0
321
- */
322
- keepAlive?: boolean | undefined;
323
- /**
324
- * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
325
- * @default 0
326
- * @since v16.5.0
327
- */
328
- keepAliveInitialDelay?: number | undefined;
329
- /**
330
- * A list of response headers that should be sent only once.
331
- * If the header's value is an array, the items will be joined using `; `.
332
- */
333
- uniqueHeaders?: Array<string | string[]> | undefined;
334
- /**
335
- * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body.
336
- * @default false
337
- * @since v18.17.0, v20.2.0
338
- */
339
- rejectNonStandardBodyWrites?: boolean | undefined;
340
- }
341
- type RequestListener<
342
- Request extends typeof IncomingMessage = typeof IncomingMessage,
343
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
344
- > = (req: InstanceType<Request>, res: InstanceType<Response> & { req: InstanceType<Request> }) => void;
345
- /**
346
- * @since v0.1.17
347
- */
348
- class Server<
349
- Request extends typeof IncomingMessage = typeof IncomingMessage,
350
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
351
- > extends NetServer {
352
- constructor(requestListener?: RequestListener<Request, Response>);
353
- constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
354
- /**
355
- * Sets the timeout value for sockets, and emits a `'timeout'` event on
356
- * the Server object, passing the socket as an argument, if a timeout
357
- * occurs.
358
- *
359
- * If there is a `'timeout'` event listener on the Server object, then it
360
- * will be called with the timed-out socket as an argument.
361
- *
362
- * By default, the Server does not timeout sockets. However, if a callback
363
- * is assigned to the Server's `'timeout'` event, timeouts must be handled
364
- * explicitly.
365
- * @since v0.9.12
366
- * @param [msecs=0 (no timeout)]
367
- */
368
- setTimeout(msecs?: number, callback?: (socket: Socket) => void): this;
369
- setTimeout(callback: (socket: Socket) => void): this;
370
- /**
371
- * Limits maximum incoming headers count. If set to 0, no limit will be applied.
372
- * @since v0.7.0
373
- */
374
- maxHeadersCount: number | null;
375
- /**
376
- * The maximum number of requests socket can handle
377
- * before closing keep alive connection.
378
- *
379
- * A value of `0` will disable the limit.
380
- *
381
- * When the limit is reached it will set the `Connection` header value to `close`,
382
- * but will not actually close the connection, subsequent requests sent
383
- * after the limit is reached will get `503 Service Unavailable` as a response.
384
- * @since v16.10.0
385
- */
386
- maxRequestsPerSocket: number | null;
387
- /**
388
- * The number of milliseconds of inactivity before a socket is presumed
389
- * to have timed out.
390
- *
391
- * A value of `0` will disable the timeout behavior on incoming connections.
392
- *
393
- * The socket timeout logic is set up on connection, so changing this
394
- * value only affects new connections to the server, not any existing connections.
395
- * @since v0.9.12
396
- */
397
- timeout: number;
398
- /**
399
- * Limit the amount of time the parser will wait to receive the complete HTTP
400
- * headers.
401
- *
402
- * If the timeout expires, the server responds with status 408 without
403
- * forwarding the request to the request listener and then closes the connection.
404
- *
405
- * It must be set to a non-zero value (e.g. 120 seconds) to protect against
406
- * potential Denial-of-Service attacks in case the server is deployed without a
407
- * reverse proxy in front.
408
- * @since v11.3.0, v10.14.0
409
- */
410
- headersTimeout: number;
411
- /**
412
- * The number of milliseconds of inactivity a server needs to wait for additional
413
- * incoming data, after it has finished writing the last response, before a socket
414
- * will be destroyed. If the server receives new data before the keep-alive
415
- * timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`.
416
- *
417
- * A value of `0` will disable the keep-alive timeout behavior on incoming
418
- * connections.
419
- * A value of `0` makes the http server behave similarly to Node.js versions prior
420
- * to 8.0.0, which did not have a keep-alive timeout.
421
- *
422
- * The socket timeout logic is set up on connection, so changing this value only
423
- * affects new connections to the server, not any existing connections.
424
- * @since v8.0.0
425
- */
426
- keepAliveTimeout: number;
427
- /**
428
- * Sets the timeout value in milliseconds for receiving the entire request from
429
- * the client.
430
- *
431
- * If the timeout expires, the server responds with status 408 without
432
- * forwarding the request to the request listener and then closes the connection.
433
- *
434
- * It must be set to a non-zero value (e.g. 120 seconds) to protect against
435
- * potential Denial-of-Service attacks in case the server is deployed without a
436
- * reverse proxy in front.
437
- * @since v14.11.0
438
- */
439
- requestTimeout: number;
440
- /**
441
- * Closes all connections connected to this server.
442
- * @since v18.2.0
443
- */
444
- closeAllConnections(): void;
445
- /**
446
- * Closes all connections connected to this server which are not sending a request
447
- * or waiting for a response.
448
- * @since v18.2.0
449
- */
450
- closeIdleConnections(): void;
451
- addListener(event: string, listener: (...args: any[]) => void): this;
452
- addListener(event: "close", listener: () => void): this;
453
- addListener(event: "connection", listener: (socket: Socket) => void): this;
454
- addListener(event: "error", listener: (err: Error) => void): this;
455
- addListener(event: "listening", listener: () => void): this;
456
- addListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
457
- addListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
458
- addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
459
- addListener(
460
- event: "connect",
461
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
462
- ): this;
463
- addListener(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
464
- addListener(event: "request", listener: RequestListener<Request, Response>): this;
465
- addListener(
466
- event: "upgrade",
467
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
468
- ): this;
469
- emit(event: string, ...args: any[]): boolean;
470
- emit(event: "close"): boolean;
471
- emit(event: "connection", socket: Socket): boolean;
472
- emit(event: "error", err: Error): boolean;
473
- emit(event: "listening"): boolean;
474
- emit(
475
- event: "checkContinue",
476
- req: InstanceType<Request>,
477
- res: InstanceType<Response> & { req: InstanceType<Request> },
478
- ): boolean;
479
- emit(
480
- event: "checkExpectation",
481
- req: InstanceType<Request>,
482
- res: InstanceType<Response> & { req: InstanceType<Request> },
483
- ): boolean;
484
- emit(event: "clientError", err: Error, socket: stream.Duplex): boolean;
485
- emit(event: "connect", req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer): boolean;
486
- emit(event: "dropRequest", req: InstanceType<Request>, socket: stream.Duplex): boolean;
487
- emit(
488
- event: "request",
489
- req: InstanceType<Request>,
490
- res: InstanceType<Response> & { req: InstanceType<Request> },
491
- ): boolean;
492
- emit(event: "upgrade", req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer): boolean;
493
- on(event: string, listener: (...args: any[]) => void): this;
494
- on(event: "close", listener: () => void): this;
495
- on(event: "connection", listener: (socket: Socket) => void): this;
496
- on(event: "error", listener: (err: Error) => void): this;
497
- on(event: "listening", listener: () => void): this;
498
- on(event: "checkContinue", listener: RequestListener<Request, Response>): this;
499
- on(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
500
- on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
501
- on(
502
- event: "connect",
503
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
504
- ): this;
505
- on(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
506
- on(event: "request", listener: RequestListener<Request, Response>): this;
507
- on(
508
- event: "upgrade",
509
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
510
- ): this;
511
- once(event: string, listener: (...args: any[]) => void): this;
512
- once(event: "close", listener: () => void): this;
513
- once(event: "connection", listener: (socket: Socket) => void): this;
514
- once(event: "error", listener: (err: Error) => void): this;
515
- once(event: "listening", listener: () => void): this;
516
- once(event: "checkContinue", listener: RequestListener<Request, Response>): this;
517
- once(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
518
- once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
519
- once(
520
- event: "connect",
521
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
522
- ): this;
523
- once(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
524
- once(event: "request", listener: RequestListener<Request, Response>): this;
525
- once(
526
- event: "upgrade",
527
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
528
- ): this;
529
- prependListener(event: string, listener: (...args: any[]) => void): this;
530
- prependListener(event: "close", listener: () => void): this;
531
- prependListener(event: "connection", listener: (socket: Socket) => void): this;
532
- prependListener(event: "error", listener: (err: Error) => void): this;
533
- prependListener(event: "listening", listener: () => void): this;
534
- prependListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
535
- prependListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
536
- prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
537
- prependListener(
538
- event: "connect",
539
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
540
- ): this;
541
- prependListener(
542
- event: "dropRequest",
543
- listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
544
- ): this;
545
- prependListener(event: "request", listener: RequestListener<Request, Response>): this;
546
- prependListener(
547
- event: "upgrade",
548
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
549
- ): this;
550
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
551
- prependOnceListener(event: "close", listener: () => void): this;
552
- prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
553
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
554
- prependOnceListener(event: "listening", listener: () => void): this;
555
- prependOnceListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
556
- prependOnceListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
557
- prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
558
- prependOnceListener(
559
- event: "connect",
560
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
561
- ): this;
562
- prependOnceListener(
563
- event: "dropRequest",
564
- listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
565
- ): this;
566
- prependOnceListener(event: "request", listener: RequestListener<Request, Response>): this;
567
- prependOnceListener(
568
- event: "upgrade",
569
- listener: (req: InstanceType<Request>, socket: stream.Duplex, head: NonSharedBuffer) => void,
570
- ): this;
571
- }
572
- /**
573
- * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from
574
- * the perspective of the participants of an HTTP transaction.
575
- * @since v0.1.17
576
- */
577
- class OutgoingMessage<Request extends IncomingMessage = IncomingMessage> extends stream.Writable {
578
- readonly req: Request;
579
- chunkedEncoding: boolean;
580
- shouldKeepAlive: boolean;
581
- useChunkedEncodingByDefault: boolean;
582
- sendDate: boolean;
583
- /**
584
- * @deprecated Use `writableEnded` instead.
585
- */
586
- finished: boolean;
587
- /**
588
- * Read-only. `true` if the headers were sent, otherwise `false`.
589
- * @since v0.9.3
590
- */
591
- readonly headersSent: boolean;
592
- /**
593
- * Alias of `outgoingMessage.socket`.
594
- * @since v0.3.0
595
- * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead.
596
- */
597
- readonly connection: Socket | null;
598
- /**
599
- * Reference to the underlying socket. Usually, users will not want to access
600
- * this property.
601
- *
602
- * After calling `outgoingMessage.end()`, this property will be nulled.
603
- * @since v0.3.0
604
- */
605
- readonly socket: Socket | null;
606
- constructor();
607
- /**
608
- * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter.
609
- * @since v0.9.12
610
- * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
611
- */
612
- setTimeout(msecs: number, callback?: () => void): this;
613
- /**
614
- * Sets a single header value. If the header already exists in the to-be-sent
615
- * headers, its value will be replaced. Use an array of strings to send multiple
616
- * headers with the same name.
617
- * @since v0.4.0
618
- * @param name Header name
619
- * @param value Header value
620
- */
621
- setHeader(name: string, value: number | string | readonly string[]): this;
622
- /**
623
- * Sets multiple header values for implicit headers. headers must be an instance of
624
- * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its
625
- * value will be replaced.
626
- *
627
- * ```js
628
- * const headers = new Headers({ foo: 'bar' });
629
- * outgoingMessage.setHeaders(headers);
630
- * ```
631
- *
632
- * or
633
- *
634
- * ```js
635
- * const headers = new Map([['foo', 'bar']]);
636
- * outgoingMessage.setHeaders(headers);
637
- * ```
638
- *
639
- * When headers have been set with `outgoingMessage.setHeaders()`, they will be
640
- * merged with any headers passed to `response.writeHead()`, with the headers passed
641
- * to `response.writeHead()` given precedence.
642
- *
643
- * ```js
644
- * // Returns content-type = text/plain
645
- * const server = http.createServer((req, res) => {
646
- * const headers = new Headers({ 'Content-Type': 'text/html' });
647
- * res.setHeaders(headers);
648
- * res.writeHead(200, { 'Content-Type': 'text/plain' });
649
- * res.end('ok');
650
- * });
651
- * ```
652
- *
653
- * @since v19.6.0, v18.15.0
654
- * @param name Header name
655
- * @param value Header value
656
- */
657
- setHeaders(headers: Headers | Map<string, number | string | readonly string[]>): this;
658
- /**
659
- * Append a single header value to the header object.
660
- *
661
- * If the value is an array, this is equivalent to calling this method multiple
662
- * times.
663
- *
664
- * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`.
665
- *
666
- * Depending of the value of `options.uniqueHeaders` when the client request or the
667
- * server were created, this will end up in the header being sent multiple times or
668
- * a single time with values joined using `; `.
669
- * @since v18.3.0, v16.17.0
670
- * @param name Header name
671
- * @param value Header value
672
- */
673
- appendHeader(name: string, value: string | readonly string[]): this;
674
- /**
675
- * Gets the value of the HTTP header with the given name. If that header is not
676
- * set, the returned value will be `undefined`.
677
- * @since v0.4.0
678
- * @param name Name of header
679
- */
680
- getHeader(name: string): number | string | string[] | undefined;
681
- /**
682
- * Returns a shallow copy of the current outgoing headers. Since a shallow
683
- * copy is used, array values may be mutated without additional calls to
684
- * various header-related HTTP module methods. The keys of the returned
685
- * object are the header names and the values are the respective header
686
- * values. All header names are lowercase.
687
- *
688
- * The object returned by the `outgoingMessage.getHeaders()` method does
689
- * not prototypically inherit from the JavaScript `Object`. This means that
690
- * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
691
- * and others are not defined and will not work.
692
- *
693
- * ```js
694
- * outgoingMessage.setHeader('Foo', 'bar');
695
- * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
696
- *
697
- * const headers = outgoingMessage.getHeaders();
698
- * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
699
- * ```
700
- * @since v7.7.0
701
- */
702
- getHeaders(): OutgoingHttpHeaders;
703
- /**
704
- * Returns an array containing the unique names of the current outgoing headers.
705
- * All names are lowercase.
706
- * @since v7.7.0
707
- */
708
- getHeaderNames(): string[];
709
- /**
710
- * Returns `true` if the header identified by `name` is currently set in the
711
- * outgoing headers. The header name is case-insensitive.
712
- *
713
- * ```js
714
- * const hasContentType = outgoingMessage.hasHeader('content-type');
715
- * ```
716
- * @since v7.7.0
717
- */
718
- hasHeader(name: string): boolean;
719
- /**
720
- * Removes a header that is queued for implicit sending.
721
- *
722
- * ```js
723
- * outgoingMessage.removeHeader('Content-Encoding');
724
- * ```
725
- * @since v0.4.0
726
- * @param name Header name
727
- */
728
- removeHeader(name: string): void;
729
- /**
730
- * Adds HTTP trailers (headers but at the end of the message) to the message.
731
- *
732
- * Trailers will **only** be emitted if the message is chunked encoded. If not,
733
- * the trailers will be silently discarded.
734
- *
735
- * HTTP requires the `Trailer` header to be sent to emit trailers,
736
- * with a list of header field names in its value, e.g.
737
- *
738
- * ```js
739
- * message.writeHead(200, { 'Content-Type': 'text/plain',
740
- * 'Trailer': 'Content-MD5' });
741
- * message.write(fileData);
742
- * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' });
743
- * message.end();
744
- * ```
745
- *
746
- * Attempting to set a header field name or value that contains invalid characters
747
- * will result in a `TypeError` being thrown.
748
- * @since v0.3.0
749
- */
750
- addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
751
- /**
752
- * Flushes the message headers.
753
- *
754
- * For efficiency reason, Node.js normally buffers the message headers
755
- * until `outgoingMessage.end()` is called or the first chunk of message data
756
- * is written. It then tries to pack the headers and data into a single TCP
757
- * packet.
758
- *
759
- * It is usually desired (it saves a TCP round-trip), but not when the first
760
- * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message.
761
- * @since v1.6.0
762
- */
763
- flushHeaders(): void;
764
- }
765
- /**
766
- * This object is created internally by an HTTP server, not by the user. It is
767
- * passed as the second parameter to the `'request'` event.
768
- * @since v0.1.17
769
- */
770
- class ServerResponse<Request extends IncomingMessage = IncomingMessage> extends OutgoingMessage<Request> {
771
- /**
772
- * When using implicit headers (not calling `response.writeHead()` explicitly),
773
- * this property controls the status code that will be sent to the client when
774
- * the headers get flushed.
775
- *
776
- * ```js
777
- * response.statusCode = 404;
778
- * ```
779
- *
780
- * After response header was sent to the client, this property indicates the
781
- * status code which was sent out.
782
- * @since v0.4.0
783
- */
784
- statusCode: number;
785
- /**
786
- * When using implicit headers (not calling `response.writeHead()` explicitly),
787
- * this property controls the status message that will be sent to the client when
788
- * the headers get flushed. If this is left as `undefined` then the standard
789
- * message for the status code will be used.
790
- *
791
- * ```js
792
- * response.statusMessage = 'Not found';
793
- * ```
794
- *
795
- * After response header was sent to the client, this property indicates the
796
- * status message which was sent out.
797
- * @since v0.11.8
798
- */
799
- statusMessage: string;
800
- /**
801
- * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal.
802
- * Mismatching the `Content-Length` header value will result
803
- * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
804
- * @since v18.10.0, v16.18.0
805
- */
806
- strictContentLength: boolean;
807
- constructor(req: Request);
808
- assignSocket(socket: Socket): void;
809
- detachSocket(socket: Socket): void;
810
- /**
811
- * Sends an HTTP/1.1 100 Continue message to the client, indicating that
812
- * the request body should be sent. See the `'checkContinue'` event on `Server`.
813
- * @since v0.3.0
814
- */
815
- writeContinue(callback?: () => void): void;
816
- /**
817
- * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header,
818
- * indicating that the user agent can preload/preconnect the linked resources.
819
- * The `hints` is an object containing the values of headers to be sent with
820
- * early hints message. The optional `callback` argument will be called when
821
- * the response message has been written.
822
- *
823
- * **Example**
824
- *
825
- * ```js
826
- * const earlyHintsLink = '</styles.css>; rel=preload; as=style';
827
- * response.writeEarlyHints({
828
- * 'link': earlyHintsLink,
829
- * });
830
- *
831
- * const earlyHintsLinks = [
832
- * '</styles.css>; rel=preload; as=style',
833
- * '</scripts.js>; rel=preload; as=script',
834
- * ];
835
- * response.writeEarlyHints({
836
- * 'link': earlyHintsLinks,
837
- * 'x-trace-id': 'id for diagnostics',
838
- * });
839
- *
840
- * const earlyHintsCallback = () => console.log('early hints message sent');
841
- * response.writeEarlyHints({
842
- * 'link': earlyHintsLinks,
843
- * }, earlyHintsCallback);
844
- * ```
845
- * @since v18.11.0
846
- * @param hints An object containing the values of headers
847
- * @param callback Will be called when the response message has been written
848
- */
849
- writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
850
- /**
851
- * Sends a response header to the request. The status code is a 3-digit HTTP
852
- * status code, like `404`. The last argument, `headers`, are the response headers.
853
- * Optionally one can give a human-readable `statusMessage` as the second
854
- * argument.
855
- *
856
- * `headers` may be an `Array` where the keys and values are in the same list.
857
- * It is _not_ a list of tuples. So, the even-numbered offsets are key values,
858
- * and the odd-numbered offsets are the associated values. The array is in the same
859
- * format as `request.rawHeaders`.
860
- *
861
- * Returns a reference to the `ServerResponse`, so that calls can be chained.
862
- *
863
- * ```js
864
- * const body = 'hello world';
865
- * response
866
- * .writeHead(200, {
867
- * 'Content-Length': Buffer.byteLength(body),
868
- * 'Content-Type': 'text/plain',
869
- * })
870
- * .end(body);
871
- * ```
872
- *
873
- * This method must only be called once on a message and it must
874
- * be called before `response.end()` is called.
875
- *
876
- * If `response.write()` or `response.end()` are called before calling
877
- * this, the implicit/mutable headers will be calculated and call this function.
878
- *
879
- * When headers have been set with `response.setHeader()`, they will be merged
880
- * with any headers passed to `response.writeHead()`, with the headers passed
881
- * to `response.writeHead()` given precedence.
882
- *
883
- * If this method is called and `response.setHeader()` has not been called,
884
- * it will directly write the supplied header values onto the network channel
885
- * without caching internally, and the `response.getHeader()` on the header
886
- * will not yield the expected result. If progressive population of headers is
887
- * desired with potential future retrieval and modification, use `response.setHeader()` instead.
888
- *
889
- * ```js
890
- * // Returns content-type = text/plain
891
- * const server = http.createServer((req, res) => {
892
- * res.setHeader('Content-Type', 'text/html');
893
- * res.setHeader('X-Foo', 'bar');
894
- * res.writeHead(200, { 'Content-Type': 'text/plain' });
895
- * res.end('ok');
896
- * });
897
- * ```
898
- *
899
- * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js
900
- * will check whether `Content-Length` and the length of the body which has
901
- * been transmitted are equal or not.
902
- *
903
- * Attempting to set a header field name or value that contains invalid characters
904
- * will result in a `Error` being thrown.
905
- * @since v0.1.30
906
- */
907
- writeHead(
908
- statusCode: number,
909
- statusMessage?: string,
910
- headers?: OutgoingHttpHeaders | OutgoingHttpHeader[],
911
- ): this;
912
- writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
913
- /**
914
- * Sends a HTTP/1.1 102 Processing message to the client, indicating that
915
- * the request body should be sent.
916
- * @since v10.0.0
917
- */
918
- writeProcessing(callback?: () => void): void;
919
- }
920
- interface InformationEvent {
921
- statusCode: number;
922
- statusMessage: string;
923
- httpVersion: string;
924
- httpVersionMajor: number;
925
- httpVersionMinor: number;
926
- headers: IncomingHttpHeaders;
927
- rawHeaders: string[];
928
- }
929
- /**
930
- * This object is created internally and returned from {@link request}. It
931
- * represents an _in-progress_ request whose header has already been queued. The
932
- * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
933
- * be sent along with the first data chunk or when calling `request.end()`.
934
- *
935
- * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response
936
- * headers have been received. The `'response'` event is executed with one
937
- * argument which is an instance of {@link IncomingMessage}.
938
- *
939
- * During the `'response'` event, one can add listeners to the
940
- * response object; particularly to listen for the `'data'` event.
941
- *
942
- * If no `'response'` handler is added, then the response will be
943
- * entirely discarded. However, if a `'response'` event handler is added,
944
- * then the data from the response object **must** be consumed, either by
945
- * calling `response.read()` whenever there is a `'readable'` event, or
946
- * by adding a `'data'` handler, or by calling the `.resume()` method.
947
- * Until the data is consumed, the `'end'` event will not fire. Also, until
948
- * the data is read it will consume memory that can eventually lead to a
949
- * 'process out of memory' error.
950
- *
951
- * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered.
952
- *
953
- * Set `Content-Length` header to limit the response body size.
954
- * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown,
955
- * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
956
- *
957
- * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes.
958
- * @since v0.1.17
959
- */
960
- class ClientRequest extends OutgoingMessage {
961
- /**
962
- * The `request.aborted` property will be `true` if the request has
963
- * been aborted.
964
- * @since v0.11.14
965
- * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead.
966
- */
967
- aborted: boolean;
968
- /**
969
- * The request host.
970
- * @since v14.5.0, v12.19.0
971
- */
972
- host: string;
973
- /**
974
- * The request protocol.
975
- * @since v14.5.0, v12.19.0
976
- */
977
- protocol: string;
978
- /**
979
- * When sending request through a keep-alive enabled agent, the underlying socket
980
- * might be reused. But if server closes connection at unfortunate time, client
981
- * may run into a 'ECONNRESET' error.
982
- *
983
- * ```js
984
- * import http from 'node:http';
985
- *
986
- * // Server has a 5 seconds keep-alive timeout by default
987
- * http
988
- * .createServer((req, res) => {
989
- * res.write('hello\n');
990
- * res.end();
991
- * })
992
- * .listen(3000);
993
- *
994
- * setInterval(() => {
995
- * // Adapting a keep-alive agent
996
- * http.get('http://localhost:3000', { agent }, (res) => {
997
- * res.on('data', (data) => {
998
- * // Do nothing
999
- * });
1000
- * });
1001
- * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout
1002
- * ```
1003
- *
1004
- * By marking a request whether it reused socket or not, we can do
1005
- * automatic error retry base on it.
1006
- *
1007
- * ```js
1008
- * import http from 'node:http';
1009
- * const agent = new http.Agent({ keepAlive: true });
1010
- *
1011
- * function retriableRequest() {
1012
- * const req = http
1013
- * .get('http://localhost:3000', { agent }, (res) => {
1014
- * // ...
1015
- * })
1016
- * .on('error', (err) => {
1017
- * // Check if retry is needed
1018
- * if (req.reusedSocket &#x26;&#x26; err.code === 'ECONNRESET') {
1019
- * retriableRequest();
1020
- * }
1021
- * });
1022
- * }
1023
- *
1024
- * retriableRequest();
1025
- * ```
1026
- * @since v13.0.0, v12.16.0
1027
- */
1028
- reusedSocket: boolean;
1029
- /**
1030
- * Limits maximum response headers count. If set to 0, no limit will be applied.
1031
- */
1032
- maxHeadersCount: number;
1033
- constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
1034
- /**
1035
- * The request method.
1036
- * @since v0.1.97
1037
- */
1038
- method: string;
1039
- /**
1040
- * The request path.
1041
- * @since v0.4.0
1042
- */
1043
- path: string;
1044
- /**
1045
- * Marks the request as aborting. Calling this will cause remaining data
1046
- * in the response to be dropped and the socket to be destroyed.
1047
- * @since v0.3.8
1048
- * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead.
1049
- */
1050
- abort(): void;
1051
- onSocket(socket: Socket): void;
1052
- /**
1053
- * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called.
1054
- * @since v0.5.9
1055
- * @param timeout Milliseconds before a request times out.
1056
- * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event.
1057
- */
1058
- setTimeout(timeout: number, callback?: () => void): this;
1059
- /**
1060
- * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called.
1061
- * @since v0.5.9
1062
- */
1063
- setNoDelay(noDelay?: boolean): void;
1064
- /**
1065
- * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called.
1066
- * @since v0.5.9
1067
- */
1068
- setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
1069
- /**
1070
- * Returns an array containing the unique names of the current outgoing raw
1071
- * headers. Header names are returned with their exact casing being set.
1072
- *
1073
- * ```js
1074
- * request.setHeader('Foo', 'bar');
1075
- * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
1076
- *
1077
- * const headerNames = request.getRawHeaderNames();
1078
- * // headerNames === ['Foo', 'Set-Cookie']
1079
- * ```
1080
- * @since v15.13.0, v14.17.0
1081
- */
1082
- getRawHeaderNames(): string[];
1083
- /**
1084
- * @deprecated
1085
- */
1086
- addListener(event: "abort", listener: () => void): this;
1087
- addListener(
1088
- event: "connect",
1089
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1090
- ): this;
1091
- addListener(event: "continue", listener: () => void): this;
1092
- addListener(event: "information", listener: (info: InformationEvent) => void): this;
1093
- addListener(event: "response", listener: (response: IncomingMessage) => void): this;
1094
- addListener(event: "socket", listener: (socket: Socket) => void): this;
1095
- addListener(event: "timeout", listener: () => void): this;
1096
- addListener(
1097
- event: "upgrade",
1098
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1099
- ): this;
1100
- addListener(event: "close", listener: () => void): this;
1101
- addListener(event: "drain", listener: () => void): this;
1102
- addListener(event: "error", listener: (err: Error) => void): this;
1103
- addListener(event: "finish", listener: () => void): this;
1104
- addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
1105
- addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
1106
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1107
- /**
1108
- * @deprecated
1109
- */
1110
- on(event: "abort", listener: () => void): this;
1111
- on(
1112
- event: "connect",
1113
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1114
- ): this;
1115
- on(event: "continue", listener: () => void): this;
1116
- on(event: "information", listener: (info: InformationEvent) => void): this;
1117
- on(event: "response", listener: (response: IncomingMessage) => void): this;
1118
- on(event: "socket", listener: (socket: Socket) => void): this;
1119
- on(event: "timeout", listener: () => void): this;
1120
- on(
1121
- event: "upgrade",
1122
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1123
- ): this;
1124
- on(event: "close", listener: () => void): this;
1125
- on(event: "drain", listener: () => void): this;
1126
- on(event: "error", listener: (err: Error) => void): this;
1127
- on(event: "finish", listener: () => void): this;
1128
- on(event: "pipe", listener: (src: stream.Readable) => void): this;
1129
- on(event: "unpipe", listener: (src: stream.Readable) => void): this;
1130
- on(event: string | symbol, listener: (...args: any[]) => void): this;
1131
- /**
1132
- * @deprecated
1133
- */
1134
- once(event: "abort", listener: () => void): this;
1135
- once(
1136
- event: "connect",
1137
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1138
- ): this;
1139
- once(event: "continue", listener: () => void): this;
1140
- once(event: "information", listener: (info: InformationEvent) => void): this;
1141
- once(event: "response", listener: (response: IncomingMessage) => void): this;
1142
- once(event: "socket", listener: (socket: Socket) => void): this;
1143
- once(event: "timeout", listener: () => void): this;
1144
- once(
1145
- event: "upgrade",
1146
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1147
- ): this;
1148
- once(event: "close", listener: () => void): this;
1149
- once(event: "drain", listener: () => void): this;
1150
- once(event: "error", listener: (err: Error) => void): this;
1151
- once(event: "finish", listener: () => void): this;
1152
- once(event: "pipe", listener: (src: stream.Readable) => void): this;
1153
- once(event: "unpipe", listener: (src: stream.Readable) => void): this;
1154
- once(event: string | symbol, listener: (...args: any[]) => void): this;
1155
- /**
1156
- * @deprecated
1157
- */
1158
- prependListener(event: "abort", listener: () => void): this;
1159
- prependListener(
1160
- event: "connect",
1161
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1162
- ): this;
1163
- prependListener(event: "continue", listener: () => void): this;
1164
- prependListener(event: "information", listener: (info: InformationEvent) => void): this;
1165
- prependListener(event: "response", listener: (response: IncomingMessage) => void): this;
1166
- prependListener(event: "socket", listener: (socket: Socket) => void): this;
1167
- prependListener(event: "timeout", listener: () => void): this;
1168
- prependListener(
1169
- event: "upgrade",
1170
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1171
- ): this;
1172
- prependListener(event: "close", listener: () => void): this;
1173
- prependListener(event: "drain", listener: () => void): this;
1174
- prependListener(event: "error", listener: (err: Error) => void): this;
1175
- prependListener(event: "finish", listener: () => void): this;
1176
- prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
1177
- prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
1178
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
1179
- /**
1180
- * @deprecated
1181
- */
1182
- prependOnceListener(event: "abort", listener: () => void): this;
1183
- prependOnceListener(
1184
- event: "connect",
1185
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1186
- ): this;
1187
- prependOnceListener(event: "continue", listener: () => void): this;
1188
- prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this;
1189
- prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this;
1190
- prependOnceListener(event: "socket", listener: (socket: Socket) => void): this;
1191
- prependOnceListener(event: "timeout", listener: () => void): this;
1192
- prependOnceListener(
1193
- event: "upgrade",
1194
- listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void,
1195
- ): this;
1196
- prependOnceListener(event: "close", listener: () => void): this;
1197
- prependOnceListener(event: "drain", listener: () => void): this;
1198
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
1199
- prependOnceListener(event: "finish", listener: () => void): this;
1200
- prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
1201
- prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
1202
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
1203
- }
1204
- /**
1205
- * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to
1206
- * access response
1207
- * status, headers, and data.
1208
- *
1209
- * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to
1210
- * parse and emit the incoming HTTP headers and payload, as the underlying socket
1211
- * may be reused multiple times in case of keep-alive.
1212
- * @since v0.1.17
1213
- */
1214
- class IncomingMessage extends stream.Readable {
1215
- constructor(socket: Socket);
1216
- /**
1217
- * The `message.aborted` property will be `true` if the request has
1218
- * been aborted.
1219
- * @since v10.1.0
1220
- * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from <a href="stream.html#class-streamreadable" class="type">stream.Readable</a>.
1221
- */
1222
- aborted: boolean;
1223
- /**
1224
- * In case of server request, the HTTP version sent by the client. In the case of
1225
- * client response, the HTTP version of the connected-to server.
1226
- * Probably either `'1.1'` or `'1.0'`.
1227
- *
1228
- * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.
1229
- * @since v0.1.1
1230
- */
1231
- httpVersion: string;
1232
- httpVersionMajor: number;
1233
- httpVersionMinor: number;
1234
- /**
1235
- * The `message.complete` property will be `true` if a complete HTTP message has
1236
- * been received and successfully parsed.
1237
- *
1238
- * This property is particularly useful as a means of determining if a client or
1239
- * server fully transmitted a message before a connection was terminated:
1240
- *
1241
- * ```js
1242
- * const req = http.request({
1243
- * host: '127.0.0.1',
1244
- * port: 8080,
1245
- * method: 'POST',
1246
- * }, (res) => {
1247
- * res.resume();
1248
- * res.on('end', () => {
1249
- * if (!res.complete)
1250
- * console.error(
1251
- * 'The connection was terminated while the message was still being sent');
1252
- * });
1253
- * });
1254
- * ```
1255
- * @since v0.3.0
1256
- */
1257
- complete: boolean;
1258
- /**
1259
- * Alias for `message.socket`.
1260
- * @since v0.1.90
1261
- * @deprecated Since v16.0.0 - Use `socket`.
1262
- */
1263
- connection: Socket;
1264
- /**
1265
- * The `net.Socket` object associated with the connection.
1266
- *
1267
- * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
1268
- * client's authentication details.
1269
- *
1270
- * This property is guaranteed to be an instance of the `net.Socket` class,
1271
- * a subclass of `stream.Duplex`, unless the user specified a socket
1272
- * type other than `net.Socket` or internally nulled.
1273
- * @since v0.3.0
1274
- */
1275
- socket: Socket;
1276
- /**
1277
- * The request/response headers object.
1278
- *
1279
- * Key-value pairs of header names and values. Header names are lower-cased.
1280
- *
1281
- * ```js
1282
- * // Prints something like:
1283
- * //
1284
- * // { 'user-agent': 'curl/7.22.0',
1285
- * // host: '127.0.0.1:8000',
1286
- * // accept: '*' }
1287
- * console.log(request.headers);
1288
- * ```
1289
- *
1290
- * Duplicates in raw headers are handled in the following ways, depending on the
1291
- * header name:
1292
- *
1293
- * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
1294
- * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
1295
- * To allow duplicate values of the headers listed above to be joined,
1296
- * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more
1297
- * information.
1298
- * * `set-cookie` is always an array. Duplicates are added to the array.
1299
- * * For duplicate `cookie` headers, the values are joined together with `; `.
1300
- * * For all other headers, the values are joined together with `, `.
1301
- * @since v0.1.5
1302
- */
1303
- headers: IncomingHttpHeaders;
1304
- /**
1305
- * Similar to `message.headers`, but there is no join logic and the values are
1306
- * always arrays of strings, even for headers received just once.
1307
- *
1308
- * ```js
1309
- * // Prints something like:
1310
- * //
1311
- * // { 'user-agent': ['curl/7.22.0'],
1312
- * // host: ['127.0.0.1:8000'],
1313
- * // accept: ['*'] }
1314
- * console.log(request.headersDistinct);
1315
- * ```
1316
- * @since v18.3.0, v16.17.0
1317
- */
1318
- headersDistinct: NodeJS.Dict<string[]>;
1319
- /**
1320
- * The raw request/response headers list exactly as they were received.
1321
- *
1322
- * The keys and values are in the same list. It is _not_ a
1323
- * list of tuples. So, the even-numbered offsets are key values, and the
1324
- * odd-numbered offsets are the associated values.
1325
- *
1326
- * Header names are not lowercased, and duplicates are not merged.
1327
- *
1328
- * ```js
1329
- * // Prints something like:
1330
- * //
1331
- * // [ 'user-agent',
1332
- * // 'this is invalid because there can be only one',
1333
- * // 'User-Agent',
1334
- * // 'curl/7.22.0',
1335
- * // 'Host',
1336
- * // '127.0.0.1:8000',
1337
- * // 'ACCEPT',
1338
- * // '*' ]
1339
- * console.log(request.rawHeaders);
1340
- * ```
1341
- * @since v0.11.6
1342
- */
1343
- rawHeaders: string[];
1344
- /**
1345
- * The request/response trailers object. Only populated at the `'end'` event.
1346
- * @since v0.3.0
1347
- */
1348
- trailers: NodeJS.Dict<string>;
1349
- /**
1350
- * Similar to `message.trailers`, but there is no join logic and the values are
1351
- * always arrays of strings, even for headers received just once.
1352
- * Only populated at the `'end'` event.
1353
- * @since v18.3.0, v16.17.0
1354
- */
1355
- trailersDistinct: NodeJS.Dict<string[]>;
1356
- /**
1357
- * The raw request/response trailer keys and values exactly as they were
1358
- * received. Only populated at the `'end'` event.
1359
- * @since v0.11.6
1360
- */
1361
- rawTrailers: string[];
1362
- /**
1363
- * Calls `message.socket.setTimeout(msecs, callback)`.
1364
- * @since v0.5.9
1365
- */
1366
- setTimeout(msecs: number, callback?: () => void): this;
1367
- /**
1368
- * **Only valid for request obtained from {@link Server}.**
1369
- *
1370
- * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`.
1371
- * @since v0.1.1
1372
- */
1373
- method?: string | undefined;
1374
- /**
1375
- * **Only valid for request obtained from {@link Server}.**
1376
- *
1377
- * Request URL string. This contains only the URL that is present in the actual
1378
- * HTTP request. Take the following request:
1379
- *
1380
- * ```http
1381
- * GET /status?name=ryan HTTP/1.1
1382
- * Accept: text/plain
1383
- * ```
1384
- *
1385
- * To parse the URL into its parts:
1386
- *
1387
- * ```js
1388
- * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
1389
- * ```
1390
- *
1391
- * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined:
1392
- *
1393
- * ```console
1394
- * $ node
1395
- * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
1396
- * URL {
1397
- * href: 'http://localhost/status?name=ryan',
1398
- * origin: 'http://localhost',
1399
- * protocol: 'http:',
1400
- * username: '',
1401
- * password: '',
1402
- * host: 'localhost',
1403
- * hostname: 'localhost',
1404
- * port: '',
1405
- * pathname: '/status',
1406
- * search: '?name=ryan',
1407
- * searchParams: URLSearchParams { 'name' => 'ryan' },
1408
- * hash: ''
1409
- * }
1410
- * ```
1411
- *
1412
- * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper
1413
- * validation is used, as clients may specify a custom `Host` header.
1414
- * @since v0.1.90
1415
- */
1416
- url?: string | undefined;
1417
- /**
1418
- * **Only valid for response obtained from {@link ClientRequest}.**
1419
- *
1420
- * The 3-digit HTTP response status code. E.G. `404`.
1421
- * @since v0.1.1
1422
- */
1423
- statusCode?: number | undefined;
1424
- /**
1425
- * **Only valid for response obtained from {@link ClientRequest}.**
1426
- *
1427
- * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`.
1428
- * @since v0.11.10
1429
- */
1430
- statusMessage?: string | undefined;
1431
- /**
1432
- * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed
1433
- * as an argument to any listeners on the event.
1434
- * @since v0.3.0
1435
- */
1436
- destroy(error?: Error): this;
1437
- }
1438
- interface AgentOptions extends NodeJS.PartialOptions<TcpSocketConnectOpts> {
1439
- /**
1440
- * Keep sockets around in a pool to be used by other requests in the future. Default = false
1441
- */
1442
- keepAlive?: boolean | undefined;
1443
- /**
1444
- * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
1445
- * Only relevant if keepAlive is set to true.
1446
- */
1447
- keepAliveMsecs?: number | undefined;
1448
- /**
1449
- * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
1450
- */
1451
- maxSockets?: number | undefined;
1452
- /**
1453
- * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
1454
- */
1455
- maxTotalSockets?: number | undefined;
1456
- /**
1457
- * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
1458
- */
1459
- maxFreeSockets?: number | undefined;
1460
- /**
1461
- * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
1462
- */
1463
- timeout?: number | undefined;
1464
- /**
1465
- * Scheduling strategy to apply when picking the next free socket to use.
1466
- * @default `lifo`
1467
- */
1468
- scheduling?: "fifo" | "lifo" | undefined;
1469
- }
1470
- /**
1471
- * An `Agent` is responsible for managing connection persistence
1472
- * and reuse for HTTP clients. It maintains a queue of pending requests
1473
- * for a given host and port, reusing a single socket connection for each
1474
- * until the queue is empty, at which time the socket is either destroyed
1475
- * or put into a pool where it is kept to be used again for requests to the
1476
- * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`.
1477
- *
1478
- * Pooled connections have TCP Keep-Alive enabled for them, but servers may
1479
- * still close idle connections, in which case they will be removed from the
1480
- * pool and a new connection will be made when a new HTTP request is made for
1481
- * that host and port. Servers may also refuse to allow multiple requests
1482
- * over the same connection, in which case the connection will have to be
1483
- * remade for every request and cannot be pooled. The `Agent` will still make
1484
- * the requests to that server, but each one will occur over a new connection.
1485
- *
1486
- * When a connection is closed by the client or the server, it is removed
1487
- * from the pool. Any unused sockets in the pool will be unrefed so as not
1488
- * to keep the Node.js process running when there are no outstanding requests.
1489
- * (see `socket.unref()`).
1490
- *
1491
- * It is good practice, to `destroy()` an `Agent` instance when it is no
1492
- * longer in use, because unused sockets consume OS resources.
1493
- *
1494
- * Sockets are removed from an agent when the socket emits either
1495
- * a `'close'` event or an `'agentRemove'` event. When intending to keep one
1496
- * HTTP request open for a long time without keeping it in the agent, something
1497
- * like the following may be done:
1498
- *
1499
- * ```js
1500
- * http.get(options, (res) => {
1501
- * // Do stuff
1502
- * }).on('socket', (socket) => {
1503
- * socket.emit('agentRemove');
1504
- * });
1505
- * ```
1506
- *
1507
- * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options
1508
- * will be used
1509
- * for the client connection.
1510
- *
1511
- * `agent:false`:
1512
- *
1513
- * ```js
1514
- * http.get({
1515
- * hostname: 'localhost',
1516
- * port: 80,
1517
- * path: '/',
1518
- * agent: false, // Create a new agent just for this one request
1519
- * }, (res) => {
1520
- * // Do stuff with response
1521
- * });
1522
- * ```
1523
- *
1524
- * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported.
1525
- *
1526
- * To configure any of them, a custom {@link Agent} instance must be created.
1527
- *
1528
- * ```js
1529
- * import http from 'node:http';
1530
- * const keepAliveAgent = new http.Agent({ keepAlive: true });
1531
- * options.agent = keepAliveAgent;
1532
- * http.request(options, onResponseCallback)
1533
- * ```
1534
- * @since v0.3.4
1535
- */
1536
- class Agent extends EventEmitter {
1537
- /**
1538
- * By default set to 256. For agents with `keepAlive` enabled, this
1539
- * sets the maximum number of sockets that will be left open in the free
1540
- * state.
1541
- * @since v0.11.7
1542
- */
1543
- maxFreeSockets: number;
1544
- /**
1545
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1546
- * can have open per origin. Origin is the returned value of `agent.getName()`.
1547
- * @since v0.3.6
1548
- */
1549
- maxSockets: number;
1550
- /**
1551
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1552
- * can have open. Unlike `maxSockets`, this parameter applies across all origins.
1553
- * @since v14.5.0, v12.19.0
1554
- */
1555
- maxTotalSockets: number;
1556
- /**
1557
- * An object which contains arrays of sockets currently awaiting use by
1558
- * the agent when `keepAlive` is enabled. Do not modify.
1559
- *
1560
- * Sockets in the `freeSockets` list will be automatically destroyed and
1561
- * removed from the array on `'timeout'`.
1562
- * @since v0.11.4
1563
- */
1564
- readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
1565
- /**
1566
- * An object which contains arrays of sockets currently in use by the
1567
- * agent. Do not modify.
1568
- * @since v0.3.6
1569
- */
1570
- readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
1571
- /**
1572
- * An object which contains queues of requests that have not yet been assigned to
1573
- * sockets. Do not modify.
1574
- * @since v0.5.9
1575
- */
1576
- readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
1577
- constructor(opts?: AgentOptions);
1578
- /**
1579
- * Destroy any sockets that are currently in use by the agent.
1580
- *
1581
- * It is usually not necessary to do this. However, if using an
1582
- * agent with `keepAlive` enabled, then it is best to explicitly shut down
1583
- * the agent when it is no longer needed. Otherwise,
1584
- * sockets might stay open for quite a long time before the server
1585
- * terminates them.
1586
- * @since v0.11.4
1587
- */
1588
- destroy(): void;
1589
- /**
1590
- * Produces a socket/stream to be used for HTTP requests.
1591
- *
1592
- * By default, this function is the same as `net.createConnection()`. However,
1593
- * custom agents may override this method in case greater flexibility is desired.
1594
- *
1595
- * A socket/stream can be supplied in one of two ways: by returning the
1596
- * socket/stream from this function, or by passing the socket/stream to `callback`.
1597
- *
1598
- * This method is guaranteed to return an instance of the `net.Socket` class,
1599
- * a subclass of `stream.Duplex`, unless the user specifies a socket
1600
- * type other than `net.Socket`.
1601
- *
1602
- * `callback` has a signature of `(err, stream)`.
1603
- * @since v0.11.4
1604
- * @param options Options containing connection details. Check `createConnection` for the format of the options
1605
- * @param callback Callback function that receives the created socket
1606
- */
1607
- createConnection(
1608
- options: ClientRequestArgs,
1609
- callback?: (err: Error | null, stream: stream.Duplex) => void,
1610
- ): stream.Duplex | null | undefined;
1611
- /**
1612
- * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1613
- *
1614
- * ```js
1615
- * socket.setKeepAlive(true, this.keepAliveMsecs);
1616
- * socket.unref();
1617
- * return true;
1618
- * ```
1619
- *
1620
- * This method can be overridden by a particular `Agent` subclass. If this
1621
- * method returns a falsy value, the socket will be destroyed instead of persisting
1622
- * it for use with the next request.
1623
- *
1624
- * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`.
1625
- * @since v8.1.0
1626
- */
1627
- keepSocketAlive(socket: stream.Duplex): void;
1628
- /**
1629
- * Called when `socket` is attached to `request` after being persisted because of
1630
- * the keep-alive options. Default behavior is to:
1631
- *
1632
- * ```js
1633
- * socket.ref();
1634
- * ```
1635
- *
1636
- * This method can be overridden by a particular `Agent` subclass.
1637
- *
1638
- * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`.
1639
- * @since v8.1.0
1640
- */
1641
- reuseSocket(socket: stream.Duplex, request: ClientRequest): void;
1642
- /**
1643
- * Get a unique name for a set of request options, to determine whether a
1644
- * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent,
1645
- * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options
1646
- * that determine socket reusability.
1647
- * @since v0.11.4
1648
- * @param options A set of options providing information for name generation
1649
- */
1650
- getName(options?: ClientRequestArgs): string;
1651
- }
1652
- const METHODS: string[];
1653
- const STATUS_CODES: {
1654
- [errorCode: number]: string | undefined;
1655
- [errorCode: string]: string | undefined;
1656
- };
1657
- /**
1658
- * Returns a new instance of {@link Server}.
1659
- *
1660
- * The `requestListener` is a function which is automatically
1661
- * added to the `'request'` event.
1662
- *
1663
- * ```js
1664
- * import http from 'node:http';
1665
- *
1666
- * // Create a local server to receive data from
1667
- * const server = http.createServer((req, res) => {
1668
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1669
- * res.end(JSON.stringify({
1670
- * data: 'Hello World!',
1671
- * }));
1672
- * });
1673
- *
1674
- * server.listen(8000);
1675
- * ```
1676
- *
1677
- * ```js
1678
- * import http from 'node:http';
1679
- *
1680
- * // Create a local server to receive data from
1681
- * const server = http.createServer();
1682
- *
1683
- * // Listen to the request event
1684
- * server.on('request', (request, res) => {
1685
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1686
- * res.end(JSON.stringify({
1687
- * data: 'Hello World!',
1688
- * }));
1689
- * });
1690
- *
1691
- * server.listen(8000);
1692
- * ```
1693
- * @since v0.1.13
1694
- */
1695
- function createServer<
1696
- Request extends typeof IncomingMessage = typeof IncomingMessage,
1697
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
1698
- >(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
1699
- function createServer<
1700
- Request extends typeof IncomingMessage = typeof IncomingMessage,
1701
- Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
1702
- >(
1703
- options: ServerOptions<Request, Response>,
1704
- requestListener?: RequestListener<Request, Response>,
1705
- ): Server<Request, Response>;
1706
- // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
1707
- // create interface RequestOptions would make the naming more clear to developers
1708
- interface RequestOptions extends ClientRequestArgs {}
1709
- /**
1710
- * `options` in `socket.connect()` are also supported.
1711
- *
1712
- * Node.js maintains several connections per server to make HTTP requests.
1713
- * This function allows one to transparently issue requests.
1714
- *
1715
- * `url` can be a string or a `URL` object. If `url` is a
1716
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
1717
- *
1718
- * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence.
1719
- *
1720
- * The optional `callback` parameter will be added as a one-time listener for
1721
- * the `'response'` event.
1722
- *
1723
- * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to
1724
- * upload a file with a POST request, then write to the `ClientRequest` object.
1725
- *
1726
- * ```js
1727
- * import http from 'node:http';
1728
- * import { Buffer } from 'node:buffer';
1729
- *
1730
- * const postData = JSON.stringify({
1731
- * 'msg': 'Hello World!',
1732
- * });
1733
- *
1734
- * const options = {
1735
- * hostname: 'www.google.com',
1736
- * port: 80,
1737
- * path: '/upload',
1738
- * method: 'POST',
1739
- * headers: {
1740
- * 'Content-Type': 'application/json',
1741
- * 'Content-Length': Buffer.byteLength(postData),
1742
- * },
1743
- * };
1744
- *
1745
- * const req = http.request(options, (res) => {
1746
- * console.log(`STATUS: ${res.statusCode}`);
1747
- * console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
1748
- * res.setEncoding('utf8');
1749
- * res.on('data', (chunk) => {
1750
- * console.log(`BODY: ${chunk}`);
1751
- * });
1752
- * res.on('end', () => {
1753
- * console.log('No more data in response.');
1754
- * });
1755
- * });
1756
- *
1757
- * req.on('error', (e) => {
1758
- * console.error(`problem with request: ${e.message}`);
1759
- * });
1760
- *
1761
- * // Write data to request body
1762
- * req.write(postData);
1763
- * req.end();
1764
- * ```
1765
- *
1766
- * In the example `req.end()` was called. With `http.request()` one
1767
- * must always call `req.end()` to signify the end of the request -
1768
- * even if there is no data being written to the request body.
1769
- *
1770
- * If any error is encountered during the request (be that with DNS resolution,
1771
- * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
1772
- * on the returned request object. As with all `'error'` events, if no listeners
1773
- * are registered the error will be thrown.
1774
- *
1775
- * There are a few special headers that should be noted.
1776
- *
1777
- * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
1778
- * the server should be persisted until the next request.
1779
- * * Sending a 'Content-Length' header will disable the default chunked encoding.
1780
- * * Sending an 'Expect' header will immediately send the request headers.
1781
- * Usually, when sending 'Expect: 100-continue', both a timeout and a listener
1782
- * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
1783
- * information.
1784
- * * Sending an Authorization header will override using the `auth` option
1785
- * to compute basic authentication.
1786
- *
1787
- * Example using a `URL` as `options`:
1788
- *
1789
- * ```js
1790
- * const options = new URL('http://abc:xyz@example.com');
1791
- *
1792
- * const req = http.request(options, (res) => {
1793
- * // ...
1794
- * });
1795
- * ```
1796
- *
1797
- * In a successful request, the following events will be emitted in the following
1798
- * order:
1799
- *
1800
- * * `'socket'`
1801
- * * `'response'`
1802
- * * `'data'` any number of times, on the `res` object
1803
- * (`'data'` will not be emitted at all if the response body is empty, for
1804
- * instance, in most redirects)
1805
- * * `'end'` on the `res` object
1806
- * * `'close'`
1807
- *
1808
- * In the case of a connection error, the following events will be emitted:
1809
- *
1810
- * * `'socket'`
1811
- * * `'error'`
1812
- * * `'close'`
1813
- *
1814
- * In the case of a premature connection close before the response is received,
1815
- * the following events will be emitted in the following order:
1816
- *
1817
- * * `'socket'`
1818
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
1819
- * * `'close'`
1820
- *
1821
- * In the case of a premature connection close after the response is received,
1822
- * the following events will be emitted in the following order:
1823
- *
1824
- * * `'socket'`
1825
- * * `'response'`
1826
- * * `'data'` any number of times, on the `res` object
1827
- * * (connection closed here)
1828
- * * `'aborted'` on the `res` object
1829
- * * `'close'`
1830
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`
1831
- * * `'close'` on the `res` object
1832
- *
1833
- * If `req.destroy()` is called before a socket is assigned, the following
1834
- * events will be emitted in the following order:
1835
- *
1836
- * * (`req.destroy()` called here)
1837
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1838
- * * `'close'`
1839
- *
1840
- * If `req.destroy()` is called before the connection succeeds, the following
1841
- * events will be emitted in the following order:
1842
- *
1843
- * * `'socket'`
1844
- * * (`req.destroy()` called here)
1845
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1846
- * * `'close'`
1847
- *
1848
- * If `req.destroy()` is called after the response is received, the following
1849
- * events will be emitted in the following order:
1850
- *
1851
- * * `'socket'`
1852
- * * `'response'`
1853
- * * `'data'` any number of times, on the `res` object
1854
- * * (`req.destroy()` called here)
1855
- * * `'aborted'` on the `res` object
1856
- * * `'close'`
1857
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1858
- * * `'close'` on the `res` object
1859
- *
1860
- * If `req.abort()` is called before a socket is assigned, the following
1861
- * events will be emitted in the following order:
1862
- *
1863
- * * (`req.abort()` called here)
1864
- * * `'abort'`
1865
- * * `'close'`
1866
- *
1867
- * If `req.abort()` is called before the connection succeeds, the following
1868
- * events will be emitted in the following order:
1869
- *
1870
- * * `'socket'`
1871
- * * (`req.abort()` called here)
1872
- * * `'abort'`
1873
- * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
1874
- * * `'close'`
1875
- *
1876
- * If `req.abort()` is called after the response is received, the following
1877
- * events will be emitted in the following order:
1878
- *
1879
- * * `'socket'`
1880
- * * `'response'`
1881
- * * `'data'` any number of times, on the `res` object
1882
- * * (`req.abort()` called here)
1883
- * * `'abort'`
1884
- * * `'aborted'` on the `res` object
1885
- * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`.
1886
- * * `'close'`
1887
- * * `'close'` on the `res` object
1888
- *
1889
- * Setting the `timeout` option or using the `setTimeout()` function will
1890
- * not abort the request or do anything besides add a `'timeout'` event.
1891
- *
1892
- * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the
1893
- * request. Specifically, the `'error'` event will be emitted with an error with
1894
- * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided.
1895
- * @since v0.3.6
1896
- */
1897
- function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1898
- function request(
1899
- url: string | URL,
1900
- options: RequestOptions,
1901
- callback?: (res: IncomingMessage) => void,
1902
- ): ClientRequest;
1903
- /**
1904
- * Since most requests are GET requests without bodies, Node.js provides this
1905
- * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to
1906
- * consume the response
1907
- * data for reasons stated in {@link ClientRequest} section.
1908
- *
1909
- * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
1910
- *
1911
- * JSON fetching example:
1912
- *
1913
- * ```js
1914
- * http.get('http://localhost:8000/', (res) => {
1915
- * const { statusCode } = res;
1916
- * const contentType = res.headers['content-type'];
1917
- *
1918
- * let error;
1919
- * // Any 2xx status code signals a successful response but
1920
- * // here we're only checking for 200.
1921
- * if (statusCode !== 200) {
1922
- * error = new Error('Request Failed.\n' +
1923
- * `Status Code: ${statusCode}`);
1924
- * } else if (!/^application\/json/.test(contentType)) {
1925
- * error = new Error('Invalid content-type.\n' +
1926
- * `Expected application/json but received ${contentType}`);
1927
- * }
1928
- * if (error) {
1929
- * console.error(error.message);
1930
- * // Consume response data to free up memory
1931
- * res.resume();
1932
- * return;
1933
- * }
1934
- *
1935
- * res.setEncoding('utf8');
1936
- * let rawData = '';
1937
- * res.on('data', (chunk) => { rawData += chunk; });
1938
- * res.on('end', () => {
1939
- * try {
1940
- * const parsedData = JSON.parse(rawData);
1941
- * console.log(parsedData);
1942
- * } catch (e) {
1943
- * console.error(e.message);
1944
- * }
1945
- * });
1946
- * }).on('error', (e) => {
1947
- * console.error(`Got error: ${e.message}`);
1948
- * });
1949
- *
1950
- * // Create a local server to receive data from
1951
- * const server = http.createServer((req, res) => {
1952
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1953
- * res.end(JSON.stringify({
1954
- * data: 'Hello World!',
1955
- * }));
1956
- * });
1957
- *
1958
- * server.listen(8000);
1959
- * ```
1960
- * @since v0.3.6
1961
- * @param options Accepts the same `options` as {@link request}, with the method set to GET by default.
1962
- */
1963
- function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1964
- function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
1965
- /**
1966
- * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called.
1967
- *
1968
- * Passing illegal value as `name` will result in a `TypeError` being thrown,
1969
- * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
1970
- *
1971
- * It is not necessary to use this method before passing headers to an HTTP request
1972
- * or response. The HTTP module will automatically validate such headers.
1973
- *
1974
- * Example:
1975
- *
1976
- * ```js
1977
- * import { validateHeaderName } from 'node:http';
1978
- *
1979
- * try {
1980
- * validateHeaderName('');
1981
- * } catch (err) {
1982
- * console.error(err instanceof TypeError); // --> true
1983
- * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN'
1984
- * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]'
1985
- * }
1986
- * ```
1987
- * @since v14.3.0
1988
- * @param [label='Header name'] Label for error message.
1989
- */
1990
- function validateHeaderName(name: string): void;
1991
- /**
1992
- * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called.
1993
- *
1994
- * Passing illegal value as `value` will result in a `TypeError` being thrown.
1995
- *
1996
- * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`.
1997
- * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`.
1998
- *
1999
- * It is not necessary to use this method before passing headers to an HTTP request
2000
- * or response. The HTTP module will automatically validate such headers.
2001
- *
2002
- * Examples:
2003
- *
2004
- * ```js
2005
- * import { validateHeaderValue } from 'node:http';
2006
- *
2007
- * try {
2008
- * validateHeaderValue('x-my-header', undefined);
2009
- * } catch (err) {
2010
- * console.error(err instanceof TypeError); // --> true
2011
- * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true
2012
- * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"'
2013
- * }
2014
- *
2015
- * try {
2016
- * validateHeaderValue('x-my-header', 'oʊmɪɡə');
2017
- * } catch (err) {
2018
- * console.error(err instanceof TypeError); // --> true
2019
- * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true
2020
- * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]'
2021
- * }
2022
- * ```
2023
- * @since v14.3.0
2024
- * @param name Header name
2025
- * @param value Header value
2026
- */
2027
- function validateHeaderValue(name: string, value: string): void;
2028
- /**
2029
- * Set the maximum number of idle HTTP parsers.
2030
- * @since v18.8.0, v16.18.0
2031
- * @param [max=1000]
2032
- */
2033
- function setMaxIdleHTTPParsers(max: number): void;
2034
- /**
2035
- * Global instance of `Agent` which is used as the default for all HTTP client
2036
- * requests. Diverges from a default `Agent` configuration by having `keepAlive`
2037
- * enabled and a `timeout` of 5 seconds.
2038
- * @since v0.5.9
2039
- */
2040
- let globalAgent: Agent;
2041
- /**
2042
- * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
2043
- * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option.
2044
- */
2045
- const maxHeaderSize: number;
2046
- }
2047
- declare module "node:http" {
2048
- export * from "http";
2049
- }