@openclaw/discord 2026.5.20 → 2026.5.22

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 (3044) hide show
  1. package/dist/{account-inspect-CcJ-bl80.js → account-inspect-C4sJZNbI.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-C2TOAmpo.js → accounts-dXTfmnSZ.js} +1 -1
  4. package/dist/action-runtime-api.js +1 -1
  5. package/dist/api.js +13 -13
  6. package/dist/{approval-handler.runtime-hi6B0JCi.js → approval-handler.runtime-CyGGSiMH.js} +3 -3
  7. package/dist/{audit-DJIvRRzY.js → audit-DkBvCBsG.js} +3 -3
  8. package/dist/{channel-BswuOAN6.js → channel-LszCFESI.js} +16 -16
  9. package/dist/{channel-actions-CSepY2Kq.js → channel-actions-DDwcJy6_.js} +4 -4
  10. package/dist/{channel-actions.runtime-CSjcHZNT.js → channel-actions.runtime-CnwxnT58.js} +4 -4
  11. package/dist/channel-config-api.js +1 -1
  12. package/dist/channel-plugin-api.js +1 -1
  13. package/dist/{channel.setup-C0rcLtB9.js → channel.setup-rrsenw1h.js} +4 -4
  14. package/dist/{components-DDPGekgY.js → components-CE63uOrc.js} +3 -0
  15. package/dist/{config-schema-BGgg8U6A.js → config-schema-Kuf9IrLg.js} +4 -0
  16. package/dist/contract-api.js +2 -2
  17. package/dist/{conversation-identity-CAyt5wzy.js → conversation-identity-jwZ56ing.js} +2 -2
  18. package/dist/{directory-config-BcWtq4k8.js → directory-config-Do_NA_H8.js} +1 -1
  19. package/dist/directory-contract-api.js +1 -1
  20. package/dist/{directory-live-5HHCCe5Q.js → directory-live-DekuEEl8.js} +1 -1
  21. package/dist/{doctor-BLcVWv42.js → doctor-DmPhrTLR.js} +3 -3
  22. package/dist/{handle-action.guild-admin-DX2D9qkG.js → handle-action.guild-admin-09HC30Oh.js} +1 -1
  23. package/dist/{manager.runtime-Dq0mc5K0.js → manager.runtime-DPtx2pxB.js} +3 -3
  24. package/dist/{message-handler-wQJd4Peh.js → message-handler-miSYjwxl.js} +5 -5
  25. package/dist/{message-handler.preflight-ANdoLbtA.js → message-handler.preflight-DiLKljGS.js} +8 -8
  26. package/dist/{message-handler.process-DG4qm0sQ.js → message-handler.process-BKvQTmVP.js} +8 -8
  27. package/dist/{message-utils-Bw-wDr8G.js → message-utils-U-ax3LTX.js} +1 -1
  28. package/dist/{outbound-adapter-TGbHliO_.js → outbound-adapter-CF4KuNM6.js} +7 -6
  29. package/dist/{probe-CRWV5COl.js → probe-DfIM7zSY.js} +1 -1
  30. package/dist/{probe.runtime-h9mEzmMs.js → probe.runtime-DoXDN3rt.js} +1 -1
  31. package/dist/{provider-CzKMDsSE.js → provider-Bv9Sx9lq.js} +142 -23
  32. package/dist/{provider-session.runtime-D0XbJS5X.js → provider-session.runtime-BbEz2CZt.js} +3 -3
  33. package/dist/provider.runtime-DKBGMsC7.js +2 -0
  34. package/dist/{resolve-allowlist-common-Bec0FONA.js → resolve-allowlist-common-QzX-w4-_.js} +1 -1
  35. package/dist/{resolve-channels-DcWaMURg.js → resolve-channels-BDjtLmjX.js} +1 -1
  36. package/dist/{resolve-users-TQPLKDeV.js → resolve-users-BeaV5INm.js} +1 -1
  37. package/dist/{runtime-DP_0_5a0.js → runtime-DxQPyNY7.js} +214 -7
  38. package/dist/runtime-api.actions.js +2 -2
  39. package/dist/runtime-api.js +19 -19
  40. package/dist/runtime-api.lookup.js +5 -5
  41. package/dist/runtime-api.monitor-Wt6Qf0SL.js +5 -0
  42. package/dist/runtime-api.monitor.js +4 -4
  43. package/dist/runtime-api.send.js +5 -5
  44. package/dist/runtime-api.threads.js +3 -3
  45. package/dist/{send-CEAtV0qd.js → send-BjHCUrvn.js} +9 -5
  46. package/dist/{send.components-sY6aQV0K.js → send.components-BcCQ27av.js} +42 -8
  47. package/dist/{send.outbound-1vG9pOh2.js → send.outbound-CyvhKilL.js} +3 -3
  48. package/dist/{send.shared-D4clao4K.js → send.shared-C3uAu6bc.js} +2 -2
  49. package/dist/setup-plugin-api.js +1 -1
  50. package/dist/{shared-mo-r7V5W.js → shared-CgAcqTsg.js} +4 -4
  51. package/dist/{subagent-hooks-D65kqOor.js → subagent-hooks-DehrqnoK.js} +2 -2
  52. package/dist/subagent-hooks-api.js +1 -1
  53. package/dist/{target-resolver-BpGdnBIZ.js → target-resolver-squYahVm.js} +2 -2
  54. package/dist/{targets-DMdVjHOU.js → targets-BeetkGO0.js} +1 -1
  55. package/dist/test-api.js +3 -3
  56. package/dist/{thread-bindings-BQz8z6MR.js → thread-bindings-BD9jKFo5.js} +3 -3
  57. package/dist/{thread-bindings.discord-api-Ddalj9wo.js → thread-bindings.discord-api-D2EF_9XS.js} +3 -3
  58. package/dist/{thread-bindings.manager-I5f-Oykv.js → thread-bindings.manager-AEGKdE3O.js} +2 -2
  59. package/node_modules/@discordjs/voice/LICENSE +191 -0
  60. package/node_modules/@discordjs/voice/README.md +120 -0
  61. package/node_modules/@discordjs/voice/dist/index.d.mts +1930 -0
  62. package/node_modules/@discordjs/voice/dist/index.d.ts +1930 -0
  63. package/node_modules/@discordjs/voice/dist/index.js +3241 -0
  64. package/node_modules/@discordjs/voice/dist/index.js.map +1 -0
  65. package/node_modules/@discordjs/voice/dist/index.mjs +3180 -0
  66. package/node_modules/@discordjs/voice/dist/index.mjs.map +1 -0
  67. package/node_modules/@discordjs/voice/package.json +100 -0
  68. package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +299 -0
  69. package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +25092 -0
  70. package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +294 -0
  71. package/node_modules/@napi-rs/wasm-runtime/package.json +70 -0
  72. package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +15 -0
  73. package/node_modules/@napi-rs/wasm-runtime/runtime.js +8 -0
  74. package/node_modules/@snazzah/davey/README.md +58 -0
  75. package/node_modules/@snazzah/davey/browser.js +1 -0
  76. package/node_modules/@snazzah/davey/index.d.ts +260 -0
  77. package/node_modules/@snazzah/davey/index.js +523 -0
  78. package/node_modules/@snazzah/davey/package.json +140 -0
  79. package/node_modules/@snazzah/davey-android-arm-eabi/README.md +3 -0
  80. package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
  81. package/node_modules/@snazzah/davey-android-arm-eabi/package.json +40 -0
  82. package/node_modules/@snazzah/davey-android-arm64/README.md +3 -0
  83. package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
  84. package/node_modules/@snazzah/davey-android-arm64/package.json +40 -0
  85. package/node_modules/@snazzah/davey-darwin-arm64/README.md +3 -0
  86. package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
  87. package/node_modules/@snazzah/davey-darwin-arm64/package.json +40 -0
  88. package/node_modules/@snazzah/davey-darwin-x64/README.md +3 -0
  89. package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
  90. package/node_modules/@snazzah/davey-darwin-x64/package.json +40 -0
  91. package/node_modules/@snazzah/davey-freebsd-x64/README.md +3 -0
  92. package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
  93. package/node_modules/@snazzah/davey-freebsd-x64/package.json +40 -0
  94. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/README.md +3 -0
  95. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
  96. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +40 -0
  97. package/node_modules/@snazzah/davey-linux-arm64-gnu/README.md +3 -0
  98. package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
  99. package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +43 -0
  100. package/node_modules/@snazzah/davey-linux-arm64-musl/README.md +3 -0
  101. package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
  102. package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +43 -0
  103. package/node_modules/@snazzah/davey-linux-x64-gnu/README.md +3 -0
  104. package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
  105. package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
  106. package/node_modules/@snazzah/davey-linux-x64-musl/README.md +3 -0
  107. package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
  108. package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
  109. package/node_modules/@snazzah/davey-wasm32-wasi/README.md +3 -0
  110. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi-browser.js +71 -0
  111. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi.cjs +123 -0
  112. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
  113. package/node_modules/@snazzah/davey-wasm32-wasi/package.json +45 -0
  114. package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker-browser.mjs +32 -0
  115. package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker.mjs +63 -0
  116. package/node_modules/@snazzah/davey-win32-arm64-msvc/README.md +3 -0
  117. package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
  118. package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +40 -0
  119. package/node_modules/@snazzah/davey-win32-ia32-msvc/README.md +3 -0
  120. package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
  121. package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +40 -0
  122. package/node_modules/@snazzah/davey-win32-x64-msvc/README.md +3 -0
  123. package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
  124. package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +40 -0
  125. package/node_modules/@tybys/wasm-util/README.md +193 -0
  126. package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
  127. package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
  128. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2920 -0
  129. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2920 -0
  130. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
  131. package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2942 -0
  132. package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
  133. package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
  134. package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
  135. package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
  136. package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
  137. package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
  138. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
  139. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
  140. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
  141. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
  142. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
  143. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1586 -0
  144. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
  145. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
  146. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
  147. package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
  148. package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
  149. package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
  150. package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
  151. package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
  152. package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
  153. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
  154. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
  155. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
  156. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
  157. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
  158. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1581 -0
  159. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
  160. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
  161. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
  162. package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
  163. package/node_modules/@tybys/wasm-util/package.json +58 -0
  164. package/node_modules/@types/node/LICENSE +21 -0
  165. package/node_modules/@types/node/README.md +15 -0
  166. package/node_modules/@types/node/assert/strict.d.ts +59 -0
  167. package/node_modules/@types/node/assert.d.ts +950 -0
  168. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  169. package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  170. package/node_modules/@types/node/buffer.d.ts +1765 -0
  171. package/node_modules/@types/node/child_process.d.ts +1366 -0
  172. package/node_modules/@types/node/cluster.d.ts +432 -0
  173. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  174. package/node_modules/@types/node/console.d.ts +93 -0
  175. package/node_modules/@types/node/constants.d.ts +14 -0
  176. package/node_modules/@types/node/crypto.d.ts +4058 -0
  177. package/node_modules/@types/node/dgram.d.ts +537 -0
  178. package/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
  179. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  180. package/node_modules/@types/node/dns.d.ts +876 -0
  181. package/node_modules/@types/node/domain.d.ts +150 -0
  182. package/node_modules/@types/node/events.d.ts +1008 -0
  183. package/node_modules/@types/node/fs/promises.d.ts +1468 -0
  184. package/node_modules/@types/node/fs.d.ts +4780 -0
  185. package/node_modules/@types/node/globals.d.ts +150 -0
  186. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  187. package/node_modules/@types/node/http.d.ts +2147 -0
  188. package/node_modules/@types/node/http2.d.ts +2485 -0
  189. package/node_modules/@types/node/https.d.ts +400 -0
  190. package/node_modules/@types/node/index.d.ts +117 -0
  191. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  192. package/node_modules/@types/node/inspector.d.ts +264 -0
  193. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  194. package/node_modules/@types/node/module.d.ts +755 -0
  195. package/node_modules/@types/node/net.d.ts +970 -0
  196. package/node_modules/@types/node/os.d.ts +498 -0
  197. package/node_modules/@types/node/package.json +155 -0
  198. package/node_modules/@types/node/path/posix.d.ts +8 -0
  199. package/node_modules/@types/node/path/win32.d.ts +8 -0
  200. package/node_modules/@types/node/path.d.ts +178 -0
  201. package/node_modules/@types/node/perf_hooks.d.ts +612 -0
  202. package/node_modules/@types/node/process.d.ts +2204 -0
  203. package/node_modules/@types/node/punycode.d.ts +89 -0
  204. package/node_modules/@types/node/querystring.d.ts +139 -0
  205. package/node_modules/@types/node/quic.d.ts +897 -0
  206. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  207. package/node_modules/@types/node/readline.d.ts +507 -0
  208. package/node_modules/@types/node/repl.d.ts +420 -0
  209. package/node_modules/@types/node/sea.d.ts +47 -0
  210. package/node_modules/@types/node/sqlite.d.ts +1068 -0
  211. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  212. package/node_modules/@types/node/stream/iter.d.ts +301 -0
  213. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  214. package/node_modules/@types/node/stream/web.d.ts +300 -0
  215. package/node_modules/@types/node/stream.d.ts +1774 -0
  216. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  217. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  218. package/node_modules/@types/node/test.d.ts +2279 -0
  219. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  220. package/node_modules/@types/node/timers.d.ts +149 -0
  221. package/node_modules/@types/node/tls.d.ts +1193 -0
  222. package/node_modules/@types/node/trace_events.d.ts +103 -0
  223. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  224. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  225. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  226. package/node_modules/@types/node/ts5.6/index.d.ts +119 -0
  227. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  228. package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
  229. package/node_modules/@types/node/tty.d.ts +225 -0
  230. package/node_modules/@types/node/url.d.ts +556 -0
  231. package/node_modules/@types/node/util/types.d.ts +558 -0
  232. package/node_modules/@types/node/util.d.ts +1677 -0
  233. package/node_modules/@types/node/v8.d.ts +980 -0
  234. package/node_modules/@types/node/vm.d.ts +1136 -0
  235. package/node_modules/@types/node/wasi.d.ts +131 -0
  236. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  237. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  238. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  239. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  240. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  241. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  242. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  243. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  244. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  245. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  246. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  247. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  248. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  249. package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  250. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  251. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  252. package/node_modules/@types/node/worker_threads.d.ts +671 -0
  253. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  254. package/node_modules/@types/node/zlib.d.ts +589 -0
  255. package/node_modules/@types/ws/LICENSE +21 -0
  256. package/node_modules/@types/ws/README.md +15 -0
  257. package/node_modules/@types/ws/index.d.mts +451 -0
  258. package/node_modules/@types/ws/index.d.ts +445 -0
  259. package/node_modules/@types/ws/package.json +72 -0
  260. package/node_modules/agent-base/LICENSE +22 -0
  261. package/node_modules/agent-base/README.md +69 -0
  262. package/node_modules/agent-base/dist/helpers.d.ts +10 -0
  263. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  264. package/node_modules/agent-base/dist/helpers.js +37 -0
  265. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  266. package/node_modules/agent-base/dist/index.d.ts +37 -0
  267. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  268. package/node_modules/agent-base/dist/index.js +146 -0
  269. package/node_modules/agent-base/dist/index.js.map +1 -0
  270. package/node_modules/agent-base/package.json +46 -0
  271. package/node_modules/debug/LICENSE +20 -0
  272. package/node_modules/debug/README.md +481 -0
  273. package/node_modules/debug/package.json +64 -0
  274. package/node_modules/debug/src/browser.js +272 -0
  275. package/node_modules/debug/src/common.js +292 -0
  276. package/node_modules/debug/src/index.js +10 -0
  277. package/node_modules/debug/src/node.js +263 -0
  278. package/node_modules/discord-api-types/CHANGELOG.md +2442 -0
  279. package/node_modules/discord-api-types/LICENSE +21 -0
  280. package/node_modules/discord-api-types/README.md +102 -0
  281. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +906 -0
  282. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map +1 -0
  283. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js +3 -0
  284. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js.map +1 -0
  285. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts +908 -0
  286. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -0
  287. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js +3 -0
  288. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js.map +1 -0
  289. package/node_modules/discord-api-types/gateway/common.d.ts +9 -0
  290. package/node_modules/discord-api-types/gateway/common.d.ts.map +1 -0
  291. package/node_modules/discord-api-types/gateway/common.js +3 -0
  292. package/node_modules/discord-api-types/gateway/common.js.map +1 -0
  293. package/node_modules/discord-api-types/gateway/index.d.ts +2 -0
  294. package/node_modules/discord-api-types/gateway/index.d.ts.map +1 -0
  295. package/node_modules/discord-api-types/gateway/index.js +20 -0
  296. package/node_modules/discord-api-types/gateway/index.js.map +1 -0
  297. package/node_modules/discord-api-types/gateway/index.mjs +9 -0
  298. package/node_modules/discord-api-types/gateway/v10.d.ts +2054 -0
  299. package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -0
  300. package/node_modules/discord-api-types/gateway/v10.js +277 -0
  301. package/node_modules/discord-api-types/gateway/v10.js.map +1 -0
  302. package/node_modules/discord-api-types/gateway/v10.mjs +9 -0
  303. package/node_modules/discord-api-types/gateway/v6.d.ts +658 -0
  304. package/node_modules/discord-api-types/gateway/v6.d.ts.map +1 -0
  305. package/node_modules/discord-api-types/gateway/v6.js +158 -0
  306. package/node_modules/discord-api-types/gateway/v6.js.map +1 -0
  307. package/node_modules/discord-api-types/gateway/v6.mjs +10 -0
  308. package/node_modules/discord-api-types/gateway/v8.d.ts +1575 -0
  309. package/node_modules/discord-api-types/gateway/v8.d.ts.map +1 -0
  310. package/node_modules/discord-api-types/gateway/v8.js +231 -0
  311. package/node_modules/discord-api-types/gateway/v8.js.map +1 -0
  312. package/node_modules/discord-api-types/gateway/v8.mjs +8 -0
  313. package/node_modules/discord-api-types/gateway/v9.d.ts +2053 -0
  314. package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -0
  315. package/node_modules/discord-api-types/gateway/v9.js +276 -0
  316. package/node_modules/discord-api-types/gateway/v9.js.map +1 -0
  317. package/node_modules/discord-api-types/gateway/v9.mjs +9 -0
  318. package/node_modules/discord-api-types/globals.d.ts +102 -0
  319. package/node_modules/discord-api-types/globals.d.ts.map +1 -0
  320. package/node_modules/discord-api-types/globals.js +105 -0
  321. package/node_modules/discord-api-types/globals.js.map +1 -0
  322. package/node_modules/discord-api-types/globals.mjs +4 -0
  323. package/node_modules/discord-api-types/package.json +215 -0
  324. package/node_modules/discord-api-types/payloads/common.d.ts +344 -0
  325. package/node_modules/discord-api-types/payloads/common.d.ts.map +1 -0
  326. package/node_modules/discord-api-types/payloads/common.js +310 -0
  327. package/node_modules/discord-api-types/payloads/common.js.map +1 -0
  328. package/node_modules/discord-api-types/payloads/index.d.ts +2 -0
  329. package/node_modules/discord-api-types/payloads/index.d.ts.map +1 -0
  330. package/node_modules/discord-api-types/payloads/index.js +20 -0
  331. package/node_modules/discord-api-types/payloads/index.js.map +1 -0
  332. package/node_modules/discord-api-types/payloads/index.mjs +101 -0
  333. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
  334. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  335. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  336. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  337. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
  338. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  339. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  340. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  341. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
  342. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  343. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  344. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  345. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
  346. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  347. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  348. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  349. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
  350. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  351. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  352. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  353. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
  354. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  355. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  356. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  357. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
  358. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  359. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  360. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  361. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
  362. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  363. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  364. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  365. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
  366. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  367. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
  368. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  369. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
  370. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  371. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  372. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  373. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
  374. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  375. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  376. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  377. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
  378. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  379. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  380. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  381. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
  382. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  383. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  384. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  385. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts +68 -0
  386. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  387. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js +18 -0
  388. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js.map +1 -0
  389. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
  390. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  391. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js +3 -0
  392. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  393. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
  394. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
  395. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js +3 -0
  396. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js.map +1 -0
  397. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts +9 -0
  398. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  399. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js +3 -0
  400. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js.map +1 -0
  401. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts +55 -0
  402. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  403. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js +21 -0
  404. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js.map +1 -0
  405. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts +194 -0
  406. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts.map +1 -0
  407. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js +89 -0
  408. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js.map +1 -0
  409. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts +11 -0
  410. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts.map +1 -0
  411. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js +3 -0
  412. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js.map +1 -0
  413. package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts +230 -0
  414. package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts.map +1 -0
  415. package/node_modules/discord-api-types/payloads/v10/_interactions/base.js +3 -0
  416. package/node_modules/discord-api-types/payloads/v10/_interactions/base.js.map +1 -0
  417. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts +42 -0
  418. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts.map +1 -0
  419. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js +3 -0
  420. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js.map +1 -0
  421. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts +77 -0
  422. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts.map +1 -0
  423. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js +3 -0
  424. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js.map +1 -0
  425. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts +4 -0
  426. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts.map +1 -0
  427. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js +3 -0
  428. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js.map +1 -0
  429. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts +124 -0
  430. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts.map +1 -0
  431. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js +63 -0
  432. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js.map +1 -0
  433. package/node_modules/discord-api-types/payloads/v10/application.d.ts +387 -0
  434. package/node_modules/discord-api-types/payloads/v10/application.d.ts.map +1 -0
  435. package/node_modules/discord-api-types/payloads/v10/application.js +152 -0
  436. package/node_modules/discord-api-types/payloads/v10/application.js.map +1 -0
  437. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts +694 -0
  438. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts.map +1 -0
  439. package/node_modules/discord-api-types/payloads/v10/auditLog.js +85 -0
  440. package/node_modules/discord-api-types/payloads/v10/auditLog.js.map +1 -0
  441. package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts +222 -0
  442. package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts.map +1 -0
  443. package/node_modules/discord-api-types/payloads/v10/autoModeration.js +88 -0
  444. package/node_modules/discord-api-types/payloads/v10/autoModeration.js.map +1 -0
  445. package/node_modules/discord-api-types/payloads/v10/channel.d.ts +653 -0
  446. package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -0
  447. package/node_modules/discord-api-types/payloads/v10/channel.js +219 -0
  448. package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -0
  449. package/node_modules/discord-api-types/payloads/v10/emoji.d.ts +79 -0
  450. package/node_modules/discord-api-types/payloads/v10/emoji.d.ts.map +1 -0
  451. package/node_modules/discord-api-types/payloads/v10/emoji.js +6 -0
  452. package/node_modules/discord-api-types/payloads/v10/emoji.js.map +1 -0
  453. package/node_modules/discord-api-types/payloads/v10/gateway.d.ts +456 -0
  454. package/node_modules/discord-api-types/payloads/v10/gateway.d.ts.map +1 -0
  455. package/node_modules/discord-api-types/payloads/v10/gateway.js +103 -0
  456. package/node_modules/discord-api-types/payloads/v10/gateway.js.map +1 -0
  457. package/node_modules/discord-api-types/payloads/v10/guild.d.ts +1223 -0
  458. package/node_modules/discord-api-types/payloads/v10/guild.d.ts.map +1 -0
  459. package/node_modules/discord-api-types/payloads/v10/guild.js +403 -0
  460. package/node_modules/discord-api-types/payloads/v10/guild.js.map +1 -0
  461. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts +244 -0
  462. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts.map +1 -0
  463. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js +74 -0
  464. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js.map +1 -0
  465. package/node_modules/discord-api-types/payloads/v10/index.d.ts +25 -0
  466. package/node_modules/discord-api-types/payloads/v10/index.d.ts.map +1 -0
  467. package/node_modules/discord-api-types/payloads/v10/index.js +37 -0
  468. package/node_modules/discord-api-types/payloads/v10/index.js.map +1 -0
  469. package/node_modules/discord-api-types/payloads/v10/index.mjs +101 -0
  470. package/node_modules/discord-api-types/payloads/v10/interactions.d.ts +25 -0
  471. package/node_modules/discord-api-types/payloads/v10/interactions.d.ts.map +1 -0
  472. package/node_modules/discord-api-types/payloads/v10/interactions.js +19 -0
  473. package/node_modules/discord-api-types/payloads/v10/interactions.js.map +1 -0
  474. package/node_modules/discord-api-types/payloads/v10/invite.d.ts +132 -0
  475. package/node_modules/discord-api-types/payloads/v10/invite.d.ts.map +1 -0
  476. package/node_modules/discord-api-types/payloads/v10/invite.js +31 -0
  477. package/node_modules/discord-api-types/payloads/v10/invite.js.map +1 -0
  478. package/node_modules/discord-api-types/payloads/v10/message.d.ts +2155 -0
  479. package/node_modules/discord-api-types/payloads/v10/message.d.ts.map +1 -0
  480. package/node_modules/discord-api-types/payloads/v10/message.js +590 -0
  481. package/node_modules/discord-api-types/payloads/v10/message.js.map +1 -0
  482. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts +216 -0
  483. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts.map +1 -0
  484. package/node_modules/discord-api-types/payloads/v10/monetization.js +101 -0
  485. package/node_modules/discord-api-types/payloads/v10/monetization.js.map +1 -0
  486. package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts +144 -0
  487. package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts.map +1 -0
  488. package/node_modules/discord-api-types/payloads/v10/oauth2.js +148 -0
  489. package/node_modules/discord-api-types/payloads/v10/oauth2.js.map +1 -0
  490. package/node_modules/discord-api-types/payloads/v10/permissions.d.ts +124 -0
  491. package/node_modules/discord-api-types/payloads/v10/permissions.d.ts.map +1 -0
  492. package/node_modules/discord-api-types/payloads/v10/permissions.js +17 -0
  493. package/node_modules/discord-api-types/payloads/v10/permissions.js.map +1 -0
  494. package/node_modules/discord-api-types/payloads/v10/poll.d.ts +111 -0
  495. package/node_modules/discord-api-types/payloads/v10/poll.d.ts.map +1 -0
  496. package/node_modules/discord-api-types/payloads/v10/poll.js +17 -0
  497. package/node_modules/discord-api-types/payloads/v10/poll.js.map +1 -0
  498. package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts +43 -0
  499. package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts.map +1 -0
  500. package/node_modules/discord-api-types/payloads/v10/soundboard.js +6 -0
  501. package/node_modules/discord-api-types/payloads/v10/soundboard.js.map +1 -0
  502. package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts +82 -0
  503. package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts.map +1 -0
  504. package/node_modules/discord-api-types/payloads/v10/stageInstance.js +21 -0
  505. package/node_modules/discord-api-types/payloads/v10/stageInstance.js.map +1 -0
  506. package/node_modules/discord-api-types/payloads/v10/sticker.d.ts +125 -0
  507. package/node_modules/discord-api-types/payloads/v10/sticker.d.ts.map +1 -0
  508. package/node_modules/discord-api-types/payloads/v10/sticker.js +31 -0
  509. package/node_modules/discord-api-types/payloads/v10/sticker.js.map +1 -0
  510. package/node_modules/discord-api-types/payloads/v10/teams.d.ts +79 -0
  511. package/node_modules/discord-api-types/payloads/v10/teams.d.ts.map +1 -0
  512. package/node_modules/discord-api-types/payloads/v10/teams.js +24 -0
  513. package/node_modules/discord-api-types/payloads/v10/teams.js.map +1 -0
  514. package/node_modules/discord-api-types/payloads/v10/template.d.ts +64 -0
  515. package/node_modules/discord-api-types/payloads/v10/template.d.ts.map +1 -0
  516. package/node_modules/discord-api-types/payloads/v10/template.js +6 -0
  517. package/node_modules/discord-api-types/payloads/v10/template.js.map +1 -0
  518. package/node_modules/discord-api-types/payloads/v10/user.d.ts +430 -0
  519. package/node_modules/discord-api-types/payloads/v10/user.d.ts.map +1 -0
  520. package/node_modules/discord-api-types/payloads/v10/user.js +191 -0
  521. package/node_modules/discord-api-types/payloads/v10/user.js.map +1 -0
  522. package/node_modules/discord-api-types/payloads/v10/voice.d.ts +101 -0
  523. package/node_modules/discord-api-types/payloads/v10/voice.d.ts.map +1 -0
  524. package/node_modules/discord-api-types/payloads/v10/voice.js +6 -0
  525. package/node_modules/discord-api-types/payloads/v10/voice.js.map +1 -0
  526. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts +190 -0
  527. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts.map +1 -0
  528. package/node_modules/discord-api-types/payloads/v10/webhook.js +69 -0
  529. package/node_modules/discord-api-types/payloads/v10/webhook.js.map +1 -0
  530. package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts +469 -0
  531. package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts.map +1 -0
  532. package/node_modules/discord-api-types/payloads/v6/auditLog.js +58 -0
  533. package/node_modules/discord-api-types/payloads/v6/auditLog.js.map +1 -0
  534. package/node_modules/discord-api-types/payloads/v6/channel.d.ts +339 -0
  535. package/node_modules/discord-api-types/payloads/v6/channel.d.ts.map +1 -0
  536. package/node_modules/discord-api-types/payloads/v6/channel.js +94 -0
  537. package/node_modules/discord-api-types/payloads/v6/channel.js.map +1 -0
  538. package/node_modules/discord-api-types/payloads/v6/emoji.d.ts +27 -0
  539. package/node_modules/discord-api-types/payloads/v6/emoji.d.ts.map +1 -0
  540. package/node_modules/discord-api-types/payloads/v6/emoji.js +6 -0
  541. package/node_modules/discord-api-types/payloads/v6/emoji.js.map +1 -0
  542. package/node_modules/discord-api-types/payloads/v6/gateway.d.ts +149 -0
  543. package/node_modules/discord-api-types/payloads/v6/gateway.d.ts.map +1 -0
  544. package/node_modules/discord-api-types/payloads/v6/gateway.js +45 -0
  545. package/node_modules/discord-api-types/payloads/v6/gateway.js.map +1 -0
  546. package/node_modules/discord-api-types/payloads/v6/guild.d.ts +310 -0
  547. package/node_modules/discord-api-types/payloads/v6/guild.d.ts.map +1 -0
  548. package/node_modules/discord-api-types/payloads/v6/guild.js +118 -0
  549. package/node_modules/discord-api-types/payloads/v6/guild.js.map +1 -0
  550. package/node_modules/discord-api-types/payloads/v6/index.d.ts +13 -0
  551. package/node_modules/discord-api-types/payloads/v6/index.d.ts.map +1 -0
  552. package/node_modules/discord-api-types/payloads/v6/index.js +29 -0
  553. package/node_modules/discord-api-types/payloads/v6/index.js.map +1 -0
  554. package/node_modules/discord-api-types/payloads/v6/index.mjs +30 -0
  555. package/node_modules/discord-api-types/payloads/v6/invite.d.ts +42 -0
  556. package/node_modules/discord-api-types/payloads/v6/invite.d.ts.map +1 -0
  557. package/node_modules/discord-api-types/payloads/v6/invite.js +16 -0
  558. package/node_modules/discord-api-types/payloads/v6/invite.js.map +1 -0
  559. package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts +28 -0
  560. package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts.map +1 -0
  561. package/node_modules/discord-api-types/payloads/v6/oauth2.js +6 -0
  562. package/node_modules/discord-api-types/payloads/v6/oauth2.js.map +1 -0
  563. package/node_modules/discord-api-types/payloads/v6/permissions.d.ts +75 -0
  564. package/node_modules/discord-api-types/payloads/v6/permissions.d.ts.map +1 -0
  565. package/node_modules/discord-api-types/payloads/v6/permissions.js +56 -0
  566. package/node_modules/discord-api-types/payloads/v6/permissions.js.map +1 -0
  567. package/node_modules/discord-api-types/payloads/v6/teams.d.ts +36 -0
  568. package/node_modules/discord-api-types/payloads/v6/teams.d.ts.map +1 -0
  569. package/node_modules/discord-api-types/payloads/v6/teams.js +17 -0
  570. package/node_modules/discord-api-types/payloads/v6/teams.js.map +1 -0
  571. package/node_modules/discord-api-types/payloads/v6/user.d.ts +79 -0
  572. package/node_modules/discord-api-types/payloads/v6/user.d.ts.map +1 -0
  573. package/node_modules/discord-api-types/payloads/v6/user.js +48 -0
  574. package/node_modules/discord-api-types/payloads/v6/user.js.map +1 -0
  575. package/node_modules/discord-api-types/payloads/v6/voice.d.ts +37 -0
  576. package/node_modules/discord-api-types/payloads/v6/voice.d.ts.map +1 -0
  577. package/node_modules/discord-api-types/payloads/v6/voice.js +6 -0
  578. package/node_modules/discord-api-types/payloads/v6/voice.js.map +1 -0
  579. package/node_modules/discord-api-types/payloads/v6/webhook.d.ts +32 -0
  580. package/node_modules/discord-api-types/payloads/v6/webhook.d.ts.map +1 -0
  581. package/node_modules/discord-api-types/payloads/v6/webhook.js +15 -0
  582. package/node_modules/discord-api-types/payloads/v6/webhook.js.map +1 -0
  583. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts +12 -0
  584. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  585. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  586. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  587. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts +28 -0
  588. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  589. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  590. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  591. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts +11 -0
  592. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  593. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  594. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  595. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts +15 -0
  596. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  597. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  598. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  599. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts +27 -0
  600. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  601. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  602. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  603. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +12 -0
  604. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  605. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  606. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  607. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts +27 -0
  608. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  609. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  610. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  611. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts +12 -0
  612. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  613. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  614. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  615. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts +28 -0
  616. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  617. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js +23 -0
  618. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  619. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts +13 -0
  620. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  621. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  622. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  623. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +18 -0
  624. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  625. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  626. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  627. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +18 -0
  628. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  629. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  630. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  631. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts +12 -0
  632. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  633. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  634. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  635. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts +90 -0
  636. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  637. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js +29 -0
  638. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js.map +1 -0
  639. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts +102 -0
  640. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  641. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js +3 -0
  642. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  643. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts +11 -0
  644. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  645. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js +3 -0
  646. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js.map +1 -0
  647. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts +53 -0
  648. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  649. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js +14 -0
  650. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js.map +1 -0
  651. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts +112 -0
  652. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts.map +1 -0
  653. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js +32 -0
  654. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js.map +1 -0
  655. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts +18 -0
  656. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts.map +1 -0
  657. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js +3 -0
  658. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js.map +1 -0
  659. package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts +116 -0
  660. package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts.map +1 -0
  661. package/node_modules/discord-api-types/payloads/v8/_interactions/base.js +3 -0
  662. package/node_modules/discord-api-types/payloads/v8/_interactions/base.js.map +1 -0
  663. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts +43 -0
  664. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts.map +1 -0
  665. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js +3 -0
  666. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js.map +1 -0
  667. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts +48 -0
  668. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts.map +1 -0
  669. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js +3 -0
  670. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js.map +1 -0
  671. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts +7 -0
  672. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts.map +1 -0
  673. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js +3 -0
  674. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js.map +1 -0
  675. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts +138 -0
  676. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts.map +1 -0
  677. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js +53 -0
  678. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js.map +1 -0
  679. package/node_modules/discord-api-types/payloads/v8/application.d.ts +134 -0
  680. package/node_modules/discord-api-types/payloads/v8/application.d.ts.map +1 -0
  681. package/node_modules/discord-api-types/payloads/v8/application.js +28 -0
  682. package/node_modules/discord-api-types/payloads/v8/application.js.map +1 -0
  683. package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts +637 -0
  684. package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts.map +1 -0
  685. package/node_modules/discord-api-types/payloads/v8/auditLog.js +67 -0
  686. package/node_modules/discord-api-types/payloads/v8/auditLog.js.map +1 -0
  687. package/node_modules/discord-api-types/payloads/v8/channel.d.ts +1268 -0
  688. package/node_modules/discord-api-types/payloads/v8/channel.d.ts.map +1 -0
  689. package/node_modules/discord-api-types/payloads/v8/channel.js +253 -0
  690. package/node_modules/discord-api-types/payloads/v8/channel.js.map +1 -0
  691. package/node_modules/discord-api-types/payloads/v8/emoji.d.ts +53 -0
  692. package/node_modules/discord-api-types/payloads/v8/emoji.d.ts.map +1 -0
  693. package/node_modules/discord-api-types/payloads/v8/emoji.js +6 -0
  694. package/node_modules/discord-api-types/payloads/v8/emoji.js.map +1 -0
  695. package/node_modules/discord-api-types/payloads/v8/gateway.d.ts +332 -0
  696. package/node_modules/discord-api-types/payloads/v8/gateway.d.ts.map +1 -0
  697. package/node_modules/discord-api-types/payloads/v8/gateway.js +79 -0
  698. package/node_modules/discord-api-types/payloads/v8/gateway.js.map +1 -0
  699. package/node_modules/discord-api-types/payloads/v8/guild.d.ts +1001 -0
  700. package/node_modules/discord-api-types/payloads/v8/guild.d.ts.map +1 -0
  701. package/node_modules/discord-api-types/payloads/v8/guild.js +264 -0
  702. package/node_modules/discord-api-types/payloads/v8/guild.js.map +1 -0
  703. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts +163 -0
  704. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts.map +1 -0
  705. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js +39 -0
  706. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js.map +1 -0
  707. package/node_modules/discord-api-types/payloads/v8/index.d.ts +20 -0
  708. package/node_modules/discord-api-types/payloads/v8/index.d.ts.map +1 -0
  709. package/node_modules/discord-api-types/payloads/v8/index.js +36 -0
  710. package/node_modules/discord-api-types/payloads/v8/index.js.map +1 -0
  711. package/node_modules/discord-api-types/payloads/v8/index.mjs +51 -0
  712. package/node_modules/discord-api-types/payloads/v8/interactions.d.ts +31 -0
  713. package/node_modules/discord-api-types/payloads/v8/interactions.d.ts.map +1 -0
  714. package/node_modules/discord-api-types/payloads/v8/interactions.js +24 -0
  715. package/node_modules/discord-api-types/payloads/v8/interactions.js.map +1 -0
  716. package/node_modules/discord-api-types/payloads/v8/invite.d.ts +114 -0
  717. package/node_modules/discord-api-types/payloads/v8/invite.d.ts.map +1 -0
  718. package/node_modules/discord-api-types/payloads/v8/invite.js +17 -0
  719. package/node_modules/discord-api-types/payloads/v8/invite.js.map +1 -0
  720. package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts +117 -0
  721. package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts.map +1 -0
  722. package/node_modules/discord-api-types/payloads/v8/oauth2.js +121 -0
  723. package/node_modules/discord-api-types/payloads/v8/oauth2.js.map +1 -0
  724. package/node_modules/discord-api-types/payloads/v8/permissions.d.ts +77 -0
  725. package/node_modules/discord-api-types/payloads/v8/permissions.d.ts.map +1 -0
  726. package/node_modules/discord-api-types/payloads/v8/permissions.js +6 -0
  727. package/node_modules/discord-api-types/payloads/v8/permissions.js.map +1 -0
  728. package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts +76 -0
  729. package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts.map +1 -0
  730. package/node_modules/discord-api-types/payloads/v8/stageInstance.js +20 -0
  731. package/node_modules/discord-api-types/payloads/v8/stageInstance.js.map +1 -0
  732. package/node_modules/discord-api-types/payloads/v8/sticker.d.ts +133 -0
  733. package/node_modules/discord-api-types/payloads/v8/sticker.d.ts.map +1 -0
  734. package/node_modules/discord-api-types/payloads/v8/sticker.js +34 -0
  735. package/node_modules/discord-api-types/payloads/v8/sticker.js.map +1 -0
  736. package/node_modules/discord-api-types/payloads/v8/teams.d.ts +69 -0
  737. package/node_modules/discord-api-types/payloads/v8/teams.d.ts.map +1 -0
  738. package/node_modules/discord-api-types/payloads/v8/teams.js +17 -0
  739. package/node_modules/discord-api-types/payloads/v8/teams.js.map +1 -0
  740. package/node_modules/discord-api-types/payloads/v8/template.d.ts +68 -0
  741. package/node_modules/discord-api-types/payloads/v8/template.d.ts.map +1 -0
  742. package/node_modules/discord-api-types/payloads/v8/template.js +6 -0
  743. package/node_modules/discord-api-types/payloads/v8/template.js.map +1 -0
  744. package/node_modules/discord-api-types/payloads/v8/user.d.ts +228 -0
  745. package/node_modules/discord-api-types/payloads/v8/user.d.ts.map +1 -0
  746. package/node_modules/discord-api-types/payloads/v8/user.js +108 -0
  747. package/node_modules/discord-api-types/payloads/v8/user.js.map +1 -0
  748. package/node_modules/discord-api-types/payloads/v8/voice.d.ts +94 -0
  749. package/node_modules/discord-api-types/payloads/v8/voice.d.ts.map +1 -0
  750. package/node_modules/discord-api-types/payloads/v8/voice.js +6 -0
  751. package/node_modules/discord-api-types/payloads/v8/voice.js.map +1 -0
  752. package/node_modules/discord-api-types/payloads/v8/webhook.d.ts +82 -0
  753. package/node_modules/discord-api-types/payloads/v8/webhook.d.ts.map +1 -0
  754. package/node_modules/discord-api-types/payloads/v8/webhook.js +25 -0
  755. package/node_modules/discord-api-types/payloads/v8/webhook.js.map +1 -0
  756. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
  757. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  758. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  759. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  760. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
  761. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  762. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  763. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  764. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
  765. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  766. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  767. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  768. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
  769. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  770. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  771. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  772. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
  773. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  774. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  775. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  776. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
  777. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  778. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  779. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  780. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
  781. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  782. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  783. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  784. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
  785. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  786. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  787. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  788. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
  789. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  790. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
  791. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  792. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
  793. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  794. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  795. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  796. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
  797. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  798. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  799. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  800. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
  801. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  802. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  803. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  804. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
  805. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  806. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  807. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  808. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts +68 -0
  809. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  810. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js +18 -0
  811. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js.map +1 -0
  812. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
  813. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  814. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js +3 -0
  815. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  816. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
  817. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
  818. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js +3 -0
  819. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js.map +1 -0
  820. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts +9 -0
  821. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  822. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js +3 -0
  823. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js.map +1 -0
  824. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts +55 -0
  825. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  826. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js +21 -0
  827. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js.map +1 -0
  828. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts +192 -0
  829. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts.map +1 -0
  830. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js +89 -0
  831. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js.map +1 -0
  832. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts +11 -0
  833. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts.map +1 -0
  834. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js +3 -0
  835. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js.map +1 -0
  836. package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts +233 -0
  837. package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts.map +1 -0
  838. package/node_modules/discord-api-types/payloads/v9/_interactions/base.js +3 -0
  839. package/node_modules/discord-api-types/payloads/v9/_interactions/base.js.map +1 -0
  840. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts +42 -0
  841. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts.map +1 -0
  842. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js +3 -0
  843. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js.map +1 -0
  844. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts +77 -0
  845. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts.map +1 -0
  846. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js +3 -0
  847. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js.map +1 -0
  848. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts +4 -0
  849. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts.map +1 -0
  850. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js +3 -0
  851. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js.map +1 -0
  852. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts +124 -0
  853. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts.map +1 -0
  854. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js +63 -0
  855. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js.map +1 -0
  856. package/node_modules/discord-api-types/payloads/v9/application.d.ts +387 -0
  857. package/node_modules/discord-api-types/payloads/v9/application.d.ts.map +1 -0
  858. package/node_modules/discord-api-types/payloads/v9/application.js +152 -0
  859. package/node_modules/discord-api-types/payloads/v9/application.js.map +1 -0
  860. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts +694 -0
  861. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts.map +1 -0
  862. package/node_modules/discord-api-types/payloads/v9/auditLog.js +85 -0
  863. package/node_modules/discord-api-types/payloads/v9/auditLog.js.map +1 -0
  864. package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts +222 -0
  865. package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts.map +1 -0
  866. package/node_modules/discord-api-types/payloads/v9/autoModeration.js +88 -0
  867. package/node_modules/discord-api-types/payloads/v9/autoModeration.js.map +1 -0
  868. package/node_modules/discord-api-types/payloads/v9/channel.d.ts +656 -0
  869. package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -0
  870. package/node_modules/discord-api-types/payloads/v9/channel.js +219 -0
  871. package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -0
  872. package/node_modules/discord-api-types/payloads/v9/emoji.d.ts +79 -0
  873. package/node_modules/discord-api-types/payloads/v9/emoji.d.ts.map +1 -0
  874. package/node_modules/discord-api-types/payloads/v9/emoji.js +6 -0
  875. package/node_modules/discord-api-types/payloads/v9/emoji.js.map +1 -0
  876. package/node_modules/discord-api-types/payloads/v9/gateway.d.ts +444 -0
  877. package/node_modules/discord-api-types/payloads/v9/gateway.d.ts.map +1 -0
  878. package/node_modules/discord-api-types/payloads/v9/gateway.js +103 -0
  879. package/node_modules/discord-api-types/payloads/v9/gateway.js.map +1 -0
  880. package/node_modules/discord-api-types/payloads/v9/guild.d.ts +1215 -0
  881. package/node_modules/discord-api-types/payloads/v9/guild.d.ts.map +1 -0
  882. package/node_modules/discord-api-types/payloads/v9/guild.js +395 -0
  883. package/node_modules/discord-api-types/payloads/v9/guild.js.map +1 -0
  884. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts +244 -0
  885. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts.map +1 -0
  886. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js +74 -0
  887. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js.map +1 -0
  888. package/node_modules/discord-api-types/payloads/v9/index.d.ts +25 -0
  889. package/node_modules/discord-api-types/payloads/v9/index.d.ts.map +1 -0
  890. package/node_modules/discord-api-types/payloads/v9/index.js +37 -0
  891. package/node_modules/discord-api-types/payloads/v9/index.js.map +1 -0
  892. package/node_modules/discord-api-types/payloads/v9/index.mjs +101 -0
  893. package/node_modules/discord-api-types/payloads/v9/interactions.d.ts +25 -0
  894. package/node_modules/discord-api-types/payloads/v9/interactions.d.ts.map +1 -0
  895. package/node_modules/discord-api-types/payloads/v9/interactions.js +19 -0
  896. package/node_modules/discord-api-types/payloads/v9/interactions.js.map +1 -0
  897. package/node_modules/discord-api-types/payloads/v9/invite.d.ts +132 -0
  898. package/node_modules/discord-api-types/payloads/v9/invite.d.ts.map +1 -0
  899. package/node_modules/discord-api-types/payloads/v9/invite.js +31 -0
  900. package/node_modules/discord-api-types/payloads/v9/invite.js.map +1 -0
  901. package/node_modules/discord-api-types/payloads/v9/message.d.ts +2151 -0
  902. package/node_modules/discord-api-types/payloads/v9/message.d.ts.map +1 -0
  903. package/node_modules/discord-api-types/payloads/v9/message.js +590 -0
  904. package/node_modules/discord-api-types/payloads/v9/message.js.map +1 -0
  905. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts +216 -0
  906. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts.map +1 -0
  907. package/node_modules/discord-api-types/payloads/v9/monetization.js +101 -0
  908. package/node_modules/discord-api-types/payloads/v9/monetization.js.map +1 -0
  909. package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts +132 -0
  910. package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts.map +1 -0
  911. package/node_modules/discord-api-types/payloads/v9/oauth2.js +136 -0
  912. package/node_modules/discord-api-types/payloads/v9/oauth2.js.map +1 -0
  913. package/node_modules/discord-api-types/payloads/v9/permissions.d.ts +124 -0
  914. package/node_modules/discord-api-types/payloads/v9/permissions.d.ts.map +1 -0
  915. package/node_modules/discord-api-types/payloads/v9/permissions.js +17 -0
  916. package/node_modules/discord-api-types/payloads/v9/permissions.js.map +1 -0
  917. package/node_modules/discord-api-types/payloads/v9/poll.d.ts +111 -0
  918. package/node_modules/discord-api-types/payloads/v9/poll.d.ts.map +1 -0
  919. package/node_modules/discord-api-types/payloads/v9/poll.js +17 -0
  920. package/node_modules/discord-api-types/payloads/v9/poll.js.map +1 -0
  921. package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts +43 -0
  922. package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts.map +1 -0
  923. package/node_modules/discord-api-types/payloads/v9/soundboard.js +6 -0
  924. package/node_modules/discord-api-types/payloads/v9/soundboard.js.map +1 -0
  925. package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts +82 -0
  926. package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts.map +1 -0
  927. package/node_modules/discord-api-types/payloads/v9/stageInstance.js +21 -0
  928. package/node_modules/discord-api-types/payloads/v9/stageInstance.js.map +1 -0
  929. package/node_modules/discord-api-types/payloads/v9/sticker.d.ts +125 -0
  930. package/node_modules/discord-api-types/payloads/v9/sticker.d.ts.map +1 -0
  931. package/node_modules/discord-api-types/payloads/v9/sticker.js +31 -0
  932. package/node_modules/discord-api-types/payloads/v9/sticker.js.map +1 -0
  933. package/node_modules/discord-api-types/payloads/v9/teams.d.ts +79 -0
  934. package/node_modules/discord-api-types/payloads/v9/teams.d.ts.map +1 -0
  935. package/node_modules/discord-api-types/payloads/v9/teams.js +24 -0
  936. package/node_modules/discord-api-types/payloads/v9/teams.js.map +1 -0
  937. package/node_modules/discord-api-types/payloads/v9/template.d.ts +64 -0
  938. package/node_modules/discord-api-types/payloads/v9/template.d.ts.map +1 -0
  939. package/node_modules/discord-api-types/payloads/v9/template.js +6 -0
  940. package/node_modules/discord-api-types/payloads/v9/template.js.map +1 -0
  941. package/node_modules/discord-api-types/payloads/v9/user.d.ts +430 -0
  942. package/node_modules/discord-api-types/payloads/v9/user.d.ts.map +1 -0
  943. package/node_modules/discord-api-types/payloads/v9/user.js +191 -0
  944. package/node_modules/discord-api-types/payloads/v9/user.js.map +1 -0
  945. package/node_modules/discord-api-types/payloads/v9/voice.d.ts +98 -0
  946. package/node_modules/discord-api-types/payloads/v9/voice.d.ts.map +1 -0
  947. package/node_modules/discord-api-types/payloads/v9/voice.js +6 -0
  948. package/node_modules/discord-api-types/payloads/v9/voice.js.map +1 -0
  949. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts +190 -0
  950. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts.map +1 -0
  951. package/node_modules/discord-api-types/payloads/v9/webhook.js +69 -0
  952. package/node_modules/discord-api-types/payloads/v9/webhook.js.map +1 -0
  953. package/node_modules/discord-api-types/rest/common.d.ts +307 -0
  954. package/node_modules/discord-api-types/rest/common.d.ts.map +1 -0
  955. package/node_modules/discord-api-types/rest/common.js +311 -0
  956. package/node_modules/discord-api-types/rest/common.js.map +1 -0
  957. package/node_modules/discord-api-types/rest/index.d.ts +2 -0
  958. package/node_modules/discord-api-types/rest/index.d.ts.map +1 -0
  959. package/node_modules/discord-api-types/rest/index.js +20 -0
  960. package/node_modules/discord-api-types/rest/index.js.map +1 -0
  961. package/node_modules/discord-api-types/rest/index.mjs +15 -0
  962. package/node_modules/discord-api-types/rest/v10/application.d.ts +31 -0
  963. package/node_modules/discord-api-types/rest/v10/application.d.ts.map +1 -0
  964. package/node_modules/discord-api-types/rest/v10/application.js +3 -0
  965. package/node_modules/discord-api-types/rest/v10/application.js.map +1 -0
  966. package/node_modules/discord-api-types/rest/v10/auditLog.d.ts +31 -0
  967. package/node_modules/discord-api-types/rest/v10/auditLog.d.ts.map +1 -0
  968. package/node_modules/discord-api-types/rest/v10/auditLog.js +3 -0
  969. package/node_modules/discord-api-types/rest/v10/auditLog.js.map +1 -0
  970. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts +68 -0
  971. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts.map +1 -0
  972. package/node_modules/discord-api-types/rest/v10/autoModeration.js +3 -0
  973. package/node_modules/discord-api-types/rest/v10/autoModeration.js.map +1 -0
  974. package/node_modules/discord-api-types/rest/v10/channel.d.ts +764 -0
  975. package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -0
  976. package/node_modules/discord-api-types/rest/v10/channel.js +18 -0
  977. package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -0
  978. package/node_modules/discord-api-types/rest/v10/emoji.d.ts +85 -0
  979. package/node_modules/discord-api-types/rest/v10/emoji.d.ts.map +1 -0
  980. package/node_modules/discord-api-types/rest/v10/emoji.js +3 -0
  981. package/node_modules/discord-api-types/rest/v10/emoji.js.map +1 -0
  982. package/node_modules/discord-api-types/rest/v10/gateway.d.ts +10 -0
  983. package/node_modules/discord-api-types/rest/v10/gateway.d.ts.map +1 -0
  984. package/node_modules/discord-api-types/rest/v10/gateway.js +3 -0
  985. package/node_modules/discord-api-types/rest/v10/gateway.js.map +1 -0
  986. package/node_modules/discord-api-types/rest/v10/guild.d.ts +1062 -0
  987. package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -0
  988. package/node_modules/discord-api-types/rest/v10/guild.js +3 -0
  989. package/node_modules/discord-api-types/rest/v10/guild.js.map +1 -0
  990. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts +124 -0
  991. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts.map +1 -0
  992. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js +3 -0
  993. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js.map +1 -0
  994. package/node_modules/discord-api-types/rest/v10/index.d.ts +87 -0
  995. package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -0
  996. package/node_modules/discord-api-types/rest/v10/index.js +1286 -0
  997. package/node_modules/discord-api-types/rest/v10/index.js.map +1 -0
  998. package/node_modules/discord-api-types/rest/v10/index.mjs +15 -0
  999. package/node_modules/discord-api-types/rest/v10/interactions.d.ts +290 -0
  1000. package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -0
  1001. package/node_modules/discord-api-types/rest/v10/interactions.js +3 -0
  1002. package/node_modules/discord-api-types/rest/v10/interactions.js.map +1 -0
  1003. package/node_modules/discord-api-types/rest/v10/invite.d.ts +28 -0
  1004. package/node_modules/discord-api-types/rest/v10/invite.d.ts.map +1 -0
  1005. package/node_modules/discord-api-types/rest/v10/invite.js +3 -0
  1006. package/node_modules/discord-api-types/rest/v10/invite.js.map +1 -0
  1007. package/node_modules/discord-api-types/rest/v10/monetization.d.ts +130 -0
  1008. package/node_modules/discord-api-types/rest/v10/monetization.d.ts.map +1 -0
  1009. package/node_modules/discord-api-types/rest/v10/monetization.js +12 -0
  1010. package/node_modules/discord-api-types/rest/v10/monetization.js.map +1 -0
  1011. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts +193 -0
  1012. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts.map +1 -0
  1013. package/node_modules/discord-api-types/rest/v10/oauth2.js +3 -0
  1014. package/node_modules/discord-api-types/rest/v10/oauth2.js.map +1 -0
  1015. package/node_modules/discord-api-types/rest/v10/poll.d.ts +50 -0
  1016. package/node_modules/discord-api-types/rest/v10/poll.d.ts.map +1 -0
  1017. package/node_modules/discord-api-types/rest/v10/poll.js +3 -0
  1018. package/node_modules/discord-api-types/rest/v10/poll.js.map +1 -0
  1019. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts +98 -0
  1020. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts.map +1 -0
  1021. package/node_modules/discord-api-types/rest/v10/soundboard.js +3 -0
  1022. package/node_modules/discord-api-types/rest/v10/soundboard.js.map +1 -0
  1023. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts +59 -0
  1024. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts.map +1 -0
  1025. package/node_modules/discord-api-types/rest/v10/stageInstance.js +3 -0
  1026. package/node_modules/discord-api-types/rest/v10/stageInstance.js.map +1 -0
  1027. package/node_modules/discord-api-types/rest/v10/sticker.d.ts +85 -0
  1028. package/node_modules/discord-api-types/rest/v10/sticker.d.ts.map +1 -0
  1029. package/node_modules/discord-api-types/rest/v10/sticker.js +3 -0
  1030. package/node_modules/discord-api-types/rest/v10/sticker.js.map +1 -0
  1031. package/node_modules/discord-api-types/rest/v10/template.d.ts +65 -0
  1032. package/node_modules/discord-api-types/rest/v10/template.d.ts.map +1 -0
  1033. package/node_modules/discord-api-types/rest/v10/template.js +3 -0
  1034. package/node_modules/discord-api-types/rest/v10/template.js.map +1 -0
  1035. package/node_modules/discord-api-types/rest/v10/user.d.ts +122 -0
  1036. package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -0
  1037. package/node_modules/discord-api-types/rest/v10/user.js +3 -0
  1038. package/node_modules/discord-api-types/rest/v10/user.js.map +1 -0
  1039. package/node_modules/discord-api-types/rest/v10/voice.d.ts +57 -0
  1040. package/node_modules/discord-api-types/rest/v10/voice.d.ts.map +1 -0
  1041. package/node_modules/discord-api-types/rest/v10/voice.js +3 -0
  1042. package/node_modules/discord-api-types/rest/v10/voice.js.map +1 -0
  1043. package/node_modules/discord-api-types/rest/v10/webhook.d.ts +275 -0
  1044. package/node_modules/discord-api-types/rest/v10/webhook.d.ts.map +1 -0
  1045. package/node_modules/discord-api-types/rest/v10/webhook.js +3 -0
  1046. package/node_modules/discord-api-types/rest/v10/webhook.js.map +1 -0
  1047. package/node_modules/discord-api-types/rest/v6/auditLog.d.ts +17 -0
  1048. package/node_modules/discord-api-types/rest/v6/auditLog.d.ts.map +1 -0
  1049. package/node_modules/discord-api-types/rest/v6/auditLog.js +3 -0
  1050. package/node_modules/discord-api-types/rest/v6/auditLog.js.map +1 -0
  1051. package/node_modules/discord-api-types/rest/v6/channel.d.ts +268 -0
  1052. package/node_modules/discord-api-types/rest/v6/channel.d.ts.map +1 -0
  1053. package/node_modules/discord-api-types/rest/v6/channel.js +15 -0
  1054. package/node_modules/discord-api-types/rest/v6/channel.js.map +1 -0
  1055. package/node_modules/discord-api-types/rest/v6/emoji.d.ts +50 -0
  1056. package/node_modules/discord-api-types/rest/v6/emoji.d.ts.map +1 -0
  1057. package/node_modules/discord-api-types/rest/v6/emoji.js +3 -0
  1058. package/node_modules/discord-api-types/rest/v6/emoji.js.map +1 -0
  1059. package/node_modules/discord-api-types/rest/v6/gateway.d.ts +14 -0
  1060. package/node_modules/discord-api-types/rest/v6/gateway.d.ts.map +1 -0
  1061. package/node_modules/discord-api-types/rest/v6/gateway.js +3 -0
  1062. package/node_modules/discord-api-types/rest/v6/gateway.js.map +1 -0
  1063. package/node_modules/discord-api-types/rest/v6/guild.d.ts +465 -0
  1064. package/node_modules/discord-api-types/rest/v6/guild.d.ts.map +1 -0
  1065. package/node_modules/discord-api-types/rest/v6/guild.js +3 -0
  1066. package/node_modules/discord-api-types/rest/v6/guild.js.map +1 -0
  1067. package/node_modules/discord-api-types/rest/v6/index.d.ts +348 -0
  1068. package/node_modules/discord-api-types/rest/v6/index.d.ts.map +1 -0
  1069. package/node_modules/discord-api-types/rest/v6/index.js +499 -0
  1070. package/node_modules/discord-api-types/rest/v6/index.js.map +1 -0
  1071. package/node_modules/discord-api-types/rest/v6/index.mjs +9 -0
  1072. package/node_modules/discord-api-types/rest/v6/invite.d.ts +20 -0
  1073. package/node_modules/discord-api-types/rest/v6/invite.d.ts.map +1 -0
  1074. package/node_modules/discord-api-types/rest/v6/invite.js +3 -0
  1075. package/node_modules/discord-api-types/rest/v6/invite.js.map +1 -0
  1076. package/node_modules/discord-api-types/rest/v6/oauth2.d.ts +177 -0
  1077. package/node_modules/discord-api-types/rest/v6/oauth2.d.ts.map +1 -0
  1078. package/node_modules/discord-api-types/rest/v6/oauth2.js +3 -0
  1079. package/node_modules/discord-api-types/rest/v6/oauth2.js.map +1 -0
  1080. package/node_modules/discord-api-types/rest/v6/user.d.ts +80 -0
  1081. package/node_modules/discord-api-types/rest/v6/user.d.ts.map +1 -0
  1082. package/node_modules/discord-api-types/rest/v6/user.js +3 -0
  1083. package/node_modules/discord-api-types/rest/v6/user.js.map +1 -0
  1084. package/node_modules/discord-api-types/rest/v6/voice.d.ts +8 -0
  1085. package/node_modules/discord-api-types/rest/v6/voice.d.ts.map +1 -0
  1086. package/node_modules/discord-api-types/rest/v6/voice.js +3 -0
  1087. package/node_modules/discord-api-types/rest/v6/voice.js.map +1 -0
  1088. package/node_modules/discord-api-types/rest/v6/webhook.d.ts +139 -0
  1089. package/node_modules/discord-api-types/rest/v6/webhook.d.ts.map +1 -0
  1090. package/node_modules/discord-api-types/rest/v6/webhook.js +3 -0
  1091. package/node_modules/discord-api-types/rest/v6/webhook.js.map +1 -0
  1092. package/node_modules/discord-api-types/rest/v8/auditLog.d.ts +32 -0
  1093. package/node_modules/discord-api-types/rest/v8/auditLog.d.ts.map +1 -0
  1094. package/node_modules/discord-api-types/rest/v8/auditLog.js +3 -0
  1095. package/node_modules/discord-api-types/rest/v8/auditLog.js.map +1 -0
  1096. package/node_modules/discord-api-types/rest/v8/channel.d.ts +564 -0
  1097. package/node_modules/discord-api-types/rest/v8/channel.d.ts.map +1 -0
  1098. package/node_modules/discord-api-types/rest/v8/channel.js +3 -0
  1099. package/node_modules/discord-api-types/rest/v8/channel.js.map +1 -0
  1100. package/node_modules/discord-api-types/rest/v8/emoji.d.ts +69 -0
  1101. package/node_modules/discord-api-types/rest/v8/emoji.d.ts.map +1 -0
  1102. package/node_modules/discord-api-types/rest/v8/emoji.js +3 -0
  1103. package/node_modules/discord-api-types/rest/v8/emoji.js.map +1 -0
  1104. package/node_modules/discord-api-types/rest/v8/gateway.d.ts +14 -0
  1105. package/node_modules/discord-api-types/rest/v8/gateway.d.ts.map +1 -0
  1106. package/node_modules/discord-api-types/rest/v8/gateway.js +3 -0
  1107. package/node_modules/discord-api-types/rest/v8/gateway.js.map +1 -0
  1108. package/node_modules/discord-api-types/rest/v8/guild.d.ts +882 -0
  1109. package/node_modules/discord-api-types/rest/v8/guild.d.ts.map +1 -0
  1110. package/node_modules/discord-api-types/rest/v8/guild.js +3 -0
  1111. package/node_modules/discord-api-types/rest/v8/guild.js.map +1 -0
  1112. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts +141 -0
  1113. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts.map +1 -0
  1114. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js +3 -0
  1115. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js.map +1 -0
  1116. package/node_modules/discord-api-types/rest/v8/index.d.ts +539 -0
  1117. package/node_modules/discord-api-types/rest/v8/index.d.ts.map +1 -0
  1118. package/node_modules/discord-api-types/rest/v8/index.js +747 -0
  1119. package/node_modules/discord-api-types/rest/v8/index.js.map +1 -0
  1120. package/node_modules/discord-api-types/rest/v8/index.mjs +10 -0
  1121. package/node_modules/discord-api-types/rest/v8/interactions.d.ts +257 -0
  1122. package/node_modules/discord-api-types/rest/v8/interactions.d.ts.map +1 -0
  1123. package/node_modules/discord-api-types/rest/v8/interactions.js +3 -0
  1124. package/node_modules/discord-api-types/rest/v8/interactions.js.map +1 -0
  1125. package/node_modules/discord-api-types/rest/v8/invite.d.ts +32 -0
  1126. package/node_modules/discord-api-types/rest/v8/invite.d.ts.map +1 -0
  1127. package/node_modules/discord-api-types/rest/v8/invite.js +3 -0
  1128. package/node_modules/discord-api-types/rest/v8/invite.js.map +1 -0
  1129. package/node_modules/discord-api-types/rest/v8/oauth2.d.ts +213 -0
  1130. package/node_modules/discord-api-types/rest/v8/oauth2.d.ts.map +1 -0
  1131. package/node_modules/discord-api-types/rest/v8/oauth2.js +3 -0
  1132. package/node_modules/discord-api-types/rest/v8/oauth2.js.map +1 -0
  1133. package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts +63 -0
  1134. package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts.map +1 -0
  1135. package/node_modules/discord-api-types/rest/v8/stageInstance.js +3 -0
  1136. package/node_modules/discord-api-types/rest/v8/stageInstance.js.map +1 -0
  1137. package/node_modules/discord-api-types/rest/v8/sticker.d.ts +70 -0
  1138. package/node_modules/discord-api-types/rest/v8/sticker.d.ts.map +1 -0
  1139. package/node_modules/discord-api-types/rest/v8/sticker.js +3 -0
  1140. package/node_modules/discord-api-types/rest/v8/sticker.js.map +1 -0
  1141. package/node_modules/discord-api-types/rest/v8/template.d.ts +83 -0
  1142. package/node_modules/discord-api-types/rest/v8/template.d.ts.map +1 -0
  1143. package/node_modules/discord-api-types/rest/v8/template.js +3 -0
  1144. package/node_modules/discord-api-types/rest/v8/template.js.map +1 -0
  1145. package/node_modules/discord-api-types/rest/v8/user.d.ts +109 -0
  1146. package/node_modules/discord-api-types/rest/v8/user.d.ts.map +1 -0
  1147. package/node_modules/discord-api-types/rest/v8/user.js +3 -0
  1148. package/node_modules/discord-api-types/rest/v8/user.js.map +1 -0
  1149. package/node_modules/discord-api-types/rest/v8/voice.d.ts +8 -0
  1150. package/node_modules/discord-api-types/rest/v8/voice.d.ts.map +1 -0
  1151. package/node_modules/discord-api-types/rest/v8/voice.js +3 -0
  1152. package/node_modules/discord-api-types/rest/v8/voice.js.map +1 -0
  1153. package/node_modules/discord-api-types/rest/v8/webhook.d.ts +283 -0
  1154. package/node_modules/discord-api-types/rest/v8/webhook.d.ts.map +1 -0
  1155. package/node_modules/discord-api-types/rest/v8/webhook.js +3 -0
  1156. package/node_modules/discord-api-types/rest/v8/webhook.js.map +1 -0
  1157. package/node_modules/discord-api-types/rest/v9/application.d.ts +31 -0
  1158. package/node_modules/discord-api-types/rest/v9/application.d.ts.map +1 -0
  1159. package/node_modules/discord-api-types/rest/v9/application.js +3 -0
  1160. package/node_modules/discord-api-types/rest/v9/application.js.map +1 -0
  1161. package/node_modules/discord-api-types/rest/v9/auditLog.d.ts +31 -0
  1162. package/node_modules/discord-api-types/rest/v9/auditLog.d.ts.map +1 -0
  1163. package/node_modules/discord-api-types/rest/v9/auditLog.js +3 -0
  1164. package/node_modules/discord-api-types/rest/v9/auditLog.js.map +1 -0
  1165. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts +68 -0
  1166. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts.map +1 -0
  1167. package/node_modules/discord-api-types/rest/v9/autoModeration.js +3 -0
  1168. package/node_modules/discord-api-types/rest/v9/autoModeration.js.map +1 -0
  1169. package/node_modules/discord-api-types/rest/v9/channel.d.ts +777 -0
  1170. package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -0
  1171. package/node_modules/discord-api-types/rest/v9/channel.js +18 -0
  1172. package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -0
  1173. package/node_modules/discord-api-types/rest/v9/emoji.d.ts +85 -0
  1174. package/node_modules/discord-api-types/rest/v9/emoji.d.ts.map +1 -0
  1175. package/node_modules/discord-api-types/rest/v9/emoji.js +3 -0
  1176. package/node_modules/discord-api-types/rest/v9/emoji.js.map +1 -0
  1177. package/node_modules/discord-api-types/rest/v9/gateway.d.ts +10 -0
  1178. package/node_modules/discord-api-types/rest/v9/gateway.d.ts.map +1 -0
  1179. package/node_modules/discord-api-types/rest/v9/gateway.js +3 -0
  1180. package/node_modules/discord-api-types/rest/v9/gateway.js.map +1 -0
  1181. package/node_modules/discord-api-types/rest/v9/guild.d.ts +1068 -0
  1182. package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -0
  1183. package/node_modules/discord-api-types/rest/v9/guild.js +3 -0
  1184. package/node_modules/discord-api-types/rest/v9/guild.js.map +1 -0
  1185. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts +124 -0
  1186. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts.map +1 -0
  1187. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js +3 -0
  1188. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js.map +1 -0
  1189. package/node_modules/discord-api-types/rest/v9/index.d.ts +87 -0
  1190. package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -0
  1191. package/node_modules/discord-api-types/rest/v9/index.js +1293 -0
  1192. package/node_modules/discord-api-types/rest/v9/index.js.map +1 -0
  1193. package/node_modules/discord-api-types/rest/v9/index.mjs +15 -0
  1194. package/node_modules/discord-api-types/rest/v9/interactions.d.ts +290 -0
  1195. package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -0
  1196. package/node_modules/discord-api-types/rest/v9/interactions.js +3 -0
  1197. package/node_modules/discord-api-types/rest/v9/interactions.js.map +1 -0
  1198. package/node_modules/discord-api-types/rest/v9/invite.d.ts +28 -0
  1199. package/node_modules/discord-api-types/rest/v9/invite.d.ts.map +1 -0
  1200. package/node_modules/discord-api-types/rest/v9/invite.js +3 -0
  1201. package/node_modules/discord-api-types/rest/v9/invite.js.map +1 -0
  1202. package/node_modules/discord-api-types/rest/v9/monetization.d.ts +130 -0
  1203. package/node_modules/discord-api-types/rest/v9/monetization.d.ts.map +1 -0
  1204. package/node_modules/discord-api-types/rest/v9/monetization.js +12 -0
  1205. package/node_modules/discord-api-types/rest/v9/monetization.js.map +1 -0
  1206. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts +193 -0
  1207. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts.map +1 -0
  1208. package/node_modules/discord-api-types/rest/v9/oauth2.js +3 -0
  1209. package/node_modules/discord-api-types/rest/v9/oauth2.js.map +1 -0
  1210. package/node_modules/discord-api-types/rest/v9/poll.d.ts +50 -0
  1211. package/node_modules/discord-api-types/rest/v9/poll.d.ts.map +1 -0
  1212. package/node_modules/discord-api-types/rest/v9/poll.js +3 -0
  1213. package/node_modules/discord-api-types/rest/v9/poll.js.map +1 -0
  1214. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts +98 -0
  1215. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts.map +1 -0
  1216. package/node_modules/discord-api-types/rest/v9/soundboard.js +3 -0
  1217. package/node_modules/discord-api-types/rest/v9/soundboard.js.map +1 -0
  1218. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts +59 -0
  1219. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts.map +1 -0
  1220. package/node_modules/discord-api-types/rest/v9/stageInstance.js +3 -0
  1221. package/node_modules/discord-api-types/rest/v9/stageInstance.js.map +1 -0
  1222. package/node_modules/discord-api-types/rest/v9/sticker.d.ts +85 -0
  1223. package/node_modules/discord-api-types/rest/v9/sticker.d.ts.map +1 -0
  1224. package/node_modules/discord-api-types/rest/v9/sticker.js +3 -0
  1225. package/node_modules/discord-api-types/rest/v9/sticker.js.map +1 -0
  1226. package/node_modules/discord-api-types/rest/v9/template.d.ts +65 -0
  1227. package/node_modules/discord-api-types/rest/v9/template.d.ts.map +1 -0
  1228. package/node_modules/discord-api-types/rest/v9/template.js +3 -0
  1229. package/node_modules/discord-api-types/rest/v9/template.js.map +1 -0
  1230. package/node_modules/discord-api-types/rest/v9/user.d.ts +122 -0
  1231. package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -0
  1232. package/node_modules/discord-api-types/rest/v9/user.js +3 -0
  1233. package/node_modules/discord-api-types/rest/v9/user.js.map +1 -0
  1234. package/node_modules/discord-api-types/rest/v9/voice.d.ts +57 -0
  1235. package/node_modules/discord-api-types/rest/v9/voice.d.ts.map +1 -0
  1236. package/node_modules/discord-api-types/rest/v9/voice.js +3 -0
  1237. package/node_modules/discord-api-types/rest/v9/voice.js.map +1 -0
  1238. package/node_modules/discord-api-types/rest/v9/webhook.d.ts +275 -0
  1239. package/node_modules/discord-api-types/rest/v9/webhook.d.ts.map +1 -0
  1240. package/node_modules/discord-api-types/rest/v9/webhook.js +3 -0
  1241. package/node_modules/discord-api-types/rest/v9/webhook.js.map +1 -0
  1242. package/node_modules/discord-api-types/rpc/common.d.ts +453 -0
  1243. package/node_modules/discord-api-types/rpc/common.d.ts.map +1 -0
  1244. package/node_modules/discord-api-types/rpc/common.js +240 -0
  1245. package/node_modules/discord-api-types/rpc/common.js.map +1 -0
  1246. package/node_modules/discord-api-types/rpc/index.d.ts +2 -0
  1247. package/node_modules/discord-api-types/rpc/index.d.ts.map +1 -0
  1248. package/node_modules/discord-api-types/rpc/index.js +20 -0
  1249. package/node_modules/discord-api-types/rpc/index.js.map +1 -0
  1250. package/node_modules/discord-api-types/rpc/index.mjs +13 -0
  1251. package/node_modules/discord-api-types/rpc/v10.d.ts +2191 -0
  1252. package/node_modules/discord-api-types/rpc/v10.d.ts.map +1 -0
  1253. package/node_modules/discord-api-types/rpc/v10.js +299 -0
  1254. package/node_modules/discord-api-types/rpc/v10.js.map +1 -0
  1255. package/node_modules/discord-api-types/rpc/v10.mjs +13 -0
  1256. package/node_modules/discord-api-types/rpc/v8.d.ts +39 -0
  1257. package/node_modules/discord-api-types/rpc/v8.d.ts.map +1 -0
  1258. package/node_modules/discord-api-types/rpc/v8.js +18 -0
  1259. package/node_modules/discord-api-types/rpc/v8.js.map +1 -0
  1260. package/node_modules/discord-api-types/rpc/v8.mjs +10 -0
  1261. package/node_modules/discord-api-types/rpc/v9.d.ts +39 -0
  1262. package/node_modules/discord-api-types/rpc/v9.d.ts.map +1 -0
  1263. package/node_modules/discord-api-types/rpc/v9.js +18 -0
  1264. package/node_modules/discord-api-types/rpc/v9.js.map +1 -0
  1265. package/node_modules/discord-api-types/rpc/v9.mjs +10 -0
  1266. package/node_modules/discord-api-types/scripts/versions.mjs +46 -0
  1267. package/node_modules/discord-api-types/utils/index.d.ts +2 -0
  1268. package/node_modules/discord-api-types/utils/index.d.ts.map +1 -0
  1269. package/node_modules/discord-api-types/utils/index.js +20 -0
  1270. package/node_modules/discord-api-types/utils/index.js.map +1 -0
  1271. package/node_modules/discord-api-types/utils/index.mjs +17 -0
  1272. package/node_modules/discord-api-types/utils/internals.d.ts +34 -0
  1273. package/node_modules/discord-api-types/utils/internals.d.ts.map +1 -0
  1274. package/node_modules/discord-api-types/utils/internals.js +13 -0
  1275. package/node_modules/discord-api-types/utils/internals.js.map +1 -0
  1276. package/node_modules/discord-api-types/utils/v10.d.ts +100 -0
  1277. package/node_modules/discord-api-types/utils/v10.d.ts.map +1 -0
  1278. package/node_modules/discord-api-types/utils/v10.js +158 -0
  1279. package/node_modules/discord-api-types/utils/v10.js.map +1 -0
  1280. package/node_modules/discord-api-types/utils/v10.mjs +17 -0
  1281. package/node_modules/discord-api-types/utils/v8.d.ts +66 -0
  1282. package/node_modules/discord-api-types/utils/v8.d.ts.map +1 -0
  1283. package/node_modules/discord-api-types/utils/v8.js +96 -0
  1284. package/node_modules/discord-api-types/utils/v8.js.map +1 -0
  1285. package/node_modules/discord-api-types/utils/v8.mjs +11 -0
  1286. package/node_modules/discord-api-types/utils/v9.d.ts +100 -0
  1287. package/node_modules/discord-api-types/utils/v9.d.ts.map +1 -0
  1288. package/node_modules/discord-api-types/utils/v9.js +158 -0
  1289. package/node_modules/discord-api-types/utils/v9.js.map +1 -0
  1290. package/node_modules/discord-api-types/utils/v9.mjs +17 -0
  1291. package/node_modules/discord-api-types/v10.d.ts +8 -0
  1292. package/node_modules/discord-api-types/v10.d.ts.map +1 -0
  1293. package/node_modules/discord-api-types/v10.js +47 -0
  1294. package/node_modules/discord-api-types/v10.js.map +1 -0
  1295. package/node_modules/discord-api-types/v10.mjs +132 -0
  1296. package/node_modules/discord-api-types/v6.d.ts +5 -0
  1297. package/node_modules/discord-api-types/v6.d.ts.map +1 -0
  1298. package/node_modules/discord-api-types/v6.js +21 -0
  1299. package/node_modules/discord-api-types/v6.js.map +1 -0
  1300. package/node_modules/discord-api-types/v6.mjs +44 -0
  1301. package/node_modules/discord-api-types/v8.d.ts +7 -0
  1302. package/node_modules/discord-api-types/v8.d.ts.map +1 -0
  1303. package/node_modules/discord-api-types/v8.js +46 -0
  1304. package/node_modules/discord-api-types/v8.js.map +1 -0
  1305. package/node_modules/discord-api-types/v8.mjs +72 -0
  1306. package/node_modules/discord-api-types/v9.d.ts +8 -0
  1307. package/node_modules/discord-api-types/v9.d.ts.map +1 -0
  1308. package/node_modules/discord-api-types/v9.js +47 -0
  1309. package/node_modules/discord-api-types/v9.js.map +1 -0
  1310. package/node_modules/discord-api-types/v9.mjs +129 -0
  1311. package/node_modules/discord-api-types/voice/index.d.ts +2 -0
  1312. package/node_modules/discord-api-types/voice/index.d.ts.map +1 -0
  1313. package/node_modules/discord-api-types/voice/index.js +20 -0
  1314. package/node_modules/discord-api-types/voice/index.js.map +1 -0
  1315. package/node_modules/discord-api-types/voice/index.mjs +8 -0
  1316. package/node_modules/discord-api-types/voice/v4.d.ts +174 -0
  1317. package/node_modules/discord-api-types/voice/v4.d.ts.map +1 -0
  1318. package/node_modules/discord-api-types/voice/v4.js +179 -0
  1319. package/node_modules/discord-api-types/voice/v4.js.map +1 -0
  1320. package/node_modules/discord-api-types/voice/v4.mjs +6 -0
  1321. package/node_modules/discord-api-types/voice/v8.d.ts +632 -0
  1322. package/node_modules/discord-api-types/voice/v8.d.ts.map +1 -0
  1323. package/node_modules/discord-api-types/voice/v8.js +236 -0
  1324. package/node_modules/discord-api-types/voice/v8.js.map +1 -0
  1325. package/node_modules/discord-api-types/voice/v8.mjs +8 -0
  1326. package/node_modules/https-proxy-agent/LICENSE +22 -0
  1327. package/node_modules/https-proxy-agent/README.md +70 -0
  1328. package/node_modules/https-proxy-agent/dist/index.d.ts +43 -0
  1329. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  1330. package/node_modules/https-proxy-agent/dist/index.js +150 -0
  1331. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  1332. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +12 -0
  1333. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  1334. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
  1335. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  1336. package/node_modules/https-proxy-agent/package.json +50 -0
  1337. package/node_modules/ms/index.js +162 -0
  1338. package/node_modules/ms/license.md +21 -0
  1339. package/node_modules/ms/package.json +38 -0
  1340. package/node_modules/ms/readme.md +59 -0
  1341. package/node_modules/opusscript/LICENSE +20 -0
  1342. package/node_modules/opusscript/README.md +53 -0
  1343. package/node_modules/opusscript/build/COPYING.libopus +44 -0
  1344. package/node_modules/opusscript/build/opusscript_native_nasm.js +93 -0
  1345. package/node_modules/opusscript/build/opusscript_native_wasm.js +77 -0
  1346. package/node_modules/opusscript/build/opusscript_native_wasm.wasm +0 -0
  1347. package/node_modules/opusscript/index.d.ts +100 -0
  1348. package/node_modules/opusscript/index.js +120 -0
  1349. package/node_modules/opusscript/package.json +26 -0
  1350. package/node_modules/prism-media/LICENSE +190 -0
  1351. package/node_modules/prism-media/README.md +69 -0
  1352. package/node_modules/prism-media/package.json +65 -0
  1353. package/node_modules/prism-media/src/core/FFmpeg.js +160 -0
  1354. package/node_modules/prism-media/src/core/VolumeTransformer.js +128 -0
  1355. package/node_modules/prism-media/src/core/WebmBase.js +229 -0
  1356. package/node_modules/prism-media/src/core/index.js +9 -0
  1357. package/node_modules/prism-media/src/index.js +5 -0
  1358. package/node_modules/prism-media/src/opus/OggDemuxer.js +143 -0
  1359. package/node_modules/prism-media/src/opus/Opus.js +212 -0
  1360. package/node_modules/prism-media/src/opus/WebmDemuxer.js +24 -0
  1361. package/node_modules/prism-media/src/opus/index.js +10 -0
  1362. package/node_modules/prism-media/src/util/loader.js +13 -0
  1363. package/node_modules/prism-media/src/vorbis/WebmDemuxer.js +22 -0
  1364. package/node_modules/prism-media/src/vorbis/index.js +8 -0
  1365. package/node_modules/prism-media/typings/index.d.ts +43 -0
  1366. package/node_modules/prism-media/typings/opus.d.ts +30 -0
  1367. package/node_modules/prism-media/typings/vorbis.d.ts +5 -0
  1368. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  1369. package/node_modules/tslib/LICENSE.txt +12 -0
  1370. package/node_modules/tslib/README.md +164 -0
  1371. package/node_modules/tslib/SECURITY.md +41 -0
  1372. package/node_modules/tslib/modules/index.d.ts +38 -0
  1373. package/node_modules/tslib/modules/index.js +70 -0
  1374. package/node_modules/tslib/modules/package.json +3 -0
  1375. package/node_modules/tslib/package.json +47 -0
  1376. package/node_modules/tslib/tslib.d.ts +460 -0
  1377. package/node_modules/tslib/tslib.es6.html +1 -0
  1378. package/node_modules/tslib/tslib.es6.js +402 -0
  1379. package/node_modules/tslib/tslib.es6.mjs +401 -0
  1380. package/node_modules/tslib/tslib.html +1 -0
  1381. package/node_modules/tslib/tslib.js +484 -0
  1382. package/node_modules/typebox/build/compile/code.d.mts +12 -0
  1383. package/node_modules/typebox/build/compile/code.mjs +65 -0
  1384. package/node_modules/typebox/build/compile/compile.d.mts +6 -0
  1385. package/node_modules/typebox/build/compile/compile.mjs +12 -0
  1386. package/node_modules/typebox/build/compile/index.d.mts +8 -0
  1387. package/node_modules/typebox/build/compile/index.mjs +14 -0
  1388. package/node_modules/typebox/build/compile/validator.d.mts +43 -0
  1389. package/node_modules/typebox/build/compile/validator.mjs +121 -0
  1390. package/node_modules/typebox/build/error/errors.d.mts +214 -0
  1391. package/node_modules/typebox/build/error/errors.mjs +18 -0
  1392. package/node_modules/typebox/build/error/index.d.mts +1 -0
  1393. package/node_modules/typebox/build/error/index.mjs +1 -0
  1394. package/node_modules/typebox/build/format/_idna.d.mts +2 -0
  1395. package/node_modules/typebox/build/format/_idna.mjs +216 -0
  1396. package/node_modules/typebox/build/format/_puny.d.mts +1 -0
  1397. package/node_modules/typebox/build/format/_puny.mjs +74 -0
  1398. package/node_modules/typebox/build/format/_registry.d.mts +15 -0
  1399. package/node_modules/typebox/build/format/_registry.mjs +96 -0
  1400. package/node_modules/typebox/build/format/date.d.mts +6 -0
  1401. package/node_modules/typebox/build/format/date.mjs +19 -0
  1402. package/node_modules/typebox/build/format/date_time.d.mts +6 -0
  1403. package/node_modules/typebox/build/format/date_time.mjs +11 -0
  1404. package/node_modules/typebox/build/format/duration.d.mts +5 -0
  1405. package/node_modules/typebox/build/format/duration.mjs +8 -0
  1406. package/node_modules/typebox/build/format/email.d.mts +5 -0
  1407. package/node_modules/typebox/build/format/email.mjs +8 -0
  1408. package/node_modules/typebox/build/format/format.d.mts +22 -0
  1409. package/node_modules/typebox/build/format/format.mjs +22 -0
  1410. package/node_modules/typebox/build/format/hostname.d.mts +7 -0
  1411. package/node_modules/typebox/build/format/hostname.mjs +18 -0
  1412. package/node_modules/typebox/build/format/idn_email.d.mts +5 -0
  1413. package/node_modules/typebox/build/format/idn_email.mjs +8 -0
  1414. package/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
  1415. package/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
  1416. package/node_modules/typebox/build/format/index.d.mts +4 -0
  1417. package/node_modules/typebox/build/format/index.mjs +4 -0
  1418. package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
  1419. package/node_modules/typebox/build/format/ipv4.mjs +38 -0
  1420. package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
  1421. package/node_modules/typebox/build/format/ipv6.mjs +67 -0
  1422. package/node_modules/typebox/build/format/iri.d.mts +5 -0
  1423. package/node_modules/typebox/build/format/iri.mjs +13 -0
  1424. package/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
  1425. package/node_modules/typebox/build/format/iri_reference.mjs +60 -0
  1426. package/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
  1427. package/node_modules/typebox/build/format/json_pointer.mjs +9 -0
  1428. package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
  1429. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
  1430. package/node_modules/typebox/build/format/regex.d.mts +6 -0
  1431. package/node_modules/typebox/build/format/regex.mjs +17 -0
  1432. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
  1433. package/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
  1434. package/node_modules/typebox/build/format/time.d.mts +5 -0
  1435. package/node_modules/typebox/build/format/time.mjs +27 -0
  1436. package/node_modules/typebox/build/format/uri.d.mts +5 -0
  1437. package/node_modules/typebox/build/format/uri.mjs +135 -0
  1438. package/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
  1439. package/node_modules/typebox/build/format/uri_reference.mjs +9 -0
  1440. package/node_modules/typebox/build/format/uri_template.d.mts +6 -0
  1441. package/node_modules/typebox/build/format/uri_template.mjs +10 -0
  1442. package/node_modules/typebox/build/format/url.d.mts +6 -0
  1443. package/node_modules/typebox/build/format/url.mjs +9 -0
  1444. package/node_modules/typebox/build/format/uuid.d.mts +6 -0
  1445. package/node_modules/typebox/build/format/uuid.mjs +9 -0
  1446. package/node_modules/typebox/build/guard/emit.d.mts +58 -0
  1447. package/node_modules/typebox/build/guard/emit.mjs +194 -0
  1448. package/node_modules/typebox/build/guard/globals.d.mts +35 -0
  1449. package/node_modules/typebox/build/guard/globals.mjs +90 -0
  1450. package/node_modules/typebox/build/guard/guard.d.mts +69 -0
  1451. package/node_modules/typebox/build/guard/guard.mjs +217 -0
  1452. package/node_modules/typebox/build/guard/index.d.mts +6 -0
  1453. package/node_modules/typebox/build/guard/index.mjs +6 -0
  1454. package/node_modules/typebox/build/guard/native.d.mts +20 -0
  1455. package/node_modules/typebox/build/guard/native.mjs +60 -0
  1456. package/node_modules/typebox/build/guard/string.d.mts +6 -0
  1457. package/node_modules/typebox/build/guard/string.mjs +164 -0
  1458. package/node_modules/typebox/build/index.d.mts +8 -0
  1459. package/node_modules/typebox/build/index.mjs +14 -0
  1460. package/node_modules/typebox/build/schema/build.d.mts +39 -0
  1461. package/node_modules/typebox/build/schema/build.mjs +118 -0
  1462. package/node_modules/typebox/build/schema/check.d.mts +6 -0
  1463. package/node_modules/typebox/build/schema/check.mjs +14 -0
  1464. package/node_modules/typebox/build/schema/compile.d.mts +22 -0
  1465. package/node_modules/typebox/build/schema/compile.mjs +46 -0
  1466. package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
  1467. package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
  1468. package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
  1469. package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
  1470. package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
  1471. package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
  1472. package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
  1473. package/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
  1474. package/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
  1475. package/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
  1476. package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
  1477. package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
  1478. package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
  1479. package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
  1480. package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
  1481. package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
  1482. package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
  1483. package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
  1484. package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
  1485. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
  1486. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
  1487. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
  1488. package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
  1489. package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
  1490. package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
  1491. package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
  1492. package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
  1493. package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
  1494. package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
  1495. package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
  1496. package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
  1497. package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
  1498. package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
  1499. package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
  1500. package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
  1501. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
  1502. package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
  1503. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
  1504. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
  1505. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
  1506. package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
  1507. package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
  1508. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
  1509. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
  1510. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
  1511. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
  1512. package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
  1513. package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
  1514. package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
  1515. package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
  1516. package/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
  1517. package/node_modules/typebox/build/schema/engine/index.mjs +55 -0
  1518. package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
  1519. package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
  1520. package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
  1521. package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
  1522. package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
  1523. package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
  1524. package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
  1525. package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
  1526. package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
  1527. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
  1528. package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
  1529. package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
  1530. package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
  1531. package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
  1532. package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
  1533. package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
  1534. package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
  1535. package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
  1536. package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
  1537. package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
  1538. package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
  1539. package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
  1540. package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
  1541. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
  1542. package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
  1543. package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
  1544. package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
  1545. package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
  1546. package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
  1547. package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
  1548. package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
  1549. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
  1550. package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
  1551. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
  1552. package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
  1553. package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
  1554. package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
  1555. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
  1556. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
  1557. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
  1558. package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
  1559. package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
  1560. package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
  1561. package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
  1562. package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
  1563. package/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
  1564. package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
  1565. package/node_modules/typebox/build/schema/engine/type.mjs +74 -0
  1566. package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
  1567. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
  1568. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
  1569. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
  1570. package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
  1571. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
  1572. package/node_modules/typebox/build/schema/errors.d.mts +6 -0
  1573. package/node_modules/typebox/build/schema/errors.mjs +24 -0
  1574. package/node_modules/typebox/build/schema/index.d.mts +3 -0
  1575. package/node_modules/typebox/build/schema/index.mjs +9 -0
  1576. package/node_modules/typebox/build/schema/parse.d.mts +13 -0
  1577. package/node_modules/typebox/build/schema/parse.mjs +27 -0
  1578. package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
  1579. package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
  1580. package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
  1581. package/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
  1582. package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
  1583. package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
  1584. package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
  1585. package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
  1586. package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
  1587. package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
  1588. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
  1589. package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
  1590. package/node_modules/typebox/build/schema/schema.d.mts +10 -0
  1591. package/node_modules/typebox/build/schema/schema.mjs +10 -0
  1592. package/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
  1593. package/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
  1594. package/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
  1595. package/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
  1596. package/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
  1597. package/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
  1598. package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
  1599. package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
  1600. package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
  1601. package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
  1602. package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
  1603. package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
  1604. package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
  1605. package/node_modules/typebox/build/schema/static/const.mjs +2 -0
  1606. package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
  1607. package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
  1608. package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
  1609. package/node_modules/typebox/build/schema/static/if.mjs +2 -0
  1610. package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
  1611. package/node_modules/typebox/build/schema/static/index.mjs +1 -0
  1612. package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
  1613. package/node_modules/typebox/build/schema/static/items.mjs +2 -0
  1614. package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
  1615. package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
  1616. package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
  1617. package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
  1618. package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
  1619. package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
  1620. package/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
  1621. package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
  1622. package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
  1623. package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
  1624. package/node_modules/typebox/build/schema/static/required.d.mts +3 -0
  1625. package/node_modules/typebox/build/schema/static/required.mjs +3 -0
  1626. package/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
  1627. package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
  1628. package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
  1629. package/node_modules/typebox/build/schema/static/static.mjs +3 -0
  1630. package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
  1631. package/node_modules/typebox/build/schema/static/type.mjs +3 -0
  1632. package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
  1633. package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
  1634. package/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
  1635. package/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
  1636. package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
  1637. package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
  1638. package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
  1639. package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
  1640. package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
  1641. package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
  1642. package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
  1643. package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
  1644. package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
  1645. package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
  1646. package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
  1647. package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
  1648. package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
  1649. package/node_modules/typebox/build/schema/types/const.mjs +12 -0
  1650. package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
  1651. package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
  1652. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
  1653. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
  1654. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
  1655. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
  1656. package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
  1657. package/node_modules/typebox/build/schema/types/default.mjs +12 -0
  1658. package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
  1659. package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
  1660. package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
  1661. package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
  1662. package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
  1663. package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
  1664. package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
  1665. package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
  1666. package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
  1667. package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
  1668. package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
  1669. package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
  1670. package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
  1671. package/node_modules/typebox/build/schema/types/else.mjs +14 -0
  1672. package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
  1673. package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
  1674. package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
  1675. package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
  1676. package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
  1677. package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
  1678. package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
  1679. package/node_modules/typebox/build/schema/types/format.mjs +13 -0
  1680. package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
  1681. package/node_modules/typebox/build/schema/types/id.mjs +13 -0
  1682. package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
  1683. package/node_modules/typebox/build/schema/types/if.mjs +14 -0
  1684. package/node_modules/typebox/build/schema/types/index.d.mts +54 -0
  1685. package/node_modules/typebox/build/schema/types/index.mjs +60 -0
  1686. package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
  1687. package/node_modules/typebox/build/schema/types/items.mjs +26 -0
  1688. package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
  1689. package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
  1690. package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
  1691. package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
  1692. package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
  1693. package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
  1694. package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
  1695. package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
  1696. package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
  1697. package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
  1698. package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
  1699. package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
  1700. package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
  1701. package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
  1702. package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
  1703. package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
  1704. package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
  1705. package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
  1706. package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
  1707. package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
  1708. package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
  1709. package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
  1710. package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
  1711. package/node_modules/typebox/build/schema/types/not.mjs +14 -0
  1712. package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
  1713. package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
  1714. package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
  1715. package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
  1716. package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
  1717. package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
  1718. package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
  1719. package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
  1720. package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
  1721. package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
  1722. package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
  1723. package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
  1724. package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
  1725. package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
  1726. package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
  1727. package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
  1728. package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
  1729. package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
  1730. package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
  1731. package/node_modules/typebox/build/schema/types/required.mjs +14 -0
  1732. package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
  1733. package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
  1734. package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
  1735. package/node_modules/typebox/build/schema/types/then.mjs +14 -0
  1736. package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
  1737. package/node_modules/typebox/build/schema/types/type.mjs +15 -0
  1738. package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
  1739. package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
  1740. package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
  1741. package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
  1742. package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
  1743. package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
  1744. package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
  1745. package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
  1746. package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
  1747. package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
  1748. package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
  1749. package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
  1750. package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
  1751. package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
  1752. package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
  1753. package/node_modules/typebox/build/system/environment/index.mjs +1 -0
  1754. package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
  1755. package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
  1756. package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
  1757. package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
  1758. package/node_modules/typebox/build/system/index.d.mts +4 -0
  1759. package/node_modules/typebox/build/system/index.mjs +4 -0
  1760. package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
  1761. package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
  1762. package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
  1763. package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
  1764. package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
  1765. package/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
  1766. package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
  1767. package/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
  1768. package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
  1769. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
  1770. package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
  1771. package/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
  1772. package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
  1773. package/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
  1774. package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
  1775. package/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
  1776. package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
  1777. package/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
  1778. package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
  1779. package/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
  1780. package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
  1781. package/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
  1782. package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
  1783. package/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
  1784. package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
  1785. package/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
  1786. package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
  1787. package/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
  1788. package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
  1789. package/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
  1790. package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
  1791. package/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
  1792. package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
  1793. package/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
  1794. package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
  1795. package/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
  1796. package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
  1797. package/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
  1798. package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
  1799. package/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
  1800. package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
  1801. package/node_modules/typebox/build/system/locale/index.mjs +1 -0
  1802. package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
  1803. package/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
  1804. package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
  1805. package/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
  1806. package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
  1807. package/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
  1808. package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
  1809. package/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
  1810. package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
  1811. package/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
  1812. package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
  1813. package/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
  1814. package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
  1815. package/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
  1816. package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
  1817. package/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
  1818. package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
  1819. package/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
  1820. package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
  1821. package/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
  1822. package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
  1823. package/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
  1824. package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
  1825. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
  1826. package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
  1827. package/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
  1828. package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
  1829. package/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
  1830. package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
  1831. package/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
  1832. package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
  1833. package/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
  1834. package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
  1835. package/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
  1836. package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
  1837. package/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
  1838. package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
  1839. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
  1840. package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
  1841. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
  1842. package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
  1843. package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
  1844. package/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
  1845. package/node_modules/typebox/build/system/memory/clone.mjs +63 -0
  1846. package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
  1847. package/node_modules/typebox/build/system/memory/create.mjs +30 -0
  1848. package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
  1849. package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
  1850. package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
  1851. package/node_modules/typebox/build/system/memory/index.mjs +1 -0
  1852. package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
  1853. package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
  1854. package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
  1855. package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
  1856. package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
  1857. package/node_modules/typebox/build/system/memory/update.mjs +32 -0
  1858. package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
  1859. package/node_modules/typebox/build/system/settings/index.mjs +1 -0
  1860. package/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
  1861. package/node_modules/typebox/build/system/settings/settings.mjs +32 -0
  1862. package/node_modules/typebox/build/system/system.d.mts +6 -0
  1863. package/node_modules/typebox/build/system/system.mjs +6 -0
  1864. package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
  1865. package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
  1866. package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
  1867. package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
  1868. package/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
  1869. package/node_modules/typebox/build/type/action/_optional.mjs +40 -0
  1870. package/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
  1871. package/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
  1872. package/node_modules/typebox/build/type/action/awaited.d.mts +15 -0
  1873. package/node_modules/typebox/build/type/action/awaited.mjs +15 -0
  1874. package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
  1875. package/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
  1876. package/node_modules/typebox/build/type/action/conditional.d.mts +13 -0
  1877. package/node_modules/typebox/build/type/action/conditional.mjs +12 -0
  1878. package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
  1879. package/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
  1880. package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
  1881. package/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
  1882. package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
  1883. package/node_modules/typebox/build/type/action/exclude.mjs +11 -0
  1884. package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
  1885. package/node_modules/typebox/build/type/action/extract.mjs +11 -0
  1886. package/node_modules/typebox/build/type/action/index.d.mts +27 -0
  1887. package/node_modules/typebox/build/type/action/index.mjs +27 -0
  1888. package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
  1889. package/node_modules/typebox/build/type/action/indexed.mjs +14 -0
  1890. package/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
  1891. package/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
  1892. package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
  1893. package/node_modules/typebox/build/type/action/interface.mjs +22 -0
  1894. package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
  1895. package/node_modules/typebox/build/type/action/keyof.mjs +11 -0
  1896. package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
  1897. package/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
  1898. package/node_modules/typebox/build/type/action/mapped.d.mts +14 -0
  1899. package/node_modules/typebox/build/type/action/mapped.mjs +12 -0
  1900. package/node_modules/typebox/build/type/action/module.d.mts +12 -0
  1901. package/node_modules/typebox/build/type/action/module.mjs +12 -0
  1902. package/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
  1903. package/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
  1904. package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
  1905. package/node_modules/typebox/build/type/action/omit.mjs +14 -0
  1906. package/node_modules/typebox/build/type/action/options.d.mts +11 -0
  1907. package/node_modules/typebox/build/type/action/options.mjs +11 -0
  1908. package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
  1909. package/node_modules/typebox/build/type/action/parameters.mjs +11 -0
  1910. package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
  1911. package/node_modules/typebox/build/type/action/partial.mjs +11 -0
  1912. package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
  1913. package/node_modules/typebox/build/type/action/pick.mjs +14 -0
  1914. package/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
  1915. package/node_modules/typebox/build/type/action/readonly_object.mjs +16 -0
  1916. package/node_modules/typebox/build/type/action/required.d.mts +11 -0
  1917. package/node_modules/typebox/build/type/action/required.mjs +11 -0
  1918. package/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
  1919. package/node_modules/typebox/build/type/action/return_type.mjs +11 -0
  1920. package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
  1921. package/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
  1922. package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
  1923. package/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
  1924. package/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
  1925. package/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
  1926. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +11 -0
  1927. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +20 -0
  1928. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
  1929. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
  1930. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
  1931. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
  1932. package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
  1933. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
  1934. package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
  1935. package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
  1936. package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
  1937. package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
  1938. package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
  1939. package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
  1940. package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
  1941. package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
  1942. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +15 -0
  1943. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +24 -0
  1944. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
  1945. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
  1946. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
  1947. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +51 -0
  1948. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
  1949. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
  1950. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
  1951. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
  1952. package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
  1953. package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
  1954. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
  1955. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
  1956. package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
  1957. package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
  1958. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +14 -0
  1959. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +24 -0
  1960. package/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
  1961. package/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
  1962. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
  1963. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
  1964. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
  1965. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
  1966. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
  1967. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
  1968. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
  1969. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
  1970. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
  1971. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
  1972. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
  1973. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
  1974. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
  1975. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
  1976. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
  1977. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
  1978. package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
  1979. package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
  1980. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
  1981. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
  1982. package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
  1983. package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
  1984. package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
  1985. package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
  1986. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +11 -0
  1987. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +24 -0
  1988. package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
  1989. package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
  1990. package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
  1991. package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
  1992. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +11 -0
  1993. package/node_modules/typebox/build/type/engine/extract/operation.mjs +24 -0
  1994. package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
  1995. package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
  1996. package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
  1997. package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
  1998. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
  1999. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
  2000. package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
  2001. package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
  2002. package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
  2003. package/node_modules/typebox/build/type/engine/index.mjs +37 -0
  2004. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
  2005. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
  2006. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
  2007. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
  2008. package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
  2009. package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
  2010. package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
  2011. package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
  2012. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
  2013. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
  2014. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +17 -0
  2015. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +22 -0
  2016. package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
  2017. package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
  2018. package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
  2019. package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
  2020. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
  2021. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
  2022. package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
  2023. package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
  2024. package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
  2025. package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
  2026. package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
  2027. package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
  2028. package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
  2029. package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
  2030. package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
  2031. package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
  2032. package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
  2033. package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
  2034. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +15 -0
  2035. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +25 -0
  2036. package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
  2037. package/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
  2038. package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
  2039. package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
  2040. package/node_modules/typebox/build/type/engine/instantiate.d.mts +165 -0
  2041. package/node_modules/typebox/build/type/engine/instantiate.mjs +159 -0
  2042. package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
  2043. package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
  2044. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +18 -0
  2045. package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
  2046. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
  2047. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
  2048. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
  2049. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
  2050. package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
  2051. package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
  2052. package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
  2053. package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
  2054. package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
  2055. package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
  2056. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
  2057. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
  2058. package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
  2059. package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
  2060. package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
  2061. package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
  2062. package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
  2063. package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
  2064. package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
  2065. package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
  2066. package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
  2067. package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
  2068. package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
  2069. package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
  2070. package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
  2071. package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
  2072. package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
  2073. package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
  2074. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +15 -0
  2075. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +25 -0
  2076. package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
  2077. package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
  2078. package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
  2079. package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
  2080. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
  2081. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
  2082. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
  2083. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +34 -0
  2084. package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
  2085. package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
  2086. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
  2087. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
  2088. package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
  2089. package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
  2090. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
  2091. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
  2092. package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
  2093. package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
  2094. package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
  2095. package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
  2096. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
  2097. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
  2098. package/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
  2099. package/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
  2100. package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
  2101. package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
  2102. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +14 -0
  2103. package/node_modules/typebox/build/type/engine/object/from_type.mjs +20 -0
  2104. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
  2105. package/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
  2106. package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
  2107. package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
  2108. package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
  2109. package/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
  2110. package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
  2111. package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
  2112. package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
  2113. package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
  2114. package/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
  2115. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  2116. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
  2117. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +14 -0
  2118. package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
  2119. package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
  2120. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +15 -0
  2121. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +24 -0
  2122. package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
  2123. package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
  2124. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
  2125. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +7 -0
  2126. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
  2127. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
  2128. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +12 -0
  2129. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +17 -0
  2130. package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
  2131. package/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
  2132. package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
  2133. package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
  2134. package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
  2135. package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
  2136. package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
  2137. package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
  2138. package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
  2139. package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
  2140. package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
  2141. package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
  2142. package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
  2143. package/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
  2144. package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
  2145. package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
  2146. package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
  2147. package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
  2148. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
  2149. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
  2150. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
  2151. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
  2152. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
  2153. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +7 -0
  2154. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
  2155. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
  2156. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
  2157. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
  2158. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +16 -0
  2159. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +22 -0
  2160. package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
  2161. package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
  2162. package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
  2163. package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
  2164. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
  2165. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
  2166. package/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
  2167. package/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
  2168. package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
  2169. package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
  2170. package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
  2171. package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
  2172. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
  2173. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
  2174. package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
  2175. package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
  2176. package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
  2177. package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
  2178. package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
  2179. package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
  2180. package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
  2181. package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
  2182. package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
  2183. package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
  2184. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
  2185. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
  2186. package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
  2187. package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
  2188. package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
  2189. package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
  2190. package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
  2191. package/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
  2192. package/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
  2193. package/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
  2194. package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
  2195. package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
  2196. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
  2197. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
  2198. package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
  2199. package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
  2200. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
  2201. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +7 -0
  2202. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
  2203. package/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
  2204. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +12 -0
  2205. package/node_modules/typebox/build/type/engine/required/from_type.mjs +17 -0
  2206. package/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
  2207. package/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
  2208. package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
  2209. package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
  2210. package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
  2211. package/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
  2212. package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
  2213. package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
  2214. package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
  2215. package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
  2216. package/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
  2217. package/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
  2218. package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
  2219. package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
  2220. package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
  2221. package/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
  2222. package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
  2223. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
  2224. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
  2225. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
  2226. package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
  2227. package/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
  2228. package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
  2229. package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
  2230. package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
  2231. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
  2232. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
  2233. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +9 -0
  2234. package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
  2235. package/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
  2236. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +19 -0
  2237. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +32 -0
  2238. package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
  2239. package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
  2240. package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
  2241. package/node_modules/typebox/build/type/extends/any.mjs +12 -0
  2242. package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
  2243. package/node_modules/typebox/build/type/extends/array.mjs +21 -0
  2244. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +7 -0
  2245. package/node_modules/typebox/build/type/extends/async_iterator.mjs +9 -0
  2246. package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
  2247. package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
  2248. package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
  2249. package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
  2250. package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
  2251. package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
  2252. package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
  2253. package/node_modules/typebox/build/type/extends/enum.mjs +6 -0
  2254. package/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
  2255. package/node_modules/typebox/build/type/extends/extends.mjs +17 -0
  2256. package/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
  2257. package/node_modules/typebox/build/type/extends/extends_left.mjs +83 -0
  2258. package/node_modules/typebox/build/type/extends/extends_right.d.mts +25 -0
  2259. package/node_modules/typebox/build/type/extends/extends_right.mjs +44 -0
  2260. package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
  2261. package/node_modules/typebox/build/type/extends/function.mjs +17 -0
  2262. package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
  2263. package/node_modules/typebox/build/type/extends/index.mjs +2 -0
  2264. package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
  2265. package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
  2266. package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
  2267. package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
  2268. package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
  2269. package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
  2270. package/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
  2271. package/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
  2272. package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
  2273. package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
  2274. package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
  2275. package/node_modules/typebox/build/type/extends/never.mjs +9 -0
  2276. package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
  2277. package/node_modules/typebox/build/type/extends/null.mjs +9 -0
  2278. package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
  2279. package/node_modules/typebox/build/type/extends/number.mjs +9 -0
  2280. package/node_modules/typebox/build/type/extends/object.d.mts +25 -0
  2281. package/node_modules/typebox/build/type/extends/object.mjs +87 -0
  2282. package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
  2283. package/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
  2284. package/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
  2285. package/node_modules/typebox/build/type/extends/promise.mjs +9 -0
  2286. package/node_modules/typebox/build/type/extends/result.d.mts +24 -0
  2287. package/node_modules/typebox/build/type/extends/result.mjs +36 -0
  2288. package/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
  2289. package/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
  2290. package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
  2291. package/node_modules/typebox/build/type/extends/string.mjs +9 -0
  2292. package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
  2293. package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
  2294. package/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
  2295. package/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
  2296. package/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
  2297. package/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
  2298. package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
  2299. package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
  2300. package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
  2301. package/node_modules/typebox/build/type/extends/union.mjs +24 -0
  2302. package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
  2303. package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
  2304. package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
  2305. package/node_modules/typebox/build/type/extends/void.mjs +9 -0
  2306. package/node_modules/typebox/build/type/index.d.mts +5 -0
  2307. package/node_modules/typebox/build/type/index.mjs +5 -0
  2308. package/node_modules/typebox/build/type/script/index.d.mts +1 -0
  2309. package/node_modules/typebox/build/type/script/index.mjs +1 -0
  2310. package/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
  2311. package/node_modules/typebox/build/type/script/mapping.mjs +532 -0
  2312. package/node_modules/typebox/build/type/script/parser.d.mts +260 -0
  2313. package/node_modules/typebox/build/type/script/parser.mjs +135 -0
  2314. package/node_modules/typebox/build/type/script/script.d.mts +17 -0
  2315. package/node_modules/typebox/build/type/script/script.mjs +21 -0
  2316. package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
  2317. package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
  2318. package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
  2319. package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
  2320. package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
  2321. package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
  2322. package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
  2323. package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
  2324. package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
  2325. package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
  2326. package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
  2327. package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
  2328. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
  2329. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
  2330. package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
  2331. package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
  2332. package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
  2333. package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
  2334. package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
  2335. package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
  2336. package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
  2337. package/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
  2338. package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
  2339. package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
  2340. package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
  2341. package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
  2342. package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
  2343. package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
  2344. package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
  2345. package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
  2346. package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
  2347. package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
  2348. package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
  2349. package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
  2350. package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
  2351. package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
  2352. package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
  2353. package/node_modules/typebox/build/type/script/token/until.mjs +21 -0
  2354. package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
  2355. package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
  2356. package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
  2357. package/node_modules/typebox/build/type/types/_codec.mjs +61 -0
  2358. package/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
  2359. package/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
  2360. package/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
  2361. package/node_modules/typebox/build/type/types/_optional.mjs +27 -0
  2362. package/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
  2363. package/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
  2364. package/node_modules/typebox/build/type/types/_refine.d.mts +26 -0
  2365. package/node_modules/typebox/build/type/types/_refine.mjs +37 -0
  2366. package/node_modules/typebox/build/type/types/any.d.mts +10 -0
  2367. package/node_modules/typebox/build/type/types/any.mjs +18 -0
  2368. package/node_modules/typebox/build/type/types/array.d.mts +18 -0
  2369. package/node_modules/typebox/build/type/types/array.mjs +25 -0
  2370. package/node_modules/typebox/build/type/types/async_iterator.d.mts +20 -0
  2371. package/node_modules/typebox/build/type/types/async_iterator.mjs +28 -0
  2372. package/node_modules/typebox/build/type/types/base.d.mts +50 -0
  2373. package/node_modules/typebox/build/type/types/base.mjs +84 -0
  2374. package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
  2375. package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
  2376. package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
  2377. package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
  2378. package/node_modules/typebox/build/type/types/call.d.mts +16 -0
  2379. package/node_modules/typebox/build/type/types/call.mjs +22 -0
  2380. package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
  2381. package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
  2382. package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
  2383. package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
  2384. package/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
  2385. package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
  2386. package/node_modules/typebox/build/type/types/enum.d.mts +16 -0
  2387. package/node_modules/typebox/build/type/types/enum.mjs +17 -0
  2388. package/node_modules/typebox/build/type/types/function.d.mts +21 -0
  2389. package/node_modules/typebox/build/type/types/function.mjs +25 -0
  2390. package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
  2391. package/node_modules/typebox/build/type/types/generic.mjs +17 -0
  2392. package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
  2393. package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
  2394. package/node_modules/typebox/build/type/types/index.d.mts +48 -0
  2395. package/node_modules/typebox/build/type/types/index.mjs +54 -0
  2396. package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
  2397. package/node_modules/typebox/build/type/types/infer.mjs +20 -0
  2398. package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
  2399. package/node_modules/typebox/build/type/types/integer.mjs +21 -0
  2400. package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
  2401. package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
  2402. package/node_modules/typebox/build/type/types/iterator.d.mts +20 -0
  2403. package/node_modules/typebox/build/type/types/iterator.mjs +28 -0
  2404. package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
  2405. package/node_modules/typebox/build/type/types/literal.mjs +62 -0
  2406. package/node_modules/typebox/build/type/types/never.d.mts +12 -0
  2407. package/node_modules/typebox/build/type/types/never.mjs +22 -0
  2408. package/node_modules/typebox/build/type/types/null.d.mts +11 -0
  2409. package/node_modules/typebox/build/type/types/null.mjs +17 -0
  2410. package/node_modules/typebox/build/type/types/number.d.mts +12 -0
  2411. package/node_modules/typebox/build/type/types/number.mjs +21 -0
  2412. package/node_modules/typebox/build/type/types/object.d.mts +18 -0
  2413. package/node_modules/typebox/build/type/types/object.mjs +28 -0
  2414. package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
  2415. package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
  2416. package/node_modules/typebox/build/type/types/promise.d.mts +21 -0
  2417. package/node_modules/typebox/build/type/types/promise.mjs +29 -0
  2418. package/node_modules/typebox/build/type/types/properties.d.mts +43 -0
  2419. package/node_modules/typebox/build/type/types/properties.mjs +15 -0
  2420. package/node_modules/typebox/build/type/types/record.d.mts +46 -0
  2421. package/node_modules/typebox/build/type/types/record.mjs +60 -0
  2422. package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
  2423. package/node_modules/typebox/build/type/types/ref.mjs +18 -0
  2424. package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
  2425. package/node_modules/typebox/build/type/types/rest.mjs +17 -0
  2426. package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
  2427. package/node_modules/typebox/build/type/types/schema.mjs +15 -0
  2428. package/node_modules/typebox/build/type/types/static.d.mts +48 -0
  2429. package/node_modules/typebox/build/type/types/static.mjs +3 -0
  2430. package/node_modules/typebox/build/type/types/string.d.mts +12 -0
  2431. package/node_modules/typebox/build/type/types/string.mjs +22 -0
  2432. package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
  2433. package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
  2434. package/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
  2435. package/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
  2436. package/node_modules/typebox/build/type/types/this.d.mts +14 -0
  2437. package/node_modules/typebox/build/type/types/this.mjs +17 -0
  2438. package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
  2439. package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
  2440. package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
  2441. package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
  2442. package/node_modules/typebox/build/type/types/union.d.mts +15 -0
  2443. package/node_modules/typebox/build/type/types/union.mjs +24 -0
  2444. package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
  2445. package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
  2446. package/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
  2447. package/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
  2448. package/node_modules/typebox/build/type/types/void.d.mts +11 -0
  2449. package/node_modules/typebox/build/type/types/void.mjs +17 -0
  2450. package/node_modules/typebox/build/typebox.d.mts +73 -0
  2451. package/node_modules/typebox/build/typebox.mjs +89 -0
  2452. package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
  2453. package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
  2454. package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
  2455. package/node_modules/typebox/build/value/assert/index.mjs +1 -0
  2456. package/node_modules/typebox/build/value/check/check.d.mts +5 -0
  2457. package/node_modules/typebox/build/value/check/check.mjs +11 -0
  2458. package/node_modules/typebox/build/value/check/index.d.mts +1 -0
  2459. package/node_modules/typebox/build/value/check/index.mjs +1 -0
  2460. package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
  2461. package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
  2462. package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
  2463. package/node_modules/typebox/build/value/clean/clean.mjs +15 -0
  2464. package/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
  2465. package/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
  2466. package/node_modules/typebox/build/value/clean/from_base.d.mts +2 -0
  2467. package/node_modules/typebox/build/value/clean/from_base.mjs +4 -0
  2468. package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
  2469. package/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
  2470. package/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
  2471. package/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
  2472. package/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
  2473. package/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
  2474. package/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
  2475. package/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
  2476. package/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
  2477. package/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
  2478. package/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
  2479. package/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
  2480. package/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
  2481. package/node_modules/typebox/build/value/clean/from_type.mjs +23 -0
  2482. package/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
  2483. package/node_modules/typebox/build/value/clean/from_union.mjs +13 -0
  2484. package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
  2485. package/node_modules/typebox/build/value/clean/index.mjs +1 -0
  2486. package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
  2487. package/node_modules/typebox/build/value/clone/clone.mjs +83 -0
  2488. package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
  2489. package/node_modules/typebox/build/value/clone/index.mjs +1 -0
  2490. package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
  2491. package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
  2492. package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
  2493. package/node_modules/typebox/build/value/codec/decode.mjs +50 -0
  2494. package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
  2495. package/node_modules/typebox/build/value/codec/encode.mjs +50 -0
  2496. package/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
  2497. package/node_modules/typebox/build/value/codec/from_array.mjs +38 -0
  2498. package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
  2499. package/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
  2500. package/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
  2501. package/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
  2502. package/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
  2503. package/node_modules/typebox/build/value/codec/from_object.mjs +45 -0
  2504. package/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
  2505. package/node_modules/typebox/build/value/codec/from_record.mjs +44 -0
  2506. package/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
  2507. package/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
  2508. package/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
  2509. package/node_modules/typebox/build/value/codec/from_tuple.mjs +35 -0
  2510. package/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
  2511. package/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
  2512. package/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
  2513. package/node_modules/typebox/build/value/codec/from_union.mjs +40 -0
  2514. package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
  2515. package/node_modules/typebox/build/value/codec/has.mjs +93 -0
  2516. package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
  2517. package/node_modules/typebox/build/value/codec/index.mjs +3 -0
  2518. package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
  2519. package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
  2520. package/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
  2521. package/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
  2522. package/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
  2523. package/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
  2524. package/node_modules/typebox/build/value/convert/from_base.d.mts +2 -0
  2525. package/node_modules/typebox/build/value/convert/from_base.mjs +4 -0
  2526. package/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
  2527. package/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
  2528. package/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
  2529. package/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
  2530. package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
  2531. package/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
  2532. package/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
  2533. package/node_modules/typebox/build/value/convert/from_enum.mjs +7 -0
  2534. package/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
  2535. package/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
  2536. package/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
  2537. package/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
  2538. package/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
  2539. package/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
  2540. package/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
  2541. package/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
  2542. package/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
  2543. package/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
  2544. package/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
  2545. package/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
  2546. package/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
  2547. package/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
  2548. package/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
  2549. package/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
  2550. package/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
  2551. package/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
  2552. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
  2553. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +7 -0
  2554. package/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
  2555. package/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
  2556. package/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
  2557. package/node_modules/typebox/build/value/convert/from_type.mjs +45 -0
  2558. package/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
  2559. package/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
  2560. package/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
  2561. package/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
  2562. package/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
  2563. package/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
  2564. package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
  2565. package/node_modules/typebox/build/value/convert/index.mjs +1 -0
  2566. package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
  2567. package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
  2568. package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
  2569. package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
  2570. package/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
  2571. package/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
  2572. package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
  2573. package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
  2574. package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
  2575. package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
  2576. package/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
  2577. package/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
  2578. package/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
  2579. package/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
  2580. package/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
  2581. package/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
  2582. package/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
  2583. package/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
  2584. package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
  2585. package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
  2586. package/node_modules/typebox/build/value/create/create.d.mts +5 -0
  2587. package/node_modules/typebox/build/value/create/create.mjs +11 -0
  2588. package/node_modules/typebox/build/value/create/error.d.mts +5 -0
  2589. package/node_modules/typebox/build/value/create/error.mjs +7 -0
  2590. package/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
  2591. package/node_modules/typebox/build/value/create/from_array.mjs +10 -0
  2592. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +2 -0
  2593. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +5 -0
  2594. package/node_modules/typebox/build/value/create/from_base.d.mts +2 -0
  2595. package/node_modules/typebox/build/value/create/from_base.mjs +4 -0
  2596. package/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
  2597. package/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
  2598. package/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
  2599. package/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
  2600. package/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
  2601. package/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
  2602. package/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
  2603. package/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
  2604. package/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
  2605. package/node_modules/typebox/build/value/create/from_default.mjs +10 -0
  2606. package/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
  2607. package/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
  2608. package/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
  2609. package/node_modules/typebox/build/value/create/from_function.mjs +6 -0
  2610. package/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
  2611. package/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
  2612. package/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
  2613. package/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
  2614. package/node_modules/typebox/build/value/create/from_iterator.d.mts +2 -0
  2615. package/node_modules/typebox/build/value/create/from_iterator.mjs +5 -0
  2616. package/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
  2617. package/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
  2618. package/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
  2619. package/node_modules/typebox/build/value/create/from_never.mjs +5 -0
  2620. package/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
  2621. package/node_modules/typebox/build/value/create/from_null.mjs +4 -0
  2622. package/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
  2623. package/node_modules/typebox/build/value/create/from_number.mjs +8 -0
  2624. package/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
  2625. package/node_modules/typebox/build/value/create/from_object.mjs +9 -0
  2626. package/node_modules/typebox/build/value/create/from_promise.d.mts +2 -0
  2627. package/node_modules/typebox/build/value/create/from_promise.mjs +5 -0
  2628. package/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
  2629. package/node_modules/typebox/build/value/create/from_record.mjs +8 -0
  2630. package/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
  2631. package/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
  2632. package/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
  2633. package/node_modules/typebox/build/value/create/from_string.mjs +9 -0
  2634. package/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
  2635. package/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
  2636. package/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
  2637. package/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
  2638. package/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
  2639. package/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
  2640. package/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
  2641. package/node_modules/typebox/build/value/create/from_type.mjs +69 -0
  2642. package/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
  2643. package/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
  2644. package/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
  2645. package/node_modules/typebox/build/value/create/from_union.mjs +9 -0
  2646. package/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
  2647. package/node_modules/typebox/build/value/create/from_void.mjs +4 -0
  2648. package/node_modules/typebox/build/value/create/index.d.mts +2 -0
  2649. package/node_modules/typebox/build/value/create/index.mjs +2 -0
  2650. package/node_modules/typebox/build/value/default/default.d.mts +13 -0
  2651. package/node_modules/typebox/build/value/default/default.mjs +15 -0
  2652. package/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
  2653. package/node_modules/typebox/build/value/default/from_array.mjs +12 -0
  2654. package/node_modules/typebox/build/value/default/from_base.d.mts +2 -0
  2655. package/node_modules/typebox/build/value/default/from_base.mjs +5 -0
  2656. package/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
  2657. package/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
  2658. package/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
  2659. package/node_modules/typebox/build/value/default/from_default.mjs +13 -0
  2660. package/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
  2661. package/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
  2662. package/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
  2663. package/node_modules/typebox/build/value/default/from_object.mjs +32 -0
  2664. package/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
  2665. package/node_modules/typebox/build/value/default/from_record.mjs +26 -0
  2666. package/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
  2667. package/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
  2668. package/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
  2669. package/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
  2670. package/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
  2671. package/node_modules/typebox/build/value/default/from_type.mjs +27 -0
  2672. package/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
  2673. package/node_modules/typebox/build/value/default/from_union.mjs +14 -0
  2674. package/node_modules/typebox/build/value/default/index.d.mts +1 -0
  2675. package/node_modules/typebox/build/value/default/index.mjs +1 -0
  2676. package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
  2677. package/node_modules/typebox/build/value/delta/diff.mjs +135 -0
  2678. package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
  2679. package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
  2680. package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
  2681. package/node_modules/typebox/build/value/delta/index.mjs +3 -0
  2682. package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
  2683. package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
  2684. package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
  2685. package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
  2686. package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
  2687. package/node_modules/typebox/build/value/equal/index.mjs +1 -0
  2688. package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
  2689. package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
  2690. package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
  2691. package/node_modules/typebox/build/value/errors/index.mjs +1 -0
  2692. package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
  2693. package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
  2694. package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
  2695. package/node_modules/typebox/build/value/hash/index.mjs +1 -0
  2696. package/node_modules/typebox/build/value/index.d.mts +21 -0
  2697. package/node_modules/typebox/build/value/index.mjs +30 -0
  2698. package/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
  2699. package/node_modules/typebox/build/value/mutate/error.mjs +6 -0
  2700. package/node_modules/typebox/build/value/mutate/from_array.d.mts +2 -0
  2701. package/node_modules/typebox/build/value/mutate/from_array.mjs +16 -0
  2702. package/node_modules/typebox/build/value/mutate/from_object.d.mts +2 -0
  2703. package/node_modules/typebox/build/value/mutate/from_object.mjs +40 -0
  2704. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +2 -0
  2705. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +7 -0
  2706. package/node_modules/typebox/build/value/mutate/from_value.d.mts +2 -0
  2707. package/node_modules/typebox/build/value/mutate/from_value.mjs +12 -0
  2708. package/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
  2709. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  2710. package/node_modules/typebox/build/value/mutate/mutate.d.mts +11 -0
  2711. package/node_modules/typebox/build/value/mutate/mutate.mjs +41 -0
  2712. package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
  2713. package/node_modules/typebox/build/value/parse/index.mjs +1 -0
  2714. package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
  2715. package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
  2716. package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
  2717. package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
  2718. package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
  2719. package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
  2720. package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
  2721. package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
  2722. package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
  2723. package/node_modules/typebox/build/value/repair/error.mjs +8 -0
  2724. package/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
  2725. package/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
  2726. package/node_modules/typebox/build/value/repair/from_base.d.mts +2 -0
  2727. package/node_modules/typebox/build/value/repair/from_base.mjs +8 -0
  2728. package/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
  2729. package/node_modules/typebox/build/value/repair/from_enum.mjs +7 -0
  2730. package/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
  2731. package/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
  2732. package/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
  2733. package/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
  2734. package/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
  2735. package/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
  2736. package/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
  2737. package/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
  2738. package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
  2739. package/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
  2740. package/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
  2741. package/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
  2742. package/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
  2743. package/node_modules/typebox/build/value/repair/from_type.mjs +86 -0
  2744. package/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
  2745. package/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
  2746. package/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
  2747. package/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
  2748. package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
  2749. package/node_modules/typebox/build/value/repair/index.mjs +1 -0
  2750. package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
  2751. package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
  2752. package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
  2753. package/node_modules/typebox/build/value/shared/index.mjs +4 -0
  2754. package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
  2755. package/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
  2756. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +3 -0
  2757. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +36 -0
  2758. package/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
  2759. package/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
  2760. package/node_modules/typebox/build/value/value.d.mts +16 -0
  2761. package/node_modules/typebox/build/value/value.mjs +16 -0
  2762. package/node_modules/typebox/license +23 -0
  2763. package/node_modules/typebox/package.json +87 -0
  2764. package/node_modules/typebox/readme.md +356 -0
  2765. package/node_modules/undici/LICENSE +21 -0
  2766. package/node_modules/undici/README.md +750 -0
  2767. package/node_modules/undici/docs/docs/api/Agent.md +84 -0
  2768. package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
  2769. package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
  2770. package/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
  2771. package/node_modules/undici/docs/docs/api/Client.md +287 -0
  2772. package/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
  2773. package/node_modules/undici/docs/docs/api/Connector.md +115 -0
  2774. package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
  2775. package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
  2776. package/node_modules/undici/docs/docs/api/Debug.md +62 -0
  2777. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +315 -0
  2778. package/node_modules/undici/docs/docs/api/Dispatcher.md +1427 -0
  2779. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
  2780. package/node_modules/undici/docs/docs/api/Errors.md +49 -0
  2781. package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
  2782. package/node_modules/undici/docs/docs/api/Fetch.md +60 -0
  2783. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +141 -0
  2784. package/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
  2785. package/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
  2786. package/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
  2787. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
  2788. package/node_modules/undici/docs/docs/api/MockClient.md +81 -0
  2789. package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
  2790. package/node_modules/undici/docs/docs/api/MockPool.md +555 -0
  2791. package/node_modules/undici/docs/docs/api/Pool.md +84 -0
  2792. package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
  2793. package/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
  2794. package/node_modules/undici/docs/docs/api/RedirectHandler.md +98 -0
  2795. package/node_modules/undici/docs/docs/api/RetryAgent.md +49 -0
  2796. package/node_modules/undici/docs/docs/api/RetryHandler.md +116 -0
  2797. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
  2798. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +639 -0
  2799. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +274 -0
  2800. package/node_modules/undici/docs/docs/api/Util.md +25 -0
  2801. package/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
  2802. package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
  2803. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
  2804. package/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
  2805. package/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +231 -0
  2806. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
  2807. package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
  2808. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
  2809. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
  2810. package/node_modules/undici/index-fetch.js +65 -0
  2811. package/node_modules/undici/index.d.ts +3 -0
  2812. package/node_modules/undici/index.js +236 -0
  2813. package/node_modules/undici/lib/api/abort-signal.js +59 -0
  2814. package/node_modules/undici/lib/api/api-connect.js +112 -0
  2815. package/node_modules/undici/lib/api/api-pipeline.js +265 -0
  2816. package/node_modules/undici/lib/api/api-request.js +238 -0
  2817. package/node_modules/undici/lib/api/api-stream.js +270 -0
  2818. package/node_modules/undici/lib/api/api-upgrade.js +121 -0
  2819. package/node_modules/undici/lib/api/index.js +7 -0
  2820. package/node_modules/undici/lib/api/readable.js +581 -0
  2821. package/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
  2822. package/node_modules/undici/lib/cache/sqlite-cache-store.js +463 -0
  2823. package/node_modules/undici/lib/core/connect.js +153 -0
  2824. package/node_modules/undici/lib/core/constants.js +120 -0
  2825. package/node_modules/undici/lib/core/diagnostics.js +227 -0
  2826. package/node_modules/undici/lib/core/errors.js +477 -0
  2827. package/node_modules/undici/lib/core/request.js +535 -0
  2828. package/node_modules/undici/lib/core/socks5-client.js +422 -0
  2829. package/node_modules/undici/lib/core/socks5-utils.js +212 -0
  2830. package/node_modules/undici/lib/core/symbols.js +76 -0
  2831. package/node_modules/undici/lib/core/tree.js +160 -0
  2832. package/node_modules/undici/lib/core/util.js +1019 -0
  2833. package/node_modules/undici/lib/dispatcher/agent.js +172 -0
  2834. package/node_modules/undici/lib/dispatcher/balanced-pool.js +214 -0
  2835. package/node_modules/undici/lib/dispatcher/client-h1.js +1669 -0
  2836. package/node_modules/undici/lib/dispatcher/client-h2.js +1326 -0
  2837. package/node_modules/undici/lib/dispatcher/client.js +666 -0
  2838. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
  2839. package/node_modules/undici/lib/dispatcher/dispatcher.js +44 -0
  2840. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +107 -0
  2841. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
  2842. package/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
  2843. package/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
  2844. package/node_modules/undici/lib/dispatcher/pool-base.js +232 -0
  2845. package/node_modules/undici/lib/dispatcher/pool.js +143 -0
  2846. package/node_modules/undici/lib/dispatcher/proxy-agent.js +343 -0
  2847. package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  2848. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +159 -0
  2849. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +264 -0
  2850. package/node_modules/undici/lib/encoding/index.js +33 -0
  2851. package/node_modules/undici/lib/global.js +62 -0
  2852. package/node_modules/undici/lib/handler/cache-handler.js +586 -0
  2853. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
  2854. package/node_modules/undici/lib/handler/decorator-handler.js +66 -0
  2855. package/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
  2856. package/node_modules/undici/lib/handler/redirect-handler.js +192 -0
  2857. package/node_modules/undici/lib/handler/retry-handler.js +407 -0
  2858. package/node_modules/undici/lib/interceptor/cache.js +508 -0
  2859. package/node_modules/undici/lib/interceptor/decompress.js +285 -0
  2860. package/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
  2861. package/node_modules/undici/lib/interceptor/dns.js +571 -0
  2862. package/node_modules/undici/lib/interceptor/dump.js +112 -0
  2863. package/node_modules/undici/lib/interceptor/redirect.js +21 -0
  2864. package/node_modules/undici/lib/interceptor/response-error.js +95 -0
  2865. package/node_modules/undici/lib/interceptor/retry.js +19 -0
  2866. package/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
  2867. package/node_modules/undici/lib/llhttp/constants.js +531 -0
  2868. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
  2869. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
  2870. package/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
  2871. package/node_modules/undici/lib/llhttp/utils.js +12 -0
  2872. package/node_modules/undici/lib/mock/mock-agent.js +232 -0
  2873. package/node_modules/undici/lib/mock/mock-call-history.js +248 -0
  2874. package/node_modules/undici/lib/mock/mock-client.js +68 -0
  2875. package/node_modules/undici/lib/mock/mock-errors.js +29 -0
  2876. package/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
  2877. package/node_modules/undici/lib/mock/mock-pool.js +68 -0
  2878. package/node_modules/undici/lib/mock/mock-symbols.js +32 -0
  2879. package/node_modules/undici/lib/mock/mock-utils.js +501 -0
  2880. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  2881. package/node_modules/undici/lib/mock/snapshot-agent.js +363 -0
  2882. package/node_modules/undici/lib/mock/snapshot-recorder.js +623 -0
  2883. package/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
  2884. package/node_modules/undici/lib/util/cache.js +408 -0
  2885. package/node_modules/undici/lib/util/date.js +653 -0
  2886. package/node_modules/undici/lib/util/runtime-features.js +93 -0
  2887. package/node_modules/undici/lib/util/stats.js +32 -0
  2888. package/node_modules/undici/lib/util/timers.js +425 -0
  2889. package/node_modules/undici/lib/web/cache/cache.js +862 -0
  2890. package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  2891. package/node_modules/undici/lib/web/cache/util.js +45 -0
  2892. package/node_modules/undici/lib/web/cookies/constants.js +12 -0
  2893. package/node_modules/undici/lib/web/cookies/index.js +199 -0
  2894. package/node_modules/undici/lib/web/cookies/parse.js +322 -0
  2895. package/node_modules/undici/lib/web/cookies/util.js +282 -0
  2896. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
  2897. package/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
  2898. package/node_modules/undici/lib/web/eventsource/util.js +29 -0
  2899. package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
  2900. package/node_modules/undici/lib/web/fetch/body.js +503 -0
  2901. package/node_modules/undici/lib/web/fetch/constants.js +131 -0
  2902. package/node_modules/undici/lib/web/fetch/data-url.js +596 -0
  2903. package/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
  2904. package/node_modules/undici/lib/web/fetch/formdata.js +278 -0
  2905. package/node_modules/undici/lib/web/fetch/global.js +40 -0
  2906. package/node_modules/undici/lib/web/fetch/headers.js +719 -0
  2907. package/node_modules/undici/lib/web/fetch/index.js +2403 -0
  2908. package/node_modules/undici/lib/web/fetch/request.js +1115 -0
  2909. package/node_modules/undici/lib/web/fetch/response.js +641 -0
  2910. package/node_modules/undici/lib/web/fetch/util.js +1522 -0
  2911. package/node_modules/undici/lib/web/infra/index.js +229 -0
  2912. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
  2913. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
  2914. package/node_modules/undici/lib/web/webidl/index.js +1004 -0
  2915. package/node_modules/undici/lib/web/websocket/connection.js +329 -0
  2916. package/node_modules/undici/lib/web/websocket/constants.js +126 -0
  2917. package/node_modules/undici/lib/web/websocket/events.js +331 -0
  2918. package/node_modules/undici/lib/web/websocket/frame.js +127 -0
  2919. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  2920. package/node_modules/undici/lib/web/websocket/receiver.js +490 -0
  2921. package/node_modules/undici/lib/web/websocket/sender.js +109 -0
  2922. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
  2923. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +491 -0
  2924. package/node_modules/undici/lib/web/websocket/util.js +347 -0
  2925. package/node_modules/undici/lib/web/websocket/websocket.js +756 -0
  2926. package/node_modules/undici/package.json +152 -0
  2927. package/node_modules/undici/scripts/strip-comments.js +10 -0
  2928. package/node_modules/undici/types/README.md +6 -0
  2929. package/node_modules/undici/types/agent.d.ts +30 -0
  2930. package/node_modules/undici/types/api.d.ts +43 -0
  2931. package/node_modules/undici/types/balanced-pool.d.ts +30 -0
  2932. package/node_modules/undici/types/cache-interceptor.d.ts +179 -0
  2933. package/node_modules/undici/types/cache.d.ts +36 -0
  2934. package/node_modules/undici/types/client-stats.d.ts +15 -0
  2935. package/node_modules/undici/types/client.d.ts +129 -0
  2936. package/node_modules/undici/types/connector.d.ts +36 -0
  2937. package/node_modules/undici/types/content-type.d.ts +21 -0
  2938. package/node_modules/undici/types/cookies.d.ts +30 -0
  2939. package/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
  2940. package/node_modules/undici/types/dispatcher.d.ts +253 -0
  2941. package/node_modules/undici/types/dispatcher1-wrapper.d.ts +7 -0
  2942. package/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
  2943. package/node_modules/undici/types/errors.d.ts +177 -0
  2944. package/node_modules/undici/types/eventsource.d.ts +66 -0
  2945. package/node_modules/undici/types/fetch.d.ts +231 -0
  2946. package/node_modules/undici/types/formdata.d.ts +108 -0
  2947. package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
  2948. package/node_modules/undici/types/global-origin.d.ts +7 -0
  2949. package/node_modules/undici/types/h2c-client.d.ts +73 -0
  2950. package/node_modules/undici/types/handlers.d.ts +14 -0
  2951. package/node_modules/undici/types/header.d.ts +165 -0
  2952. package/node_modules/undici/types/index.d.ts +93 -0
  2953. package/node_modules/undici/types/interceptors.d.ts +80 -0
  2954. package/node_modules/undici/types/mock-agent.d.ts +68 -0
  2955. package/node_modules/undici/types/mock-call-history.d.ts +111 -0
  2956. package/node_modules/undici/types/mock-client.d.ts +27 -0
  2957. package/node_modules/undici/types/mock-errors.d.ts +12 -0
  2958. package/node_modules/undici/types/mock-interceptor.d.ts +94 -0
  2959. package/node_modules/undici/types/mock-pool.d.ts +27 -0
  2960. package/node_modules/undici/types/patch.d.ts +29 -0
  2961. package/node_modules/undici/types/pool-stats.d.ts +19 -0
  2962. package/node_modules/undici/types/pool.d.ts +39 -0
  2963. package/node_modules/undici/types/proxy-agent.d.ts +29 -0
  2964. package/node_modules/undici/types/readable.d.ts +68 -0
  2965. package/node_modules/undici/types/retry-agent.d.ts +8 -0
  2966. package/node_modules/undici/types/retry-handler.d.ts +125 -0
  2967. package/node_modules/undici/types/round-robin-pool.d.ts +39 -0
  2968. package/node_modules/undici/types/snapshot-agent.d.ts +113 -0
  2969. package/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
  2970. package/node_modules/undici/types/util.d.ts +18 -0
  2971. package/node_modules/undici/types/utility.d.ts +7 -0
  2972. package/node_modules/undici/types/webidl.d.ts +346 -0
  2973. package/node_modules/undici/types/websocket.d.ts +188 -0
  2974. package/node_modules/undici-types/LICENSE +21 -0
  2975. package/node_modules/undici-types/README.md +6 -0
  2976. package/node_modules/undici-types/agent.d.ts +32 -0
  2977. package/node_modules/undici-types/api.d.ts +43 -0
  2978. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  2979. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  2980. package/node_modules/undici-types/cache.d.ts +36 -0
  2981. package/node_modules/undici-types/client-stats.d.ts +15 -0
  2982. package/node_modules/undici-types/client.d.ts +123 -0
  2983. package/node_modules/undici-types/connector.d.ts +36 -0
  2984. package/node_modules/undici-types/content-type.d.ts +21 -0
  2985. package/node_modules/undici-types/cookies.d.ts +30 -0
  2986. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  2987. package/node_modules/undici-types/dispatcher.d.ts +279 -0
  2988. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  2989. package/node_modules/undici-types/errors.d.ts +177 -0
  2990. package/node_modules/undici-types/eventsource.d.ts +66 -0
  2991. package/node_modules/undici-types/fetch.d.ts +211 -0
  2992. package/node_modules/undici-types/formdata.d.ts +108 -0
  2993. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  2994. package/node_modules/undici-types/global-origin.d.ts +7 -0
  2995. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  2996. package/node_modules/undici-types/handlers.d.ts +15 -0
  2997. package/node_modules/undici-types/header.d.ts +160 -0
  2998. package/node_modules/undici-types/index.d.ts +91 -0
  2999. package/node_modules/undici-types/interceptors.d.ts +80 -0
  3000. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  3001. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  3002. package/node_modules/undici-types/mock-client.d.ts +27 -0
  3003. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  3004. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  3005. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  3006. package/node_modules/undici-types/package.json +55 -0
  3007. package/node_modules/undici-types/patch.d.ts +29 -0
  3008. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  3009. package/node_modules/undici-types/pool.d.ts +41 -0
  3010. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  3011. package/node_modules/undici-types/readable.d.ts +68 -0
  3012. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  3013. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  3014. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  3015. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  3016. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  3017. package/node_modules/undici-types/util.d.ts +18 -0
  3018. package/node_modules/undici-types/utility.d.ts +7 -0
  3019. package/node_modules/undici-types/webidl.d.ts +347 -0
  3020. package/node_modules/undici-types/websocket.d.ts +188 -0
  3021. package/node_modules/ws/LICENSE +20 -0
  3022. package/node_modules/ws/README.md +548 -0
  3023. package/node_modules/ws/browser.js +8 -0
  3024. package/node_modules/ws/index.js +22 -0
  3025. package/node_modules/ws/lib/buffer-util.js +131 -0
  3026. package/node_modules/ws/lib/constants.js +19 -0
  3027. package/node_modules/ws/lib/event-target.js +292 -0
  3028. package/node_modules/ws/lib/extension.js +203 -0
  3029. package/node_modules/ws/lib/limiter.js +55 -0
  3030. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  3031. package/node_modules/ws/lib/receiver.js +706 -0
  3032. package/node_modules/ws/lib/sender.js +607 -0
  3033. package/node_modules/ws/lib/stream.js +161 -0
  3034. package/node_modules/ws/lib/subprotocol.js +62 -0
  3035. package/node_modules/ws/lib/validation.js +152 -0
  3036. package/node_modules/ws/lib/websocket-server.js +554 -0
  3037. package/node_modules/ws/lib/websocket.js +1393 -0
  3038. package/node_modules/ws/package.json +70 -0
  3039. package/node_modules/ws/wrapper.mjs +21 -0
  3040. package/npm-shrinkwrap.json +512 -0
  3041. package/openclaw.plugin.json +14 -0
  3042. package/package.json +15 -9
  3043. package/dist/provider.runtime-CUUefRl3.js +0 -2
  3044. package/dist/runtime-api.monitor-D1psRR2u.js +0 -5
