@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,112 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
GuildSticker,
|
|
3
|
+
ExpressionReference,
|
|
4
|
+
ExpressionMetadata,
|
|
5
|
+
ExpressionSourceGuild,
|
|
6
|
+
StickerCreate,
|
|
7
|
+
StickerEdit,
|
|
8
|
+
ExpressionBatch,
|
|
9
|
+
ExpressionDeleteOptions,
|
|
10
|
+
} from "#sdk/expressions"
|
|
11
|
+
import type * as Effect from "effect/Effect"
|
|
12
|
+
import type { GuildOperationFailure, GuildOperationOptions, ModerationOptions } from "#sdk/guilds"
|
|
13
|
+
|
|
14
|
+
/** Read, upload, edit, clone or delete custom stickers.
|
|
15
|
+
* Methods return Effects and share guild HTTP concurrency limits, deadlines and GuildOperationError failures.
|
|
16
|
+
* Reads retry eligible transient failures at most twice. Writes retry only confirmed 429 rejections.
|
|
17
|
+
* Input, permission, 404 and malformed responses do not retry. Unknown outcomes may leave writes applied.
|
|
18
|
+
* Effects start when executed, use the caller's services and await cleanup on interruption. Defects remain in Cause.
|
|
19
|
+
* Closing clients fail with ClientClosedError. Snapshots are frozen and HTTP success is not gateway acknowledgement
|
|
20
|
+
*
|
|
21
|
+
* @category Emoji and stickers
|
|
22
|
+
*/
|
|
23
|
+
export interface Stickers {
|
|
24
|
+
/**
|
|
25
|
+
* Replace a sticker's name, description and tags without changing its image or fetching it first.
|
|
26
|
+
* A fetched sticker can be spread into input if its identity matches the target.
|
|
27
|
+
* Unknown fields fail locally.
|
|
28
|
+
* An empty or null description clears it, and [] clears tags.
|
|
29
|
+
* The namespace's write, failure and cancellation rules apply
|
|
30
|
+
*/
|
|
31
|
+
edit(
|
|
32
|
+
target: ExpressionReference,
|
|
33
|
+
input: StickerEdit,
|
|
34
|
+
options?: ModerationOptions,
|
|
35
|
+
): Effect.Effect<GuildSticker, GuildOperationFailure>
|
|
36
|
+
/**
|
|
37
|
+
* Look up cached sticker metadata using decimal guildId and id, without an HTTP request.
|
|
38
|
+
* The result is undefined when caching is disabled or the entry is absent, expired or invalidated by a conflicting change.
|
|
39
|
+
* A hit becomes more recently used without extending expiry.
|
|
40
|
+
* An invalid ID is misuse: The default API throws GuildOperationError with reason input and the native API dies with it.
|
|
41
|
+
* A closing or closed client has no cache, so the result is undefined
|
|
42
|
+
*/
|
|
43
|
+
get(target: ExpressionReference): Effect.Effect<GuildSticker | undefined>
|
|
44
|
+
/**
|
|
45
|
+
* Fetch a community's sticker list in Fluxer's order, without pagination.
|
|
46
|
+
* The list can change after the response and is not an ongoing completeness guarantee.
|
|
47
|
+
* An enabled metadata cache can retain results, but not image bytes or creator accounts
|
|
48
|
+
*/
|
|
49
|
+
fetchAll(
|
|
50
|
+
guildId: string,
|
|
51
|
+
options?: GuildOperationOptions,
|
|
52
|
+
): Effect.Effect<readonly GuildSticker[], GuildOperationFailure>
|
|
53
|
+
/**
|
|
54
|
+
* Fetch minimal sticker metadata by decimal ID, without requiring source-community membership.
|
|
55
|
+
* This read does not populate the cache
|
|
56
|
+
*/
|
|
57
|
+
fetchMetadata(id: string, options?: GuildOperationOptions): Effect.Effect<ExpressionMetadata, GuildOperationFailure>
|
|
58
|
+
/**
|
|
59
|
+
* Fetch the public presentation of the community that owns a custom sticker with this decimal ID: Its ID, name, icon hash and badges.
|
|
60
|
+
* Fluxer answers when the source community is discoverable or the bot is a member of it.
|
|
61
|
+
* A private source community the bot is not in, an unavailable community or an unknown sticker fails with GuildOperationError
|
|
62
|
+
* whose apiError.code is unknownResource, without revealing which case applies.
|
|
63
|
+
* This read does not populate the cache, and the result does not update when the community changes
|
|
64
|
+
*/
|
|
65
|
+
fetchSource(
|
|
66
|
+
id: string,
|
|
67
|
+
options?: GuildOperationOptions,
|
|
68
|
+
): Effect.Effect<ExpressionSourceGuild, GuildOperationFailure>
|
|
69
|
+
/**
|
|
70
|
+
* Upload one community sticker and return its metadata.
|
|
71
|
+
* Inputs are copied when execution starts.
|
|
72
|
+
* No image URL is fetched automatically.
|
|
73
|
+
* Fluxer checks image format, dimensions, permissions and capacity.
|
|
74
|
+
* A write with an unknown outcome is not replayed
|
|
75
|
+
*/
|
|
76
|
+
create(
|
|
77
|
+
guildId: string,
|
|
78
|
+
input: StickerCreate,
|
|
79
|
+
options?: ModerationOptions,
|
|
80
|
+
): Effect.Effect<GuildSticker, GuildOperationFailure>
|
|
81
|
+
/**
|
|
82
|
+
* Upload 1–50 community stickers in one batch and return separate successes and failures.
|
|
83
|
+
* The input array is copied by index, then its entries are copied when execution starts.
|
|
84
|
+
* Some uploads can succeed while others fail.
|
|
85
|
+
* No rollback or automatic chunking is performed.
|
|
86
|
+
* Failures named by duplicate sticker names cannot be matched reliably to input positions.
|
|
87
|
+
* After an unknown outcome, fetch fresh remote data rather than blindly replaying the batch
|
|
88
|
+
*/
|
|
89
|
+
createMany(
|
|
90
|
+
guildId: string,
|
|
91
|
+
input: readonly StickerCreate[],
|
|
92
|
+
options?: ModerationOptions,
|
|
93
|
+
): Effect.Effect<ExpressionBatch<GuildSticker>, GuildOperationFailure>
|
|
94
|
+
/**
|
|
95
|
+
* Copy a sticker into a community by its source ID, using Fluxer's server-side copy.
|
|
96
|
+
* Source metadata is preserved.
|
|
97
|
+
* Fluxer enforces source copying restrictions
|
|
98
|
+
*/
|
|
99
|
+
clone(
|
|
100
|
+
guildId: string,
|
|
101
|
+
sourceId: string,
|
|
102
|
+
options?: ModerationOptions,
|
|
103
|
+
): Effect.Effect<GuildSticker, GuildOperationFailure>
|
|
104
|
+
/**
|
|
105
|
+
* Remove a sticker, succeeding with no value after HTTP 204.
|
|
106
|
+
* Retained metadata is invalidated.
|
|
107
|
+
* A missing target is an error, not proof of an earlier deletion.
|
|
108
|
+
* The purge option defaults to false.
|
|
109
|
+
* Setting it to true also queues irreversible media removal, subject to Fluxer's restrictions
|
|
110
|
+
*/
|
|
111
|
+
delete(target: ExpressionReference, options?: ExpressionDeleteOptions): Effect.Effect<void, GuildOperationFailure>
|
|
112
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { makeNativeSupervisor } from "#sdk/native-supervisor"
|
|
2
|
+
import { openClient } from "./client.js"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Run bot workers in separate Node processes on this machine.
|
|
6
|
+
* The create method validates the process plan when executed but starts no children.
|
|
7
|
+
* The start method launches those children once and waits for their assignment and configuration acknowledgements, not gateway READY.
|
|
8
|
+
* The waitForReady method waits for a later all-child READY state without starting or stopping the supervisor.
|
|
9
|
+
* The waitForClose method waits until every owned child exits. Cancelling that wait does not stop the children.
|
|
10
|
+
* The status method returns a frozen snapshot of each child's latest reported gateway state for its current process generation.
|
|
11
|
+
* The snapshot is local, not a simultaneous health check across processes
|
|
12
|
+
*
|
|
13
|
+
* Each child module must execute supervisor.child.run, which owns a nested client and an inter-process communication (IPC) cleanup scope.
|
|
14
|
+
* The helper preserves the caller's Effect services and Cause. It asks the parent for a permit immediately before each fresh gateway Identify.
|
|
15
|
+
* Identify authenticates a new gateway session. Resuming an existing session needs no permit.
|
|
16
|
+
* Only one parent permit can be outstanding. The child confirms its synchronous Identify send or cancels before sending.
|
|
17
|
+
* The parent spaces fresh sends by at least one second, unless identify.coordinator paces them.
|
|
18
|
+
* A stalled child must stop and exit before another permit is issued, followed by a full spacing interval
|
|
19
|
+
*
|
|
20
|
+
* The supervisor can size the plan at start with totalShards "auto", share the Identify budget through identify.coordinator and
|
|
21
|
+
* include each child's client diagnostics in status. Children keep resumable sessions through clientOptions.sharding.sessions.
|
|
22
|
+
* The children share Fluxer's limits per bot account through the parent. When one child is rate-limited globally, the parent
|
|
23
|
+
* holds the other children's REST requests until the same time. Member requests from all children share one count of 12 in
|
|
24
|
+
* any 11 seconds, and a members.iterateChunks request past it fails at once with reason rateLimit and retryAfterMs.
|
|
25
|
+
* A child that gets no answer from the parent within one second counts only its own member requests and logs
|
|
26
|
+
* supervisor.memberRequestsLocal once. Per-route REST rate limits stay per child, and other processes using the same
|
|
27
|
+
* token are not counted.
|
|
28
|
+
* It installs no signal handlers and does not terminate the process.
|
|
29
|
+
* After the configured graceful deadline, the parent can terminate only its own unresponsive child and still waits for its exit.
|
|
30
|
+
* A crashed child restarts by default, up to three times in a row with exponentially increasing delays.
|
|
31
|
+
* Set restart to false to turn this off.
|
|
32
|
+
* The childEnvironment, args and execArgv options configure children but never appear in status or failures.
|
|
33
|
+
* Child output follows childOutput: Lines are forwarded with a child label by default, and inherit or ignore can be chosen instead
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { Effect } from "effect"
|
|
37
|
+
* import { supervisor } from "@neontechspace/fluxerly/effect"
|
|
38
|
+
*
|
|
39
|
+
* export const workers = Effect.gen(function* () {
|
|
40
|
+
* const managed = yield* supervisor.create({
|
|
41
|
+
* entry: "/srv/bot-worker.js",
|
|
42
|
+
* totalShards: 2,
|
|
43
|
+
* assignments: [
|
|
44
|
+
* { id: "one", shardIds: [0] },
|
|
45
|
+
* { id: "two", shardIds: [1] },
|
|
46
|
+
* ],
|
|
47
|
+
* })
|
|
48
|
+
* yield* managed.start().pipe(
|
|
49
|
+
* Effect.andThen(managed.waitForClose()),
|
|
50
|
+
* Effect.ensuring(managed.shutdown()),
|
|
51
|
+
* )
|
|
52
|
+
* return managed.status()
|
|
53
|
+
* })
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @category Sharding and supervision
|
|
57
|
+
*/
|
|
58
|
+
export const supervisor: import("#sdk/native-supervisor").NativeSupervisorTools = makeNativeSupervisor(openClient)
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import type * as Effect from "effect/Effect"
|
|
2
|
+
import type * as Stream from "effect/Stream"
|
|
3
|
+
import type {
|
|
4
|
+
GuildThreadChannel,
|
|
5
|
+
ThreadMember,
|
|
6
|
+
ChannelOperationFailure,
|
|
7
|
+
ChannelOperationOptions,
|
|
8
|
+
ChannelAuditOperationOptions,
|
|
9
|
+
} from "#sdk/channels"
|
|
10
|
+
import type { Message, MessageCore, MessageReference } from "#sdk/messages"
|
|
11
|
+
import type { PaginationError } from "#sdk/pagination"
|
|
12
|
+
import type {
|
|
13
|
+
ArchivedThreadPage,
|
|
14
|
+
ArchivedThreadQuery,
|
|
15
|
+
ForumPost,
|
|
16
|
+
ForumPostCreate,
|
|
17
|
+
ThreadCreate,
|
|
18
|
+
ThreadEdit,
|
|
19
|
+
ThreadFromMessageCreate,
|
|
20
|
+
ThreadMemberIterationQuery,
|
|
21
|
+
ThreadMemberPageQuery,
|
|
22
|
+
ThreadMemberQuery,
|
|
23
|
+
ThreadSearchPage,
|
|
24
|
+
ThreadSearchQuery,
|
|
25
|
+
} from "#sdk/threads"
|
|
26
|
+
|
|
27
|
+
/** Create threads and forum posts, change, list and search threads, and manage thread members.
|
|
28
|
+
* HTTP methods return Effects and do not connect the gateway.
|
|
29
|
+
* Bots can use threads in every community where Fluxer enables them, without a capability setting.
|
|
30
|
+
* Read a thread with channels.fetch, delete it with channels.delete and send to it with messages.send and its ID
|
|
31
|
+
*
|
|
32
|
+
* Supply decimal IDs. Thread requests share this client's REST slots and queue limits with the other HTTP methods.
|
|
33
|
+
* Total deadline defaults to the client's rest.defaultTimeoutMs, 30,000 ms unless configured, including queue waits,
|
|
34
|
+
* retries and rate-limit waits. Reads retry transport failures and HTTP 500/502/503/504 at most twice.
|
|
35
|
+
* Writes retry only confirmed 429 responses, and no write is followed by an automatic confirmation fetch
|
|
36
|
+
*
|
|
37
|
+
* Manage Threads is an elevated permission.
|
|
38
|
+
* In a community whose mfaLevel is GuildMfaLevels.Elevated, an action that needs it fails with apiError.code twoFactorRequired, unless the bot owns the community or its application owner has two-factor authentication enabled.
|
|
39
|
+
* The create, createFromMessage, createPost and edit methods accept ChannelAuditOperationOptions, and the other methods
|
|
40
|
+
* reject auditReason. The fetchActive list enters the enabled channel cache, while archived pages, search results,
|
|
41
|
+
* forum posts and member reads do not. The edit, join, leave, addMember and removeMember methods remove their thread
|
|
42
|
+
* from the enabled channel cache
|
|
43
|
+
*
|
|
44
|
+
* Operation inputs are copied when the Effect executes. Expected failures use ChannelOperationError, whose operation
|
|
45
|
+
* names the threads method, or ClientClosedError. Interruption and defects retain Cause after owned cleanup
|
|
46
|
+
*
|
|
47
|
+
* @category Channels
|
|
48
|
+
*/
|
|
49
|
+
export interface Threads<M extends MessageCore = Message> {
|
|
50
|
+
/**
|
|
51
|
+
* Create a thread that is not attached to a message in a text or announcement channel, and return its frozen
|
|
52
|
+
* snapshot. The bot becomes the thread's first member, and Fluxer posts a ThreadCreated notice in the parent channel
|
|
53
|
+
* for a public or announcement thread.
|
|
54
|
+
* Fluxer requires Create Public Threads, or Create Private Threads for a private thread.
|
|
55
|
+
* Use createPost in a forum or media channel.
|
|
56
|
+
* A lost response can leave the thread created, and the SDK never resends it
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* import { Effect } from "effect"
|
|
61
|
+
* import { ChannelType, ThreadAutoArchiveMinutes, type Client } from "@neontechspace/fluxerly/effect"
|
|
62
|
+
* export const threadExample = (client: Client, channelId: string) =>
|
|
63
|
+
* client.threads
|
|
64
|
+
* .create(channelId, {
|
|
65
|
+
* name: "Release planning",
|
|
66
|
+
* type: ChannelType.PrivateThread,
|
|
67
|
+
* autoArchiveMinutes: ThreadAutoArchiveMinutes.OneDay,
|
|
68
|
+
* })
|
|
69
|
+
* .pipe(Effect.flatMap((thread) => client.messages.send(thread.id, "Planning starts here")))
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
create(
|
|
73
|
+
channelId: string,
|
|
74
|
+
input: ThreadCreate,
|
|
75
|
+
options?: ChannelAuditOperationOptions,
|
|
76
|
+
): Effect.Effect<GuildThreadChannel, ChannelOperationFailure>
|
|
77
|
+
/**
|
|
78
|
+
* Start a public thread on an existing message and return its frozen snapshot.
|
|
79
|
+
* The thread takes the message's ID, and the message gains MessageFlags.HasThread.
|
|
80
|
+
* Only a default message or a reply in a text or announcement channel can start a thread, and only one.
|
|
81
|
+
* In an announcement channel the thread is an announcement thread.
|
|
82
|
+
* Fluxer posts a ThreadCreated notice in the parent channel unless the message is among its five newest messages.
|
|
83
|
+
* Fluxer requires Create Public Threads and Read Message History.
|
|
84
|
+
* A lost response can leave the thread created, and the SDK never resends it.
|
|
85
|
+
* After an unknown outcome, channels.fetch(message.id) shows whether the thread exists
|
|
86
|
+
*/
|
|
87
|
+
createFromMessage(
|
|
88
|
+
message: MessageReference,
|
|
89
|
+
input: ThreadFromMessageCreate,
|
|
90
|
+
options?: ChannelAuditOperationOptions,
|
|
91
|
+
): Effect.Effect<GuildThreadChannel, ChannelOperationFailure>
|
|
92
|
+
/**
|
|
93
|
+
* Create a post in a forum or media channel, a public thread with its first message, and return both frozen.
|
|
94
|
+
* Files in the message are sent inline as multipart form data in the same request, never through presigned uploads,
|
|
95
|
+
* under messages.send's attachment rules and the client's upload budget.
|
|
96
|
+
* Fluxer requires Send Messages in the channel plus the permissions the message content needs, and applies the
|
|
97
|
+
* channel's tag rules. When the first message fails, Fluxer removes the new post again.
|
|
98
|
+
* A lost response can leave the post created, and the SDK never resends it
|
|
99
|
+
*/
|
|
100
|
+
createPost(
|
|
101
|
+
channelId: string,
|
|
102
|
+
input: ForumPostCreate,
|
|
103
|
+
options?: ChannelAuditOperationOptions,
|
|
104
|
+
): Effect.Effect<ForumPost<M>, ChannelOperationFailure>
|
|
105
|
+
/**
|
|
106
|
+
* Change only the supplied thread settings and return the frozen thread.
|
|
107
|
+
* It uses the route and rate limit of channels.edit. ThreadEdit describes which changes the thread's creator may
|
|
108
|
+
* make and which need Manage Threads
|
|
109
|
+
*/
|
|
110
|
+
edit(
|
|
111
|
+
threadId: string,
|
|
112
|
+
input: ThreadEdit,
|
|
113
|
+
options?: ChannelAuditOperationOptions,
|
|
114
|
+
): Effect.Effect<GuildThreadChannel, ChannelOperationFailure>
|
|
115
|
+
/**
|
|
116
|
+
* Fetch every active thread the bot can view in a community, newest first, as one frozen list.
|
|
117
|
+
* A private thread appears when the bot joined it or can manage threads in its parent channel.
|
|
118
|
+
* Each thread the bot joined has membership set
|
|
119
|
+
*/
|
|
120
|
+
fetchActive(
|
|
121
|
+
guildId: string,
|
|
122
|
+
options?: ChannelOperationOptions,
|
|
123
|
+
): Effect.Effect<readonly GuildThreadChannel[], ChannelOperationFailure>
|
|
124
|
+
/**
|
|
125
|
+
* Fetch one frozen page of archived threads of a text, announcement, forum or media channel, as ArchivedThreadQuery
|
|
126
|
+
* selects. Scopes "public" and "private" list the most recently archived first, and "joinedPrivate" lists the newest
|
|
127
|
+
* threads first. Each thread the bot joined has membership set.
|
|
128
|
+
* Fluxer requires Read Message History, plus Manage Threads for scope "private"
|
|
129
|
+
*/
|
|
130
|
+
fetchArchived(
|
|
131
|
+
channelId: string,
|
|
132
|
+
query?: ArchivedThreadQuery,
|
|
133
|
+
options?: ChannelOperationOptions,
|
|
134
|
+
): Effect.Effect<ArchivedThreadPage, ChannelOperationFailure>
|
|
135
|
+
/**
|
|
136
|
+
* Search the threads of a text, announcement, forum or media channel by name, tags and state, and return one frozen
|
|
137
|
+
* page. Fluxer requires Read Message History.
|
|
138
|
+
* While Fluxer builds the community's search index it answers HTTP 202 with code SEARCH_INDEX_NOT_READY, which this
|
|
139
|
+
* method returns as an indexing page without retrying. Any other HTTP 202 answer fails with reason response.
|
|
140
|
+
* While Fluxer's search service is turned off, the call fails with reason rejected and apiError.providerCode
|
|
141
|
+
* FEATURE_TEMPORARILY_DISABLED
|
|
142
|
+
*/
|
|
143
|
+
search(
|
|
144
|
+
channelId: string,
|
|
145
|
+
query?: ThreadSearchQuery,
|
|
146
|
+
options?: ChannelOperationOptions,
|
|
147
|
+
): Effect.Effect<ThreadSearchPage<M>, ChannelOperationFailure>
|
|
148
|
+
/**
|
|
149
|
+
* Add the bot to a thread, succeeding with no value after HTTP 204. Joining a thread the bot already belongs to also
|
|
150
|
+
* succeeds. An archived thread cannot be joined, and a locked one needs Manage Threads
|
|
151
|
+
*/
|
|
152
|
+
join(threadId: string, options?: ChannelOperationOptions): Effect.Effect<void, ChannelOperationFailure>
|
|
153
|
+
/**
|
|
154
|
+
* Remove the bot from a thread, succeeding with no value after HTTP 204.
|
|
155
|
+
* An archived thread cannot be left, and Fluxer rejects a bot that is not a member with UNKNOWN_THREAD_MEMBER
|
|
156
|
+
*/
|
|
157
|
+
leave(threadId: string, options?: ChannelOperationOptions): Effect.Effect<void, ChannelOperationFailure>
|
|
158
|
+
/**
|
|
159
|
+
* Add a community member who can view the parent channel to a thread, succeeding with no value after HTTP 204.
|
|
160
|
+
* Adding a current member also succeeds, and otherwise Fluxer posts a RecipientAdd notice in the thread.
|
|
161
|
+
* Fluxer requires Send Messages In Threads, plus Manage Threads in a locked thread and in a private thread that is
|
|
162
|
+
* not invitable, unless the added member can manage threads. An archived thread accepts no new members
|
|
163
|
+
*/
|
|
164
|
+
addMember(
|
|
165
|
+
threadId: string,
|
|
166
|
+
userId: string,
|
|
167
|
+
options?: ChannelOperationOptions,
|
|
168
|
+
): Effect.Effect<void, ChannelOperationFailure>
|
|
169
|
+
/**
|
|
170
|
+
* Remove a member from a thread, succeeding with no value after HTTP 204, and Fluxer posts a RecipientRemove notice
|
|
171
|
+
* in the thread. Removing the bot's own ID works like leave.
|
|
172
|
+
* Fluxer requires Manage Threads unless the bot created the private thread. A user who is not a member fails with
|
|
173
|
+
* UNKNOWN_THREAD_MEMBER, and an archived thread cannot change
|
|
174
|
+
*/
|
|
175
|
+
removeMember(
|
|
176
|
+
threadId: string,
|
|
177
|
+
userId: string,
|
|
178
|
+
options?: ChannelOperationOptions,
|
|
179
|
+
): Effect.Effect<void, ChannelOperationFailure>
|
|
180
|
+
/**
|
|
181
|
+
* Fetch one thread member as a frozen ThreadMember. A user who is not a member fails with UNKNOWN_THREAD_MEMBER.
|
|
182
|
+
* With withMember, member holds the user's community membership while the user has one. Its community comes from
|
|
183
|
+
* the channel cache when the thread is cached there, otherwise from one extra channel read that shares the deadline
|
|
184
|
+
* and whose failure fails this call
|
|
185
|
+
*/
|
|
186
|
+
fetchMember(
|
|
187
|
+
threadId: string,
|
|
188
|
+
userId: string,
|
|
189
|
+
query?: ThreadMemberQuery,
|
|
190
|
+
options?: ChannelOperationOptions,
|
|
191
|
+
): Effect.Effect<ThreadMember, ChannelOperationFailure>
|
|
192
|
+
/**
|
|
193
|
+
* Fetch one page of thread members in ascending user ID order, as frozen ThreadMember values.
|
|
194
|
+
* With withMember, each member holds the user's community membership while the user has one, with the community
|
|
195
|
+
* resolved as fetchMember describes
|
|
196
|
+
*/
|
|
197
|
+
fetchMembers(
|
|
198
|
+
threadId: string,
|
|
199
|
+
query?: ThreadMemberPageQuery,
|
|
200
|
+
options?: ChannelOperationOptions,
|
|
201
|
+
): Effect.Effect<readonly ThreadMember[], ChannelOperationFailure>
|
|
202
|
+
/**
|
|
203
|
+
* Read thread members in ascending user ID order, buffering one page and never prefetching.
|
|
204
|
+
* The maxItems option is required. The pageSize option defaults to 100 and accepts 1–100, maxPages defaults to 100,
|
|
205
|
+
* and timeoutMs applies to each page. An empty page or maxItems ends the scan.
|
|
206
|
+
* Invalid traversal input, a stalled cursor or reaching the page budget fails with PaginationError, and remote
|
|
207
|
+
* failures keep threads.fetchMembers's errors.
|
|
208
|
+
* With withMember, one consumption resolves the thread's community once, as fetchMember describes.
|
|
209
|
+
* Each consumption is independent, and client closure releases the page and fails the next pull
|
|
210
|
+
*
|
|
211
|
+
* @remarks
|
|
212
|
+
* The returned Stream reads pages only while it is consumed.
|
|
213
|
+
* Failures end the Stream in its error channel.
|
|
214
|
+
* Interruption waits for request cleanup, and ending consumption releases the buffered page
|
|
215
|
+
*/
|
|
216
|
+
iterateMembers(
|
|
217
|
+
threadId: string,
|
|
218
|
+
query: ThreadMemberIterationQuery,
|
|
219
|
+
options?: ChannelOperationOptions,
|
|
220
|
+
): Stream.Stream<ThreadMember, ChannelOperationFailure | PaginationError>
|
|
221
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { User, UserProfile, UserProfileQuery, UserOperationFailure, UserOperationOptions } from "#sdk/users"
|
|
2
|
+
import type * as Effect from "effect/Effect"
|
|
3
|
+
|
|
4
|
+
/** Read public account information or a privacy-filtered profile.
|
|
5
|
+
* Methods return Effects with the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured) and at most two eligible transient read retries.
|
|
6
|
+
* Writes retry only confirmed rate-limit rejection, never an unknown outcome. No gateway connection is required.
|
|
7
|
+
* Cancellation and unexpected faults remain in Cause rather than becoming UserOperationError
|
|
8
|
+
*
|
|
9
|
+
* @category Users and DMs
|
|
10
|
+
*/
|
|
11
|
+
export interface Users {
|
|
12
|
+
/**
|
|
13
|
+
* Look up a public account in the optional cache using its decimal ID, without a request.
|
|
14
|
+
* A hit may be stale and becomes more recently used without extending its age.
|
|
15
|
+
* A miss produces undefined.
|
|
16
|
+
* An invalid ID is misuse: The default API throws UserOperationError with reason input and the native API dies with it.
|
|
17
|
+
* A closing or closed client has no cache, so the result is undefined
|
|
18
|
+
*/
|
|
19
|
+
get(id: string): Effect.Effect<User | undefined>
|
|
20
|
+
/**
|
|
21
|
+
* Look up the bot's own public account as the gateway's READY reported it, without a request.
|
|
22
|
+
* The result is undefined until this client's first READY, and also while no READY has carried a complete public account.
|
|
23
|
+
* A later READY with a complete public account, such as for a new session, replaces it, while an incomplete one keeps the previous account.
|
|
24
|
+
* Other user updates and fetchSelf results do not change it, so its username or avatar can be stale.
|
|
25
|
+
* The value remains available after the client stops.
|
|
26
|
+
* This lookup never fails. Use fetchSelf for a current remote snapshot
|
|
27
|
+
*/
|
|
28
|
+
getSelf(): Effect.Effect<User | undefined>
|
|
29
|
+
/**
|
|
30
|
+
* Fetch a public account snapshot by decimal user ID.
|
|
31
|
+
* An unknown user fails with reason notFound rather than an empty result.
|
|
32
|
+
* With the user cache enabled, a concurrent fetch of another user ID does not keep this result from being stored, unless more than 256 user IDs are being read at once
|
|
33
|
+
*/
|
|
34
|
+
fetch(id: string, options?: UserOperationOptions): Effect.Effect<User, UserOperationFailure>
|
|
35
|
+
/**
|
|
36
|
+
* Fetch a user's privacy-filtered profile, optionally for the community specified in query.guildId.
|
|
37
|
+
* The frozen result includes only documented identity and profile fields.
|
|
38
|
+
* The isLimited field reports Fluxer's privacy restriction, not missing community membership.
|
|
39
|
+
* A guildProfile of null means no contextual profile was supplied, not proof the user is outside the community.
|
|
40
|
+
* No gateway connection, hidden member fetch or account or profile cache use is performed, and each call issues a separate read.
|
|
41
|
+
* Users' shared deadlines and eligible read retries apply.
|
|
42
|
+
* Fluxer may clear expired premium state while serving this GET.
|
|
43
|
+
* Invalid input, denied access or a malformed response fails with UserOperationError for users.fetchProfile.
|
|
44
|
+
* Cancellation affects this request only and waits for cleanup
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
49
|
+
* export function profileExample(client: Client, userId: string, guildId: string) {
|
|
50
|
+
* return client.users.fetchProfile(userId, { guildId })
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
fetchProfile(
|
|
55
|
+
id: string,
|
|
56
|
+
query?: UserProfileQuery,
|
|
57
|
+
options?: UserOperationOptions,
|
|
58
|
+
): Effect.Effect<UserProfile, UserOperationFailure>
|
|
59
|
+
/**
|
|
60
|
+
* Fetch the authenticated bot's public account data remotely.
|
|
61
|
+
* Private account fields are excluded.
|
|
62
|
+
* With the user cache enabled, the bot's ID is unknown until the response arrives, so some concurrent user cache changes keep the result out of the cache.
|
|
63
|
+
* Examples are another users.fetch or users.fetchSelf call, a user update event and a lost gateway connection
|
|
64
|
+
*/
|
|
65
|
+
fetchSelf(options?: UserOperationOptions): Effect.Effect<User, UserOperationFailure>
|
|
66
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type IncomingWebhook,
|
|
3
|
+
type WebhookTokenEdit,
|
|
4
|
+
type WebhookMessageInput,
|
|
5
|
+
type WebhookMessageEdit,
|
|
6
|
+
type WebhookClientOptions,
|
|
7
|
+
type WebhookOperationFailure,
|
|
8
|
+
type WebhookMessageOperationOptions,
|
|
9
|
+
} from "#sdk/webhooks"
|
|
10
|
+
import {
|
|
11
|
+
makeWebhookClient,
|
|
12
|
+
webhookTokenFetch,
|
|
13
|
+
webhookTokenEdit,
|
|
14
|
+
webhookTokenDelete,
|
|
15
|
+
webhookSend,
|
|
16
|
+
webhookMessageFetch,
|
|
17
|
+
webhookMessageEdit,
|
|
18
|
+
webhookMessageDelete,
|
|
19
|
+
} from "#sdk/internal/webhooks"
|
|
20
|
+
import * as Effect from "effect/Effect"
|
|
21
|
+
import * as Scope from "effect/Scope"
|
|
22
|
+
import type { InstanceResolveOptions } from "#sdk/instance"
|
|
23
|
+
import type { Message, MessageOperationOptions } from "#sdk/messages"
|
|
24
|
+
import { type ResolvedInstance, effectInstance, type Instance } from "./instance.js"
|
|
25
|
+
|
|
26
|
+
/** Send and manage one incoming webhook's messages using its webhook token.
|
|
27
|
+
* Follower webhooks have no exposed token and Fluxer rejects their token-authenticated operations with UNKNOWN_WEBHOOK.
|
|
28
|
+
* This client does not use a bot token, connect the gateway, cache resources or store tokens persistently
|
|
29
|
+
*
|
|
30
|
+
* Operations start when executed and preserve unexpected faults/interruption.
|
|
31
|
+
* Cleanup defects stop retries and preserve any operation failure or interruption alongside the defect in Cause
|
|
32
|
+
*
|
|
33
|
+
* Requests default to a 30-second total deadline across queue waits, rate-limit waits, retries and HTTP.
|
|
34
|
+
* Confirmed HTTP 429 responses use this client's shared rate-limit state as described on Client.
|
|
35
|
+
* Cancellation interrupts only that operation and awaits request/body cleanup, without rolling back remote effects
|
|
36
|
+
*
|
|
37
|
+
* Errors contain only safe categories and status, never credential-bearing paths or upstream bodies
|
|
38
|
+
*
|
|
39
|
+
* Successful JSON bodies are capped at 16 MiB of response-body bytes before parsing, not total heap usage. Oversized successes fail with reason response.
|
|
40
|
+
* A response failure after a mutation request was sent leaves an unknown outcome and never retries automatically
|
|
41
|
+
*
|
|
42
|
+
* Other client caches are not updated by this token-only client
|
|
43
|
+
*
|
|
44
|
+
* @category Invites and webhooks
|
|
45
|
+
*/
|
|
46
|
+
export interface WebhookClient {
|
|
47
|
+
/**
|
|
48
|
+
* The webhook's decimal ID, without its token or a token-bearing URL
|
|
49
|
+
*/
|
|
50
|
+
readonly id: string
|
|
51
|
+
/**
|
|
52
|
+
* Resolve this webhook client's selected instance and get pure URL helpers for it
|
|
53
|
+
*/
|
|
54
|
+
readonly instance: Instance
|
|
55
|
+
/**
|
|
56
|
+
* Fetch this incoming webhook's current metadata using its token, not bot authentication.
|
|
57
|
+
* Creator and private fields are not retained
|
|
58
|
+
*/
|
|
59
|
+
fetch(options?: MessageOperationOptions): Effect.Effect<IncomingWebhook, WebhookOperationFailure>
|
|
60
|
+
/**
|
|
61
|
+
* Change this webhook's name or avatar using its token and return metadata without credentials.
|
|
62
|
+
* To move it to another channel, use a bot client's webhooks.edit.
|
|
63
|
+
* A failed or cancelled write can still have applied.
|
|
64
|
+
* This method does not close the client
|
|
65
|
+
*/
|
|
66
|
+
edit(
|
|
67
|
+
input: WebhookTokenEdit,
|
|
68
|
+
options?: MessageOperationOptions,
|
|
69
|
+
): Effect.Effect<IncomingWebhook, WebhookOperationFailure>
|
|
70
|
+
/**
|
|
71
|
+
* Delete this webhook remotely using its token, succeeding after HTTP 204.
|
|
72
|
+
* This does not close the client or release its local credential reference.
|
|
73
|
+
* Later requests normally fail with notFound because the token was revoked.
|
|
74
|
+
* Call shutdown separately to release the client's local resources
|
|
75
|
+
*/
|
|
76
|
+
delete(options?: MessageOperationOptions): Effect.Effect<void, WebhookOperationFailure>
|
|
77
|
+
/**
|
|
78
|
+
* Send a webhook message and return the created message after Fluxer's HTTP response.
|
|
79
|
+
* A plain string sends only that text, as shorthand for `{ content }`.
|
|
80
|
+
* The SDK uses wait=true, and mentions are disabled by default.
|
|
81
|
+
* A supplied nonce requests best-effort duplicate suppression for five minutes, not exactly-once delivery.
|
|
82
|
+
* Without a nonce, none is sent unless a forward source supplies one, and a nonce on both the message and its forward source fails before dispatch.
|
|
83
|
+
* Reply references can include files.
|
|
84
|
+
* Forward references preserve only the source snapshot and reject new content or uploads
|
|
85
|
+
*
|
|
86
|
+
* Set threadId to post into an existing thread. In a forum or media channel, set threadName, with optional
|
|
87
|
+
* appliedTagIds, to start a new post instead. The result is then the post's first message, whose channelId is the
|
|
88
|
+
* new post's ID. See WebhookMessageInput for the rules that the SDK checks before dispatch
|
|
89
|
+
*
|
|
90
|
+
* Each attachment supplies data bytes, a sized Blob or File source, or a finite stream with its exact size.
|
|
91
|
+
* Metadata and data bytes are copied when execution starts, before waiting.
|
|
92
|
+
* File and stream sources are read when the multipart upload begins, without copying or spooling.
|
|
93
|
+
* Keep file data stable, and supply a fresh stream for each operation because a stream is consumed at most once and must deliver exactly its declared size.
|
|
94
|
+
* Cleanup cancels unfinished readers and awaits lock release, without closing caller paths or FileHandles.
|
|
95
|
+
* Multipart file uploads are streamed with a maximum of 50 MiB per file and share the configured upload-byte budget.
|
|
96
|
+
* An attachment:// image or thumbnail URL must match one new upload whose filename maps to an image or video MIME type.
|
|
97
|
+
* The flags input accepts only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications.
|
|
98
|
+
* Crossposted, IsCrosspost and SourceMessageDeleted are server-managed.
|
|
99
|
+
* Those bits and VoiceMessage fail locally before dispatch
|
|
100
|
+
*
|
|
101
|
+
* A failure with an unknown outcome can leave the message posted and is never replayed automatically.
|
|
102
|
+
* A confirmed inline HTTP 429 can replay copied data bytes, but file and stream inputs fail with rateLimit without being reopened or reread
|
|
103
|
+
*/
|
|
104
|
+
send(
|
|
105
|
+
input: WebhookMessageInput | string,
|
|
106
|
+
options?: MessageOperationOptions,
|
|
107
|
+
): Effect.Effect<Message, WebhookOperationFailure>
|
|
108
|
+
/**
|
|
109
|
+
* Fetch a message authored by this webhook in its current channel, using a decimal message ID.
|
|
110
|
+
* For a message in a thread, including a forum post, set options.threadId to the thread's ID.
|
|
111
|
+
* Eligible transient read failures have bounded retries
|
|
112
|
+
*/
|
|
113
|
+
fetchMessage(
|
|
114
|
+
messageId: string,
|
|
115
|
+
options?: WebhookMessageOperationOptions,
|
|
116
|
+
): Effect.Effect<Message, WebhookOperationFailure>
|
|
117
|
+
/**
|
|
118
|
+
* Change this webhook's message and return its updated snapshot.
|
|
119
|
+
* A plain string replaces only the text, as shorthand for `{ content }`.
|
|
120
|
+
* Omitted fields stay unchanged.
|
|
121
|
+
* Mentions default off and attachments cannot be replaced.
|
|
122
|
+
* A flags-only edit replaces only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications, and 0 clears them.
|
|
123
|
+
* Crossposted, IsCrosspost and SourceMessageDeleted are server-managed.
|
|
124
|
+
* Those bits and VoiceMessage fail locally before dispatch.
|
|
125
|
+
* Embed input cannot resolve existing file references.
|
|
126
|
+
* For a message in a thread, including a forum post, set options.threadId to the thread's ID
|
|
127
|
+
*/
|
|
128
|
+
editMessage(
|
|
129
|
+
messageId: string,
|
|
130
|
+
input: WebhookMessageEdit | string,
|
|
131
|
+
options?: WebhookMessageOperationOptions,
|
|
132
|
+
): Effect.Effect<Message, WebhookOperationFailure>
|
|
133
|
+
/**
|
|
134
|
+
* Delete this webhook's message, succeeding with no value after HTTP 204.
|
|
135
|
+
* For a message in a thread, including a forum post, set options.threadId to the thread's ID.
|
|
136
|
+
* Success does not prove the message previously existed.
|
|
137
|
+
* A failure with an unknown outcome can leave the message deleted
|
|
138
|
+
*/
|
|
139
|
+
deleteMessage(
|
|
140
|
+
messageId: string,
|
|
141
|
+
options?: WebhookMessageOperationOptions,
|
|
142
|
+
): Effect.Effect<void, WebhookOperationFailure>
|
|
143
|
+
/**
|
|
144
|
+
* Permanently stop this local client, reject new work, cancel active work and await transport cleanup.
|
|
145
|
+
* The client's token reference is released, but the remote webhook and caller-held credentials remain.
|
|
146
|
+
* Concurrent calls wait for the same pending cleanup.
|
|
147
|
+
* No expected failure is returned
|
|
148
|
+
*
|
|
149
|
+
* @remarks
|
|
150
|
+
* Cleanup defects remain in the Cause
|
|
151
|
+
*/
|
|
152
|
+
shutdown(): Effect.Effect<void>
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Create a webhook-only client for hosted Fluxer or an explicitly selected self-hosted instance, from { id, token } or redacted creation credentials.
|
|
157
|
+
* Validate the inputs locally without requests. The client copies the credential into its own redacted reference.
|
|
158
|
+
* Creation starts when the Effect executes. Closing its Scope shuts down the client.
|
|
159
|
+
* The Effect Clock available when creation executes owns this client's request queue and deadlines. Providing a
|
|
160
|
+
* different Clock around a later operation does not replace that owner Clock.
|
|
161
|
+
* The SDK does not persist the token, connect a gateway or authenticate as a bot. Reuse one client per credential to share request slots, queue limits and rate-limit waits.
|
|
162
|
+
* Invalid configuration is misuse and dies with ConfigurationError, and other defects retain their Cause
|
|
163
|
+
* @example
|
|
164
|
+
* ```ts
|
|
165
|
+
* import { Effect } from "effect"
|
|
166
|
+
* import { createWebhookClient } from "@neontechspace/fluxerly/effect"
|
|
167
|
+
* export const webhookExample = (id: string, token: string) => Effect.scoped(Effect.gen(function* () {
|
|
168
|
+
* const webhook = yield* createWebhookClient({ id, token })
|
|
169
|
+
* const message = yield* webhook.send({ content: "Deploying…" })
|
|
170
|
+
* return yield* webhook.editMessage(message.id, { content: "Deployed" })
|
|
171
|
+
* }))
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @category Invites and webhooks
|
|
175
|
+
*/
|
|
176
|
+
export function createWebhookClient(options: WebhookClientOptions): Effect.Effect<WebhookClient, never, Scope.Scope> {
|
|
177
|
+
return Effect.gen(function* () {
|
|
178
|
+
const owner = yield* makeWebhookClient(options, true).pipe(Effect.orDie)
|
|
179
|
+
yield* Effect.addFinalizer(() => owner.shutdown())
|
|
180
|
+
let instance: ResolvedInstance | undefined
|
|
181
|
+
return Object.freeze({
|
|
182
|
+
id: owner.id,
|
|
183
|
+
instance: Object.freeze({
|
|
184
|
+
resolve: (options?: InstanceResolveOptions) =>
|
|
185
|
+
owner.instance
|
|
186
|
+
.resolveInfo(options)
|
|
187
|
+
.pipe(Effect.map((value) => (instance ??= effectInstance(value)))),
|
|
188
|
+
}),
|
|
189
|
+
fetch: (options?: MessageOperationOptions) =>
|
|
190
|
+
owner.run("webhooks.fetchToken", () => webhookTokenFetch(owner.id), options),
|
|
191
|
+
edit: (input: WebhookTokenEdit, options?: MessageOperationOptions) =>
|
|
192
|
+
owner.run("webhooks.editToken", () => webhookTokenEdit(owner.id, input), options),
|
|
193
|
+
delete: (options?: MessageOperationOptions) =>
|
|
194
|
+
owner.run("webhooks.deleteToken", () => webhookTokenDelete(owner.id), options),
|
|
195
|
+
send: (input: WebhookMessageInput | string, options?: MessageOperationOptions) =>
|
|
196
|
+
owner.run("webhooks.send", () => webhookSend(owner.id, input), options),
|
|
197
|
+
fetchMessage: (id: string, options?: WebhookMessageOperationOptions) =>
|
|
198
|
+
owner.run("webhooks.fetchMessage", () => webhookMessageFetch(owner.id, id, options), options),
|
|
199
|
+
editMessage: (id: string, input: WebhookMessageEdit | string, options?: WebhookMessageOperationOptions) =>
|
|
200
|
+
owner.run("webhooks.editMessage", () => webhookMessageEdit(owner.id, id, input, options), options),
|
|
201
|
+
deleteMessage: (id: string, options?: WebhookMessageOperationOptions) =>
|
|
202
|
+
owner.run("webhooks.deleteMessage", () => webhookMessageDelete(owner.id, id, options), options),
|
|
203
|
+
shutdown: () => owner.shutdown(),
|
|
204
|
+
})
|
|
205
|
+
})
|
|
206
|
+
}
|