@neontechspace/fluxerly 1000.0.0-nightly.12
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/CHANGELOG.md +833 -0
- package/LICENSE +201 -0
- package/README.md +129 -0
- package/agents/AGENTS.md +195 -0
- package/dist/api/default/application.d.ts +34 -0
- package/dist/api/default/application.d.ts.map +1 -0
- package/dist/api/default/application.js +2 -0
- package/dist/api/default/application.js.map +1 -0
- package/dist/api/default/attachments.d.ts +89 -0
- package/dist/api/default/attachments.d.ts.map +1 -0
- package/dist/api/default/attachments.js +2 -0
- package/dist/api/default/attachments.js.map +1 -0
- package/dist/api/default/audit-logs.d.ts +48 -0
- package/dist/api/default/audit-logs.d.ts.map +1 -0
- package/dist/api/default/audit-logs.js +2 -0
- package/dist/api/default/audit-logs.js.map +1 -0
- package/dist/api/default/bot.d.ts +200 -0
- package/dist/api/default/bot.d.ts.map +1 -0
- package/dist/api/default/bot.js +309 -0
- package/dist/api/default/bot.js.map +1 -0
- package/dist/api/default/cache.d.ts +105 -0
- package/dist/api/default/cache.d.ts.map +1 -0
- package/dist/api/default/cache.js +2 -0
- package/dist/api/default/cache.js.map +1 -0
- package/dist/api/default/channels.d.ts +249 -0
- package/dist/api/default/channels.d.ts.map +1 -0
- package/dist/api/default/channels.js +2 -0
- package/dist/api/default/channels.js.map +1 -0
- package/dist/api/default/client.d.ts +528 -0
- package/dist/api/default/client.d.ts.map +1 -0
- package/dist/api/default/client.js +301 -0
- package/dist/api/default/client.js.map +1 -0
- package/dist/api/default/collectors.d.ts +76 -0
- package/dist/api/default/collectors.d.ts.map +1 -0
- package/dist/api/default/collectors.js +2 -0
- package/dist/api/default/collectors.js.map +1 -0
- package/dist/api/default/commands.d.ts +91 -0
- package/dist/api/default/commands.d.ts.map +1 -0
- package/dist/api/default/commands.js +92 -0
- package/dist/api/default/commands.js.map +1 -0
- package/dist/api/default/direct-messages.d.ts +111 -0
- package/dist/api/default/direct-messages.d.ts.map +1 -0
- package/dist/api/default/direct-messages.js +2 -0
- package/dist/api/default/direct-messages.js.map +1 -0
- package/dist/api/default/discovery.d.ts +76 -0
- package/dist/api/default/discovery.d.ts.map +1 -0
- package/dist/api/default/discovery.js +2 -0
- package/dist/api/default/discovery.js.map +1 -0
- package/dist/api/default/emojis.d.ts +88 -0
- package/dist/api/default/emojis.d.ts.map +1 -0
- package/dist/api/default/emojis.js +2 -0
- package/dist/api/default/emojis.js.map +1 -0
- package/dist/api/default/events.d.ts +127 -0
- package/dist/api/default/events.d.ts.map +1 -0
- package/dist/api/default/events.js +2 -0
- package/dist/api/default/events.js.map +1 -0
- package/dist/api/default/gateway.d.ts +62 -0
- package/dist/api/default/gateway.d.ts.map +1 -0
- package/dist/api/default/gateway.js +2 -0
- package/dist/api/default/gateway.js.map +1 -0
- package/dist/api/default/guards.d.ts +87 -0
- package/dist/api/default/guards.d.ts.map +1 -0
- package/dist/api/default/guards.js +78 -0
- package/dist/api/default/guards.js.map +1 -0
- package/dist/api/default/guilds.d.ts +230 -0
- package/dist/api/default/guilds.d.ts.map +1 -0
- package/dist/api/default/guilds.js +2 -0
- package/dist/api/default/guilds.js.map +1 -0
- package/dist/api/default/helpers.d.ts +79 -0
- package/dist/api/default/helpers.d.ts.map +1 -0
- package/dist/api/default/helpers.js +79 -0
- package/dist/api/default/helpers.js.map +1 -0
- package/dist/api/default/instance.d.ts +47 -0
- package/dist/api/default/instance.d.ts.map +1 -0
- package/dist/api/default/instance.js +2 -0
- package/dist/api/default/instance.js.map +1 -0
- package/dist/api/default/invites.d.ts +57 -0
- package/dist/api/default/invites.d.ts.map +1 -0
- package/dist/api/default/invites.js +2 -0
- package/dist/api/default/invites.js.map +1 -0
- package/dist/api/default/logging.d.ts +37 -0
- package/dist/api/default/logging.d.ts.map +1 -0
- package/dist/api/default/logging.js +2 -0
- package/dist/api/default/logging.js.map +1 -0
- package/dist/api/default/members.d.ts +442 -0
- package/dist/api/default/members.d.ts.map +1 -0
- package/dist/api/default/members.js +2 -0
- package/dist/api/default/members.js.map +1 -0
- package/dist/api/default/messages.d.ts +898 -0
- package/dist/api/default/messages.d.ts.map +1 -0
- package/dist/api/default/messages.js +2 -0
- package/dist/api/default/messages.js.map +1 -0
- package/dist/api/default/oauth.d.ts +168 -0
- package/dist/api/default/oauth.d.ts.map +1 -0
- package/dist/api/default/oauth.js +84 -0
- package/dist/api/default/oauth.js.map +1 -0
- package/dist/api/default/permissions.d.ts +44 -0
- package/dist/api/default/permissions.d.ts.map +1 -0
- package/dist/api/default/permissions.js +2 -0
- package/dist/api/default/permissions.js.map +1 -0
- package/dist/api/default/presence.d.ts +88 -0
- package/dist/api/default/presence.d.ts.map +1 -0
- package/dist/api/default/presence.js +2 -0
- package/dist/api/default/presence.js.map +1 -0
- package/dist/api/default/rest.d.ts +28 -0
- package/dist/api/default/rest.d.ts.map +1 -0
- package/dist/api/default/rest.js +2 -0
- package/dist/api/default/rest.js.map +1 -0
- package/dist/api/default/results.d.ts +31 -0
- package/dist/api/default/results.d.ts.map +1 -0
- package/dist/api/default/results.js +14 -0
- package/dist/api/default/results.js.map +1 -0
- package/dist/api/default/roles.d.ts +119 -0
- package/dist/api/default/roles.d.ts.map +1 -0
- package/dist/api/default/roles.js +2 -0
- package/dist/api/default/roles.js.map +1 -0
- package/dist/api/default/stickers.d.ts +92 -0
- package/dist/api/default/stickers.d.ts.map +1 -0
- package/dist/api/default/stickers.js +2 -0
- package/dist/api/default/stickers.js.map +1 -0
- package/dist/api/default/supervisor.d.ts +51 -0
- package/dist/api/default/supervisor.d.ts.map +1 -0
- package/dist/api/default/supervisor.js +53 -0
- package/dist/api/default/supervisor.js.map +1 -0
- package/dist/api/default/threads.d.ts +158 -0
- package/dist/api/default/threads.d.ts.map +1 -0
- package/dist/api/default/threads.js +2 -0
- package/dist/api/default/threads.js.map +1 -0
- package/dist/api/default/users.d.ts +73 -0
- package/dist/api/default/users.d.ts.map +1 -0
- package/dist/api/default/users.js +2 -0
- package/dist/api/default/users.js.map +1 -0
- package/dist/api/default/webhook-client.d.ts +149 -0
- package/dist/api/default/webhook-client.d.ts.map +1 -0
- package/dist/api/default/webhook-client.js +69 -0
- package/dist/api/default/webhook-client.js.map +1 -0
- package/dist/api/default/webhooks.d.ts +62 -0
- package/dist/api/default/webhooks.d.ts.map +1 -0
- package/dist/api/default/webhooks.js +2 -0
- package/dist/api/default/webhooks.js.map +1 -0
- package/dist/api/effect/application.d.ts +29 -0
- package/dist/api/effect/application.d.ts.map +1 -0
- package/dist/api/effect/application.js +2 -0
- package/dist/api/effect/application.js.map +1 -0
- package/dist/api/effect/attachments.d.ts +84 -0
- package/dist/api/effect/attachments.d.ts.map +1 -0
- package/dist/api/effect/attachments.js +2 -0
- package/dist/api/effect/attachments.js.map +1 -0
- package/dist/api/effect/audit-logs.d.ts +42 -0
- package/dist/api/effect/audit-logs.d.ts.map +1 -0
- package/dist/api/effect/audit-logs.js +2 -0
- package/dist/api/effect/audit-logs.js.map +1 -0
- package/dist/api/effect/bot.d.ts +233 -0
- package/dist/api/effect/bot.d.ts.map +1 -0
- package/dist/api/effect/bot.js +230 -0
- package/dist/api/effect/bot.js.map +1 -0
- package/dist/api/effect/cache.d.ts +103 -0
- package/dist/api/effect/cache.d.ts.map +1 -0
- package/dist/api/effect/cache.js +2 -0
- package/dist/api/effect/cache.js.map +1 -0
- package/dist/api/effect/channels.d.ts +231 -0
- package/dist/api/effect/channels.d.ts.map +1 -0
- package/dist/api/effect/channels.js +2 -0
- package/dist/api/effect/channels.js.map +1 -0
- package/dist/api/effect/client.d.ts +622 -0
- package/dist/api/effect/client.d.ts.map +1 -0
- package/dist/api/effect/client.js +191 -0
- package/dist/api/effect/client.js.map +1 -0
- package/dist/api/effect/collectors.d.ts +90 -0
- package/dist/api/effect/collectors.d.ts.map +1 -0
- package/dist/api/effect/collectors.js +2 -0
- package/dist/api/effect/collectors.js.map +1 -0
- package/dist/api/effect/commands.d.ts +86 -0
- package/dist/api/effect/commands.d.ts.map +1 -0
- package/dist/api/effect/commands.js +87 -0
- package/dist/api/effect/commands.js.map +1 -0
- package/dist/api/effect/direct-messages.d.ts +102 -0
- package/dist/api/effect/direct-messages.d.ts.map +1 -0
- package/dist/api/effect/direct-messages.js +2 -0
- package/dist/api/effect/direct-messages.js.map +1 -0
- package/dist/api/effect/discovery.d.ts +68 -0
- package/dist/api/effect/discovery.d.ts.map +1 -0
- package/dist/api/effect/discovery.js +2 -0
- package/dist/api/effect/discovery.js.map +1 -0
- package/dist/api/effect/emojis.d.ts +77 -0
- package/dist/api/effect/emojis.d.ts.map +1 -0
- package/dist/api/effect/emojis.js +2 -0
- package/dist/api/effect/emojis.js.map +1 -0
- package/dist/api/effect/events.d.ts +78 -0
- package/dist/api/effect/events.d.ts.map +1 -0
- package/dist/api/effect/events.js +12 -0
- package/dist/api/effect/events.js.map +1 -0
- package/dist/api/effect/failures.d.ts +14 -0
- package/dist/api/effect/failures.d.ts.map +1 -0
- package/dist/api/effect/failures.js +2 -0
- package/dist/api/effect/failures.js.map +1 -0
- package/dist/api/effect/gateway.d.ts +63 -0
- package/dist/api/effect/gateway.d.ts.map +1 -0
- package/dist/api/effect/gateway.js +2 -0
- package/dist/api/effect/gateway.js.map +1 -0
- package/dist/api/effect/guards.d.ts +91 -0
- package/dist/api/effect/guards.d.ts.map +1 -0
- package/dist/api/effect/guards.js +94 -0
- package/dist/api/effect/guards.js.map +1 -0
- package/dist/api/effect/guilds.d.ts +221 -0
- package/dist/api/effect/guilds.d.ts.map +1 -0
- package/dist/api/effect/guilds.js +2 -0
- package/dist/api/effect/guilds.js.map +1 -0
- package/dist/api/effect/helpers.d.ts +300 -0
- package/dist/api/effect/helpers.d.ts.map +1 -0
- package/dist/api/effect/helpers.js +156 -0
- package/dist/api/effect/helpers.js.map +1 -0
- package/dist/api/effect/hierarchy.d.ts +26 -0
- package/dist/api/effect/hierarchy.d.ts.map +1 -0
- package/dist/api/effect/hierarchy.js +26 -0
- package/dist/api/effect/hierarchy.js.map +1 -0
- package/dist/api/effect/instance.d.ts +46 -0
- package/dist/api/effect/instance.d.ts.map +1 -0
- package/dist/api/effect/instance.js +8 -0
- package/dist/api/effect/instance.js.map +1 -0
- package/dist/api/effect/invites.d.ts +49 -0
- package/dist/api/effect/invites.d.ts.map +1 -0
- package/dist/api/effect/invites.js +2 -0
- package/dist/api/effect/invites.js.map +1 -0
- package/dist/api/effect/logging.d.ts +37 -0
- package/dist/api/effect/logging.d.ts.map +1 -0
- package/dist/api/effect/logging.js +2 -0
- package/dist/api/effect/logging.js.map +1 -0
- package/dist/api/effect/members.d.ts +433 -0
- package/dist/api/effect/members.d.ts.map +1 -0
- package/dist/api/effect/members.js +2 -0
- package/dist/api/effect/members.js.map +1 -0
- package/dist/api/effect/messages.d.ts +877 -0
- package/dist/api/effect/messages.d.ts.map +1 -0
- package/dist/api/effect/messages.js +2 -0
- package/dist/api/effect/messages.js.map +1 -0
- package/dist/api/effect/oauth.d.ts +148 -0
- package/dist/api/effect/oauth.d.ts.map +1 -0
- package/dist/api/effect/oauth.js +51 -0
- package/dist/api/effect/oauth.js.map +1 -0
- package/dist/api/effect/permissions.d.ts +41 -0
- package/dist/api/effect/permissions.d.ts.map +1 -0
- package/dist/api/effect/permissions.js +2 -0
- package/dist/api/effect/permissions.js.map +1 -0
- package/dist/api/effect/presence.d.ts +83 -0
- package/dist/api/effect/presence.d.ts.map +1 -0
- package/dist/api/effect/presence.js +2 -0
- package/dist/api/effect/presence.js.map +1 -0
- package/dist/api/effect/rest.d.ts +27 -0
- package/dist/api/effect/rest.d.ts.map +1 -0
- package/dist/api/effect/rest.js +2 -0
- package/dist/api/effect/rest.js.map +1 -0
- package/dist/api/effect/roles.d.ts +104 -0
- package/dist/api/effect/roles.d.ts.map +1 -0
- package/dist/api/effect/roles.js +2 -0
- package/dist/api/effect/roles.js.map +1 -0
- package/dist/api/effect/service.d.ts +76 -0
- package/dist/api/effect/service.d.ts.map +1 -0
- package/dist/api/effect/service.js +79 -0
- package/dist/api/effect/service.js.map +1 -0
- package/dist/api/effect/stickers.d.ts +81 -0
- package/dist/api/effect/stickers.d.ts.map +1 -0
- package/dist/api/effect/stickers.js +2 -0
- package/dist/api/effect/stickers.js.map +1 -0
- package/dist/api/effect/supervisor.d.ts +56 -0
- package/dist/api/effect/supervisor.d.ts.map +1 -0
- package/dist/api/effect/supervisor.js +58 -0
- package/dist/api/effect/supervisor.js.map +1 -0
- package/dist/api/effect/threads.d.ts +154 -0
- package/dist/api/effect/threads.d.ts.map +1 -0
- package/dist/api/effect/threads.js +2 -0
- package/dist/api/effect/threads.js.map +1 -0
- package/dist/api/effect/users.d.ts +62 -0
- package/dist/api/effect/users.d.ts.map +1 -0
- package/dist/api/effect/users.js +2 -0
- package/dist/api/effect/users.js.map +1 -0
- package/dist/api/effect/webhook-client.d.ts +140 -0
- package/dist/api/effect/webhook-client.d.ts.map +1 -0
- package/dist/api/effect/webhook-client.js +50 -0
- package/dist/api/effect/webhook-client.js.map +1 -0
- package/dist/api/effect/webhooks.d.ts +54 -0
- package/dist/api/effect/webhooks.d.ts.map +1 -0
- package/dist/api/effect/webhooks.js +2 -0
- package/dist/api/effect/webhooks.js.map +1 -0
- package/dist/api-errors.d.ts +609 -0
- package/dist/api-errors.d.ts.map +1 -0
- package/dist/api-errors.js +589 -0
- package/dist/api-errors.js.map +1 -0
- package/dist/application.d.ts +85 -0
- package/dist/application.d.ts.map +1 -0
- package/dist/application.js +44 -0
- package/dist/application.js.map +1 -0
- package/dist/assets.d.ts +197 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +419 -0
- package/dist/assets.js.map +1 -0
- package/dist/attachments.d.ts +400 -0
- package/dist/attachments.d.ts.map +1 -0
- package/dist/attachments.js +88 -0
- package/dist/attachments.js.map +1 -0
- package/dist/audit-logs.d.ts +292 -0
- package/dist/audit-logs.d.ts.map +1 -0
- package/dist/audit-logs.js +46 -0
- package/dist/audit-logs.js.map +1 -0
- package/dist/bot-runner.d.ts +69 -0
- package/dist/bot-runner.d.ts.map +1 -0
- package/dist/bot-runner.js +41 -0
- package/dist/bot-runner.js.map +1 -0
- package/dist/builders.d.ts +153 -0
- package/dist/builders.d.ts.map +1 -0
- package/dist/builders.js +326 -0
- package/dist/builders.js.map +1 -0
- package/dist/cache.d.ts +187 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +2 -0
- package/dist/cache.js.map +1 -0
- package/dist/channels.d.ts +903 -0
- package/dist/channels.d.ts.map +1 -0
- package/dist/channels.js +125 -0
- package/dist/channels.js.map +1 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +65 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +645 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/collectors.d.ts +205 -0
- package/dist/collectors.d.ts.map +1 -0
- package/dist/collectors.js +71 -0
- package/dist/collectors.js.map +1 -0
- package/dist/colors.d.ts +55 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/colors.js +40 -0
- package/dist/colors.js.map +1 -0
- package/dist/command-arguments.d.ts +353 -0
- package/dist/command-arguments.d.ts.map +1 -0
- package/dist/command-arguments.js +2 -0
- package/dist/command-arguments.js.map +1 -0
- package/dist/command-help.d.ts +54 -0
- package/dist/command-help.d.ts.map +1 -0
- package/dist/command-help.js +2 -0
- package/dist/command-help.js.map +1 -0
- package/dist/commands.d.ts +328 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +62 -0
- package/dist/commands.js.map +1 -0
- package/dist/counts.d.ts +124 -0
- package/dist/counts.d.ts.map +1 -0
- package/dist/counts.js +52 -0
- package/dist/counts.js.map +1 -0
- package/dist/default-commands.d.ts +400 -0
- package/dist/default-commands.d.ts.map +1 -0
- package/dist/default-commands.js +488 -0
- package/dist/default-commands.js.map +1 -0
- package/dist/default-supervisor.d.ts +111 -0
- package/dist/default-supervisor.d.ts.map +1 -0
- package/dist/default-supervisor.js +277 -0
- package/dist/default-supervisor.js.map +1 -0
- package/dist/discovery.d.ts +223 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +18 -0
- package/dist/discovery.js.map +1 -0
- package/dist/effect-testing.d.ts +388 -0
- package/dist/effect-testing.d.ts.map +1 -0
- package/dist/effect-testing.js +261 -0
- package/dist/effect-testing.js.map +1 -0
- package/dist/effect.d.ts +220 -0
- package/dist/effect.d.ts.map +1 -0
- package/dist/effect.js +101 -0
- package/dist/effect.js.map +1 -0
- package/dist/embeds.d.ts +243 -0
- package/dist/embeds.d.ts.map +1 -0
- package/dist/embeds.js +2 -0
- package/dist/embeds.js.map +1 -0
- package/dist/error-tools.d.ts +101 -0
- package/dist/error-tools.d.ts.map +1 -0
- package/dist/error-tools.js +125 -0
- package/dist/error-tools.js.map +1 -0
- package/dist/errors.d.ts +386 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +440 -0
- package/dist/errors.js.map +1 -0
- package/dist/events.d.ts +798 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/expressions.d.ts +188 -0
- package/dist/expressions.d.ts.map +1 -0
- package/dist/expressions.js +2 -0
- package/dist/expressions.js.map +1 -0
- package/dist/failures.d.ts +53 -0
- package/dist/failures.d.ts.map +1 -0
- package/dist/failures.js +2 -0
- package/dist/failures.js.map +1 -0
- package/dist/gateway.d.ts +48 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +60 -0
- package/dist/gateway.js.map +1 -0
- package/dist/guilds.d.ts +923 -0
- package/dist/guilds.d.ts.map +1 -0
- package/dist/guilds.js +204 -0
- package/dist/guilds.js.map +1 -0
- package/dist/helpers.d.ts +423 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +434 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +228 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/index.js.map +1 -0
- package/dist/input-validation.d.ts +51 -0
- package/dist/input-validation.d.ts.map +1 -0
- package/dist/input-validation.js +34 -0
- package/dist/input-validation.js.map +1 -0
- package/dist/instance.d.ts +101 -0
- package/dist/instance.d.ts.map +1 -0
- package/dist/instance.js +2 -0
- package/dist/instance.js.map +1 -0
- package/dist/internal/agents-section.d.ts +22 -0
- package/dist/internal/agents-section.d.ts.map +1 -0
- package/dist/internal/agents-section.js +101 -0
- package/dist/internal/agents-section.js.map +1 -0
- package/dist/internal/application.d.ts +16 -0
- package/dist/internal/application.d.ts.map +1 -0
- package/dist/internal/application.js +33 -0
- package/dist/internal/application.js.map +1 -0
- package/dist/internal/attachment-refresh.d.ts +18 -0
- package/dist/internal/attachment-refresh.d.ts.map +1 -0
- package/dist/internal/attachment-refresh.js +39 -0
- package/dist/internal/attachment-refresh.js.map +1 -0
- package/dist/internal/attachments.d.ts +45 -0
- package/dist/internal/attachments.d.ts.map +1 -0
- package/dist/internal/attachments.js +230 -0
- package/dist/internal/attachments.js.map +1 -0
- package/dist/internal/audit-logs.d.ts +13 -0
- package/dist/internal/audit-logs.d.ts.map +1 -0
- package/dist/internal/audit-logs.js +295 -0
- package/dist/internal/audit-logs.js.map +1 -0
- package/dist/internal/audit.d.ts +12 -0
- package/dist/internal/audit.d.ts.map +1 -0
- package/dist/internal/audit.js +22 -0
- package/dist/internal/audit.js.map +1 -0
- package/dist/internal/binding/default-adapters.d.ts +22 -0
- package/dist/internal/binding/default-adapters.d.ts.map +1 -0
- package/dist/internal/binding/default-adapters.js +304 -0
- package/dist/internal/binding/default-adapters.js.map +1 -0
- package/dist/internal/binding/default.d.ts +45 -0
- package/dist/internal/binding/default.d.ts.map +1 -0
- package/dist/internal/binding/default.js +86 -0
- package/dist/internal/binding/default.js.map +1 -0
- package/dist/internal/binding/execute.d.ts +51 -0
- package/dist/internal/binding/execute.d.ts.map +1 -0
- package/dist/internal/binding/execute.js +123 -0
- package/dist/internal/binding/execute.js.map +1 -0
- package/dist/internal/binding/native-adapters.d.ts +23 -0
- package/dist/internal/binding/native-adapters.d.ts.map +1 -0
- package/dist/internal/binding/native-adapters.js +90 -0
- package/dist/internal/binding/native-adapters.js.map +1 -0
- package/dist/internal/binding/native.d.ts +41 -0
- package/dist/internal/binding/native.d.ts.map +1 -0
- package/dist/internal/binding/native.js +34 -0
- package/dist/internal/binding/native.js.map +1 -0
- package/dist/internal/binding/operations.d.ts +361 -0
- package/dist/internal/binding/operations.d.ts.map +1 -0
- package/dist/internal/binding/operations.js +272 -0
- package/dist/internal/binding/operations.js.map +1 -0
- package/dist/internal/bot-runner.d.ts +65 -0
- package/dist/internal/bot-runner.d.ts.map +1 -0
- package/dist/internal/bot-runner.js +363 -0
- package/dist/internal/bot-runner.js.map +1 -0
- package/dist/internal/cache-changes.d.ts +43 -0
- package/dist/internal/cache-changes.d.ts.map +1 -0
- package/dist/internal/cache-changes.js +320 -0
- package/dist/internal/cache-changes.js.map +1 -0
- package/dist/internal/cache.d.ts +57 -0
- package/dist/internal/cache.d.ts.map +1 -0
- package/dist/internal/cache.js +318 -0
- package/dist/internal/cache.js.map +1 -0
- package/dist/internal/calls.d.ts +16 -0
- package/dist/internal/calls.d.ts.map +1 -0
- package/dist/internal/calls.js +108 -0
- package/dist/internal/calls.js.map +1 -0
- package/dist/internal/channel-cache.d.ts +69 -0
- package/dist/internal/channel-cache.d.ts.map +1 -0
- package/dist/internal/channel-cache.js +413 -0
- package/dist/internal/channel-cache.js.map +1 -0
- package/dist/internal/channel-decode.d.ts +44 -0
- package/dist/internal/channel-decode.d.ts.map +1 -0
- package/dist/internal/channel-decode.js +377 -0
- package/dist/internal/channel-decode.js.map +1 -0
- package/dist/internal/channels.d.ts +60 -0
- package/dist/internal/channels.d.ts.map +1 -0
- package/dist/internal/channels.js +605 -0
- package/dist/internal/channels.js.map +1 -0
- package/dist/internal/client/backoff.d.ts +42 -0
- package/dist/internal/client/backoff.d.ts.map +1 -0
- package/dist/internal/client/backoff.js +36 -0
- package/dist/internal/client/backoff.js.map +1 -0
- package/dist/internal/client/configuration-fields.d.ts +14 -0
- package/dist/internal/client/configuration-fields.d.ts.map +1 -0
- package/dist/internal/client/configuration-fields.js +11 -0
- package/dist/internal/client/configuration-fields.js.map +1 -0
- package/dist/internal/client/drain.d.ts +33 -0
- package/dist/internal/client/drain.d.ts.map +1 -0
- package/dist/internal/client/drain.js +109 -0
- package/dist/internal/client/drain.js.map +1 -0
- package/dist/internal/client/intake.d.ts +27 -0
- package/dist/internal/client/intake.d.ts.map +1 -0
- package/dist/internal/client/intake.js +198 -0
- package/dist/internal/client/intake.js.map +1 -0
- package/dist/internal/client/lifetime.d.ts +35 -0
- package/dist/internal/client/lifetime.d.ts.map +1 -0
- package/dist/internal/client/lifetime.js +109 -0
- package/dist/internal/client/lifetime.js.map +1 -0
- package/dist/internal/client/shard-loop.d.ts +93 -0
- package/dist/internal/client/shard-loop.d.ts.map +1 -0
- package/dist/internal/client/shard-loop.js +452 -0
- package/dist/internal/client/shard-loop.js.map +1 -0
- package/dist/internal/client-registry.d.ts +26 -0
- package/dist/internal/client-registry.d.ts.map +1 -0
- package/dist/internal/client-registry.js +11 -0
- package/dist/internal/client-registry.js.map +1 -0
- package/dist/internal/client.d.ts +189 -0
- package/dist/internal/client.d.ts.map +1 -0
- package/dist/internal/client.js +1935 -0
- package/dist/internal/client.js.map +1 -0
- package/dist/internal/clock.d.ts +9 -0
- package/dist/internal/clock.d.ts.map +1 -0
- package/dist/internal/clock.js +5 -0
- package/dist/internal/clock.js.map +1 -0
- package/dist/internal/code-catalogue.d.ts +712 -0
- package/dist/internal/code-catalogue.d.ts.map +1 -0
- package/dist/internal/code-catalogue.js +655 -0
- package/dist/internal/code-catalogue.js.map +1 -0
- package/dist/internal/collector.d.ts +34 -0
- package/dist/internal/collector.d.ts.map +1 -0
- package/dist/internal/collector.js +400 -0
- package/dist/internal/collector.js.map +1 -0
- package/dist/internal/command-arguments.d.ts +29 -0
- package/dist/internal/command-arguments.d.ts.map +1 -0
- package/dist/internal/command-arguments.js +484 -0
- package/dist/internal/command-arguments.js.map +1 -0
- package/dist/internal/command-guards.d.ts +57 -0
- package/dist/internal/command-guards.d.ts.map +1 -0
- package/dist/internal/command-guards.js +81 -0
- package/dist/internal/command-guards.js.map +1 -0
- package/dist/internal/command-help.d.ts +15 -0
- package/dist/internal/command-help.d.ts.map +1 -0
- package/dist/internal/command-help.js +121 -0
- package/dist/internal/command-help.js.map +1 -0
- package/dist/internal/commands.d.ts +212 -0
- package/dist/internal/commands.d.ts.map +1 -0
- package/dist/internal/commands.js +1004 -0
- package/dist/internal/commands.js.map +1 -0
- package/dist/internal/configuration.d.ts +86 -0
- package/dist/internal/configuration.d.ts.map +1 -0
- package/dist/internal/configuration.js +401 -0
- package/dist/internal/configuration.js.map +1 -0
- package/dist/internal/counts.d.ts +33 -0
- package/dist/internal/counts.d.ts.map +1 -0
- package/dist/internal/counts.js +348 -0
- package/dist/internal/counts.js.map +1 -0
- package/dist/internal/decode/primitives.d.ts +30 -0
- package/dist/internal/decode/primitives.d.ts.map +1 -0
- package/dist/internal/decode/primitives.js +56 -0
- package/dist/internal/decode/primitives.js.map +1 -0
- package/dist/internal/decode/timestamp.d.ts +13 -0
- package/dist/internal/decode/timestamp.d.ts.map +1 -0
- package/dist/internal/decode/timestamp.js +27 -0
- package/dist/internal/decode/timestamp.js.map +1 -0
- package/dist/internal/decode/trace.d.ts +11 -0
- package/dist/internal/decode/trace.d.ts.map +1 -0
- package/dist/internal/decode/trace.js +69 -0
- package/dist/internal/decode/trace.js.map +1 -0
- package/dist/internal/defects.d.ts +48 -0
- package/dist/internal/defects.d.ts.map +1 -0
- package/dist/internal/defects.js +100 -0
- package/dist/internal/defects.js.map +1 -0
- package/dist/internal/effect-failures.d.ts +12 -0
- package/dist/internal/effect-failures.d.ts.map +1 -0
- package/dist/internal/effect-failures.js +45 -0
- package/dist/internal/effect-failures.js.map +1 -0
- package/dist/internal/embeds.d.ts +12 -0
- package/dist/internal/embeds.d.ts.map +1 -0
- package/dist/internal/embeds.js +308 -0
- package/dist/internal/embeds.js.map +1 -0
- package/dist/internal/events.d.ts +156 -0
- package/dist/internal/events.d.ts.map +1 -0
- package/dist/internal/events.js +1071 -0
- package/dist/internal/events.js.map +1 -0
- package/dist/internal/expiry-queue.d.ts +42 -0
- package/dist/internal/expiry-queue.d.ts.map +1 -0
- package/dist/internal/expiry-queue.js +138 -0
- package/dist/internal/expiry-queue.js.map +1 -0
- package/dist/internal/expressions.d.ts +35 -0
- package/dist/internal/expressions.d.ts.map +1 -0
- package/dist/internal/expressions.js +311 -0
- package/dist/internal/expressions.js.map +1 -0
- package/dist/internal/failures.d.ts +107 -0
- package/dist/internal/failures.d.ts.map +1 -0
- package/dist/internal/failures.js +416 -0
- package/dist/internal/failures.js.map +1 -0
- package/dist/internal/field-text.d.ts +10 -0
- package/dist/internal/field-text.d.ts.map +1 -0
- package/dist/internal/field-text.js +37 -0
- package/dist/internal/field-text.js.map +1 -0
- package/dist/internal/gateway/commands.d.ts +92 -0
- package/dist/internal/gateway/commands.d.ts.map +1 -0
- package/dist/internal/gateway/commands.js +223 -0
- package/dist/internal/gateway/commands.js.map +1 -0
- package/dist/internal/gateway/dispatch-table.d.ts +42 -0
- package/dist/internal/gateway/dispatch-table.d.ts.map +1 -0
- package/dist/internal/gateway/dispatch-table.js +288 -0
- package/dist/internal/gateway/dispatch-table.js.map +1 -0
- package/dist/internal/gateway/event-dispatches.d.ts +97 -0
- package/dist/internal/gateway/event-dispatches.d.ts.map +1 -0
- package/dist/internal/gateway/event-dispatches.js +172 -0
- package/dist/internal/gateway/event-dispatches.js.map +1 -0
- package/dist/internal/gateway/frames.d.ts +45 -0
- package/dist/internal/gateway/frames.d.ts.map +1 -0
- package/dist/internal/gateway/frames.js +121 -0
- package/dist/internal/gateway/frames.js.map +1 -0
- package/dist/internal/gateway/options.d.ts +24 -0
- package/dist/internal/gateway/options.d.ts.map +1 -0
- package/dist/internal/gateway/options.js +103 -0
- package/dist/internal/gateway/options.js.map +1 -0
- package/dist/internal/gateway/session.d.ts +104 -0
- package/dist/internal/gateway/session.d.ts.map +1 -0
- package/dist/internal/gateway/session.js +420 -0
- package/dist/internal/gateway/session.js.map +1 -0
- package/dist/internal/gateway-requests.d.ts +10 -0
- package/dist/internal/gateway-requests.d.ts.map +1 -0
- package/dist/internal/gateway-requests.js +26 -0
- package/dist/internal/gateway-requests.js.map +1 -0
- package/dist/internal/gateway.d.ts +19 -0
- package/dist/internal/gateway.d.ts.map +1 -0
- package/dist/internal/gateway.js +11 -0
- package/dist/internal/gateway.js.map +1 -0
- package/dist/internal/guild-cache.d.ts +69 -0
- package/dist/internal/guild-cache.d.ts.map +1 -0
- package/dist/internal/guild-cache.js +402 -0
- package/dist/internal/guild-cache.js.map +1 -0
- package/dist/internal/guild-discovery.d.ts +15 -0
- package/dist/internal/guild-discovery.d.ts.map +1 -0
- package/dist/internal/guild-discovery.js +258 -0
- package/dist/internal/guild-discovery.js.map +1 -0
- package/dist/internal/guild-lifecycle.d.ts +18 -0
- package/dist/internal/guild-lifecycle.d.ts.map +1 -0
- package/dist/internal/guild-lifecycle.js +119 -0
- package/dist/internal/guild-lifecycle.js.map +1 -0
- package/dist/internal/guild-settings.d.ts +11 -0
- package/dist/internal/guild-settings.d.ts.map +1 -0
- package/dist/internal/guild-settings.js +150 -0
- package/dist/internal/guild-settings.js.map +1 -0
- package/dist/internal/guilds.d.ts +94 -0
- package/dist/internal/guilds.d.ts.map +1 -0
- package/dist/internal/guilds.js +785 -0
- package/dist/internal/guilds.js.map +1 -0
- package/dist/internal/init-command.d.ts +54 -0
- package/dist/internal/init-command.d.ts.map +1 -0
- package/dist/internal/init-command.js +248 -0
- package/dist/internal/init-command.js.map +1 -0
- package/dist/internal/instance.d.ts +69 -0
- package/dist/internal/instance.d.ts.map +1 -0
- package/dist/internal/instance.js +455 -0
- package/dist/internal/instance.js.map +1 -0
- package/dist/internal/invalid-callback-return.d.ts +3 -0
- package/dist/internal/invalid-callback-return.d.ts.map +1 -0
- package/dist/internal/invalid-callback-return.js +26 -0
- package/dist/internal/invalid-callback-return.js.map +1 -0
- package/dist/internal/invites.d.ts +19 -0
- package/dist/internal/invites.d.ts.map +1 -0
- package/dist/internal/invites.js +182 -0
- package/dist/internal/invites.js.map +1 -0
- package/dist/internal/logging.d.ts +129 -0
- package/dist/internal/logging.d.ts.map +1 -0
- package/dist/internal/logging.js +868 -0
- package/dist/internal/logging.js.map +1 -0
- package/dist/internal/logical-scheduler.d.ts +27 -0
- package/dist/internal/logical-scheduler.d.ts.map +1 -0
- package/dist/internal/logical-scheduler.js +102 -0
- package/dist/internal/logical-scheduler.js.map +1 -0
- package/dist/internal/masking.d.ts +13 -0
- package/dist/internal/masking.d.ts.map +1 -0
- package/dist/internal/masking.js +235 -0
- package/dist/internal/masking.js.map +1 -0
- package/dist/internal/member-chunks.d.ts +96 -0
- package/dist/internal/member-chunks.d.ts.map +1 -0
- package/dist/internal/member-chunks.js +557 -0
- package/dist/internal/member-chunks.js.map +1 -0
- package/dist/internal/member-search-workflow.d.ts +19 -0
- package/dist/internal/member-search-workflow.d.ts.map +1 -0
- package/dist/internal/member-search-workflow.js +143 -0
- package/dist/internal/member-search-workflow.js.map +1 -0
- package/dist/internal/member-search.d.ts +20 -0
- package/dist/internal/member-search.d.ts.map +1 -0
- package/dist/internal/member-search.js +201 -0
- package/dist/internal/member-search.js.map +1 -0
- package/dist/internal/message-cleanup.d.ts +9 -0
- package/dist/internal/message-cleanup.d.ts.map +1 -0
- package/dist/internal/message-cleanup.js +368 -0
- package/dist/internal/message-cleanup.js.map +1 -0
- package/dist/internal/message-fields.d.ts +9 -0
- package/dist/internal/message-fields.d.ts.map +1 -0
- package/dist/internal/message-fields.js +55 -0
- package/dist/internal/message-fields.js.map +1 -0
- package/dist/internal/message-search-workflow.d.ts +14 -0
- package/dist/internal/message-search-workflow.d.ts.map +1 -0
- package/dist/internal/message-search-workflow.js +101 -0
- package/dist/internal/message-search-workflow.js.map +1 -0
- package/dist/internal/message-search.d.ts +19 -0
- package/dist/internal/message-search.d.ts.map +1 -0
- package/dist/internal/message-search.js +317 -0
- package/dist/internal/message-search.js.map +1 -0
- package/dist/internal/message.d.ts +34 -0
- package/dist/internal/message.d.ts.map +1 -0
- package/dist/internal/message.js +723 -0
- package/dist/internal/message.js.map +1 -0
- package/dist/internal/metrics.d.ts +16 -0
- package/dist/internal/metrics.d.ts.map +1 -0
- package/dist/internal/metrics.js +49 -0
- package/dist/internal/metrics.js.map +1 -0
- package/dist/internal/moderation.d.ts +20 -0
- package/dist/internal/moderation.d.ts.map +1 -0
- package/dist/internal/moderation.js +219 -0
- package/dist/internal/moderation.js.map +1 -0
- package/dist/internal/multipart.d.ts +10 -0
- package/dist/internal/multipart.d.ts.map +1 -0
- package/dist/internal/multipart.js +156 -0
- package/dist/internal/multipart.js.map +1 -0
- package/dist/internal/node-version.d.ts +10 -0
- package/dist/internal/node-version.d.ts.map +1 -0
- package/dist/internal/node-version.js +21 -0
- package/dist/internal/node-version.js.map +1 -0
- package/dist/internal/oauth.d.ts +29 -0
- package/dist/internal/oauth.d.ts.map +1 -0
- package/dist/internal/oauth.js +721 -0
- package/dist/internal/oauth.js.map +1 -0
- package/dist/internal/observer.d.ts +21 -0
- package/dist/internal/observer.d.ts.map +1 -0
- package/dist/internal/observer.js +48 -0
- package/dist/internal/observer.js.map +1 -0
- package/dist/internal/operation-signal.d.ts +9 -0
- package/dist/internal/operation-signal.d.ts.map +1 -0
- package/dist/internal/operation-signal.js +19 -0
- package/dist/internal/operation-signal.js.map +1 -0
- package/dist/internal/pagination.d.ts +67 -0
- package/dist/internal/pagination.d.ts.map +1 -0
- package/dist/internal/pagination.js +306 -0
- package/dist/internal/pagination.js.map +1 -0
- package/dist/internal/permission-requirements.d.ts +34 -0
- package/dist/internal/permission-requirements.d.ts.map +1 -0
- package/dist/internal/permission-requirements.js +204 -0
- package/dist/internal/permission-requirements.js.map +1 -0
- package/dist/internal/permissions.d.ts +28 -0
- package/dist/internal/permissions.d.ts.map +1 -0
- package/dist/internal/permissions.js +314 -0
- package/dist/internal/permissions.js.map +1 -0
- package/dist/internal/pins.d.ts +24 -0
- package/dist/internal/pins.d.ts.map +1 -0
- package/dist/internal/pins.js +83 -0
- package/dist/internal/pins.js.map +1 -0
- package/dist/internal/presence.d.ts +101 -0
- package/dist/internal/presence.d.ts.map +1 -0
- package/dist/internal/presence.js +581 -0
- package/dist/internal/presence.js.map +1 -0
- package/dist/internal/protocol/gateway.d.ts +116 -0
- package/dist/internal/protocol/gateway.d.ts.map +1 -0
- package/dist/internal/protocol/gateway.js +258 -0
- package/dist/internal/protocol/gateway.js.map +1 -0
- package/dist/internal/rate-limit-templates.d.ts +2 -0
- package/dist/internal/rate-limit-templates.d.ts.map +1 -0
- package/dist/internal/rate-limit-templates.js +132 -0
- package/dist/internal/rate-limit-templates.js.map +1 -0
- package/dist/internal/rate-limits.d.ts +32 -0
- package/dist/internal/rate-limits.d.ts.map +1 -0
- package/dist/internal/rate-limits.js +306 -0
- package/dist/internal/rate-limits.js.map +1 -0
- package/dist/internal/reaction-collector.d.ts +39 -0
- package/dist/internal/reaction-collector.d.ts.map +1 -0
- package/dist/internal/reaction-collector.js +441 -0
- package/dist/internal/reaction-collector.js.map +1 -0
- package/dist/internal/reaction-pages.d.ts +18 -0
- package/dist/internal/reaction-pages.d.ts.map +1 -0
- package/dist/internal/reaction-pages.js +213 -0
- package/dist/internal/reaction-pages.js.map +1 -0
- package/dist/internal/reactions.d.ts +30 -0
- package/dist/internal/reactions.d.ts.map +1 -0
- package/dist/internal/reactions.js +160 -0
- package/dist/internal/reactions.js.map +1 -0
- package/dist/internal/rejection-scope.d.ts +25 -0
- package/dist/internal/rejection-scope.d.ts.map +1 -0
- package/dist/internal/rejection-scope.js +103 -0
- package/dist/internal/rejection-scope.js.map +1 -0
- package/dist/internal/response-json.d.ts +12 -0
- package/dist/internal/response-json.d.ts.map +1 -0
- package/dist/internal/response-json.js +74 -0
- package/dist/internal/response-json.js.map +1 -0
- package/dist/internal/rest/admission.d.ts +77 -0
- package/dist/internal/rest/admission.d.ts.map +1 -0
- package/dist/internal/rest/admission.js +178 -0
- package/dist/internal/rest/admission.js.map +1 -0
- package/dist/internal/rest/attempt.d.ts +124 -0
- package/dist/internal/rest/attempt.d.ts.map +1 -0
- package/dist/internal/rest/attempt.js +410 -0
- package/dist/internal/rest/attempt.js.map +1 -0
- package/dist/internal/rest/classify.d.ts +93 -0
- package/dist/internal/rest/classify.d.ts.map +1 -0
- package/dist/internal/rest/classify.js +304 -0
- package/dist/internal/rest/classify.js.map +1 -0
- package/dist/internal/rest/download.d.ts +66 -0
- package/dist/internal/rest/download.d.ts.map +1 -0
- package/dist/internal/rest/download.js +552 -0
- package/dist/internal/rest/download.js.map +1 -0
- package/dist/internal/rest/options.d.ts +42 -0
- package/dist/internal/rest/options.d.ts.map +1 -0
- package/dist/internal/rest/options.js +99 -0
- package/dist/internal/rest/options.js.map +1 -0
- package/dist/internal/rest/owner.d.ts +154 -0
- package/dist/internal/rest/owner.d.ts.map +1 -0
- package/dist/internal/rest/owner.js +1292 -0
- package/dist/internal/rest/owner.js.map +1 -0
- package/dist/internal/rest/request.d.ts +31 -0
- package/dist/internal/rest/request.d.ts.map +1 -0
- package/dist/internal/rest/request.js +227 -0
- package/dist/internal/rest/request.js.map +1 -0
- package/dist/internal/rest.d.ts +10 -0
- package/dist/internal/rest.d.ts.map +1 -0
- package/dist/internal/rest.js +9 -0
- package/dist/internal/rest.js.map +1 -0
- package/dist/internal/retention-age.d.ts +11 -0
- package/dist/internal/retention-age.d.ts.map +1 -0
- package/dist/internal/retention-age.js +29 -0
- package/dist/internal/retention-age.js.map +1 -0
- package/dist/internal/role-hierarchy-workflow.d.ts +15 -0
- package/dist/internal/role-hierarchy-workflow.d.ts.map +1 -0
- package/dist/internal/role-hierarchy-workflow.js +122 -0
- package/dist/internal/role-hierarchy-workflow.js.map +1 -0
- package/dist/internal/role-hierarchy.d.ts +11 -0
- package/dist/internal/role-hierarchy.d.ts.map +1 -0
- package/dist/internal/role-hierarchy.js +87 -0
- package/dist/internal/role-hierarchy.js.map +1 -0
- package/dist/internal/scheduled-tasks.d.ts +46 -0
- package/dist/internal/scheduled-tasks.d.ts.map +1 -0
- package/dist/internal/scheduled-tasks.js +190 -0
- package/dist/internal/scheduled-tasks.js.map +1 -0
- package/dist/internal/sharding.d.ts +62 -0
- package/dist/internal/sharding.d.ts.map +1 -0
- package/dist/internal/sharding.js +205 -0
- package/dist/internal/sharding.js.map +1 -0
- package/dist/internal/starter-project.d.ts +27 -0
- package/dist/internal/starter-project.d.ts.map +1 -0
- package/dist/internal/starter-project.js +224 -0
- package/dist/internal/starter-project.js.map +1 -0
- package/dist/internal/suggest.d.ts +12 -0
- package/dist/internal/suggest.d.ts.map +1 -0
- package/dist/internal/suggest.js +51 -0
- package/dist/internal/suggest.js.map +1 -0
- package/dist/internal/supervisor.d.ts +95 -0
- package/dist/internal/supervisor.d.ts.map +1 -0
- package/dist/internal/supervisor.js +1829 -0
- package/dist/internal/supervisor.js.map +1 -0
- package/dist/internal/testing/discovery.d.ts +24 -0
- package/dist/internal/testing/discovery.d.ts.map +1 -0
- package/dist/internal/testing/discovery.js +22 -0
- package/dist/internal/testing/discovery.js.map +1 -0
- package/dist/internal/testing/errors.d.ts +43 -0
- package/dist/internal/testing/errors.d.ts.map +1 -0
- package/dist/internal/testing/errors.js +63 -0
- package/dist/internal/testing/errors.js.map +1 -0
- package/dist/internal/testing/fixtures.d.ts +477 -0
- package/dist/internal/testing/fixtures.d.ts.map +1 -0
- package/dist/internal/testing/fixtures.js +233 -0
- package/dist/internal/testing/fixtures.js.map +1 -0
- package/dist/internal/testing/gateway.d.ts +51 -0
- package/dist/internal/testing/gateway.d.ts.map +1 -0
- package/dist/internal/testing/gateway.js +265 -0
- package/dist/internal/testing/gateway.js.map +1 -0
- package/dist/internal/testing/harness.d.ts +60 -0
- package/dist/internal/testing/harness.d.ts.map +1 -0
- package/dist/internal/testing/harness.js +280 -0
- package/dist/internal/testing/harness.js.map +1 -0
- package/dist/internal/testing/http.d.ts +31 -0
- package/dist/internal/testing/http.d.ts.map +1 -0
- package/dist/internal/testing/http.js +347 -0
- package/dist/internal/testing/http.js.map +1 -0
- package/dist/internal/testing/types.d.ts +222 -0
- package/dist/internal/testing/types.d.ts.map +1 -0
- package/dist/internal/testing/types.js +2 -0
- package/dist/internal/testing/types.js.map +1 -0
- package/dist/internal/testing/wait.d.ts +16 -0
- package/dist/internal/testing/wait.d.ts.map +1 -0
- package/dist/internal/testing/wait.js +55 -0
- package/dist/internal/testing/wait.js.map +1 -0
- package/dist/internal/thread-events.d.ts +40 -0
- package/dist/internal/thread-events.d.ts.map +1 -0
- package/dist/internal/thread-events.js +121 -0
- package/dist/internal/thread-events.js.map +1 -0
- package/dist/internal/threads.d.ts +47 -0
- package/dist/internal/threads.d.ts.map +1 -0
- package/dist/internal/threads.js +587 -0
- package/dist/internal/threads.js.map +1 -0
- package/dist/internal/transfer-source.d.ts +29 -0
- package/dist/internal/transfer-source.d.ts.map +1 -0
- package/dist/internal/transfer-source.js +347 -0
- package/dist/internal/transfer-source.js.map +1 -0
- package/dist/internal/transport/http.d.ts +12 -0
- package/dist/internal/transport/http.d.ts.map +1 -0
- package/dist/internal/transport/http.js +44 -0
- package/dist/internal/transport/http.js.map +1 -0
- package/dist/internal/transport/index.d.ts +21 -0
- package/dist/internal/transport/index.d.ts.map +1 -0
- package/dist/internal/transport/index.js +15 -0
- package/dist/internal/transport/index.js.map +1 -0
- package/dist/internal/transport/socket.d.ts +51 -0
- package/dist/internal/transport/socket.d.ts.map +1 -0
- package/dist/internal/transport/socket.js +27 -0
- package/dist/internal/transport/socket.js.map +1 -0
- package/dist/internal/transport/user-agent.d.ts +7 -0
- package/dist/internal/transport/user-agent.d.ts.map +1 -0
- package/dist/internal/transport/user-agent.js +42 -0
- package/dist/internal/transport/user-agent.js.map +1 -0
- package/dist/internal/uploads.d.ts +23 -0
- package/dist/internal/uploads.d.ts.map +1 -0
- package/dist/internal/uploads.js +89 -0
- package/dist/internal/uploads.js.map +1 -0
- package/dist/internal/user-cache.d.ts +50 -0
- package/dist/internal/user-cache.d.ts.map +1 -0
- package/dist/internal/user-cache.js +273 -0
- package/dist/internal/user-cache.js.map +1 -0
- package/dist/internal/users.d.ts +41 -0
- package/dist/internal/users.d.ts.map +1 -0
- package/dist/internal/users.js +333 -0
- package/dist/internal/users.js.map +1 -0
- package/dist/internal/vanity-url.d.ts +11 -0
- package/dist/internal/vanity-url.d.ts.map +1 -0
- package/dist/internal/vanity-url.js +58 -0
- package/dist/internal/vanity-url.js.map +1 -0
- package/dist/internal/webhooks.d.ts +58 -0
- package/dist/internal/webhooks.d.ts.map +1 -0
- package/dist/internal/webhooks.js +490 -0
- package/dist/internal/webhooks.js.map +1 -0
- package/dist/invites.d.ts +86 -0
- package/dist/invites.d.ts.map +1 -0
- package/dist/invites.js +2 -0
- package/dist/invites.js.map +1 -0
- package/dist/logging.d.ts +228 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +2 -0
- package/dist/logging.js.map +1 -0
- package/dist/member-chunks.d.ts +145 -0
- package/dist/member-chunks.d.ts.map +1 -0
- package/dist/member-chunks.js +68 -0
- package/dist/member-chunks.js.map +1 -0
- package/dist/member-search.d.ts +140 -0
- package/dist/member-search.d.ts.map +1 -0
- package/dist/member-search.js +14 -0
- package/dist/member-search.js.map +1 -0
- package/dist/message-cleanup.d.ts +227 -0
- package/dist/message-cleanup.d.ts.map +1 -0
- package/dist/message-cleanup.js +101 -0
- package/dist/message-cleanup.js.map +1 -0
- package/dist/message-errors.d.ts +172 -0
- package/dist/message-errors.d.ts.map +1 -0
- package/dist/message-errors.js +173 -0
- package/dist/message-errors.js.map +1 -0
- package/dist/message-search.d.ts +201 -0
- package/dist/message-search.d.ts.map +1 -0
- package/dist/message-search.js +2 -0
- package/dist/message-search.js.map +1 -0
- package/dist/messages.d.ts +694 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +37 -0
- package/dist/messages.js.map +1 -0
- package/dist/native-commands.d.ts +451 -0
- package/dist/native-commands.d.ts.map +1 -0
- package/dist/native-commands.js +432 -0
- package/dist/native-commands.js.map +1 -0
- package/dist/native-supervisor.d.ts +125 -0
- package/dist/native-supervisor.d.ts.map +1 -0
- package/dist/native-supervisor.js +126 -0
- package/dist/native-supervisor.js.map +1 -0
- package/dist/oauth.d.ts +298 -0
- package/dist/oauth.d.ts.map +1 -0
- package/dist/oauth.js +128 -0
- package/dist/oauth.js.map +1 -0
- package/dist/observer.d.ts +111 -0
- package/dist/observer.d.ts.map +1 -0
- package/dist/observer.js +2 -0
- package/dist/observer.js.map +1 -0
- package/dist/pagination.d.ts +117 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +61 -0
- package/dist/pagination.js.map +1 -0
- package/dist/permissions.d.ts +73 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +2 -0
- package/dist/permissions.js.map +1 -0
- package/dist/pins.d.ts +62 -0
- package/dist/pins.d.ts.map +1 -0
- package/dist/pins.js +2 -0
- package/dist/pins.js.map +1 -0
- package/dist/presence.d.ts +84 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +46 -0
- package/dist/presence.js.map +1 -0
- package/dist/reaction-pages.d.ts +99 -0
- package/dist/reaction-pages.d.ts.map +1 -0
- package/dist/reaction-pages.js +2 -0
- package/dist/reaction-pages.js.map +1 -0
- package/dist/reactions.d.ts +118 -0
- package/dist/reactions.d.ts.map +1 -0
- package/dist/reactions.js +2 -0
- package/dist/reactions.js.map +1 -0
- package/dist/rest.d.ts +260 -0
- package/dist/rest.d.ts.map +1 -0
- package/dist/rest.js +46 -0
- package/dist/rest.js.map +1 -0
- package/dist/role-hierarchy.d.ts +81 -0
- package/dist/role-hierarchy.d.ts.map +1 -0
- package/dist/role-hierarchy.js +53 -0
- package/dist/role-hierarchy.js.map +1 -0
- package/dist/sharding.d.ts +219 -0
- package/dist/sharding.d.ts.map +1 -0
- package/dist/sharding.js +86 -0
- package/dist/sharding.js.map +1 -0
- package/dist/supervisor.d.ts +392 -0
- package/dist/supervisor.d.ts.map +1 -0
- package/dist/supervisor.js +101 -0
- package/dist/supervisor.js.map +1 -0
- package/dist/testing.d.ts +258 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +202 -0
- package/dist/testing.js.map +1 -0
- package/dist/text.d.ts +38 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +46 -0
- package/dist/text.js.map +1 -0
- package/dist/threads.d.ts +258 -0
- package/dist/threads.d.ts.map +1 -0
- package/dist/threads.js +2 -0
- package/dist/threads.js.map +1 -0
- package/dist/users.d.ts +204 -0
- package/dist/users.d.ts.map +1 -0
- package/dist/users.js +44 -0
- package/dist/users.js.map +1 -0
- package/dist/webhooks.d.ts +423 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +68 -0
- package/dist/webhooks.js.map +1 -0
- package/esm-only.cjs +3 -0
- package/examples/starter/bot-effect.ts +17 -0
- package/examples/starter/bot.js +13 -0
- package/examples/starter/bot.ts +13 -0
- package/package.json +82 -0
- package/src/api/default/application.ts +40 -0
- package/src/api/default/attachments.ts +106 -0
- package/src/api/default/audit-logs.ts +58 -0
- package/src/api/default/bot.ts +586 -0
- package/src/api/default/cache.ts +106 -0
- package/src/api/default/channels.ts +317 -0
- package/src/api/default/client.ts +829 -0
- package/src/api/default/collectors.ts +81 -0
- package/src/api/default/commands.ts +92 -0
- package/src/api/default/direct-messages.ts +143 -0
- package/src/api/default/discovery.ts +103 -0
- package/src/api/default/emojis.ts +125 -0
- package/src/api/default/events.ts +144 -0
- package/src/api/default/gateway.ts +67 -0
- package/src/api/default/guards.ts +173 -0
- package/src/api/default/guilds.ts +271 -0
- package/src/api/default/helpers.ts +97 -0
- package/src/api/default/instance.ts +49 -0
- package/src/api/default/invites.ts +73 -0
- package/src/api/default/logging.ts +37 -0
- package/src/api/default/members.ts +550 -0
- package/src/api/default/messages.ts +1053 -0
- package/src/api/default/oauth.ts +293 -0
- package/src/api/default/permissions.ts +47 -0
- package/src/api/default/presence.ts +88 -0
- package/src/api/default/rest.ts +30 -0
- package/src/api/default/results.ts +44 -0
- package/src/api/default/roles.ts +154 -0
- package/src/api/default/stickers.ts +129 -0
- package/src/api/default/supervisor.ts +53 -0
- package/src/api/default/threads.ts +233 -0
- package/src/api/default/users.ts +82 -0
- package/src/api/default/webhook-client.ts +266 -0
- package/src/api/default/webhooks.ts +89 -0
- package/src/api/effect/application.ts +29 -0
- package/src/api/effect/attachments.ts +100 -0
- package/src/api/effect/audit-logs.ts +50 -0
- package/src/api/effect/bot.ts +546 -0
- package/src/api/effect/cache.ts +110 -0
- package/src/api/effect/channels.ts +293 -0
- package/src/api/effect/client.ts +792 -0
- package/src/api/effect/collectors.ts +103 -0
- package/src/api/effect/commands.ts +87 -0
- package/src/api/effect/direct-messages.ts +119 -0
- package/src/api/effect/discovery.ts +87 -0
- package/src/api/effect/emojis.ts +108 -0
- package/src/api/effect/events.ts +92 -0
- package/src/api/effect/failures.ts +14 -0
- package/src/api/effect/gateway.ts +63 -0
- package/src/api/effect/guards.ts +194 -0
- package/src/api/effect/guilds.ts +247 -0
- package/src/api/effect/helpers.ts +359 -0
- package/src/api/effect/hierarchy.ts +26 -0
- package/src/api/effect/instance.ts +50 -0
- package/src/api/effect/invites.ts +59 -0
- package/src/api/effect/logging.ts +37 -0
- package/src/api/effect/members.ts +521 -0
- package/src/api/effect/messages.ts +1003 -0
- package/src/api/effect/oauth.ts +208 -0
- package/src/api/effect/permissions.ts +44 -0
- package/src/api/effect/presence.ts +83 -0
- package/src/api/effect/rest.ts +27 -0
- package/src/api/effect/roles.ts +136 -0
- package/src/api/effect/service.ts +104 -0
- package/src/api/effect/stickers.ts +112 -0
- package/src/api/effect/supervisor.ts +58 -0
- package/src/api/effect/threads.ts +221 -0
- package/src/api/effect/users.ts +66 -0
- package/src/api/effect/webhook-client.ts +206 -0
- package/src/api/effect/webhooks.ts +75 -0
- package/src/api-errors.ts +985 -0
- package/src/application.ts +103 -0
- package/src/assets.ts +731 -0
- package/src/attachments.ts +469 -0
- package/src/audit-logs.ts +355 -0
- package/src/bot-runner.ts +91 -0
- package/src/builders.ts +390 -0
- package/src/cache.ts +190 -0
- package/src/channels.ts +1051 -0
- package/src/cli.ts +60 -0
- package/src/client.ts +663 -0
- package/src/collectors.ts +248 -0
- package/src/colors.ts +91 -0
- package/src/command-arguments.ts +432 -0
- package/src/command-help.ts +55 -0
- package/src/commands.ts +403 -0
- package/src/counts.ts +160 -0
- package/src/default-commands.ts +1147 -0
- package/src/default-supervisor.ts +484 -0
- package/src/discovery.ts +241 -0
- package/src/effect-testing.ts +603 -0
- package/src/effect.ts +751 -0
- package/src/embeds.ts +253 -0
- package/src/error-tools.ts +191 -0
- package/src/errors.ts +849 -0
- package/src/events.ts +830 -0
- package/src/expressions.ts +198 -0
- package/src/failures.ts +55 -0
- package/src/gateway.ts +86 -0
- package/src/guilds.ts +1108 -0
- package/src/helpers.ts +836 -0
- package/src/index.ts +796 -0
- package/src/input-validation.ts +94 -0
- package/src/instance.ts +111 -0
- package/src/internal/agents-section.ts +114 -0
- package/src/internal/application.ts +51 -0
- package/src/internal/attachment-refresh.ts +57 -0
- package/src/internal/attachments.ts +313 -0
- package/src/internal/audit-logs.ts +336 -0
- package/src/internal/audit.ts +33 -0
- package/src/internal/binding/default-adapters.ts +482 -0
- package/src/internal/binding/default.ts +155 -0
- package/src/internal/binding/execute.ts +221 -0
- package/src/internal/binding/native-adapters.ts +199 -0
- package/src/internal/binding/native.ts +72 -0
- package/src/internal/binding/operations.ts +1171 -0
- package/src/internal/bot-runner.ts +480 -0
- package/src/internal/cache-changes.ts +363 -0
- package/src/internal/cache.ts +323 -0
- package/src/internal/calls.ts +119 -0
- package/src/internal/channel-cache.ts +435 -0
- package/src/internal/channel-decode.ts +399 -0
- package/src/internal/channels.ts +874 -0
- package/src/internal/client/backoff.ts +69 -0
- package/src/internal/client/configuration-fields.ts +18 -0
- package/src/internal/client/drain.ts +150 -0
- package/src/internal/client/intake.ts +228 -0
- package/src/internal/client/lifetime.ts +165 -0
- package/src/internal/client/shard-loop.ts +586 -0
- package/src/internal/client-registry.ts +35 -0
- package/src/internal/client.ts +2448 -0
- package/src/internal/clock.ts +11 -0
- package/src/internal/code-catalogue.ts +739 -0
- package/src/internal/collector.ts +452 -0
- package/src/internal/command-arguments.ts +585 -0
- package/src/internal/command-guards.ts +96 -0
- package/src/internal/command-help.ts +156 -0
- package/src/internal/commands.ts +1319 -0
- package/src/internal/configuration.ts +529 -0
- package/src/internal/counts.ts +471 -0
- package/src/internal/decode/primitives.ts +67 -0
- package/src/internal/decode/timestamp.ts +29 -0
- package/src/internal/decode/trace.ts +65 -0
- package/src/internal/defects.ts +115 -0
- package/src/internal/effect-failures.ts +65 -0
- package/src/internal/embeds.ts +355 -0
- package/src/internal/events.ts +1345 -0
- package/src/internal/expiry-queue.ts +148 -0
- package/src/internal/expressions.ts +415 -0
- package/src/internal/failures.ts +492 -0
- package/src/internal/field-text.ts +40 -0
- package/src/internal/gateway/commands.ts +328 -0
- package/src/internal/gateway/dispatch-table.ts +383 -0
- package/src/internal/gateway/event-dispatches.ts +201 -0
- package/src/internal/gateway/frames.ts +176 -0
- package/src/internal/gateway/options.ts +144 -0
- package/src/internal/gateway/session.ts +625 -0
- package/src/internal/gateway-requests.ts +26 -0
- package/src/internal/gateway.ts +22 -0
- package/src/internal/guild-cache.ts +424 -0
- package/src/internal/guild-discovery.ts +332 -0
- package/src/internal/guild-lifecycle.ts +128 -0
- package/src/internal/guild-settings.ts +209 -0
- package/src/internal/guilds.ts +949 -0
- package/src/internal/init-command.ts +305 -0
- package/src/internal/instance.ts +645 -0
- package/src/internal/invalid-callback-return.ts +28 -0
- package/src/internal/invites.ts +234 -0
- package/src/internal/logging.ts +1007 -0
- package/src/internal/logical-scheduler.ts +139 -0
- package/src/internal/masking.ts +224 -0
- package/src/internal/member-chunks.ts +649 -0
- package/src/internal/member-search-workflow.ts +237 -0
- package/src/internal/member-search.ts +272 -0
- package/src/internal/message-cleanup.ts +515 -0
- package/src/internal/message-fields.ts +71 -0
- package/src/internal/message-search-workflow.ts +166 -0
- package/src/internal/message-search.ts +476 -0
- package/src/internal/message.ts +879 -0
- package/src/internal/metrics.ts +55 -0
- package/src/internal/moderation.ts +288 -0
- package/src/internal/multipart.ts +171 -0
- package/src/internal/node-version.ts +22 -0
- package/src/internal/oauth.ts +1146 -0
- package/src/internal/observer.ts +62 -0
- package/src/internal/operation-signal.ts +26 -0
- package/src/internal/pagination.ts +494 -0
- package/src/internal/permission-requirements.ts +359 -0
- package/src/internal/permissions.ts +417 -0
- package/src/internal/pins.ts +115 -0
- package/src/internal/presence.ts +745 -0
- package/src/internal/protocol/gateway.ts +299 -0
- package/src/internal/rate-limit-templates.ts +138 -0
- package/src/internal/rate-limits.ts +346 -0
- package/src/internal/reaction-collector.ts +499 -0
- package/src/internal/reaction-pages.ts +260 -0
- package/src/internal/reactions.ts +174 -0
- package/src/internal/rejection-scope.ts +119 -0
- package/src/internal/response-json.ts +76 -0
- package/src/internal/rest/admission.ts +210 -0
- package/src/internal/rest/attempt.ts +617 -0
- package/src/internal/rest/classify.ts +391 -0
- package/src/internal/rest/download.ts +658 -0
- package/src/internal/rest/options.ts +145 -0
- package/src/internal/rest/owner.ts +1828 -0
- package/src/internal/rest/request.ts +289 -0
- package/src/internal/rest.ts +9 -0
- package/src/internal/retention-age.ts +33 -0
- package/src/internal/role-hierarchy-workflow.ts +150 -0
- package/src/internal/role-hierarchy.ts +93 -0
- package/src/internal/scheduled-tasks.ts +217 -0
- package/src/internal/sharding.ts +270 -0
- package/src/internal/starter-project.ts +251 -0
- package/src/internal/suggest.ts +50 -0
- package/src/internal/supervisor.ts +2253 -0
- package/src/internal/testing/discovery.ts +23 -0
- package/src/internal/testing/errors.ts +67 -0
- package/src/internal/testing/fixtures.ts +714 -0
- package/src/internal/testing/gateway.ts +305 -0
- package/src/internal/testing/harness.ts +328 -0
- package/src/internal/testing/http.ts +395 -0
- package/src/internal/testing/types.ts +240 -0
- package/src/internal/testing/wait.ts +63 -0
- package/src/internal/thread-events.ts +128 -0
- package/src/internal/threads.ts +718 -0
- package/src/internal/transfer-source.ts +359 -0
- package/src/internal/transport/http.ts +46 -0
- package/src/internal/transport/index.ts +23 -0
- package/src/internal/transport/socket.ts +71 -0
- package/src/internal/transport/user-agent.ts +46 -0
- package/src/internal/uploads.ts +111 -0
- package/src/internal/user-cache.ts +294 -0
- package/src/internal/users.ts +402 -0
- package/src/internal/vanity-url.ts +80 -0
- package/src/internal/webhooks.ts +690 -0
- package/src/invites.ts +87 -0
- package/src/logging.ts +247 -0
- package/src/member-chunks.ts +195 -0
- package/src/member-search.ts +152 -0
- package/src/message-cleanup.ts +308 -0
- package/src/message-errors.ts +245 -0
- package/src/message-search.ts +213 -0
- package/src/messages.ts +768 -0
- package/src/native-commands.ts +1249 -0
- package/src/native-supervisor.ts +345 -0
- package/src/oauth.ts +413 -0
- package/src/observer.ts +118 -0
- package/src/pagination.ts +172 -0
- package/src/permissions.ts +74 -0
- package/src/pins.ts +65 -0
- package/src/presence.ts +124 -0
- package/src/reaction-pages.ts +106 -0
- package/src/reactions.ts +126 -0
- package/src/rest.ts +282 -0
- package/src/role-hierarchy.ts +127 -0
- package/src/sharding.ts +272 -0
- package/src/supervisor.ts +460 -0
- package/src/testing.ts +424 -0
- package/src/text.ts +76 -0
- package/src/threads.ts +274 -0
- package/src/users.ts +237 -0
- package/src/webhooks.ts +512 -0
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import type * as Schedule from "effect/Schedule";
|
|
3
|
+
import * as Scope from "effect/Scope";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
|
+
import type { LoggingOptions } from "#sdk/logging";
|
|
6
|
+
import type { ClientDiagnostics, ClientState, ClientOptions as SharedClientOptions, ConnectionRecoveryOptions, ConnectionState, ScheduleOptions, ShutdownOptions } from "#sdk/client";
|
|
7
|
+
import type { MessageCacheOptions } from "#sdk/cache";
|
|
8
|
+
import { ConfigurationError, type ConnectError, type ConnectionFailure } from "#sdk/errors";
|
|
9
|
+
import { EventOverflowError, type EventWaitFailure } from "#sdk/message-errors";
|
|
10
|
+
import type { Message, MessageCore, MessageFields, SelectedMessage } from "#sdk/messages";
|
|
11
|
+
import type { EventBufferOptions, EventContext, EventWaitOptions, EventMap, EventName } from "#sdk/events";
|
|
12
|
+
import { type Instance } from "./instance.js";
|
|
13
|
+
import { type FailureReport } from "./failures.js";
|
|
14
|
+
import { type Subscription, type EventHandlerOptions, type EventMiddleware, type MiddlewareRegistration } from "./events.js";
|
|
15
|
+
import { type Attachments } from "./attachments.js";
|
|
16
|
+
import { type Messages } from "./messages.js";
|
|
17
|
+
import { type AuditLogs } from "./audit-logs.js";
|
|
18
|
+
import { type Invites } from "./invites.js";
|
|
19
|
+
import { type Emojis } from "./emojis.js";
|
|
20
|
+
import { type Stickers } from "./stickers.js";
|
|
21
|
+
import { type Discovery } from "./discovery.js";
|
|
22
|
+
import { type Guilds } from "./guilds.js";
|
|
23
|
+
import { type Channels } from "./channels.js";
|
|
24
|
+
import { type Threads } from "./threads.js";
|
|
25
|
+
import { type Members } from "./members.js";
|
|
26
|
+
import { type PermissionHelpers } from "./permissions.js";
|
|
27
|
+
import { type Roles } from "./roles.js";
|
|
28
|
+
import { type Webhooks } from "./webhooks.js";
|
|
29
|
+
import { type ClientCache } from "./cache.js";
|
|
30
|
+
import { type RestRequests } from "./rest.js";
|
|
31
|
+
import { type GatewayCommands } from "./gateway.js";
|
|
32
|
+
import { type ClientLogging } from "./logging.js";
|
|
33
|
+
import { type Presence } from "./presence.js";
|
|
34
|
+
import { type CurrentBotApplication } from "./application.js";
|
|
35
|
+
import { type Users } from "./users.js";
|
|
36
|
+
import { type DirectMessages } from "./direct-messages.js";
|
|
37
|
+
/**
|
|
38
|
+
* Choose the client's connection, logging, message fields, failure hook and optional caches.
|
|
39
|
+
* The createClient function reads these options when its Effect executes, not when the Effect is built.
|
|
40
|
+
* Required services for the onError hook are captured at that time.
|
|
41
|
+
* The sharding option chooses which gateway shards this client owns. Automatic sharding, and a client without sharding
|
|
42
|
+
* settings, may move to a larger plan while the client runs. Shard zero receives direct-message traffic.
|
|
43
|
+
* HTTP and cache budgets apply to the whole client, not separately to each shard.
|
|
44
|
+
* The messageFields option chooses which optional message fields are returned, including nested results, callbacks and cached messages.
|
|
45
|
+
* Omission returns full Message objects. The selection cannot change after client creation.
|
|
46
|
+
* TypeScript usually infers the type parameters from these options.
|
|
47
|
+
* If supplying error and service types E and R explicitly with messageFields, also supply the selected-field tuple as F
|
|
48
|
+
*
|
|
49
|
+
* @category Options
|
|
50
|
+
*/
|
|
51
|
+
export interface ClientOptions<E = never, R = never, F extends MessageFields | undefined = undefined> extends Omit<SharedClientOptions<F>, "cache" | "logging" | "onError" | "connection"> {
|
|
52
|
+
/** Set the startup deadline, retry limit and recovery timing, as in the default entry point.
|
|
53
|
+
* Native recovery can also take an Effect Schedule that decides established-session recovery delays
|
|
54
|
+
*/
|
|
55
|
+
readonly connection?: Omit<NonNullable<SharedClientOptions<F>["connection"]>, "recovery"> & {
|
|
56
|
+
/** Recovery timing for established sessions, with the same settings as the default entry point plus schedule */
|
|
57
|
+
readonly recovery?: ConnectionRecoveryOptions & {
|
|
58
|
+
/**
|
|
59
|
+
* Decide each established-session recovery delay instead of minDelayMs and maxDelayMs, which cannot be combined with it.
|
|
60
|
+
* The schedule receives each ConnectionFailure. Its delay is used, but never shorter than a wait Fluxer requires.
|
|
61
|
+
* When the schedule completes, recovery stops and the client ends with that failure.
|
|
62
|
+
* The schedule restarts after the connection stays healthy for healthyResetMs. Startup retries keep their own timing.
|
|
63
|
+
* A value that is not a Schedule makes creation die with a ConfigurationError, like other invalid settings
|
|
64
|
+
*/
|
|
65
|
+
readonly schedule?: Schedule.Schedule<unknown, ConnectionFailure>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Configure what the SDK logs, with the same settings as the default entry point.
|
|
70
|
+
* Without sink or format, records go through the caller's Effect logger with Effect.logWithLevel, the real Cause
|
|
71
|
+
* and fluxerly.* annotations such as fluxerly.code and fluxerly.category, so any Effect Logger, span and tracer applies.
|
|
72
|
+
* Debug and Trace records enabled by these settings bypass the Effect minimum log level, while Info and higher records respect it.
|
|
73
|
+
* Connection records use connect or run's services, handler records use registration services and shutdown records use shutdown's services.
|
|
74
|
+
* A sink or an explicit format replaces the Effect logger with the SDK's own output
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* import { Effect, Logger } from "effect"
|
|
79
|
+
* import { createClient } from "@neontechspace/fluxerly/effect"
|
|
80
|
+
* export function loggingExample(token: string) {
|
|
81
|
+
* return createClient({ token, logging: { categories: { rest: "debug" } } }).pipe(
|
|
82
|
+
* Effect.withLogger(Logger.consoleJson),
|
|
83
|
+
* )
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
readonly logging?: LoggingOptions;
|
|
88
|
+
/**
|
|
89
|
+
* Receive every failure that has no returned result, with the original error and its complete Cause.
|
|
90
|
+
* The hook runs with the services available when client creation executes, one report at a time in order.
|
|
91
|
+
* Up to 256 reports wait while it is busy, and later ones are logged instead, with fields.reportOutcome "queueFull", and counted in
|
|
92
|
+
* diagnostics().counters.reportsDropped.
|
|
93
|
+
* A subscription's own onError takes precedence. Without a hook the SDK logs each failure at Error with its full Cause.
|
|
94
|
+
* A failing hook is logged with the original failure and never retried.
|
|
95
|
+
* Shutdown interrupts a running hook and waits at most one second for its cleanup, so a hook that ignores
|
|
96
|
+
* interruption cannot hold shutdown open. The interrupted report and any queued ones are logged at Error, with
|
|
97
|
+
* fields.reportOutcome "interrupted" for the report being handled and "clientClosed" for queued or later reports.
|
|
98
|
+
* A hook that interrupts itself also logs its report with "interrupted", and later reports still reach the hook
|
|
99
|
+
*/
|
|
100
|
+
readonly onError?: (report: FailureReport) => Effect.Effect<unknown, E, R>;
|
|
101
|
+
/** Optionally keep resource snapshots in memory. Omission keeps none.
|
|
102
|
+
* Every configured budget applies across this client's locally owned shards.
|
|
103
|
+
* A gateway gap invalidates known-scope snapshots from its affected shard. Unknown community scope invalidates conservatively because the SDK keeps no channel-to-community index
|
|
104
|
+
*/
|
|
105
|
+
readonly cache?: Omit<NonNullable<SharedClientOptions<F>["cache"]>, "messages"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Omit or pass false to disable caching. Pass true or an options object to keep bounded message snapshots in memory across the client.
|
|
108
|
+
* Eligible HTTP responses and gateway events populate the cache.
|
|
109
|
+
* Deletes and writes with unknown outcomes evict affected messages. Gateway gaps clear it even after successful resume.
|
|
110
|
+
* Conflicts can produce misses. A response that differs from an overlapping event only by lacking its community ID keeps the event snapshot.
|
|
111
|
+
* No automatic history retrieval. Shutdown releases cached references
|
|
112
|
+
*/
|
|
113
|
+
readonly messages?: boolean | MessageCacheOptions<NoInfer<SelectedMessage<F>>>;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* A bot client whose asynchronous methods return descriptions of work as Effects or Streams.
|
|
118
|
+
* Execute Effects with yield* inside Effect.gen or with an Effect runner. Consume Streams to start their work.
|
|
119
|
+
* Each operation uses the caller's Effect services and cancellation.
|
|
120
|
+
* The scope that creates the client owns its connection work and permanent cleanup.
|
|
121
|
+
* Expected errors use Effect's error channel. Unexpected faults and cancellation remain in Cause.
|
|
122
|
+
* Cleanup defects stop retries and preserve any operation failure or interruption alongside the defect in Cause.
|
|
123
|
+
* Successful REST JSON responses are limited to 16 MiB before parsing. This is not a total memory limit. Upload planning and completion responses have a separate 1 MiB limit
|
|
124
|
+
*
|
|
125
|
+
* A confirmed HTTP 429 response with a valid retry delay pauses all API routes on this client when
|
|
126
|
+
* X-RateLimit-Global is true, X-RateLimit-Scope is global, or the JSON body has global: true.
|
|
127
|
+
* A valid global indicator takes priority over conflicting route-specific metadata. Malformed scope values are ignored.
|
|
128
|
+
* A global header with a valid Retry-After starts the pause before body inspection, including when
|
|
129
|
+
* the body is missing, malformed, oversized or too slow. Body inspection stays bounded to 8 KiB and 100 ms before awaited cleanup.
|
|
130
|
+
* Without global metadata, only requests in the same rate-limit group wait. Without a usable delay, the call fails rather than guessing how long to wait.
|
|
131
|
+
* Rate-limit waits count toward each call's original deadline. Interruption removes only that call from the queue, not the shared pause.
|
|
132
|
+
* A call whose known pause outlasts its deadline fails at once with reason rateLimit and the remaining wait as retryAfterMs instead of waiting.
|
|
133
|
+
* Separate clients do not coordinate these waits. Attachment downloads do not wait for API rate limits.
|
|
134
|
+
* Writes retry only confirmed rate-limit rejection, never an uncertain outcome
|
|
135
|
+
*
|
|
136
|
+
* Valid X-RateLimit-Bucket metadata updates how this client groups rate-limited routes, without application configuration.
|
|
137
|
+
* Known Fluxer templates retain their channel, community, user, webhook or invite resource partitions.
|
|
138
|
+
* Unknown route templates share one rate-limit bucket when they report the same identifier, to avoid exceeding a possible shared limit.
|
|
139
|
+
* Initial requests can still receive 429 before the server's grouping is learned.
|
|
140
|
+
* Each client tracks at most 2,048 route aliases and 2,048 bucket states. Idle aliases expire after five minutes unless they preserve an active pause.
|
|
141
|
+
* Old responses cannot undo newer mappings or reopen an exhausted window. A changed mapping preserves any known prior pause until it expires.
|
|
142
|
+
* When tracking reaches capacity, the client drops observations that are not blocking requests first. If active pauses fill capacity or a route cannot be grouped safely,
|
|
143
|
+
* the client waits rather than ignoring a known limit. Closing the client clears this temporary state
|
|
144
|
+
*
|
|
145
|
+
* Each gateway connection accepts uncompressed text messages up to 100 MiB (104,857,600 bytes), counting all fragments together.
|
|
146
|
+
* The transport checks this size before decoding UTF-8 or parsing JSON. This keeps the previous transport default.
|
|
147
|
+
* This is not a Fluxer server-to-client maximum, an outbound command limit, a subscription budget or a JavaScript heap bound.
|
|
148
|
+
* Larger messages fail with ConnectionError, phase gateway, reason protocol and status 1009. Invalid UTF-8 uses status 1007.
|
|
149
|
+
* Neither failure retries automatically. A failed standalone connect waits for cleanup and allows another explicit connect.
|
|
150
|
+
* A failed managed run or established connection ends the client lifetime. Use waitForClose to observe later failures
|
|
151
|
+
*
|
|
152
|
+
* @category Client and lifecycle
|
|
153
|
+
*/
|
|
154
|
+
export interface Client<M extends MessageCore = Message> extends ClientState {
|
|
155
|
+
/**
|
|
156
|
+
* Find this client's instance endpoints and get pure asset and link URL helpers for that instance
|
|
157
|
+
*/
|
|
158
|
+
readonly instance: Instance;
|
|
159
|
+
/**
|
|
160
|
+
* Search the public community directory and manage listings, without joining communities or finding instance endpoints
|
|
161
|
+
*/
|
|
162
|
+
readonly discovery: Discovery;
|
|
163
|
+
/**
|
|
164
|
+
* Set bot status or select member presence updates, restored after gateway reconnects but not stored across process restarts
|
|
165
|
+
*/
|
|
166
|
+
readonly presence: Presence;
|
|
167
|
+
/**
|
|
168
|
+
* Read documented fields for the authenticated bot's application, without owner details or management operations
|
|
169
|
+
*/
|
|
170
|
+
readonly application: CurrentBotApplication;
|
|
171
|
+
/**
|
|
172
|
+
* Fetch public account data or look up an account in the optional local cache
|
|
173
|
+
*/
|
|
174
|
+
readonly users: Users;
|
|
175
|
+
/**
|
|
176
|
+
* Open and manage one-to-one or group conversations, or send a direct message.
|
|
177
|
+
* Use messages for other content operations once the channel IDs are known
|
|
178
|
+
*/
|
|
179
|
+
readonly directMessages: DirectMessages<M>;
|
|
180
|
+
/**
|
|
181
|
+
* Manage webhooks with the bot's permissions, returning metadata without tokens
|
|
182
|
+
*/
|
|
183
|
+
readonly webhooks: Webhooks;
|
|
184
|
+
/**
|
|
185
|
+
* Manage community roles or look up roles in an explicitly enabled local cache
|
|
186
|
+
*/
|
|
187
|
+
readonly roles: Roles;
|
|
188
|
+
/**
|
|
189
|
+
* Calculate permission flags locally or from fresh resource reads, without caching decisions
|
|
190
|
+
*/
|
|
191
|
+
readonly permissions: PermissionHelpers;
|
|
192
|
+
/**
|
|
193
|
+
* Read community data and memberships, or use the optional local community cache
|
|
194
|
+
*/
|
|
195
|
+
readonly guilds: Guilds;
|
|
196
|
+
/**
|
|
197
|
+
* Inspect, create, list and revoke invite codes, without using them to join or retaining codes
|
|
198
|
+
*/
|
|
199
|
+
readonly invites: Invites;
|
|
200
|
+
/**
|
|
201
|
+
* Read filtered audit pages or bounded entry scans, without retaining an audit cache
|
|
202
|
+
*/
|
|
203
|
+
readonly auditLogs: AuditLogs;
|
|
204
|
+
/**
|
|
205
|
+
* Manage custom emoji and optionally look up their cached metadata
|
|
206
|
+
*/
|
|
207
|
+
readonly emojis: Emojis;
|
|
208
|
+
/**
|
|
209
|
+
* Manage custom stickers and optionally look up their cached metadata
|
|
210
|
+
*/
|
|
211
|
+
readonly stickers: Stickers;
|
|
212
|
+
/**
|
|
213
|
+
* Read or change community channels and optionally look up cached channel data
|
|
214
|
+
*/
|
|
215
|
+
readonly channels: Channels;
|
|
216
|
+
/**
|
|
217
|
+
* Create threads and forum posts, change, list and search threads, and manage thread members
|
|
218
|
+
*/
|
|
219
|
+
readonly threads: Threads<M>;
|
|
220
|
+
/**
|
|
221
|
+
* Read, moderate and ban community members and change their assigned roles
|
|
222
|
+
*/
|
|
223
|
+
readonly members: Members;
|
|
224
|
+
/**
|
|
225
|
+
* Refresh signed attachment URLs explicitly or download from this instance's discovered media path with byte limits
|
|
226
|
+
*/
|
|
227
|
+
readonly attachments: Attachments;
|
|
228
|
+
/**
|
|
229
|
+
* Read, send, edit and delete messages, use the optional message cache, or collect future messages and reactions
|
|
230
|
+
*/
|
|
231
|
+
readonly messages: Messages<M>;
|
|
232
|
+
/**
|
|
233
|
+
* Enumerate or release locally cached data.
|
|
234
|
+
* Caching is disabled unless enabled in ClientOptions.cache
|
|
235
|
+
*/
|
|
236
|
+
readonly cache: ClientCache<M>;
|
|
237
|
+
/**
|
|
238
|
+
* Send requests to Fluxer API routes without an SDK method, through this client's shared request scheduling
|
|
239
|
+
*/
|
|
240
|
+
readonly rest: RestRequests;
|
|
241
|
+
/**
|
|
242
|
+
* Send gateway commands without an SDK method on this client's ready shards
|
|
243
|
+
*/
|
|
244
|
+
readonly gateway: GatewayCommands;
|
|
245
|
+
/**
|
|
246
|
+
* Change the log level and per-category levels while the client runs
|
|
247
|
+
*/
|
|
248
|
+
readonly logging: ClientLogging;
|
|
249
|
+
/**
|
|
250
|
+
* Register a handler for future events of one type, before or after connecting the client.
|
|
251
|
+
* Use the returned Subscription to close it and observe waitForClose.
|
|
252
|
+
* No history is replayed and HTTP operations do not create events locally.
|
|
253
|
+
* Bulk deletion events do not also call messageDelete handlers.
|
|
254
|
+
* Enabled cache updates happen before handlers and do not depend on a subscription succeeding, including its overflow
|
|
255
|
+
*
|
|
256
|
+
* Handlers run one at a time by default.
|
|
257
|
+
* Increasing concurrency keeps receive-order starts, but not completion order.
|
|
258
|
+
* Each subscription has its own ordering and queue, with no ordering across event types and no exactly-once delivery.
|
|
259
|
+
* Default pending limits are 256 payloads or 4 MiB of full source JSON, not total process memory.
|
|
260
|
+
* A bulk payload counts once, including all its bytes.
|
|
261
|
+
* A full queue drops its oldest waiting event by default, logs a Warn record and counts the drop, and the subscription keeps running.
|
|
262
|
+
* Choose overflow stop to close only this subscription instead, observable through the returned handle
|
|
263
|
+
*
|
|
264
|
+
* A failed handler is isolated and not retried.
|
|
265
|
+
* A default API handler fails when it throws, rejects, or returns or resolves an Err result, and a native handler fails when its Effect fails.
|
|
266
|
+
* Its original failure, with the event name, subscription ID and message IDs, goes to this subscription's onError, else the client-level onError, else an Error log record with the full message, stack and cause chain.
|
|
267
|
+
* Observe the subscription's outcome as well as the client's run or waitForClose outcome.
|
|
268
|
+
* Registration misuse, such as an unknown event name, fails with a suggested correction
|
|
269
|
+
*
|
|
270
|
+
* Each invocation also receives an EventContext with the receiving shard and the received frame size.
|
|
271
|
+
* Event middleware registered with use runs around every handler invocation, including those of subscriptions registered earlier
|
|
272
|
+
*
|
|
273
|
+
* @remarks
|
|
274
|
+
* The handler receives the event payload and the EventContext, and returns the Effect to run.
|
|
275
|
+
* The subscription belongs to the Scope and context that execute this Effect, without a separate SDK runtime.
|
|
276
|
+
* Registration misuse is a defect carrying ConfigurationError.
|
|
277
|
+
* Registration after shutdown began, such as from a handler still being interrupted by shutdown, is not misuse: It
|
|
278
|
+
* returns an already-closed Subscription whose handler never runs and whose waitForClose succeeds, and writes a Warn
|
|
279
|
+
* log record with code events.registeredAfterShutdown.
|
|
280
|
+
* Handler failures are reported with their complete Cause through the Effect logger.
|
|
281
|
+
* Client or registration-scope closure interrupts handlers and awaits handler cleanup
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* import { Cause, Effect } from "effect"
|
|
286
|
+
* import type { Client, Message } from "@neontechspace/fluxerly/effect"
|
|
287
|
+
* export function debugHandlerExample<E, R>(
|
|
288
|
+
* client: Client,
|
|
289
|
+
* handle: (message: Message) => Effect.Effect<void, E, R>,
|
|
290
|
+
* inspectFailure: (cause: Cause.Cause<E>) => void,
|
|
291
|
+
* ) {
|
|
292
|
+
* return client.on("messageCreate", (message) =>
|
|
293
|
+
* Effect.suspend(() => handle(message)).pipe(
|
|
294
|
+
* // Inspect locally. The failure still reaches onError or the log afterwards
|
|
295
|
+
* Effect.tapCause((cause) => Effect.sync(() => inspectFailure(cause))),
|
|
296
|
+
* ),
|
|
297
|
+
* )
|
|
298
|
+
* }
|
|
299
|
+
* ```
|
|
300
|
+
*/
|
|
301
|
+
on<E, R, E2 = never, R2 = never, K extends EventName = "messageCreate">(event: K, handler: (event: EventMap<M>[K], context: EventContext) => Effect.Effect<unknown, E, R>, options?: EventHandlerOptions<E2, R2, EventMap<M>[K]>): Effect.Effect<Subscription, never, R | R2 | Scope.Scope>;
|
|
302
|
+
/**
|
|
303
|
+
* Add event middleware that runs around every later on handler invocation, for every event and subscription, including
|
|
304
|
+
* subscriptions registered before it, command routers and runBot handlers.
|
|
305
|
+
* Middleware runs in registration order, the first registered outermost, and each invocation keeps the middleware registered when it started.
|
|
306
|
+
* It receives the invocation's event name, payload, EventContext and subscription ID, and a next step that runs the rest of the chain and the handler.
|
|
307
|
+
* Not calling next skips the handler for that invocation. Calling next again returns the same completion without running the handler twice,
|
|
308
|
+
* and calling it after the middleware finished reports a ConfigurationError instead of running the handler.
|
|
309
|
+
* The handler slot stays occupied until the middleware and any next it started have finished.
|
|
310
|
+
* The next step completes whether or not the rest of the chain failed and never fails itself, so a handler failure is always reported.
|
|
311
|
+
* A failing middleware is reported like a failed handler, with the event name, subscription ID and message IDs, to the subscription's onError, else the client-level onError, else an Error log record.
|
|
312
|
+
* Middleware does not run for subscribe, waitFor, message collectors or reaction collectors.
|
|
313
|
+
* Registration misuse, such as a middleware that is not a function, fails like other registration misuse
|
|
314
|
+
*
|
|
315
|
+
* @remarks
|
|
316
|
+
* The middleware receives the invocation and a next Effect, and runs with the services available when this Effect executes,
|
|
317
|
+
* except that its Scope stays the one of the handler invocation. The next Effect restores the handler's own services.
|
|
318
|
+
* Registration lasts until the returned registration's close or the closing of the executing Scope.
|
|
319
|
+
* Registration misuse, including a closing client, is a defect carrying ConfigurationError or ClientClosedError
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* ```ts
|
|
323
|
+
* import { Clock, Effect } from "effect"
|
|
324
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
325
|
+
* export function timingMiddlewareExample(client: Client) {
|
|
326
|
+
* return client.use((invocation, next) =>
|
|
327
|
+
* Effect.gen(function* () {
|
|
328
|
+
* const startedAt = yield* Clock.currentTimeMillis
|
|
329
|
+
* yield* next
|
|
330
|
+
* const durationMs = (yield* Clock.currentTimeMillis) - startedAt
|
|
331
|
+
* yield* Effect.logDebug(`${invocation.event} took ${durationMs} ms`)
|
|
332
|
+
* }),
|
|
333
|
+
* )
|
|
334
|
+
* }
|
|
335
|
+
* ```
|
|
336
|
+
*/
|
|
337
|
+
use<E = never, R = never>(middleware: EventMiddleware<M, E, R>): Effect.Effect<MiddlewareRegistration, never, R | Scope.Scope>;
|
|
338
|
+
/**
|
|
339
|
+
* Run a task later, once or repeatedly, as part of this client's lifetime instead of an event handler or command.
|
|
340
|
+
* Scheduling returns at once, so a handler or command that schedules a task finishes without waiting for it and does
|
|
341
|
+
* not hold its slot. Without options the task runs once as soon as possible, which suits background work started in
|
|
342
|
+
* runBot setup. The delay and interval follow the Clock of the client's other timers, and the interval counts from the
|
|
343
|
+
* end of each run, so runs never overlap
|
|
344
|
+
*
|
|
345
|
+
* A failed run is reported with its original error to the client-level onError, else an Error log record with code
|
|
346
|
+
* lifecycle.taskFailed. A repeating task keeps its schedule after a failed run, so a passing problem such as a network
|
|
347
|
+
* error does not end it, and a lasting one is reported at every run
|
|
348
|
+
*
|
|
349
|
+
* Shutdown cancels the runs that have not started. A draining shutdown, such as a stop requested from runBot, starts no
|
|
350
|
+
* new run and lets runs in progress finish within its drainMs, and then shutdown cancels what is left.
|
|
351
|
+
* One lifecycle.tasksCancelled Info record counts the tasks that shutdown ended with a run waiting or in progress.
|
|
352
|
+
* Tasks are kept in memory only, so a restart forgets them.
|
|
353
|
+
* Scheduling after shutdown began, including during a drain, is refused with ClientClosedError, and invalid options
|
|
354
|
+
* are misuse with ConfigurationError
|
|
355
|
+
*
|
|
356
|
+
* @remarks
|
|
357
|
+
* The task is an Effect that runs again for each run, with the services available when this Effect executes and a
|
|
358
|
+
* Scope of its own for each run, closed when the run ends. The task does not belong to the executing Scope, so a
|
|
359
|
+
* handler that schedules it can end first. A failed run reports its complete Cause, and a run that interrupts itself
|
|
360
|
+
* ends the task without a report. Shutdown interrupts a run in progress and awaits its finalizers.
|
|
361
|
+
* A task that is not an Effect and invalid options are defects carrying ConfigurationError, and scheduling after
|
|
362
|
+
* shutdown began is a defect carrying ClientClosedError
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* ```ts
|
|
366
|
+
* import { Effect } from "effect"
|
|
367
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
368
|
+
* export function hourlyStatusExample(client: Client, channelId: string) {
|
|
369
|
+
* return client.schedule(client.messages.send(channelId, "Still running").pipe(Effect.asVoid), {
|
|
370
|
+
* intervalMs: 3_600_000,
|
|
371
|
+
* })
|
|
372
|
+
* }
|
|
373
|
+
* ```
|
|
374
|
+
*/
|
|
375
|
+
schedule<E = never, R = never>(task: Effect.Effect<unknown, E, R>, options?: ScheduleOptions): Effect.Effect<ScheduledTask, never, Exclude<R, Scope.Scope>>;
|
|
376
|
+
/**
|
|
377
|
+
* Receive future events of one type in receive order through a bounded buffer.
|
|
378
|
+
* No history is replayed and bulk events are not split into individual events.
|
|
379
|
+
* Enabled cache changes happen before delivery and remain independent of this subscription and its overflow.
|
|
380
|
+
* Overflow fails this subscription rather than silently dropping events.
|
|
381
|
+
* Options govern the source buffer only
|
|
382
|
+
*
|
|
383
|
+
* @remarks
|
|
384
|
+
* Returns a Stream, and each execution owns a subscription released with the Stream's scope.
|
|
385
|
+
* Consumers choose stream concurrency and supervision.
|
|
386
|
+
* Registration misuse is a defect carrying ConfigurationError.
|
|
387
|
+
* A Stream run after shutdown began is not misuse: It ends at once without events and writes a Warn log record with
|
|
388
|
+
* code events.registeredAfterShutdown
|
|
389
|
+
*/
|
|
390
|
+
subscribe<K extends EventName>(event: K, options?: EventBufferOptions): Stream.Stream<EventMap<M>[K], EventOverflowError>;
|
|
391
|
+
/**
|
|
392
|
+
* Wait for the first future event of one type that passes the supplied synchronous filter.
|
|
393
|
+
* Observation starts without connecting the client, reading history or cache, or making a remote request
|
|
394
|
+
*
|
|
395
|
+
* The default timeout is 30,000 ms from registration.
|
|
396
|
+
* A timeout or invalid or throwing filter fails with EventWaitError without input or exception text.
|
|
397
|
+
* Inspect a filter exception inside the filter before rethrowing if needed.
|
|
398
|
+
* Buffer limits match subscribe.
|
|
399
|
+
* Reconnection can miss events and does not reset the deadline.
|
|
400
|
+
* Overflow, invalid configuration and client closure remain distinct failures
|
|
401
|
+
*
|
|
402
|
+
* Completion or cancellation releases the queue, filter, timer and subscription without shutting down the client.
|
|
403
|
+
* This returns an event, not a registration handle.
|
|
404
|
+
* Use subscribe, a scoped on subscription or a collector to confirm registration before triggering an action
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* Each execution owns a separate bounded subscription in its executing fiber, with no separate SDK runtime.
|
|
408
|
+
* Creating or forking this Effect is not a registration barrier.
|
|
409
|
+
* SDK and cleanup defects remain in the Cause
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```ts
|
|
413
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
414
|
+
* export function eventWaitExample(client: Client, channelId: string, userId: string) {
|
|
415
|
+
* return client.waitFor("typingStart", {
|
|
416
|
+
* filter: event => event.channelId === channelId && event.userId === userId,
|
|
417
|
+
* timeoutMs: 10_000,
|
|
418
|
+
* })
|
|
419
|
+
* }
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
waitFor<K extends EventName>(event: K, options?: EventWaitOptions<K, M>): Effect.Effect<EventMap<M>[K], EventWaitFailure>;
|
|
423
|
+
/**
|
|
424
|
+
* Read a frozen local report of active work, queues and cache occupancy.
|
|
425
|
+
* No request, telemetry or persistent record is created.
|
|
426
|
+
* The report excludes tokens, routes, resource IDs and payloads.
|
|
427
|
+
* Counts cover only this client's assigned shards and local work.
|
|
428
|
+
* Event counts include open sources, message and reaction collectors and executing subscription handlers, not an enforced client-wide admission quota.
|
|
429
|
+
* Accounted cache and queue bytes are not heap memory, process memory or remote storage.
|
|
430
|
+
* After closure, configured limits remain visible and retained counts show cleanup progress.
|
|
431
|
+
* These values do not prove remote completeness or gateway readiness.
|
|
432
|
+
* This runs immediately and takes no signal
|
|
433
|
+
*/
|
|
434
|
+
diagnostics(): ClientDiagnostics;
|
|
435
|
+
/**
|
|
436
|
+
* Connect the gateway and complete when every shard assigned to this client has authenticated and received READY.
|
|
437
|
+
* This does not wait for GUILD_CREATE, a full community roster or all resources to load.
|
|
438
|
+
* Use connect when startup must finish separately from the client's lifetime.
|
|
439
|
+
* After success, the connection and automatic recovery continue until shutdown or permanent failure, and waitForClose observes that later outcome
|
|
440
|
+
*
|
|
441
|
+
* The call controls startup only, using the client's connection settings.
|
|
442
|
+
* Cancellation or an expected failure before initial readiness waits for shard cleanup and leaves the client Disconnected, so connect can be tried again.
|
|
443
|
+
* An already-connected client not managed by run succeeds without opening another socket.
|
|
444
|
+
* A competing call fails with ClientBusyError without disturbing active work, and closing clients fail with ClientClosedError.
|
|
445
|
+
* After initial readiness, permanent failure of a required shard in a multi-shard plan closes the client.
|
|
446
|
+
* The waitForClose method retains that failure as ShardConnectionError with shardId and failure
|
|
447
|
+
*
|
|
448
|
+
* @remarks
|
|
449
|
+
* The gateway opens when this Effect executes.
|
|
450
|
+
* Connection and recovery continue in the client's creation Scope after connect succeeds, and connect can be retried while that Scope remains open.
|
|
451
|
+
* Unexpected faults and interruption remain in the Cause
|
|
452
|
+
*/
|
|
453
|
+
connect(): Effect.Effect<void, ConnectError>;
|
|
454
|
+
/**
|
|
455
|
+
* Start and maintain a gateway connection for the client's whole lifetime, including transient recovery, until shutdown, permanent failure or cancellation.
|
|
456
|
+
* Use run when one owner should control startup, lifetime observation and permanent cleanup together.
|
|
457
|
+
* Once run is accepted, its end always leaves the client Closed after cleanup.
|
|
458
|
+
* Success means normal shutdown, not merely reaching READY.
|
|
459
|
+
* A permanent required-shard failure after readiness closes a multi-shard client with ShardConnectionError
|
|
460
|
+
*
|
|
461
|
+
* The run method requires a Disconnected client with no competing connection work.
|
|
462
|
+
* A rejected or pre-cancelled call does not take over or close the client.
|
|
463
|
+
* Expected connection, busy and closed failures use ConnectError
|
|
464
|
+
*
|
|
465
|
+
* @remarks
|
|
466
|
+
* The Effect stays pending for the client's lifetime, and interrupting an accepted run stops that lifetime and waits for cleanup.
|
|
467
|
+
* Unexpected faults and interruption remain in the Cause, alongside any cleanup faults
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* ```ts
|
|
471
|
+
* import { Effect } from "effect"
|
|
472
|
+
* import { createClient } from "@neontechspace/fluxerly/effect"
|
|
473
|
+
*
|
|
474
|
+
* export const runBot = (token: string) => Effect.scoped(
|
|
475
|
+
* Effect.gen(function* () {
|
|
476
|
+
* const client = yield* createClient({ token })
|
|
477
|
+
* yield* client.run()
|
|
478
|
+
* }),
|
|
479
|
+
* )
|
|
480
|
+
* ```
|
|
481
|
+
*/
|
|
482
|
+
run(): Effect.Effect<void, ConnectError>;
|
|
483
|
+
/**
|
|
484
|
+
* Wait for this client's final shutdown or permanent connection failure, without starting or owning a connection.
|
|
485
|
+
* Recovery keeps the wait pending.
|
|
486
|
+
* An expected connect failure before initial readiness also leaves this wait pending, because the client can connect again.
|
|
487
|
+
* Multiple or later waiters receive the same retained outcome.
|
|
488
|
+
* Normal shutdown succeeds with no value, and a permanent connection failure fails with ConnectionFailure.
|
|
489
|
+
* After initial readiness, required-shard failure in a multi-shard plan is retained as ShardConnectionError.
|
|
490
|
+
* Cancelling this wait affects only this waiter, not the client or other waiters
|
|
491
|
+
*
|
|
492
|
+
* @remarks
|
|
493
|
+
* Closing the client's creation Scope still shuts down the client.
|
|
494
|
+
* Background and cleanup faults remain in the Cause, alongside any expected failure
|
|
495
|
+
*/
|
|
496
|
+
waitForClose(): Effect.Effect<void, ConnectionFailure>;
|
|
497
|
+
/**
|
|
498
|
+
* Permanently close this client and wait for startup, recovery, sockets and request cleanup.
|
|
499
|
+
* Credentials, cached references, presence intent and expiry timers are released.
|
|
500
|
+
* Active handlers and message and reaction collector callbacks are cancelled.
|
|
501
|
+
* Pass drainMs to first stop accepting events and let running handlers and REST requests finish for up to that many
|
|
502
|
+
* milliseconds, as runBot does when asked to stop. See ShutdownOptions.
|
|
503
|
+
* Events still waiting in a subscription's queue are discarded, with one events.discarded Info record for each
|
|
504
|
+
* subscription that had any, and a drain records the events it refused in one events.refused Info record.
|
|
505
|
+
* Both kinds are counted in diagnostics().counters.eventsDropped.closed.
|
|
506
|
+
* Collector callback cleanup is awaited, so a collector callback that ignores cancellation can delay shutdown.
|
|
507
|
+
* Repeated and concurrent calls share the shutdown outcome.
|
|
508
|
+
* A pending connection call fails with ClientClosedError rather than cancellation.
|
|
509
|
+
* Established sockets get up to 5,000 ms to close gracefully, then are terminated and their close events awaited.
|
|
510
|
+
* Pending handshakes are terminated immediately, and forced termination can discard unsent data.
|
|
511
|
+
* Cleanup cannot be abandoned, and this method never exits the application or undoes remote writes.
|
|
512
|
+
* Create a new client to connect again.
|
|
513
|
+
* A failed cleanup step, such as a socket close that throws or an event handler or collector callback whose cancellation cleanup fails, is also logged at Error in the lifecycle category and counted in diagnostics().counters.cleanupFailures
|
|
514
|
+
*
|
|
515
|
+
* @remarks
|
|
516
|
+
* Once shutdown starts, it disables interruption so the caller cannot abandon cleanup.
|
|
517
|
+
* Closing the client's creation Scope shuts down without a drain.
|
|
518
|
+
* Handler and collector finalizers must finish before closure, so work that disables interruption can delay shutdown.
|
|
519
|
+
* If an owned handler or collector callback calls shutdown, the client Scope performs shutdown and interrupts that invocation, which does not resume afterward.
|
|
520
|
+
* No expected error is returned. Invalid options are a defect carrying ConfigurationError, before shutdown starts.
|
|
521
|
+
* The drain time is measured with the Clock supplied when the client was created.
|
|
522
|
+
* Cleanup faults remain defects in the Cause, and an interruption of an owned worker stays a separate Cause reason
|
|
523
|
+
*
|
|
524
|
+
* @example
|
|
525
|
+
* ```ts
|
|
526
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
527
|
+
* export function stopGracefully(client: Client) {
|
|
528
|
+
* // Let running handlers finish their replies for up to 10 seconds
|
|
529
|
+
* return client.shutdown({ drainMs: 10_000 })
|
|
530
|
+
* }
|
|
531
|
+
* ```
|
|
532
|
+
*/
|
|
533
|
+
shutdown(options?: ShutdownOptions): Effect.Effect<void>;
|
|
534
|
+
/**
|
|
535
|
+
* Receive the current connection state, then later state updates.
|
|
536
|
+
* While a subscriber is busy, only the newest pending state is kept.
|
|
537
|
+
* Slow subscribers can miss intermediate states without delaying recovery.
|
|
538
|
+
* Ending the subscription drops pending delivery without stopping the client.
|
|
539
|
+
* Use waitForClose, not state changes, to observe the client's terminal failure
|
|
540
|
+
*
|
|
541
|
+
* @remarks
|
|
542
|
+
* Returns a Stream in which each consumer gets a coordinated initial snapshot.
|
|
543
|
+
* Closed ends the Stream
|
|
544
|
+
*/
|
|
545
|
+
observeState(): Stream.Stream<ConnectionState>;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* A task started with client.schedule. It ends by itself after its only run, or when the client shuts down
|
|
549
|
+
*
|
|
550
|
+
* @category Client and lifecycle
|
|
551
|
+
*/
|
|
552
|
+
export interface ScheduledTask {
|
|
553
|
+
/**
|
|
554
|
+
* Cancel every later run. A run in progress continues, and a draining shutdown still waits for it.
|
|
555
|
+
* The task can close itself from its own run. Repeated calls do nothing
|
|
556
|
+
*/
|
|
557
|
+
close(): Effect.Effect<void>;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Create a bot client from the supplied token when this Effect executes
|
|
561
|
+
*
|
|
562
|
+
* Use `Effect.scoped` to keep the client open while the bot works and shut it down when the Scope closes.
|
|
563
|
+
* The client starts disconnected. Call `connect` or `run` to receive gateway events
|
|
564
|
+
*
|
|
565
|
+
* @remarks
|
|
566
|
+
* **Client lifetime**
|
|
567
|
+
*
|
|
568
|
+
* Calling `createClient` does not create a client yet. Each execution creates a separate client in the caller's Scope and validates configuration locally, without authenticating the token
|
|
569
|
+
*
|
|
570
|
+
* Creation starts no networking or background work. HTTP operations work without `connect`.
|
|
571
|
+
* Closing the scope permanently shuts down the client and releases its credential reference.
|
|
572
|
+
* Cache-error callbacks capture the Effect services available when creation executes.
|
|
573
|
+
* The Effect Clock supplied at creation controls this client's REST queue and deadlines, cache expiry, collectors,
|
|
574
|
+
* presence pacing, scheduled task timing and gateway lifetime. Supplying a different Clock for a later operation does not replace it.
|
|
575
|
+
* Operation-specific waits and utilities document which Clock they use. Logging durations never control deadlines
|
|
576
|
+
*
|
|
577
|
+
* **Instance and caching**
|
|
578
|
+
*
|
|
579
|
+
* Omit `instance` for hosted Fluxer. For a self-hosted instance, pass its root. The unauthenticated well-known document supplies HTTP, gateway, image and application addresses when needed.
|
|
580
|
+
* HTTPS and WSS are required unless that explicit instance sets `allowInsecure: true` for HTTP and WS
|
|
581
|
+
*
|
|
582
|
+
* Caching is disabled by default. Cache settings are copied and validated without invoking retention policies or reporters.
|
|
583
|
+
* Unknown cache or message-cache option keys fail validation
|
|
584
|
+
*
|
|
585
|
+
* **Connection and sharding**
|
|
586
|
+
*
|
|
587
|
+
* Connection settings default to a 30,000 ms overall startup budget and three total attempts per assigned shard.
|
|
588
|
+
* An explicit sharding plan fixes this client's local IDs for its lifetime, while automatic sharding and a client
|
|
589
|
+
* without sharding settings may move to a larger plan when Fluxer asks for more shards.
|
|
590
|
+
* Shard zero receives direct-message gateway traffic.
|
|
591
|
+
* REST and cache budgets apply across the whole client, not separately to each shard
|
|
592
|
+
*
|
|
593
|
+
* @example
|
|
594
|
+
* ```ts
|
|
595
|
+
* import { Effect } from "effect"
|
|
596
|
+
* import { createClient } from "@neontechspace/fluxerly/effect"
|
|
597
|
+
*
|
|
598
|
+
* export function shardingExample(token: string) {
|
|
599
|
+
* return Effect.scoped(Effect.gen(function* () {
|
|
600
|
+
* const client = yield* createClient({ token, sharding: { totalShards: 4, shardIds: [0, 2] } })
|
|
601
|
+
* yield* client.connect()
|
|
602
|
+
* return client.shards
|
|
603
|
+
* }))
|
|
604
|
+
* }
|
|
605
|
+
* ```
|
|
606
|
+
*
|
|
607
|
+
* @returns A scoped, lazy creation Effect. Invalid options, including a missing or blank token and an unsupported option
|
|
608
|
+
* key, are misuse and die with ConfigurationError. Its hint names an unset environment variable as the likely cause of a
|
|
609
|
+
* missing token, and the closest supported key for a misspelled option.
|
|
610
|
+
* Unexpected creation defects retain their Cause
|
|
611
|
+
*
|
|
612
|
+
* @category Client and lifecycle
|
|
613
|
+
*/
|
|
614
|
+
export declare function createClient<E = never, R = never, const F extends MessageFields | undefined = undefined>(options: ClientOptions<E, R, F>): Effect.Effect<Client<SelectedMessage<F>>, never, Scope.Scope | R>;
|
|
615
|
+
/**
|
|
616
|
+
* Create a scoped native client, keeping invalid configuration as a typed failure for runners that report it as their
|
|
617
|
+
* own outcome, such as the supervisor child
|
|
618
|
+
*
|
|
619
|
+
* @internal
|
|
620
|
+
*/
|
|
621
|
+
export declare function openClient<E = never, R = never, const F extends MessageFields | undefined = undefined>(options: ClientOptions<E, R, F>): Effect.Effect<Client<SelectedMessage<F>>, ConfigurationError, Scope.Scope | R>;
|
|
622
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/api/effect/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EACR,iBAAiB,EACjB,WAAW,EACX,aAAa,IAAI,mBAAmB,EACpC,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,eAAe,EAClB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAqB,kBAAkB,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAM9G,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE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