@@ -0,0 +1,3180 @@
1
+ import { createRequire as topLevelCreateRequire } from "module";
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ var __defProp = Object.defineProperty;
4
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
6
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
7
+ }) : x)(function(x) {
8
+ if (typeof require !== "undefined") return require.apply(this, arguments);
9
+ throw Error('Dynamic require of "' + x + '" is not supported');
10
+ });
11
+
12
+ // src/VoiceConnection.ts
13
+ import { EventEmitter as EventEmitter8 } from "events";
14
+
15
+ // src/DataStore.ts
16
+ import { GatewayOpcodes } from "discord-api-types/v10";
17
+ function createJoinVoiceChannelPayload(config) {
18
+ return {
19
+ op: GatewayOpcodes.VoiceStateUpdate,
20
+ // eslint-disable-next-line id-length
21
+ d: {
22
+ guild_id: config.guildId,
23
+ channel_id: config.channelId,
24
+ self_deaf: config.selfDeaf,
25
+ self_mute: config.selfMute
26
+ }
27
+ };
28
+ }
29
+ __name(createJoinVoiceChannelPayload, "createJoinVoiceChannelPayload");
30
+ var groups = /* @__PURE__ */ new Map();
31
+ groups.set("default", /* @__PURE__ */ new Map());
32
+ function getOrCreateGroup(group) {
33
+ const existing = groups.get(group);
34
+ if (existing) return existing;
35
+ const map = /* @__PURE__ */ new Map();
36
+ groups.set(group, map);
37
+ return map;
38
+ }
39
+ __name(getOrCreateGroup, "getOrCreateGroup");
40
+ function getGroups() {
41
+ return groups;
42
+ }
43
+ __name(getGroups, "getGroups");
44
+ function getVoiceConnections(group = "default") {
45
+ return groups.get(group);
46
+ }
47
+ __name(getVoiceConnections, "getVoiceConnections");
48
+ function getVoiceConnection(guildId, group = "default") {
49
+ return getVoiceConnections(group)?.get(guildId);
50
+ }
51
+ __name(getVoiceConnection, "getVoiceConnection");
52
+ function untrackVoiceConnection(voiceConnection) {
53
+ return getVoiceConnections(voiceConnection.joinConfig.group)?.delete(voiceConnection.joinConfig.guildId);
54
+ }
55
+ __name(untrackVoiceConnection, "untrackVoiceConnection");
56
+ function trackVoiceConnection(voiceConnection) {
57
+ return getOrCreateGroup(voiceConnection.joinConfig.group).set(voiceConnection.joinConfig.guildId, voiceConnection);
58
+ }
59
+ __name(trackVoiceConnection, "trackVoiceConnection");
60
+ var FRAME_LENGTH = 20;
61
+ var audioCycleInterval;
62
+ var nextTime = -1;
63
+ var audioPlayers = [];
64
+ function audioCycleStep() {
65
+ if (nextTime === -1) return;
66
+ nextTime += FRAME_LENGTH;
67
+ const available = audioPlayers.filter((player) => player.checkPlayable());
68
+ for (const player of available) {
69
+ player["_stepDispatch"]();
70
+ }
71
+ prepareNextAudioFrame(available);
72
+ }
73
+ __name(audioCycleStep, "audioCycleStep");
74
+ function prepareNextAudioFrame(players) {
75
+ const nextPlayer = players.shift();
76
+ if (!nextPlayer) {
77
+ if (nextTime !== -1) {
78
+ audioCycleInterval = setTimeout(() => audioCycleStep(), Math.max(1, nextTime - Date.now()));
79
+ }
80
+ return;
81
+ }
82
+ nextPlayer["_stepPrepare"]();
83
+ setImmediate(() => prepareNextAudioFrame(players));
84
+ }
85
+ __name(prepareNextAudioFrame, "prepareNextAudioFrame");
86
+ function hasAudioPlayer(target) {
87
+ return audioPlayers.includes(target);
88
+ }
89
+ __name(hasAudioPlayer, "hasAudioPlayer");
90
+ function addAudioPlayer(player) {
91
+ if (hasAudioPlayer(player)) return player;
92
+ audioPlayers.push(player);
93
+ if (audioPlayers.length === 1) {
94
+ nextTime = Date.now();
95
+ setImmediate(() => audioCycleStep());
96
+ }
97
+ return player;
98
+ }
99
+ __name(addAudioPlayer, "addAudioPlayer");
100
+ function deleteAudioPlayer(player) {
101
+ const index = audioPlayers.indexOf(player);
102
+ if (index === -1) return;
103
+ audioPlayers.splice(index, 1);
104
+ if (audioPlayers.length === 0) {
105
+ nextTime = -1;
106
+ if (audioCycleInterval !== void 0) clearTimeout(audioCycleInterval);
107
+ }
108
+ }
109
+ __name(deleteAudioPlayer, "deleteAudioPlayer");
110
+
111
+ // src/networking/Networking.ts
112
+ import { Buffer as Buffer7 } from "buffer";
113
+ import crypto from "crypto";
114
+ import { EventEmitter as EventEmitter5 } from "events";
115
+ import { VoiceEncryptionMode, VoiceOpcodes as VoiceOpcodes2 } from "discord-api-types/voice/v8";
116
+
117
+ // src/util/Secretbox.ts
118
+ import { Buffer as Buffer2 } from "buffer";
119
+ var libs = {
120
+ "sodium-native": /* @__PURE__ */ __name((sodium) => ({
121
+ crypto_aead_xchacha20poly1305_ietf_decrypt: /* @__PURE__ */ __name((cipherText, additionalData, nonce2, key) => {
122
+ const message = Buffer2.alloc(cipherText.length - sodium.crypto_aead_xchacha20poly1305_ietf_ABYTES);
123
+ sodium.crypto_aead_xchacha20poly1305_ietf_decrypt(message, null, cipherText, additionalData, nonce2, key);
124
+ return message;
125
+ }, "crypto_aead_xchacha20poly1305_ietf_decrypt"),
126
+ crypto_aead_xchacha20poly1305_ietf_encrypt: /* @__PURE__ */ __name((plaintext, additionalData, nonce2, key) => {
127
+ const cipherText = Buffer2.alloc(plaintext.length + sodium.crypto_aead_xchacha20poly1305_ietf_ABYTES);
128
+ sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(cipherText, plaintext, additionalData, null, nonce2, key);
129
+ return cipherText;
130
+ }, "crypto_aead_xchacha20poly1305_ietf_encrypt")
131
+ }), "sodium-native"),
132
+ sodium: /* @__PURE__ */ __name((sodium) => ({
133
+ crypto_aead_xchacha20poly1305_ietf_decrypt: /* @__PURE__ */ __name((cipherText, additionalData, nonce2, key) => sodium.api.crypto_aead_xchacha20poly1305_ietf_decrypt(cipherText, additionalData, null, nonce2, key), "crypto_aead_xchacha20poly1305_ietf_decrypt"),
134
+ crypto_aead_xchacha20poly1305_ietf_encrypt: /* @__PURE__ */ __name((plaintext, additionalData, nonce2, key) => sodium.api.crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext, additionalData, null, nonce2, key), "crypto_aead_xchacha20poly1305_ietf_encrypt")
135
+ }), "sodium"),
136
+ "libsodium-wrappers": /* @__PURE__ */ __name((sodium) => ({
137
+ crypto_aead_xchacha20poly1305_ietf_decrypt: /* @__PURE__ */ __name((cipherText, additionalData, nonce2, key) => sodium.crypto_aead_xchacha20poly1305_ietf_decrypt(null, cipherText, additionalData, nonce2, key), "crypto_aead_xchacha20poly1305_ietf_decrypt"),
138
+ crypto_aead_xchacha20poly1305_ietf_encrypt: /* @__PURE__ */ __name((plaintext, additionalData, nonce2, key) => sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext, additionalData, null, nonce2, key), "crypto_aead_xchacha20poly1305_ietf_encrypt")
139
+ }), "libsodium-wrappers"),
140
+ "@stablelib/xchacha20poly1305": /* @__PURE__ */ __name((stablelib) => ({
141
+ crypto_aead_xchacha20poly1305_ietf_decrypt(plaintext, additionalData, nonce2, key) {
142
+ const crypto3 = new stablelib.XChaCha20Poly1305(key);
143
+ return crypto3.open(nonce2, plaintext, additionalData);
144
+ },
145
+ crypto_aead_xchacha20poly1305_ietf_encrypt(cipherText, additionalData, nonce2, key) {
146
+ const crypto3 = new stablelib.XChaCha20Poly1305(key);
147
+ return crypto3.seal(nonce2, cipherText, additionalData);
148
+ }
149
+ }), "@stablelib/xchacha20poly1305"),
150
+ "@noble/ciphers/chacha.js": /* @__PURE__ */ __name((noble) => ({
151
+ crypto_aead_xchacha20poly1305_ietf_decrypt(cipherText, additionalData, nonce2, key) {
152
+ const chacha = noble.xchacha20poly1305(key, nonce2, additionalData);
153
+ return chacha.decrypt(cipherText);
154
+ },
155
+ crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext, additionalData, nonce2, key) {
156
+ const chacha = noble.xchacha20poly1305(key, nonce2, additionalData);
157
+ return chacha.encrypt(plaintext);
158
+ }
159
+ }), "@noble/ciphers/chacha.js")
160
+ };
161
+ var fallbackError = /* @__PURE__ */ __name(() => {
162
+ throw new Error(
163
+ `Cannot play audio as no valid encryption package is installed.
164
+ - Install one of:
165
+ - sodium
166
+ - libsodium-wrappers
167
+ - @stablelib/xchacha20poly1305
168
+ - @noble/ciphers.
169
+ - Use the generateDependencyReport() function for more information.
170
+ `
171
+ );
172
+ }, "fallbackError");
173
+ var methods = {
174
+ crypto_aead_xchacha20poly1305_ietf_encrypt: fallbackError,
175
+ crypto_aead_xchacha20poly1305_ietf_decrypt: fallbackError
176
+ };
177
+ var secretboxLoadPromise = new Promise(async (resolve2) => {
178
+ for (const libName of Object.keys(libs)) {
179
+ try {
180
+ const lib = await import(libName);
181
+ if (libName === "libsodium-wrappers" && lib.ready) {
182
+ await lib.ready;
183
+ }
184
+ Object.assign(methods, libs[libName](lib));
185
+ break;
186
+ } catch {
187
+ }
188
+ }
189
+ resolve2();
190
+ });
191
+
192
+ // src/util/constants.ts
193
+ var RTP_OPUS_PAYLOAD_TYPE = 120;
194
+
195
+ // src/util/util.ts
196
+ var noop = /* @__PURE__ */ __name(() => {
197
+ }, "noop");
198
+
199
+ // src/networking/DAVESession.ts
200
+ import { Buffer as Buffer4 } from "buffer";
201
+ import { EventEmitter as EventEmitter2 } from "events";
202
+ import Davey from "@snazzah/davey";
203
+
204
+ // src/audio/AudioPlayer.ts
205
+ import { Buffer as Buffer3 } from "buffer";
206
+ import { EventEmitter } from "events";
207
+
208
+ // src/audio/AudioPlayerError.ts
209
+ var AudioPlayerError = class extends Error {
210
+ static {
211
+ __name(this, "AudioPlayerError");
212
+ }
213
+ /**
214
+ * The resource associated with the audio player at the time the error was thrown.
215
+ */
216
+ resource;
217
+ constructor(error, resource) {
218
+ super(error.message);
219
+ this.resource = resource;
220
+ this.name = error.name;
221
+ this.stack = error.stack;
222
+ }
223
+ };
224
+
225
+ // src/audio/PlayerSubscription.ts
226
+ var PlayerSubscription = class {
227
+ static {
228
+ __name(this, "PlayerSubscription");
229
+ }
230
+ /**
231
+ * The voice connection of this subscription.
232
+ */
233
+ connection;
234
+ /**
235
+ * The audio player of this subscription.
236
+ */
237
+ player;
238
+ constructor(connection, player) {
239
+ this.connection = connection;
240
+ this.player = player;
241
+ }
242
+ /**
243
+ * Unsubscribes the connection from the audio player, meaning that the
244
+ * audio player cannot stream audio to it until a new subscription is made.
245
+ */
246
+ unsubscribe() {
247
+ this.connection["onSubscriptionRemoved"](this);
248
+ this.player["unsubscribe"](this);
249
+ }
250
+ };
251
+
252
+ // src/audio/AudioPlayer.ts
253
+ var SILENCE_FRAME = Buffer3.from([248, 255, 254]);
254
+ var NoSubscriberBehavior = /* @__PURE__ */ ((NoSubscriberBehavior2) => {
255
+ NoSubscriberBehavior2["Pause"] = "pause";
256
+ NoSubscriberBehavior2["Play"] = "play";
257
+ NoSubscriberBehavior2["Stop"] = "stop";
258
+ return NoSubscriberBehavior2;
259
+ })(NoSubscriberBehavior || {});
260
+ var AudioPlayerStatus = /* @__PURE__ */ ((AudioPlayerStatus2) => {
261
+ AudioPlayerStatus2["AutoPaused"] = "autopaused";
262
+ AudioPlayerStatus2["Buffering"] = "buffering";
263
+ AudioPlayerStatus2["Idle"] = "idle";
264
+ AudioPlayerStatus2["Paused"] = "paused";
265
+ AudioPlayerStatus2["Playing"] = "playing";
266
+ return AudioPlayerStatus2;
267
+ })(AudioPlayerStatus || {});
268
+ function stringifyState(state) {
269
+ return JSON.stringify({
270
+ ...state,
271
+ resource: Reflect.has(state, "resource"),
272
+ stepTimeout: Reflect.has(state, "stepTimeout")
273
+ });
274
+ }
275
+ __name(stringifyState, "stringifyState");
276
+ var AudioPlayer = class extends EventEmitter {
277
+ static {
278
+ __name(this, "AudioPlayer");
279
+ }
280
+ /**
281
+ * The state that the AudioPlayer is in.
282
+ */
283
+ _state;
284
+ /**
285
+ * A list of VoiceConnections that are registered to this AudioPlayer. The player will attempt to play audio
286
+ * to the streams in this list.
287
+ */
288
+ subscribers = [];
289
+ /**
290
+ * The behavior that the player should follow when it enters certain situations.
291
+ */
292
+ behaviors;
293
+ /**
294
+ * The debug logger function, if debugging is enabled.
295
+ */
296
+ debug;
297
+ /**
298
+ * Creates a new AudioPlayer.
299
+ */
300
+ constructor(options = {}) {
301
+ super();
302
+ this._state = { status: "idle" /* Idle */ };
303
+ this.behaviors = {
304
+ noSubscriber: "pause" /* Pause */,
305
+ maxMissedFrames: 5,
306
+ ...options.behaviors
307
+ };
308
+ this.debug = options.debug === false ? null : (message) => this.emit("debug", message);
309
+ }
310
+ /**
311
+ * A list of subscribed voice connections that can currently receive audio to play.
312
+ */
313
+ get playable() {
314
+ return this.subscribers.filter(({ connection }) => connection.state.status === "ready" /* Ready */).map(({ connection }) => connection);
315
+ }
316
+ /**
317
+ * Subscribes a VoiceConnection to the audio player's play list. If the VoiceConnection is already subscribed,
318
+ * then the existing subscription is used.
319
+ *
320
+ * @remarks
321
+ * This method should not be directly called. Instead, use VoiceConnection#subscribe.
322
+ * @param connection - The connection to subscribe
323
+ * @returns The new subscription if the voice connection is not yet subscribed, otherwise the existing subscription
324
+ */
325
+ // @ts-ignore
326
+ subscribe(connection) {
327
+ const existingSubscription = this.subscribers.find((subscription) => subscription.connection === connection);
328
+ if (!existingSubscription) {
329
+ const subscription = new PlayerSubscription(connection, this);
330
+ this.subscribers.push(subscription);
331
+ setImmediate(() => this.emit("subscribe", subscription));
332
+ return subscription;
333
+ }
334
+ return existingSubscription;
335
+ }
336
+ /**
337
+ * Unsubscribes a subscription - i.e. removes a voice connection from the play list of the audio player.
338
+ *
339
+ * @remarks
340
+ * This method should not be directly called. Instead, use PlayerSubscription#unsubscribe.
341
+ * @param subscription - The subscription to remove
342
+ * @returns Whether or not the subscription existed on the player and was removed
343
+ */
344
+ // @ts-ignore
345
+ unsubscribe(subscription) {
346
+ const index = this.subscribers.indexOf(subscription);
347
+ const exists = index !== -1;
348
+ if (exists) {
349
+ this.subscribers.splice(index, 1);
350
+ subscription.connection.setSpeaking(false);
351
+ this.emit("unsubscribe", subscription);
352
+ }
353
+ return exists;
354
+ }
355
+ /**
356
+ * The state that the player is in.
357
+ *
358
+ * @remarks
359
+ * The setter will perform clean-up operations where necessary.
360
+ */
361
+ get state() {
362
+ return this._state;
363
+ }
364
+ set state(newState) {
365
+ const oldState = this._state;
366
+ const newResource = Reflect.get(newState, "resource");
367
+ if (oldState.status !== "idle" /* Idle */ && oldState.resource !== newResource) {
368
+ oldState.resource.playStream.on("error", noop);
369
+ oldState.resource.playStream.off("error", oldState.onStreamError);
370
+ oldState.resource.audioPlayer = void 0;
371
+ oldState.resource.playStream.destroy();
372
+ oldState.resource.playStream.read();
373
+ }
374
+ if (oldState.status === "buffering" /* Buffering */ && (newState.status !== "buffering" /* Buffering */ || newState.resource !== oldState.resource)) {
375
+ oldState.resource.playStream.off("end", oldState.onFailureCallback);
376
+ oldState.resource.playStream.off("close", oldState.onFailureCallback);
377
+ oldState.resource.playStream.off("finish", oldState.onFailureCallback);
378
+ oldState.resource.playStream.off("readable", oldState.onReadableCallback);
379
+ }
380
+ if (newState.status === "idle" /* Idle */) {
381
+ this._signalStopSpeaking();
382
+ deleteAudioPlayer(this);
383
+ }
384
+ if (newResource) {
385
+ addAudioPlayer(this);
386
+ }
387
+ const didChangeResources = oldState.status !== "idle" /* Idle */ && newState.status === "playing" /* Playing */ && oldState.resource !== newState.resource;
388
+ this._state = newState;
389
+ this.emit("stateChange", oldState, this._state);
390
+ if (oldState.status !== newState.status || didChangeResources) {
391
+ this.emit(newState.status, oldState, this._state);
392
+ }
393
+ this.debug?.(`state change:
394
+ from ${stringifyState(oldState)}
395
+ to ${stringifyState(newState)}`);
396
+ }
397
+ /**
398
+ * Plays a new resource on the player. If the player is already playing a resource, the existing resource is destroyed
399
+ * (it cannot be reused, even in another player) and is replaced with the new resource.
400
+ *
401
+ * @remarks
402
+ * The player will transition to the Playing state once playback begins, and will return to the Idle state once
403
+ * playback is ended.
404
+ *
405
+ * If the player was previously playing a resource and this method is called, the player will not transition to the
406
+ * Idle state during the swap over.
407
+ * @param resource - The resource to play
408
+ * @throws Will throw if attempting to play an audio resource that has already ended, or is being played by another player
409
+ */
410
+ play(resource) {
411
+ if (resource.ended) {
412
+ throw new Error("Cannot play a resource that has already ended.");
413
+ }
414
+ if (resource.audioPlayer) {
415
+ if (resource.audioPlayer === this) {
416
+ return;
417
+ }
418
+ throw new Error("Resource is already being played by another audio player.");
419
+ }
420
+ resource.audioPlayer = this;
421
+ const onStreamError = /* @__PURE__ */ __name((error) => {
422
+ if (this.state.status !== "idle" /* Idle */) {
423
+ this.emit("error", new AudioPlayerError(error, this.state.resource));
424
+ }
425
+ if (this.state.status !== "idle" /* Idle */ && this.state.resource === resource) {
426
+ this.state = {
427
+ status: "idle" /* Idle */
428
+ };
429
+ }
430
+ }, "onStreamError");
431
+ resource.playStream.once("error", onStreamError);
432
+ if (resource.started) {
433
+ this.state = {
434
+ status: "playing" /* Playing */,
435
+ missedFrames: 0,
436
+ playbackDuration: 0,
437
+ resource,
438
+ onStreamError
439
+ };
440
+ } else {
441
+ const onReadableCallback = /* @__PURE__ */ __name(() => {
442
+ if (this.state.status === "buffering" /* Buffering */ && this.state.resource === resource) {
443
+ this.state = {
444
+ status: "playing" /* Playing */,
445
+ missedFrames: 0,
446
+ playbackDuration: 0,
447
+ resource,
448
+ onStreamError
449
+ };
450
+ }
451
+ }, "onReadableCallback");
452
+ const onFailureCallback = /* @__PURE__ */ __name(() => {
453
+ if (this.state.status === "buffering" /* Buffering */ && this.state.resource === resource) {
454
+ this.state = {
455
+ status: "idle" /* Idle */
456
+ };
457
+ }
458
+ }, "onFailureCallback");
459
+ resource.playStream.once("readable", onReadableCallback);
460
+ resource.playStream.once("end", onFailureCallback);
461
+ resource.playStream.once("close", onFailureCallback);
462
+ resource.playStream.once("finish", onFailureCallback);
463
+ this.state = {
464
+ status: "buffering" /* Buffering */,
465
+ resource,
466
+ onReadableCallback,
467
+ onFailureCallback,
468
+ onStreamError
469
+ };
470
+ }
471
+ }
472
+ /**
473
+ * Pauses playback of the current resource, if any.
474
+ *
475
+ * @param interpolateSilence - If true, the player will play 5 packets of silence after pausing to prevent audio glitches
476
+ * @returns `true` if the player was successfully paused, otherwise `false`
477
+ */
478
+ pause(interpolateSilence = true) {
479
+ if (this.state.status !== "playing" /* Playing */) return false;
480
+ this.state = {
481
+ ...this.state,
482
+ status: "paused" /* Paused */,
483
+ silencePacketsRemaining: interpolateSilence ? 5 : 0
484
+ };
485
+ return true;
486
+ }
487
+ /**
488
+ * Unpauses playback of the current resource, if any.
489
+ *
490
+ * @returns `true` if the player was successfully unpaused, otherwise `false`
491
+ */
492
+ unpause() {
493
+ if (this.state.status !== "paused" /* Paused */) return false;
494
+ this.state = {
495
+ ...this.state,
496
+ status: "playing" /* Playing */,
497
+ missedFrames: 0
498
+ };
499
+ return true;
500
+ }
501
+ /**
502
+ * Stops playback of the current resource and destroys the resource. The player will either transition to the Idle state,
503
+ * or remain in its current state until the silence padding frames of the resource have been played.
504
+ *
505
+ * @param force - If true, will force the player to enter the Idle state even if the resource has silence padding frames
506
+ * @returns `true` if the player will come to a stop, otherwise `false`
507
+ */
508
+ stop(force = false) {
509
+ if (this.state.status === "idle" /* Idle */) return false;
510
+ if (force || this.state.resource.silencePaddingFrames === 0) {
511
+ this.state = {
512
+ status: "idle" /* Idle */
513
+ };
514
+ } else if (this.state.resource.silenceRemaining === -1) {
515
+ this.state.resource.silenceRemaining = this.state.resource.silencePaddingFrames;
516
+ }
517
+ return true;
518
+ }
519
+ /**
520
+ * Checks whether the underlying resource (if any) is playable (readable)
521
+ *
522
+ * @returns `true` if the resource is playable, otherwise `false`
523
+ */
524
+ checkPlayable() {
525
+ const state = this._state;
526
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return false;
527
+ if (!state.resource.readable) {
528
+ this.state = {
529
+ status: "idle" /* Idle */
530
+ };
531
+ return false;
532
+ }
533
+ return true;
534
+ }
535
+ /**
536
+ * Called roughly every 20ms by the global audio player timer. Dispatches any audio packets that are buffered
537
+ * by the active connections of this audio player.
538
+ */
539
+ // @ts-ignore
540
+ _stepDispatch() {
541
+ const state = this._state;
542
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return;
543
+ for (const connection of this.playable) {
544
+ connection.dispatchAudio();
545
+ }
546
+ }
547
+ /**
548
+ * Called roughly every 20ms by the global audio player timer. Attempts to read an audio packet from the
549
+ * underlying resource of the stream, and then has all the active connections of the audio player prepare it
550
+ * (encrypt it, append header data) so that it is ready to play at the start of the next cycle.
551
+ */
552
+ // @ts-ignore
553
+ _stepPrepare() {
554
+ const state = this._state;
555
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return;
556
+ const playable = this.playable;
557
+ if (state.status === "autopaused" /* AutoPaused */ && playable.length > 0) {
558
+ this.state = {
559
+ ...state,
560
+ status: "playing" /* Playing */,
561
+ missedFrames: 0
562
+ };
563
+ }
564
+ if (state.status === "paused" /* Paused */ || state.status === "autopaused" /* AutoPaused */) {
565
+ if (state.silencePacketsRemaining > 0) {
566
+ state.silencePacketsRemaining--;
567
+ this._preparePacket(SILENCE_FRAME, playable, state);
568
+ if (state.silencePacketsRemaining === 0) {
569
+ this._signalStopSpeaking();
570
+ }
571
+ }
572
+ return;
573
+ }
574
+ if (playable.length === 0) {
575
+ if (this.behaviors.noSubscriber === "pause" /* Pause */) {
576
+ this.state = {
577
+ ...state,
578
+ status: "autopaused" /* AutoPaused */,
579
+ silencePacketsRemaining: 5
580
+ };
581
+ return;
582
+ } else if (this.behaviors.noSubscriber === "stop" /* Stop */) {
583
+ this.stop(true);
584
+ }
585
+ }
586
+ const packet = state.resource.read();
587
+ if (state.status === "playing" /* Playing */) {
588
+ if (packet) {
589
+ this._preparePacket(packet, playable, state);
590
+ state.missedFrames = 0;
591
+ } else {
592
+ this._preparePacket(SILENCE_FRAME, playable, state);
593
+ state.missedFrames++;
594
+ if (state.missedFrames >= this.behaviors.maxMissedFrames) {
595
+ this.stop();
596
+ }
597
+ }
598
+ }
599
+ }
600
+ /**
601
+ * Signals to all the subscribed connections that they should send a packet to Discord indicating
602
+ * they are no longer speaking. Called once playback of a resource ends.
603
+ */
604
+ _signalStopSpeaking() {
605
+ for (const { connection } of this.subscribers) {
606
+ connection.setSpeaking(false);
607
+ }
608
+ }
609
+ /**
610
+ * Instructs the given connections to each prepare this packet to be played at the start of the
611
+ * next cycle.
612
+ *
613
+ * @param packet - The Opus packet to be prepared by each receiver
614
+ * @param receivers - The connections that should play this packet
615
+ */
616
+ _preparePacket(packet, receivers, state) {
617
+ state.playbackDuration += 20;
618
+ for (const connection of receivers) {
619
+ connection.prepareAudioPacket(packet);
620
+ }
621
+ }
622
+ };
623
+ function createAudioPlayer(options) {
624
+ return new AudioPlayer(options);
625
+ }
626
+ __name(createAudioPlayer, "createAudioPlayer");
627
+
628
+ // src/networking/DAVESession.ts
629
+ var TRANSITION_EXPIRY = 10;
630
+ var TRANSITION_EXPIRY_PENDING_DOWNGRADE = 24;
631
+ var DEFAULT_DECRYPTION_FAILURE_TOLERANCE = 36;
632
+ function getMaxProtocolVersion() {
633
+ return Davey.DAVE_PROTOCOL_VERSION;
634
+ }
635
+ __name(getMaxProtocolVersion, "getMaxProtocolVersion");
636
+ var DAVESession = class extends EventEmitter2 {
637
+ static {
638
+ __name(this, "DAVESession");
639
+ }
640
+ /**
641
+ * The channel id represented by this session.
642
+ */
643
+ channelId;
644
+ /**
645
+ * The user id represented by this session.
646
+ */
647
+ userId;
648
+ /**
649
+ * The protocol version being used.
650
+ */
651
+ protocolVersion;
652
+ /**
653
+ * The last transition id executed.
654
+ */
655
+ lastTransitionId;
656
+ /**
657
+ * The pending transitions, mapped by their ID and the protocol version.
658
+ */
659
+ pendingTransitions = /* @__PURE__ */ new Map();
660
+ /**
661
+ * Whether this session was downgraded previously.
662
+ */
663
+ downgraded = false;
664
+ /**
665
+ * The amount of consecutive failures encountered when decrypting.
666
+ */
667
+ consecutiveFailures = 0;
668
+ /**
669
+ * The amount of consecutive failures needed to attempt to recover.
670
+ */
671
+ failureTolerance;
672
+ /**
673
+ * Whether this session is currently re-initializing due to an invalid transition.
674
+ */
675
+ reinitializing = false;
676
+ /**
677
+ * The underlying DAVE Session of this wrapper.
678
+ */
679
+ session;
680
+ constructor(protocolVersion, userId, channelId, options) {
681
+ super();
682
+ this.protocolVersion = protocolVersion;
683
+ this.userId = userId;
684
+ this.channelId = channelId;
685
+ this.failureTolerance = options.decryptionFailureTolerance ?? DEFAULT_DECRYPTION_FAILURE_TOLERANCE;
686
+ }
687
+ /**
688
+ * The current voice privacy code of the session. Will be `null` if there is no session.
689
+ */
690
+ get voicePrivacyCode() {
691
+ if (this.protocolVersion === 0 || !this.session?.voicePrivacyCode) {
692
+ return null;
693
+ }
694
+ return this.session.voicePrivacyCode;
695
+ }
696
+ /**
697
+ * Gets the verification code for a user in the session.
698
+ *
699
+ * @throws Will throw if there is not an active session or the user id provided is invalid or not in the session.
700
+ */
701
+ async getVerificationCode(userId) {
702
+ if (!this.session) throw new Error("Session not available");
703
+ return this.session.getVerificationCode(userId);
704
+ }
705
+ /**
706
+ * Re-initializes (or initializes) the underlying session.
707
+ */
708
+ reinit() {
709
+ if (this.protocolVersion > 0) {
710
+ if (this.session) {
711
+ this.session.reinit(this.protocolVersion, this.userId, this.channelId);
712
+ this.emit("debug", `Session reinitialized for protocol version ${this.protocolVersion}`);
713
+ } else {
714
+ this.session = new Davey.DAVESession(this.protocolVersion, this.userId, this.channelId);
715
+ this.emit("debug", `Session initialized for protocol version ${this.protocolVersion}`);
716
+ }
717
+ this.emit("keyPackage", this.session.getSerializedKeyPackage());
718
+ } else if (this.session) {
719
+ this.session.reset();
720
+ this.session.setPassthroughMode(true, TRANSITION_EXPIRY);
721
+ this.emit("debug", "Session reset");
722
+ }
723
+ }
724
+ /**
725
+ * Set the external sender for this session.
726
+ *
727
+ * @param externalSender - The external sender
728
+ */
729
+ setExternalSender(externalSender) {
730
+ if (!this.session) throw new Error("No session available");
731
+ this.session.setExternalSender(externalSender);
732
+ this.emit("debug", "Set MLS external sender");
733
+ }
734
+ /**
735
+ * Prepare for a transition.
736
+ *
737
+ * @param data - The transition data
738
+ * @returns Whether we should signal to the voice server that we are ready
739
+ */
740
+ prepareTransition(data) {
741
+ this.emit("debug", `Preparing for transition (${data.transition_id}, v${data.protocol_version})`);
742
+ this.pendingTransitions.set(data.transition_id, data.protocol_version);
743
+ if (data.transition_id === 0) {
744
+ this.executeTransition(data.transition_id);
745
+ } else {
746
+ if (data.protocol_version === 0) this.session?.setPassthroughMode(true, TRANSITION_EXPIRY_PENDING_DOWNGRADE);
747
+ return true;
748
+ }
749
+ return false;
750
+ }
751
+ /**
752
+ * Execute a transition.
753
+ *
754
+ * @param transitionId - The transition id to execute on
755
+ */
756
+ executeTransition(transitionId) {
757
+ this.emit("debug", `Executing transition (${transitionId})`);
758
+ if (!this.pendingTransitions.has(transitionId)) {
759
+ this.emit("debug", `Received execute transition, but we don't have a pending transition for ${transitionId}`);
760
+ return false;
761
+ }
762
+ const oldVersion = this.protocolVersion;
763
+ this.protocolVersion = this.pendingTransitions.get(transitionId);
764
+ if (oldVersion !== this.protocolVersion && this.protocolVersion === 0) {
765
+ this.downgraded = true;
766
+ this.emit("debug", "Session downgraded");
767
+ } else if (transitionId > 0 && this.downgraded) {
768
+ this.downgraded = false;
769
+ this.session?.setPassthroughMode(true, TRANSITION_EXPIRY);
770
+ this.emit("debug", "Session upgraded");
771
+ }
772
+ this.reinitializing = false;
773
+ this.lastTransitionId = transitionId;
774
+ this.emit("debug", `Transition executed (v${oldVersion} -> v${this.protocolVersion}, id: ${transitionId})`);
775
+ this.pendingTransitions.delete(transitionId);
776
+ return true;
777
+ }
778
+ /**
779
+ * Prepare for a new epoch.
780
+ *
781
+ * @param data - The epoch data
782
+ */
783
+ prepareEpoch(data) {
784
+ this.emit("debug", `Preparing for epoch (${data.epoch})`);
785
+ if (data.epoch === 1) {
786
+ this.protocolVersion = data.protocol_version;
787
+ this.reinit();
788
+ }
789
+ }
790
+ /**
791
+ * Recover from an invalid transition by re-initializing.
792
+ *
793
+ * @param transitionId - The transition id to invalidate
794
+ */
795
+ recoverFromInvalidTransition(transitionId) {
796
+ if (this.reinitializing) return;
797
+ this.emit("debug", `Invalidating transition ${transitionId}`);
798
+ this.reinitializing = true;
799
+ this.consecutiveFailures = 0;
800
+ this.emit("invalidateTransition", transitionId);
801
+ this.reinit();
802
+ }
803
+ /**
804
+ * Processes proposals from the MLS group.
805
+ *
806
+ * @param payload - The binary message payload
807
+ * @param connectedClients - The set of connected client IDs
808
+ * @returns The payload to send back to the voice server, if there is one
809
+ */
810
+ processProposals(payload, connectedClients) {
811
+ if (!this.session) throw new Error("No session available");
812
+ const optype = payload.readUInt8(0);
813
+ const { commit, welcome } = this.session.processProposals(
814
+ optype,
815
+ payload.subarray(1),
816
+ Array.from(connectedClients)
817
+ );
818
+ this.emit("debug", "MLS proposals processed");
819
+ if (!commit) return;
820
+ return welcome ? Buffer4.concat([commit, welcome]) : commit;
821
+ }
822
+ /**
823
+ * Processes a commit from the MLS group.
824
+ *
825
+ * @param payload - The payload
826
+ * @returns The transaction id and whether it was successful
827
+ */
828
+ processCommit(payload) {
829
+ if (!this.session) throw new Error("No session available");
830
+ const transitionId = payload.readUInt16BE(0);
831
+ try {
832
+ this.session.processCommit(payload.subarray(2));
833
+ if (transitionId === 0) {
834
+ this.reinitializing = false;
835
+ this.lastTransitionId = transitionId;
836
+ } else {
837
+ this.pendingTransitions.set(transitionId, this.protocolVersion);
838
+ }
839
+ this.emit("debug", `MLS commit processed (transition id: ${transitionId})`);
840
+ return { transitionId, success: true };
841
+ } catch (error) {
842
+ this.emit("debug", `MLS commit errored from transition ${transitionId}: ${error}`);
843
+ this.recoverFromInvalidTransition(transitionId);
844
+ return { transitionId, success: false };
845
+ }
846
+ }
847
+ /**
848
+ * Processes a welcome from the MLS group.
849
+ *
850
+ * @param payload - The payload
851
+ * @returns The transaction id and whether it was successful
852
+ */
853
+ processWelcome(payload) {
854
+ if (!this.session) throw new Error("No session available");
855
+ const transitionId = payload.readUInt16BE(0);
856
+ try {
857
+ this.session.processWelcome(payload.subarray(2));
858
+ if (transitionId === 0) {
859
+ this.reinitializing = false;
860
+ this.lastTransitionId = transitionId;
861
+ } else {
862
+ this.pendingTransitions.set(transitionId, this.protocolVersion);
863
+ }
864
+ this.emit("debug", `MLS welcome processed (transition id: ${transitionId})`);
865
+ return { transitionId, success: true };
866
+ } catch (error) {
867
+ this.emit("debug", `MLS welcome errored from transition ${transitionId}: ${error}`);
868
+ this.recoverFromInvalidTransition(transitionId);
869
+ return { transitionId, success: false };
870
+ }
871
+ }
872
+ /**
873
+ * Encrypt a packet using end-to-end encryption.
874
+ *
875
+ * @param packet - The packet to encrypt
876
+ */
877
+ encrypt(packet) {
878
+ if (this.protocolVersion === 0 || !this.session?.ready || packet.equals(SILENCE_FRAME)) return packet;
879
+ return this.session.encryptOpus(packet);
880
+ }
881
+ /**
882
+ * Decrypt a packet using end-to-end encryption.
883
+ *
884
+ * @param packet - The packet to decrypt
885
+ * @param userId - The user id that sent the packet
886
+ * @returns The decrypted packet, or `null` if the decryption failed but should be ignored
887
+ */
888
+ decrypt(packet, userId) {
889
+ const canDecrypt = this.session?.ready && (this.protocolVersion !== 0 || this.session?.canPassthrough(userId));
890
+ if (packet.equals(SILENCE_FRAME) || !canDecrypt || !this.session) return packet;
891
+ try {
892
+ const buffer = this.session.decrypt(userId, Davey.MediaType.AUDIO, packet);
893
+ this.consecutiveFailures = 0;
894
+ return buffer;
895
+ } catch (error) {
896
+ if (!this.reinitializing && this.pendingTransitions.size === 0) {
897
+ this.consecutiveFailures++;
898
+ this.emit("debug", `Failed to decrypt a packet (${this.consecutiveFailures} consecutive fails)`);
899
+ if (this.consecutiveFailures > this.failureTolerance) {
900
+ if (this.lastTransitionId) this.recoverFromInvalidTransition(this.lastTransitionId);
901
+ else throw error;
902
+ }
903
+ } else if (this.reinitializing) {
904
+ this.emit("debug", "Failed to decrypt a packet (reinitializing session)");
905
+ } else if (this.pendingTransitions.size > 0) {
906
+ this.emit("debug", `Failed to decrypt a packet (${this.pendingTransitions.size} pending transition[s])`);
907
+ }
908
+ }
909
+ return null;
910
+ }
911
+ /**
912
+ * Resets the session.
913
+ */
914
+ destroy() {
915
+ try {
916
+ this.session?.reset();
917
+ } catch {
918
+ }
919
+ }
920
+ };
921
+
922
+ // src/networking/VoiceUDPSocket.ts
923
+ import { Buffer as Buffer5 } from "buffer";
924
+ import { createSocket } from "dgram";
925
+ import { EventEmitter as EventEmitter3 } from "events";
926
+ import { isIPv4 } from "net";
927
+ function parseLocalPacket(message) {
928
+ const packet = Buffer5.from(message);
929
+ const ip = packet.subarray(8, packet.indexOf(0, 8)).toString("utf8");
930
+ if (!isIPv4(ip)) {
931
+ throw new Error("Malformed IP address");
932
+ }
933
+ const port = packet.readUInt16BE(packet.length - 2);
934
+ return { ip, port };
935
+ }
936
+ __name(parseLocalPacket, "parseLocalPacket");
937
+ var KEEP_ALIVE_INTERVAL = 5e3;
938
+ var MAX_COUNTER_VALUE = 2 ** 32 - 1;
939
+ var VoiceUDPSocket = class extends EventEmitter3 {
940
+ static {
941
+ __name(this, "VoiceUDPSocket");
942
+ }
943
+ /**
944
+ * The underlying network Socket for the VoiceUDPSocket.
945
+ */
946
+ socket;
947
+ /**
948
+ * The socket details for Discord (remote)
949
+ */
950
+ remote;
951
+ /**
952
+ * The counter used in the keep alive mechanism.
953
+ */
954
+ keepAliveCounter = 0;
955
+ /**
956
+ * The buffer used to write the keep alive counter into.
957
+ */
958
+ keepAliveBuffer;
959
+ /**
960
+ * The Node.js interval for the keep-alive mechanism.
961
+ */
962
+ keepAliveInterval;
963
+ /**
964
+ * The time taken to receive a response to keep alive messages.
965
+ *
966
+ * @deprecated This field is no longer updated as keep alive messages are no longer tracked.
967
+ */
968
+ ping;
969
+ /**
970
+ * Creates a new VoiceUDPSocket.
971
+ *
972
+ * @param remote - Details of the remote socket
973
+ */
974
+ constructor(remote) {
975
+ super();
976
+ this.socket = createSocket("udp4");
977
+ this.socket.on("error", (error) => this.emit("error", error));
978
+ this.socket.on("message", (buffer) => this.onMessage(buffer));
979
+ this.socket.on("close", () => this.emit("close"));
980
+ this.remote = remote;
981
+ this.keepAliveBuffer = Buffer5.alloc(8);
982
+ this.keepAliveInterval = setInterval(() => this.keepAlive(), KEEP_ALIVE_INTERVAL);
983
+ setImmediate(() => this.keepAlive());
984
+ }
985
+ /**
986
+ * Called when a message is received on the UDP socket.
987
+ *
988
+ * @param buffer - The received buffer
989
+ */
990
+ onMessage(buffer) {
991
+ this.emit("message", buffer);
992
+ }
993
+ /**
994
+ * Called at a regular interval to check whether we are still able to send datagrams to Discord.
995
+ */
996
+ keepAlive() {
997
+ this.keepAliveBuffer.writeUInt32LE(this.keepAliveCounter, 0);
998
+ this.send(this.keepAliveBuffer);
999
+ this.keepAliveCounter++;
1000
+ if (this.keepAliveCounter > MAX_COUNTER_VALUE) {
1001
+ this.keepAliveCounter = 0;
1002
+ }
1003
+ }
1004
+ /**
1005
+ * Sends a buffer to Discord.
1006
+ *
1007
+ * @param buffer - The buffer to send
1008
+ */
1009
+ send(buffer) {
1010
+ this.socket.send(buffer, this.remote.port, this.remote.ip);
1011
+ }
1012
+ /**
1013
+ * Closes the socket, the instance will not be able to be reused.
1014
+ */
1015
+ destroy() {
1016
+ try {
1017
+ this.socket.close();
1018
+ } catch {
1019
+ }
1020
+ clearInterval(this.keepAliveInterval);
1021
+ }
1022
+ /**
1023
+ * Performs IP discovery to discover the local address and port to be used for the voice connection.
1024
+ *
1025
+ * @param ssrc - The SSRC received from Discord
1026
+ */
1027
+ async performIPDiscovery(ssrc) {
1028
+ return new Promise((resolve2, reject) => {
1029
+ const listener = /* @__PURE__ */ __name((message) => {
1030
+ try {
1031
+ if (message.readUInt16BE(0) !== 2) return;
1032
+ const packet = parseLocalPacket(message);
1033
+ this.socket.off("message", listener);
1034
+ resolve2(packet);
1035
+ } catch {
1036
+ }
1037
+ }, "listener");
1038
+ this.socket.on("message", listener);
1039
+ this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed")));
1040
+ const discoveryBuffer = Buffer5.alloc(74);
1041
+ discoveryBuffer.writeUInt16BE(1, 0);
1042
+ discoveryBuffer.writeUInt16BE(70, 2);
1043
+ discoveryBuffer.writeUInt32BE(ssrc, 4);
1044
+ this.send(discoveryBuffer);
1045
+ });
1046
+ }
1047
+ };
1048
+
1049
+ // src/networking/VoiceWebSocket.ts
1050
+ import { Buffer as Buffer6 } from "buffer";
1051
+ import { EventEmitter as EventEmitter4 } from "events";
1052
+ import { VoiceOpcodes } from "discord-api-types/voice/v8";
1053
+ import WebSocket from "ws";
1054
+ var VoiceWebSocket = class extends EventEmitter4 {
1055
+ static {
1056
+ __name(this, "VoiceWebSocket");
1057
+ }
1058
+ /**
1059
+ * The current heartbeat interval, if any.
1060
+ */
1061
+ heartbeatInterval;
1062
+ /**
1063
+ * The time (milliseconds since UNIX epoch) that the last heartbeat acknowledgement packet was received.
1064
+ * This is set to 0 if an acknowledgement packet hasn't been received yet.
1065
+ */
1066
+ lastHeartbeatAck;
1067
+ /**
1068
+ * The time (milliseconds since UNIX epoch) that the last heartbeat was sent. This is set to 0 if a heartbeat
1069
+ * hasn't been sent yet.
1070
+ */
1071
+ lastHeartbeatSend;
1072
+ /**
1073
+ * The number of consecutively missed heartbeats.
1074
+ */
1075
+ missedHeartbeats = 0;
1076
+ /**
1077
+ * The last recorded ping.
1078
+ */
1079
+ ping;
1080
+ /**
1081
+ * The last sequence number acknowledged from Discord. Will be `-1` if no sequence numbered messages have been received.
1082
+ */
1083
+ sequence = -1;
1084
+ /**
1085
+ * The debug logger function, if debugging is enabled.
1086
+ */
1087
+ debug;
1088
+ /**
1089
+ * The underlying WebSocket of this wrapper.
1090
+ */
1091
+ ws;
1092
+ /**
1093
+ * Creates a new VoiceWebSocket.
1094
+ *
1095
+ * @param address - The address to connect to
1096
+ */
1097
+ constructor(address, debug) {
1098
+ super();
1099
+ this.ws = new WebSocket(address);
1100
+ this.ws.onmessage = (err) => this.onMessage(err);
1101
+ this.ws.onopen = (err) => this.emit("open", err);
1102
+ this.ws.onerror = (err) => this.emit("error", err instanceof Error ? err : err.error);
1103
+ this.ws.onclose = (err) => this.emit("close", err);
1104
+ this.lastHeartbeatAck = 0;
1105
+ this.lastHeartbeatSend = 0;
1106
+ this.debug = debug ? (message) => this.emit("debug", message) : null;
1107
+ }
1108
+ /**
1109
+ * Destroys the VoiceWebSocket. The heartbeat interval is cleared, and the connection is closed.
1110
+ */
1111
+ destroy() {
1112
+ try {
1113
+ this.debug?.("destroyed");
1114
+ this.setHeartbeatInterval(-1);
1115
+ this.ws.close(1e3);
1116
+ } catch (error) {
1117
+ const err = error;
1118
+ this.emit("error", err);
1119
+ }
1120
+ }
1121
+ /**
1122
+ * Handles message events on the WebSocket. Attempts to JSON parse the messages and emit them
1123
+ * as packets. Binary messages will be parsed and emitted.
1124
+ *
1125
+ * @param event - The message event
1126
+ */
1127
+ onMessage(event) {
1128
+ if (event.data instanceof Buffer6 || event.data instanceof ArrayBuffer) {
1129
+ const buffer = event.data instanceof ArrayBuffer ? Buffer6.from(event.data) : event.data;
1130
+ const seq = buffer.readUInt16BE(0);
1131
+ const op = buffer.readUInt8(2);
1132
+ const payload = buffer.subarray(3);
1133
+ this.sequence = seq;
1134
+ this.debug?.(`<< [bin] opcode ${op}, seq ${seq}, ${payload.byteLength} bytes`);
1135
+ this.emit("binary", { op, seq, payload });
1136
+ return;
1137
+ } else if (typeof event.data !== "string") {
1138
+ return;
1139
+ }
1140
+ this.debug?.(`<< ${event.data}`);
1141
+ let packet;
1142
+ try {
1143
+ packet = JSON.parse(event.data);
1144
+ } catch (error) {
1145
+ const err = error;
1146
+ this.emit("error", err);
1147
+ return;
1148
+ }
1149
+ if (packet.seq) {
1150
+ this.sequence = packet.seq;
1151
+ }
1152
+ if (packet.op === VoiceOpcodes.HeartbeatAck) {
1153
+ this.lastHeartbeatAck = Date.now();
1154
+ this.missedHeartbeats = 0;
1155
+ this.ping = this.lastHeartbeatAck - this.lastHeartbeatSend;
1156
+ }
1157
+ this.emit("packet", packet);
1158
+ }
1159
+ /**
1160
+ * Sends a JSON-stringifiable packet over the WebSocket.
1161
+ *
1162
+ * @param packet - The packet to send
1163
+ */
1164
+ sendPacket(packet) {
1165
+ try {
1166
+ const stringified = JSON.stringify(packet);
1167
+ this.debug?.(`>> ${stringified}`);
1168
+ this.ws.send(stringified);
1169
+ } catch (error) {
1170
+ const err = error;
1171
+ this.emit("error", err);
1172
+ }
1173
+ }
1174
+ /**
1175
+ * Sends a binary message over the WebSocket.
1176
+ *
1177
+ * @param opcode - The opcode to use
1178
+ * @param payload - The payload to send
1179
+ */
1180
+ sendBinaryMessage(opcode, payload) {
1181
+ try {
1182
+ const message = Buffer6.concat([new Uint8Array([opcode]), payload]);
1183
+ this.debug?.(`>> [bin] opcode ${opcode}, ${payload.byteLength} bytes`);
1184
+ this.ws.send(message);
1185
+ } catch (error) {
1186
+ const err = error;
1187
+ this.emit("error", err);
1188
+ }
1189
+ }
1190
+ /**
1191
+ * Sends a heartbeat over the WebSocket.
1192
+ */
1193
+ sendHeartbeat() {
1194
+ this.lastHeartbeatSend = Date.now();
1195
+ this.missedHeartbeats++;
1196
+ const nonce2 = this.lastHeartbeatSend;
1197
+ this.sendPacket({
1198
+ op: VoiceOpcodes.Heartbeat,
1199
+ // eslint-disable-next-line id-length
1200
+ d: {
1201
+ // eslint-disable-next-line id-length
1202
+ t: nonce2,
1203
+ seq_ack: this.sequence
1204
+ }
1205
+ });
1206
+ }
1207
+ /**
1208
+ * Sets/clears an interval to send heartbeats over the WebSocket.
1209
+ *
1210
+ * @param ms - The interval in milliseconds. If negative, the interval will be unset
1211
+ */
1212
+ setHeartbeatInterval(ms) {
1213
+ if (this.heartbeatInterval !== void 0) clearInterval(this.heartbeatInterval);
1214
+ if (ms > 0) {
1215
+ this.heartbeatInterval = setInterval(() => {
1216
+ if (this.lastHeartbeatSend !== 0 && this.missedHeartbeats >= 3) {
1217
+ this.ws.close();
1218
+ this.setHeartbeatInterval(-1);
1219
+ }
1220
+ this.sendHeartbeat();
1221
+ }, ms);
1222
+ }
1223
+ }
1224
+ };
1225
+
1226
+ // src/networking/Networking.ts
1227
+ var CHANNELS = 2;
1228
+ var TIMESTAMP_INC = 48e3 / 100 * CHANNELS;
1229
+ var MAX_NONCE_SIZE = 2 ** 32 - 1;
1230
+ var SUPPORTED_ENCRYPTION_MODES = [VoiceEncryptionMode.AeadXChaCha20Poly1305RtpSize];
1231
+ if (crypto.getCiphers().includes("aes-256-gcm")) {
1232
+ SUPPORTED_ENCRYPTION_MODES.unshift(VoiceEncryptionMode.AeadAes256GcmRtpSize);
1233
+ }
1234
+ var NetworkingStatusCode = /* @__PURE__ */ ((NetworkingStatusCode2) => {
1235
+ NetworkingStatusCode2[NetworkingStatusCode2["OpeningWs"] = 0] = "OpeningWs";
1236
+ NetworkingStatusCode2[NetworkingStatusCode2["Identifying"] = 1] = "Identifying";
1237
+ NetworkingStatusCode2[NetworkingStatusCode2["UdpHandshaking"] = 2] = "UdpHandshaking";
1238
+ NetworkingStatusCode2[NetworkingStatusCode2["SelectingProtocol"] = 3] = "SelectingProtocol";
1239
+ NetworkingStatusCode2[NetworkingStatusCode2["Ready"] = 4] = "Ready";
1240
+ NetworkingStatusCode2[NetworkingStatusCode2["Resuming"] = 5] = "Resuming";
1241
+ NetworkingStatusCode2[NetworkingStatusCode2["Closed"] = 6] = "Closed";
1242
+ return NetworkingStatusCode2;
1243
+ })(NetworkingStatusCode || {});
1244
+ var nonce = Buffer7.alloc(24);
1245
+ function stringifyState2(state) {
1246
+ return JSON.stringify({
1247
+ ...state,
1248
+ ws: Reflect.has(state, "ws"),
1249
+ udp: Reflect.has(state, "udp")
1250
+ });
1251
+ }
1252
+ __name(stringifyState2, "stringifyState");
1253
+ function chooseEncryptionMode(options) {
1254
+ const option = options.find((option2) => SUPPORTED_ENCRYPTION_MODES.includes(option2));
1255
+ if (!option) {
1256
+ throw new Error(`No compatible encryption modes. Available include: ${options.join(", ")}`);
1257
+ }
1258
+ return option;
1259
+ }
1260
+ __name(chooseEncryptionMode, "chooseEncryptionMode");
1261
+ function randomNBit(numberOfBits) {
1262
+ return Math.floor(Math.random() * 2 ** numberOfBits);
1263
+ }
1264
+ __name(randomNBit, "randomNBit");
1265
+ var Networking = class extends EventEmitter5 {
1266
+ static {
1267
+ __name(this, "Networking");
1268
+ }
1269
+ _state;
1270
+ /**
1271
+ * The debug logger function, if debugging is enabled.
1272
+ */
1273
+ debug;
1274
+ /**
1275
+ * The options used to create this Networking instance.
1276
+ */
1277
+ options;
1278
+ /**
1279
+ * Creates a new Networking instance.
1280
+ */
1281
+ constructor(connectionOptions, options) {
1282
+ super();
1283
+ this.onWsOpen = this.onWsOpen.bind(this);
1284
+ this.onChildError = this.onChildError.bind(this);
1285
+ this.onWsPacket = this.onWsPacket.bind(this);
1286
+ this.onWsBinary = this.onWsBinary.bind(this);
1287
+ this.onWsClose = this.onWsClose.bind(this);
1288
+ this.onWsDebug = this.onWsDebug.bind(this);
1289
+ this.onUdpDebug = this.onUdpDebug.bind(this);
1290
+ this.onUdpClose = this.onUdpClose.bind(this);
1291
+ this.onDaveDebug = this.onDaveDebug.bind(this);
1292
+ this.onDaveKeyPackage = this.onDaveKeyPackage.bind(this);
1293
+ this.onDaveInvalidateTransition = this.onDaveInvalidateTransition.bind(this);
1294
+ this.debug = options?.debug ? (message) => this.emit("debug", message) : null;
1295
+ this._state = {
1296
+ code: 0 /* OpeningWs */,
1297
+ ws: this.createWebSocket(connectionOptions.endpoint),
1298
+ connectionOptions
1299
+ };
1300
+ this.options = options;
1301
+ }
1302
+ /**
1303
+ * Destroys the Networking instance, transitioning it into the Closed state.
1304
+ */
1305
+ destroy() {
1306
+ this.state = {
1307
+ code: 6 /* Closed */
1308
+ };
1309
+ }
1310
+ /**
1311
+ * The current state of the networking instance.
1312
+ *
1313
+ * @remarks
1314
+ * The setter will perform clean-up operations where necessary.
1315
+ */
1316
+ get state() {
1317
+ return this._state;
1318
+ }
1319
+ set state(newState) {
1320
+ const oldWs = Reflect.get(this._state, "ws");
1321
+ const newWs = Reflect.get(newState, "ws");
1322
+ if (oldWs && oldWs !== newWs) {
1323
+ oldWs.off("debug", this.onWsDebug);
1324
+ oldWs.on("error", noop);
1325
+ oldWs.off("error", this.onChildError);
1326
+ oldWs.off("open", this.onWsOpen);
1327
+ oldWs.off("packet", this.onWsPacket);
1328
+ oldWs.off("binary", this.onWsBinary);
1329
+ oldWs.off("close", this.onWsClose);
1330
+ oldWs.destroy();
1331
+ }
1332
+ const oldUdp = Reflect.get(this._state, "udp");
1333
+ const newUdp = Reflect.get(newState, "udp");
1334
+ if (oldUdp && oldUdp !== newUdp) {
1335
+ oldUdp.on("error", noop);
1336
+ oldUdp.off("error", this.onChildError);
1337
+ oldUdp.off("close", this.onUdpClose);
1338
+ oldUdp.off("debug", this.onUdpDebug);
1339
+ oldUdp.destroy();
1340
+ }
1341
+ const oldDave = Reflect.get(this._state, "dave");
1342
+ const newDave = Reflect.get(newState, "dave");
1343
+ if (oldDave && oldDave !== newDave) {
1344
+ oldDave.off("error", this.onChildError);
1345
+ oldDave.off("debug", this.onDaveDebug);
1346
+ oldDave.off("keyPackage", this.onDaveKeyPackage);
1347
+ oldDave.off("invalidateTransition", this.onDaveInvalidateTransition);
1348
+ oldDave.destroy();
1349
+ }
1350
+ const oldState = this._state;
1351
+ this._state = newState;
1352
+ this.emit("stateChange", oldState, newState);
1353
+ this.debug?.(`state change:
1354
+ from ${stringifyState2(oldState)}
1355
+ to ${stringifyState2(newState)}`);
1356
+ }
1357
+ /**
1358
+ * Creates a new WebSocket to a Discord Voice gateway.
1359
+ *
1360
+ * @param endpoint - The endpoint to connect to
1361
+ * @param lastSequence - The last sequence to set for this WebSocket
1362
+ */
1363
+ createWebSocket(endpoint, lastSequence) {
1364
+ const ws = new VoiceWebSocket(`wss://${endpoint}?v=8`, Boolean(this.debug));
1365
+ if (lastSequence !== void 0) {
1366
+ ws.sequence = lastSequence;
1367
+ }
1368
+ ws.on("error", this.onChildError);
1369
+ ws.once("open", this.onWsOpen);
1370
+ ws.on("packet", this.onWsPacket);
1371
+ ws.on("binary", this.onWsBinary);
1372
+ ws.once("close", this.onWsClose);
1373
+ ws.on("debug", this.onWsDebug);
1374
+ return ws;
1375
+ }
1376
+ /**
1377
+ * Creates a new DAVE session for this voice connection if we can create one.
1378
+ *
1379
+ * @param protocolVersion - The protocol version to use
1380
+ */
1381
+ createDaveSession(protocolVersion) {
1382
+ if (this.options.daveEncryption === false || this.state.code !== 3 /* SelectingProtocol */ && this.state.code !== 4 /* Ready */ && this.state.code !== 5 /* Resuming */) {
1383
+ return;
1384
+ }
1385
+ const session = new DAVESession(
1386
+ protocolVersion,
1387
+ this.state.connectionOptions.userId,
1388
+ this.state.connectionOptions.channelId,
1389
+ {
1390
+ decryptionFailureTolerance: this.options.decryptionFailureTolerance
1391
+ }
1392
+ );
1393
+ session.on("error", this.onChildError);
1394
+ session.on("debug", this.onDaveDebug);
1395
+ session.on("keyPackage", this.onDaveKeyPackage);
1396
+ session.on("invalidateTransition", this.onDaveInvalidateTransition);
1397
+ session.reinit();
1398
+ return session;
1399
+ }
1400
+ /**
1401
+ * Propagates errors from the children VoiceWebSocket, VoiceUDPSocket and DAVESession.
1402
+ *
1403
+ * @param error - The error that was emitted by a child
1404
+ */
1405
+ onChildError(error) {
1406
+ this.emit("error", error);
1407
+ }
1408
+ /**
1409
+ * Called when the WebSocket opens. Depending on the state that the instance is in,
1410
+ * it will either identify with a new session, or it will attempt to resume an existing session.
1411
+ */
1412
+ onWsOpen() {
1413
+ if (this.state.code === 0 /* OpeningWs */) {
1414
+ this.state.ws.sendPacket({
1415
+ op: VoiceOpcodes2.Identify,
1416
+ d: {
1417
+ server_id: this.state.connectionOptions.serverId,
1418
+ user_id: this.state.connectionOptions.userId,
1419
+ session_id: this.state.connectionOptions.sessionId,
1420
+ token: this.state.connectionOptions.token,
1421
+ max_dave_protocol_version: this.options.daveEncryption === false ? 0 : getMaxProtocolVersion()
1422
+ }
1423
+ });
1424
+ this.state = {
1425
+ ...this.state,
1426
+ code: 1 /* Identifying */
1427
+ };
1428
+ } else if (this.state.code === 5 /* Resuming */) {
1429
+ this.state.ws.sendPacket({
1430
+ op: VoiceOpcodes2.Resume,
1431
+ d: {
1432
+ server_id: this.state.connectionOptions.serverId,
1433
+ session_id: this.state.connectionOptions.sessionId,
1434
+ token: this.state.connectionOptions.token,
1435
+ seq_ack: this.state.ws.sequence
1436
+ }
1437
+ });
1438
+ }
1439
+ }
1440
+ /**
1441
+ * Called when the WebSocket closes. Based on the reason for closing (given by the code parameter),
1442
+ * the instance will either attempt to resume, or enter the closed state and emit a 'close' event
1443
+ * with the close code, allowing the user to decide whether or not they would like to reconnect.
1444
+ *
1445
+ * @param code - The close code
1446
+ */
1447
+ onWsClose({ code }) {
1448
+ const canResume = code === 4015 || code < 4e3;
1449
+ if (canResume && this.state.code === 4 /* Ready */) {
1450
+ const lastSequence = this.state.ws.sequence;
1451
+ this.state = {
1452
+ ...this.state,
1453
+ code: 5 /* Resuming */,
1454
+ ws: this.createWebSocket(this.state.connectionOptions.endpoint, lastSequence)
1455
+ };
1456
+ } else if (this.state.code !== 6 /* Closed */) {
1457
+ this.destroy();
1458
+ this.emit("close", code);
1459
+ }
1460
+ }
1461
+ /**
1462
+ * Called when the UDP socket has closed itself if it has stopped receiving replies from Discord.
1463
+ */
1464
+ onUdpClose() {
1465
+ if (this.state.code === 4 /* Ready */) {
1466
+ const lastSequence = this.state.ws.sequence;
1467
+ this.state = {
1468
+ ...this.state,
1469
+ code: 5 /* Resuming */,
1470
+ ws: this.createWebSocket(this.state.connectionOptions.endpoint, lastSequence)
1471
+ };
1472
+ }
1473
+ }
1474
+ /**
1475
+ * Called when a packet is received on the connection's WebSocket.
1476
+ *
1477
+ * @param packet - The received packet
1478
+ */
1479
+ onWsPacket(packet) {
1480
+ if (packet.op === VoiceOpcodes2.Hello && this.state.code !== 6 /* Closed */) {
1481
+ this.state.ws.setHeartbeatInterval(packet.d.heartbeat_interval);
1482
+ } else if (packet.op === VoiceOpcodes2.Ready && this.state.code === 1 /* Identifying */) {
1483
+ const { ip, port, ssrc, modes } = packet.d;
1484
+ const udp = new VoiceUDPSocket({ ip, port });
1485
+ udp.on("error", this.onChildError);
1486
+ udp.on("debug", this.onUdpDebug);
1487
+ udp.once("close", this.onUdpClose);
1488
+ udp.performIPDiscovery(ssrc).then((localConfig) => {
1489
+ if (this.state.code !== 2 /* UdpHandshaking */) return;
1490
+ this.state.ws.sendPacket({
1491
+ op: VoiceOpcodes2.SelectProtocol,
1492
+ d: {
1493
+ protocol: "udp",
1494
+ data: {
1495
+ address: localConfig.ip,
1496
+ port: localConfig.port,
1497
+ mode: chooseEncryptionMode(modes)
1498
+ }
1499
+ }
1500
+ });
1501
+ this.state = {
1502
+ ...this.state,
1503
+ code: 3 /* SelectingProtocol */
1504
+ };
1505
+ }).catch((error) => this.emit("error", error));
1506
+ this.state = {
1507
+ ...this.state,
1508
+ code: 2 /* UdpHandshaking */,
1509
+ udp,
1510
+ connectionData: {
1511
+ ssrc,
1512
+ connectedClients: /* @__PURE__ */ new Set()
1513
+ }
1514
+ };
1515
+ } else if (packet.op === VoiceOpcodes2.SessionDescription && this.state.code === 3 /* SelectingProtocol */) {
1516
+ const { mode: encryptionMode, secret_key: secretKey, dave_protocol_version: daveProtocolVersion } = packet.d;
1517
+ this.state = {
1518
+ ...this.state,
1519
+ code: 4 /* Ready */,
1520
+ dave: this.createDaveSession(daveProtocolVersion),
1521
+ connectionData: {
1522
+ ...this.state.connectionData,
1523
+ encryptionMode,
1524
+ secretKey: new Uint8Array(secretKey),
1525
+ sequence: randomNBit(16),
1526
+ timestamp: randomNBit(32),
1527
+ nonce: 0,
1528
+ nonceBuffer: encryptionMode === "aead_aes256_gcm_rtpsize" ? Buffer7.alloc(12) : Buffer7.alloc(24),
1529
+ speaking: false,
1530
+ packetsPlayed: 0
1531
+ }
1532
+ };
1533
+ } else if (packet.op === VoiceOpcodes2.Resumed && this.state.code === 5 /* Resuming */) {
1534
+ this.state = {
1535
+ ...this.state,
1536
+ code: 4 /* Ready */
1537
+ };
1538
+ this.state.connectionData.speaking = false;
1539
+ } else if ((packet.op === VoiceOpcodes2.ClientsConnect || packet.op === VoiceOpcodes2.ClientDisconnect) && (this.state.code === 4 /* Ready */ || this.state.code === 2 /* UdpHandshaking */ || this.state.code === 3 /* SelectingProtocol */ || this.state.code === 5 /* Resuming */)) {
1540
+ const { connectionData } = this.state;
1541
+ if (packet.op === VoiceOpcodes2.ClientsConnect)
1542
+ for (const id of packet.d.user_ids) connectionData.connectedClients.add(id);
1543
+ else {
1544
+ connectionData.connectedClients.delete(packet.d.user_id);
1545
+ }
1546
+ } else if ((this.state.code === 4 /* Ready */ || this.state.code === 5 /* Resuming */) && this.state.dave) {
1547
+ if (packet.op === VoiceOpcodes2.DavePrepareTransition) {
1548
+ const sendReady = this.state.dave.prepareTransition(packet.d);
1549
+ if (sendReady)
1550
+ this.state.ws.sendPacket({
1551
+ op: VoiceOpcodes2.DaveTransitionReady,
1552
+ d: { transition_id: packet.d.transition_id }
1553
+ });
1554
+ if (packet.d.transition_id === 0) {
1555
+ this.emit("transitioned", 0);
1556
+ }
1557
+ } else if (packet.op === VoiceOpcodes2.DaveExecuteTransition) {
1558
+ const transitioned = this.state.dave.executeTransition(packet.d.transition_id);
1559
+ if (transitioned) this.emit("transitioned", packet.d.transition_id);
1560
+ } else if (packet.op === VoiceOpcodes2.DavePrepareEpoch) this.state.dave.prepareEpoch(packet.d);
1561
+ }
1562
+ }
1563
+ /**
1564
+ * Called when a binary message is received on the connection's WebSocket.
1565
+ *
1566
+ * @param message - The received message
1567
+ */
1568
+ onWsBinary(message) {
1569
+ if (this.state.code === 4 /* Ready */ && this.state.dave) {
1570
+ if (message.op === VoiceOpcodes2.DaveMlsExternalSender) {
1571
+ this.state.dave.setExternalSender(message.payload);
1572
+ } else if (message.op === VoiceOpcodes2.DaveMlsProposals) {
1573
+ const payload = this.state.dave.processProposals(message.payload, this.state.connectionData.connectedClients);
1574
+ if (payload) this.state.ws.sendBinaryMessage(VoiceOpcodes2.DaveMlsCommitWelcome, payload);
1575
+ } else if (message.op === VoiceOpcodes2.DaveMlsAnnounceCommitTransition) {
1576
+ const { transitionId, success } = this.state.dave.processCommit(message.payload);
1577
+ if (success) {
1578
+ if (transitionId === 0) this.emit("transitioned", transitionId);
1579
+ else
1580
+ this.state.ws.sendPacket({
1581
+ op: VoiceOpcodes2.DaveTransitionReady,
1582
+ d: { transition_id: transitionId }
1583
+ });
1584
+ }
1585
+ } else if (message.op === VoiceOpcodes2.DaveMlsWelcome) {
1586
+ const { transitionId, success } = this.state.dave.processWelcome(message.payload);
1587
+ if (success) {
1588
+ if (transitionId === 0) this.emit("transitioned", transitionId);
1589
+ else
1590
+ this.state.ws.sendPacket({
1591
+ op: VoiceOpcodes2.DaveTransitionReady,
1592
+ d: { transition_id: transitionId }
1593
+ });
1594
+ }
1595
+ }
1596
+ }
1597
+ }
1598
+ /**
1599
+ * Called when a new key package is ready to be sent to the voice server.
1600
+ *
1601
+ * @param keyPackage - The new key package
1602
+ */
1603
+ onDaveKeyPackage(keyPackage) {
1604
+ if (this.state.code === 3 /* SelectingProtocol */ || this.state.code === 4 /* Ready */)
1605
+ this.state.ws.sendBinaryMessage(VoiceOpcodes2.DaveMlsKeyPackage, keyPackage);
1606
+ }
1607
+ /**
1608
+ * Called when the DAVE session wants to invalidate their transition and re-initialize.
1609
+ *
1610
+ * @param transitionId - The transition to invalidate
1611
+ */
1612
+ onDaveInvalidateTransition(transitionId) {
1613
+ if (this.state.code === 3 /* SelectingProtocol */ || this.state.code === 4 /* Ready */)
1614
+ this.state.ws.sendPacket({
1615
+ op: VoiceOpcodes2.DaveMlsInvalidCommitWelcome,
1616
+ d: { transition_id: transitionId }
1617
+ });
1618
+ }
1619
+ /**
1620
+ * Propagates debug messages from the child WebSocket.
1621
+ *
1622
+ * @param message - The emitted debug message
1623
+ */
1624
+ onWsDebug(message) {
1625
+ this.debug?.(`[WS] ${message}`);
1626
+ }
1627
+ /**
1628
+ * Propagates debug messages from the child UDPSocket.
1629
+ *
1630
+ * @param message - The emitted debug message
1631
+ */
1632
+ onUdpDebug(message) {
1633
+ this.debug?.(`[UDP] ${message}`);
1634
+ }
1635
+ /**
1636
+ * Propagates debug messages from the child DAVESession.
1637
+ *
1638
+ * @param message - The emitted debug message
1639
+ */
1640
+ onDaveDebug(message) {
1641
+ this.debug?.(`[DAVE] ${message}`);
1642
+ }
1643
+ /**
1644
+ * Prepares an Opus packet for playback. This includes attaching metadata to it and encrypting it.
1645
+ * It will be stored within the instance, and can be played by dispatchAudio()
1646
+ *
1647
+ * @remarks
1648
+ * Calling this method while there is already a prepared audio packet that has not yet been dispatched
1649
+ * will overwrite the existing audio packet. This should be avoided.
1650
+ * @param opusPacket - The Opus packet to encrypt
1651
+ * @returns The audio packet that was prepared
1652
+ */
1653
+ prepareAudioPacket(opusPacket) {
1654
+ const state = this.state;
1655
+ if (state.code !== 4 /* Ready */) return;
1656
+ state.preparedPacket = this.createAudioPacket(opusPacket, state.connectionData, state.dave);
1657
+ return state.preparedPacket;
1658
+ }
1659
+ /**
1660
+ * Dispatches the audio packet previously prepared by prepareAudioPacket(opusPacket). The audio packet
1661
+ * is consumed and cannot be dispatched again.
1662
+ */
1663
+ dispatchAudio() {
1664
+ const state = this.state;
1665
+ if (state.code !== 4 /* Ready */) return false;
1666
+ if (state.preparedPacket !== void 0) {
1667
+ this.playAudioPacket(state.preparedPacket);
1668
+ state.preparedPacket = void 0;
1669
+ return true;
1670
+ }
1671
+ return false;
1672
+ }
1673
+ /**
1674
+ * Plays an audio packet, updating timing metadata used for playback.
1675
+ *
1676
+ * @param audioPacket - The audio packet to play
1677
+ */
1678
+ playAudioPacket(audioPacket) {
1679
+ const state = this.state;
1680
+ if (state.code !== 4 /* Ready */) return;
1681
+ const { connectionData } = state;
1682
+ connectionData.packetsPlayed++;
1683
+ connectionData.sequence++;
1684
+ connectionData.timestamp += TIMESTAMP_INC;
1685
+ if (connectionData.sequence >= 2 ** 16) connectionData.sequence = 0;
1686
+ if (connectionData.timestamp >= 2 ** 32) connectionData.timestamp = 0;
1687
+ this.setSpeaking(true);
1688
+ state.udp.send(audioPacket);
1689
+ }
1690
+ /**
1691
+ * Sends a packet to the voice gateway indicating that the client has start/stopped sending
1692
+ * audio.
1693
+ *
1694
+ * @param speaking - Whether or not the client should be shown as speaking
1695
+ */
1696
+ setSpeaking(speaking) {
1697
+ const state = this.state;
1698
+ if (state.code !== 4 /* Ready */) return;
1699
+ if (state.connectionData.speaking === speaking) return;
1700
+ state.connectionData.speaking = speaking;
1701
+ state.ws.sendPacket({
1702
+ op: VoiceOpcodes2.Speaking,
1703
+ d: {
1704
+ speaking: speaking ? 1 : 0,
1705
+ delay: 0,
1706
+ ssrc: state.connectionData.ssrc
1707
+ }
1708
+ });
1709
+ }
1710
+ /**
1711
+ * Creates a new audio packet from an Opus packet. This involves encrypting the packet,
1712
+ * then prepending a header that includes metadata.
1713
+ *
1714
+ * @param opusPacket - The Opus packet to prepare
1715
+ * @param connectionData - The current connection data of the instance
1716
+ * @param daveSession - The DAVE session to use for encryption
1717
+ */
1718
+ createAudioPacket(opusPacket, connectionData, daveSession) {
1719
+ const rtpHeader = Buffer7.alloc(12);
1720
+ rtpHeader[0] = 128;
1721
+ rtpHeader[1] = RTP_OPUS_PAYLOAD_TYPE;
1722
+ const { sequence, timestamp, ssrc } = connectionData;
1723
+ rtpHeader.writeUIntBE(sequence, 2, 2);
1724
+ rtpHeader.writeUIntBE(timestamp, 4, 4);
1725
+ rtpHeader.writeUIntBE(ssrc, 8, 4);
1726
+ rtpHeader.copy(nonce, 0, 0, 12);
1727
+ return Buffer7.concat([rtpHeader, ...this.encryptOpusPacket(opusPacket, connectionData, rtpHeader, daveSession)]);
1728
+ }
1729
+ /**
1730
+ * Encrypts an Opus packet using the format agreed upon by the instance and Discord.
1731
+ *
1732
+ * @param opusPacket - The Opus packet to encrypt
1733
+ * @param connectionData - The current connection data of the instance
1734
+ * @param daveSession - The DAVE session to use for encryption
1735
+ */
1736
+ encryptOpusPacket(opusPacket, connectionData, additionalData, daveSession) {
1737
+ const { secretKey, encryptionMode } = connectionData;
1738
+ const packet = daveSession?.encrypt(opusPacket) ?? opusPacket;
1739
+ connectionData.nonce++;
1740
+ if (connectionData.nonce > MAX_NONCE_SIZE) connectionData.nonce = 0;
1741
+ connectionData.nonceBuffer.writeUInt32BE(connectionData.nonce, 0);
1742
+ const noncePadding = connectionData.nonceBuffer.subarray(0, 4);
1743
+ let encrypted;
1744
+ switch (encryptionMode) {
1745
+ case "aead_aes256_gcm_rtpsize": {
1746
+ const cipher = crypto.createCipheriv("aes-256-gcm", secretKey, connectionData.nonceBuffer);
1747
+ cipher.setAAD(additionalData);
1748
+ encrypted = Buffer7.concat([cipher.update(packet), cipher.final(), cipher.getAuthTag()]);
1749
+ return [encrypted, noncePadding];
1750
+ }
1751
+ case "aead_xchacha20_poly1305_rtpsize": {
1752
+ encrypted = methods.crypto_aead_xchacha20poly1305_ietf_encrypt(
1753
+ packet,
1754
+ additionalData,
1755
+ connectionData.nonceBuffer,
1756
+ secretKey
1757
+ );
1758
+ return [encrypted, noncePadding];
1759
+ }
1760
+ default: {
1761
+ throw new RangeError(`Unsupported encryption method: ${encryptionMode}`);
1762
+ }
1763
+ }
1764
+ }
1765
+ };
1766
+
1767
+ // src/receive/VoiceReceiver.ts
1768
+ import { Buffer as Buffer8 } from "buffer";
1769
+ import crypto2 from "crypto";
1770
+ import { VoiceOpcodes as VoiceOpcodes3 } from "discord-api-types/voice/v8";
1771
+
1772
+ // src/receive/AudioReceiveStream.ts
1773
+ import process from "process";
1774
+ import { Readable } from "stream";
1775
+ var EndBehaviorType = /* @__PURE__ */ ((EndBehaviorType2) => {
1776
+ EndBehaviorType2[EndBehaviorType2["Manual"] = 0] = "Manual";
1777
+ EndBehaviorType2[EndBehaviorType2["AfterSilence"] = 1] = "AfterSilence";
1778
+ EndBehaviorType2[EndBehaviorType2["AfterInactivity"] = 2] = "AfterInactivity";
1779
+ return EndBehaviorType2;
1780
+ })(EndBehaviorType || {});
1781
+ function createDefaultAudioReceiveStreamOptions() {
1782
+ return {
1783
+ end: {
1784
+ behavior: 0 /* Manual */
1785
+ }
1786
+ };
1787
+ }
1788
+ __name(createDefaultAudioReceiveStreamOptions, "createDefaultAudioReceiveStreamOptions");
1789
+ var AudioReceiveStream = class extends Readable {
1790
+ static {
1791
+ __name(this, "AudioReceiveStream");
1792
+ }
1793
+ /**
1794
+ * The end behavior of the receive stream.
1795
+ */
1796
+ end;
1797
+ endTimeout;
1798
+ constructor(options) {
1799
+ const { end, ...rest } = options;
1800
+ super({
1801
+ ...rest,
1802
+ objectMode: true
1803
+ });
1804
+ this.end = end;
1805
+ }
1806
+ push(buffer) {
1807
+ if (buffer && (this.end.behavior === 2 /* AfterInactivity */ || this.end.behavior === 1 /* AfterSilence */ && (buffer.compare(SILENCE_FRAME) !== 0 || this.endTimeout === void 0))) {
1808
+ this.renewEndTimeout(this.end);
1809
+ }
1810
+ if (buffer === null) {
1811
+ process.nextTick(() => this.destroy());
1812
+ }
1813
+ return super.push(buffer);
1814
+ }
1815
+ renewEndTimeout(end) {
1816
+ if (this.endTimeout) {
1817
+ clearTimeout(this.endTimeout);
1818
+ }
1819
+ this.endTimeout = setTimeout(() => this.push(null), end.duration);
1820
+ }
1821
+ _read() {
1822
+ }
1823
+ };
1824
+
1825
+ // src/receive/SSRCMap.ts
1826
+ import { EventEmitter as EventEmitter6 } from "events";
1827
+ var SSRCMap = class extends EventEmitter6 {
1828
+ static {
1829
+ __name(this, "SSRCMap");
1830
+ }
1831
+ /**
1832
+ * The underlying map.
1833
+ */
1834
+ map;
1835
+ constructor() {
1836
+ super();
1837
+ this.map = /* @__PURE__ */ new Map();
1838
+ }
1839
+ /**
1840
+ * Updates the map with new user data
1841
+ *
1842
+ * @param data - The data to update with
1843
+ */
1844
+ update(data) {
1845
+ const existing = this.map.get(data.audioSSRC);
1846
+ const newValue = {
1847
+ ...this.map.get(data.audioSSRC),
1848
+ ...data
1849
+ };
1850
+ this.map.set(data.audioSSRC, newValue);
1851
+ if (!existing) this.emit("create", newValue);
1852
+ this.emit("update", existing, newValue);
1853
+ }
1854
+ /**
1855
+ * Gets the stored voice data of a user.
1856
+ *
1857
+ * @param target - The target, either their user id or audio SSRC
1858
+ */
1859
+ get(target) {
1860
+ if (typeof target === "number") {
1861
+ return this.map.get(target);
1862
+ }
1863
+ for (const data of this.map.values()) {
1864
+ if (data.userId === target) {
1865
+ return data;
1866
+ }
1867
+ }
1868
+ return void 0;
1869
+ }
1870
+ /**
1871
+ * Deletes the stored voice data about a user.
1872
+ *
1873
+ * @param target - The target of the delete operation, either their audio SSRC or user id
1874
+ * @returns The data that was deleted, if any
1875
+ */
1876
+ delete(target) {
1877
+ if (typeof target === "number") {
1878
+ const existing = this.map.get(target);
1879
+ if (existing) {
1880
+ this.map.delete(target);
1881
+ this.emit("delete", existing);
1882
+ }
1883
+ return existing;
1884
+ }
1885
+ for (const [audioSSRC, data] of this.map.entries()) {
1886
+ if (data.userId === target) {
1887
+ this.map.delete(audioSSRC);
1888
+ this.emit("delete", data);
1889
+ return data;
1890
+ }
1891
+ }
1892
+ return void 0;
1893
+ }
1894
+ };
1895
+
1896
+ // src/receive/SpeakingMap.ts
1897
+ import { EventEmitter as EventEmitter7 } from "events";
1898
+ var SpeakingMap = class _SpeakingMap extends EventEmitter7 {
1899
+ static {
1900
+ __name(this, "SpeakingMap");
1901
+ }
1902
+ /**
1903
+ * The delay after a packet is received from a user until they're marked as not speaking anymore.
1904
+ */
1905
+ static DELAY = 100;
1906
+ /**
1907
+ * The currently speaking users, mapped to the milliseconds since UNIX epoch at which they started speaking.
1908
+ */
1909
+ users;
1910
+ speakingTimeouts;
1911
+ constructor() {
1912
+ super();
1913
+ this.users = /* @__PURE__ */ new Map();
1914
+ this.speakingTimeouts = /* @__PURE__ */ new Map();
1915
+ }
1916
+ onPacket(userId) {
1917
+ const timeout = this.speakingTimeouts.get(userId);
1918
+ if (timeout) {
1919
+ clearTimeout(timeout);
1920
+ } else {
1921
+ this.users.set(userId, Date.now());
1922
+ this.emit("start", userId);
1923
+ }
1924
+ this.startTimeout(userId);
1925
+ }
1926
+ startTimeout(userId) {
1927
+ this.speakingTimeouts.set(
1928
+ userId,
1929
+ setTimeout(() => {
1930
+ this.emit("end", userId);
1931
+ this.speakingTimeouts.delete(userId);
1932
+ this.users.delete(userId);
1933
+ }, _SpeakingMap.DELAY)
1934
+ );
1935
+ }
1936
+ };
1937
+
1938
+ // src/receive/VoiceReceiver.ts
1939
+ var HEADER_EXTENSION_BYTE = Buffer8.from([190, 222]);
1940
+ var UNPADDED_NONCE_LENGTH = 4;
1941
+ var AUTH_TAG_LENGTH = 16;
1942
+ var VoiceReceiver = class {
1943
+ static {
1944
+ __name(this, "VoiceReceiver");
1945
+ }
1946
+ /**
1947
+ * The attached connection of this receiver.
1948
+ */
1949
+ voiceConnection;
1950
+ /**
1951
+ * Maps SSRCs to Discord user ids.
1952
+ */
1953
+ ssrcMap;
1954
+ /**
1955
+ * The current audio subscriptions of this receiver.
1956
+ */
1957
+ subscriptions;
1958
+ /**
1959
+ * The connection data of the receiver.
1960
+ *
1961
+ * @internal
1962
+ */
1963
+ connectionData;
1964
+ /**
1965
+ * The speaking map of the receiver.
1966
+ */
1967
+ speaking;
1968
+ constructor(voiceConnection) {
1969
+ this.voiceConnection = voiceConnection;
1970
+ this.ssrcMap = new SSRCMap();
1971
+ this.speaking = new SpeakingMap();
1972
+ this.subscriptions = /* @__PURE__ */ new Map();
1973
+ this.connectionData = {};
1974
+ this.onWsPacket = this.onWsPacket.bind(this);
1975
+ this.onUdpMessage = this.onUdpMessage.bind(this);
1976
+ }
1977
+ /**
1978
+ * Called when a packet is received on the attached connection's WebSocket.
1979
+ *
1980
+ * @param packet - The received packet
1981
+ * @internal
1982
+ */
1983
+ onWsPacket(packet) {
1984
+ if (packet.op === VoiceOpcodes3.ClientDisconnect) {
1985
+ this.ssrcMap.delete(packet.d.user_id);
1986
+ } else if (packet.op === VoiceOpcodes3.Speaking) {
1987
+ this.ssrcMap.update({ userId: packet.d.user_id, audioSSRC: packet.d.ssrc });
1988
+ }
1989
+ }
1990
+ decrypt(buffer, mode, nonce2, secretKey) {
1991
+ buffer.copy(nonce2, 0, buffer.length - UNPADDED_NONCE_LENGTH);
1992
+ let headerSize = 12;
1993
+ const first = buffer.readUint8();
1994
+ if (first >> 4 & 1) headerSize += 4;
1995
+ const header = buffer.subarray(0, headerSize);
1996
+ const encrypted = buffer.subarray(headerSize, buffer.length - AUTH_TAG_LENGTH - UNPADDED_NONCE_LENGTH);
1997
+ const authTag = buffer.subarray(
1998
+ buffer.length - AUTH_TAG_LENGTH - UNPADDED_NONCE_LENGTH,
1999
+ buffer.length - UNPADDED_NONCE_LENGTH
2000
+ );
2001
+ switch (mode) {
2002
+ case "aead_aes256_gcm_rtpsize": {
2003
+ const decipheriv = crypto2.createDecipheriv("aes-256-gcm", secretKey, nonce2);
2004
+ decipheriv.setAAD(header);
2005
+ decipheriv.setAuthTag(authTag);
2006
+ return Buffer8.concat([decipheriv.update(encrypted), decipheriv.final()]);
2007
+ }
2008
+ case "aead_xchacha20_poly1305_rtpsize": {
2009
+ return Buffer8.from(
2010
+ methods.crypto_aead_xchacha20poly1305_ietf_decrypt(
2011
+ Buffer8.concat([encrypted, authTag]),
2012
+ header,
2013
+ nonce2,
2014
+ secretKey
2015
+ )
2016
+ );
2017
+ }
2018
+ default: {
2019
+ throw new RangeError(`Unsupported decryption method: ${mode}`);
2020
+ }
2021
+ }
2022
+ }
2023
+ /**
2024
+ * Parses an audio packet, decrypting it to yield an Opus packet.
2025
+ *
2026
+ * @param buffer - The buffer to parse
2027
+ * @param mode - The encryption mode
2028
+ * @param nonce - The nonce buffer used by the connection for encryption
2029
+ * @param secretKey - The secret key used by the connection for encryption
2030
+ * @param userId - The user id that sent the packet
2031
+ * @returns The parsed Opus packet
2032
+ */
2033
+ parsePacket(buffer, mode, nonce2, secretKey, userId) {
2034
+ let packet = this.decrypt(buffer, mode, nonce2, secretKey);
2035
+ if (!packet) throw new Error("Failed to parse packet");
2036
+ const hasPadding = buffer[0] && Boolean(buffer[0] & 32);
2037
+ if (hasPadding) {
2038
+ const paddingAmount = packet[packet.length - 1];
2039
+ if (paddingAmount < packet.length) {
2040
+ packet = packet.subarray(0, packet.length - paddingAmount);
2041
+ }
2042
+ }
2043
+ if (buffer.subarray(12, 14).compare(HEADER_EXTENSION_BYTE) === 0) {
2044
+ const headerExtensionLength = buffer.subarray(14).readUInt16BE();
2045
+ packet = packet.subarray(4 * headerExtensionLength);
2046
+ }
2047
+ if (this.voiceConnection.state.status === "ready" /* Ready */ && (this.voiceConnection.state.networking.state.code === 4 /* Ready */ || this.voiceConnection.state.networking.state.code === 5 /* Resuming */)) {
2048
+ const daveSession = this.voiceConnection.state.networking.state.dave;
2049
+ if (daveSession) packet = daveSession.decrypt(packet, userId);
2050
+ }
2051
+ return packet;
2052
+ }
2053
+ /**
2054
+ * Called when the UDP socket of the attached connection receives a message.
2055
+ *
2056
+ * @param msg - The received message
2057
+ * @internal
2058
+ */
2059
+ onUdpMessage(msg) {
2060
+ if (msg.length <= 8) return;
2061
+ const ssrc = msg.readUInt32BE(8);
2062
+ const userData = this.ssrcMap.get(ssrc);
2063
+ if (!userData) return;
2064
+ this.speaking.onPacket(userData.userId);
2065
+ const stream = this.subscriptions.get(userData.userId);
2066
+ if (!stream) return;
2067
+ if (this.connectionData.encryptionMode && this.connectionData.nonceBuffer && this.connectionData.secretKey) {
2068
+ if ((msg[1] & 127) !== RTP_OPUS_PAYLOAD_TYPE) return;
2069
+ const rtpVersion = msg[0] >> 6;
2070
+ if (rtpVersion !== 2) return;
2071
+ try {
2072
+ const packet = this.parsePacket(
2073
+ msg,
2074
+ this.connectionData.encryptionMode,
2075
+ this.connectionData.nonceBuffer,
2076
+ this.connectionData.secretKey,
2077
+ userData.userId
2078
+ );
2079
+ if (packet) stream.push(packet);
2080
+ } catch (error) {
2081
+ stream.destroy(error);
2082
+ }
2083
+ }
2084
+ }
2085
+ /**
2086
+ * Creates a subscription for the given user id.
2087
+ *
2088
+ * @param target - The id of the user to subscribe to
2089
+ * @returns A readable stream of Opus packets received from the target
2090
+ */
2091
+ subscribe(userId, options) {
2092
+ const existing = this.subscriptions.get(userId);
2093
+ if (existing) return existing;
2094
+ const stream = new AudioReceiveStream({
2095
+ ...createDefaultAudioReceiveStreamOptions(),
2096
+ ...options
2097
+ });
2098
+ stream.once("close", () => this.subscriptions.delete(userId));
2099
+ this.subscriptions.set(userId, stream);
2100
+ return stream;
2101
+ }
2102
+ };
2103
+
2104
+ // src/VoiceConnection.ts
2105
+ var VoiceConnectionStatus = /* @__PURE__ */ ((VoiceConnectionStatus2) => {
2106
+ VoiceConnectionStatus2["Connecting"] = "connecting";
2107
+ VoiceConnectionStatus2["Destroyed"] = "destroyed";
2108
+ VoiceConnectionStatus2["Disconnected"] = "disconnected";
2109
+ VoiceConnectionStatus2["Ready"] = "ready";
2110
+ VoiceConnectionStatus2["Signalling"] = "signalling";
2111
+ return VoiceConnectionStatus2;
2112
+ })(VoiceConnectionStatus || {});
2113
+ var VoiceConnectionDisconnectReason = /* @__PURE__ */ ((VoiceConnectionDisconnectReason2) => {
2114
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["WebSocketClose"] = 0] = "WebSocketClose";
2115
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["AdapterUnavailable"] = 1] = "AdapterUnavailable";
2116
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["EndpointRemoved"] = 2] = "EndpointRemoved";
2117
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["Manual"] = 3] = "Manual";
2118
+ return VoiceConnectionDisconnectReason2;
2119
+ })(VoiceConnectionDisconnectReason || {});
2120
+ var VoiceConnection = class extends EventEmitter8 {
2121
+ static {
2122
+ __name(this, "VoiceConnection");
2123
+ }
2124
+ /**
2125
+ * The number of consecutive rejoin attempts. Initially 0, and increments for each rejoin.
2126
+ * When a connection is successfully established, it resets to 0.
2127
+ */
2128
+ rejoinAttempts;
2129
+ /**
2130
+ * The state of the voice connection.
2131
+ */
2132
+ _state;
2133
+ /**
2134
+ * A configuration storing all the data needed to reconnect to a Guild's voice server.
2135
+ *
2136
+ * @internal
2137
+ */
2138
+ joinConfig;
2139
+ /**
2140
+ * The two packets needed to successfully establish a voice connection. They are received
2141
+ * from the main Discord gateway after signalling to change the voice state.
2142
+ */
2143
+ packets;
2144
+ /**
2145
+ * The receiver of this voice connection. You should join the voice channel with `selfDeaf` set
2146
+ * to false for this feature to work properly.
2147
+ */
2148
+ receiver;
2149
+ /**
2150
+ * The debug logger function, if debugging is enabled.
2151
+ */
2152
+ debug;
2153
+ /**
2154
+ * The options used to create this voice connection.
2155
+ */
2156
+ options;
2157
+ /**
2158
+ * Creates a new voice connection.
2159
+ *
2160
+ * @param joinConfig - The data required to establish the voice connection
2161
+ * @param options - The options used to create this voice connection
2162
+ */
2163
+ constructor(joinConfig, options) {
2164
+ super();
2165
+ this.debug = options.debug ? (message) => this.emit("debug", message) : null;
2166
+ this.rejoinAttempts = 0;
2167
+ this.receiver = new VoiceReceiver(this);
2168
+ this.onNetworkingClose = this.onNetworkingClose.bind(this);
2169
+ this.onNetworkingStateChange = this.onNetworkingStateChange.bind(this);
2170
+ this.onNetworkingError = this.onNetworkingError.bind(this);
2171
+ this.onNetworkingDebug = this.onNetworkingDebug.bind(this);
2172
+ this.onNetworkingTransitioned = this.onNetworkingTransitioned.bind(this);
2173
+ const adapter = options.adapterCreator({
2174
+ onVoiceServerUpdate: /* @__PURE__ */ __name((data) => this.addServerPacket(data), "onVoiceServerUpdate"),
2175
+ onVoiceStateUpdate: /* @__PURE__ */ __name((data) => this.addStatePacket(data), "onVoiceStateUpdate"),
2176
+ destroy: /* @__PURE__ */ __name(() => this.destroy(false), "destroy")
2177
+ });
2178
+ this._state = { status: "signalling" /* Signalling */, adapter };
2179
+ this.packets = {
2180
+ server: void 0,
2181
+ state: void 0
2182
+ };
2183
+ this.joinConfig = joinConfig;
2184
+ this.options = options;
2185
+ }
2186
+ /**
2187
+ * The current state of the voice connection.
2188
+ *
2189
+ * @remarks
2190
+ * The setter will perform clean-up operations where necessary.
2191
+ */
2192
+ get state() {
2193
+ return this._state;
2194
+ }
2195
+ set state(newState) {
2196
+ const oldState = this._state;
2197
+ const oldNetworking = Reflect.get(oldState, "networking");
2198
+ const newNetworking = Reflect.get(newState, "networking");
2199
+ const oldSubscription = Reflect.get(oldState, "subscription");
2200
+ const newSubscription = Reflect.get(newState, "subscription");
2201
+ if (oldNetworking !== newNetworking) {
2202
+ if (oldNetworking) {
2203
+ oldNetworking.on("error", noop);
2204
+ oldNetworking.off("debug", this.onNetworkingDebug);
2205
+ oldNetworking.off("error", this.onNetworkingError);
2206
+ oldNetworking.off("close", this.onNetworkingClose);
2207
+ oldNetworking.off("stateChange", this.onNetworkingStateChange);
2208
+ oldNetworking.off("transitioned", this.onNetworkingTransitioned);
2209
+ oldNetworking.destroy();
2210
+ }
2211
+ if (newNetworking) this.updateReceiveBindings(newNetworking.state, oldNetworking?.state);
2212
+ }
2213
+ if (newState.status === "ready" /* Ready */) {
2214
+ this.rejoinAttempts = 0;
2215
+ } else if (newState.status === "destroyed" /* Destroyed */) {
2216
+ for (const stream of this.receiver.subscriptions.values()) {
2217
+ if (!stream.destroyed) stream.destroy();
2218
+ }
2219
+ }
2220
+ if (oldState.status !== "destroyed" /* Destroyed */ && newState.status === "destroyed" /* Destroyed */) {
2221
+ oldState.adapter.destroy();
2222
+ }
2223
+ this._state = newState;
2224
+ if (oldSubscription && oldSubscription !== newSubscription) {
2225
+ oldSubscription.unsubscribe();
2226
+ }
2227
+ this.emit("stateChange", oldState, newState);
2228
+ if (oldState.status !== newState.status) {
2229
+ this.emit(newState.status, oldState, newState);
2230
+ }
2231
+ }
2232
+ /**
2233
+ * Registers a `VOICE_SERVER_UPDATE` packet to the voice connection. This will cause it to reconnect using the
2234
+ * new data provided in the packet.
2235
+ *
2236
+ * @param packet - The received `VOICE_SERVER_UPDATE` packet
2237
+ */
2238
+ addServerPacket(packet) {
2239
+ this.packets.server = packet;
2240
+ if (packet.endpoint) {
2241
+ this.configureNetworking();
2242
+ } else if (this.state.status !== "destroyed" /* Destroyed */) {
2243
+ this.state = {
2244
+ ...this.state,
2245
+ status: "disconnected" /* Disconnected */,
2246
+ reason: 2 /* EndpointRemoved */
2247
+ };
2248
+ }
2249
+ }
2250
+ /**
2251
+ * Registers a `VOICE_STATE_UPDATE` packet to the voice connection. Most importantly, it stores the id of the
2252
+ * channel that the client is connected to.
2253
+ *
2254
+ * @param packet - The received `VOICE_STATE_UPDATE` packet
2255
+ */
2256
+ addStatePacket(packet) {
2257
+ this.packets.state = packet;
2258
+ if (packet.self_deaf !== void 0) this.joinConfig.selfDeaf = packet.self_deaf;
2259
+ if (packet.self_mute !== void 0) this.joinConfig.selfMute = packet.self_mute;
2260
+ if (packet.channel_id) this.joinConfig.channelId = packet.channel_id;
2261
+ }
2262
+ /**
2263
+ * Called when the networking state changes, and the new ws/udp packet/message handlers need to be rebound
2264
+ * to the new instances.
2265
+ *
2266
+ * @param newState - The new networking state
2267
+ * @param oldState - The old networking state, if there is one
2268
+ */
2269
+ updateReceiveBindings(newState, oldState) {
2270
+ const oldWs = Reflect.get(oldState ?? {}, "ws");
2271
+ const newWs = Reflect.get(newState, "ws");
2272
+ const oldUdp = Reflect.get(oldState ?? {}, "udp");
2273
+ const newUdp = Reflect.get(newState, "udp");
2274
+ if (oldWs !== newWs) {
2275
+ oldWs?.off("packet", this.receiver.onWsPacket);
2276
+ newWs?.on("packet", this.receiver.onWsPacket);
2277
+ }
2278
+ if (oldUdp !== newUdp) {
2279
+ oldUdp?.off("message", this.receiver.onUdpMessage);
2280
+ newUdp?.on("message", this.receiver.onUdpMessage);
2281
+ }
2282
+ this.receiver.connectionData = Reflect.get(newState, "connectionData") ?? {};
2283
+ }
2284
+ /**
2285
+ * Attempts to configure a networking instance for this voice connection using the received packets.
2286
+ * Both packets are required, and any existing networking instance will be destroyed.
2287
+ *
2288
+ * @remarks
2289
+ * This is called when the voice server of the connection changes, e.g. if the bot is moved into a
2290
+ * different channel in the same guild but has a different voice server. In this instance, the connection
2291
+ * needs to be re-established to the new voice server.
2292
+ *
2293
+ * The connection will transition to the Connecting state when this is called.
2294
+ */
2295
+ configureNetworking() {
2296
+ const { server, state } = this.packets;
2297
+ if (!server || !state || this.state.status === "destroyed" /* Destroyed */ || !server.endpoint) return;
2298
+ const networking = new Networking(
2299
+ {
2300
+ endpoint: server.endpoint,
2301
+ serverId: server.guild_id,
2302
+ token: server.token,
2303
+ sessionId: state.session_id,
2304
+ userId: state.user_id,
2305
+ channelId: state.channel_id
2306
+ },
2307
+ {
2308
+ debug: Boolean(this.debug),
2309
+ daveEncryption: this.options.daveEncryption ?? true,
2310
+ decryptionFailureTolerance: this.options.decryptionFailureTolerance
2311
+ }
2312
+ );
2313
+ networking.once("close", this.onNetworkingClose);
2314
+ networking.on("stateChange", this.onNetworkingStateChange);
2315
+ networking.on("error", this.onNetworkingError);
2316
+ networking.on("debug", this.onNetworkingDebug);
2317
+ networking.on("transitioned", this.onNetworkingTransitioned);
2318
+ this.state = {
2319
+ ...this.state,
2320
+ status: "connecting" /* Connecting */,
2321
+ networking
2322
+ };
2323
+ }
2324
+ /**
2325
+ * Called when the networking instance for this connection closes. If the close code is 4014 (do not reconnect),
2326
+ * the voice connection will transition to the Disconnected state which will store the close code. You can
2327
+ * decide whether or not to reconnect when this occurs by listening for the state change and calling reconnect().
2328
+ *
2329
+ * @remarks
2330
+ * If the close code was anything other than 4014, it is likely that the closing was not intended, and so the
2331
+ * VoiceConnection will signal to Discord that it would like to rejoin the channel. This automatically attempts
2332
+ * to re-establish the connection. This would be seen as a transition from the Ready state to the Signalling state.
2333
+ * @param code - The close code
2334
+ */
2335
+ onNetworkingClose(code) {
2336
+ if (this.state.status === "destroyed" /* Destroyed */) return;
2337
+ if (code === 4014) {
2338
+ this.state = {
2339
+ ...this.state,
2340
+ status: "disconnected" /* Disconnected */,
2341
+ reason: 0 /* WebSocketClose */,
2342
+ closeCode: code
2343
+ };
2344
+ } else {
2345
+ this.state = {
2346
+ ...this.state,
2347
+ status: "signalling" /* Signalling */
2348
+ };
2349
+ this.rejoinAttempts++;
2350
+ if (!this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2351
+ this.state = {
2352
+ ...this.state,
2353
+ status: "disconnected" /* Disconnected */,
2354
+ reason: 1 /* AdapterUnavailable */
2355
+ };
2356
+ }
2357
+ }
2358
+ }
2359
+ /**
2360
+ * Called when the state of the networking instance changes. This is used to derive the state of the voice connection.
2361
+ *
2362
+ * @param oldState - The previous state
2363
+ * @param newState - The new state
2364
+ */
2365
+ onNetworkingStateChange(oldState, newState) {
2366
+ this.updateReceiveBindings(newState, oldState);
2367
+ if (oldState.code === newState.code) return;
2368
+ if (this.state.status !== "connecting" /* Connecting */ && this.state.status !== "ready" /* Ready */)
2369
+ return;
2370
+ if (newState.code === 4 /* Ready */) {
2371
+ this.state = {
2372
+ ...this.state,
2373
+ status: "ready" /* Ready */
2374
+ };
2375
+ } else if (newState.code !== 6 /* Closed */) {
2376
+ this.state = {
2377
+ ...this.state,
2378
+ status: "connecting" /* Connecting */
2379
+ };
2380
+ }
2381
+ }
2382
+ /**
2383
+ * Propagates errors from the underlying network instance.
2384
+ *
2385
+ * @param error - The error to propagate
2386
+ */
2387
+ onNetworkingError(error) {
2388
+ this.emit("error", error);
2389
+ }
2390
+ /**
2391
+ * Propagates debug messages from the underlying network instance.
2392
+ *
2393
+ * @param message - The debug message to propagate
2394
+ */
2395
+ onNetworkingDebug(message) {
2396
+ this.debug?.(`[NW] ${message}`);
2397
+ }
2398
+ /**
2399
+ * Propagates transitions from the underlying network instance.
2400
+ *
2401
+ * @param transitionId - The transition id
2402
+ */
2403
+ onNetworkingTransitioned(transitionId) {
2404
+ this.emit("transitioned", transitionId);
2405
+ }
2406
+ /**
2407
+ * Prepares an audio packet for dispatch.
2408
+ *
2409
+ * @param buffer - The Opus packet to prepare
2410
+ */
2411
+ prepareAudioPacket(buffer) {
2412
+ const state = this.state;
2413
+ if (state.status !== "ready" /* Ready */) return;
2414
+ return state.networking.prepareAudioPacket(buffer);
2415
+ }
2416
+ /**
2417
+ * Dispatches the previously prepared audio packet (if any)
2418
+ */
2419
+ dispatchAudio() {
2420
+ const state = this.state;
2421
+ if (state.status !== "ready" /* Ready */) return;
2422
+ return state.networking.dispatchAudio();
2423
+ }
2424
+ /**
2425
+ * Prepares an audio packet and dispatches it immediately.
2426
+ *
2427
+ * @param buffer - The Opus packet to play
2428
+ */
2429
+ playOpusPacket(buffer) {
2430
+ const state = this.state;
2431
+ if (state.status !== "ready" /* Ready */) return;
2432
+ state.networking.prepareAudioPacket(buffer);
2433
+ return state.networking.dispatchAudio();
2434
+ }
2435
+ /**
2436
+ * Destroys the VoiceConnection, preventing it from connecting to voice again.
2437
+ * This method should be called when you no longer require the VoiceConnection to
2438
+ * prevent memory leaks.
2439
+ *
2440
+ * @param adapterAvailable - Whether the adapter can be used
2441
+ */
2442
+ destroy(adapterAvailable = true) {
2443
+ if (this.state.status === "destroyed" /* Destroyed */) {
2444
+ throw new Error("Cannot destroy VoiceConnection - it has already been destroyed");
2445
+ }
2446
+ if (getVoiceConnection(this.joinConfig.guildId, this.joinConfig.group) === this) {
2447
+ untrackVoiceConnection(this);
2448
+ }
2449
+ if (adapterAvailable) {
2450
+ this.state.adapter.sendPayload(createJoinVoiceChannelPayload({ ...this.joinConfig, channelId: null }));
2451
+ }
2452
+ this.state = {
2453
+ status: "destroyed" /* Destroyed */
2454
+ };
2455
+ }
2456
+ /**
2457
+ * Disconnects the VoiceConnection, allowing the possibility of rejoining later on.
2458
+ *
2459
+ * @returns `true` if the connection was successfully disconnected
2460
+ */
2461
+ disconnect() {
2462
+ if (this.state.status === "destroyed" /* Destroyed */ || this.state.status === "signalling" /* Signalling */) {
2463
+ return false;
2464
+ }
2465
+ this.joinConfig.channelId = null;
2466
+ if (!this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2467
+ this.state = {
2468
+ adapter: this.state.adapter,
2469
+ subscription: this.state.subscription,
2470
+ status: "disconnected" /* Disconnected */,
2471
+ reason: 1 /* AdapterUnavailable */
2472
+ };
2473
+ return false;
2474
+ }
2475
+ this.state = {
2476
+ adapter: this.state.adapter,
2477
+ reason: 3 /* Manual */,
2478
+ status: "disconnected" /* Disconnected */
2479
+ };
2480
+ return true;
2481
+ }
2482
+ /**
2483
+ * Attempts to rejoin (better explanation soon:tm:)
2484
+ *
2485
+ * @remarks
2486
+ * Calling this method successfully will automatically increment the `rejoinAttempts` counter,
2487
+ * which you can use to inform whether or not you'd like to keep attempting to reconnect your
2488
+ * voice connection.
2489
+ *
2490
+ * A state transition from Disconnected to Signalling will be observed when this is called.
2491
+ */
2492
+ rejoin(joinConfig) {
2493
+ if (this.state.status === "destroyed" /* Destroyed */) {
2494
+ return false;
2495
+ }
2496
+ const notReady = this.state.status !== "ready" /* Ready */;
2497
+ if (notReady) this.rejoinAttempts++;
2498
+ Object.assign(this.joinConfig, joinConfig);
2499
+ if (this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2500
+ if (notReady) {
2501
+ this.state = {
2502
+ ...this.state,
2503
+ status: "signalling" /* Signalling */
2504
+ };
2505
+ }
2506
+ return true;
2507
+ }
2508
+ this.state = {
2509
+ adapter: this.state.adapter,
2510
+ subscription: this.state.subscription,
2511
+ status: "disconnected" /* Disconnected */,
2512
+ reason: 1 /* AdapterUnavailable */
2513
+ };
2514
+ return false;
2515
+ }
2516
+ /**
2517
+ * Updates the speaking status of the voice connection. This is used when audio players are done playing audio,
2518
+ * and need to signal that the connection is no longer playing audio.
2519
+ *
2520
+ * @param enabled - Whether or not to show as speaking
2521
+ */
2522
+ setSpeaking(enabled) {
2523
+ if (this.state.status !== "ready" /* Ready */) return false;
2524
+ return this.state.networking.setSpeaking(enabled);
2525
+ }
2526
+ /**
2527
+ * Subscribes to an audio player, allowing the player to play audio on this voice connection.
2528
+ *
2529
+ * @param player - The audio player to subscribe to
2530
+ * @returns The created subscription
2531
+ */
2532
+ subscribe(player) {
2533
+ if (this.state.status === "destroyed" /* Destroyed */) return;
2534
+ const subscription = player["subscribe"](this);
2535
+ this.state = {
2536
+ ...this.state,
2537
+ subscription
2538
+ };
2539
+ return subscription;
2540
+ }
2541
+ /**
2542
+ * The latest ping (in milliseconds) for the WebSocket connection and audio playback for this voice
2543
+ * connection, if this data is available.
2544
+ *
2545
+ * @remarks
2546
+ * For this data to be available, the VoiceConnection must be in the Ready state, and its underlying
2547
+ * WebSocket connection and UDP socket must have had at least one ping-pong exchange.
2548
+ */
2549
+ get ping() {
2550
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */) {
2551
+ return {
2552
+ ws: this.state.networking.state.ws.ping,
2553
+ udp: this.state.networking.state.udp.ping
2554
+ };
2555
+ }
2556
+ return {
2557
+ ws: void 0,
2558
+ udp: void 0
2559
+ };
2560
+ }
2561
+ /**
2562
+ * The current voice privacy code of the encrypted session.
2563
+ *
2564
+ * @remarks
2565
+ * For this data to be available, the VoiceConnection must be in the Ready state,
2566
+ * and the connection would have to be end-to-end encrypted.
2567
+ */
2568
+ get voicePrivacyCode() {
2569
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */) {
2570
+ return this.state.networking.state.dave?.voicePrivacyCode ?? void 0;
2571
+ }
2572
+ return void 0;
2573
+ }
2574
+ /**
2575
+ * Gets the verification code for a user in the session.
2576
+ *
2577
+ * @throws Will throw if end-to-end encryption is not on or if the user id provided is not in the session.
2578
+ */
2579
+ async getVerificationCode(userId) {
2580
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */ && this.state.networking.state.dave) {
2581
+ return this.state.networking.state.dave.getVerificationCode(userId);
2582
+ }
2583
+ throw new Error("Session not available");
2584
+ }
2585
+ /**
2586
+ * Called when a subscription of this voice connection to an audio player is removed.
2587
+ *
2588
+ * @param subscription - The removed subscription
2589
+ */
2590
+ onSubscriptionRemoved(subscription) {
2591
+ if (this.state.status !== "destroyed" /* Destroyed */ && this.state.subscription === subscription) {
2592
+ this.state = {
2593
+ ...this.state,
2594
+ subscription: void 0
2595
+ };
2596
+ }
2597
+ }
2598
+ };
2599
+ function createVoiceConnection(joinConfig, options) {
2600
+ const payload = createJoinVoiceChannelPayload(joinConfig);
2601
+ const existing = getVoiceConnection(joinConfig.guildId, joinConfig.group);
2602
+ if (existing && existing.state.status !== "destroyed" /* Destroyed */) {
2603
+ if (existing.state.status === "disconnected" /* Disconnected */) {
2604
+ existing.rejoin({
2605
+ channelId: joinConfig.channelId,
2606
+ selfDeaf: joinConfig.selfDeaf,
2607
+ selfMute: joinConfig.selfMute
2608
+ });
2609
+ } else if (!existing.state.adapter.sendPayload(payload)) {
2610
+ existing.state = {
2611
+ ...existing.state,
2612
+ status: "disconnected" /* Disconnected */,
2613
+ reason: 1 /* AdapterUnavailable */
2614
+ };
2615
+ }
2616
+ return existing;
2617
+ }
2618
+ const voiceConnection = new VoiceConnection(joinConfig, options);
2619
+ trackVoiceConnection(voiceConnection);
2620
+ if (voiceConnection.state.status !== "destroyed" /* Destroyed */ && !voiceConnection.state.adapter.sendPayload(payload)) {
2621
+ voiceConnection.state = {
2622
+ ...voiceConnection.state,
2623
+ status: "disconnected" /* Disconnected */,
2624
+ reason: 1 /* AdapterUnavailable */
2625
+ };
2626
+ }
2627
+ return voiceConnection;
2628
+ }
2629
+ __name(createVoiceConnection, "createVoiceConnection");
2630
+
2631
+ // src/joinVoiceChannel.ts
2632
+ function joinVoiceChannel(options) {
2633
+ const joinConfig = {
2634
+ selfDeaf: true,
2635
+ selfMute: false,
2636
+ group: "default",
2637
+ ...options
2638
+ };
2639
+ return createVoiceConnection(joinConfig, {
2640
+ adapterCreator: options.adapterCreator,
2641
+ debug: options.debug,
2642
+ daveEncryption: options.daveEncryption,
2643
+ decryptionFailureTolerance: options.decryptionFailureTolerance
2644
+ });
2645
+ }
2646
+ __name(joinVoiceChannel, "joinVoiceChannel");
2647
+
2648
+ // src/audio/AudioResource.ts
2649
+ import { pipeline } from "stream";
2650
+ import prism2 from "prism-media";
2651
+
2652
+ // src/audio/TransformerGraph.ts
2653
+ import prism from "prism-media";
2654
+ var FFMPEG_PCM_ARGUMENTS = ["-analyzeduration", "0", "-loglevel", "0", "-f", "s16le", "-ar", "48000", "-ac", "2"];
2655
+ var FFMPEG_OPUS_ARGUMENTS = [
2656
+ "-analyzeduration",
2657
+ "0",
2658
+ "-loglevel",
2659
+ "0",
2660
+ "-acodec",
2661
+ "libopus",
2662
+ "-f",
2663
+ "opus",
2664
+ "-ar",
2665
+ "48000",
2666
+ "-ac",
2667
+ "2"
2668
+ ];
2669
+ var StreamType = /* @__PURE__ */ ((StreamType2) => {
2670
+ StreamType2["Arbitrary"] = "arbitrary";
2671
+ StreamType2["OggOpus"] = "ogg/opus";
2672
+ StreamType2["Opus"] = "opus";
2673
+ StreamType2["Raw"] = "raw";
2674
+ StreamType2["WebmOpus"] = "webm/opus";
2675
+ return StreamType2;
2676
+ })(StreamType || {});
2677
+ var TransformerType = /* @__PURE__ */ ((TransformerType2) => {
2678
+ TransformerType2["FFmpegOgg"] = "ffmpeg ogg";
2679
+ TransformerType2["FFmpegPCM"] = "ffmpeg pcm";
2680
+ TransformerType2["InlineVolume"] = "volume transformer";
2681
+ TransformerType2["OggOpusDemuxer"] = "ogg/opus demuxer";
2682
+ TransformerType2["OpusDecoder"] = "opus decoder";
2683
+ TransformerType2["OpusEncoder"] = "opus encoder";
2684
+ TransformerType2["WebmOpusDemuxer"] = "webm/opus demuxer";
2685
+ return TransformerType2;
2686
+ })(TransformerType || {});
2687
+ var Node = class {
2688
+ static {
2689
+ __name(this, "Node");
2690
+ }
2691
+ /**
2692
+ * The outbound edges from this node.
2693
+ */
2694
+ edges = [];
2695
+ /**
2696
+ * The type of stream for this node.
2697
+ */
2698
+ type;
2699
+ constructor(type) {
2700
+ this.type = type;
2701
+ }
2702
+ /**
2703
+ * Creates an outbound edge from this node.
2704
+ *
2705
+ * @param edge - The edge to create
2706
+ */
2707
+ addEdge(edge) {
2708
+ this.edges.push({ ...edge, from: this });
2709
+ }
2710
+ };
2711
+ var NODES = null;
2712
+ function getNode(type) {
2713
+ const node = (NODES ??= initializeNodes()).get(type);
2714
+ if (!node) throw new Error(`Node type '${type}' does not exist!`);
2715
+ return node;
2716
+ }
2717
+ __name(getNode, "getNode");
2718
+ function canEnableFFmpegOptimizations() {
2719
+ try {
2720
+ return prism.FFmpeg.getInfo().output.includes("--enable-libopus");
2721
+ } catch {
2722
+ }
2723
+ return false;
2724
+ }
2725
+ __name(canEnableFFmpegOptimizations, "canEnableFFmpegOptimizations");
2726
+ function initializeNodes() {
2727
+ const nodes = /* @__PURE__ */ new Map();
2728
+ for (const streamType of Object.values(StreamType)) {
2729
+ nodes.set(streamType, new Node(streamType));
2730
+ }
2731
+ nodes.get("raw" /* Raw */).addEdge({
2732
+ type: "opus encoder" /* OpusEncoder */,
2733
+ to: nodes.get("opus" /* Opus */),
2734
+ cost: 1.5,
2735
+ transformer: /* @__PURE__ */ __name(() => new prism.opus.Encoder({ rate: 48e3, channels: 2, frameSize: 960 }), "transformer")
2736
+ });
2737
+ nodes.get("opus" /* Opus */).addEdge({
2738
+ type: "opus decoder" /* OpusDecoder */,
2739
+ to: nodes.get("raw" /* Raw */),
2740
+ cost: 1.5,
2741
+ transformer: /* @__PURE__ */ __name(() => new prism.opus.Decoder({ rate: 48e3, channels: 2, frameSize: 960 }), "transformer")
2742
+ });
2743
+ nodes.get("ogg/opus" /* OggOpus */).addEdge({
2744
+ type: "ogg/opus demuxer" /* OggOpusDemuxer */,
2745
+ to: nodes.get("opus" /* Opus */),
2746
+ cost: 1,
2747
+ transformer: /* @__PURE__ */ __name(() => new prism.opus.OggDemuxer(), "transformer")
2748
+ });
2749
+ nodes.get("webm/opus" /* WebmOpus */).addEdge({
2750
+ type: "webm/opus demuxer" /* WebmOpusDemuxer */,
2751
+ to: nodes.get("opus" /* Opus */),
2752
+ cost: 1,
2753
+ transformer: /* @__PURE__ */ __name(() => new prism.opus.WebmDemuxer(), "transformer")
2754
+ });
2755
+ const FFMPEG_PCM_EDGE = {
2756
+ type: "ffmpeg pcm" /* FFmpegPCM */,
2757
+ to: nodes.get("raw" /* Raw */),
2758
+ cost: 2,
2759
+ transformer: /* @__PURE__ */ __name((input) => new prism.FFmpeg({
2760
+ args: ["-i", typeof input === "string" ? input : "-", ...FFMPEG_PCM_ARGUMENTS]
2761
+ }), "transformer")
2762
+ };
2763
+ nodes.get("arbitrary" /* Arbitrary */).addEdge(FFMPEG_PCM_EDGE);
2764
+ nodes.get("ogg/opus" /* OggOpus */).addEdge(FFMPEG_PCM_EDGE);
2765
+ nodes.get("webm/opus" /* WebmOpus */).addEdge(FFMPEG_PCM_EDGE);
2766
+ nodes.get("raw" /* Raw */).addEdge({
2767
+ type: "volume transformer" /* InlineVolume */,
2768
+ to: nodes.get("raw" /* Raw */),
2769
+ cost: 0.5,
2770
+ transformer: /* @__PURE__ */ __name(() => new prism.VolumeTransformer({ type: "s16le" }), "transformer")
2771
+ });
2772
+ if (canEnableFFmpegOptimizations()) {
2773
+ const FFMPEG_OGG_EDGE = {
2774
+ type: "ffmpeg ogg" /* FFmpegOgg */,
2775
+ to: nodes.get("ogg/opus" /* OggOpus */),
2776
+ cost: 2,
2777
+ transformer: /* @__PURE__ */ __name((input) => new prism.FFmpeg({
2778
+ args: ["-i", typeof input === "string" ? input : "-", ...FFMPEG_OPUS_ARGUMENTS]
2779
+ }), "transformer")
2780
+ };
2781
+ nodes.get("arbitrary" /* Arbitrary */).addEdge(FFMPEG_OGG_EDGE);
2782
+ nodes.get("ogg/opus" /* OggOpus */).addEdge(FFMPEG_OGG_EDGE);
2783
+ nodes.get("webm/opus" /* WebmOpus */).addEdge(FFMPEG_OGG_EDGE);
2784
+ }
2785
+ return nodes;
2786
+ }
2787
+ __name(initializeNodes, "initializeNodes");
2788
+ function findPath(from, constraints, goal = getNode("opus" /* Opus */), path = [], depth = 5) {
2789
+ if (from === goal && constraints(path)) {
2790
+ return { cost: 0 };
2791
+ } else if (depth === 0) {
2792
+ return { cost: Number.POSITIVE_INFINITY };
2793
+ }
2794
+ let currentBest;
2795
+ for (const edge of from.edges) {
2796
+ if (currentBest && edge.cost > currentBest.cost) continue;
2797
+ const next = findPath(edge.to, constraints, goal, [...path, edge], depth - 1);
2798
+ const cost = edge.cost + next.cost;
2799
+ if (!currentBest || cost < currentBest.cost) {
2800
+ currentBest = { cost, edge, next };
2801
+ }
2802
+ }
2803
+ return currentBest ?? { cost: Number.POSITIVE_INFINITY };
2804
+ }
2805
+ __name(findPath, "findPath");
2806
+ function constructPipeline(step) {
2807
+ const edges = [];
2808
+ let current = step;
2809
+ while (current?.edge) {
2810
+ edges.push(current.edge);
2811
+ current = current.next;
2812
+ }
2813
+ return edges;
2814
+ }
2815
+ __name(constructPipeline, "constructPipeline");
2816
+ function findPipeline(from, constraint) {
2817
+ return constructPipeline(findPath(getNode(from), constraint));
2818
+ }
2819
+ __name(findPipeline, "findPipeline");
2820
+
2821
+ // src/audio/AudioResource.ts
2822
+ var AudioResource = class {
2823
+ static {
2824
+ __name(this, "AudioResource");
2825
+ }
2826
+ /**
2827
+ * An object-mode Readable stream that emits Opus packets. This is what is played by audio players.
2828
+ */
2829
+ playStream;
2830
+ /**
2831
+ * The pipeline used to convert the input stream into a playable format. For example, this may
2832
+ * contain an FFmpeg component for arbitrary inputs, and it may contain a VolumeTransformer component
2833
+ * for resources with inline volume transformation enabled.
2834
+ */
2835
+ edges;
2836
+ /**
2837
+ * Optional metadata that can be used to identify the resource.
2838
+ */
2839
+ metadata;
2840
+ /**
2841
+ * If the resource was created with inline volume transformation enabled, then this will be a
2842
+ * prism-media VolumeTransformer. You can use this to alter the volume of the stream.
2843
+ */
2844
+ volume;
2845
+ /**
2846
+ * If using an Opus encoder to create this audio resource, then this will be a prism-media opus.Encoder.
2847
+ * You can use this to control settings such as bitrate, FEC, PLP.
2848
+ */
2849
+ encoder;
2850
+ /**
2851
+ * The audio player that the resource is subscribed to, if any.
2852
+ */
2853
+ audioPlayer;
2854
+ /**
2855
+ * The playback duration of this audio resource, given in milliseconds.
2856
+ */
2857
+ playbackDuration = 0;
2858
+ /**
2859
+ * Whether or not the stream for this resource has started (data has become readable)
2860
+ */
2861
+ started = false;
2862
+ /**
2863
+ * The number of silence frames to append to the end of the resource's audio stream, to prevent interpolation glitches.
2864
+ */
2865
+ silencePaddingFrames;
2866
+ /**
2867
+ * The number of remaining silence frames to play. If -1, the frames have not yet started playing.
2868
+ */
2869
+ silenceRemaining = -1;
2870
+ constructor(edges, streams, metadata, silencePaddingFrames) {
2871
+ this.edges = edges;
2872
+ this.playStream = streams.length > 1 ? pipeline(streams, noop) : streams[0];
2873
+ this.metadata = metadata;
2874
+ this.silencePaddingFrames = silencePaddingFrames;
2875
+ for (const stream of streams) {
2876
+ if (stream instanceof prism2.VolumeTransformer) {
2877
+ this.volume = stream;
2878
+ } else if (stream instanceof prism2.opus.Encoder) {
2879
+ this.encoder = stream;
2880
+ }
2881
+ }
2882
+ this.playStream.once("readable", () => this.started = true);
2883
+ }
2884
+ /**
2885
+ * Whether this resource is readable. If the underlying resource is no longer readable, this will still return true
2886
+ * while there are silence padding frames left to play.
2887
+ */
2888
+ get readable() {
2889
+ if (this.silenceRemaining === 0) return false;
2890
+ const real = this.playStream.readable;
2891
+ if (!real) {
2892
+ if (this.silenceRemaining === -1) this.silenceRemaining = this.silencePaddingFrames;
2893
+ return this.silenceRemaining !== 0;
2894
+ }
2895
+ return real;
2896
+ }
2897
+ /**
2898
+ * Whether this resource has ended or not.
2899
+ */
2900
+ get ended() {
2901
+ return this.playStream.readableEnded || this.playStream.destroyed || this.silenceRemaining === 0;
2902
+ }
2903
+ /**
2904
+ * Attempts to read an Opus packet from the audio resource. If a packet is available, the playbackDuration
2905
+ * is incremented.
2906
+ *
2907
+ * @remarks
2908
+ * It is advisable to check that the playStream is readable before calling this method. While no runtime
2909
+ * errors will be thrown, you should check that the resource is still available before attempting to
2910
+ * read from it.
2911
+ * @internal
2912
+ */
2913
+ read() {
2914
+ if (this.silenceRemaining === 0) {
2915
+ return null;
2916
+ } else if (this.silenceRemaining > 0) {
2917
+ this.silenceRemaining--;
2918
+ return SILENCE_FRAME;
2919
+ }
2920
+ const packet = this.playStream.read();
2921
+ if (packet) {
2922
+ this.playbackDuration += 20;
2923
+ }
2924
+ return packet;
2925
+ }
2926
+ };
2927
+ var VOLUME_CONSTRAINT = /* @__PURE__ */ __name((path) => path.some((edge) => edge.type === "volume transformer" /* InlineVolume */), "VOLUME_CONSTRAINT");
2928
+ var NO_CONSTRAINT = /* @__PURE__ */ __name(() => true, "NO_CONSTRAINT");
2929
+ function inferStreamType(stream) {
2930
+ if (stream instanceof prism2.opus.Encoder) {
2931
+ return { streamType: "opus" /* Opus */, hasVolume: false };
2932
+ } else if (stream instanceof prism2.opus.Decoder) {
2933
+ return { streamType: "raw" /* Raw */, hasVolume: false };
2934
+ } else if (stream instanceof prism2.VolumeTransformer) {
2935
+ return { streamType: "raw" /* Raw */, hasVolume: true };
2936
+ } else if (stream instanceof prism2.opus.OggDemuxer) {
2937
+ return { streamType: "opus" /* Opus */, hasVolume: false };
2938
+ } else if (stream instanceof prism2.opus.WebmDemuxer) {
2939
+ return { streamType: "opus" /* Opus */, hasVolume: false };
2940
+ }
2941
+ return { streamType: "arbitrary" /* Arbitrary */, hasVolume: false };
2942
+ }
2943
+ __name(inferStreamType, "inferStreamType");
2944
+ function createAudioResource(input, options = {}) {
2945
+ let inputType = options.inputType;
2946
+ let needsInlineVolume = Boolean(options.inlineVolume);
2947
+ if (typeof input === "string") {
2948
+ inputType = "arbitrary" /* Arbitrary */;
2949
+ } else if (inputType === void 0) {
2950
+ const analysis = inferStreamType(input);
2951
+ inputType = analysis.streamType;
2952
+ needsInlineVolume = needsInlineVolume && !analysis.hasVolume;
2953
+ }
2954
+ const transformerPipeline = findPipeline(inputType, needsInlineVolume ? VOLUME_CONSTRAINT : NO_CONSTRAINT);
2955
+ if (transformerPipeline.length === 0) {
2956
+ if (typeof input === "string") throw new Error(`Invalid pipeline constructed for string resource '${input}'`);
2957
+ return new AudioResource(
2958
+ [],
2959
+ [input],
2960
+ options.metadata ?? null,
2961
+ options.silencePaddingFrames ?? 5
2962
+ );
2963
+ }
2964
+ const streams = transformerPipeline.map((edge) => edge.transformer(input));
2965
+ if (typeof input !== "string") streams.unshift(input);
2966
+ return new AudioResource(
2967
+ transformerPipeline,
2968
+ streams,
2969
+ options.metadata ?? null,
2970
+ options.silencePaddingFrames ?? 5
2971
+ );
2972
+ }
2973
+ __name(createAudioResource, "createAudioResource");
2974
+
2975
+ // src/util/generateDependencyReport.ts
2976
+ import { getCiphers } from "crypto";
2977
+ import { resolve, dirname } from "path";
2978
+ import prism3 from "prism-media";
2979
+ function findPackageJSON(dir, packageName, depth) {
2980
+ if (depth === 0) return void 0;
2981
+ const attemptedPath = resolve(dir, "./package.json");
2982
+ try {
2983
+ const pkg = __require(attemptedPath);
2984
+ if (pkg.name !== packageName) throw new Error("package.json does not match");
2985
+ return pkg;
2986
+ } catch {
2987
+ return findPackageJSON(resolve(dir, ".."), packageName, depth - 1);
2988
+ }
2989
+ }
2990
+ __name(findPackageJSON, "findPackageJSON");
2991
+ function version(name) {
2992
+ try {
2993
+ if (name === "@discordjs/voice") {
2994
+ return "0.19.2";
2995
+ }
2996
+ const pkg = findPackageJSON(dirname(__require.resolve(name)), name, 3);
2997
+ return pkg?.version ?? "not found";
2998
+ } catch {
2999
+ return "not found";
3000
+ }
3001
+ }
3002
+ __name(version, "version");
3003
+ function generateDependencyReport() {
3004
+ const report = [];
3005
+ const addVersion = /* @__PURE__ */ __name((name) => report.push(`- ${name}: ${version(name)}`), "addVersion");
3006
+ report.push("Core Dependencies");
3007
+ addVersion("@discordjs/voice");
3008
+ addVersion("prism-media");
3009
+ report.push("");
3010
+ report.push("Opus Libraries");
3011
+ addVersion("@discordjs/opus");
3012
+ addVersion("opusscript");
3013
+ report.push("");
3014
+ report.push("Encryption Libraries");
3015
+ report.push(`- native crypto support for aes-256-gcm: ${getCiphers().includes("aes-256-gcm") ? "yes" : "no"}`);
3016
+ addVersion("sodium-native");
3017
+ addVersion("sodium");
3018
+ addVersion("libsodium-wrappers");
3019
+ addVersion("@stablelib/xchacha20poly1305");
3020
+ addVersion("@noble/ciphers");
3021
+ report.push("");
3022
+ report.push("DAVE Libraries");
3023
+ addVersion("@snazzah/davey");
3024
+ report.push("");
3025
+ report.push("FFmpeg");
3026
+ try {
3027
+ const info = prism3.FFmpeg.getInfo();
3028
+ report.push(`- version: ${info.version}`);
3029
+ report.push(`- libopus: ${info.output.includes("--enable-libopus") ? "yes" : "no"}`);
3030
+ } catch {
3031
+ report.push("- not found");
3032
+ }
3033
+ return ["-".repeat(50), ...report, "-".repeat(50)].join("\n");
3034
+ }
3035
+ __name(generateDependencyReport, "generateDependencyReport");
3036
+
3037
+ // src/util/entersState.ts
3038
+ import { once } from "events";
3039
+
3040
+ // src/util/abortAfter.ts
3041
+ function abortAfter(delay) {
3042
+ const ac = new AbortController();
3043
+ const timeout = setTimeout(() => ac.abort(), delay);
3044
+ ac.signal.addEventListener("abort", () => clearTimeout(timeout));
3045
+ return [ac, ac.signal];
3046
+ }
3047
+ __name(abortAfter, "abortAfter");
3048
+
3049
+ // src/util/entersState.ts
3050
+ async function entersState(target, status, timeoutOrSignal) {
3051
+ if (target.state.status !== status) {
3052
+ const [ac, signal] = typeof timeoutOrSignal === "number" ? abortAfter(timeoutOrSignal) : [void 0, timeoutOrSignal];
3053
+ try {
3054
+ await once(target, status, { signal });
3055
+ } finally {
3056
+ ac?.abort();
3057
+ }
3058
+ }
3059
+ return target;
3060
+ }
3061
+ __name(entersState, "entersState");
3062
+
3063
+ // src/util/demuxProbe.ts
3064
+ import { Buffer as Buffer9 } from "buffer";
3065
+ import process2 from "process";
3066
+ import { Readable as Readable2 } from "stream";
3067
+ import prism4 from "prism-media";
3068
+ function validateDiscordOpusHead(opusHead) {
3069
+ const channels = opusHead.readUInt8(9);
3070
+ const sampleRate = opusHead.readUInt32LE(12);
3071
+ return channels === 2 && sampleRate === 48e3;
3072
+ }
3073
+ __name(validateDiscordOpusHead, "validateDiscordOpusHead");
3074
+ async function demuxProbe(stream, probeSize = 1024, validator = validateDiscordOpusHead) {
3075
+ return new Promise((resolve2, reject) => {
3076
+ if (stream.readableObjectMode) {
3077
+ reject(new Error("Cannot probe a readable stream in object mode"));
3078
+ return;
3079
+ }
3080
+ if (stream.readableEnded) {
3081
+ reject(new Error("Cannot probe a stream that has ended"));
3082
+ return;
3083
+ }
3084
+ let readBuffer = Buffer9.alloc(0);
3085
+ let resolved;
3086
+ const finish = /* @__PURE__ */ __name((type) => {
3087
+ stream.off("data", onData);
3088
+ stream.off("close", onClose);
3089
+ stream.off("end", onClose);
3090
+ stream.pause();
3091
+ resolved = type;
3092
+ if (stream.readableEnded) {
3093
+ resolve2({
3094
+ stream: Readable2.from(readBuffer),
3095
+ type
3096
+ });
3097
+ } else {
3098
+ if (readBuffer.length > 0) {
3099
+ stream.push(readBuffer);
3100
+ }
3101
+ resolve2({
3102
+ stream,
3103
+ type
3104
+ });
3105
+ }
3106
+ }, "finish");
3107
+ const foundHead = /* @__PURE__ */ __name((type) => (head) => {
3108
+ if (validator(head)) {
3109
+ finish(type);
3110
+ }
3111
+ }, "foundHead");
3112
+ const webm = new prism4.opus.WebmDemuxer();
3113
+ webm.once("error", noop);
3114
+ webm.on("head", foundHead("webm/opus" /* WebmOpus */));
3115
+ const ogg = new prism4.opus.OggDemuxer();
3116
+ ogg.once("error", noop);
3117
+ ogg.on("head", foundHead("ogg/opus" /* OggOpus */));
3118
+ const onClose = /* @__PURE__ */ __name(() => {
3119
+ if (!resolved) {
3120
+ finish("arbitrary" /* Arbitrary */);
3121
+ }
3122
+ }, "onClose");
3123
+ const onData = /* @__PURE__ */ __name((buffer) => {
3124
+ readBuffer = Buffer9.concat([readBuffer, buffer]);
3125
+ webm.write(buffer);
3126
+ ogg.write(buffer);
3127
+ if (readBuffer.length >= probeSize) {
3128
+ stream.off("data", onData);
3129
+ stream.pause();
3130
+ process2.nextTick(onClose);
3131
+ }
3132
+ }, "onData");
3133
+ stream.once("error", reject);
3134
+ stream.on("data", onData);
3135
+ stream.once("close", onClose);
3136
+ stream.once("end", onClose);
3137
+ });
3138
+ }
3139
+ __name(demuxProbe, "demuxProbe");
3140
+
3141
+ // src/index.ts
3142
+ var version2 = "0.19.2";
3143
+ export {
3144
+ AudioPlayer,
3145
+ AudioPlayerError,
3146
+ AudioPlayerStatus,
3147
+ AudioReceiveStream,
3148
+ AudioResource,
3149
+ DAVESession,
3150
+ EndBehaviorType,
3151
+ Networking,
3152
+ NetworkingStatusCode,
3153
+ NoSubscriberBehavior,
3154
+ Node,
3155
+ PlayerSubscription,
3156
+ RTP_OPUS_PAYLOAD_TYPE,
3157
+ SSRCMap,
3158
+ SpeakingMap,
3159
+ StreamType,
3160
+ TransformerType,
3161
+ VoiceConnection,
3162
+ VoiceConnectionDisconnectReason,
3163
+ VoiceConnectionStatus,
3164
+ VoiceReceiver,
3165
+ VoiceUDPSocket,
3166
+ VoiceWebSocket,
3167
+ createAudioPlayer,
3168
+ createAudioResource,
3169
+ createDefaultAudioReceiveStreamOptions,
3170
+ demuxProbe,
3171
+ entersState,
3172
+ generateDependencyReport,
3173
+ getGroups,
3174
+ getVoiceConnection,
3175
+ getVoiceConnections,
3176
+ joinVoiceChannel,
3177
+ validateDiscordOpusHead,
3178
+ version2 as version
3179
+ };
3180
+ //# sourceMappingURL=index.mjs.map