@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,3241 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/index.ts
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
+ AudioPlayer: () => AudioPlayer,
35
+ AudioPlayerError: () => AudioPlayerError,
36
+ AudioPlayerStatus: () => AudioPlayerStatus,
37
+ AudioReceiveStream: () => AudioReceiveStream,
38
+ AudioResource: () => AudioResource,
39
+ DAVESession: () => DAVESession,
40
+ EndBehaviorType: () => EndBehaviorType,
41
+ Networking: () => Networking,
42
+ NetworkingStatusCode: () => NetworkingStatusCode,
43
+ NoSubscriberBehavior: () => NoSubscriberBehavior,
44
+ Node: () => Node,
45
+ PlayerSubscription: () => PlayerSubscription,
46
+ RTP_OPUS_PAYLOAD_TYPE: () => RTP_OPUS_PAYLOAD_TYPE,
47
+ SSRCMap: () => SSRCMap,
48
+ SpeakingMap: () => SpeakingMap,
49
+ StreamType: () => StreamType,
50
+ TransformerType: () => TransformerType,
51
+ VoiceConnection: () => VoiceConnection,
52
+ VoiceConnectionDisconnectReason: () => VoiceConnectionDisconnectReason,
53
+ VoiceConnectionStatus: () => VoiceConnectionStatus,
54
+ VoiceReceiver: () => VoiceReceiver,
55
+ VoiceUDPSocket: () => VoiceUDPSocket,
56
+ VoiceWebSocket: () => VoiceWebSocket,
57
+ createAudioPlayer: () => createAudioPlayer,
58
+ createAudioResource: () => createAudioResource,
59
+ createDefaultAudioReceiveStreamOptions: () => createDefaultAudioReceiveStreamOptions,
60
+ demuxProbe: () => demuxProbe,
61
+ entersState: () => entersState,
62
+ generateDependencyReport: () => generateDependencyReport,
63
+ getGroups: () => getGroups,
64
+ getVoiceConnection: () => getVoiceConnection,
65
+ getVoiceConnections: () => getVoiceConnections,
66
+ joinVoiceChannel: () => joinVoiceChannel,
67
+ validateDiscordOpusHead: () => validateDiscordOpusHead,
68
+ version: () => version2
69
+ });
70
+ module.exports = __toCommonJS(index_exports);
71
+
72
+ // src/VoiceConnection.ts
73
+ var import_node_events8 = require("events");
74
+
75
+ // src/DataStore.ts
76
+ var import_v10 = require("discord-api-types/v10");
77
+ function createJoinVoiceChannelPayload(config) {
78
+ return {
79
+ op: import_v10.GatewayOpcodes.VoiceStateUpdate,
80
+ // eslint-disable-next-line id-length
81
+ d: {
82
+ guild_id: config.guildId,
83
+ channel_id: config.channelId,
84
+ self_deaf: config.selfDeaf,
85
+ self_mute: config.selfMute
86
+ }
87
+ };
88
+ }
89
+ __name(createJoinVoiceChannelPayload, "createJoinVoiceChannelPayload");
90
+ var groups = /* @__PURE__ */ new Map();
91
+ groups.set("default", /* @__PURE__ */ new Map());
92
+ function getOrCreateGroup(group) {
93
+ const existing = groups.get(group);
94
+ if (existing) return existing;
95
+ const map = /* @__PURE__ */ new Map();
96
+ groups.set(group, map);
97
+ return map;
98
+ }
99
+ __name(getOrCreateGroup, "getOrCreateGroup");
100
+ function getGroups() {
101
+ return groups;
102
+ }
103
+ __name(getGroups, "getGroups");
104
+ function getVoiceConnections(group = "default") {
105
+ return groups.get(group);
106
+ }
107
+ __name(getVoiceConnections, "getVoiceConnections");
108
+ function getVoiceConnection(guildId, group = "default") {
109
+ return getVoiceConnections(group)?.get(guildId);
110
+ }
111
+ __name(getVoiceConnection, "getVoiceConnection");
112
+ function untrackVoiceConnection(voiceConnection) {
113
+ return getVoiceConnections(voiceConnection.joinConfig.group)?.delete(voiceConnection.joinConfig.guildId);
114
+ }
115
+ __name(untrackVoiceConnection, "untrackVoiceConnection");
116
+ function trackVoiceConnection(voiceConnection) {
117
+ return getOrCreateGroup(voiceConnection.joinConfig.group).set(voiceConnection.joinConfig.guildId, voiceConnection);
118
+ }
119
+ __name(trackVoiceConnection, "trackVoiceConnection");
120
+ var FRAME_LENGTH = 20;
121
+ var audioCycleInterval;
122
+ var nextTime = -1;
123
+ var audioPlayers = [];
124
+ function audioCycleStep() {
125
+ if (nextTime === -1) return;
126
+ nextTime += FRAME_LENGTH;
127
+ const available = audioPlayers.filter((player) => player.checkPlayable());
128
+ for (const player of available) {
129
+ player["_stepDispatch"]();
130
+ }
131
+ prepareNextAudioFrame(available);
132
+ }
133
+ __name(audioCycleStep, "audioCycleStep");
134
+ function prepareNextAudioFrame(players) {
135
+ const nextPlayer = players.shift();
136
+ if (!nextPlayer) {
137
+ if (nextTime !== -1) {
138
+ audioCycleInterval = setTimeout(() => audioCycleStep(), Math.max(1, nextTime - Date.now()));
139
+ }
140
+ return;
141
+ }
142
+ nextPlayer["_stepPrepare"]();
143
+ setImmediate(() => prepareNextAudioFrame(players));
144
+ }
145
+ __name(prepareNextAudioFrame, "prepareNextAudioFrame");
146
+ function hasAudioPlayer(target) {
147
+ return audioPlayers.includes(target);
148
+ }
149
+ __name(hasAudioPlayer, "hasAudioPlayer");
150
+ function addAudioPlayer(player) {
151
+ if (hasAudioPlayer(player)) return player;
152
+ audioPlayers.push(player);
153
+ if (audioPlayers.length === 1) {
154
+ nextTime = Date.now();
155
+ setImmediate(() => audioCycleStep());
156
+ }
157
+ return player;
158
+ }
159
+ __name(addAudioPlayer, "addAudioPlayer");
160
+ function deleteAudioPlayer(player) {
161
+ const index = audioPlayers.indexOf(player);
162
+ if (index === -1) return;
163
+ audioPlayers.splice(index, 1);
164
+ if (audioPlayers.length === 0) {
165
+ nextTime = -1;
166
+ if (audioCycleInterval !== void 0) clearTimeout(audioCycleInterval);
167
+ }
168
+ }
169
+ __name(deleteAudioPlayer, "deleteAudioPlayer");
170
+
171
+ // src/networking/Networking.ts
172
+ var import_node_buffer6 = require("buffer");
173
+ var import_node_crypto = __toESM(require("crypto"));
174
+ var import_node_events5 = require("events");
175
+ var import_v82 = require("discord-api-types/voice/v8");
176
+
177
+ // src/util/Secretbox.ts
178
+ var import_node_buffer = require("buffer");
179
+ var libs = {
180
+ "sodium-native": /* @__PURE__ */ __name((sodium) => ({
181
+ crypto_aead_xchacha20poly1305_ietf_decrypt: /* @__PURE__ */ __name((cipherText, additionalData, nonce2, key) => {
182
+ const message = import_node_buffer.Buffer.alloc(cipherText.length - sodium.crypto_aead_xchacha20poly1305_ietf_ABYTES);
183
+ sodium.crypto_aead_xchacha20poly1305_ietf_decrypt(message, null, cipherText, additionalData, nonce2, key);
184
+ return message;
185
+ }, "crypto_aead_xchacha20poly1305_ietf_decrypt"),
186
+ crypto_aead_xchacha20poly1305_ietf_encrypt: /* @__PURE__ */ __name((plaintext, additionalData, nonce2, key) => {
187
+ const cipherText = import_node_buffer.Buffer.alloc(plaintext.length + sodium.crypto_aead_xchacha20poly1305_ietf_ABYTES);
188
+ sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(cipherText, plaintext, additionalData, null, nonce2, key);
189
+ return cipherText;
190
+ }, "crypto_aead_xchacha20poly1305_ietf_encrypt")
191
+ }), "sodium-native"),
192
+ sodium: /* @__PURE__ */ __name((sodium) => ({
193
+ 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"),
194
+ 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")
195
+ }), "sodium"),
196
+ "libsodium-wrappers": /* @__PURE__ */ __name((sodium) => ({
197
+ 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"),
198
+ 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")
199
+ }), "libsodium-wrappers"),
200
+ "@stablelib/xchacha20poly1305": /* @__PURE__ */ __name((stablelib) => ({
201
+ crypto_aead_xchacha20poly1305_ietf_decrypt(plaintext, additionalData, nonce2, key) {
202
+ const crypto3 = new stablelib.XChaCha20Poly1305(key);
203
+ return crypto3.open(nonce2, plaintext, additionalData);
204
+ },
205
+ crypto_aead_xchacha20poly1305_ietf_encrypt(cipherText, additionalData, nonce2, key) {
206
+ const crypto3 = new stablelib.XChaCha20Poly1305(key);
207
+ return crypto3.seal(nonce2, cipherText, additionalData);
208
+ }
209
+ }), "@stablelib/xchacha20poly1305"),
210
+ "@noble/ciphers/chacha.js": /* @__PURE__ */ __name((noble) => ({
211
+ crypto_aead_xchacha20poly1305_ietf_decrypt(cipherText, additionalData, nonce2, key) {
212
+ const chacha = noble.xchacha20poly1305(key, nonce2, additionalData);
213
+ return chacha.decrypt(cipherText);
214
+ },
215
+ crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext, additionalData, nonce2, key) {
216
+ const chacha = noble.xchacha20poly1305(key, nonce2, additionalData);
217
+ return chacha.encrypt(plaintext);
218
+ }
219
+ }), "@noble/ciphers/chacha.js")
220
+ };
221
+ var fallbackError = /* @__PURE__ */ __name(() => {
222
+ throw new Error(
223
+ `Cannot play audio as no valid encryption package is installed.
224
+ - Install one of:
225
+ - sodium
226
+ - libsodium-wrappers
227
+ - @stablelib/xchacha20poly1305
228
+ - @noble/ciphers.
229
+ - Use the generateDependencyReport() function for more information.
230
+ `
231
+ );
232
+ }, "fallbackError");
233
+ var methods = {
234
+ crypto_aead_xchacha20poly1305_ietf_encrypt: fallbackError,
235
+ crypto_aead_xchacha20poly1305_ietf_decrypt: fallbackError
236
+ };
237
+ var secretboxLoadPromise = new Promise(async (resolve2) => {
238
+ for (const libName of Object.keys(libs)) {
239
+ try {
240
+ const lib = await import(libName);
241
+ if (libName === "libsodium-wrappers" && lib.ready) {
242
+ await lib.ready;
243
+ }
244
+ Object.assign(methods, libs[libName](lib));
245
+ break;
246
+ } catch {
247
+ }
248
+ }
249
+ resolve2();
250
+ });
251
+
252
+ // src/util/constants.ts
253
+ var RTP_OPUS_PAYLOAD_TYPE = 120;
254
+
255
+ // src/util/util.ts
256
+ var noop = /* @__PURE__ */ __name(() => {
257
+ }, "noop");
258
+
259
+ // src/networking/DAVESession.ts
260
+ var import_node_buffer3 = require("buffer");
261
+ var import_node_events2 = require("events");
262
+ var import_davey = __toESM(require("@snazzah/davey"));
263
+
264
+ // src/audio/AudioPlayer.ts
265
+ var import_node_buffer2 = require("buffer");
266
+ var import_node_events = require("events");
267
+
268
+ // src/audio/AudioPlayerError.ts
269
+ var AudioPlayerError = class extends Error {
270
+ static {
271
+ __name(this, "AudioPlayerError");
272
+ }
273
+ /**
274
+ * The resource associated with the audio player at the time the error was thrown.
275
+ */
276
+ resource;
277
+ constructor(error, resource) {
278
+ super(error.message);
279
+ this.resource = resource;
280
+ this.name = error.name;
281
+ this.stack = error.stack;
282
+ }
283
+ };
284
+
285
+ // src/audio/PlayerSubscription.ts
286
+ var PlayerSubscription = class {
287
+ static {
288
+ __name(this, "PlayerSubscription");
289
+ }
290
+ /**
291
+ * The voice connection of this subscription.
292
+ */
293
+ connection;
294
+ /**
295
+ * The audio player of this subscription.
296
+ */
297
+ player;
298
+ constructor(connection, player) {
299
+ this.connection = connection;
300
+ this.player = player;
301
+ }
302
+ /**
303
+ * Unsubscribes the connection from the audio player, meaning that the
304
+ * audio player cannot stream audio to it until a new subscription is made.
305
+ */
306
+ unsubscribe() {
307
+ this.connection["onSubscriptionRemoved"](this);
308
+ this.player["unsubscribe"](this);
309
+ }
310
+ };
311
+
312
+ // src/audio/AudioPlayer.ts
313
+ var SILENCE_FRAME = import_node_buffer2.Buffer.from([248, 255, 254]);
314
+ var NoSubscriberBehavior = /* @__PURE__ */ ((NoSubscriberBehavior2) => {
315
+ NoSubscriberBehavior2["Pause"] = "pause";
316
+ NoSubscriberBehavior2["Play"] = "play";
317
+ NoSubscriberBehavior2["Stop"] = "stop";
318
+ return NoSubscriberBehavior2;
319
+ })(NoSubscriberBehavior || {});
320
+ var AudioPlayerStatus = /* @__PURE__ */ ((AudioPlayerStatus2) => {
321
+ AudioPlayerStatus2["AutoPaused"] = "autopaused";
322
+ AudioPlayerStatus2["Buffering"] = "buffering";
323
+ AudioPlayerStatus2["Idle"] = "idle";
324
+ AudioPlayerStatus2["Paused"] = "paused";
325
+ AudioPlayerStatus2["Playing"] = "playing";
326
+ return AudioPlayerStatus2;
327
+ })(AudioPlayerStatus || {});
328
+ function stringifyState(state) {
329
+ return JSON.stringify({
330
+ ...state,
331
+ resource: Reflect.has(state, "resource"),
332
+ stepTimeout: Reflect.has(state, "stepTimeout")
333
+ });
334
+ }
335
+ __name(stringifyState, "stringifyState");
336
+ var AudioPlayer = class extends import_node_events.EventEmitter {
337
+ static {
338
+ __name(this, "AudioPlayer");
339
+ }
340
+ /**
341
+ * The state that the AudioPlayer is in.
342
+ */
343
+ _state;
344
+ /**
345
+ * A list of VoiceConnections that are registered to this AudioPlayer. The player will attempt to play audio
346
+ * to the streams in this list.
347
+ */
348
+ subscribers = [];
349
+ /**
350
+ * The behavior that the player should follow when it enters certain situations.
351
+ */
352
+ behaviors;
353
+ /**
354
+ * The debug logger function, if debugging is enabled.
355
+ */
356
+ debug;
357
+ /**
358
+ * Creates a new AudioPlayer.
359
+ */
360
+ constructor(options = {}) {
361
+ super();
362
+ this._state = { status: "idle" /* Idle */ };
363
+ this.behaviors = {
364
+ noSubscriber: "pause" /* Pause */,
365
+ maxMissedFrames: 5,
366
+ ...options.behaviors
367
+ };
368
+ this.debug = options.debug === false ? null : (message) => this.emit("debug", message);
369
+ }
370
+ /**
371
+ * A list of subscribed voice connections that can currently receive audio to play.
372
+ */
373
+ get playable() {
374
+ return this.subscribers.filter(({ connection }) => connection.state.status === "ready" /* Ready */).map(({ connection }) => connection);
375
+ }
376
+ /**
377
+ * Subscribes a VoiceConnection to the audio player's play list. If the VoiceConnection is already subscribed,
378
+ * then the existing subscription is used.
379
+ *
380
+ * @remarks
381
+ * This method should not be directly called. Instead, use VoiceConnection#subscribe.
382
+ * @param connection - The connection to subscribe
383
+ * @returns The new subscription if the voice connection is not yet subscribed, otherwise the existing subscription
384
+ */
385
+ // @ts-ignore
386
+ subscribe(connection) {
387
+ const existingSubscription = this.subscribers.find((subscription) => subscription.connection === connection);
388
+ if (!existingSubscription) {
389
+ const subscription = new PlayerSubscription(connection, this);
390
+ this.subscribers.push(subscription);
391
+ setImmediate(() => this.emit("subscribe", subscription));
392
+ return subscription;
393
+ }
394
+ return existingSubscription;
395
+ }
396
+ /**
397
+ * Unsubscribes a subscription - i.e. removes a voice connection from the play list of the audio player.
398
+ *
399
+ * @remarks
400
+ * This method should not be directly called. Instead, use PlayerSubscription#unsubscribe.
401
+ * @param subscription - The subscription to remove
402
+ * @returns Whether or not the subscription existed on the player and was removed
403
+ */
404
+ // @ts-ignore
405
+ unsubscribe(subscription) {
406
+ const index = this.subscribers.indexOf(subscription);
407
+ const exists = index !== -1;
408
+ if (exists) {
409
+ this.subscribers.splice(index, 1);
410
+ subscription.connection.setSpeaking(false);
411
+ this.emit("unsubscribe", subscription);
412
+ }
413
+ return exists;
414
+ }
415
+ /**
416
+ * The state that the player is in.
417
+ *
418
+ * @remarks
419
+ * The setter will perform clean-up operations where necessary.
420
+ */
421
+ get state() {
422
+ return this._state;
423
+ }
424
+ set state(newState) {
425
+ const oldState = this._state;
426
+ const newResource = Reflect.get(newState, "resource");
427
+ if (oldState.status !== "idle" /* Idle */ && oldState.resource !== newResource) {
428
+ oldState.resource.playStream.on("error", noop);
429
+ oldState.resource.playStream.off("error", oldState.onStreamError);
430
+ oldState.resource.audioPlayer = void 0;
431
+ oldState.resource.playStream.destroy();
432
+ oldState.resource.playStream.read();
433
+ }
434
+ if (oldState.status === "buffering" /* Buffering */ && (newState.status !== "buffering" /* Buffering */ || newState.resource !== oldState.resource)) {
435
+ oldState.resource.playStream.off("end", oldState.onFailureCallback);
436
+ oldState.resource.playStream.off("close", oldState.onFailureCallback);
437
+ oldState.resource.playStream.off("finish", oldState.onFailureCallback);
438
+ oldState.resource.playStream.off("readable", oldState.onReadableCallback);
439
+ }
440
+ if (newState.status === "idle" /* Idle */) {
441
+ this._signalStopSpeaking();
442
+ deleteAudioPlayer(this);
443
+ }
444
+ if (newResource) {
445
+ addAudioPlayer(this);
446
+ }
447
+ const didChangeResources = oldState.status !== "idle" /* Idle */ && newState.status === "playing" /* Playing */ && oldState.resource !== newState.resource;
448
+ this._state = newState;
449
+ this.emit("stateChange", oldState, this._state);
450
+ if (oldState.status !== newState.status || didChangeResources) {
451
+ this.emit(newState.status, oldState, this._state);
452
+ }
453
+ this.debug?.(`state change:
454
+ from ${stringifyState(oldState)}
455
+ to ${stringifyState(newState)}`);
456
+ }
457
+ /**
458
+ * Plays a new resource on the player. If the player is already playing a resource, the existing resource is destroyed
459
+ * (it cannot be reused, even in another player) and is replaced with the new resource.
460
+ *
461
+ * @remarks
462
+ * The player will transition to the Playing state once playback begins, and will return to the Idle state once
463
+ * playback is ended.
464
+ *
465
+ * If the player was previously playing a resource and this method is called, the player will not transition to the
466
+ * Idle state during the swap over.
467
+ * @param resource - The resource to play
468
+ * @throws Will throw if attempting to play an audio resource that has already ended, or is being played by another player
469
+ */
470
+ play(resource) {
471
+ if (resource.ended) {
472
+ throw new Error("Cannot play a resource that has already ended.");
473
+ }
474
+ if (resource.audioPlayer) {
475
+ if (resource.audioPlayer === this) {
476
+ return;
477
+ }
478
+ throw new Error("Resource is already being played by another audio player.");
479
+ }
480
+ resource.audioPlayer = this;
481
+ const onStreamError = /* @__PURE__ */ __name((error) => {
482
+ if (this.state.status !== "idle" /* Idle */) {
483
+ this.emit("error", new AudioPlayerError(error, this.state.resource));
484
+ }
485
+ if (this.state.status !== "idle" /* Idle */ && this.state.resource === resource) {
486
+ this.state = {
487
+ status: "idle" /* Idle */
488
+ };
489
+ }
490
+ }, "onStreamError");
491
+ resource.playStream.once("error", onStreamError);
492
+ if (resource.started) {
493
+ this.state = {
494
+ status: "playing" /* Playing */,
495
+ missedFrames: 0,
496
+ playbackDuration: 0,
497
+ resource,
498
+ onStreamError
499
+ };
500
+ } else {
501
+ const onReadableCallback = /* @__PURE__ */ __name(() => {
502
+ if (this.state.status === "buffering" /* Buffering */ && this.state.resource === resource) {
503
+ this.state = {
504
+ status: "playing" /* Playing */,
505
+ missedFrames: 0,
506
+ playbackDuration: 0,
507
+ resource,
508
+ onStreamError
509
+ };
510
+ }
511
+ }, "onReadableCallback");
512
+ const onFailureCallback = /* @__PURE__ */ __name(() => {
513
+ if (this.state.status === "buffering" /* Buffering */ && this.state.resource === resource) {
514
+ this.state = {
515
+ status: "idle" /* Idle */
516
+ };
517
+ }
518
+ }, "onFailureCallback");
519
+ resource.playStream.once("readable", onReadableCallback);
520
+ resource.playStream.once("end", onFailureCallback);
521
+ resource.playStream.once("close", onFailureCallback);
522
+ resource.playStream.once("finish", onFailureCallback);
523
+ this.state = {
524
+ status: "buffering" /* Buffering */,
525
+ resource,
526
+ onReadableCallback,
527
+ onFailureCallback,
528
+ onStreamError
529
+ };
530
+ }
531
+ }
532
+ /**
533
+ * Pauses playback of the current resource, if any.
534
+ *
535
+ * @param interpolateSilence - If true, the player will play 5 packets of silence after pausing to prevent audio glitches
536
+ * @returns `true` if the player was successfully paused, otherwise `false`
537
+ */
538
+ pause(interpolateSilence = true) {
539
+ if (this.state.status !== "playing" /* Playing */) return false;
540
+ this.state = {
541
+ ...this.state,
542
+ status: "paused" /* Paused */,
543
+ silencePacketsRemaining: interpolateSilence ? 5 : 0
544
+ };
545
+ return true;
546
+ }
547
+ /**
548
+ * Unpauses playback of the current resource, if any.
549
+ *
550
+ * @returns `true` if the player was successfully unpaused, otherwise `false`
551
+ */
552
+ unpause() {
553
+ if (this.state.status !== "paused" /* Paused */) return false;
554
+ this.state = {
555
+ ...this.state,
556
+ status: "playing" /* Playing */,
557
+ missedFrames: 0
558
+ };
559
+ return true;
560
+ }
561
+ /**
562
+ * Stops playback of the current resource and destroys the resource. The player will either transition to the Idle state,
563
+ * or remain in its current state until the silence padding frames of the resource have been played.
564
+ *
565
+ * @param force - If true, will force the player to enter the Idle state even if the resource has silence padding frames
566
+ * @returns `true` if the player will come to a stop, otherwise `false`
567
+ */
568
+ stop(force = false) {
569
+ if (this.state.status === "idle" /* Idle */) return false;
570
+ if (force || this.state.resource.silencePaddingFrames === 0) {
571
+ this.state = {
572
+ status: "idle" /* Idle */
573
+ };
574
+ } else if (this.state.resource.silenceRemaining === -1) {
575
+ this.state.resource.silenceRemaining = this.state.resource.silencePaddingFrames;
576
+ }
577
+ return true;
578
+ }
579
+ /**
580
+ * Checks whether the underlying resource (if any) is playable (readable)
581
+ *
582
+ * @returns `true` if the resource is playable, otherwise `false`
583
+ */
584
+ checkPlayable() {
585
+ const state = this._state;
586
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return false;
587
+ if (!state.resource.readable) {
588
+ this.state = {
589
+ status: "idle" /* Idle */
590
+ };
591
+ return false;
592
+ }
593
+ return true;
594
+ }
595
+ /**
596
+ * Called roughly every 20ms by the global audio player timer. Dispatches any audio packets that are buffered
597
+ * by the active connections of this audio player.
598
+ */
599
+ // @ts-ignore
600
+ _stepDispatch() {
601
+ const state = this._state;
602
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return;
603
+ for (const connection of this.playable) {
604
+ connection.dispatchAudio();
605
+ }
606
+ }
607
+ /**
608
+ * Called roughly every 20ms by the global audio player timer. Attempts to read an audio packet from the
609
+ * underlying resource of the stream, and then has all the active connections of the audio player prepare it
610
+ * (encrypt it, append header data) so that it is ready to play at the start of the next cycle.
611
+ */
612
+ // @ts-ignore
613
+ _stepPrepare() {
614
+ const state = this._state;
615
+ if (state.status === "idle" /* Idle */ || state.status === "buffering" /* Buffering */) return;
616
+ const playable = this.playable;
617
+ if (state.status === "autopaused" /* AutoPaused */ && playable.length > 0) {
618
+ this.state = {
619
+ ...state,
620
+ status: "playing" /* Playing */,
621
+ missedFrames: 0
622
+ };
623
+ }
624
+ if (state.status === "paused" /* Paused */ || state.status === "autopaused" /* AutoPaused */) {
625
+ if (state.silencePacketsRemaining > 0) {
626
+ state.silencePacketsRemaining--;
627
+ this._preparePacket(SILENCE_FRAME, playable, state);
628
+ if (state.silencePacketsRemaining === 0) {
629
+ this._signalStopSpeaking();
630
+ }
631
+ }
632
+ return;
633
+ }
634
+ if (playable.length === 0) {
635
+ if (this.behaviors.noSubscriber === "pause" /* Pause */) {
636
+ this.state = {
637
+ ...state,
638
+ status: "autopaused" /* AutoPaused */,
639
+ silencePacketsRemaining: 5
640
+ };
641
+ return;
642
+ } else if (this.behaviors.noSubscriber === "stop" /* Stop */) {
643
+ this.stop(true);
644
+ }
645
+ }
646
+ const packet = state.resource.read();
647
+ if (state.status === "playing" /* Playing */) {
648
+ if (packet) {
649
+ this._preparePacket(packet, playable, state);
650
+ state.missedFrames = 0;
651
+ } else {
652
+ this._preparePacket(SILENCE_FRAME, playable, state);
653
+ state.missedFrames++;
654
+ if (state.missedFrames >= this.behaviors.maxMissedFrames) {
655
+ this.stop();
656
+ }
657
+ }
658
+ }
659
+ }
660
+ /**
661
+ * Signals to all the subscribed connections that they should send a packet to Discord indicating
662
+ * they are no longer speaking. Called once playback of a resource ends.
663
+ */
664
+ _signalStopSpeaking() {
665
+ for (const { connection } of this.subscribers) {
666
+ connection.setSpeaking(false);
667
+ }
668
+ }
669
+ /**
670
+ * Instructs the given connections to each prepare this packet to be played at the start of the
671
+ * next cycle.
672
+ *
673
+ * @param packet - The Opus packet to be prepared by each receiver
674
+ * @param receivers - The connections that should play this packet
675
+ */
676
+ _preparePacket(packet, receivers, state) {
677
+ state.playbackDuration += 20;
678
+ for (const connection of receivers) {
679
+ connection.prepareAudioPacket(packet);
680
+ }
681
+ }
682
+ };
683
+ function createAudioPlayer(options) {
684
+ return new AudioPlayer(options);
685
+ }
686
+ __name(createAudioPlayer, "createAudioPlayer");
687
+
688
+ // src/networking/DAVESession.ts
689
+ var TRANSITION_EXPIRY = 10;
690
+ var TRANSITION_EXPIRY_PENDING_DOWNGRADE = 24;
691
+ var DEFAULT_DECRYPTION_FAILURE_TOLERANCE = 36;
692
+ function getMaxProtocolVersion() {
693
+ return import_davey.default.DAVE_PROTOCOL_VERSION;
694
+ }
695
+ __name(getMaxProtocolVersion, "getMaxProtocolVersion");
696
+ var DAVESession = class extends import_node_events2.EventEmitter {
697
+ static {
698
+ __name(this, "DAVESession");
699
+ }
700
+ /**
701
+ * The channel id represented by this session.
702
+ */
703
+ channelId;
704
+ /**
705
+ * The user id represented by this session.
706
+ */
707
+ userId;
708
+ /**
709
+ * The protocol version being used.
710
+ */
711
+ protocolVersion;
712
+ /**
713
+ * The last transition id executed.
714
+ */
715
+ lastTransitionId;
716
+ /**
717
+ * The pending transitions, mapped by their ID and the protocol version.
718
+ */
719
+ pendingTransitions = /* @__PURE__ */ new Map();
720
+ /**
721
+ * Whether this session was downgraded previously.
722
+ */
723
+ downgraded = false;
724
+ /**
725
+ * The amount of consecutive failures encountered when decrypting.
726
+ */
727
+ consecutiveFailures = 0;
728
+ /**
729
+ * The amount of consecutive failures needed to attempt to recover.
730
+ */
731
+ failureTolerance;
732
+ /**
733
+ * Whether this session is currently re-initializing due to an invalid transition.
734
+ */
735
+ reinitializing = false;
736
+ /**
737
+ * The underlying DAVE Session of this wrapper.
738
+ */
739
+ session;
740
+ constructor(protocolVersion, userId, channelId, options) {
741
+ super();
742
+ this.protocolVersion = protocolVersion;
743
+ this.userId = userId;
744
+ this.channelId = channelId;
745
+ this.failureTolerance = options.decryptionFailureTolerance ?? DEFAULT_DECRYPTION_FAILURE_TOLERANCE;
746
+ }
747
+ /**
748
+ * The current voice privacy code of the session. Will be `null` if there is no session.
749
+ */
750
+ get voicePrivacyCode() {
751
+ if (this.protocolVersion === 0 || !this.session?.voicePrivacyCode) {
752
+ return null;
753
+ }
754
+ return this.session.voicePrivacyCode;
755
+ }
756
+ /**
757
+ * Gets the verification code for a user in the session.
758
+ *
759
+ * @throws Will throw if there is not an active session or the user id provided is invalid or not in the session.
760
+ */
761
+ async getVerificationCode(userId) {
762
+ if (!this.session) throw new Error("Session not available");
763
+ return this.session.getVerificationCode(userId);
764
+ }
765
+ /**
766
+ * Re-initializes (or initializes) the underlying session.
767
+ */
768
+ reinit() {
769
+ if (this.protocolVersion > 0) {
770
+ if (this.session) {
771
+ this.session.reinit(this.protocolVersion, this.userId, this.channelId);
772
+ this.emit("debug", `Session reinitialized for protocol version ${this.protocolVersion}`);
773
+ } else {
774
+ this.session = new import_davey.default.DAVESession(this.protocolVersion, this.userId, this.channelId);
775
+ this.emit("debug", `Session initialized for protocol version ${this.protocolVersion}`);
776
+ }
777
+ this.emit("keyPackage", this.session.getSerializedKeyPackage());
778
+ } else if (this.session) {
779
+ this.session.reset();
780
+ this.session.setPassthroughMode(true, TRANSITION_EXPIRY);
781
+ this.emit("debug", "Session reset");
782
+ }
783
+ }
784
+ /**
785
+ * Set the external sender for this session.
786
+ *
787
+ * @param externalSender - The external sender
788
+ */
789
+ setExternalSender(externalSender) {
790
+ if (!this.session) throw new Error("No session available");
791
+ this.session.setExternalSender(externalSender);
792
+ this.emit("debug", "Set MLS external sender");
793
+ }
794
+ /**
795
+ * Prepare for a transition.
796
+ *
797
+ * @param data - The transition data
798
+ * @returns Whether we should signal to the voice server that we are ready
799
+ */
800
+ prepareTransition(data) {
801
+ this.emit("debug", `Preparing for transition (${data.transition_id}, v${data.protocol_version})`);
802
+ this.pendingTransitions.set(data.transition_id, data.protocol_version);
803
+ if (data.transition_id === 0) {
804
+ this.executeTransition(data.transition_id);
805
+ } else {
806
+ if (data.protocol_version === 0) this.session?.setPassthroughMode(true, TRANSITION_EXPIRY_PENDING_DOWNGRADE);
807
+ return true;
808
+ }
809
+ return false;
810
+ }
811
+ /**
812
+ * Execute a transition.
813
+ *
814
+ * @param transitionId - The transition id to execute on
815
+ */
816
+ executeTransition(transitionId) {
817
+ this.emit("debug", `Executing transition (${transitionId})`);
818
+ if (!this.pendingTransitions.has(transitionId)) {
819
+ this.emit("debug", `Received execute transition, but we don't have a pending transition for ${transitionId}`);
820
+ return false;
821
+ }
822
+ const oldVersion = this.protocolVersion;
823
+ this.protocolVersion = this.pendingTransitions.get(transitionId);
824
+ if (oldVersion !== this.protocolVersion && this.protocolVersion === 0) {
825
+ this.downgraded = true;
826
+ this.emit("debug", "Session downgraded");
827
+ } else if (transitionId > 0 && this.downgraded) {
828
+ this.downgraded = false;
829
+ this.session?.setPassthroughMode(true, TRANSITION_EXPIRY);
830
+ this.emit("debug", "Session upgraded");
831
+ }
832
+ this.reinitializing = false;
833
+ this.lastTransitionId = transitionId;
834
+ this.emit("debug", `Transition executed (v${oldVersion} -> v${this.protocolVersion}, id: ${transitionId})`);
835
+ this.pendingTransitions.delete(transitionId);
836
+ return true;
837
+ }
838
+ /**
839
+ * Prepare for a new epoch.
840
+ *
841
+ * @param data - The epoch data
842
+ */
843
+ prepareEpoch(data) {
844
+ this.emit("debug", `Preparing for epoch (${data.epoch})`);
845
+ if (data.epoch === 1) {
846
+ this.protocolVersion = data.protocol_version;
847
+ this.reinit();
848
+ }
849
+ }
850
+ /**
851
+ * Recover from an invalid transition by re-initializing.
852
+ *
853
+ * @param transitionId - The transition id to invalidate
854
+ */
855
+ recoverFromInvalidTransition(transitionId) {
856
+ if (this.reinitializing) return;
857
+ this.emit("debug", `Invalidating transition ${transitionId}`);
858
+ this.reinitializing = true;
859
+ this.consecutiveFailures = 0;
860
+ this.emit("invalidateTransition", transitionId);
861
+ this.reinit();
862
+ }
863
+ /**
864
+ * Processes proposals from the MLS group.
865
+ *
866
+ * @param payload - The binary message payload
867
+ * @param connectedClients - The set of connected client IDs
868
+ * @returns The payload to send back to the voice server, if there is one
869
+ */
870
+ processProposals(payload, connectedClients) {
871
+ if (!this.session) throw new Error("No session available");
872
+ const optype = payload.readUInt8(0);
873
+ const { commit, welcome } = this.session.processProposals(
874
+ optype,
875
+ payload.subarray(1),
876
+ Array.from(connectedClients)
877
+ );
878
+ this.emit("debug", "MLS proposals processed");
879
+ if (!commit) return;
880
+ return welcome ? import_node_buffer3.Buffer.concat([commit, welcome]) : commit;
881
+ }
882
+ /**
883
+ * Processes a commit from the MLS group.
884
+ *
885
+ * @param payload - The payload
886
+ * @returns The transaction id and whether it was successful
887
+ */
888
+ processCommit(payload) {
889
+ if (!this.session) throw new Error("No session available");
890
+ const transitionId = payload.readUInt16BE(0);
891
+ try {
892
+ this.session.processCommit(payload.subarray(2));
893
+ if (transitionId === 0) {
894
+ this.reinitializing = false;
895
+ this.lastTransitionId = transitionId;
896
+ } else {
897
+ this.pendingTransitions.set(transitionId, this.protocolVersion);
898
+ }
899
+ this.emit("debug", `MLS commit processed (transition id: ${transitionId})`);
900
+ return { transitionId, success: true };
901
+ } catch (error) {
902
+ this.emit("debug", `MLS commit errored from transition ${transitionId}: ${error}`);
903
+ this.recoverFromInvalidTransition(transitionId);
904
+ return { transitionId, success: false };
905
+ }
906
+ }
907
+ /**
908
+ * Processes a welcome from the MLS group.
909
+ *
910
+ * @param payload - The payload
911
+ * @returns The transaction id and whether it was successful
912
+ */
913
+ processWelcome(payload) {
914
+ if (!this.session) throw new Error("No session available");
915
+ const transitionId = payload.readUInt16BE(0);
916
+ try {
917
+ this.session.processWelcome(payload.subarray(2));
918
+ if (transitionId === 0) {
919
+ this.reinitializing = false;
920
+ this.lastTransitionId = transitionId;
921
+ } else {
922
+ this.pendingTransitions.set(transitionId, this.protocolVersion);
923
+ }
924
+ this.emit("debug", `MLS welcome processed (transition id: ${transitionId})`);
925
+ return { transitionId, success: true };
926
+ } catch (error) {
927
+ this.emit("debug", `MLS welcome errored from transition ${transitionId}: ${error}`);
928
+ this.recoverFromInvalidTransition(transitionId);
929
+ return { transitionId, success: false };
930
+ }
931
+ }
932
+ /**
933
+ * Encrypt a packet using end-to-end encryption.
934
+ *
935
+ * @param packet - The packet to encrypt
936
+ */
937
+ encrypt(packet) {
938
+ if (this.protocolVersion === 0 || !this.session?.ready || packet.equals(SILENCE_FRAME)) return packet;
939
+ return this.session.encryptOpus(packet);
940
+ }
941
+ /**
942
+ * Decrypt a packet using end-to-end encryption.
943
+ *
944
+ * @param packet - The packet to decrypt
945
+ * @param userId - The user id that sent the packet
946
+ * @returns The decrypted packet, or `null` if the decryption failed but should be ignored
947
+ */
948
+ decrypt(packet, userId) {
949
+ const canDecrypt = this.session?.ready && (this.protocolVersion !== 0 || this.session?.canPassthrough(userId));
950
+ if (packet.equals(SILENCE_FRAME) || !canDecrypt || !this.session) return packet;
951
+ try {
952
+ const buffer = this.session.decrypt(userId, import_davey.default.MediaType.AUDIO, packet);
953
+ this.consecutiveFailures = 0;
954
+ return buffer;
955
+ } catch (error) {
956
+ if (!this.reinitializing && this.pendingTransitions.size === 0) {
957
+ this.consecutiveFailures++;
958
+ this.emit("debug", `Failed to decrypt a packet (${this.consecutiveFailures} consecutive fails)`);
959
+ if (this.consecutiveFailures > this.failureTolerance) {
960
+ if (this.lastTransitionId) this.recoverFromInvalidTransition(this.lastTransitionId);
961
+ else throw error;
962
+ }
963
+ } else if (this.reinitializing) {
964
+ this.emit("debug", "Failed to decrypt a packet (reinitializing session)");
965
+ } else if (this.pendingTransitions.size > 0) {
966
+ this.emit("debug", `Failed to decrypt a packet (${this.pendingTransitions.size} pending transition[s])`);
967
+ }
968
+ }
969
+ return null;
970
+ }
971
+ /**
972
+ * Resets the session.
973
+ */
974
+ destroy() {
975
+ try {
976
+ this.session?.reset();
977
+ } catch {
978
+ }
979
+ }
980
+ };
981
+
982
+ // src/networking/VoiceUDPSocket.ts
983
+ var import_node_buffer4 = require("buffer");
984
+ var import_node_dgram = require("dgram");
985
+ var import_node_events3 = require("events");
986
+ var import_node_net = require("net");
987
+ function parseLocalPacket(message) {
988
+ const packet = import_node_buffer4.Buffer.from(message);
989
+ const ip = packet.subarray(8, packet.indexOf(0, 8)).toString("utf8");
990
+ if (!(0, import_node_net.isIPv4)(ip)) {
991
+ throw new Error("Malformed IP address");
992
+ }
993
+ const port = packet.readUInt16BE(packet.length - 2);
994
+ return { ip, port };
995
+ }
996
+ __name(parseLocalPacket, "parseLocalPacket");
997
+ var KEEP_ALIVE_INTERVAL = 5e3;
998
+ var MAX_COUNTER_VALUE = 2 ** 32 - 1;
999
+ var VoiceUDPSocket = class extends import_node_events3.EventEmitter {
1000
+ static {
1001
+ __name(this, "VoiceUDPSocket");
1002
+ }
1003
+ /**
1004
+ * The underlying network Socket for the VoiceUDPSocket.
1005
+ */
1006
+ socket;
1007
+ /**
1008
+ * The socket details for Discord (remote)
1009
+ */
1010
+ remote;
1011
+ /**
1012
+ * The counter used in the keep alive mechanism.
1013
+ */
1014
+ keepAliveCounter = 0;
1015
+ /**
1016
+ * The buffer used to write the keep alive counter into.
1017
+ */
1018
+ keepAliveBuffer;
1019
+ /**
1020
+ * The Node.js interval for the keep-alive mechanism.
1021
+ */
1022
+ keepAliveInterval;
1023
+ /**
1024
+ * The time taken to receive a response to keep alive messages.
1025
+ *
1026
+ * @deprecated This field is no longer updated as keep alive messages are no longer tracked.
1027
+ */
1028
+ ping;
1029
+ /**
1030
+ * Creates a new VoiceUDPSocket.
1031
+ *
1032
+ * @param remote - Details of the remote socket
1033
+ */
1034
+ constructor(remote) {
1035
+ super();
1036
+ this.socket = (0, import_node_dgram.createSocket)("udp4");
1037
+ this.socket.on("error", (error) => this.emit("error", error));
1038
+ this.socket.on("message", (buffer) => this.onMessage(buffer));
1039
+ this.socket.on("close", () => this.emit("close"));
1040
+ this.remote = remote;
1041
+ this.keepAliveBuffer = import_node_buffer4.Buffer.alloc(8);
1042
+ this.keepAliveInterval = setInterval(() => this.keepAlive(), KEEP_ALIVE_INTERVAL);
1043
+ setImmediate(() => this.keepAlive());
1044
+ }
1045
+ /**
1046
+ * Called when a message is received on the UDP socket.
1047
+ *
1048
+ * @param buffer - The received buffer
1049
+ */
1050
+ onMessage(buffer) {
1051
+ this.emit("message", buffer);
1052
+ }
1053
+ /**
1054
+ * Called at a regular interval to check whether we are still able to send datagrams to Discord.
1055
+ */
1056
+ keepAlive() {
1057
+ this.keepAliveBuffer.writeUInt32LE(this.keepAliveCounter, 0);
1058
+ this.send(this.keepAliveBuffer);
1059
+ this.keepAliveCounter++;
1060
+ if (this.keepAliveCounter > MAX_COUNTER_VALUE) {
1061
+ this.keepAliveCounter = 0;
1062
+ }
1063
+ }
1064
+ /**
1065
+ * Sends a buffer to Discord.
1066
+ *
1067
+ * @param buffer - The buffer to send
1068
+ */
1069
+ send(buffer) {
1070
+ this.socket.send(buffer, this.remote.port, this.remote.ip);
1071
+ }
1072
+ /**
1073
+ * Closes the socket, the instance will not be able to be reused.
1074
+ */
1075
+ destroy() {
1076
+ try {
1077
+ this.socket.close();
1078
+ } catch {
1079
+ }
1080
+ clearInterval(this.keepAliveInterval);
1081
+ }
1082
+ /**
1083
+ * Performs IP discovery to discover the local address and port to be used for the voice connection.
1084
+ *
1085
+ * @param ssrc - The SSRC received from Discord
1086
+ */
1087
+ async performIPDiscovery(ssrc) {
1088
+ return new Promise((resolve2, reject) => {
1089
+ const listener = /* @__PURE__ */ __name((message) => {
1090
+ try {
1091
+ if (message.readUInt16BE(0) !== 2) return;
1092
+ const packet = parseLocalPacket(message);
1093
+ this.socket.off("message", listener);
1094
+ resolve2(packet);
1095
+ } catch {
1096
+ }
1097
+ }, "listener");
1098
+ this.socket.on("message", listener);
1099
+ this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed")));
1100
+ const discoveryBuffer = import_node_buffer4.Buffer.alloc(74);
1101
+ discoveryBuffer.writeUInt16BE(1, 0);
1102
+ discoveryBuffer.writeUInt16BE(70, 2);
1103
+ discoveryBuffer.writeUInt32BE(ssrc, 4);
1104
+ this.send(discoveryBuffer);
1105
+ });
1106
+ }
1107
+ };
1108
+
1109
+ // src/networking/VoiceWebSocket.ts
1110
+ var import_node_buffer5 = require("buffer");
1111
+ var import_node_events4 = require("events");
1112
+ var import_v8 = require("discord-api-types/voice/v8");
1113
+ var import_ws = __toESM(require("ws"));
1114
+ var VoiceWebSocket = class extends import_node_events4.EventEmitter {
1115
+ static {
1116
+ __name(this, "VoiceWebSocket");
1117
+ }
1118
+ /**
1119
+ * The current heartbeat interval, if any.
1120
+ */
1121
+ heartbeatInterval;
1122
+ /**
1123
+ * The time (milliseconds since UNIX epoch) that the last heartbeat acknowledgement packet was received.
1124
+ * This is set to 0 if an acknowledgement packet hasn't been received yet.
1125
+ */
1126
+ lastHeartbeatAck;
1127
+ /**
1128
+ * The time (milliseconds since UNIX epoch) that the last heartbeat was sent. This is set to 0 if a heartbeat
1129
+ * hasn't been sent yet.
1130
+ */
1131
+ lastHeartbeatSend;
1132
+ /**
1133
+ * The number of consecutively missed heartbeats.
1134
+ */
1135
+ missedHeartbeats = 0;
1136
+ /**
1137
+ * The last recorded ping.
1138
+ */
1139
+ ping;
1140
+ /**
1141
+ * The last sequence number acknowledged from Discord. Will be `-1` if no sequence numbered messages have been received.
1142
+ */
1143
+ sequence = -1;
1144
+ /**
1145
+ * The debug logger function, if debugging is enabled.
1146
+ */
1147
+ debug;
1148
+ /**
1149
+ * The underlying WebSocket of this wrapper.
1150
+ */
1151
+ ws;
1152
+ /**
1153
+ * Creates a new VoiceWebSocket.
1154
+ *
1155
+ * @param address - The address to connect to
1156
+ */
1157
+ constructor(address, debug) {
1158
+ super();
1159
+ this.ws = new import_ws.default(address);
1160
+ this.ws.onmessage = (err) => this.onMessage(err);
1161
+ this.ws.onopen = (err) => this.emit("open", err);
1162
+ this.ws.onerror = (err) => this.emit("error", err instanceof Error ? err : err.error);
1163
+ this.ws.onclose = (err) => this.emit("close", err);
1164
+ this.lastHeartbeatAck = 0;
1165
+ this.lastHeartbeatSend = 0;
1166
+ this.debug = debug ? (message) => this.emit("debug", message) : null;
1167
+ }
1168
+ /**
1169
+ * Destroys the VoiceWebSocket. The heartbeat interval is cleared, and the connection is closed.
1170
+ */
1171
+ destroy() {
1172
+ try {
1173
+ this.debug?.("destroyed");
1174
+ this.setHeartbeatInterval(-1);
1175
+ this.ws.close(1e3);
1176
+ } catch (error) {
1177
+ const err = error;
1178
+ this.emit("error", err);
1179
+ }
1180
+ }
1181
+ /**
1182
+ * Handles message events on the WebSocket. Attempts to JSON parse the messages and emit them
1183
+ * as packets. Binary messages will be parsed and emitted.
1184
+ *
1185
+ * @param event - The message event
1186
+ */
1187
+ onMessage(event) {
1188
+ if (event.data instanceof import_node_buffer5.Buffer || event.data instanceof ArrayBuffer) {
1189
+ const buffer = event.data instanceof ArrayBuffer ? import_node_buffer5.Buffer.from(event.data) : event.data;
1190
+ const seq = buffer.readUInt16BE(0);
1191
+ const op = buffer.readUInt8(2);
1192
+ const payload = buffer.subarray(3);
1193
+ this.sequence = seq;
1194
+ this.debug?.(`<< [bin] opcode ${op}, seq ${seq}, ${payload.byteLength} bytes`);
1195
+ this.emit("binary", { op, seq, payload });
1196
+ return;
1197
+ } else if (typeof event.data !== "string") {
1198
+ return;
1199
+ }
1200
+ this.debug?.(`<< ${event.data}`);
1201
+ let packet;
1202
+ try {
1203
+ packet = JSON.parse(event.data);
1204
+ } catch (error) {
1205
+ const err = error;
1206
+ this.emit("error", err);
1207
+ return;
1208
+ }
1209
+ if (packet.seq) {
1210
+ this.sequence = packet.seq;
1211
+ }
1212
+ if (packet.op === import_v8.VoiceOpcodes.HeartbeatAck) {
1213
+ this.lastHeartbeatAck = Date.now();
1214
+ this.missedHeartbeats = 0;
1215
+ this.ping = this.lastHeartbeatAck - this.lastHeartbeatSend;
1216
+ }
1217
+ this.emit("packet", packet);
1218
+ }
1219
+ /**
1220
+ * Sends a JSON-stringifiable packet over the WebSocket.
1221
+ *
1222
+ * @param packet - The packet to send
1223
+ */
1224
+ sendPacket(packet) {
1225
+ try {
1226
+ const stringified = JSON.stringify(packet);
1227
+ this.debug?.(`>> ${stringified}`);
1228
+ this.ws.send(stringified);
1229
+ } catch (error) {
1230
+ const err = error;
1231
+ this.emit("error", err);
1232
+ }
1233
+ }
1234
+ /**
1235
+ * Sends a binary message over the WebSocket.
1236
+ *
1237
+ * @param opcode - The opcode to use
1238
+ * @param payload - The payload to send
1239
+ */
1240
+ sendBinaryMessage(opcode, payload) {
1241
+ try {
1242
+ const message = import_node_buffer5.Buffer.concat([new Uint8Array([opcode]), payload]);
1243
+ this.debug?.(`>> [bin] opcode ${opcode}, ${payload.byteLength} bytes`);
1244
+ this.ws.send(message);
1245
+ } catch (error) {
1246
+ const err = error;
1247
+ this.emit("error", err);
1248
+ }
1249
+ }
1250
+ /**
1251
+ * Sends a heartbeat over the WebSocket.
1252
+ */
1253
+ sendHeartbeat() {
1254
+ this.lastHeartbeatSend = Date.now();
1255
+ this.missedHeartbeats++;
1256
+ const nonce2 = this.lastHeartbeatSend;
1257
+ this.sendPacket({
1258
+ op: import_v8.VoiceOpcodes.Heartbeat,
1259
+ // eslint-disable-next-line id-length
1260
+ d: {
1261
+ // eslint-disable-next-line id-length
1262
+ t: nonce2,
1263
+ seq_ack: this.sequence
1264
+ }
1265
+ });
1266
+ }
1267
+ /**
1268
+ * Sets/clears an interval to send heartbeats over the WebSocket.
1269
+ *
1270
+ * @param ms - The interval in milliseconds. If negative, the interval will be unset
1271
+ */
1272
+ setHeartbeatInterval(ms) {
1273
+ if (this.heartbeatInterval !== void 0) clearInterval(this.heartbeatInterval);
1274
+ if (ms > 0) {
1275
+ this.heartbeatInterval = setInterval(() => {
1276
+ if (this.lastHeartbeatSend !== 0 && this.missedHeartbeats >= 3) {
1277
+ this.ws.close();
1278
+ this.setHeartbeatInterval(-1);
1279
+ }
1280
+ this.sendHeartbeat();
1281
+ }, ms);
1282
+ }
1283
+ }
1284
+ };
1285
+
1286
+ // src/networking/Networking.ts
1287
+ var CHANNELS = 2;
1288
+ var TIMESTAMP_INC = 48e3 / 100 * CHANNELS;
1289
+ var MAX_NONCE_SIZE = 2 ** 32 - 1;
1290
+ var SUPPORTED_ENCRYPTION_MODES = [import_v82.VoiceEncryptionMode.AeadXChaCha20Poly1305RtpSize];
1291
+ if (import_node_crypto.default.getCiphers().includes("aes-256-gcm")) {
1292
+ SUPPORTED_ENCRYPTION_MODES.unshift(import_v82.VoiceEncryptionMode.AeadAes256GcmRtpSize);
1293
+ }
1294
+ var NetworkingStatusCode = /* @__PURE__ */ ((NetworkingStatusCode2) => {
1295
+ NetworkingStatusCode2[NetworkingStatusCode2["OpeningWs"] = 0] = "OpeningWs";
1296
+ NetworkingStatusCode2[NetworkingStatusCode2["Identifying"] = 1] = "Identifying";
1297
+ NetworkingStatusCode2[NetworkingStatusCode2["UdpHandshaking"] = 2] = "UdpHandshaking";
1298
+ NetworkingStatusCode2[NetworkingStatusCode2["SelectingProtocol"] = 3] = "SelectingProtocol";
1299
+ NetworkingStatusCode2[NetworkingStatusCode2["Ready"] = 4] = "Ready";
1300
+ NetworkingStatusCode2[NetworkingStatusCode2["Resuming"] = 5] = "Resuming";
1301
+ NetworkingStatusCode2[NetworkingStatusCode2["Closed"] = 6] = "Closed";
1302
+ return NetworkingStatusCode2;
1303
+ })(NetworkingStatusCode || {});
1304
+ var nonce = import_node_buffer6.Buffer.alloc(24);
1305
+ function stringifyState2(state) {
1306
+ return JSON.stringify({
1307
+ ...state,
1308
+ ws: Reflect.has(state, "ws"),
1309
+ udp: Reflect.has(state, "udp")
1310
+ });
1311
+ }
1312
+ __name(stringifyState2, "stringifyState");
1313
+ function chooseEncryptionMode(options) {
1314
+ const option = options.find((option2) => SUPPORTED_ENCRYPTION_MODES.includes(option2));
1315
+ if (!option) {
1316
+ throw new Error(`No compatible encryption modes. Available include: ${options.join(", ")}`);
1317
+ }
1318
+ return option;
1319
+ }
1320
+ __name(chooseEncryptionMode, "chooseEncryptionMode");
1321
+ function randomNBit(numberOfBits) {
1322
+ return Math.floor(Math.random() * 2 ** numberOfBits);
1323
+ }
1324
+ __name(randomNBit, "randomNBit");
1325
+ var Networking = class extends import_node_events5.EventEmitter {
1326
+ static {
1327
+ __name(this, "Networking");
1328
+ }
1329
+ _state;
1330
+ /**
1331
+ * The debug logger function, if debugging is enabled.
1332
+ */
1333
+ debug;
1334
+ /**
1335
+ * The options used to create this Networking instance.
1336
+ */
1337
+ options;
1338
+ /**
1339
+ * Creates a new Networking instance.
1340
+ */
1341
+ constructor(connectionOptions, options) {
1342
+ super();
1343
+ this.onWsOpen = this.onWsOpen.bind(this);
1344
+ this.onChildError = this.onChildError.bind(this);
1345
+ this.onWsPacket = this.onWsPacket.bind(this);
1346
+ this.onWsBinary = this.onWsBinary.bind(this);
1347
+ this.onWsClose = this.onWsClose.bind(this);
1348
+ this.onWsDebug = this.onWsDebug.bind(this);
1349
+ this.onUdpDebug = this.onUdpDebug.bind(this);
1350
+ this.onUdpClose = this.onUdpClose.bind(this);
1351
+ this.onDaveDebug = this.onDaveDebug.bind(this);
1352
+ this.onDaveKeyPackage = this.onDaveKeyPackage.bind(this);
1353
+ this.onDaveInvalidateTransition = this.onDaveInvalidateTransition.bind(this);
1354
+ this.debug = options?.debug ? (message) => this.emit("debug", message) : null;
1355
+ this._state = {
1356
+ code: 0 /* OpeningWs */,
1357
+ ws: this.createWebSocket(connectionOptions.endpoint),
1358
+ connectionOptions
1359
+ };
1360
+ this.options = options;
1361
+ }
1362
+ /**
1363
+ * Destroys the Networking instance, transitioning it into the Closed state.
1364
+ */
1365
+ destroy() {
1366
+ this.state = {
1367
+ code: 6 /* Closed */
1368
+ };
1369
+ }
1370
+ /**
1371
+ * The current state of the networking instance.
1372
+ *
1373
+ * @remarks
1374
+ * The setter will perform clean-up operations where necessary.
1375
+ */
1376
+ get state() {
1377
+ return this._state;
1378
+ }
1379
+ set state(newState) {
1380
+ const oldWs = Reflect.get(this._state, "ws");
1381
+ const newWs = Reflect.get(newState, "ws");
1382
+ if (oldWs && oldWs !== newWs) {
1383
+ oldWs.off("debug", this.onWsDebug);
1384
+ oldWs.on("error", noop);
1385
+ oldWs.off("error", this.onChildError);
1386
+ oldWs.off("open", this.onWsOpen);
1387
+ oldWs.off("packet", this.onWsPacket);
1388
+ oldWs.off("binary", this.onWsBinary);
1389
+ oldWs.off("close", this.onWsClose);
1390
+ oldWs.destroy();
1391
+ }
1392
+ const oldUdp = Reflect.get(this._state, "udp");
1393
+ const newUdp = Reflect.get(newState, "udp");
1394
+ if (oldUdp && oldUdp !== newUdp) {
1395
+ oldUdp.on("error", noop);
1396
+ oldUdp.off("error", this.onChildError);
1397
+ oldUdp.off("close", this.onUdpClose);
1398
+ oldUdp.off("debug", this.onUdpDebug);
1399
+ oldUdp.destroy();
1400
+ }
1401
+ const oldDave = Reflect.get(this._state, "dave");
1402
+ const newDave = Reflect.get(newState, "dave");
1403
+ if (oldDave && oldDave !== newDave) {
1404
+ oldDave.off("error", this.onChildError);
1405
+ oldDave.off("debug", this.onDaveDebug);
1406
+ oldDave.off("keyPackage", this.onDaveKeyPackage);
1407
+ oldDave.off("invalidateTransition", this.onDaveInvalidateTransition);
1408
+ oldDave.destroy();
1409
+ }
1410
+ const oldState = this._state;
1411
+ this._state = newState;
1412
+ this.emit("stateChange", oldState, newState);
1413
+ this.debug?.(`state change:
1414
+ from ${stringifyState2(oldState)}
1415
+ to ${stringifyState2(newState)}`);
1416
+ }
1417
+ /**
1418
+ * Creates a new WebSocket to a Discord Voice gateway.
1419
+ *
1420
+ * @param endpoint - The endpoint to connect to
1421
+ * @param lastSequence - The last sequence to set for this WebSocket
1422
+ */
1423
+ createWebSocket(endpoint, lastSequence) {
1424
+ const ws = new VoiceWebSocket(`wss://${endpoint}?v=8`, Boolean(this.debug));
1425
+ if (lastSequence !== void 0) {
1426
+ ws.sequence = lastSequence;
1427
+ }
1428
+ ws.on("error", this.onChildError);
1429
+ ws.once("open", this.onWsOpen);
1430
+ ws.on("packet", this.onWsPacket);
1431
+ ws.on("binary", this.onWsBinary);
1432
+ ws.once("close", this.onWsClose);
1433
+ ws.on("debug", this.onWsDebug);
1434
+ return ws;
1435
+ }
1436
+ /**
1437
+ * Creates a new DAVE session for this voice connection if we can create one.
1438
+ *
1439
+ * @param protocolVersion - The protocol version to use
1440
+ */
1441
+ createDaveSession(protocolVersion) {
1442
+ if (this.options.daveEncryption === false || this.state.code !== 3 /* SelectingProtocol */ && this.state.code !== 4 /* Ready */ && this.state.code !== 5 /* Resuming */) {
1443
+ return;
1444
+ }
1445
+ const session = new DAVESession(
1446
+ protocolVersion,
1447
+ this.state.connectionOptions.userId,
1448
+ this.state.connectionOptions.channelId,
1449
+ {
1450
+ decryptionFailureTolerance: this.options.decryptionFailureTolerance
1451
+ }
1452
+ );
1453
+ session.on("error", this.onChildError);
1454
+ session.on("debug", this.onDaveDebug);
1455
+ session.on("keyPackage", this.onDaveKeyPackage);
1456
+ session.on("invalidateTransition", this.onDaveInvalidateTransition);
1457
+ session.reinit();
1458
+ return session;
1459
+ }
1460
+ /**
1461
+ * Propagates errors from the children VoiceWebSocket, VoiceUDPSocket and DAVESession.
1462
+ *
1463
+ * @param error - The error that was emitted by a child
1464
+ */
1465
+ onChildError(error) {
1466
+ this.emit("error", error);
1467
+ }
1468
+ /**
1469
+ * Called when the WebSocket opens. Depending on the state that the instance is in,
1470
+ * it will either identify with a new session, or it will attempt to resume an existing session.
1471
+ */
1472
+ onWsOpen() {
1473
+ if (this.state.code === 0 /* OpeningWs */) {
1474
+ this.state.ws.sendPacket({
1475
+ op: import_v82.VoiceOpcodes.Identify,
1476
+ d: {
1477
+ server_id: this.state.connectionOptions.serverId,
1478
+ user_id: this.state.connectionOptions.userId,
1479
+ session_id: this.state.connectionOptions.sessionId,
1480
+ token: this.state.connectionOptions.token,
1481
+ max_dave_protocol_version: this.options.daveEncryption === false ? 0 : getMaxProtocolVersion()
1482
+ }
1483
+ });
1484
+ this.state = {
1485
+ ...this.state,
1486
+ code: 1 /* Identifying */
1487
+ };
1488
+ } else if (this.state.code === 5 /* Resuming */) {
1489
+ this.state.ws.sendPacket({
1490
+ op: import_v82.VoiceOpcodes.Resume,
1491
+ d: {
1492
+ server_id: this.state.connectionOptions.serverId,
1493
+ session_id: this.state.connectionOptions.sessionId,
1494
+ token: this.state.connectionOptions.token,
1495
+ seq_ack: this.state.ws.sequence
1496
+ }
1497
+ });
1498
+ }
1499
+ }
1500
+ /**
1501
+ * Called when the WebSocket closes. Based on the reason for closing (given by the code parameter),
1502
+ * the instance will either attempt to resume, or enter the closed state and emit a 'close' event
1503
+ * with the close code, allowing the user to decide whether or not they would like to reconnect.
1504
+ *
1505
+ * @param code - The close code
1506
+ */
1507
+ onWsClose({ code }) {
1508
+ const canResume = code === 4015 || code < 4e3;
1509
+ if (canResume && this.state.code === 4 /* Ready */) {
1510
+ const lastSequence = this.state.ws.sequence;
1511
+ this.state = {
1512
+ ...this.state,
1513
+ code: 5 /* Resuming */,
1514
+ ws: this.createWebSocket(this.state.connectionOptions.endpoint, lastSequence)
1515
+ };
1516
+ } else if (this.state.code !== 6 /* Closed */) {
1517
+ this.destroy();
1518
+ this.emit("close", code);
1519
+ }
1520
+ }
1521
+ /**
1522
+ * Called when the UDP socket has closed itself if it has stopped receiving replies from Discord.
1523
+ */
1524
+ onUdpClose() {
1525
+ if (this.state.code === 4 /* Ready */) {
1526
+ const lastSequence = this.state.ws.sequence;
1527
+ this.state = {
1528
+ ...this.state,
1529
+ code: 5 /* Resuming */,
1530
+ ws: this.createWebSocket(this.state.connectionOptions.endpoint, lastSequence)
1531
+ };
1532
+ }
1533
+ }
1534
+ /**
1535
+ * Called when a packet is received on the connection's WebSocket.
1536
+ *
1537
+ * @param packet - The received packet
1538
+ */
1539
+ onWsPacket(packet) {
1540
+ if (packet.op === import_v82.VoiceOpcodes.Hello && this.state.code !== 6 /* Closed */) {
1541
+ this.state.ws.setHeartbeatInterval(packet.d.heartbeat_interval);
1542
+ } else if (packet.op === import_v82.VoiceOpcodes.Ready && this.state.code === 1 /* Identifying */) {
1543
+ const { ip, port, ssrc, modes } = packet.d;
1544
+ const udp = new VoiceUDPSocket({ ip, port });
1545
+ udp.on("error", this.onChildError);
1546
+ udp.on("debug", this.onUdpDebug);
1547
+ udp.once("close", this.onUdpClose);
1548
+ udp.performIPDiscovery(ssrc).then((localConfig) => {
1549
+ if (this.state.code !== 2 /* UdpHandshaking */) return;
1550
+ this.state.ws.sendPacket({
1551
+ op: import_v82.VoiceOpcodes.SelectProtocol,
1552
+ d: {
1553
+ protocol: "udp",
1554
+ data: {
1555
+ address: localConfig.ip,
1556
+ port: localConfig.port,
1557
+ mode: chooseEncryptionMode(modes)
1558
+ }
1559
+ }
1560
+ });
1561
+ this.state = {
1562
+ ...this.state,
1563
+ code: 3 /* SelectingProtocol */
1564
+ };
1565
+ }).catch((error) => this.emit("error", error));
1566
+ this.state = {
1567
+ ...this.state,
1568
+ code: 2 /* UdpHandshaking */,
1569
+ udp,
1570
+ connectionData: {
1571
+ ssrc,
1572
+ connectedClients: /* @__PURE__ */ new Set()
1573
+ }
1574
+ };
1575
+ } else if (packet.op === import_v82.VoiceOpcodes.SessionDescription && this.state.code === 3 /* SelectingProtocol */) {
1576
+ const { mode: encryptionMode, secret_key: secretKey, dave_protocol_version: daveProtocolVersion } = packet.d;
1577
+ this.state = {
1578
+ ...this.state,
1579
+ code: 4 /* Ready */,
1580
+ dave: this.createDaveSession(daveProtocolVersion),
1581
+ connectionData: {
1582
+ ...this.state.connectionData,
1583
+ encryptionMode,
1584
+ secretKey: new Uint8Array(secretKey),
1585
+ sequence: randomNBit(16),
1586
+ timestamp: randomNBit(32),
1587
+ nonce: 0,
1588
+ nonceBuffer: encryptionMode === "aead_aes256_gcm_rtpsize" ? import_node_buffer6.Buffer.alloc(12) : import_node_buffer6.Buffer.alloc(24),
1589
+ speaking: false,
1590
+ packetsPlayed: 0
1591
+ }
1592
+ };
1593
+ } else if (packet.op === import_v82.VoiceOpcodes.Resumed && this.state.code === 5 /* Resuming */) {
1594
+ this.state = {
1595
+ ...this.state,
1596
+ code: 4 /* Ready */
1597
+ };
1598
+ this.state.connectionData.speaking = false;
1599
+ } else if ((packet.op === import_v82.VoiceOpcodes.ClientsConnect || packet.op === import_v82.VoiceOpcodes.ClientDisconnect) && (this.state.code === 4 /* Ready */ || this.state.code === 2 /* UdpHandshaking */ || this.state.code === 3 /* SelectingProtocol */ || this.state.code === 5 /* Resuming */)) {
1600
+ const { connectionData } = this.state;
1601
+ if (packet.op === import_v82.VoiceOpcodes.ClientsConnect)
1602
+ for (const id of packet.d.user_ids) connectionData.connectedClients.add(id);
1603
+ else {
1604
+ connectionData.connectedClients.delete(packet.d.user_id);
1605
+ }
1606
+ } else if ((this.state.code === 4 /* Ready */ || this.state.code === 5 /* Resuming */) && this.state.dave) {
1607
+ if (packet.op === import_v82.VoiceOpcodes.DavePrepareTransition) {
1608
+ const sendReady = this.state.dave.prepareTransition(packet.d);
1609
+ if (sendReady)
1610
+ this.state.ws.sendPacket({
1611
+ op: import_v82.VoiceOpcodes.DaveTransitionReady,
1612
+ d: { transition_id: packet.d.transition_id }
1613
+ });
1614
+ if (packet.d.transition_id === 0) {
1615
+ this.emit("transitioned", 0);
1616
+ }
1617
+ } else if (packet.op === import_v82.VoiceOpcodes.DaveExecuteTransition) {
1618
+ const transitioned = this.state.dave.executeTransition(packet.d.transition_id);
1619
+ if (transitioned) this.emit("transitioned", packet.d.transition_id);
1620
+ } else if (packet.op === import_v82.VoiceOpcodes.DavePrepareEpoch) this.state.dave.prepareEpoch(packet.d);
1621
+ }
1622
+ }
1623
+ /**
1624
+ * Called when a binary message is received on the connection's WebSocket.
1625
+ *
1626
+ * @param message - The received message
1627
+ */
1628
+ onWsBinary(message) {
1629
+ if (this.state.code === 4 /* Ready */ && this.state.dave) {
1630
+ if (message.op === import_v82.VoiceOpcodes.DaveMlsExternalSender) {
1631
+ this.state.dave.setExternalSender(message.payload);
1632
+ } else if (message.op === import_v82.VoiceOpcodes.DaveMlsProposals) {
1633
+ const payload = this.state.dave.processProposals(message.payload, this.state.connectionData.connectedClients);
1634
+ if (payload) this.state.ws.sendBinaryMessage(import_v82.VoiceOpcodes.DaveMlsCommitWelcome, payload);
1635
+ } else if (message.op === import_v82.VoiceOpcodes.DaveMlsAnnounceCommitTransition) {
1636
+ const { transitionId, success } = this.state.dave.processCommit(message.payload);
1637
+ if (success) {
1638
+ if (transitionId === 0) this.emit("transitioned", transitionId);
1639
+ else
1640
+ this.state.ws.sendPacket({
1641
+ op: import_v82.VoiceOpcodes.DaveTransitionReady,
1642
+ d: { transition_id: transitionId }
1643
+ });
1644
+ }
1645
+ } else if (message.op === import_v82.VoiceOpcodes.DaveMlsWelcome) {
1646
+ const { transitionId, success } = this.state.dave.processWelcome(message.payload);
1647
+ if (success) {
1648
+ if (transitionId === 0) this.emit("transitioned", transitionId);
1649
+ else
1650
+ this.state.ws.sendPacket({
1651
+ op: import_v82.VoiceOpcodes.DaveTransitionReady,
1652
+ d: { transition_id: transitionId }
1653
+ });
1654
+ }
1655
+ }
1656
+ }
1657
+ }
1658
+ /**
1659
+ * Called when a new key package is ready to be sent to the voice server.
1660
+ *
1661
+ * @param keyPackage - The new key package
1662
+ */
1663
+ onDaveKeyPackage(keyPackage) {
1664
+ if (this.state.code === 3 /* SelectingProtocol */ || this.state.code === 4 /* Ready */)
1665
+ this.state.ws.sendBinaryMessage(import_v82.VoiceOpcodes.DaveMlsKeyPackage, keyPackage);
1666
+ }
1667
+ /**
1668
+ * Called when the DAVE session wants to invalidate their transition and re-initialize.
1669
+ *
1670
+ * @param transitionId - The transition to invalidate
1671
+ */
1672
+ onDaveInvalidateTransition(transitionId) {
1673
+ if (this.state.code === 3 /* SelectingProtocol */ || this.state.code === 4 /* Ready */)
1674
+ this.state.ws.sendPacket({
1675
+ op: import_v82.VoiceOpcodes.DaveMlsInvalidCommitWelcome,
1676
+ d: { transition_id: transitionId }
1677
+ });
1678
+ }
1679
+ /**
1680
+ * Propagates debug messages from the child WebSocket.
1681
+ *
1682
+ * @param message - The emitted debug message
1683
+ */
1684
+ onWsDebug(message) {
1685
+ this.debug?.(`[WS] ${message}`);
1686
+ }
1687
+ /**
1688
+ * Propagates debug messages from the child UDPSocket.
1689
+ *
1690
+ * @param message - The emitted debug message
1691
+ */
1692
+ onUdpDebug(message) {
1693
+ this.debug?.(`[UDP] ${message}`);
1694
+ }
1695
+ /**
1696
+ * Propagates debug messages from the child DAVESession.
1697
+ *
1698
+ * @param message - The emitted debug message
1699
+ */
1700
+ onDaveDebug(message) {
1701
+ this.debug?.(`[DAVE] ${message}`);
1702
+ }
1703
+ /**
1704
+ * Prepares an Opus packet for playback. This includes attaching metadata to it and encrypting it.
1705
+ * It will be stored within the instance, and can be played by dispatchAudio()
1706
+ *
1707
+ * @remarks
1708
+ * Calling this method while there is already a prepared audio packet that has not yet been dispatched
1709
+ * will overwrite the existing audio packet. This should be avoided.
1710
+ * @param opusPacket - The Opus packet to encrypt
1711
+ * @returns The audio packet that was prepared
1712
+ */
1713
+ prepareAudioPacket(opusPacket) {
1714
+ const state = this.state;
1715
+ if (state.code !== 4 /* Ready */) return;
1716
+ state.preparedPacket = this.createAudioPacket(opusPacket, state.connectionData, state.dave);
1717
+ return state.preparedPacket;
1718
+ }
1719
+ /**
1720
+ * Dispatches the audio packet previously prepared by prepareAudioPacket(opusPacket). The audio packet
1721
+ * is consumed and cannot be dispatched again.
1722
+ */
1723
+ dispatchAudio() {
1724
+ const state = this.state;
1725
+ if (state.code !== 4 /* Ready */) return false;
1726
+ if (state.preparedPacket !== void 0) {
1727
+ this.playAudioPacket(state.preparedPacket);
1728
+ state.preparedPacket = void 0;
1729
+ return true;
1730
+ }
1731
+ return false;
1732
+ }
1733
+ /**
1734
+ * Plays an audio packet, updating timing metadata used for playback.
1735
+ *
1736
+ * @param audioPacket - The audio packet to play
1737
+ */
1738
+ playAudioPacket(audioPacket) {
1739
+ const state = this.state;
1740
+ if (state.code !== 4 /* Ready */) return;
1741
+ const { connectionData } = state;
1742
+ connectionData.packetsPlayed++;
1743
+ connectionData.sequence++;
1744
+ connectionData.timestamp += TIMESTAMP_INC;
1745
+ if (connectionData.sequence >= 2 ** 16) connectionData.sequence = 0;
1746
+ if (connectionData.timestamp >= 2 ** 32) connectionData.timestamp = 0;
1747
+ this.setSpeaking(true);
1748
+ state.udp.send(audioPacket);
1749
+ }
1750
+ /**
1751
+ * Sends a packet to the voice gateway indicating that the client has start/stopped sending
1752
+ * audio.
1753
+ *
1754
+ * @param speaking - Whether or not the client should be shown as speaking
1755
+ */
1756
+ setSpeaking(speaking) {
1757
+ const state = this.state;
1758
+ if (state.code !== 4 /* Ready */) return;
1759
+ if (state.connectionData.speaking === speaking) return;
1760
+ state.connectionData.speaking = speaking;
1761
+ state.ws.sendPacket({
1762
+ op: import_v82.VoiceOpcodes.Speaking,
1763
+ d: {
1764
+ speaking: speaking ? 1 : 0,
1765
+ delay: 0,
1766
+ ssrc: state.connectionData.ssrc
1767
+ }
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Creates a new audio packet from an Opus packet. This involves encrypting the packet,
1772
+ * then prepending a header that includes metadata.
1773
+ *
1774
+ * @param opusPacket - The Opus packet to prepare
1775
+ * @param connectionData - The current connection data of the instance
1776
+ * @param daveSession - The DAVE session to use for encryption
1777
+ */
1778
+ createAudioPacket(opusPacket, connectionData, daveSession) {
1779
+ const rtpHeader = import_node_buffer6.Buffer.alloc(12);
1780
+ rtpHeader[0] = 128;
1781
+ rtpHeader[1] = RTP_OPUS_PAYLOAD_TYPE;
1782
+ const { sequence, timestamp, ssrc } = connectionData;
1783
+ rtpHeader.writeUIntBE(sequence, 2, 2);
1784
+ rtpHeader.writeUIntBE(timestamp, 4, 4);
1785
+ rtpHeader.writeUIntBE(ssrc, 8, 4);
1786
+ rtpHeader.copy(nonce, 0, 0, 12);
1787
+ return import_node_buffer6.Buffer.concat([rtpHeader, ...this.encryptOpusPacket(opusPacket, connectionData, rtpHeader, daveSession)]);
1788
+ }
1789
+ /**
1790
+ * Encrypts an Opus packet using the format agreed upon by the instance and Discord.
1791
+ *
1792
+ * @param opusPacket - The Opus packet to encrypt
1793
+ * @param connectionData - The current connection data of the instance
1794
+ * @param daveSession - The DAVE session to use for encryption
1795
+ */
1796
+ encryptOpusPacket(opusPacket, connectionData, additionalData, daveSession) {
1797
+ const { secretKey, encryptionMode } = connectionData;
1798
+ const packet = daveSession?.encrypt(opusPacket) ?? opusPacket;
1799
+ connectionData.nonce++;
1800
+ if (connectionData.nonce > MAX_NONCE_SIZE) connectionData.nonce = 0;
1801
+ connectionData.nonceBuffer.writeUInt32BE(connectionData.nonce, 0);
1802
+ const noncePadding = connectionData.nonceBuffer.subarray(0, 4);
1803
+ let encrypted;
1804
+ switch (encryptionMode) {
1805
+ case "aead_aes256_gcm_rtpsize": {
1806
+ const cipher = import_node_crypto.default.createCipheriv("aes-256-gcm", secretKey, connectionData.nonceBuffer);
1807
+ cipher.setAAD(additionalData);
1808
+ encrypted = import_node_buffer6.Buffer.concat([cipher.update(packet), cipher.final(), cipher.getAuthTag()]);
1809
+ return [encrypted, noncePadding];
1810
+ }
1811
+ case "aead_xchacha20_poly1305_rtpsize": {
1812
+ encrypted = methods.crypto_aead_xchacha20poly1305_ietf_encrypt(
1813
+ packet,
1814
+ additionalData,
1815
+ connectionData.nonceBuffer,
1816
+ secretKey
1817
+ );
1818
+ return [encrypted, noncePadding];
1819
+ }
1820
+ default: {
1821
+ throw new RangeError(`Unsupported encryption method: ${encryptionMode}`);
1822
+ }
1823
+ }
1824
+ }
1825
+ };
1826
+
1827
+ // src/receive/VoiceReceiver.ts
1828
+ var import_node_buffer7 = require("buffer");
1829
+ var import_node_crypto2 = __toESM(require("crypto"));
1830
+ var import_v83 = require("discord-api-types/voice/v8");
1831
+
1832
+ // src/receive/AudioReceiveStream.ts
1833
+ var import_node_process = __toESM(require("process"));
1834
+ var import_node_stream = require("stream");
1835
+ var EndBehaviorType = /* @__PURE__ */ ((EndBehaviorType2) => {
1836
+ EndBehaviorType2[EndBehaviorType2["Manual"] = 0] = "Manual";
1837
+ EndBehaviorType2[EndBehaviorType2["AfterSilence"] = 1] = "AfterSilence";
1838
+ EndBehaviorType2[EndBehaviorType2["AfterInactivity"] = 2] = "AfterInactivity";
1839
+ return EndBehaviorType2;
1840
+ })(EndBehaviorType || {});
1841
+ function createDefaultAudioReceiveStreamOptions() {
1842
+ return {
1843
+ end: {
1844
+ behavior: 0 /* Manual */
1845
+ }
1846
+ };
1847
+ }
1848
+ __name(createDefaultAudioReceiveStreamOptions, "createDefaultAudioReceiveStreamOptions");
1849
+ var AudioReceiveStream = class extends import_node_stream.Readable {
1850
+ static {
1851
+ __name(this, "AudioReceiveStream");
1852
+ }
1853
+ /**
1854
+ * The end behavior of the receive stream.
1855
+ */
1856
+ end;
1857
+ endTimeout;
1858
+ constructor(options) {
1859
+ const { end, ...rest } = options;
1860
+ super({
1861
+ ...rest,
1862
+ objectMode: true
1863
+ });
1864
+ this.end = end;
1865
+ }
1866
+ push(buffer) {
1867
+ if (buffer && (this.end.behavior === 2 /* AfterInactivity */ || this.end.behavior === 1 /* AfterSilence */ && (buffer.compare(SILENCE_FRAME) !== 0 || this.endTimeout === void 0))) {
1868
+ this.renewEndTimeout(this.end);
1869
+ }
1870
+ if (buffer === null) {
1871
+ import_node_process.default.nextTick(() => this.destroy());
1872
+ }
1873
+ return super.push(buffer);
1874
+ }
1875
+ renewEndTimeout(end) {
1876
+ if (this.endTimeout) {
1877
+ clearTimeout(this.endTimeout);
1878
+ }
1879
+ this.endTimeout = setTimeout(() => this.push(null), end.duration);
1880
+ }
1881
+ _read() {
1882
+ }
1883
+ };
1884
+
1885
+ // src/receive/SSRCMap.ts
1886
+ var import_node_events6 = require("events");
1887
+ var SSRCMap = class extends import_node_events6.EventEmitter {
1888
+ static {
1889
+ __name(this, "SSRCMap");
1890
+ }
1891
+ /**
1892
+ * The underlying map.
1893
+ */
1894
+ map;
1895
+ constructor() {
1896
+ super();
1897
+ this.map = /* @__PURE__ */ new Map();
1898
+ }
1899
+ /**
1900
+ * Updates the map with new user data
1901
+ *
1902
+ * @param data - The data to update with
1903
+ */
1904
+ update(data) {
1905
+ const existing = this.map.get(data.audioSSRC);
1906
+ const newValue = {
1907
+ ...this.map.get(data.audioSSRC),
1908
+ ...data
1909
+ };
1910
+ this.map.set(data.audioSSRC, newValue);
1911
+ if (!existing) this.emit("create", newValue);
1912
+ this.emit("update", existing, newValue);
1913
+ }
1914
+ /**
1915
+ * Gets the stored voice data of a user.
1916
+ *
1917
+ * @param target - The target, either their user id or audio SSRC
1918
+ */
1919
+ get(target) {
1920
+ if (typeof target === "number") {
1921
+ return this.map.get(target);
1922
+ }
1923
+ for (const data of this.map.values()) {
1924
+ if (data.userId === target) {
1925
+ return data;
1926
+ }
1927
+ }
1928
+ return void 0;
1929
+ }
1930
+ /**
1931
+ * Deletes the stored voice data about a user.
1932
+ *
1933
+ * @param target - The target of the delete operation, either their audio SSRC or user id
1934
+ * @returns The data that was deleted, if any
1935
+ */
1936
+ delete(target) {
1937
+ if (typeof target === "number") {
1938
+ const existing = this.map.get(target);
1939
+ if (existing) {
1940
+ this.map.delete(target);
1941
+ this.emit("delete", existing);
1942
+ }
1943
+ return existing;
1944
+ }
1945
+ for (const [audioSSRC, data] of this.map.entries()) {
1946
+ if (data.userId === target) {
1947
+ this.map.delete(audioSSRC);
1948
+ this.emit("delete", data);
1949
+ return data;
1950
+ }
1951
+ }
1952
+ return void 0;
1953
+ }
1954
+ };
1955
+
1956
+ // src/receive/SpeakingMap.ts
1957
+ var import_node_events7 = require("events");
1958
+ var SpeakingMap = class _SpeakingMap extends import_node_events7.EventEmitter {
1959
+ static {
1960
+ __name(this, "SpeakingMap");
1961
+ }
1962
+ /**
1963
+ * The delay after a packet is received from a user until they're marked as not speaking anymore.
1964
+ */
1965
+ static DELAY = 100;
1966
+ /**
1967
+ * The currently speaking users, mapped to the milliseconds since UNIX epoch at which they started speaking.
1968
+ */
1969
+ users;
1970
+ speakingTimeouts;
1971
+ constructor() {
1972
+ super();
1973
+ this.users = /* @__PURE__ */ new Map();
1974
+ this.speakingTimeouts = /* @__PURE__ */ new Map();
1975
+ }
1976
+ onPacket(userId) {
1977
+ const timeout = this.speakingTimeouts.get(userId);
1978
+ if (timeout) {
1979
+ clearTimeout(timeout);
1980
+ } else {
1981
+ this.users.set(userId, Date.now());
1982
+ this.emit("start", userId);
1983
+ }
1984
+ this.startTimeout(userId);
1985
+ }
1986
+ startTimeout(userId) {
1987
+ this.speakingTimeouts.set(
1988
+ userId,
1989
+ setTimeout(() => {
1990
+ this.emit("end", userId);
1991
+ this.speakingTimeouts.delete(userId);
1992
+ this.users.delete(userId);
1993
+ }, _SpeakingMap.DELAY)
1994
+ );
1995
+ }
1996
+ };
1997
+
1998
+ // src/receive/VoiceReceiver.ts
1999
+ var HEADER_EXTENSION_BYTE = import_node_buffer7.Buffer.from([190, 222]);
2000
+ var UNPADDED_NONCE_LENGTH = 4;
2001
+ var AUTH_TAG_LENGTH = 16;
2002
+ var VoiceReceiver = class {
2003
+ static {
2004
+ __name(this, "VoiceReceiver");
2005
+ }
2006
+ /**
2007
+ * The attached connection of this receiver.
2008
+ */
2009
+ voiceConnection;
2010
+ /**
2011
+ * Maps SSRCs to Discord user ids.
2012
+ */
2013
+ ssrcMap;
2014
+ /**
2015
+ * The current audio subscriptions of this receiver.
2016
+ */
2017
+ subscriptions;
2018
+ /**
2019
+ * The connection data of the receiver.
2020
+ *
2021
+ * @internal
2022
+ */
2023
+ connectionData;
2024
+ /**
2025
+ * The speaking map of the receiver.
2026
+ */
2027
+ speaking;
2028
+ constructor(voiceConnection) {
2029
+ this.voiceConnection = voiceConnection;
2030
+ this.ssrcMap = new SSRCMap();
2031
+ this.speaking = new SpeakingMap();
2032
+ this.subscriptions = /* @__PURE__ */ new Map();
2033
+ this.connectionData = {};
2034
+ this.onWsPacket = this.onWsPacket.bind(this);
2035
+ this.onUdpMessage = this.onUdpMessage.bind(this);
2036
+ }
2037
+ /**
2038
+ * Called when a packet is received on the attached connection's WebSocket.
2039
+ *
2040
+ * @param packet - The received packet
2041
+ * @internal
2042
+ */
2043
+ onWsPacket(packet) {
2044
+ if (packet.op === import_v83.VoiceOpcodes.ClientDisconnect) {
2045
+ this.ssrcMap.delete(packet.d.user_id);
2046
+ } else if (packet.op === import_v83.VoiceOpcodes.Speaking) {
2047
+ this.ssrcMap.update({ userId: packet.d.user_id, audioSSRC: packet.d.ssrc });
2048
+ }
2049
+ }
2050
+ decrypt(buffer, mode, nonce2, secretKey) {
2051
+ buffer.copy(nonce2, 0, buffer.length - UNPADDED_NONCE_LENGTH);
2052
+ let headerSize = 12;
2053
+ const first = buffer.readUint8();
2054
+ if (first >> 4 & 1) headerSize += 4;
2055
+ const header = buffer.subarray(0, headerSize);
2056
+ const encrypted = buffer.subarray(headerSize, buffer.length - AUTH_TAG_LENGTH - UNPADDED_NONCE_LENGTH);
2057
+ const authTag = buffer.subarray(
2058
+ buffer.length - AUTH_TAG_LENGTH - UNPADDED_NONCE_LENGTH,
2059
+ buffer.length - UNPADDED_NONCE_LENGTH
2060
+ );
2061
+ switch (mode) {
2062
+ case "aead_aes256_gcm_rtpsize": {
2063
+ const decipheriv = import_node_crypto2.default.createDecipheriv("aes-256-gcm", secretKey, nonce2);
2064
+ decipheriv.setAAD(header);
2065
+ decipheriv.setAuthTag(authTag);
2066
+ return import_node_buffer7.Buffer.concat([decipheriv.update(encrypted), decipheriv.final()]);
2067
+ }
2068
+ case "aead_xchacha20_poly1305_rtpsize": {
2069
+ return import_node_buffer7.Buffer.from(
2070
+ methods.crypto_aead_xchacha20poly1305_ietf_decrypt(
2071
+ import_node_buffer7.Buffer.concat([encrypted, authTag]),
2072
+ header,
2073
+ nonce2,
2074
+ secretKey
2075
+ )
2076
+ );
2077
+ }
2078
+ default: {
2079
+ throw new RangeError(`Unsupported decryption method: ${mode}`);
2080
+ }
2081
+ }
2082
+ }
2083
+ /**
2084
+ * Parses an audio packet, decrypting it to yield an Opus packet.
2085
+ *
2086
+ * @param buffer - The buffer to parse
2087
+ * @param mode - The encryption mode
2088
+ * @param nonce - The nonce buffer used by the connection for encryption
2089
+ * @param secretKey - The secret key used by the connection for encryption
2090
+ * @param userId - The user id that sent the packet
2091
+ * @returns The parsed Opus packet
2092
+ */
2093
+ parsePacket(buffer, mode, nonce2, secretKey, userId) {
2094
+ let packet = this.decrypt(buffer, mode, nonce2, secretKey);
2095
+ if (!packet) throw new Error("Failed to parse packet");
2096
+ const hasPadding = buffer[0] && Boolean(buffer[0] & 32);
2097
+ if (hasPadding) {
2098
+ const paddingAmount = packet[packet.length - 1];
2099
+ if (paddingAmount < packet.length) {
2100
+ packet = packet.subarray(0, packet.length - paddingAmount);
2101
+ }
2102
+ }
2103
+ if (buffer.subarray(12, 14).compare(HEADER_EXTENSION_BYTE) === 0) {
2104
+ const headerExtensionLength = buffer.subarray(14).readUInt16BE();
2105
+ packet = packet.subarray(4 * headerExtensionLength);
2106
+ }
2107
+ if (this.voiceConnection.state.status === "ready" /* Ready */ && (this.voiceConnection.state.networking.state.code === 4 /* Ready */ || this.voiceConnection.state.networking.state.code === 5 /* Resuming */)) {
2108
+ const daveSession = this.voiceConnection.state.networking.state.dave;
2109
+ if (daveSession) packet = daveSession.decrypt(packet, userId);
2110
+ }
2111
+ return packet;
2112
+ }
2113
+ /**
2114
+ * Called when the UDP socket of the attached connection receives a message.
2115
+ *
2116
+ * @param msg - The received message
2117
+ * @internal
2118
+ */
2119
+ onUdpMessage(msg) {
2120
+ if (msg.length <= 8) return;
2121
+ const ssrc = msg.readUInt32BE(8);
2122
+ const userData = this.ssrcMap.get(ssrc);
2123
+ if (!userData) return;
2124
+ this.speaking.onPacket(userData.userId);
2125
+ const stream = this.subscriptions.get(userData.userId);
2126
+ if (!stream) return;
2127
+ if (this.connectionData.encryptionMode && this.connectionData.nonceBuffer && this.connectionData.secretKey) {
2128
+ if ((msg[1] & 127) !== RTP_OPUS_PAYLOAD_TYPE) return;
2129
+ const rtpVersion = msg[0] >> 6;
2130
+ if (rtpVersion !== 2) return;
2131
+ try {
2132
+ const packet = this.parsePacket(
2133
+ msg,
2134
+ this.connectionData.encryptionMode,
2135
+ this.connectionData.nonceBuffer,
2136
+ this.connectionData.secretKey,
2137
+ userData.userId
2138
+ );
2139
+ if (packet) stream.push(packet);
2140
+ } catch (error) {
2141
+ stream.destroy(error);
2142
+ }
2143
+ }
2144
+ }
2145
+ /**
2146
+ * Creates a subscription for the given user id.
2147
+ *
2148
+ * @param target - The id of the user to subscribe to
2149
+ * @returns A readable stream of Opus packets received from the target
2150
+ */
2151
+ subscribe(userId, options) {
2152
+ const existing = this.subscriptions.get(userId);
2153
+ if (existing) return existing;
2154
+ const stream = new AudioReceiveStream({
2155
+ ...createDefaultAudioReceiveStreamOptions(),
2156
+ ...options
2157
+ });
2158
+ stream.once("close", () => this.subscriptions.delete(userId));
2159
+ this.subscriptions.set(userId, stream);
2160
+ return stream;
2161
+ }
2162
+ };
2163
+
2164
+ // src/VoiceConnection.ts
2165
+ var VoiceConnectionStatus = /* @__PURE__ */ ((VoiceConnectionStatus2) => {
2166
+ VoiceConnectionStatus2["Connecting"] = "connecting";
2167
+ VoiceConnectionStatus2["Destroyed"] = "destroyed";
2168
+ VoiceConnectionStatus2["Disconnected"] = "disconnected";
2169
+ VoiceConnectionStatus2["Ready"] = "ready";
2170
+ VoiceConnectionStatus2["Signalling"] = "signalling";
2171
+ return VoiceConnectionStatus2;
2172
+ })(VoiceConnectionStatus || {});
2173
+ var VoiceConnectionDisconnectReason = /* @__PURE__ */ ((VoiceConnectionDisconnectReason2) => {
2174
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["WebSocketClose"] = 0] = "WebSocketClose";
2175
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["AdapterUnavailable"] = 1] = "AdapterUnavailable";
2176
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["EndpointRemoved"] = 2] = "EndpointRemoved";
2177
+ VoiceConnectionDisconnectReason2[VoiceConnectionDisconnectReason2["Manual"] = 3] = "Manual";
2178
+ return VoiceConnectionDisconnectReason2;
2179
+ })(VoiceConnectionDisconnectReason || {});
2180
+ var VoiceConnection = class extends import_node_events8.EventEmitter {
2181
+ static {
2182
+ __name(this, "VoiceConnection");
2183
+ }
2184
+ /**
2185
+ * The number of consecutive rejoin attempts. Initially 0, and increments for each rejoin.
2186
+ * When a connection is successfully established, it resets to 0.
2187
+ */
2188
+ rejoinAttempts;
2189
+ /**
2190
+ * The state of the voice connection.
2191
+ */
2192
+ _state;
2193
+ /**
2194
+ * A configuration storing all the data needed to reconnect to a Guild's voice server.
2195
+ *
2196
+ * @internal
2197
+ */
2198
+ joinConfig;
2199
+ /**
2200
+ * The two packets needed to successfully establish a voice connection. They are received
2201
+ * from the main Discord gateway after signalling to change the voice state.
2202
+ */
2203
+ packets;
2204
+ /**
2205
+ * The receiver of this voice connection. You should join the voice channel with `selfDeaf` set
2206
+ * to false for this feature to work properly.
2207
+ */
2208
+ receiver;
2209
+ /**
2210
+ * The debug logger function, if debugging is enabled.
2211
+ */
2212
+ debug;
2213
+ /**
2214
+ * The options used to create this voice connection.
2215
+ */
2216
+ options;
2217
+ /**
2218
+ * Creates a new voice connection.
2219
+ *
2220
+ * @param joinConfig - The data required to establish the voice connection
2221
+ * @param options - The options used to create this voice connection
2222
+ */
2223
+ constructor(joinConfig, options) {
2224
+ super();
2225
+ this.debug = options.debug ? (message) => this.emit("debug", message) : null;
2226
+ this.rejoinAttempts = 0;
2227
+ this.receiver = new VoiceReceiver(this);
2228
+ this.onNetworkingClose = this.onNetworkingClose.bind(this);
2229
+ this.onNetworkingStateChange = this.onNetworkingStateChange.bind(this);
2230
+ this.onNetworkingError = this.onNetworkingError.bind(this);
2231
+ this.onNetworkingDebug = this.onNetworkingDebug.bind(this);
2232
+ this.onNetworkingTransitioned = this.onNetworkingTransitioned.bind(this);
2233
+ const adapter = options.adapterCreator({
2234
+ onVoiceServerUpdate: /* @__PURE__ */ __name((data) => this.addServerPacket(data), "onVoiceServerUpdate"),
2235
+ onVoiceStateUpdate: /* @__PURE__ */ __name((data) => this.addStatePacket(data), "onVoiceStateUpdate"),
2236
+ destroy: /* @__PURE__ */ __name(() => this.destroy(false), "destroy")
2237
+ });
2238
+ this._state = { status: "signalling" /* Signalling */, adapter };
2239
+ this.packets = {
2240
+ server: void 0,
2241
+ state: void 0
2242
+ };
2243
+ this.joinConfig = joinConfig;
2244
+ this.options = options;
2245
+ }
2246
+ /**
2247
+ * The current state of the voice connection.
2248
+ *
2249
+ * @remarks
2250
+ * The setter will perform clean-up operations where necessary.
2251
+ */
2252
+ get state() {
2253
+ return this._state;
2254
+ }
2255
+ set state(newState) {
2256
+ const oldState = this._state;
2257
+ const oldNetworking = Reflect.get(oldState, "networking");
2258
+ const newNetworking = Reflect.get(newState, "networking");
2259
+ const oldSubscription = Reflect.get(oldState, "subscription");
2260
+ const newSubscription = Reflect.get(newState, "subscription");
2261
+ if (oldNetworking !== newNetworking) {
2262
+ if (oldNetworking) {
2263
+ oldNetworking.on("error", noop);
2264
+ oldNetworking.off("debug", this.onNetworkingDebug);
2265
+ oldNetworking.off("error", this.onNetworkingError);
2266
+ oldNetworking.off("close", this.onNetworkingClose);
2267
+ oldNetworking.off("stateChange", this.onNetworkingStateChange);
2268
+ oldNetworking.off("transitioned", this.onNetworkingTransitioned);
2269
+ oldNetworking.destroy();
2270
+ }
2271
+ if (newNetworking) this.updateReceiveBindings(newNetworking.state, oldNetworking?.state);
2272
+ }
2273
+ if (newState.status === "ready" /* Ready */) {
2274
+ this.rejoinAttempts = 0;
2275
+ } else if (newState.status === "destroyed" /* Destroyed */) {
2276
+ for (const stream of this.receiver.subscriptions.values()) {
2277
+ if (!stream.destroyed) stream.destroy();
2278
+ }
2279
+ }
2280
+ if (oldState.status !== "destroyed" /* Destroyed */ && newState.status === "destroyed" /* Destroyed */) {
2281
+ oldState.adapter.destroy();
2282
+ }
2283
+ this._state = newState;
2284
+ if (oldSubscription && oldSubscription !== newSubscription) {
2285
+ oldSubscription.unsubscribe();
2286
+ }
2287
+ this.emit("stateChange", oldState, newState);
2288
+ if (oldState.status !== newState.status) {
2289
+ this.emit(newState.status, oldState, newState);
2290
+ }
2291
+ }
2292
+ /**
2293
+ * Registers a `VOICE_SERVER_UPDATE` packet to the voice connection. This will cause it to reconnect using the
2294
+ * new data provided in the packet.
2295
+ *
2296
+ * @param packet - The received `VOICE_SERVER_UPDATE` packet
2297
+ */
2298
+ addServerPacket(packet) {
2299
+ this.packets.server = packet;
2300
+ if (packet.endpoint) {
2301
+ this.configureNetworking();
2302
+ } else if (this.state.status !== "destroyed" /* Destroyed */) {
2303
+ this.state = {
2304
+ ...this.state,
2305
+ status: "disconnected" /* Disconnected */,
2306
+ reason: 2 /* EndpointRemoved */
2307
+ };
2308
+ }
2309
+ }
2310
+ /**
2311
+ * Registers a `VOICE_STATE_UPDATE` packet to the voice connection. Most importantly, it stores the id of the
2312
+ * channel that the client is connected to.
2313
+ *
2314
+ * @param packet - The received `VOICE_STATE_UPDATE` packet
2315
+ */
2316
+ addStatePacket(packet) {
2317
+ this.packets.state = packet;
2318
+ if (packet.self_deaf !== void 0) this.joinConfig.selfDeaf = packet.self_deaf;
2319
+ if (packet.self_mute !== void 0) this.joinConfig.selfMute = packet.self_mute;
2320
+ if (packet.channel_id) this.joinConfig.channelId = packet.channel_id;
2321
+ }
2322
+ /**
2323
+ * Called when the networking state changes, and the new ws/udp packet/message handlers need to be rebound
2324
+ * to the new instances.
2325
+ *
2326
+ * @param newState - The new networking state
2327
+ * @param oldState - The old networking state, if there is one
2328
+ */
2329
+ updateReceiveBindings(newState, oldState) {
2330
+ const oldWs = Reflect.get(oldState ?? {}, "ws");
2331
+ const newWs = Reflect.get(newState, "ws");
2332
+ const oldUdp = Reflect.get(oldState ?? {}, "udp");
2333
+ const newUdp = Reflect.get(newState, "udp");
2334
+ if (oldWs !== newWs) {
2335
+ oldWs?.off("packet", this.receiver.onWsPacket);
2336
+ newWs?.on("packet", this.receiver.onWsPacket);
2337
+ }
2338
+ if (oldUdp !== newUdp) {
2339
+ oldUdp?.off("message", this.receiver.onUdpMessage);
2340
+ newUdp?.on("message", this.receiver.onUdpMessage);
2341
+ }
2342
+ this.receiver.connectionData = Reflect.get(newState, "connectionData") ?? {};
2343
+ }
2344
+ /**
2345
+ * Attempts to configure a networking instance for this voice connection using the received packets.
2346
+ * Both packets are required, and any existing networking instance will be destroyed.
2347
+ *
2348
+ * @remarks
2349
+ * This is called when the voice server of the connection changes, e.g. if the bot is moved into a
2350
+ * different channel in the same guild but has a different voice server. In this instance, the connection
2351
+ * needs to be re-established to the new voice server.
2352
+ *
2353
+ * The connection will transition to the Connecting state when this is called.
2354
+ */
2355
+ configureNetworking() {
2356
+ const { server, state } = this.packets;
2357
+ if (!server || !state || this.state.status === "destroyed" /* Destroyed */ || !server.endpoint) return;
2358
+ const networking = new Networking(
2359
+ {
2360
+ endpoint: server.endpoint,
2361
+ serverId: server.guild_id,
2362
+ token: server.token,
2363
+ sessionId: state.session_id,
2364
+ userId: state.user_id,
2365
+ channelId: state.channel_id
2366
+ },
2367
+ {
2368
+ debug: Boolean(this.debug),
2369
+ daveEncryption: this.options.daveEncryption ?? true,
2370
+ decryptionFailureTolerance: this.options.decryptionFailureTolerance
2371
+ }
2372
+ );
2373
+ networking.once("close", this.onNetworkingClose);
2374
+ networking.on("stateChange", this.onNetworkingStateChange);
2375
+ networking.on("error", this.onNetworkingError);
2376
+ networking.on("debug", this.onNetworkingDebug);
2377
+ networking.on("transitioned", this.onNetworkingTransitioned);
2378
+ this.state = {
2379
+ ...this.state,
2380
+ status: "connecting" /* Connecting */,
2381
+ networking
2382
+ };
2383
+ }
2384
+ /**
2385
+ * Called when the networking instance for this connection closes. If the close code is 4014 (do not reconnect),
2386
+ * the voice connection will transition to the Disconnected state which will store the close code. You can
2387
+ * decide whether or not to reconnect when this occurs by listening for the state change and calling reconnect().
2388
+ *
2389
+ * @remarks
2390
+ * If the close code was anything other than 4014, it is likely that the closing was not intended, and so the
2391
+ * VoiceConnection will signal to Discord that it would like to rejoin the channel. This automatically attempts
2392
+ * to re-establish the connection. This would be seen as a transition from the Ready state to the Signalling state.
2393
+ * @param code - The close code
2394
+ */
2395
+ onNetworkingClose(code) {
2396
+ if (this.state.status === "destroyed" /* Destroyed */) return;
2397
+ if (code === 4014) {
2398
+ this.state = {
2399
+ ...this.state,
2400
+ status: "disconnected" /* Disconnected */,
2401
+ reason: 0 /* WebSocketClose */,
2402
+ closeCode: code
2403
+ };
2404
+ } else {
2405
+ this.state = {
2406
+ ...this.state,
2407
+ status: "signalling" /* Signalling */
2408
+ };
2409
+ this.rejoinAttempts++;
2410
+ if (!this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2411
+ this.state = {
2412
+ ...this.state,
2413
+ status: "disconnected" /* Disconnected */,
2414
+ reason: 1 /* AdapterUnavailable */
2415
+ };
2416
+ }
2417
+ }
2418
+ }
2419
+ /**
2420
+ * Called when the state of the networking instance changes. This is used to derive the state of the voice connection.
2421
+ *
2422
+ * @param oldState - The previous state
2423
+ * @param newState - The new state
2424
+ */
2425
+ onNetworkingStateChange(oldState, newState) {
2426
+ this.updateReceiveBindings(newState, oldState);
2427
+ if (oldState.code === newState.code) return;
2428
+ if (this.state.status !== "connecting" /* Connecting */ && this.state.status !== "ready" /* Ready */)
2429
+ return;
2430
+ if (newState.code === 4 /* Ready */) {
2431
+ this.state = {
2432
+ ...this.state,
2433
+ status: "ready" /* Ready */
2434
+ };
2435
+ } else if (newState.code !== 6 /* Closed */) {
2436
+ this.state = {
2437
+ ...this.state,
2438
+ status: "connecting" /* Connecting */
2439
+ };
2440
+ }
2441
+ }
2442
+ /**
2443
+ * Propagates errors from the underlying network instance.
2444
+ *
2445
+ * @param error - The error to propagate
2446
+ */
2447
+ onNetworkingError(error) {
2448
+ this.emit("error", error);
2449
+ }
2450
+ /**
2451
+ * Propagates debug messages from the underlying network instance.
2452
+ *
2453
+ * @param message - The debug message to propagate
2454
+ */
2455
+ onNetworkingDebug(message) {
2456
+ this.debug?.(`[NW] ${message}`);
2457
+ }
2458
+ /**
2459
+ * Propagates transitions from the underlying network instance.
2460
+ *
2461
+ * @param transitionId - The transition id
2462
+ */
2463
+ onNetworkingTransitioned(transitionId) {
2464
+ this.emit("transitioned", transitionId);
2465
+ }
2466
+ /**
2467
+ * Prepares an audio packet for dispatch.
2468
+ *
2469
+ * @param buffer - The Opus packet to prepare
2470
+ */
2471
+ prepareAudioPacket(buffer) {
2472
+ const state = this.state;
2473
+ if (state.status !== "ready" /* Ready */) return;
2474
+ return state.networking.prepareAudioPacket(buffer);
2475
+ }
2476
+ /**
2477
+ * Dispatches the previously prepared audio packet (if any)
2478
+ */
2479
+ dispatchAudio() {
2480
+ const state = this.state;
2481
+ if (state.status !== "ready" /* Ready */) return;
2482
+ return state.networking.dispatchAudio();
2483
+ }
2484
+ /**
2485
+ * Prepares an audio packet and dispatches it immediately.
2486
+ *
2487
+ * @param buffer - The Opus packet to play
2488
+ */
2489
+ playOpusPacket(buffer) {
2490
+ const state = this.state;
2491
+ if (state.status !== "ready" /* Ready */) return;
2492
+ state.networking.prepareAudioPacket(buffer);
2493
+ return state.networking.dispatchAudio();
2494
+ }
2495
+ /**
2496
+ * Destroys the VoiceConnection, preventing it from connecting to voice again.
2497
+ * This method should be called when you no longer require the VoiceConnection to
2498
+ * prevent memory leaks.
2499
+ *
2500
+ * @param adapterAvailable - Whether the adapter can be used
2501
+ */
2502
+ destroy(adapterAvailable = true) {
2503
+ if (this.state.status === "destroyed" /* Destroyed */) {
2504
+ throw new Error("Cannot destroy VoiceConnection - it has already been destroyed");
2505
+ }
2506
+ if (getVoiceConnection(this.joinConfig.guildId, this.joinConfig.group) === this) {
2507
+ untrackVoiceConnection(this);
2508
+ }
2509
+ if (adapterAvailable) {
2510
+ this.state.adapter.sendPayload(createJoinVoiceChannelPayload({ ...this.joinConfig, channelId: null }));
2511
+ }
2512
+ this.state = {
2513
+ status: "destroyed" /* Destroyed */
2514
+ };
2515
+ }
2516
+ /**
2517
+ * Disconnects the VoiceConnection, allowing the possibility of rejoining later on.
2518
+ *
2519
+ * @returns `true` if the connection was successfully disconnected
2520
+ */
2521
+ disconnect() {
2522
+ if (this.state.status === "destroyed" /* Destroyed */ || this.state.status === "signalling" /* Signalling */) {
2523
+ return false;
2524
+ }
2525
+ this.joinConfig.channelId = null;
2526
+ if (!this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2527
+ this.state = {
2528
+ adapter: this.state.adapter,
2529
+ subscription: this.state.subscription,
2530
+ status: "disconnected" /* Disconnected */,
2531
+ reason: 1 /* AdapterUnavailable */
2532
+ };
2533
+ return false;
2534
+ }
2535
+ this.state = {
2536
+ adapter: this.state.adapter,
2537
+ reason: 3 /* Manual */,
2538
+ status: "disconnected" /* Disconnected */
2539
+ };
2540
+ return true;
2541
+ }
2542
+ /**
2543
+ * Attempts to rejoin (better explanation soon:tm:)
2544
+ *
2545
+ * @remarks
2546
+ * Calling this method successfully will automatically increment the `rejoinAttempts` counter,
2547
+ * which you can use to inform whether or not you'd like to keep attempting to reconnect your
2548
+ * voice connection.
2549
+ *
2550
+ * A state transition from Disconnected to Signalling will be observed when this is called.
2551
+ */
2552
+ rejoin(joinConfig) {
2553
+ if (this.state.status === "destroyed" /* Destroyed */) {
2554
+ return false;
2555
+ }
2556
+ const notReady = this.state.status !== "ready" /* Ready */;
2557
+ if (notReady) this.rejoinAttempts++;
2558
+ Object.assign(this.joinConfig, joinConfig);
2559
+ if (this.state.adapter.sendPayload(createJoinVoiceChannelPayload(this.joinConfig))) {
2560
+ if (notReady) {
2561
+ this.state = {
2562
+ ...this.state,
2563
+ status: "signalling" /* Signalling */
2564
+ };
2565
+ }
2566
+ return true;
2567
+ }
2568
+ this.state = {
2569
+ adapter: this.state.adapter,
2570
+ subscription: this.state.subscription,
2571
+ status: "disconnected" /* Disconnected */,
2572
+ reason: 1 /* AdapterUnavailable */
2573
+ };
2574
+ return false;
2575
+ }
2576
+ /**
2577
+ * Updates the speaking status of the voice connection. This is used when audio players are done playing audio,
2578
+ * and need to signal that the connection is no longer playing audio.
2579
+ *
2580
+ * @param enabled - Whether or not to show as speaking
2581
+ */
2582
+ setSpeaking(enabled) {
2583
+ if (this.state.status !== "ready" /* Ready */) return false;
2584
+ return this.state.networking.setSpeaking(enabled);
2585
+ }
2586
+ /**
2587
+ * Subscribes to an audio player, allowing the player to play audio on this voice connection.
2588
+ *
2589
+ * @param player - The audio player to subscribe to
2590
+ * @returns The created subscription
2591
+ */
2592
+ subscribe(player) {
2593
+ if (this.state.status === "destroyed" /* Destroyed */) return;
2594
+ const subscription = player["subscribe"](this);
2595
+ this.state = {
2596
+ ...this.state,
2597
+ subscription
2598
+ };
2599
+ return subscription;
2600
+ }
2601
+ /**
2602
+ * The latest ping (in milliseconds) for the WebSocket connection and audio playback for this voice
2603
+ * connection, if this data is available.
2604
+ *
2605
+ * @remarks
2606
+ * For this data to be available, the VoiceConnection must be in the Ready state, and its underlying
2607
+ * WebSocket connection and UDP socket must have had at least one ping-pong exchange.
2608
+ */
2609
+ get ping() {
2610
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */) {
2611
+ return {
2612
+ ws: this.state.networking.state.ws.ping,
2613
+ udp: this.state.networking.state.udp.ping
2614
+ };
2615
+ }
2616
+ return {
2617
+ ws: void 0,
2618
+ udp: void 0
2619
+ };
2620
+ }
2621
+ /**
2622
+ * The current voice privacy code of the encrypted session.
2623
+ *
2624
+ * @remarks
2625
+ * For this data to be available, the VoiceConnection must be in the Ready state,
2626
+ * and the connection would have to be end-to-end encrypted.
2627
+ */
2628
+ get voicePrivacyCode() {
2629
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */) {
2630
+ return this.state.networking.state.dave?.voicePrivacyCode ?? void 0;
2631
+ }
2632
+ return void 0;
2633
+ }
2634
+ /**
2635
+ * Gets the verification code for a user in the session.
2636
+ *
2637
+ * @throws Will throw if end-to-end encryption is not on or if the user id provided is not in the session.
2638
+ */
2639
+ async getVerificationCode(userId) {
2640
+ if (this.state.status === "ready" /* Ready */ && this.state.networking.state.code === 4 /* Ready */ && this.state.networking.state.dave) {
2641
+ return this.state.networking.state.dave.getVerificationCode(userId);
2642
+ }
2643
+ throw new Error("Session not available");
2644
+ }
2645
+ /**
2646
+ * Called when a subscription of this voice connection to an audio player is removed.
2647
+ *
2648
+ * @param subscription - The removed subscription
2649
+ */
2650
+ onSubscriptionRemoved(subscription) {
2651
+ if (this.state.status !== "destroyed" /* Destroyed */ && this.state.subscription === subscription) {
2652
+ this.state = {
2653
+ ...this.state,
2654
+ subscription: void 0
2655
+ };
2656
+ }
2657
+ }
2658
+ };
2659
+ function createVoiceConnection(joinConfig, options) {
2660
+ const payload = createJoinVoiceChannelPayload(joinConfig);
2661
+ const existing = getVoiceConnection(joinConfig.guildId, joinConfig.group);
2662
+ if (existing && existing.state.status !== "destroyed" /* Destroyed */) {
2663
+ if (existing.state.status === "disconnected" /* Disconnected */) {
2664
+ existing.rejoin({
2665
+ channelId: joinConfig.channelId,
2666
+ selfDeaf: joinConfig.selfDeaf,
2667
+ selfMute: joinConfig.selfMute
2668
+ });
2669
+ } else if (!existing.state.adapter.sendPayload(payload)) {
2670
+ existing.state = {
2671
+ ...existing.state,
2672
+ status: "disconnected" /* Disconnected */,
2673
+ reason: 1 /* AdapterUnavailable */
2674
+ };
2675
+ }
2676
+ return existing;
2677
+ }
2678
+ const voiceConnection = new VoiceConnection(joinConfig, options);
2679
+ trackVoiceConnection(voiceConnection);
2680
+ if (voiceConnection.state.status !== "destroyed" /* Destroyed */ && !voiceConnection.state.adapter.sendPayload(payload)) {
2681
+ voiceConnection.state = {
2682
+ ...voiceConnection.state,
2683
+ status: "disconnected" /* Disconnected */,
2684
+ reason: 1 /* AdapterUnavailable */
2685
+ };
2686
+ }
2687
+ return voiceConnection;
2688
+ }
2689
+ __name(createVoiceConnection, "createVoiceConnection");
2690
+
2691
+ // src/joinVoiceChannel.ts
2692
+ function joinVoiceChannel(options) {
2693
+ const joinConfig = {
2694
+ selfDeaf: true,
2695
+ selfMute: false,
2696
+ group: "default",
2697
+ ...options
2698
+ };
2699
+ return createVoiceConnection(joinConfig, {
2700
+ adapterCreator: options.adapterCreator,
2701
+ debug: options.debug,
2702
+ daveEncryption: options.daveEncryption,
2703
+ decryptionFailureTolerance: options.decryptionFailureTolerance
2704
+ });
2705
+ }
2706
+ __name(joinVoiceChannel, "joinVoiceChannel");
2707
+
2708
+ // src/audio/AudioResource.ts
2709
+ var import_node_stream2 = require("stream");
2710
+ var import_prism_media2 = __toESM(require("prism-media"));
2711
+
2712
+ // src/audio/TransformerGraph.ts
2713
+ var import_prism_media = __toESM(require("prism-media"));
2714
+ var FFMPEG_PCM_ARGUMENTS = ["-analyzeduration", "0", "-loglevel", "0", "-f", "s16le", "-ar", "48000", "-ac", "2"];
2715
+ var FFMPEG_OPUS_ARGUMENTS = [
2716
+ "-analyzeduration",
2717
+ "0",
2718
+ "-loglevel",
2719
+ "0",
2720
+ "-acodec",
2721
+ "libopus",
2722
+ "-f",
2723
+ "opus",
2724
+ "-ar",
2725
+ "48000",
2726
+ "-ac",
2727
+ "2"
2728
+ ];
2729
+ var StreamType = /* @__PURE__ */ ((StreamType2) => {
2730
+ StreamType2["Arbitrary"] = "arbitrary";
2731
+ StreamType2["OggOpus"] = "ogg/opus";
2732
+ StreamType2["Opus"] = "opus";
2733
+ StreamType2["Raw"] = "raw";
2734
+ StreamType2["WebmOpus"] = "webm/opus";
2735
+ return StreamType2;
2736
+ })(StreamType || {});
2737
+ var TransformerType = /* @__PURE__ */ ((TransformerType2) => {
2738
+ TransformerType2["FFmpegOgg"] = "ffmpeg ogg";
2739
+ TransformerType2["FFmpegPCM"] = "ffmpeg pcm";
2740
+ TransformerType2["InlineVolume"] = "volume transformer";
2741
+ TransformerType2["OggOpusDemuxer"] = "ogg/opus demuxer";
2742
+ TransformerType2["OpusDecoder"] = "opus decoder";
2743
+ TransformerType2["OpusEncoder"] = "opus encoder";
2744
+ TransformerType2["WebmOpusDemuxer"] = "webm/opus demuxer";
2745
+ return TransformerType2;
2746
+ })(TransformerType || {});
2747
+ var Node = class {
2748
+ static {
2749
+ __name(this, "Node");
2750
+ }
2751
+ /**
2752
+ * The outbound edges from this node.
2753
+ */
2754
+ edges = [];
2755
+ /**
2756
+ * The type of stream for this node.
2757
+ */
2758
+ type;
2759
+ constructor(type) {
2760
+ this.type = type;
2761
+ }
2762
+ /**
2763
+ * Creates an outbound edge from this node.
2764
+ *
2765
+ * @param edge - The edge to create
2766
+ */
2767
+ addEdge(edge) {
2768
+ this.edges.push({ ...edge, from: this });
2769
+ }
2770
+ };
2771
+ var NODES = null;
2772
+ function getNode(type) {
2773
+ const node = (NODES ??= initializeNodes()).get(type);
2774
+ if (!node) throw new Error(`Node type '${type}' does not exist!`);
2775
+ return node;
2776
+ }
2777
+ __name(getNode, "getNode");
2778
+ function canEnableFFmpegOptimizations() {
2779
+ try {
2780
+ return import_prism_media.default.FFmpeg.getInfo().output.includes("--enable-libopus");
2781
+ } catch {
2782
+ }
2783
+ return false;
2784
+ }
2785
+ __name(canEnableFFmpegOptimizations, "canEnableFFmpegOptimizations");
2786
+ function initializeNodes() {
2787
+ const nodes = /* @__PURE__ */ new Map();
2788
+ for (const streamType of Object.values(StreamType)) {
2789
+ nodes.set(streamType, new Node(streamType));
2790
+ }
2791
+ nodes.get("raw" /* Raw */).addEdge({
2792
+ type: "opus encoder" /* OpusEncoder */,
2793
+ to: nodes.get("opus" /* Opus */),
2794
+ cost: 1.5,
2795
+ transformer: /* @__PURE__ */ __name(() => new import_prism_media.default.opus.Encoder({ rate: 48e3, channels: 2, frameSize: 960 }), "transformer")
2796
+ });
2797
+ nodes.get("opus" /* Opus */).addEdge({
2798
+ type: "opus decoder" /* OpusDecoder */,
2799
+ to: nodes.get("raw" /* Raw */),
2800
+ cost: 1.5,
2801
+ transformer: /* @__PURE__ */ __name(() => new import_prism_media.default.opus.Decoder({ rate: 48e3, channels: 2, frameSize: 960 }), "transformer")
2802
+ });
2803
+ nodes.get("ogg/opus" /* OggOpus */).addEdge({
2804
+ type: "ogg/opus demuxer" /* OggOpusDemuxer */,
2805
+ to: nodes.get("opus" /* Opus */),
2806
+ cost: 1,
2807
+ transformer: /* @__PURE__ */ __name(() => new import_prism_media.default.opus.OggDemuxer(), "transformer")
2808
+ });
2809
+ nodes.get("webm/opus" /* WebmOpus */).addEdge({
2810
+ type: "webm/opus demuxer" /* WebmOpusDemuxer */,
2811
+ to: nodes.get("opus" /* Opus */),
2812
+ cost: 1,
2813
+ transformer: /* @__PURE__ */ __name(() => new import_prism_media.default.opus.WebmDemuxer(), "transformer")
2814
+ });
2815
+ const FFMPEG_PCM_EDGE = {
2816
+ type: "ffmpeg pcm" /* FFmpegPCM */,
2817
+ to: nodes.get("raw" /* Raw */),
2818
+ cost: 2,
2819
+ transformer: /* @__PURE__ */ __name((input) => new import_prism_media.default.FFmpeg({
2820
+ args: ["-i", typeof input === "string" ? input : "-", ...FFMPEG_PCM_ARGUMENTS]
2821
+ }), "transformer")
2822
+ };
2823
+ nodes.get("arbitrary" /* Arbitrary */).addEdge(FFMPEG_PCM_EDGE);
2824
+ nodes.get("ogg/opus" /* OggOpus */).addEdge(FFMPEG_PCM_EDGE);
2825
+ nodes.get("webm/opus" /* WebmOpus */).addEdge(FFMPEG_PCM_EDGE);
2826
+ nodes.get("raw" /* Raw */).addEdge({
2827
+ type: "volume transformer" /* InlineVolume */,
2828
+ to: nodes.get("raw" /* Raw */),
2829
+ cost: 0.5,
2830
+ transformer: /* @__PURE__ */ __name(() => new import_prism_media.default.VolumeTransformer({ type: "s16le" }), "transformer")
2831
+ });
2832
+ if (canEnableFFmpegOptimizations()) {
2833
+ const FFMPEG_OGG_EDGE = {
2834
+ type: "ffmpeg ogg" /* FFmpegOgg */,
2835
+ to: nodes.get("ogg/opus" /* OggOpus */),
2836
+ cost: 2,
2837
+ transformer: /* @__PURE__ */ __name((input) => new import_prism_media.default.FFmpeg({
2838
+ args: ["-i", typeof input === "string" ? input : "-", ...FFMPEG_OPUS_ARGUMENTS]
2839
+ }), "transformer")
2840
+ };
2841
+ nodes.get("arbitrary" /* Arbitrary */).addEdge(FFMPEG_OGG_EDGE);
2842
+ nodes.get("ogg/opus" /* OggOpus */).addEdge(FFMPEG_OGG_EDGE);
2843
+ nodes.get("webm/opus" /* WebmOpus */).addEdge(FFMPEG_OGG_EDGE);
2844
+ }
2845
+ return nodes;
2846
+ }
2847
+ __name(initializeNodes, "initializeNodes");
2848
+ function findPath(from, constraints, goal = getNode("opus" /* Opus */), path = [], depth = 5) {
2849
+ if (from === goal && constraints(path)) {
2850
+ return { cost: 0 };
2851
+ } else if (depth === 0) {
2852
+ return { cost: Number.POSITIVE_INFINITY };
2853
+ }
2854
+ let currentBest;
2855
+ for (const edge of from.edges) {
2856
+ if (currentBest && edge.cost > currentBest.cost) continue;
2857
+ const next = findPath(edge.to, constraints, goal, [...path, edge], depth - 1);
2858
+ const cost = edge.cost + next.cost;
2859
+ if (!currentBest || cost < currentBest.cost) {
2860
+ currentBest = { cost, edge, next };
2861
+ }
2862
+ }
2863
+ return currentBest ?? { cost: Number.POSITIVE_INFINITY };
2864
+ }
2865
+ __name(findPath, "findPath");
2866
+ function constructPipeline(step) {
2867
+ const edges = [];
2868
+ let current = step;
2869
+ while (current?.edge) {
2870
+ edges.push(current.edge);
2871
+ current = current.next;
2872
+ }
2873
+ return edges;
2874
+ }
2875
+ __name(constructPipeline, "constructPipeline");
2876
+ function findPipeline(from, constraint) {
2877
+ return constructPipeline(findPath(getNode(from), constraint));
2878
+ }
2879
+ __name(findPipeline, "findPipeline");
2880
+
2881
+ // src/audio/AudioResource.ts
2882
+ var AudioResource = class {
2883
+ static {
2884
+ __name(this, "AudioResource");
2885
+ }
2886
+ /**
2887
+ * An object-mode Readable stream that emits Opus packets. This is what is played by audio players.
2888
+ */
2889
+ playStream;
2890
+ /**
2891
+ * The pipeline used to convert the input stream into a playable format. For example, this may
2892
+ * contain an FFmpeg component for arbitrary inputs, and it may contain a VolumeTransformer component
2893
+ * for resources with inline volume transformation enabled.
2894
+ */
2895
+ edges;
2896
+ /**
2897
+ * Optional metadata that can be used to identify the resource.
2898
+ */
2899
+ metadata;
2900
+ /**
2901
+ * If the resource was created with inline volume transformation enabled, then this will be a
2902
+ * prism-media VolumeTransformer. You can use this to alter the volume of the stream.
2903
+ */
2904
+ volume;
2905
+ /**
2906
+ * If using an Opus encoder to create this audio resource, then this will be a prism-media opus.Encoder.
2907
+ * You can use this to control settings such as bitrate, FEC, PLP.
2908
+ */
2909
+ encoder;
2910
+ /**
2911
+ * The audio player that the resource is subscribed to, if any.
2912
+ */
2913
+ audioPlayer;
2914
+ /**
2915
+ * The playback duration of this audio resource, given in milliseconds.
2916
+ */
2917
+ playbackDuration = 0;
2918
+ /**
2919
+ * Whether or not the stream for this resource has started (data has become readable)
2920
+ */
2921
+ started = false;
2922
+ /**
2923
+ * The number of silence frames to append to the end of the resource's audio stream, to prevent interpolation glitches.
2924
+ */
2925
+ silencePaddingFrames;
2926
+ /**
2927
+ * The number of remaining silence frames to play. If -1, the frames have not yet started playing.
2928
+ */
2929
+ silenceRemaining = -1;
2930
+ constructor(edges, streams, metadata, silencePaddingFrames) {
2931
+ this.edges = edges;
2932
+ this.playStream = streams.length > 1 ? (0, import_node_stream2.pipeline)(streams, noop) : streams[0];
2933
+ this.metadata = metadata;
2934
+ this.silencePaddingFrames = silencePaddingFrames;
2935
+ for (const stream of streams) {
2936
+ if (stream instanceof import_prism_media2.default.VolumeTransformer) {
2937
+ this.volume = stream;
2938
+ } else if (stream instanceof import_prism_media2.default.opus.Encoder) {
2939
+ this.encoder = stream;
2940
+ }
2941
+ }
2942
+ this.playStream.once("readable", () => this.started = true);
2943
+ }
2944
+ /**
2945
+ * Whether this resource is readable. If the underlying resource is no longer readable, this will still return true
2946
+ * while there are silence padding frames left to play.
2947
+ */
2948
+ get readable() {
2949
+ if (this.silenceRemaining === 0) return false;
2950
+ const real = this.playStream.readable;
2951
+ if (!real) {
2952
+ if (this.silenceRemaining === -1) this.silenceRemaining = this.silencePaddingFrames;
2953
+ return this.silenceRemaining !== 0;
2954
+ }
2955
+ return real;
2956
+ }
2957
+ /**
2958
+ * Whether this resource has ended or not.
2959
+ */
2960
+ get ended() {
2961
+ return this.playStream.readableEnded || this.playStream.destroyed || this.silenceRemaining === 0;
2962
+ }
2963
+ /**
2964
+ * Attempts to read an Opus packet from the audio resource. If a packet is available, the playbackDuration
2965
+ * is incremented.
2966
+ *
2967
+ * @remarks
2968
+ * It is advisable to check that the playStream is readable before calling this method. While no runtime
2969
+ * errors will be thrown, you should check that the resource is still available before attempting to
2970
+ * read from it.
2971
+ * @internal
2972
+ */
2973
+ read() {
2974
+ if (this.silenceRemaining === 0) {
2975
+ return null;
2976
+ } else if (this.silenceRemaining > 0) {
2977
+ this.silenceRemaining--;
2978
+ return SILENCE_FRAME;
2979
+ }
2980
+ const packet = this.playStream.read();
2981
+ if (packet) {
2982
+ this.playbackDuration += 20;
2983
+ }
2984
+ return packet;
2985
+ }
2986
+ };
2987
+ var VOLUME_CONSTRAINT = /* @__PURE__ */ __name((path) => path.some((edge) => edge.type === "volume transformer" /* InlineVolume */), "VOLUME_CONSTRAINT");
2988
+ var NO_CONSTRAINT = /* @__PURE__ */ __name(() => true, "NO_CONSTRAINT");
2989
+ function inferStreamType(stream) {
2990
+ if (stream instanceof import_prism_media2.default.opus.Encoder) {
2991
+ return { streamType: "opus" /* Opus */, hasVolume: false };
2992
+ } else if (stream instanceof import_prism_media2.default.opus.Decoder) {
2993
+ return { streamType: "raw" /* Raw */, hasVolume: false };
2994
+ } else if (stream instanceof import_prism_media2.default.VolumeTransformer) {
2995
+ return { streamType: "raw" /* Raw */, hasVolume: true };
2996
+ } else if (stream instanceof import_prism_media2.default.opus.OggDemuxer) {
2997
+ return { streamType: "opus" /* Opus */, hasVolume: false };
2998
+ } else if (stream instanceof import_prism_media2.default.opus.WebmDemuxer) {
2999
+ return { streamType: "opus" /* Opus */, hasVolume: false };
3000
+ }
3001
+ return { streamType: "arbitrary" /* Arbitrary */, hasVolume: false };
3002
+ }
3003
+ __name(inferStreamType, "inferStreamType");
3004
+ function createAudioResource(input, options = {}) {
3005
+ let inputType = options.inputType;
3006
+ let needsInlineVolume = Boolean(options.inlineVolume);
3007
+ if (typeof input === "string") {
3008
+ inputType = "arbitrary" /* Arbitrary */;
3009
+ } else if (inputType === void 0) {
3010
+ const analysis = inferStreamType(input);
3011
+ inputType = analysis.streamType;
3012
+ needsInlineVolume = needsInlineVolume && !analysis.hasVolume;
3013
+ }
3014
+ const transformerPipeline = findPipeline(inputType, needsInlineVolume ? VOLUME_CONSTRAINT : NO_CONSTRAINT);
3015
+ if (transformerPipeline.length === 0) {
3016
+ if (typeof input === "string") throw new Error(`Invalid pipeline constructed for string resource '${input}'`);
3017
+ return new AudioResource(
3018
+ [],
3019
+ [input],
3020
+ options.metadata ?? null,
3021
+ options.silencePaddingFrames ?? 5
3022
+ );
3023
+ }
3024
+ const streams = transformerPipeline.map((edge) => edge.transformer(input));
3025
+ if (typeof input !== "string") streams.unshift(input);
3026
+ return new AudioResource(
3027
+ transformerPipeline,
3028
+ streams,
3029
+ options.metadata ?? null,
3030
+ options.silencePaddingFrames ?? 5
3031
+ );
3032
+ }
3033
+ __name(createAudioResource, "createAudioResource");
3034
+
3035
+ // src/util/generateDependencyReport.ts
3036
+ var import_node_crypto3 = require("crypto");
3037
+ var import_node_path = require("path");
3038
+ var import_prism_media3 = __toESM(require("prism-media"));
3039
+ function findPackageJSON(dir, packageName, depth) {
3040
+ if (depth === 0) return void 0;
3041
+ const attemptedPath = (0, import_node_path.resolve)(dir, "./package.json");
3042
+ try {
3043
+ const pkg = require(attemptedPath);
3044
+ if (pkg.name !== packageName) throw new Error("package.json does not match");
3045
+ return pkg;
3046
+ } catch {
3047
+ return findPackageJSON((0, import_node_path.resolve)(dir, ".."), packageName, depth - 1);
3048
+ }
3049
+ }
3050
+ __name(findPackageJSON, "findPackageJSON");
3051
+ function version(name) {
3052
+ try {
3053
+ if (name === "@discordjs/voice") {
3054
+ return "0.19.2";
3055
+ }
3056
+ const pkg = findPackageJSON((0, import_node_path.dirname)(require.resolve(name)), name, 3);
3057
+ return pkg?.version ?? "not found";
3058
+ } catch {
3059
+ return "not found";
3060
+ }
3061
+ }
3062
+ __name(version, "version");
3063
+ function generateDependencyReport() {
3064
+ const report = [];
3065
+ const addVersion = /* @__PURE__ */ __name((name) => report.push(`- ${name}: ${version(name)}`), "addVersion");
3066
+ report.push("Core Dependencies");
3067
+ addVersion("@discordjs/voice");
3068
+ addVersion("prism-media");
3069
+ report.push("");
3070
+ report.push("Opus Libraries");
3071
+ addVersion("@discordjs/opus");
3072
+ addVersion("opusscript");
3073
+ report.push("");
3074
+ report.push("Encryption Libraries");
3075
+ report.push(`- native crypto support for aes-256-gcm: ${(0, import_node_crypto3.getCiphers)().includes("aes-256-gcm") ? "yes" : "no"}`);
3076
+ addVersion("sodium-native");
3077
+ addVersion("sodium");
3078
+ addVersion("libsodium-wrappers");
3079
+ addVersion("@stablelib/xchacha20poly1305");
3080
+ addVersion("@noble/ciphers");
3081
+ report.push("");
3082
+ report.push("DAVE Libraries");
3083
+ addVersion("@snazzah/davey");
3084
+ report.push("");
3085
+ report.push("FFmpeg");
3086
+ try {
3087
+ const info = import_prism_media3.default.FFmpeg.getInfo();
3088
+ report.push(`- version: ${info.version}`);
3089
+ report.push(`- libopus: ${info.output.includes("--enable-libopus") ? "yes" : "no"}`);
3090
+ } catch {
3091
+ report.push("- not found");
3092
+ }
3093
+ return ["-".repeat(50), ...report, "-".repeat(50)].join("\n");
3094
+ }
3095
+ __name(generateDependencyReport, "generateDependencyReport");
3096
+
3097
+ // src/util/entersState.ts
3098
+ var import_node_events9 = require("events");
3099
+
3100
+ // src/util/abortAfter.ts
3101
+ function abortAfter(delay) {
3102
+ const ac = new AbortController();
3103
+ const timeout = setTimeout(() => ac.abort(), delay);
3104
+ ac.signal.addEventListener("abort", () => clearTimeout(timeout));
3105
+ return [ac, ac.signal];
3106
+ }
3107
+ __name(abortAfter, "abortAfter");
3108
+
3109
+ // src/util/entersState.ts
3110
+ async function entersState(target, status, timeoutOrSignal) {
3111
+ if (target.state.status !== status) {
3112
+ const [ac, signal] = typeof timeoutOrSignal === "number" ? abortAfter(timeoutOrSignal) : [void 0, timeoutOrSignal];
3113
+ try {
3114
+ await (0, import_node_events9.once)(target, status, { signal });
3115
+ } finally {
3116
+ ac?.abort();
3117
+ }
3118
+ }
3119
+ return target;
3120
+ }
3121
+ __name(entersState, "entersState");
3122
+
3123
+ // src/util/demuxProbe.ts
3124
+ var import_node_buffer8 = require("buffer");
3125
+ var import_node_process2 = __toESM(require("process"));
3126
+ var import_node_stream3 = require("stream");
3127
+ var import_prism_media4 = __toESM(require("prism-media"));
3128
+ function validateDiscordOpusHead(opusHead) {
3129
+ const channels = opusHead.readUInt8(9);
3130
+ const sampleRate = opusHead.readUInt32LE(12);
3131
+ return channels === 2 && sampleRate === 48e3;
3132
+ }
3133
+ __name(validateDiscordOpusHead, "validateDiscordOpusHead");
3134
+ async function demuxProbe(stream, probeSize = 1024, validator = validateDiscordOpusHead) {
3135
+ return new Promise((resolve2, reject) => {
3136
+ if (stream.readableObjectMode) {
3137
+ reject(new Error("Cannot probe a readable stream in object mode"));
3138
+ return;
3139
+ }
3140
+ if (stream.readableEnded) {
3141
+ reject(new Error("Cannot probe a stream that has ended"));
3142
+ return;
3143
+ }
3144
+ let readBuffer = import_node_buffer8.Buffer.alloc(0);
3145
+ let resolved;
3146
+ const finish = /* @__PURE__ */ __name((type) => {
3147
+ stream.off("data", onData);
3148
+ stream.off("close", onClose);
3149
+ stream.off("end", onClose);
3150
+ stream.pause();
3151
+ resolved = type;
3152
+ if (stream.readableEnded) {
3153
+ resolve2({
3154
+ stream: import_node_stream3.Readable.from(readBuffer),
3155
+ type
3156
+ });
3157
+ } else {
3158
+ if (readBuffer.length > 0) {
3159
+ stream.push(readBuffer);
3160
+ }
3161
+ resolve2({
3162
+ stream,
3163
+ type
3164
+ });
3165
+ }
3166
+ }, "finish");
3167
+ const foundHead = /* @__PURE__ */ __name((type) => (head) => {
3168
+ if (validator(head)) {
3169
+ finish(type);
3170
+ }
3171
+ }, "foundHead");
3172
+ const webm = new import_prism_media4.default.opus.WebmDemuxer();
3173
+ webm.once("error", noop);
3174
+ webm.on("head", foundHead("webm/opus" /* WebmOpus */));
3175
+ const ogg = new import_prism_media4.default.opus.OggDemuxer();
3176
+ ogg.once("error", noop);
3177
+ ogg.on("head", foundHead("ogg/opus" /* OggOpus */));
3178
+ const onClose = /* @__PURE__ */ __name(() => {
3179
+ if (!resolved) {
3180
+ finish("arbitrary" /* Arbitrary */);
3181
+ }
3182
+ }, "onClose");
3183
+ const onData = /* @__PURE__ */ __name((buffer) => {
3184
+ readBuffer = import_node_buffer8.Buffer.concat([readBuffer, buffer]);
3185
+ webm.write(buffer);
3186
+ ogg.write(buffer);
3187
+ if (readBuffer.length >= probeSize) {
3188
+ stream.off("data", onData);
3189
+ stream.pause();
3190
+ import_node_process2.default.nextTick(onClose);
3191
+ }
3192
+ }, "onData");
3193
+ stream.once("error", reject);
3194
+ stream.on("data", onData);
3195
+ stream.once("close", onClose);
3196
+ stream.once("end", onClose);
3197
+ });
3198
+ }
3199
+ __name(demuxProbe, "demuxProbe");
3200
+
3201
+ // src/index.ts
3202
+ var version2 = "0.19.2";
3203
+ // Annotate the CommonJS export names for ESM import in node:
3204
+ 0 && (module.exports = {
3205
+ AudioPlayer,
3206
+ AudioPlayerError,
3207
+ AudioPlayerStatus,
3208
+ AudioReceiveStream,
3209
+ AudioResource,
3210
+ DAVESession,
3211
+ EndBehaviorType,
3212
+ Networking,
3213
+ NetworkingStatusCode,
3214
+ NoSubscriberBehavior,
3215
+ Node,
3216
+ PlayerSubscription,
3217
+ RTP_OPUS_PAYLOAD_TYPE,
3218
+ SSRCMap,
3219
+ SpeakingMap,
3220
+ StreamType,
3221
+ TransformerType,
3222
+ VoiceConnection,
3223
+ VoiceConnectionDisconnectReason,
3224
+ VoiceConnectionStatus,
3225
+ VoiceReceiver,
3226
+ VoiceUDPSocket,
3227
+ VoiceWebSocket,
3228
+ createAudioPlayer,
3229
+ createAudioResource,
3230
+ createDefaultAudioReceiveStreamOptions,
3231
+ demuxProbe,
3232
+ entersState,
3233
+ generateDependencyReport,
3234
+ getGroups,
3235
+ getVoiceConnection,
3236
+ getVoiceConnections,
3237
+ joinVoiceChannel,
3238
+ validateDiscordOpusHead,
3239
+ version
3240
+ });
3241
+ //# sourceMappingURL=index.js.map