@openclaw/discord 2026.5.20-beta.2 → 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.
- package/dist/{account-inspect-CcJ-bl80.js → account-inspect-C4sJZNbI.js} +1 -1
- package/dist/account-inspect-api.js +1 -1
- package/dist/{accounts-C2TOAmpo.js → accounts-dXTfmnSZ.js} +1 -1
- package/dist/action-runtime-api.js +1 -1
- package/dist/api.js +13 -13
- package/dist/{approval-handler.runtime-hi6B0JCi.js → approval-handler.runtime-CyGGSiMH.js} +3 -3
- package/dist/{audit-DJIvRRzY.js → audit-DkBvCBsG.js} +3 -3
- package/dist/{channel-BswuOAN6.js → channel-LszCFESI.js} +16 -16
- package/dist/{channel-actions-CSepY2Kq.js → channel-actions-DDwcJy6_.js} +4 -4
- package/dist/{channel-actions.runtime-CSjcHZNT.js → channel-actions.runtime-CnwxnT58.js} +4 -4
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-C0rcLtB9.js → channel.setup-rrsenw1h.js} +4 -4
- package/dist/{components-DDPGekgY.js → components-CE63uOrc.js} +3 -0
- package/dist/{config-schema-BGgg8U6A.js → config-schema-Kuf9IrLg.js} +4 -0
- package/dist/contract-api.js +2 -2
- package/dist/{conversation-identity-CAyt5wzy.js → conversation-identity-jwZ56ing.js} +2 -2
- package/dist/{directory-config-BcWtq4k8.js → directory-config-Do_NA_H8.js} +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-5HHCCe5Q.js → directory-live-DekuEEl8.js} +1 -1
- package/dist/{doctor-BLcVWv42.js → doctor-DmPhrTLR.js} +3 -3
- package/dist/{handle-action.guild-admin-DX2D9qkG.js → handle-action.guild-admin-09HC30Oh.js} +1 -1
- package/dist/{manager.runtime-Dq0mc5K0.js → manager.runtime-DPtx2pxB.js} +3 -3
- package/dist/{message-handler-wQJd4Peh.js → message-handler-miSYjwxl.js} +5 -5
- package/dist/{message-handler.preflight-ANdoLbtA.js → message-handler.preflight-DiLKljGS.js} +8 -8
- package/dist/{message-handler.process-DG4qm0sQ.js → message-handler.process-BKvQTmVP.js} +8 -8
- package/dist/{message-utils-Bw-wDr8G.js → message-utils-U-ax3LTX.js} +1 -1
- package/dist/{outbound-adapter-TGbHliO_.js → outbound-adapter-CF4KuNM6.js} +7 -6
- package/dist/{probe-CRWV5COl.js → probe-DfIM7zSY.js} +1 -1
- package/dist/{probe.runtime-h9mEzmMs.js → probe.runtime-DoXDN3rt.js} +1 -1
- package/dist/{provider-CzKMDsSE.js → provider-Bv9Sx9lq.js} +142 -23
- package/dist/{provider-session.runtime-D0XbJS5X.js → provider-session.runtime-BbEz2CZt.js} +3 -3
- package/dist/provider.runtime-DKBGMsC7.js +2 -0
- package/dist/{resolve-allowlist-common-Bec0FONA.js → resolve-allowlist-common-QzX-w4-_.js} +1 -1
- package/dist/{resolve-channels-DcWaMURg.js → resolve-channels-BDjtLmjX.js} +1 -1
- package/dist/{resolve-users-TQPLKDeV.js → resolve-users-BeaV5INm.js} +1 -1
- package/dist/{runtime-DP_0_5a0.js → runtime-DxQPyNY7.js} +214 -7
- package/dist/runtime-api.actions.js +2 -2
- package/dist/runtime-api.js +19 -19
- package/dist/runtime-api.lookup.js +5 -5
- package/dist/runtime-api.monitor-Wt6Qf0SL.js +5 -0
- package/dist/runtime-api.monitor.js +4 -4
- package/dist/runtime-api.send.js +5 -5
- package/dist/runtime-api.threads.js +3 -3
- package/dist/{send-CEAtV0qd.js → send-BjHCUrvn.js} +9 -5
- package/dist/{send.components-sY6aQV0K.js → send.components-BcCQ27av.js} +42 -8
- package/dist/{send.outbound-1vG9pOh2.js → send.outbound-CyvhKilL.js} +3 -3
- package/dist/{send.shared-D4clao4K.js → send.shared-C3uAu6bc.js} +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-mo-r7V5W.js → shared-CgAcqTsg.js} +4 -4
- package/dist/{subagent-hooks-D65kqOor.js → subagent-hooks-DehrqnoK.js} +2 -2
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/{target-resolver-BpGdnBIZ.js → target-resolver-squYahVm.js} +2 -2
- package/dist/{targets-DMdVjHOU.js → targets-BeetkGO0.js} +1 -1
- package/dist/test-api.js +3 -3
- package/dist/{thread-bindings-BQz8z6MR.js → thread-bindings-BD9jKFo5.js} +3 -3
- package/dist/{thread-bindings.discord-api-Ddalj9wo.js → thread-bindings.discord-api-D2EF_9XS.js} +3 -3
- package/dist/{thread-bindings.manager-I5f-Oykv.js → thread-bindings.manager-AEGKdE3O.js} +2 -2
- package/node_modules/@discordjs/voice/LICENSE +191 -0
- package/node_modules/@discordjs/voice/README.md +120 -0
- package/node_modules/@discordjs/voice/dist/index.d.mts +1930 -0
- package/node_modules/@discordjs/voice/dist/index.d.ts +1930 -0
- package/node_modules/@discordjs/voice/dist/index.js +3241 -0
- package/node_modules/@discordjs/voice/dist/index.js.map +1 -0
- package/node_modules/@discordjs/voice/dist/index.mjs +3180 -0
- package/node_modules/@discordjs/voice/dist/index.mjs.map +1 -0
- package/node_modules/@discordjs/voice/package.json +100 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +299 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +25092 -0
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +294 -0
- package/node_modules/@napi-rs/wasm-runtime/package.json +70 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +15 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.js +8 -0
- package/node_modules/@snazzah/davey/README.md +58 -0
- package/node_modules/@snazzah/davey/browser.js +1 -0
- package/node_modules/@snazzah/davey/index.d.ts +260 -0
- package/node_modules/@snazzah/davey/index.js +523 -0
- package/node_modules/@snazzah/davey/package.json +140 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/package.json +40 -0
- package/node_modules/@snazzah/davey-android-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
- package/node_modules/@snazzah/davey-android-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-freebsd-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
- package/node_modules/@snazzah/davey-freebsd-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/README.md +3 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi-browser.js +71 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi.cjs +123 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/package.json +45 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker-browser.mjs +32 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker.mjs +63 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +40 -0
- package/node_modules/@tybys/wasm-util/README.md +193 -0
- package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2920 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2920 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2942 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1586 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1581 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
- package/node_modules/@tybys/wasm-util/package.json +58 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +59 -0
- package/node_modules/@types/node/assert.d.ts +950 -0
- package/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@types/node/buffer.d.ts +1765 -0
- package/node_modules/@types/node/child_process.d.ts +1366 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@types/node/crypto.d.ts +4058 -0
- package/node_modules/@types/node/dgram.d.ts +537 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
- package/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@types/node/fs/promises.d.ts +1468 -0
- package/node_modules/@types/node/fs.d.ts +4780 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2147 -0
- package/node_modules/@types/node/http2.d.ts +2485 -0
- package/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@types/node/index.d.ts +117 -0
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +264 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@types/node/module.d.ts +755 -0
- package/node_modules/@types/node/net.d.ts +970 -0
- package/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@types/node/perf_hooks.d.ts +612 -0
- package/node_modules/@types/node/process.d.ts +2204 -0
- package/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@types/node/quic.d.ts +897 -0
- package/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@types/node/readline.d.ts +507 -0
- package/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@types/node/sqlite.d.ts +1068 -0
- package/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +300 -0
- package/node_modules/@types/node/stream.d.ts +1774 -0
- package/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +2279 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@types/node/tls.d.ts +1193 -0
- package/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +119 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
- package/node_modules/@types/node/tty.d.ts +225 -0
- package/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1677 -0
- package/node_modules/@types/node/v8.d.ts +980 -0
- package/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +671 -0
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +589 -0
- package/node_modules/@types/ws/LICENSE +21 -0
- package/node_modules/@types/ws/README.md +15 -0
- package/node_modules/@types/ws/index.d.mts +451 -0
- package/node_modules/@types/ws/index.d.ts +445 -0
- package/node_modules/@types/ws/package.json +72 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +10 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +37 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +37 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +146 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/discord-api-types/CHANGELOG.md +2442 -0
- package/node_modules/discord-api-types/LICENSE +21 -0
- package/node_modules/discord-api-types/README.md +102 -0
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +906 -0
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map +1 -0
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js +3 -0
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js.map +1 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts +908 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js +3 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js.map +1 -0
- package/node_modules/discord-api-types/gateway/common.d.ts +9 -0
- package/node_modules/discord-api-types/gateway/common.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/common.js +3 -0
- package/node_modules/discord-api-types/gateway/common.js.map +1 -0
- package/node_modules/discord-api-types/gateway/index.d.ts +2 -0
- package/node_modules/discord-api-types/gateway/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/index.js +20 -0
- package/node_modules/discord-api-types/gateway/index.js.map +1 -0
- package/node_modules/discord-api-types/gateway/index.mjs +9 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts +2054 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/v10.js +277 -0
- package/node_modules/discord-api-types/gateway/v10.js.map +1 -0
- package/node_modules/discord-api-types/gateway/v10.mjs +9 -0
- package/node_modules/discord-api-types/gateway/v6.d.ts +658 -0
- package/node_modules/discord-api-types/gateway/v6.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/v6.js +158 -0
- package/node_modules/discord-api-types/gateway/v6.js.map +1 -0
- package/node_modules/discord-api-types/gateway/v6.mjs +10 -0
- package/node_modules/discord-api-types/gateway/v8.d.ts +1575 -0
- package/node_modules/discord-api-types/gateway/v8.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/v8.js +231 -0
- package/node_modules/discord-api-types/gateway/v8.js.map +1 -0
- package/node_modules/discord-api-types/gateway/v8.mjs +8 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts +2053 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -0
- package/node_modules/discord-api-types/gateway/v9.js +276 -0
- package/node_modules/discord-api-types/gateway/v9.js.map +1 -0
- package/node_modules/discord-api-types/gateway/v9.mjs +9 -0
- package/node_modules/discord-api-types/globals.d.ts +102 -0
- package/node_modules/discord-api-types/globals.d.ts.map +1 -0
- package/node_modules/discord-api-types/globals.js +105 -0
- package/node_modules/discord-api-types/globals.js.map +1 -0
- package/node_modules/discord-api-types/globals.mjs +4 -0
- package/node_modules/discord-api-types/package.json +215 -0
- package/node_modules/discord-api-types/payloads/common.d.ts +344 -0
- package/node_modules/discord-api-types/payloads/common.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/common.js +310 -0
- package/node_modules/discord-api-types/payloads/common.js.map +1 -0
- package/node_modules/discord-api-types/payloads/index.d.ts +2 -0
- package/node_modules/discord-api-types/payloads/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/index.js +20 -0
- package/node_modules/discord-api-types/payloads/index.js.map +1 -0
- package/node_modules/discord-api-types/payloads/index.mjs +101 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts +68 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js +18 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts +9 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts +55 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js +21 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts +194 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js +89 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts +11 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts +230 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts +42 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts +77 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts +4 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js +3 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts +124 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js +63 -0
- package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/application.d.ts +387 -0
- package/node_modules/discord-api-types/payloads/v10/application.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/application.js +152 -0
- package/node_modules/discord-api-types/payloads/v10/application.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts +694 -0
- package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/auditLog.js +85 -0
- package/node_modules/discord-api-types/payloads/v10/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts +222 -0
- package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/autoModeration.js +88 -0
- package/node_modules/discord-api-types/payloads/v10/autoModeration.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts +653 -0
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/channel.js +219 -0
- package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/emoji.d.ts +79 -0
- package/node_modules/discord-api-types/payloads/v10/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/emoji.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/emoji.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/gateway.d.ts +456 -0
- package/node_modules/discord-api-types/payloads/v10/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/gateway.js +103 -0
- package/node_modules/discord-api-types/payloads/v10/gateway.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/guild.d.ts +1223 -0
- package/node_modules/discord-api-types/payloads/v10/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/guild.js +403 -0
- package/node_modules/discord-api-types/payloads/v10/guild.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts +244 -0
- package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js +74 -0
- package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/index.d.ts +25 -0
- package/node_modules/discord-api-types/payloads/v10/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/index.js +37 -0
- package/node_modules/discord-api-types/payloads/v10/index.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/index.mjs +101 -0
- package/node_modules/discord-api-types/payloads/v10/interactions.d.ts +25 -0
- package/node_modules/discord-api-types/payloads/v10/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/interactions.js +19 -0
- package/node_modules/discord-api-types/payloads/v10/interactions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/invite.d.ts +132 -0
- package/node_modules/discord-api-types/payloads/v10/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/invite.js +31 -0
- package/node_modules/discord-api-types/payloads/v10/invite.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/message.d.ts +2155 -0
- package/node_modules/discord-api-types/payloads/v10/message.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/message.js +590 -0
- package/node_modules/discord-api-types/payloads/v10/message.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/monetization.d.ts +216 -0
- package/node_modules/discord-api-types/payloads/v10/monetization.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/monetization.js +101 -0
- package/node_modules/discord-api-types/payloads/v10/monetization.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts +144 -0
- package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/oauth2.js +148 -0
- package/node_modules/discord-api-types/payloads/v10/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/permissions.d.ts +124 -0
- package/node_modules/discord-api-types/payloads/v10/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/permissions.js +17 -0
- package/node_modules/discord-api-types/payloads/v10/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/poll.d.ts +111 -0
- package/node_modules/discord-api-types/payloads/v10/poll.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/poll.js +17 -0
- package/node_modules/discord-api-types/payloads/v10/poll.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts +43 -0
- package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/soundboard.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/soundboard.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts +82 -0
- package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/stageInstance.js +21 -0
- package/node_modules/discord-api-types/payloads/v10/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/sticker.d.ts +125 -0
- package/node_modules/discord-api-types/payloads/v10/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/sticker.js +31 -0
- package/node_modules/discord-api-types/payloads/v10/sticker.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/teams.d.ts +79 -0
- package/node_modules/discord-api-types/payloads/v10/teams.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/teams.js +24 -0
- package/node_modules/discord-api-types/payloads/v10/teams.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/template.d.ts +64 -0
- package/node_modules/discord-api-types/payloads/v10/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/template.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/template.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/user.d.ts +430 -0
- package/node_modules/discord-api-types/payloads/v10/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/user.js +191 -0
- package/node_modules/discord-api-types/payloads/v10/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/voice.d.ts +101 -0
- package/node_modules/discord-api-types/payloads/v10/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/voice.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/voice.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/webhook.d.ts +190 -0
- package/node_modules/discord-api-types/payloads/v10/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/webhook.js +69 -0
- package/node_modules/discord-api-types/payloads/v10/webhook.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts +469 -0
- package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/auditLog.js +58 -0
- package/node_modules/discord-api-types/payloads/v6/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/channel.d.ts +339 -0
- package/node_modules/discord-api-types/payloads/v6/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/channel.js +94 -0
- package/node_modules/discord-api-types/payloads/v6/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/emoji.d.ts +27 -0
- package/node_modules/discord-api-types/payloads/v6/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/emoji.js +6 -0
- package/node_modules/discord-api-types/payloads/v6/emoji.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/gateway.d.ts +149 -0
- package/node_modules/discord-api-types/payloads/v6/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/gateway.js +45 -0
- package/node_modules/discord-api-types/payloads/v6/gateway.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/guild.d.ts +310 -0
- package/node_modules/discord-api-types/payloads/v6/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/guild.js +118 -0
- package/node_modules/discord-api-types/payloads/v6/guild.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/index.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v6/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/index.js +29 -0
- package/node_modules/discord-api-types/payloads/v6/index.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/index.mjs +30 -0
- package/node_modules/discord-api-types/payloads/v6/invite.d.ts +42 -0
- package/node_modules/discord-api-types/payloads/v6/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/invite.js +16 -0
- package/node_modules/discord-api-types/payloads/v6/invite.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts +28 -0
- package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/oauth2.js +6 -0
- package/node_modules/discord-api-types/payloads/v6/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/permissions.d.ts +75 -0
- package/node_modules/discord-api-types/payloads/v6/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/permissions.js +56 -0
- package/node_modules/discord-api-types/payloads/v6/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/teams.d.ts +36 -0
- package/node_modules/discord-api-types/payloads/v6/teams.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/teams.js +17 -0
- package/node_modules/discord-api-types/payloads/v6/teams.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/user.d.ts +79 -0
- package/node_modules/discord-api-types/payloads/v6/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/user.js +48 -0
- package/node_modules/discord-api-types/payloads/v6/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/voice.d.ts +37 -0
- package/node_modules/discord-api-types/payloads/v6/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/voice.js +6 -0
- package/node_modules/discord-api-types/payloads/v6/voice.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/webhook.d.ts +32 -0
- package/node_modules/discord-api-types/payloads/v6/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v6/webhook.js +15 -0
- package/node_modules/discord-api-types/payloads/v6/webhook.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts +12 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts +28 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts +11 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts +15 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts +27 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +12 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts +27 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts +12 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts +28 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js +23 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts +12 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts +90 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js +29 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts +102 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts +11 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts +53 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js +14 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts +112 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js +32 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts +116 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts +43 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts +48 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts +7 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js +3 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts +138 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js +53 -0
- package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/application.d.ts +134 -0
- package/node_modules/discord-api-types/payloads/v8/application.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/application.js +28 -0
- package/node_modules/discord-api-types/payloads/v8/application.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts +637 -0
- package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/auditLog.js +67 -0
- package/node_modules/discord-api-types/payloads/v8/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/channel.d.ts +1268 -0
- package/node_modules/discord-api-types/payloads/v8/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/channel.js +253 -0
- package/node_modules/discord-api-types/payloads/v8/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/emoji.d.ts +53 -0
- package/node_modules/discord-api-types/payloads/v8/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/emoji.js +6 -0
- package/node_modules/discord-api-types/payloads/v8/emoji.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/gateway.d.ts +332 -0
- package/node_modules/discord-api-types/payloads/v8/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/gateway.js +79 -0
- package/node_modules/discord-api-types/payloads/v8/gateway.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/guild.d.ts +1001 -0
- package/node_modules/discord-api-types/payloads/v8/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/guild.js +264 -0
- package/node_modules/discord-api-types/payloads/v8/guild.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts +163 -0
- package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js +39 -0
- package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/index.d.ts +20 -0
- package/node_modules/discord-api-types/payloads/v8/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/index.js +36 -0
- package/node_modules/discord-api-types/payloads/v8/index.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/index.mjs +51 -0
- package/node_modules/discord-api-types/payloads/v8/interactions.d.ts +31 -0
- package/node_modules/discord-api-types/payloads/v8/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/interactions.js +24 -0
- package/node_modules/discord-api-types/payloads/v8/interactions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/invite.d.ts +114 -0
- package/node_modules/discord-api-types/payloads/v8/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/invite.js +17 -0
- package/node_modules/discord-api-types/payloads/v8/invite.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts +117 -0
- package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/oauth2.js +121 -0
- package/node_modules/discord-api-types/payloads/v8/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/permissions.d.ts +77 -0
- package/node_modules/discord-api-types/payloads/v8/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/permissions.js +6 -0
- package/node_modules/discord-api-types/payloads/v8/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts +76 -0
- package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/stageInstance.js +20 -0
- package/node_modules/discord-api-types/payloads/v8/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/sticker.d.ts +133 -0
- package/node_modules/discord-api-types/payloads/v8/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/sticker.js +34 -0
- package/node_modules/discord-api-types/payloads/v8/sticker.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/teams.d.ts +69 -0
- package/node_modules/discord-api-types/payloads/v8/teams.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/teams.js +17 -0
- package/node_modules/discord-api-types/payloads/v8/teams.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/template.d.ts +68 -0
- package/node_modules/discord-api-types/payloads/v8/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/template.js +6 -0
- package/node_modules/discord-api-types/payloads/v8/template.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/user.d.ts +228 -0
- package/node_modules/discord-api-types/payloads/v8/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/user.js +108 -0
- package/node_modules/discord-api-types/payloads/v8/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/voice.d.ts +94 -0
- package/node_modules/discord-api-types/payloads/v8/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/voice.js +6 -0
- package/node_modules/discord-api-types/payloads/v8/voice.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/webhook.d.ts +82 -0
- package/node_modules/discord-api-types/payloads/v8/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v8/webhook.js +25 -0
- package/node_modules/discord-api-types/payloads/v8/webhook.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts +68 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js +18 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts +9 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts +55 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js +21 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts +192 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js +89 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts +11 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts +233 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/base.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/base.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts +42 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts +77 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts +4 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js +3 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts +124 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js +63 -0
- package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/application.d.ts +387 -0
- package/node_modules/discord-api-types/payloads/v9/application.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/application.js +152 -0
- package/node_modules/discord-api-types/payloads/v9/application.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts +694 -0
- package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/auditLog.js +85 -0
- package/node_modules/discord-api-types/payloads/v9/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts +222 -0
- package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/autoModeration.js +88 -0
- package/node_modules/discord-api-types/payloads/v9/autoModeration.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts +656 -0
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/channel.js +219 -0
- package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/emoji.d.ts +79 -0
- package/node_modules/discord-api-types/payloads/v9/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/emoji.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/emoji.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/gateway.d.ts +444 -0
- package/node_modules/discord-api-types/payloads/v9/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/gateway.js +103 -0
- package/node_modules/discord-api-types/payloads/v9/gateway.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/guild.d.ts +1215 -0
- package/node_modules/discord-api-types/payloads/v9/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/guild.js +395 -0
- package/node_modules/discord-api-types/payloads/v9/guild.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts +244 -0
- package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js +74 -0
- package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/index.d.ts +25 -0
- package/node_modules/discord-api-types/payloads/v9/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/index.js +37 -0
- package/node_modules/discord-api-types/payloads/v9/index.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/index.mjs +101 -0
- package/node_modules/discord-api-types/payloads/v9/interactions.d.ts +25 -0
- package/node_modules/discord-api-types/payloads/v9/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/interactions.js +19 -0
- package/node_modules/discord-api-types/payloads/v9/interactions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/invite.d.ts +132 -0
- package/node_modules/discord-api-types/payloads/v9/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/invite.js +31 -0
- package/node_modules/discord-api-types/payloads/v9/invite.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/message.d.ts +2151 -0
- package/node_modules/discord-api-types/payloads/v9/message.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/message.js +590 -0
- package/node_modules/discord-api-types/payloads/v9/message.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/monetization.d.ts +216 -0
- package/node_modules/discord-api-types/payloads/v9/monetization.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/monetization.js +101 -0
- package/node_modules/discord-api-types/payloads/v9/monetization.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts +132 -0
- package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/oauth2.js +136 -0
- package/node_modules/discord-api-types/payloads/v9/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/permissions.d.ts +124 -0
- package/node_modules/discord-api-types/payloads/v9/permissions.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/permissions.js +17 -0
- package/node_modules/discord-api-types/payloads/v9/permissions.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/poll.d.ts +111 -0
- package/node_modules/discord-api-types/payloads/v9/poll.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/poll.js +17 -0
- package/node_modules/discord-api-types/payloads/v9/poll.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts +43 -0
- package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/soundboard.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/soundboard.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts +82 -0
- package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/stageInstance.js +21 -0
- package/node_modules/discord-api-types/payloads/v9/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/sticker.d.ts +125 -0
- package/node_modules/discord-api-types/payloads/v9/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/sticker.js +31 -0
- package/node_modules/discord-api-types/payloads/v9/sticker.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/teams.d.ts +79 -0
- package/node_modules/discord-api-types/payloads/v9/teams.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/teams.js +24 -0
- package/node_modules/discord-api-types/payloads/v9/teams.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/template.d.ts +64 -0
- package/node_modules/discord-api-types/payloads/v9/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/template.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/template.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/user.d.ts +430 -0
- package/node_modules/discord-api-types/payloads/v9/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/user.js +191 -0
- package/node_modules/discord-api-types/payloads/v9/user.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/voice.d.ts +98 -0
- package/node_modules/discord-api-types/payloads/v9/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/voice.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/voice.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/webhook.d.ts +190 -0
- package/node_modules/discord-api-types/payloads/v9/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/webhook.js +69 -0
- package/node_modules/discord-api-types/payloads/v9/webhook.js.map +1 -0
- package/node_modules/discord-api-types/rest/common.d.ts +307 -0
- package/node_modules/discord-api-types/rest/common.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/common.js +311 -0
- package/node_modules/discord-api-types/rest/common.js.map +1 -0
- package/node_modules/discord-api-types/rest/index.d.ts +2 -0
- package/node_modules/discord-api-types/rest/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/index.js +20 -0
- package/node_modules/discord-api-types/rest/index.js.map +1 -0
- package/node_modules/discord-api-types/rest/index.mjs +15 -0
- package/node_modules/discord-api-types/rest/v10/application.d.ts +31 -0
- package/node_modules/discord-api-types/rest/v10/application.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/application.js +3 -0
- package/node_modules/discord-api-types/rest/v10/application.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/auditLog.d.ts +31 -0
- package/node_modules/discord-api-types/rest/v10/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/auditLog.js +3 -0
- package/node_modules/discord-api-types/rest/v10/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts +68 -0
- package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/autoModeration.js +3 -0
- package/node_modules/discord-api-types/rest/v10/autoModeration.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/channel.d.ts +764 -0
- package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/channel.js +18 -0
- package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/emoji.d.ts +85 -0
- package/node_modules/discord-api-types/rest/v10/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/emoji.js +3 -0
- package/node_modules/discord-api-types/rest/v10/emoji.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/gateway.d.ts +10 -0
- package/node_modules/discord-api-types/rest/v10/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/gateway.js +3 -0
- package/node_modules/discord-api-types/rest/v10/gateway.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/guild.d.ts +1062 -0
- package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/guild.js +3 -0
- package/node_modules/discord-api-types/rest/v10/guild.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts +124 -0
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js +3 -0
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/index.d.ts +87 -0
- package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/index.js +1286 -0
- package/node_modules/discord-api-types/rest/v10/index.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/index.mjs +15 -0
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts +290 -0
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/interactions.js +3 -0
- package/node_modules/discord-api-types/rest/v10/interactions.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/invite.d.ts +28 -0
- package/node_modules/discord-api-types/rest/v10/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/invite.js +3 -0
- package/node_modules/discord-api-types/rest/v10/invite.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/monetization.d.ts +130 -0
- package/node_modules/discord-api-types/rest/v10/monetization.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/monetization.js +12 -0
- package/node_modules/discord-api-types/rest/v10/monetization.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/oauth2.d.ts +193 -0
- package/node_modules/discord-api-types/rest/v10/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/oauth2.js +3 -0
- package/node_modules/discord-api-types/rest/v10/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/poll.d.ts +50 -0
- package/node_modules/discord-api-types/rest/v10/poll.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/poll.js +3 -0
- package/node_modules/discord-api-types/rest/v10/poll.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/soundboard.d.ts +98 -0
- package/node_modules/discord-api-types/rest/v10/soundboard.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/soundboard.js +3 -0
- package/node_modules/discord-api-types/rest/v10/soundboard.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts +59 -0
- package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/stageInstance.js +3 -0
- package/node_modules/discord-api-types/rest/v10/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/sticker.d.ts +85 -0
- package/node_modules/discord-api-types/rest/v10/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/sticker.js +3 -0
- package/node_modules/discord-api-types/rest/v10/sticker.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/template.d.ts +65 -0
- package/node_modules/discord-api-types/rest/v10/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/template.js +3 -0
- package/node_modules/discord-api-types/rest/v10/template.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/user.d.ts +122 -0
- package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/user.js +3 -0
- package/node_modules/discord-api-types/rest/v10/user.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/voice.d.ts +57 -0
- package/node_modules/discord-api-types/rest/v10/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/voice.js +3 -0
- package/node_modules/discord-api-types/rest/v10/voice.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/webhook.d.ts +275 -0
- package/node_modules/discord-api-types/rest/v10/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/webhook.js +3 -0
- package/node_modules/discord-api-types/rest/v10/webhook.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/auditLog.d.ts +17 -0
- package/node_modules/discord-api-types/rest/v6/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/auditLog.js +3 -0
- package/node_modules/discord-api-types/rest/v6/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/channel.d.ts +268 -0
- package/node_modules/discord-api-types/rest/v6/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/channel.js +15 -0
- package/node_modules/discord-api-types/rest/v6/channel.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/emoji.d.ts +50 -0
- package/node_modules/discord-api-types/rest/v6/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/emoji.js +3 -0
- package/node_modules/discord-api-types/rest/v6/emoji.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/gateway.d.ts +14 -0
- package/node_modules/discord-api-types/rest/v6/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/gateway.js +3 -0
- package/node_modules/discord-api-types/rest/v6/gateway.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/guild.d.ts +465 -0
- package/node_modules/discord-api-types/rest/v6/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/guild.js +3 -0
- package/node_modules/discord-api-types/rest/v6/guild.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/index.d.ts +348 -0
- package/node_modules/discord-api-types/rest/v6/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/index.js +499 -0
- package/node_modules/discord-api-types/rest/v6/index.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/index.mjs +9 -0
- package/node_modules/discord-api-types/rest/v6/invite.d.ts +20 -0
- package/node_modules/discord-api-types/rest/v6/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/invite.js +3 -0
- package/node_modules/discord-api-types/rest/v6/invite.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/oauth2.d.ts +177 -0
- package/node_modules/discord-api-types/rest/v6/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/oauth2.js +3 -0
- package/node_modules/discord-api-types/rest/v6/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/user.d.ts +80 -0
- package/node_modules/discord-api-types/rest/v6/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/user.js +3 -0
- package/node_modules/discord-api-types/rest/v6/user.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/voice.d.ts +8 -0
- package/node_modules/discord-api-types/rest/v6/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/voice.js +3 -0
- package/node_modules/discord-api-types/rest/v6/voice.js.map +1 -0
- package/node_modules/discord-api-types/rest/v6/webhook.d.ts +139 -0
- package/node_modules/discord-api-types/rest/v6/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v6/webhook.js +3 -0
- package/node_modules/discord-api-types/rest/v6/webhook.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/auditLog.d.ts +32 -0
- package/node_modules/discord-api-types/rest/v8/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/auditLog.js +3 -0
- package/node_modules/discord-api-types/rest/v8/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/channel.d.ts +564 -0
- package/node_modules/discord-api-types/rest/v8/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/channel.js +3 -0
- package/node_modules/discord-api-types/rest/v8/channel.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/emoji.d.ts +69 -0
- package/node_modules/discord-api-types/rest/v8/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/emoji.js +3 -0
- package/node_modules/discord-api-types/rest/v8/emoji.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/gateway.d.ts +14 -0
- package/node_modules/discord-api-types/rest/v8/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/gateway.js +3 -0
- package/node_modules/discord-api-types/rest/v8/gateway.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/guild.d.ts +882 -0
- package/node_modules/discord-api-types/rest/v8/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/guild.js +3 -0
- package/node_modules/discord-api-types/rest/v8/guild.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts +141 -0
- package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js +3 -0
- package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/index.d.ts +539 -0
- package/node_modules/discord-api-types/rest/v8/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/index.js +747 -0
- package/node_modules/discord-api-types/rest/v8/index.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/index.mjs +10 -0
- package/node_modules/discord-api-types/rest/v8/interactions.d.ts +257 -0
- package/node_modules/discord-api-types/rest/v8/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/interactions.js +3 -0
- package/node_modules/discord-api-types/rest/v8/interactions.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/invite.d.ts +32 -0
- package/node_modules/discord-api-types/rest/v8/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/invite.js +3 -0
- package/node_modules/discord-api-types/rest/v8/invite.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/oauth2.d.ts +213 -0
- package/node_modules/discord-api-types/rest/v8/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/oauth2.js +3 -0
- package/node_modules/discord-api-types/rest/v8/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts +63 -0
- package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/stageInstance.js +3 -0
- package/node_modules/discord-api-types/rest/v8/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/sticker.d.ts +70 -0
- package/node_modules/discord-api-types/rest/v8/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/sticker.js +3 -0
- package/node_modules/discord-api-types/rest/v8/sticker.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/template.d.ts +83 -0
- package/node_modules/discord-api-types/rest/v8/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/template.js +3 -0
- package/node_modules/discord-api-types/rest/v8/template.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/user.d.ts +109 -0
- package/node_modules/discord-api-types/rest/v8/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/user.js +3 -0
- package/node_modules/discord-api-types/rest/v8/user.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/voice.d.ts +8 -0
- package/node_modules/discord-api-types/rest/v8/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/voice.js +3 -0
- package/node_modules/discord-api-types/rest/v8/voice.js.map +1 -0
- package/node_modules/discord-api-types/rest/v8/webhook.d.ts +283 -0
- package/node_modules/discord-api-types/rest/v8/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v8/webhook.js +3 -0
- package/node_modules/discord-api-types/rest/v8/webhook.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/application.d.ts +31 -0
- package/node_modules/discord-api-types/rest/v9/application.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/application.js +3 -0
- package/node_modules/discord-api-types/rest/v9/application.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/auditLog.d.ts +31 -0
- package/node_modules/discord-api-types/rest/v9/auditLog.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/auditLog.js +3 -0
- package/node_modules/discord-api-types/rest/v9/auditLog.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts +68 -0
- package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/autoModeration.js +3 -0
- package/node_modules/discord-api-types/rest/v9/autoModeration.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/channel.d.ts +777 -0
- package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/channel.js +18 -0
- package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/emoji.d.ts +85 -0
- package/node_modules/discord-api-types/rest/v9/emoji.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/emoji.js +3 -0
- package/node_modules/discord-api-types/rest/v9/emoji.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/gateway.d.ts +10 -0
- package/node_modules/discord-api-types/rest/v9/gateway.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/gateway.js +3 -0
- package/node_modules/discord-api-types/rest/v9/gateway.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/guild.d.ts +1068 -0
- package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/guild.js +3 -0
- package/node_modules/discord-api-types/rest/v9/guild.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts +124 -0
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js +3 -0
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/index.d.ts +87 -0
- package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/index.js +1293 -0
- package/node_modules/discord-api-types/rest/v9/index.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/index.mjs +15 -0
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts +290 -0
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/interactions.js +3 -0
- package/node_modules/discord-api-types/rest/v9/interactions.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/invite.d.ts +28 -0
- package/node_modules/discord-api-types/rest/v9/invite.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/invite.js +3 -0
- package/node_modules/discord-api-types/rest/v9/invite.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/monetization.d.ts +130 -0
- package/node_modules/discord-api-types/rest/v9/monetization.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/monetization.js +12 -0
- package/node_modules/discord-api-types/rest/v9/monetization.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/oauth2.d.ts +193 -0
- package/node_modules/discord-api-types/rest/v9/oauth2.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/oauth2.js +3 -0
- package/node_modules/discord-api-types/rest/v9/oauth2.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/poll.d.ts +50 -0
- package/node_modules/discord-api-types/rest/v9/poll.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/poll.js +3 -0
- package/node_modules/discord-api-types/rest/v9/poll.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/soundboard.d.ts +98 -0
- package/node_modules/discord-api-types/rest/v9/soundboard.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/soundboard.js +3 -0
- package/node_modules/discord-api-types/rest/v9/soundboard.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts +59 -0
- package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/stageInstance.js +3 -0
- package/node_modules/discord-api-types/rest/v9/stageInstance.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/sticker.d.ts +85 -0
- package/node_modules/discord-api-types/rest/v9/sticker.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/sticker.js +3 -0
- package/node_modules/discord-api-types/rest/v9/sticker.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/template.d.ts +65 -0
- package/node_modules/discord-api-types/rest/v9/template.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/template.js +3 -0
- package/node_modules/discord-api-types/rest/v9/template.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/user.d.ts +122 -0
- package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/user.js +3 -0
- package/node_modules/discord-api-types/rest/v9/user.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/voice.d.ts +57 -0
- package/node_modules/discord-api-types/rest/v9/voice.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/voice.js +3 -0
- package/node_modules/discord-api-types/rest/v9/voice.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/webhook.d.ts +275 -0
- package/node_modules/discord-api-types/rest/v9/webhook.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/webhook.js +3 -0
- package/node_modules/discord-api-types/rest/v9/webhook.js.map +1 -0
- package/node_modules/discord-api-types/rpc/common.d.ts +453 -0
- package/node_modules/discord-api-types/rpc/common.d.ts.map +1 -0
- package/node_modules/discord-api-types/rpc/common.js +240 -0
- package/node_modules/discord-api-types/rpc/common.js.map +1 -0
- package/node_modules/discord-api-types/rpc/index.d.ts +2 -0
- package/node_modules/discord-api-types/rpc/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/rpc/index.js +20 -0
- package/node_modules/discord-api-types/rpc/index.js.map +1 -0
- package/node_modules/discord-api-types/rpc/index.mjs +13 -0
- package/node_modules/discord-api-types/rpc/v10.d.ts +2191 -0
- package/node_modules/discord-api-types/rpc/v10.d.ts.map +1 -0
- package/node_modules/discord-api-types/rpc/v10.js +299 -0
- package/node_modules/discord-api-types/rpc/v10.js.map +1 -0
- package/node_modules/discord-api-types/rpc/v10.mjs +13 -0
- package/node_modules/discord-api-types/rpc/v8.d.ts +39 -0
- package/node_modules/discord-api-types/rpc/v8.d.ts.map +1 -0
- package/node_modules/discord-api-types/rpc/v8.js +18 -0
- package/node_modules/discord-api-types/rpc/v8.js.map +1 -0
- package/node_modules/discord-api-types/rpc/v8.mjs +10 -0
- package/node_modules/discord-api-types/rpc/v9.d.ts +39 -0
- package/node_modules/discord-api-types/rpc/v9.d.ts.map +1 -0
- package/node_modules/discord-api-types/rpc/v9.js +18 -0
- package/node_modules/discord-api-types/rpc/v9.js.map +1 -0
- package/node_modules/discord-api-types/rpc/v9.mjs +10 -0
- package/node_modules/discord-api-types/scripts/versions.mjs +46 -0
- package/node_modules/discord-api-types/utils/index.d.ts +2 -0
- package/node_modules/discord-api-types/utils/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/utils/index.js +20 -0
- package/node_modules/discord-api-types/utils/index.js.map +1 -0
- package/node_modules/discord-api-types/utils/index.mjs +17 -0
- package/node_modules/discord-api-types/utils/internals.d.ts +34 -0
- package/node_modules/discord-api-types/utils/internals.d.ts.map +1 -0
- package/node_modules/discord-api-types/utils/internals.js +13 -0
- package/node_modules/discord-api-types/utils/internals.js.map +1 -0
- package/node_modules/discord-api-types/utils/v10.d.ts +100 -0
- package/node_modules/discord-api-types/utils/v10.d.ts.map +1 -0
- package/node_modules/discord-api-types/utils/v10.js +158 -0
- package/node_modules/discord-api-types/utils/v10.js.map +1 -0
- package/node_modules/discord-api-types/utils/v10.mjs +17 -0
- package/node_modules/discord-api-types/utils/v8.d.ts +66 -0
- package/node_modules/discord-api-types/utils/v8.d.ts.map +1 -0
- package/node_modules/discord-api-types/utils/v8.js +96 -0
- package/node_modules/discord-api-types/utils/v8.js.map +1 -0
- package/node_modules/discord-api-types/utils/v8.mjs +11 -0
- package/node_modules/discord-api-types/utils/v9.d.ts +100 -0
- package/node_modules/discord-api-types/utils/v9.d.ts.map +1 -0
- package/node_modules/discord-api-types/utils/v9.js +158 -0
- package/node_modules/discord-api-types/utils/v9.js.map +1 -0
- package/node_modules/discord-api-types/utils/v9.mjs +17 -0
- package/node_modules/discord-api-types/v10.d.ts +8 -0
- package/node_modules/discord-api-types/v10.d.ts.map +1 -0
- package/node_modules/discord-api-types/v10.js +47 -0
- package/node_modules/discord-api-types/v10.js.map +1 -0
- package/node_modules/discord-api-types/v10.mjs +132 -0
- package/node_modules/discord-api-types/v6.d.ts +5 -0
- package/node_modules/discord-api-types/v6.d.ts.map +1 -0
- package/node_modules/discord-api-types/v6.js +21 -0
- package/node_modules/discord-api-types/v6.js.map +1 -0
- package/node_modules/discord-api-types/v6.mjs +44 -0
- package/node_modules/discord-api-types/v8.d.ts +7 -0
- package/node_modules/discord-api-types/v8.d.ts.map +1 -0
- package/node_modules/discord-api-types/v8.js +46 -0
- package/node_modules/discord-api-types/v8.js.map +1 -0
- package/node_modules/discord-api-types/v8.mjs +72 -0
- package/node_modules/discord-api-types/v9.d.ts +8 -0
- package/node_modules/discord-api-types/v9.d.ts.map +1 -0
- package/node_modules/discord-api-types/v9.js +47 -0
- package/node_modules/discord-api-types/v9.js.map +1 -0
- package/node_modules/discord-api-types/v9.mjs +129 -0
- package/node_modules/discord-api-types/voice/index.d.ts +2 -0
- package/node_modules/discord-api-types/voice/index.d.ts.map +1 -0
- package/node_modules/discord-api-types/voice/index.js +20 -0
- package/node_modules/discord-api-types/voice/index.js.map +1 -0
- package/node_modules/discord-api-types/voice/index.mjs +8 -0
- package/node_modules/discord-api-types/voice/v4.d.ts +174 -0
- package/node_modules/discord-api-types/voice/v4.d.ts.map +1 -0
- package/node_modules/discord-api-types/voice/v4.js +179 -0
- package/node_modules/discord-api-types/voice/v4.js.map +1 -0
- package/node_modules/discord-api-types/voice/v4.mjs +6 -0
- package/node_modules/discord-api-types/voice/v8.d.ts +632 -0
- package/node_modules/discord-api-types/voice/v8.d.ts.map +1 -0
- package/node_modules/discord-api-types/voice/v8.js +236 -0
- package/node_modules/discord-api-types/voice/v8.js.map +1 -0
- package/node_modules/discord-api-types/voice/v8.mjs +8 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +43 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +150 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +12 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/opusscript/LICENSE +20 -0
- package/node_modules/opusscript/README.md +53 -0
- package/node_modules/opusscript/build/COPYING.libopus +44 -0
- package/node_modules/opusscript/build/opusscript_native_nasm.js +93 -0
- package/node_modules/opusscript/build/opusscript_native_wasm.js +77 -0
- package/node_modules/opusscript/build/opusscript_native_wasm.wasm +0 -0
- package/node_modules/opusscript/index.d.ts +100 -0
- package/node_modules/opusscript/index.js +120 -0
- package/node_modules/opusscript/package.json +26 -0
- package/node_modules/prism-media/LICENSE +190 -0
- package/node_modules/prism-media/README.md +69 -0
- package/node_modules/prism-media/package.json +65 -0
- package/node_modules/prism-media/src/core/FFmpeg.js +160 -0
- package/node_modules/prism-media/src/core/VolumeTransformer.js +128 -0
- package/node_modules/prism-media/src/core/WebmBase.js +229 -0
- package/node_modules/prism-media/src/core/index.js +9 -0
- package/node_modules/prism-media/src/index.js +5 -0
- package/node_modules/prism-media/src/opus/OggDemuxer.js +143 -0
- package/node_modules/prism-media/src/opus/Opus.js +212 -0
- package/node_modules/prism-media/src/opus/WebmDemuxer.js +24 -0
- package/node_modules/prism-media/src/opus/index.js +10 -0
- package/node_modules/prism-media/src/util/loader.js +13 -0
- package/node_modules/prism-media/src/vorbis/WebmDemuxer.js +22 -0
- package/node_modules/prism-media/src/vorbis/index.js +8 -0
- package/node_modules/prism-media/typings/index.d.ts +43 -0
- package/node_modules/prism-media/typings/opus.d.ts +30 -0
- package/node_modules/prism-media/typings/vorbis.d.ts +5 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/typebox/build/compile/code.d.mts +12 -0
- package/node_modules/typebox/build/compile/code.mjs +65 -0
- package/node_modules/typebox/build/compile/compile.d.mts +6 -0
- package/node_modules/typebox/build/compile/compile.mjs +12 -0
- package/node_modules/typebox/build/compile/index.d.mts +8 -0
- package/node_modules/typebox/build/compile/index.mjs +14 -0
- package/node_modules/typebox/build/compile/validator.d.mts +43 -0
- package/node_modules/typebox/build/compile/validator.mjs +121 -0
- package/node_modules/typebox/build/error/errors.d.mts +214 -0
- package/node_modules/typebox/build/error/errors.mjs +18 -0
- package/node_modules/typebox/build/error/index.d.mts +1 -0
- package/node_modules/typebox/build/error/index.mjs +1 -0
- package/node_modules/typebox/build/format/_idna.d.mts +2 -0
- package/node_modules/typebox/build/format/_idna.mjs +216 -0
- package/node_modules/typebox/build/format/_puny.d.mts +1 -0
- package/node_modules/typebox/build/format/_puny.mjs +74 -0
- package/node_modules/typebox/build/format/_registry.d.mts +15 -0
- package/node_modules/typebox/build/format/_registry.mjs +96 -0
- package/node_modules/typebox/build/format/date.d.mts +6 -0
- package/node_modules/typebox/build/format/date.mjs +19 -0
- package/node_modules/typebox/build/format/date_time.d.mts +6 -0
- package/node_modules/typebox/build/format/date_time.mjs +11 -0
- package/node_modules/typebox/build/format/duration.d.mts +5 -0
- package/node_modules/typebox/build/format/duration.mjs +8 -0
- package/node_modules/typebox/build/format/email.d.mts +5 -0
- package/node_modules/typebox/build/format/email.mjs +8 -0
- package/node_modules/typebox/build/format/format.d.mts +22 -0
- package/node_modules/typebox/build/format/format.mjs +22 -0
- package/node_modules/typebox/build/format/hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/hostname.mjs +18 -0
- package/node_modules/typebox/build/format/idn_email.d.mts +5 -0
- package/node_modules/typebox/build/format/idn_email.mjs +8 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
- package/node_modules/typebox/build/format/index.d.mts +4 -0
- package/node_modules/typebox/build/format/index.mjs +4 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
- package/node_modules/typebox/build/format/ipv4.mjs +38 -0
- package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
- package/node_modules/typebox/build/format/ipv6.mjs +67 -0
- package/node_modules/typebox/build/format/iri.d.mts +5 -0
- package/node_modules/typebox/build/format/iri.mjs +13 -0
- package/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/iri_reference.mjs +60 -0
- package/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
- package/node_modules/typebox/build/format/regex.d.mts +6 -0
- package/node_modules/typebox/build/format/regex.mjs +17 -0
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/time.d.mts +5 -0
- package/node_modules/typebox/build/format/time.mjs +27 -0
- package/node_modules/typebox/build/format/uri.d.mts +5 -0
- package/node_modules/typebox/build/format/uri.mjs +135 -0
- package/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/uri_reference.mjs +9 -0
- package/node_modules/typebox/build/format/uri_template.d.mts +6 -0
- package/node_modules/typebox/build/format/uri_template.mjs +10 -0
- package/node_modules/typebox/build/format/url.d.mts +6 -0
- package/node_modules/typebox/build/format/url.mjs +9 -0
- package/node_modules/typebox/build/format/uuid.d.mts +6 -0
- package/node_modules/typebox/build/format/uuid.mjs +9 -0
- package/node_modules/typebox/build/guard/emit.d.mts +58 -0
- package/node_modules/typebox/build/guard/emit.mjs +194 -0
- package/node_modules/typebox/build/guard/globals.d.mts +35 -0
- package/node_modules/typebox/build/guard/globals.mjs +90 -0
- package/node_modules/typebox/build/guard/guard.d.mts +69 -0
- package/node_modules/typebox/build/guard/guard.mjs +217 -0
- package/node_modules/typebox/build/guard/index.d.mts +6 -0
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/native.d.mts +20 -0
- package/node_modules/typebox/build/guard/native.mjs +60 -0
- package/node_modules/typebox/build/guard/string.d.mts +6 -0
- package/node_modules/typebox/build/guard/string.mjs +164 -0
- package/node_modules/typebox/build/index.d.mts +8 -0
- package/node_modules/typebox/build/index.mjs +14 -0
- package/node_modules/typebox/build/schema/build.d.mts +39 -0
- package/node_modules/typebox/build/schema/build.mjs +118 -0
- package/node_modules/typebox/build/schema/check.d.mts +6 -0
- package/node_modules/typebox/build/schema/check.mjs +14 -0
- package/node_modules/typebox/build/schema/compile.d.mts +22 -0
- package/node_modules/typebox/build/schema/compile.mjs +46 -0
- package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
- package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
- package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
- package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +55 -0
- package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
- package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
- package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
- package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/type.mjs +74 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
- package/node_modules/typebox/build/schema/errors.d.mts +6 -0
- package/node_modules/typebox/build/schema/errors.mjs +24 -0
- package/node_modules/typebox/build/schema/index.d.mts +3 -0
- package/node_modules/typebox/build/schema/index.mjs +9 -0
- package/node_modules/typebox/build/schema/parse.d.mts +13 -0
- package/node_modules/typebox/build/schema/parse.mjs +27 -0
- package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
- package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
- package/node_modules/typebox/build/schema/schema.d.mts +10 -0
- package/node_modules/typebox/build/schema/schema.mjs +10 -0
- package/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/const.mjs +2 -0
- package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
- package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
- package/node_modules/typebox/build/schema/static/if.mjs +2 -0
- package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/index.mjs +1 -0
- package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/items.mjs +2 -0
- package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
- package/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
- package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
- package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
- package/node_modules/typebox/build/schema/static/required.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/required.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
- package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
- package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/static.mjs +3 -0
- package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/type.mjs +3 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
- package/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
- package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
- package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
- package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/const.mjs +12 -0
- package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
- package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/default.mjs +12 -0
- package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
- package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/else.mjs +14 -0
- package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/format.mjs +13 -0
- package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/id.mjs +13 -0
- package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/if.mjs +14 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +54 -0
- package/node_modules/typebox/build/schema/types/index.mjs +60 -0
- package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
- package/node_modules/typebox/build/schema/types/items.mjs +26 -0
- package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
- package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/not.mjs +14 -0
- package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
- package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
- package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/required.mjs +14 -0
- package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
- package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/then.mjs +14 -0
- package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/type.mjs +15 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
- package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
- package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
- package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
- package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
- package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
- package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/index.mjs +1 -0
- package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
- package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
- package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
- package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
- package/node_modules/typebox/build/system/index.d.mts +4 -0
- package/node_modules/typebox/build/system/index.mjs +4 -0
- package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
- package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
- package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
- package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
- package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
- package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
- package/node_modules/typebox/build/system/locale/index.mjs +1 -0
- package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
- package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
- package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
- package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
- package/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/clone.mjs +63 -0
- package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
- package/node_modules/typebox/build/system/memory/create.mjs +30 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
- package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
- package/node_modules/typebox/build/system/memory/index.mjs +1 -0
- package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
- package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
- package/node_modules/typebox/build/system/memory/update.mjs +32 -0
- package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
- package/node_modules/typebox/build/system/settings/index.mjs +1 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +32 -0
- package/node_modules/typebox/build/system/system.d.mts +6 -0
- package/node_modules/typebox/build/system/system.mjs +6 -0
- package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
- package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
- package/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_optional.mjs +40 -0
- package/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
- package/node_modules/typebox/build/type/action/awaited.d.mts +15 -0
- package/node_modules/typebox/build/type/action/awaited.mjs +15 -0
- package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +13 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +12 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
- package/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
- package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
- package/node_modules/typebox/build/type/action/exclude.mjs +11 -0
- package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
- package/node_modules/typebox/build/type/action/extract.mjs +11 -0
- package/node_modules/typebox/build/type/action/index.d.mts +27 -0
- package/node_modules/typebox/build/type/action/index.mjs +27 -0
- package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
- package/node_modules/typebox/build/type/action/indexed.mjs +14 -0
- package/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
- package/node_modules/typebox/build/type/action/interface.mjs +22 -0
- package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
- package/node_modules/typebox/build/type/action/keyof.mjs +11 -0
- package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
- package/node_modules/typebox/build/type/action/mapped.d.mts +14 -0
- package/node_modules/typebox/build/type/action/mapped.mjs +12 -0
- package/node_modules/typebox/build/type/action/module.d.mts +12 -0
- package/node_modules/typebox/build/type/action/module.mjs +12 -0
- package/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
- package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
- package/node_modules/typebox/build/type/action/omit.mjs +14 -0
- package/node_modules/typebox/build/type/action/options.d.mts +11 -0
- package/node_modules/typebox/build/type/action/options.mjs +11 -0
- package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
- package/node_modules/typebox/build/type/action/partial.mjs +11 -0
- package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
- package/node_modules/typebox/build/type/action/pick.mjs +14 -0
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +16 -0
- package/node_modules/typebox/build/type/action/required.d.mts +11 -0
- package/node_modules/typebox/build/type/action/required.mjs +11 -0
- package/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/return_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
- package/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +20 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
- package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +24 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +51 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +24 -0
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
- package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +24 -0
- package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +24 -0
- package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
- package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/index.mjs +37 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +165 -0
- package/node_modules/typebox/build/type/engine/instantiate.mjs +159 -0
- package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
- package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +34 -0
- package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
- package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
- package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +24 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
- package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
- package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
- package/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
- package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
- package/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +9 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +19 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +32 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
- package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/any.mjs +12 -0
- package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
- package/node_modules/typebox/build/type/extends/array.mjs +21 -0
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
- package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
- package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +6 -0
- package/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/extends.mjs +17 -0
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
- package/node_modules/typebox/build/type/extends/extends_left.mjs +83 -0
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/extends_right.mjs +44 -0
- package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/function.mjs +17 -0
- package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
- package/node_modules/typebox/build/type/extends/index.mjs +2 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
- package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
- package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
- package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
- package/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
- package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
- package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/never.mjs +9 -0
- package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/null.mjs +9 -0
- package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/number.mjs +9 -0
- package/node_modules/typebox/build/type/extends/object.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/object.mjs +87 -0
- package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
- package/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
- package/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/promise.mjs +9 -0
- package/node_modules/typebox/build/type/extends/result.d.mts +24 -0
- package/node_modules/typebox/build/type/extends/result.mjs +36 -0
- package/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
- package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/string.mjs +9 -0
- package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
- package/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
- package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
- package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
- package/node_modules/typebox/build/type/extends/union.mjs +24 -0
- package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
- package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/void.mjs +9 -0
- package/node_modules/typebox/build/type/index.d.mts +5 -0
- package/node_modules/typebox/build/type/index.mjs +5 -0
- package/node_modules/typebox/build/type/script/index.d.mts +1 -0
- package/node_modules/typebox/build/type/script/index.mjs +1 -0
- package/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
- package/node_modules/typebox/build/type/script/mapping.mjs +532 -0
- package/node_modules/typebox/build/type/script/parser.d.mts +260 -0
- package/node_modules/typebox/build/type/script/parser.mjs +135 -0
- package/node_modules/typebox/build/type/script/script.d.mts +17 -0
- package/node_modules/typebox/build/type/script/script.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
- package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
- package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
- package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
- package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
- package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
- package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
- package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
- package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/until.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
- package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
- package/node_modules/typebox/build/type/types/_codec.mjs +61 -0
- package/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
- package/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_optional.mjs +27 -0
- package/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
- package/node_modules/typebox/build/type/types/_refine.d.mts +26 -0
- package/node_modules/typebox/build/type/types/_refine.mjs +37 -0
- package/node_modules/typebox/build/type/types/any.d.mts +10 -0
- package/node_modules/typebox/build/type/types/any.mjs +18 -0
- package/node_modules/typebox/build/type/types/array.d.mts +18 -0
- package/node_modules/typebox/build/type/types/array.mjs +25 -0
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +20 -0
- package/node_modules/typebox/build/type/types/async_iterator.mjs +28 -0
- package/node_modules/typebox/build/type/types/base.d.mts +50 -0
- package/node_modules/typebox/build/type/types/base.mjs +84 -0
- package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
- package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
- package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
- package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
- package/node_modules/typebox/build/type/types/call.d.mts +16 -0
- package/node_modules/typebox/build/type/types/call.mjs +22 -0
- package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
- package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
- package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
- package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
- package/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +16 -0
- package/node_modules/typebox/build/type/types/enum.mjs +17 -0
- package/node_modules/typebox/build/type/types/function.d.mts +21 -0
- package/node_modules/typebox/build/type/types/function.mjs +25 -0
- package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
- package/node_modules/typebox/build/type/types/generic.mjs +17 -0
- package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
- package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
- package/node_modules/typebox/build/type/types/index.d.mts +48 -0
- package/node_modules/typebox/build/type/types/index.mjs +54 -0
- package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
- package/node_modules/typebox/build/type/types/infer.mjs +20 -0
- package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
- package/node_modules/typebox/build/type/types/integer.mjs +21 -0
- package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
- package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
- package/node_modules/typebox/build/type/types/iterator.d.mts +20 -0
- package/node_modules/typebox/build/type/types/iterator.mjs +28 -0
- package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
- package/node_modules/typebox/build/type/types/literal.mjs +62 -0
- package/node_modules/typebox/build/type/types/never.d.mts +12 -0
- package/node_modules/typebox/build/type/types/never.mjs +22 -0
- package/node_modules/typebox/build/type/types/null.d.mts +11 -0
- package/node_modules/typebox/build/type/types/null.mjs +17 -0
- package/node_modules/typebox/build/type/types/number.d.mts +12 -0
- package/node_modules/typebox/build/type/types/number.mjs +21 -0
- package/node_modules/typebox/build/type/types/object.d.mts +18 -0
- package/node_modules/typebox/build/type/types/object.mjs +28 -0
- package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
- package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
- package/node_modules/typebox/build/type/types/promise.d.mts +21 -0
- package/node_modules/typebox/build/type/types/promise.mjs +29 -0
- package/node_modules/typebox/build/type/types/properties.d.mts +43 -0
- package/node_modules/typebox/build/type/types/properties.mjs +15 -0
- package/node_modules/typebox/build/type/types/record.d.mts +46 -0
- package/node_modules/typebox/build/type/types/record.mjs +60 -0
- package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
- package/node_modules/typebox/build/type/types/ref.mjs +18 -0
- package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
- package/node_modules/typebox/build/type/types/rest.mjs +17 -0
- package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
- package/node_modules/typebox/build/type/types/schema.mjs +15 -0
- package/node_modules/typebox/build/type/types/static.d.mts +48 -0
- package/node_modules/typebox/build/type/types/static.mjs +3 -0
- package/node_modules/typebox/build/type/types/string.d.mts +12 -0
- package/node_modules/typebox/build/type/types/string.mjs +22 -0
- package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
- package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
- package/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
- package/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
- package/node_modules/typebox/build/type/types/this.d.mts +14 -0
- package/node_modules/typebox/build/type/types/this.mjs +17 -0
- package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
- package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
- package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
- package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
- package/node_modules/typebox/build/type/types/union.d.mts +15 -0
- package/node_modules/typebox/build/type/types/union.mjs +24 -0
- package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
- package/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
- package/node_modules/typebox/build/type/types/void.d.mts +11 -0
- package/node_modules/typebox/build/type/types/void.mjs +17 -0
- package/node_modules/typebox/build/typebox.d.mts +73 -0
- package/node_modules/typebox/build/typebox.mjs +89 -0
- package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
- package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
- package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/assert/index.mjs +1 -0
- package/node_modules/typebox/build/value/check/check.d.mts +5 -0
- package/node_modules/typebox/build/value/check/check.mjs +11 -0
- package/node_modules/typebox/build/value/check/index.d.mts +1 -0
- package/node_modules/typebox/build/value/check/index.mjs +1 -0
- package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
- package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
- package/node_modules/typebox/build/value/clean/clean.mjs +15 -0
- package/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
- package/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
- package/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
- package/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_type.mjs +23 -0
- package/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_union.mjs +13 -0
- package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clean/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
- package/node_modules/typebox/build/value/clone/clone.mjs +83 -0
- package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clone/index.mjs +1 -0
- package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
- package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/decode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/encode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_array.mjs +38 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
- package/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_object.mjs +45 -0
- package/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_record.mjs +44 -0
- package/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
- package/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +35 -0
- package/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
- package/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_union.mjs +40 -0
- package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
- package/node_modules/typebox/build/value/codec/has.mjs +93 -0
- package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
- package/node_modules/typebox/build/value/codec/index.mjs +3 -0
- package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
- package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
- package/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
- package/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_enum.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
- package/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
- package/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
- package/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
- package/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_type.mjs +45 -0
- package/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
- package/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
- package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
- package/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
- package/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
- package/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
- package/node_modules/typebox/build/value/create/create.d.mts +5 -0
- package/node_modules/typebox/build/value/create/create.mjs +11 -0
- package/node_modules/typebox/build/value/create/error.d.mts +5 -0
- package/node_modules/typebox/build/value/create/error.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_array.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/create/from_default.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_function.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_never.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_null.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_number.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_object.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_promise.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_promise.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_record.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_string.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
- package/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_type.mjs +69 -0
- package/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_union.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_void.mjs +4 -0
- package/node_modules/typebox/build/value/create/index.d.mts +2 -0
- package/node_modules/typebox/build/value/create/index.mjs +2 -0
- package/node_modules/typebox/build/value/default/default.d.mts +13 -0
- package/node_modules/typebox/build/value/default/default.mjs +15 -0
- package/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_array.mjs +12 -0
- package/node_modules/typebox/build/value/default/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_base.mjs +5 -0
- package/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
- package/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/default/from_default.mjs +13 -0
- package/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_object.mjs +32 -0
- package/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_record.mjs +26 -0
- package/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_type.mjs +27 -0
- package/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_union.mjs +14 -0
- package/node_modules/typebox/build/value/default/index.d.mts +1 -0
- package/node_modules/typebox/build/value/default/index.mjs +1 -0
- package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
- package/node_modules/typebox/build/value/delta/diff.mjs +135 -0
- package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
- package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
- package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
- package/node_modules/typebox/build/value/delta/index.mjs +3 -0
- package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
- package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
- package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
- package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
- package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
- package/node_modules/typebox/build/value/equal/index.mjs +1 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
- package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
- package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
- package/node_modules/typebox/build/value/errors/index.mjs +1 -0
- package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
- package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
- package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
- package/node_modules/typebox/build/value/hash/index.mjs +1 -0
- package/node_modules/typebox/build/value/index.d.mts +21 -0
- package/node_modules/typebox/build/value/index.mjs +30 -0
- package/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
- package/node_modules/typebox/build/value/mutate/error.mjs +6 -0
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_array.mjs +16 -0
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_object.mjs +40 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +7 -0
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_value.mjs +12 -0
- package/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
- package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +11 -0
- package/node_modules/typebox/build/value/mutate/mutate.mjs +41 -0
- package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
- package/node_modules/typebox/build/value/parse/index.mjs +1 -0
- package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
- package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
- package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
- package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
- package/node_modules/typebox/build/value/repair/error.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
- package/node_modules/typebox/build/value/repair/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_base.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_enum.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
- package/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_type.mjs +86 -0
- package/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
- package/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
- package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
- package/node_modules/typebox/build/value/repair/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
- package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
- package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/index.mjs +4 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +36 -0
- package/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
- package/node_modules/typebox/build/value/value.d.mts +16 -0
- package/node_modules/typebox/build/value/value.mjs +16 -0
- package/node_modules/typebox/license +23 -0
- package/node_modules/typebox/package.json +87 -0
- package/node_modules/typebox/readme.md +356 -0
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/README.md +750 -0
- package/node_modules/undici/docs/docs/api/Agent.md +84 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
- package/node_modules/undici/docs/docs/api/Client.md +287 -0
- package/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +315 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1427 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +60 -0
- package/node_modules/undici/docs/docs/api/GlobalInstallation.md +141 -0
- package/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
- package/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
- package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +81 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +555 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +98 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +49 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +116 -0
- package/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
- package/node_modules/undici/docs/docs/api/SnapshotAgent.md +639 -0
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +274 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
- package/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +231 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
- package/node_modules/undici/index-fetch.js +65 -0
- package/node_modules/undici/index.d.ts +3 -0
- package/node_modules/undici/index.js +236 -0
- package/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/node_modules/undici/lib/api/api-connect.js +112 -0
- package/node_modules/undici/lib/api/api-pipeline.js +265 -0
- package/node_modules/undici/lib/api/api-request.js +238 -0
- package/node_modules/undici/lib/api/api-stream.js +270 -0
- package/node_modules/undici/lib/api/api-upgrade.js +121 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +581 -0
- package/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +463 -0
- package/node_modules/undici/lib/core/connect.js +153 -0
- package/node_modules/undici/lib/core/constants.js +120 -0
- package/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/node_modules/undici/lib/core/errors.js +477 -0
- package/node_modules/undici/lib/core/request.js +535 -0
- package/node_modules/undici/lib/core/socks5-client.js +422 -0
- package/node_modules/undici/lib/core/socks5-utils.js +212 -0
- package/node_modules/undici/lib/core/symbols.js +76 -0
- package/node_modules/undici/lib/core/tree.js +160 -0
- package/node_modules/undici/lib/core/util.js +1019 -0
- package/node_modules/undici/lib/dispatcher/agent.js +172 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +214 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1669 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +1326 -0
- package/node_modules/undici/lib/dispatcher/client.js +666 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +44 -0
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +107 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +232 -0
- package/node_modules/undici/lib/dispatcher/pool.js +143 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +343 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +159 -0
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +264 -0
- package/node_modules/undici/lib/encoding/index.js +33 -0
- package/node_modules/undici/lib/global.js +62 -0
- package/node_modules/undici/lib/handler/cache-handler.js +586 -0
- package/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +66 -0
- package/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +192 -0
- package/node_modules/undici/lib/handler/retry-handler.js +407 -0
- package/node_modules/undici/lib/interceptor/cache.js +508 -0
- package/node_modules/undici/lib/interceptor/decompress.js +285 -0
- package/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/node_modules/undici/lib/interceptor/dump.js +112 -0
- package/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
- package/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
- package/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/node_modules/undici/lib/mock/mock-utils.js +501 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/snapshot-agent.js +363 -0
- package/node_modules/undici/lib/mock/snapshot-recorder.js +623 -0
- package/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/node_modules/undici/lib/util/cache.js +408 -0
- package/node_modules/undici/lib/util/date.js +653 -0
- package/node_modules/undici/lib/util/runtime-features.js +93 -0
- package/node_modules/undici/lib/util/stats.js +32 -0
- package/node_modules/undici/lib/util/timers.js +425 -0
- package/node_modules/undici/lib/web/cache/cache.js +862 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/node_modules/undici/lib/web/cookies/parse.js +322 -0
- package/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +503 -0
- package/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +278 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/node_modules/undici/lib/web/fetch/index.js +2403 -0
- package/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/node_modules/undici/lib/web/infra/index.js +229 -0
- package/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/node_modules/undici/lib/web/webidl/index.js +1004 -0
- package/node_modules/undici/lib/web/websocket/connection.js +329 -0
- package/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/node_modules/undici/lib/web/websocket/frame.js +127 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +490 -0
- package/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +491 -0
- package/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +756 -0
- package/node_modules/undici/package.json +152 -0
- package/node_modules/undici/scripts/strip-comments.js +10 -0
- package/node_modules/undici/types/README.md +6 -0
- package/node_modules/undici/types/agent.d.ts +30 -0
- package/node_modules/undici/types/api.d.ts +43 -0
- package/node_modules/undici/types/balanced-pool.d.ts +30 -0
- package/node_modules/undici/types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici/types/cache.d.ts +36 -0
- package/node_modules/undici/types/client-stats.d.ts +15 -0
- package/node_modules/undici/types/client.d.ts +129 -0
- package/node_modules/undici/types/connector.d.ts +36 -0
- package/node_modules/undici/types/content-type.d.ts +21 -0
- package/node_modules/undici/types/cookies.d.ts +30 -0
- package/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici/types/dispatcher.d.ts +253 -0
- package/node_modules/undici/types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici/types/errors.d.ts +177 -0
- package/node_modules/undici/types/eventsource.d.ts +66 -0
- package/node_modules/undici/types/fetch.d.ts +231 -0
- package/node_modules/undici/types/formdata.d.ts +108 -0
- package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici/types/global-origin.d.ts +7 -0
- package/node_modules/undici/types/h2c-client.d.ts +73 -0
- package/node_modules/undici/types/handlers.d.ts +14 -0
- package/node_modules/undici/types/header.d.ts +165 -0
- package/node_modules/undici/types/index.d.ts +93 -0
- package/node_modules/undici/types/interceptors.d.ts +80 -0
- package/node_modules/undici/types/mock-agent.d.ts +68 -0
- package/node_modules/undici/types/mock-call-history.d.ts +111 -0
- package/node_modules/undici/types/mock-client.d.ts +27 -0
- package/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/node_modules/undici/types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici/types/mock-pool.d.ts +27 -0
- package/node_modules/undici/types/patch.d.ts +29 -0
- package/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/node_modules/undici/types/pool.d.ts +39 -0
- package/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/node_modules/undici/types/readable.d.ts +68 -0
- package/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/node_modules/undici/types/retry-handler.d.ts +125 -0
- package/node_modules/undici/types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici/types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici/types/util.d.ts +18 -0
- package/node_modules/undici/types/utility.d.ts +7 -0
- package/node_modules/undici/types/webidl.d.ts +346 -0
- package/node_modules/undici/types/websocket.d.ts +188 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +32 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +123 -0
- package/node_modules/undici-types/connector.d.ts +36 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +279 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +177 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +211 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/undici-types/index.d.ts +91 -0
- package/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +41 -0
- package/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +347 -0
- package/node_modules/undici-types/websocket.d.ts +188 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +554 -0
- package/node_modules/ws/lib/websocket.js +1393 -0
- package/node_modules/ws/package.json +70 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/npm-shrinkwrap.json +512 -0
- package/openclaw.plugin.json +14 -0
- package/package.json +15 -9
- package/dist/provider.runtime-CUUefRl3.js +0 -2
- 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
|