@neontechspace/fluxerly 1001.0.0 → 1002.0.0-nightly.20261105.61
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/agents/AGENTS.md +15 -4
- package/dist/api/default/attachments.d.ts +4 -3
- package/dist/api/default/attachments.d.ts.map +1 -1
- package/dist/api/default/cache.d.ts +1 -0
- package/dist/api/default/cache.d.ts.map +1 -1
- package/dist/api/default/channels.d.ts +2 -1
- package/dist/api/default/channels.d.ts.map +1 -1
- package/dist/api/default/client.d.ts +1 -1
- package/dist/api/default/client.js +1 -1
- package/dist/api/default/collectors.d.ts +1 -1
- package/dist/api/default/emojis.d.ts +4 -1
- package/dist/api/default/emojis.d.ts.map +1 -1
- package/dist/api/default/guilds.d.ts +9 -5
- package/dist/api/default/guilds.d.ts.map +1 -1
- package/dist/api/default/invites.d.ts +3 -2
- package/dist/api/default/invites.d.ts.map +1 -1
- package/dist/api/default/members.d.ts +5 -3
- package/dist/api/default/members.d.ts.map +1 -1
- package/dist/api/default/messages.d.ts +18 -11
- package/dist/api/default/messages.d.ts.map +1 -1
- package/dist/api/default/oauth.d.ts +1 -1
- package/dist/api/default/options.d.ts +11 -4
- package/dist/api/default/options.d.ts.map +1 -1
- package/dist/api/default/rest.d.ts +5 -3
- package/dist/api/default/rest.d.ts.map +1 -1
- package/dist/api/default/roles.d.ts +2 -1
- package/dist/api/default/roles.d.ts.map +1 -1
- package/dist/api/default/stickers.d.ts +4 -1
- package/dist/api/default/stickers.d.ts.map +1 -1
- package/dist/api/default/webhook-client.d.ts +9 -4
- package/dist/api/default/webhook-client.d.ts.map +1 -1
- package/dist/api/default/webhook-client.js.map +1 -1
- package/dist/api/effect/attachments.d.ts +4 -3
- package/dist/api/effect/attachments.d.ts.map +1 -1
- package/dist/api/effect/cache.d.ts +1 -0
- package/dist/api/effect/cache.d.ts.map +1 -1
- package/dist/api/effect/channels.d.ts +2 -1
- package/dist/api/effect/channels.d.ts.map +1 -1
- package/dist/api/effect/client.d.ts +1 -1
- package/dist/api/effect/client.js +1 -1
- package/dist/api/effect/collectors.d.ts +1 -1
- package/dist/api/effect/emojis.d.ts +4 -1
- package/dist/api/effect/emojis.d.ts.map +1 -1
- package/dist/api/effect/guilds.d.ts +9 -5
- package/dist/api/effect/guilds.d.ts.map +1 -1
- package/dist/api/effect/helpers.d.ts +4 -2
- package/dist/api/effect/helpers.d.ts.map +1 -1
- package/dist/api/effect/helpers.js.map +1 -1
- package/dist/api/effect/invites.d.ts +3 -2
- package/dist/api/effect/invites.d.ts.map +1 -1
- package/dist/api/effect/members.d.ts +5 -3
- package/dist/api/effect/members.d.ts.map +1 -1
- package/dist/api/effect/messages.d.ts +18 -11
- package/dist/api/effect/messages.d.ts.map +1 -1
- package/dist/api/effect/oauth.d.ts +1 -1
- package/dist/api/effect/rest.d.ts +3 -1
- package/dist/api/effect/rest.d.ts.map +1 -1
- package/dist/api/effect/roles.d.ts +2 -1
- package/dist/api/effect/roles.d.ts.map +1 -1
- package/dist/api/effect/stickers.d.ts +4 -1
- package/dist/api/effect/stickers.d.ts.map +1 -1
- package/dist/api/effect/webhook-client.d.ts +9 -4
- package/dist/api/effect/webhook-client.d.ts.map +1 -1
- package/dist/api/effect/webhook-client.js.map +1 -1
- package/dist/api-errors.d.ts +2 -0
- package/dist/api-errors.d.ts.map +1 -1
- package/dist/api-errors.js +7 -0
- package/dist/api-errors.js.map +1 -1
- package/dist/assets.d.ts.map +1 -1
- package/dist/assets.js +5 -3
- package/dist/assets.js.map +1 -1
- package/dist/attachments.d.ts +24 -15
- package/dist/attachments.d.ts.map +1 -1
- package/dist/attachments.js.map +1 -1
- package/dist/builders.d.ts +1 -1
- package/dist/builders.js +1 -1
- package/dist/channels.d.ts +45 -25
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js.map +1 -1
- package/dist/client.d.ts +16 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/command-arguments.d.ts +2 -2
- package/dist/command-arguments.d.ts.map +1 -1
- package/dist/discovery.d.ts +6 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/embeds.d.ts +53 -19
- package/dist/embeds.d.ts.map +1 -1
- package/dist/error-tools.d.ts +13 -4
- package/dist/error-tools.d.ts.map +1 -1
- package/dist/error-tools.js +15 -3
- package/dist/error-tools.js.map +1 -1
- package/dist/errors.d.ts +13 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +10 -7
- package/dist/events.d.ts.map +1 -1
- package/dist/expressions.d.ts +12 -6
- package/dist/expressions.d.ts.map +1 -1
- package/dist/gateway-payloads.d.ts +85 -29
- package/dist/gateway-payloads.d.ts.map +1 -1
- package/dist/gateway-payloads.js +3 -2
- package/dist/gateway-payloads.js.map +1 -1
- package/dist/guilds.d.ts +70 -32
- package/dist/guilds.d.ts.map +1 -1
- package/dist/guilds.js.map +1 -1
- package/dist/helpers.d.ts +4 -2
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +25 -30
- package/dist/helpers.js.map +1 -1
- package/dist/input-validation.d.ts +4 -0
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/input-validation.js.map +1 -1
- package/dist/internal/attachment-refresh.d.ts.map +1 -1
- package/dist/internal/attachment-refresh.js +4 -2
- package/dist/internal/attachment-refresh.js.map +1 -1
- package/dist/internal/attachments.d.ts.map +1 -1
- package/dist/internal/attachments.js +38 -22
- package/dist/internal/attachments.js.map +1 -1
- package/dist/internal/audit-logs.d.ts +1 -1
- package/dist/internal/audit-logs.d.ts.map +1 -1
- package/dist/internal/audit-logs.js +23 -17
- package/dist/internal/audit-logs.js.map +1 -1
- package/dist/internal/audit.d.ts +2 -2
- package/dist/internal/audit.d.ts.map +1 -1
- package/dist/internal/audit.js +12 -6
- package/dist/internal/audit.js.map +1 -1
- package/dist/internal/binding/default.d.ts.map +1 -1
- package/dist/internal/binding/default.js +2 -1
- package/dist/internal/binding/default.js.map +1 -1
- package/dist/internal/binding/native.d.ts.map +1 -1
- package/dist/internal/binding/native.js +2 -0
- package/dist/internal/binding/native.js.map +1 -1
- package/dist/internal/channel-decode.d.ts +0 -2
- package/dist/internal/channel-decode.d.ts.map +1 -1
- package/dist/internal/channel-decode.js +2 -2
- package/dist/internal/channel-decode.js.map +1 -1
- package/dist/internal/channels.d.ts +13 -13
- package/dist/internal/channels.d.ts.map +1 -1
- package/dist/internal/channels.js +168 -102
- package/dist/internal/channels.js.map +1 -1
- package/dist/internal/client/backoff.d.ts +13 -0
- package/dist/internal/client/backoff.d.ts.map +1 -1
- package/dist/internal/client/backoff.js +13 -1
- package/dist/internal/client/backoff.js.map +1 -1
- package/dist/internal/client/lifetime.d.ts +20 -1
- package/dist/internal/client/lifetime.d.ts.map +1 -1
- package/dist/internal/client/lifetime.js +40 -8
- package/dist/internal/client/lifetime.js.map +1 -1
- package/dist/internal/client/shard-loop.d.ts +3 -4
- package/dist/internal/client/shard-loop.d.ts.map +1 -1
- package/dist/internal/client/shard-loop.js +18 -8
- package/dist/internal/client/shard-loop.js.map +1 -1
- package/dist/internal/client.d.ts +4 -4
- package/dist/internal/client.d.ts.map +1 -1
- package/dist/internal/client.js +42 -34
- package/dist/internal/client.js.map +1 -1
- package/dist/internal/collector.d.ts +5 -2
- package/dist/internal/collector.d.ts.map +1 -1
- package/dist/internal/collector.js +14 -14
- package/dist/internal/collector.js.map +1 -1
- package/dist/internal/command-arguments.d.ts.map +1 -1
- package/dist/internal/command-arguments.js +21 -19
- package/dist/internal/command-arguments.js.map +1 -1
- package/dist/internal/command-guards.d.ts.map +1 -1
- package/dist/internal/command-guards.js +10 -4
- package/dist/internal/command-guards.js.map +1 -1
- package/dist/internal/configuration.d.ts +3 -0
- package/dist/internal/configuration.d.ts.map +1 -1
- package/dist/internal/configuration.js +4 -2
- package/dist/internal/configuration.js.map +1 -1
- package/dist/internal/counts.d.ts.map +1 -1
- package/dist/internal/counts.js +10 -8
- package/dist/internal/counts.js.map +1 -1
- package/dist/internal/decode/primitives.d.ts +47 -3
- package/dist/internal/decode/primitives.d.ts.map +1 -1
- package/dist/internal/decode/primitives.js +101 -9
- package/dist/internal/decode/primitives.js.map +1 -1
- package/dist/internal/embeds.d.ts +11 -2
- package/dist/internal/embeds.d.ts.map +1 -1
- package/dist/internal/embeds.js +134 -47
- package/dist/internal/embeds.js.map +1 -1
- package/dist/internal/expressions.d.ts +6 -6
- package/dist/internal/expressions.d.ts.map +1 -1
- package/dist/internal/expressions.js +75 -45
- package/dist/internal/expressions.js.map +1 -1
- package/dist/internal/field-rules.d.ts +13 -2
- package/dist/internal/field-rules.d.ts.map +1 -1
- package/dist/internal/field-rules.js +23 -5
- package/dist/internal/field-rules.js.map +1 -1
- package/dist/internal/field-text.d.ts +14 -6
- package/dist/internal/field-text.d.ts.map +1 -1
- package/dist/internal/field-text.js +119 -2
- package/dist/internal/field-text.js.map +1 -1
- package/dist/internal/gateway/documented-dispatches.d.ts.map +1 -1
- package/dist/internal/gateway/documented-dispatches.js +4 -2
- package/dist/internal/gateway/documented-dispatches.js.map +1 -1
- package/dist/internal/gateway/session.d.ts +5 -0
- package/dist/internal/gateway/session.d.ts.map +1 -1
- package/dist/internal/gateway/session.js +21 -5
- package/dist/internal/gateway/session.js.map +1 -1
- package/dist/internal/guild-discovery.d.ts +3 -3
- package/dist/internal/guild-discovery.d.ts.map +1 -1
- package/dist/internal/guild-discovery.js +26 -14
- package/dist/internal/guild-discovery.js.map +1 -1
- package/dist/internal/guild-lifecycle.d.ts +2 -2
- package/dist/internal/guild-lifecycle.d.ts.map +1 -1
- package/dist/internal/guild-lifecycle.js +21 -17
- package/dist/internal/guild-lifecycle.js.map +1 -1
- package/dist/internal/guild-settings.d.ts +7 -1
- package/dist/internal/guild-settings.d.ts.map +1 -1
- package/dist/internal/guild-settings.js +36 -15
- package/dist/internal/guild-settings.js.map +1 -1
- package/dist/internal/guilds.d.ts +15 -10
- package/dist/internal/guilds.d.ts.map +1 -1
- package/dist/internal/guilds.js +160 -125
- package/dist/internal/guilds.js.map +1 -1
- package/dist/internal/instance-badges.d.ts.map +1 -1
- package/dist/internal/instance-badges.js +5 -4
- package/dist/internal/instance-badges.js.map +1 -1
- package/dist/internal/instance.d.ts +2 -0
- package/dist/internal/instance.d.ts.map +1 -1
- package/dist/internal/instance.js +4 -0
- package/dist/internal/instance.js.map +1 -1
- package/dist/internal/invites.d.ts +1 -1
- package/dist/internal/invites.d.ts.map +1 -1
- package/dist/internal/invites.js +23 -9
- package/dist/internal/invites.js.map +1 -1
- package/dist/internal/member-chunks.d.ts.map +1 -1
- package/dist/internal/member-chunks.js +10 -7
- package/dist/internal/member-chunks.js.map +1 -1
- package/dist/internal/member-search-workflow.d.ts +1 -1
- package/dist/internal/member-search-workflow.d.ts.map +1 -1
- package/dist/internal/member-search-workflow.js +6 -5
- package/dist/internal/member-search-workflow.js.map +1 -1
- package/dist/internal/member-search.d.ts +1 -1
- package/dist/internal/member-search.d.ts.map +1 -1
- package/dist/internal/member-search.js +24 -6
- package/dist/internal/member-search.js.map +1 -1
- package/dist/internal/message-cleanup.d.ts +1 -1
- package/dist/internal/message-cleanup.d.ts.map +1 -1
- package/dist/internal/message-cleanup.js +9 -7
- package/dist/internal/message-cleanup.js.map +1 -1
- package/dist/internal/message-search.d.ts.map +1 -1
- package/dist/internal/message-search.js +24 -14
- package/dist/internal/message-search.js.map +1 -1
- package/dist/internal/message.d.ts +11 -4
- package/dist/internal/message.d.ts.map +1 -1
- package/dist/internal/message.js +173 -69
- package/dist/internal/message.js.map +1 -1
- package/dist/internal/moderation.d.ts +1 -1
- package/dist/internal/moderation.d.ts.map +1 -1
- package/dist/internal/moderation.js +28 -17
- package/dist/internal/moderation.js.map +1 -1
- package/dist/internal/oauth.d.ts.map +1 -1
- package/dist/internal/oauth.js +14 -12
- package/dist/internal/oauth.js.map +1 -1
- package/dist/internal/pagination.js +2 -2
- package/dist/internal/pagination.js.map +1 -1
- package/dist/internal/permission-requirements.d.ts.map +1 -1
- package/dist/internal/permission-requirements.js +8 -2
- package/dist/internal/permission-requirements.js.map +1 -1
- package/dist/internal/permissions.d.ts.map +1 -1
- package/dist/internal/permissions.js +32 -32
- package/dist/internal/permissions.js.map +1 -1
- package/dist/internal/pins.d.ts +3 -1
- package/dist/internal/pins.d.ts.map +1 -1
- package/dist/internal/pins.js +7 -5
- package/dist/internal/pins.js.map +1 -1
- package/dist/internal/presence.d.ts +1 -1
- package/dist/internal/presence.d.ts.map +1 -1
- package/dist/internal/presence.js +16 -13
- package/dist/internal/presence.js.map +1 -1
- package/dist/internal/protocol/gateway.d.ts.map +1 -1
- package/dist/internal/protocol/gateway.js +3 -0
- package/dist/internal/protocol/gateway.js.map +1 -1
- package/dist/internal/reaction-collector.d.ts.map +1 -1
- package/dist/internal/reaction-collector.js +4 -3
- package/dist/internal/reaction-collector.js.map +1 -1
- package/dist/internal/reaction-pages.d.ts.map +1 -1
- package/dist/internal/reaction-pages.js +17 -4
- package/dist/internal/reaction-pages.js.map +1 -1
- package/dist/internal/reactions.d.ts.map +1 -1
- package/dist/internal/reactions.js +27 -11
- package/dist/internal/reactions.js.map +1 -1
- package/dist/internal/request-body-limits.d.ts +15 -0
- package/dist/internal/request-body-limits.d.ts.map +1 -0
- package/dist/internal/request-body-limits.js +25 -0
- package/dist/internal/request-body-limits.js.map +1 -0
- package/dist/internal/rest/attempt.d.ts.map +1 -1
- package/dist/internal/rest/attempt.js +1 -0
- package/dist/internal/rest/attempt.js.map +1 -1
- package/dist/internal/rest/classify.d.ts +6 -0
- package/dist/internal/rest/classify.d.ts.map +1 -1
- package/dist/internal/rest/classify.js +25 -0
- package/dist/internal/rest/classify.js.map +1 -1
- package/dist/internal/rest/download.d.ts.map +1 -1
- package/dist/internal/rest/download.js +3 -7
- package/dist/internal/rest/download.js.map +1 -1
- package/dist/internal/rest/options.js +1 -1
- package/dist/internal/rest/options.js.map +1 -1
- package/dist/internal/rest/owner.d.ts +11 -11
- package/dist/internal/rest/owner.d.ts.map +1 -1
- package/dist/internal/rest/owner.js +57 -34
- package/dist/internal/rest/owner.js.map +1 -1
- package/dist/internal/role-hierarchy-workflow.d.ts.map +1 -1
- package/dist/internal/role-hierarchy-workflow.js +10 -10
- package/dist/internal/role-hierarchy-workflow.js.map +1 -1
- package/dist/internal/role-hierarchy.d.ts.map +1 -1
- package/dist/internal/role-hierarchy.js +82 -64
- package/dist/internal/role-hierarchy.js.map +1 -1
- package/dist/internal/threads.d.ts +8 -8
- package/dist/internal/threads.d.ts.map +1 -1
- package/dist/internal/threads.js +75 -47
- package/dist/internal/threads.js.map +1 -1
- package/dist/internal/uploads.d.ts.map +1 -1
- package/dist/internal/uploads.js +0 -1
- package/dist/internal/uploads.js.map +1 -1
- package/dist/internal/users.d.ts +6 -6
- package/dist/internal/users.d.ts.map +1 -1
- package/dist/internal/users.js +76 -46
- package/dist/internal/users.js.map +1 -1
- package/dist/internal/vanity-url.d.ts +2 -2
- package/dist/internal/vanity-url.d.ts.map +1 -1
- package/dist/internal/vanity-url.js +26 -9
- package/dist/internal/vanity-url.js.map +1 -1
- package/dist/internal/webhooks.d.ts +4 -4
- package/dist/internal/webhooks.d.ts.map +1 -1
- package/dist/internal/webhooks.js +137 -66
- package/dist/internal/webhooks.js.map +1 -1
- package/dist/member-search.d.ts +6 -2
- package/dist/member-search.d.ts.map +1 -1
- package/dist/message-errors.d.ts +4 -2
- package/dist/message-errors.d.ts.map +1 -1
- package/dist/message-errors.js +1 -1
- package/dist/message-errors.js.map +1 -1
- package/dist/message-search.d.ts +4 -2
- package/dist/message-search.d.ts.map +1 -1
- package/dist/messages.d.ts +83 -34
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js.map +1 -1
- package/dist/reactions.d.ts +2 -1
- package/dist/reactions.d.ts.map +1 -1
- package/dist/rest-routes.d.ts +335 -14
- package/dist/rest-routes.d.ts.map +1 -1
- package/dist/rest.d.ts +9 -5
- package/dist/rest.d.ts.map +1 -1
- package/dist/rest.js.map +1 -1
- package/dist/supervisor.d.ts +1 -1
- package/dist/threads.d.ts +3 -1
- package/dist/threads.d.ts.map +1 -1
- package/dist/users.d.ts +20 -7
- package/dist/users.d.ts.map +1 -1
- package/dist/users.js.map +1 -1
- package/dist/webhooks.d.ts +41 -13
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js.map +1 -1
- package/package.json +1 -1
- package/src/api/default/attachments.ts +4 -3
- package/src/api/default/cache.ts +1 -0
- package/src/api/default/channels.ts +2 -1
- package/src/api/default/client.ts +1 -1
- package/src/api/default/collectors.ts +1 -1
- package/src/api/default/emojis.ts +4 -1
- package/src/api/default/guilds.ts +9 -5
- package/src/api/default/invites.ts +3 -2
- package/src/api/default/members.ts +5 -3
- package/src/api/default/messages.ts +18 -11
- package/src/api/default/oauth.ts +1 -1
- package/src/api/default/options.ts +11 -4
- package/src/api/default/rest.ts +5 -3
- package/src/api/default/roles.ts +2 -1
- package/src/api/default/stickers.ts +4 -1
- package/src/api/default/webhook-client.ts +9 -4
- package/src/api/effect/attachments.ts +4 -3
- package/src/api/effect/cache.ts +1 -0
- package/src/api/effect/channels.ts +2 -1
- package/src/api/effect/client.ts +1 -1
- package/src/api/effect/collectors.ts +1 -1
- package/src/api/effect/emojis.ts +4 -1
- package/src/api/effect/guilds.ts +9 -5
- package/src/api/effect/helpers.ts +4 -2
- package/src/api/effect/invites.ts +3 -2
- package/src/api/effect/members.ts +5 -3
- package/src/api/effect/messages.ts +18 -11
- package/src/api/effect/oauth.ts +1 -1
- package/src/api/effect/rest.ts +3 -1
- package/src/api/effect/roles.ts +2 -1
- package/src/api/effect/stickers.ts +4 -1
- package/src/api/effect/webhook-client.ts +9 -4
- package/src/api-errors.ts +9 -0
- package/src/assets.ts +5 -3
- package/src/attachments.ts +24 -15
- package/src/builders.ts +1 -1
- package/src/channels.ts +45 -25
- package/src/client.ts +16 -4
- package/src/command-arguments.ts +2 -2
- package/src/discovery.ts +6 -3
- package/src/embeds.ts +53 -19
- package/src/error-tools.ts +21 -6
- package/src/errors.ts +13 -3
- package/src/events.ts +10 -7
- package/src/expressions.ts +12 -6
- package/src/gateway-payloads.ts +91 -31
- package/src/guilds.ts +70 -32
- package/src/helpers.ts +30 -31
- package/src/input-validation.ts +4 -0
- package/src/internal/attachment-refresh.ts +4 -2
- package/src/internal/attachments.ts +47 -28
- package/src/internal/audit-logs.ts +29 -13
- package/src/internal/audit.ts +12 -6
- package/src/internal/binding/default.ts +5 -1
- package/src/internal/binding/native.ts +3 -0
- package/src/internal/channel-decode.ts +2 -2
- package/src/internal/channels.ts +282 -109
- package/src/internal/client/backoff.ts +17 -1
- package/src/internal/client/lifetime.ts +47 -13
- package/src/internal/client/shard-loop.ts +20 -13
- package/src/internal/client.ts +49 -33
- package/src/internal/collector.ts +24 -17
- package/src/internal/command-arguments.ts +21 -19
- package/src/internal/command-guards.ts +13 -4
- package/src/internal/configuration.ts +12 -2
- package/src/internal/counts.ts +10 -8
- package/src/internal/decode/primitives.ts +108 -12
- package/src/internal/embeds.ts +163 -47
- package/src/internal/expressions.ts +118 -51
- package/src/internal/field-rules.ts +26 -5
- package/src/internal/field-text.ts +120 -2
- package/src/internal/gateway/documented-dispatches.ts +4 -2
- package/src/internal/gateway/session.ts +28 -7
- package/src/internal/guild-discovery.ts +30 -14
- package/src/internal/guild-lifecycle.ts +35 -13
- package/src/internal/guild-settings.ts +55 -15
- package/src/internal/guilds.ts +239 -119
- package/src/internal/instance-badges.ts +9 -4
- package/src/internal/instance.ts +5 -0
- package/src/internal/invites.ts +23 -9
- package/src/internal/member-chunks.ts +10 -7
- package/src/internal/member-search-workflow.ts +12 -5
- package/src/internal/member-search.ts +27 -13
- package/src/internal/message-cleanup.ts +19 -7
- package/src/internal/message-search.ts +43 -22
- package/src/internal/message.ts +220 -86
- package/src/internal/moderation.ts +32 -16
- package/src/internal/oauth.ts +24 -12
- package/src/internal/pagination.ts +2 -2
- package/src/internal/permission-requirements.ts +10 -2
- package/src/internal/permissions.ts +48 -32
- package/src/internal/pins.ts +11 -5
- package/src/internal/presence.ts +20 -13
- package/src/internal/protocol/gateway.ts +3 -0
- package/src/internal/reaction-collector.ts +7 -3
- package/src/internal/reaction-pages.ts +15 -6
- package/src/internal/reactions.ts +30 -10
- package/src/internal/request-body-limits.ts +25 -0
- package/src/internal/rest/attempt.ts +1 -0
- package/src/internal/rest/classify.ts +31 -0
- package/src/internal/rest/download.ts +3 -13
- package/src/internal/rest/options.ts +1 -1
- package/src/internal/rest/owner.ts +103 -34
- package/src/internal/role-hierarchy-workflow.ts +22 -10
- package/src/internal/role-hierarchy.ts +89 -75
- package/src/internal/threads.ts +114 -48
- package/src/internal/uploads.ts +0 -1
- package/src/internal/users.ts +126 -47
- package/src/internal/vanity-url.ts +36 -8
- package/src/internal/webhooks.ts +179 -76
- package/src/member-search.ts +6 -2
- package/src/message-errors.ts +4 -2
- package/src/message-search.ts +4 -2
- package/src/messages.ts +84 -34
- package/src/reactions.ts +2 -1
- package/src/rest-routes.ts +321 -14
- package/src/rest.ts +9 -5
- package/src/supervisor.ts +1 -1
- package/src/threads.ts +3 -1
- package/src/users.ts +20 -7
- package/src/webhooks.ts +41 -13
package/agents/AGENTS.md
CHANGED
|
@@ -98,6 +98,9 @@ Paths in the map are relative to `node_modules/@neontechspace/fluxerly/`. The Ef
|
|
|
98
98
|
- Community data and settings: `dist/api/default/guilds.d.ts`, starting with `client.guilds`
|
|
99
99
|
- Event names, payloads and handler context: `dist/events.d.ts`, starting with `EventMap`, `EventContext`
|
|
100
100
|
- Errors and Results: `dist/errors.d.ts`, `dist/error-tools.d.ts`, starting with `errors`, `describeError`
|
|
101
|
+
- Upload, refresh, download or stream attachments: `dist/api/default/attachments.d.ts`, `dist/attachments.d.ts`, starting with `client.attachments`
|
|
102
|
+
- Webhooks: `dist/api/default/webhooks.d.ts` for `client.webhooks`, and `dist/api/default/webhook-client.d.ts` for `createWebhookClient`, which sends through a webhook without a bot token
|
|
103
|
+
- Community emoji and stickers: `dist/api/default/emojis.d.ts`, `dist/api/default/stickers.d.ts`, starting with `client.emojis`, `client.stickers`
|
|
101
104
|
- Logging: `dist/logging.d.ts`, starting with the `logging` option of `runBot` and `createClient`
|
|
102
105
|
- Mentions, links, text and colors: `dist/api/default/helpers.d.ts`, starting with `format`, `links`, `text`, `colors`
|
|
103
106
|
- Tests without a token or network: `dist/testing.d.ts`, starting with `createTestBot`
|
|
@@ -123,6 +126,7 @@ Keep the application's existing module and TypeScript settings when they work wi
|
|
|
123
126
|
A `hidden: true` command is left out of help and suggestions but still runs, so guard commands that need protection
|
|
124
127
|
- With `createClient`, register handlers with `client.on` or `client.subscribe` before `connect` or `run`.
|
|
125
128
|
The `run` method waits until the client stops, not just until it connects. The `shutdown` method closes the client permanently
|
|
129
|
+
- Startup allows 30 seconds, and the first Identify adds 135 seconds once, because Fluxer can hold a session start that long while its Identify queue is busy. A reconnection attempt allows 30 seconds, plus 135 when it sends Identify instead of resuming. Size health checks and process manager start timeouts for up to about 165 seconds. Setting `connection.startupTimeoutMs` or `connection.recovery.attemptTimeoutMs` makes that value one fixed deadline that Identify does not extend
|
|
126
130
|
|
|
127
131
|
In the default API, local work returns plain values and needs no Result handling: Creating clients and command routers, registering handlers, cache `get` lookups and helpers such as `format` and `colors`.
|
|
128
132
|
In the default API, misuse of local work, such as invalid options or a missing token, throws `ConfigurationError` or the helper's own error at once. The native Effect API returns Effects for some of this work, as described under "Only for native Effect applications"
|
|
@@ -132,7 +136,8 @@ Methods returning `AsyncIterable`, such as `messages.iterateHistory`, start work
|
|
|
132
136
|
## Errors and cleanup
|
|
133
137
|
|
|
134
138
|
Expected runtime failures return `Err`. Unexpected SDK failures can throw or reject a Promise, so release clients with `await using` or in `finally`.
|
|
135
|
-
Every SDK error extends `FluxerlyError` with a stable `code`, an optional `hint` and a `cause`. Use `describeError(error)` to print one, `errors.apiCode(error)` to branch on a Fluxer rejection such as `"missingPermissions"`, and `errors.isRetryable(error)` before repeating a call
|
|
139
|
+
Every SDK error extends `FluxerlyError` with a stable `code`, an optional `hint` and a `cause`. Use `describeError(error)` to print one, `errors.apiCode(error)` to branch on a Fluxer rejection such as `"missingPermissions"` or `"fileSizeTooLarge"`, and `errors.isRetryable(error)` before repeating a call.
|
|
140
|
+
A retryable failure can still require a wait, as a rate limit or Fluxer's busy upload slots answer does, so first wait `errors.retryAfterMs(error)` milliseconds when it returns a number. An upload that read a `ReadableStream`, marked by `details.streamUsed`, is not retryable and needs a new stream
|
|
136
141
|
|
|
137
142
|
Failures without a returned result, such as a handler that throws or returns an `Err`, go to the client's `onError` option or are logged at Error with the full error.
|
|
138
143
|
Do not wrap every handler in a catch that only logs. Let the SDK report it, or pass `onError` to route reports to the application's own error tracking
|
|
@@ -143,7 +148,7 @@ A subscription registered after shutdown began is returned already closed with a
|
|
|
143
148
|
## Tests
|
|
144
149
|
|
|
145
150
|
Test a `runBot` bot by passing its own options object to `createTestBot` from `@neontechspace/fluxerly/testing`. It runs the bot's events, commands and `setup` against an in-memory Fluxer, with no token or network. Use `createTestClient` for code written against a client.
|
|
146
|
-
Both return a real client
|
|
151
|
+
Both return a test harness with the real client at `test.client` and the controls `ready()`, `emit(type, payload)` for Fluxer events such as `MESSAGE_CREATE`, `rest.respond(matcher, response)`, `requests()`, `commands()`, `logs()`, `counters()` and `disconnect()`. The shared `fixtures` build event payloads.
|
|
147
152
|
Send a user message with `say(content)` on a test bot, which resolves with the messages the bot sent, including sends that a test's `rest.respond` fixture rejected. Message sends and edits without a `rest.respond` fixture receive an echoed message.
|
|
148
153
|
Wait for a request with `next()` on the route that `rest.respond` returns, and for a quiet bot with `idle()`, instead of sleeping. Waits have no deadline unless `timeoutMs` is passed. Pass it to a wait that might never settle, or run tests with `node --test --test-timeout=10000 --test-force-exit`.
|
|
149
154
|
A handler or command failure without `onError` makes shutdown fail with `UnhandledTestFailuresError`, unless the test reads it from `failures()`.
|
|
@@ -151,7 +156,10 @@ Release the default test client with `await using` or `shutdown()`
|
|
|
151
156
|
|
|
152
157
|
## Before sending requests
|
|
153
158
|
|
|
154
|
-
- Keep IDs as decimal strings, not JavaScript numbers, and check documented units on timeout options
|
|
159
|
+
- Keep IDs as decimal strings, not JavaScript numbers, and check documented units on timeout options. SDK methods and helpers trim surrounding whitespace from an ID and require a decimal without leading zeros, at most 9223372036854775807, and gateway IDs must also be nonzero. `client.rest.call` and `client.rest.request` send params and bodies as given
|
|
160
|
+
- Null `content` clears a message's text. An edit without `flags` needs visible content, an embed or an attachment in the edit itself. To clear the text alone, include the message's current `flags` in the same edit, except on a voice note, where supplying flags clears the voice-note flag
|
|
161
|
+
- Embed URLs, link channel URLs and webhook avatar URLs must start with lowercase `http://` or `https://`, carry no credentials and name an IP address or a domain. On hosted Fluxer the domain needs a top-level domain, while a custom instance decides that itself. These rules do not apply to URLs the bot receives
|
|
162
|
+
- Download `maxBytes` is required and has no SDK ceiling. `client.attachments.download` holds the whole file in memory, so use `client.attachments.stream` for large files
|
|
155
163
|
- Check whether the chosen method reads cached data or fetches it from Fluxer. An object missing from the cache may still exist on Fluxer
|
|
156
164
|
- Keep tokens out of logs, examples, fixtures and error reports
|
|
157
165
|
- Check the documented cancellation and retry behavior before adding retries.
|
|
@@ -205,7 +213,10 @@ Check each member's declaration rather than assuming every native member is an E
|
|
|
205
213
|
|
|
206
214
|
- Build a command router with `commands.create` and `attach` it to a client. Router options add `use` middleware, `onReject: "reply"` feedback, `mentionPrefix` and `cooldowns: { maxEntries }`, and `router.help` or the command context's `help()` builds help pages. The context's `sendHelp()` sends them, and its `paginate(pages)` shows pages that the command's author flips with reactions
|
|
207
215
|
- Use `client.use(middleware)` for event middleware around every later `on` handler
|
|
208
|
-
-
|
|
216
|
+
- Check the installed declarations for an SDK method before using the raw tools below. Their types check nothing at runtime, so check a value before relying on it
|
|
217
|
+
- For Fluxer API routes without an SDK method, use `client.rest.call("METHOD /path/{param}", { params, query, body })`, whose route, fields and response are typed from Fluxer's API description, with reviewed corrections from Fluxer's server code, and Fluxer's field names. Use `client.rest.request({ method, path })` for a route or field newer than the SDK, or a route `call` does not list, such as Fluxer's report flows. Both share the client's queue, rate limits and logging
|
|
218
|
+
- For gateway commands without an SDK method, use `client.gateway.send(shardId, op, d)`, and read a voice join that Fluxer refuses from the `gatewayError` event
|
|
219
|
+
- For dispatches without a typed event, such as `THREAD_MEMBER_UPDATE`, use `client.on("raw", handler)`: Check `documented`, then compare `t`, and `d` gets the payload type the SDK describes from Fluxer's documentation and reviewed server code, with Fluxer's field names. `documented` is true exactly for the types the SDK describes, including `GUILD_HEALTH_UPDATE`, which only Fluxer's server code defines
|
|
209
220
|
- The client logs startup, readiness, lost connections, long rate-limit waits, event drops, shutdown and every application failure by default. Records mask the token, Fluxer's credential forms and common credential names, such as Authorization headers, passwords and cookies, but not an unlabelled secret or another service's secret under a name the SDK does not know, so keep such secrets out of error messages.
|
|
210
221
|
Adjust output with the `logging` option rather than filtering console output. Choose `format` (`"pretty"` or `"json"`), `sink` to forward records to another logger and `dedupe` when creating the client. Change `level`, per-category `categories` and `debug` while running with `client.logging.configure`.
|
|
211
222
|
Set `FLUXERLY_DEBUG=1`, or a list of categories, for Debug records. Leave `unsafe` payload logging off unless explicitly authorized for local debugging.
|
|
@@ -12,7 +12,8 @@ import type { RequestOptions, AttachmentDownloadOptions, AttachmentStreamOptions
|
|
|
12
12
|
export interface Attachments {
|
|
13
13
|
/**
|
|
14
14
|
* Ask Fluxer's bot-authenticated API to reissue signatures for 1 through 50 URL strings.
|
|
15
|
-
* Each string
|
|
15
|
+
* Each string must contain 1 through 2,048 UTF-16 code units, as Fluxer reads an empty string as null and refuses
|
|
16
|
+
* the whole request.
|
|
16
17
|
* Strings, duplicate entries and query parameters are sent unchanged
|
|
17
18
|
*
|
|
18
19
|
* The frozen result has one original and refreshed pair per input in the same order.
|
|
@@ -33,7 +34,7 @@ export interface Attachments {
|
|
|
33
34
|
refreshUrls(urls: readonly string[], options?: RequestOptions): ResultAsync<readonly RefreshedAttachmentUrl[], AttachmentRefreshFailure | CancelledError | ConfigurationError>;
|
|
34
35
|
/**
|
|
35
36
|
* Download attachment.url into one Uint8Array.
|
|
36
|
-
* Pass maxBytes explicitly,
|
|
37
|
+
* Pass maxBytes explicitly, a positive safe integer. The SDK sets no upper limit, since Fluxer decides how large an attachment may be.
|
|
37
38
|
* The limit caps the returned bytes, not total memory, because response chunks can coexist with the packed result
|
|
38
39
|
*
|
|
39
40
|
* The URL must match this instance's discovered media /attachments/ path.
|
|
@@ -49,7 +50,7 @@ export interface Attachments {
|
|
|
49
50
|
download(attachment: Attachment, options: AttachmentDownloadOptions): ResultAsync<Uint8Array, AttachmentDownloadFailure | CancelledError | ConfigurationError>;
|
|
50
51
|
/**
|
|
51
52
|
* Read attachment.url as chunks without combining the file into one array.
|
|
52
|
-
* Pass maxBytes explicitly,
|
|
53
|
+
* Pass maxBytes explicitly, a positive safe integer with no upper limit of the SDK's own, for the total bytes delivered
|
|
53
54
|
*
|
|
54
55
|
* The first pull reads the inputs, resolves endpoints, waits for a media slot (four by default, rest.mediaConcurrency) and starts the GET.
|
|
55
56
|
* Media slots are separate from the REST and upload slots.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/api/default/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtG;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB
|
|
1
|
+
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/api/default/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtG;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,WAAW,CACP,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,CAAC,EAAE,cAAc,GACzB,WAAW,CAAC,SAAS,sBAAsB,EAAE,EAAE,wBAAwB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IACjH;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACJ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,yBAAyB,GACnC,WAAW,CAAC,UAAU,EAAE,yBAAyB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IAC3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,MAAM,CACF,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,uBAAuB,GACjC,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,yBAAyB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAC,CAAA;CACxG"}
|
|
@@ -53,6 +53,7 @@ export interface ClientCache<M extends MessageCore = Message> {
|
|
|
53
53
|
* Remove one entry from a cache category by its key, without fetching, refreshing or changing the remote resource.
|
|
54
54
|
* The key uses the format described on CacheChange: `channelId:messageId` for messages, `guildId:userId` for members,
|
|
55
55
|
* `guildId:id` for roles, emojis and stickers, and the resource ID alone for communities, channels, users and direct messages.
|
|
56
|
+
* Each ID in the key may carry surrounding whitespace, which is trimmed, as for every ID the SDK accepts.
|
|
56
57
|
* Objects already returned to the caller stay unchanged.
|
|
57
58
|
* Reads of this category already in flight cannot restore the removed entry and some may skip caching their other results,
|
|
58
59
|
* while later reads and events can cache it again.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/api/default/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,sGAAsG;IACtG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,sKAAsK;IACtK,KAAK,IAAI,IAAI,CAAA;IACb,iEAAiE;IACjE,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAAA;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,OAAO;IACxD;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACtG;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/api/default/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,sGAAsG;IACtG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,sKAAsK;IACtK,KAAK,IAAI,IAAI,CAAA;IACb,iEAAiE;IACjE,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAAA;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,OAAO;IACxD;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACtG;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,aAAa,CAAA;CACtG"}
|
|
@@ -14,7 +14,7 @@ import type { RequestOptions, AuditedRequestOptions } from "./options.js";
|
|
|
14
14
|
* ID-based writes do not fetch first to verify channel type.
|
|
15
15
|
* Requests share the client's REST or upload slots across assigned shards, four per local shard by default, up to 64 (rest.concurrency).
|
|
16
16
|
* Attachment-download slots are separate, four by default (rest.mediaConcurrency).
|
|
17
|
-
* Both pools together allow 256 waiting requests or
|
|
17
|
+
* Both pools together allow 256 waiting requests or 64 MiB of queued JSON by default (rest.maxQueued and rest.queuedJsonMaxBytes).
|
|
18
18
|
* The default deadline, rest.defaultTimeoutMs (30,000 ms unless configured), includes capacity, rate-limit and retry waits.
|
|
19
19
|
* Eligible reads retry transport and HTTP 500, 502, 503 or 504 failures at most twice
|
|
20
20
|
*
|
|
@@ -192,6 +192,7 @@ export interface Channels {
|
|
|
192
192
|
delete(channelId: string, options?: AuditedRequestOptions): ResultAsync<void, ChannelOperationFailure | CancelledError | ConfigurationError>;
|
|
193
193
|
/**
|
|
194
194
|
* Submit community-channel moves, succeeding with no value after HTTP 204.
|
|
195
|
+
* Fluxer takes at most 10,000 moves in one call, and a longer list fails before sending.
|
|
195
196
|
* Fluxer applies moves sequentially and may normalize positions.
|
|
196
197
|
* The syncPermissionsOnMove option copies the destination category's overwrites, and applies only to a move into another category.
|
|
197
198
|
* Fluxer copies them after each move, so a failed copy leaves that channel moved without them.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/api/default/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EACR,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACpB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,kBAAkB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BAAuB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;CACvH"}
|
|
@@ -517,7 +517,7 @@ export interface ScheduledTask {
|
|
|
517
517
|
*
|
|
518
518
|
* **Connection and sharding**
|
|
519
519
|
*
|
|
520
|
-
* Gateway startup defaults to 30,000 ms, plus one second for each additional local shard when the SDK spaces Identify commands.
|
|
520
|
+
* Gateway startup defaults to 30,000 ms, plus one second for each additional local shard when the SDK spaces Identify commands. With that default, the first Identify adds the 135 seconds Fluxer may take to start a session while its Identify queue is busy.
|
|
521
521
|
* Automatic sharding first counts communities under a separate deadline of the same length.
|
|
522
522
|
* Each assigned shard allows up to three startup attempts within that budget.
|
|
523
523
|
* An explicit sharding plan fixes this client's assigned IDs for its lifetime, while automatic sharding and a client
|
|
@@ -69,7 +69,7 @@ import {} from "./direct-messages.js";
|
|
|
69
69
|
*
|
|
70
70
|
* **Connection and sharding**
|
|
71
71
|
*
|
|
72
|
-
* Gateway startup defaults to 30,000 ms, plus one second for each additional local shard when the SDK spaces Identify commands.
|
|
72
|
+
* Gateway startup defaults to 30,000 ms, plus one second for each additional local shard when the SDK spaces Identify commands. With that default, the first Identify adds the 135 seconds Fluxer may take to start a session while its Identify queue is busy.
|
|
73
73
|
* Automatic sharding first counts communities under a separate deadline of the same length.
|
|
74
74
|
* Each assigned shard allows up to three startup attempts within that budget.
|
|
75
75
|
* An explicit sharding plan fixes this client's assigned IDs for its lifetime, while automatic sharding and a client
|
|
@@ -152,7 +152,7 @@ export interface ReactionCollectorOptions extends EventBufferOptions {
|
|
|
152
152
|
readonly guildId?: string;
|
|
153
153
|
/** Collect only this emoji, or omit to accept any emoji.
|
|
154
154
|
* Use any ReactionEmojiInput, including Unicode, custom markup and parsed or received emoji. The SDK normalizes and copies it at registration.
|
|
155
|
-
* Unicode text must match exactly, including skin tone and variation selectors. Custom emoji match by ID even after renaming.
|
|
155
|
+
* Unicode text must match exactly after Fluxer's normalization, which removes U+000C and U+202E and trims whitespace, including skin tone and variation selectors. Custom emoji match by ID even after renaming.
|
|
156
156
|
* A custom input still needs a valid name. Invalid input fails registration with ConfigurationError field emoji, without a request.
|
|
157
157
|
* Matching runs before filter and onReaction, but after the event enters the queue, so other emoji can still fill the pending queue
|
|
158
158
|
*/
|
|
@@ -54,7 +54,8 @@ export interface Emojis {
|
|
|
54
54
|
* Upload one community emoji and return its metadata.
|
|
55
55
|
* Inputs are copied when execution starts.
|
|
56
56
|
* No image URL is fetched automatically.
|
|
57
|
-
* Fluxer checks image format, dimensions, permissions and capacity.
|
|
57
|
+
* Fluxer checks image format, size, dimensions, permissions and capacity, using the community's size limit.
|
|
58
|
+
* The request body may hold up to 15,029,592 encoded bytes, the most Fluxer accepts.
|
|
58
59
|
* A write with an unknown outcome is not replayed
|
|
59
60
|
*/
|
|
60
61
|
create(guildId: string, input: EmojiCreate, options?: AuditedRequestOptions): ResultAsync<GuildEmoji, GuildOperationFailure | CancelledError | ConfigurationError>;
|
|
@@ -63,6 +64,8 @@ export interface Emojis {
|
|
|
63
64
|
* The input array is copied by index, then its entries are copied when execution starts.
|
|
64
65
|
* Some uploads can succeed while others fail.
|
|
65
66
|
* No rollback or automatic chunking is performed.
|
|
67
|
+
* Each image may use the community's size limit, but the batch body may hold at most 36,001,112 encoded bytes,
|
|
68
|
+
* the most Fluxer accepts.
|
|
66
69
|
* Failures named by duplicate emoji names cannot be matched reliably to input positions.
|
|
67
70
|
* After an unknown outcome, fetch fresh remote data rather than blindly replaying the batch
|
|
68
71
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emojis.d.ts","sourceRoot":"","sources":["../../../src/api/default/emojis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,SAAS,EACT,eAAe,EAClB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KA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AU,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IACvF;;OAEG;IACH,IAAI,CACA,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,qBAAqB,GAChC,WAAW,CAAC,UAAU,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IACvF;;;;;;OAMG;IACH,MAAM,CACF,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,uBAAuB,GAClC,WAAW,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;CACpF"}
|
|
@@ -12,7 +12,7 @@ import type { RequestOptions, AuditedRequestOptions, OwnMessageDeletionOptions }
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* Requests share the client's REST or upload slots across all assigned shards, four per local shard by default, up to 64 (rest.concurrency).
|
|
14
14
|
* Attachment-download slots are separate, four by default (rest.mediaConcurrency).
|
|
15
|
-
* Both pools together allow 256 waiting requests or
|
|
15
|
+
* Both pools together allow 256 waiting requests or 64 MiB of queued JSON by default (rest.maxQueued and rest.queuedJsonMaxBytes)
|
|
16
16
|
*
|
|
17
17
|
* The timeoutMs option defaults to the client's rest.defaultTimeoutMs, 30,000 unless configured, for the whole request, including waits.
|
|
18
18
|
* Reads retry transport failures and HTTP 500, 502, 503 or 504 at most twice.
|
|
@@ -70,7 +70,7 @@ export interface Guilds {
|
|
|
70
70
|
/**
|
|
71
71
|
* Fetch one page of communities this bot belongs to, ordered by ascending guild ID.
|
|
72
72
|
* The limit option defaults to 200 and accepts 1–200.
|
|
73
|
-
* Choose
|
|
73
|
+
* Choose before or after. When both are set, Fluxer uses after and ignores before.
|
|
74
74
|
* Those cursors refer to existing memberships, and if a cursor community was removed, Fluxer may restart the page.
|
|
75
75
|
* The withCounts option defaults to false.
|
|
76
76
|
* Permission bits or requested approximate counts may be omitted, and an omitted value means unavailable, not zero.
|
|
@@ -177,9 +177,13 @@ export interface Guilds {
|
|
|
177
177
|
*/
|
|
178
178
|
fetchVanityUrl(guildId: string, options?: RequestOptions): ResultAsync<GuildVanityUrlUsage, GuildOperationFailure | CancelledError | ConfigurationError>;
|
|
179
179
|
/**
|
|
180
|
-
* Set a community's custom invite code, replace it, or pass null to remove it
|
|
181
|
-
*
|
|
182
|
-
*
|
|
180
|
+
* Set a community's custom invite code, replace it, or pass null or an empty string to remove it, as Fluxer reads an
|
|
181
|
+
* empty code as null.
|
|
182
|
+
* The code is sent unchanged, and Fluxer stores its normalized form: U+000C and U+202E removed, surrounding
|
|
183
|
+
* whitespace trimmed, lowercased, each run of whitespace turned into one hyphen and repeated hyphens collapsed.
|
|
184
|
+
* That form must be 2–32 ASCII letters or digits with single internal hyphens, so "My Code" is accepted and
|
|
185
|
+
* becomes "my-code". A form that contains fluxer fails locally with reason input, as Fluxer refuses it. The
|
|
186
|
+
* returned code is the stored one
|
|
183
187
|
*
|
|
184
188
|
* ManageGuild is required.
|
|
185
189
|
* Setting a code also requires the community's VANITY_URL feature.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guilds.d.ts","sourceRoot":"","sources":["../../../src/api/default/guilds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,KAAK,EACR,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,qBAAqB,EACxB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,yBAAyB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@@ -22,7 +22,7 @@ import type { RequestOptions, AuditedRequestOptions } from "./options.js";
|
|
|
22
22
|
export interface Invites {
|
|
23
23
|
/**
|
|
24
24
|
* Look up an invite code without using it or joining its destination.
|
|
25
|
-
* Pass the code, not its full URL.
|
|
25
|
+
* Pass the code, not its full URL. The SDK applies Fluxer's normalization, which removes U+000C and U+202E and trims whitespace, then sends that code of at most 256 UTF-16 code units and expects it back.
|
|
26
26
|
* Expired, revoked or inaccessible codes fail remotely.
|
|
27
27
|
* Fluxer may normalize the case of a vanity code
|
|
28
28
|
*/
|
|
@@ -51,7 +51,8 @@ export interface Invites {
|
|
|
51
51
|
* Revoke an invite code, succeeding with no value after HTTP 204.
|
|
52
52
|
* Fluxer checks creator or management permissions.
|
|
53
53
|
* Existing members remain.
|
|
54
|
-
* A missing code is an error, not proof a previous delete succeeded
|
|
54
|
+
* A missing code is an error, not proof a previous delete succeeded.
|
|
55
|
+
* The code has the same limit as in fetch
|
|
55
56
|
*/
|
|
56
57
|
delete(code: string, options?: AuditedRequestOptions): ResultAsync<void, GuildOperationFailure | CancelledError | ConfigurationError>;
|
|
57
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invites.d.ts","sourceRoot":"","sources":["../../../src/api/default/invites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEzE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,OAAO;IACpB;;;;;OAKG;IACH,KAAK,CACD,IAAI,EAAE,MA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cAAc,GAAG,kBAAkB,CAAC,CAAA;IACnF;;;;;;;OAOG;IACH,MAAM,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,qBAAqB,GAChC,WAAW,CAAC,cAAc,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IAC3F;;;;OAIG;IACH,eAAe,CACX,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACzB,WAAW,CAAC,SAAS,cAAc,EAAE,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IACtG;;;OAGG;IACH,aAAa,CACT,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,WAAW,CAAC,SAAS,cAAc,EAAE,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IACtG;;;;;;OAMG;IACH,MAAM,CACF,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,qBAAqB,GAChC,WAAW,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;CACpF"}
|
|
@@ -154,7 +154,8 @@ export interface Members {
|
|
|
154
154
|
iterateSearch(guildId: string, filters: Omit<MemberSearchQuery, "limit">, limits: MemberSearchIterationLimits, options?: RequestOptions): AsyncIterable<Result<MemberSearchHit, GuildOperationFailure | PaginationError | CancelledError | ConfigurationError>>;
|
|
155
155
|
/**
|
|
156
156
|
* Change this bot's community profile, not its global account or another member.
|
|
157
|
-
* Omitted fields stay unchanged, and null clears an override.
|
|
157
|
+
* Omitted fields stay unchanged, and null clears an override. An empty string clears nickname, bio, pronouns,
|
|
158
|
+
* avatar and banner too, as Fluxer reads it as null on this route.
|
|
158
159
|
* An empty input or unknown key fails locally.
|
|
159
160
|
* Fluxer checks permissions and field-specific rate limits.
|
|
160
161
|
* Changing the bot's own nickname requires ChangeNickname. Without it, Fluxer can return success with the old nickname, so inspect the returned member.
|
|
@@ -166,7 +167,7 @@ export interface Members {
|
|
|
166
167
|
editSelf(guildId: string, input: MemberProfileEdit, options?: AuditedRequestOptions): ResultAsync<GuildMember, GuildOperationFailure | CancelledError | ConfigurationError>;
|
|
167
168
|
/**
|
|
168
169
|
* Set one member's nickname, or pass null to clear it.
|
|
169
|
-
*
|
|
170
|
+
* An empty string or one containing only whitespace also clears it, as Fluxer reads each as null.
|
|
170
171
|
* Otherwise, validation removes U+000C and U+202E, trims surrounding whitespace, and requires 1–32 UTF-16 code units.
|
|
171
172
|
* The original string is sent unchanged.
|
|
172
173
|
* Other profile fields and roles stay unchanged.
|
|
@@ -190,8 +191,9 @@ export interface Members {
|
|
|
190
191
|
setNickname(member: MemberReference, nickname: string | null, options?: AuditedRequestOptions): ResultAsync<GuildMember, GuildOperationFailure | CancelledError | ConfigurationError>;
|
|
191
192
|
/**
|
|
192
193
|
* Move a member who is already in voice to a positive decimal voice-channel ID.
|
|
194
|
+
* An empty channel ID, which Fluxer reads as null, disconnects the member as disconnect does.
|
|
193
195
|
* The target.connectionId value selects one observed connection.
|
|
194
|
-
* Omit it to move every active connection for that member.
|
|
196
|
+
* Omit it, or pass an empty string, which Fluxer reads as null, to move every active connection for that member.
|
|
195
197
|
* Fluxer requires MoveMembers and checks hierarchy, destination visibility and permission to connect.
|
|
196
198
|
* Fluxer refuses a move into an occupied voice channel whose participants all use peer-to-peer voice, and the member stays in its current channel.
|
|
197
199
|
* The call then fails with reason rejected, HTTP 400 and apiError.code userNotInVoice (Fluxer code USER_NOT_IN_VOICE) even though the member is in voice.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../../src/api/default/members.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC3F,OAAO,KAAK,EACR,iBAAiB,EACjB,gBAAgB,EAChB,e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GACzB,WAAW,CAAC,gBAAgB,EAAE,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IAC7F;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,aAAa,CACT,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,EACzC,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACzB,aAAa,CACZ,MAAM,CAAC,eAAe,EAAE,qBAAqB,GAAG,eAAe,GAAG,cAAc,GAAG,kBAAkB,CAAC,CACzG,CAAA;IACD
|
|
1
|
+
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../../src/api/default/members.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC3F,OAAO,KAAK,EACR,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC9B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACR,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EACR,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACjB,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,OAAO;IACpB;;;;;;;;;;;;;;;;;;;;;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MessageCleanupOptions, OwnM
|
|
|
24
24
|
* The default timeoutMs is the client's rest.defaultTimeoutMs, 30,000 unless configured, for the whole call, including queue, rate-limit and retry waits.
|
|
25
25
|
* The SDK waits for request cleanup afterward, so the timeout is not a hard cleanup time limit.
|
|
26
26
|
* By default this client runs four REST or upload requests at once per local shard, up to 64 (rest.concurrency), and four separate attachment downloads (rest.mediaConcurrency).
|
|
27
|
-
* Both pools together allow at most 256 waiting requests or
|
|
27
|
+
* Both pools together allow at most 256 waiting requests or 64 MiB of queued JSON bodies by default.
|
|
28
28
|
* The rest client option changes these limits.
|
|
29
29
|
* These limits apply across the shards assigned to this client
|
|
30
30
|
*
|
|
@@ -390,6 +390,7 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
390
390
|
* Pass Unicode such as "👍", custom markup such as "<a:party:123>", a parsed custom emoji, or a received emoji snapshot.
|
|
391
391
|
* ReactionEmojiInput defines accepted identities and local validation, and custom emoji are encoded as name:id.
|
|
392
392
|
* Fluxer decides emoji availability and permissions.
|
|
393
|
+
* It refuses a new reaction with a custom emoji from an age-restricted community outside that community with apiError code missingPermissions whatever the bot's permissions.
|
|
393
394
|
* Adding the same own reaction again leaves it present.
|
|
394
395
|
* Success follows HTTP 204, without waiting for or synthesizing a gateway event, and no gateway connection is required.
|
|
395
396
|
* The request uses a per-channel reaction rate limit separate from message operations, the client's request limits and the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured).
|
|
@@ -502,7 +503,7 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
502
503
|
* The target and options are copied at registration.
|
|
503
504
|
* After message selection, the pending queue allows 256 payloads or 4 MiB of full source JSON.
|
|
504
505
|
* Optional emoji uses addReaction's input shape and is checked after queueing, before the synchronous filter.
|
|
505
|
-
* Unicode emoji match exact text without a custom ID, and custom emoji match by ID, ignoring name changes.
|
|
506
|
+
* Unicode emoji match the exact text left by Fluxer's normalization without a custom ID, and custom emoji match by ID, ignoring name changes.
|
|
506
507
|
* An invalid emoji selector fails with ConfigurationError for emoji
|
|
507
508
|
*
|
|
508
509
|
* Single events and batch entries follow receive order.
|
|
@@ -622,9 +623,11 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
622
623
|
* A finite stream is consumed at most once and must match its declared size.
|
|
623
624
|
* A path string or URL alone is not accepted, and the SDK owns only the readers it acquires
|
|
624
625
|
*
|
|
625
|
-
* All sources
|
|
626
|
+
* All sources share the client uploads.maxBytes reservation budget.
|
|
626
627
|
* A full upload or request queue fails with busy before copying or reading.
|
|
627
|
-
* Fluxer
|
|
628
|
+
* Fluxer decides how large each file may be: A bot gets the lower of the instance's attachment limit and its bot attachment limit, which is 50 MiB unless the instance raises it for that bot or community.
|
|
629
|
+
* A larger file fails with reason rejected and an apiError with code fileSizeTooLarge, and no message is created.
|
|
630
|
+
* With an inline multipart upload more than 64 MiB over that limit, Fluxer may close the connection instead, which fails with reason network.
|
|
628
631
|
* Uploads use presigned planning or an inline multipart fallback.
|
|
629
632
|
* Upload-plan and completion responses have their own 1 MiB limit, and neither response limit caps total memory use.
|
|
630
633
|
* Cleanup releases copied bytes and cancels and releases acquired readers on failure.
|
|
@@ -633,7 +636,7 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
633
636
|
*
|
|
634
637
|
* The default total deadline, rest.defaultTimeoutMs (30,000 ms unless configured), includes waiting for request capacity and rate limits.
|
|
635
638
|
* The request uses the shared limits and failure rules of this namespace.
|
|
636
|
-
* By default one client admits four REST and upload requests per local shard, up to 64, plus four independent attachment downloads, and both pools share at most 256 pending requests or
|
|
639
|
+
* By default one client admits four REST and upload requests per local shard, up to 64, plus four independent attachment downloads, and both pools share at most 256 pending requests or 64 MiB of pending JSON.
|
|
637
640
|
* The rest client option changes these limits.
|
|
638
641
|
* Only confirmed rate-limit rejections can retry automatically, and sends with unknown outcomes never retry.
|
|
639
642
|
* With inline multipart uploads, a confirmed HTTP 429 can replay copied data bytes only, while file and stream inputs fail with rateLimit instead of being read again
|
|
@@ -751,7 +754,8 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
751
754
|
* Pass a decimal channel ID.
|
|
752
755
|
* With no query, this reads the latest 50 messages.
|
|
753
756
|
* The limit option accepts 1–100.
|
|
754
|
-
* Choose
|
|
757
|
+
* Choose one before, after or around message-ID cursor, or both before and after to read the newest messages
|
|
758
|
+
* between them. When around is set, Fluxer ignores before and after for the page.
|
|
755
759
|
* Use the oldest returned ID as before to request an older page
|
|
756
760
|
*
|
|
757
761
|
* The entire page is validated before returning a frozen array of frozen snapshots.
|
|
@@ -823,17 +827,20 @@ export interface Messages<M extends MessageCore = Message> {
|
|
|
823
827
|
* No hidden fetch or cache merge is performed.
|
|
824
828
|
* Mentions default off.
|
|
825
829
|
* Existing stickers are preserved and cannot be replaced here.
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
830
|
+
* Unless flags are supplied, the edit itself must contain visible content, an embed or an attachment, as Fluxer
|
|
831
|
+
* checks the edit rather than the message it leaves, or it fails locally with reason input.
|
|
832
|
+
* Empty or null content clears the text, so it needs a nonempty embeds or attachments list, or flags, in the same
|
|
833
|
+
* edit. Supplied flags replace the writable flags, so send the message's current flags to keep them.
|
|
834
|
+
* To remove embeds, send visible content, attachments or flags with embeds: [].
|
|
829
835
|
* Omitted rich embeds remain, but link previews may be regenerated
|
|
830
836
|
*
|
|
831
837
|
* To keep existing files while adding new uploads, include their IDs in attachments.
|
|
832
838
|
* The supplied list replaces the old one.
|
|
833
|
-
* An empty list clears files when
|
|
839
|
+
* An empty list clears files when the edit also has visible text, embeds or flags.
|
|
834
840
|
* Retained file title or description can be replaced or cleared with null.
|
|
835
841
|
* Unknown IDs may be ignored, and a stale list can remove concurrent additions.
|
|
836
|
-
* An attachment:// image or thumbnail URL must match a new image or video upload, not a retained attachment.
|
|
842
|
+
* An attachment:// image or thumbnail URL must match a new image or video upload when attachments is supplied, not a retained attachment.
|
|
843
|
+
* When the edit omits attachments, it may name an image or video file the message already has, which Fluxer moves into the embed and checks remotely.
|
|
837
844
|
* New uploads use send's copying, attachment source, size, budget and cleanup rules, and inline multipart 429 responses do not replay file or stream sources.
|
|
838
845
|
* Failed edits may leave temporary server data, without physical-erasure guarantees.
|
|
839
846
|
* A flags-only edit is allowed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/api/default/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EACrB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACpH,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,KAAK,EACR,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EAC1B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACR,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,UAAU,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC/G,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,cAA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AAI,EAAE,uBAAuB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;CACtF"}
|
|
@@ -96,7 +96,7 @@ export interface OAuthClient extends AsyncDisposable {
|
|
|
96
96
|
/**
|
|
97
97
|
* Fetch one bounded page of the delegated user's community memberships.
|
|
98
98
|
* Use an access token with Fluxer's guilds scope.
|
|
99
|
-
* Optionally supply pagination settings in GuildListQuery, where limit defaults to 200 and accepts 1–200, and before and after are
|
|
99
|
+
* Optionally supply pagination settings in GuildListQuery, where limit defaults to 200 and accepts 1–200, and when both before and after are set, Fluxer uses after and ignores before.
|
|
100
100
|
* This uses bearer authentication with the supplied access token, never the bot token.
|
|
101
101
|
* Failures identify a read in details.read for errors.isRetryable. Requests are not retried automatically,
|
|
102
102
|
* and network causes retain only sanitized transport facts
|
|
@@ -21,7 +21,8 @@ export interface RequestOptions extends OperationOptions {
|
|
|
21
21
|
* @category Options
|
|
22
22
|
*/
|
|
23
23
|
export interface AuditedRequestOptions extends RequestOptions {
|
|
24
|
-
/** Optional audit-log reason, 1–512 UTF-16 code units after trimming, in any language.
|
|
24
|
+
/** Optional audit-log reason, 1–512 UTF-16 code units after U+000C and U+202E removal and trimming, in any language.
|
|
25
|
+
* Fluxer silently drops a reason outside that range, so the SDK fails it locally. The trimmed reason is sent.
|
|
25
26
|
* Sent only as the X-Audit-Log-Reason header carrying the reason's UTF-8 bytes, which Fluxer decodes, without URL escaping.
|
|
26
27
|
* Control characters, line separators and lone surrogates fail before dispatch. Omission sends no header. Never included in SDK errors or diagnostics.
|
|
27
28
|
* Header delivery does not guarantee that Fluxer stores the reason in an audit entry. Methods name the known paths that do not
|
|
@@ -89,7 +90,9 @@ export interface ExpressionDeleteOptions extends AuditedRequestOptions {
|
|
|
89
90
|
readonly purge?: boolean;
|
|
90
91
|
}
|
|
91
92
|
/** Limit the bytes and time used by an attachment download.
|
|
92
|
-
* The maxBytes option is required, a positive safe integer no
|
|
93
|
+
* The maxBytes option is required, a positive safe integer. The SDK sets no upper limit of its own, because Fluxer
|
|
94
|
+
* decides how large an attachment may be: A bot can send up to its upload limit, 50 MiB unless the instance raises it,
|
|
95
|
+
* and people up to theirs, as much as 500 MiB by default.
|
|
93
96
|
* This limits returned bytes, not the file size on Fluxer, total JavaScript memory or buffering while the SDK assembles the result.
|
|
94
97
|
* The timeoutMs option covers endpoint discovery, URL validation and the full GET, and defaults to the client's rest.defaultTimeoutMs, 30,000 unless configured.
|
|
95
98
|
* The SDK still waits for cleanup after the deadline.
|
|
@@ -101,7 +104,9 @@ export interface ExpressionDeleteOptions extends AuditedRequestOptions {
|
|
|
101
104
|
* @category Messages
|
|
102
105
|
*/
|
|
103
106
|
export interface AttachmentDownloadOptions extends OperationOptions {
|
|
104
|
-
/** Maximum bytes to accept, required and
|
|
107
|
+
/** Maximum bytes to accept, required and a positive safe integer. Exceeding it fails with reason tooLarge rather than
|
|
108
|
+
* truncating. A buffered download holds that many bytes in memory, so use attachments.stream for large files
|
|
109
|
+
*/
|
|
105
110
|
readonly maxBytes: number;
|
|
106
111
|
/** Total deadline in milliseconds, an integer from 1 through 2,147,483,647, including discovery and the GET.
|
|
107
112
|
* Defaults to the client's rest.defaultTimeoutMs, 30,000 unless configured. Cleanup is still awaited after expiry
|
|
@@ -217,7 +222,9 @@ export interface OwnMessageDeletionOptions extends RequestOptions {
|
|
|
217
222
|
* @category Messages
|
|
218
223
|
*/
|
|
219
224
|
export interface AttachmentStreamOptions extends OperationOptions {
|
|
220
|
-
/** Maximum bytes to accept, required and
|
|
225
|
+
/** Maximum bytes to accept, required and a positive safe integer with no upper limit of the SDK's own. Exceeding it
|
|
226
|
+
* fails with reason tooLarge rather than truncating
|
|
227
|
+
*/
|
|
221
228
|
readonly maxBytes: number;
|
|
222
229
|
/** Total deadline in milliseconds, an integer from 1 through 2,147,483,647, including discovery and the GET.
|
|
223
230
|
* Defaults to the client's rest.defaultTimeoutMs, 30,000 unless configured. Cleanup is still awaited after expiry
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/api/default/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAElE;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACpD;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/api/default/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAElE;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACpD;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAChC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IACxD;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CACpC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,WAAW,CA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;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,OAAO,CAAA;CACtE;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B"}
|
|
@@ -32,7 +32,9 @@ export interface RestRequests {
|
|
|
32
32
|
* Send one request to a route of Fluxer's API description, checked at compile time: The route is its method and
|
|
33
33
|
* path template, such as `POST /channels/{channel_id}/messages`, and params, query and body take Fluxer's official
|
|
34
34
|
* field names. The response body has the route's type. These types come from Fluxer's API description at the
|
|
35
|
-
* commit this release pins,
|
|
35
|
+
* commit this release pins, with reviewed corrections where Fluxer's server sends or accepts something else, such
|
|
36
|
+
* as public routes the description lists without a bot token that Fluxer answers for a bot too. They do not cover
|
|
37
|
+
* later routes or fields, and the response is not checked at runtime.
|
|
36
38
|
* Each path parameter is percent-encoded as one segment, and a missing, extra or empty one fails with
|
|
37
39
|
* RestRequestError reason input before any request. Only the compiler checks that a route is listed, and at runtime
|
|
38
40
|
* any route is sent whose filled path request accepts. The request then follows every rule of request, through the
|
|
@@ -110,8 +112,8 @@ export interface RestRequest extends OperationOptions {
|
|
|
110
112
|
* Not allowed with GET
|
|
111
113
|
*/
|
|
112
114
|
readonly files?: readonly AttachmentInput[];
|
|
113
|
-
/** Audit-log reason sent as the X-Audit-Log-Reason header, 1 through 512 UTF-16 code units after
|
|
114
|
-
* Any language works, because the header carries its UTF-8 bytes. Control characters, line separators and lone
|
|
115
|
+
/** Audit-log reason sent as the X-Audit-Log-Reason header, 1 through 512 UTF-16 code units after
|
|
116
|
+
* U+000C and U+202E removal and trimming, which Fluxer otherwise drops silently. Any language works, because the header carries its UTF-8 bytes. Control characters, line separators and lone
|
|
115
117
|
* surrogates fail before dispatch. Omission sends no header. Never included in errors, logs or diagnostics
|
|
116
118
|
*/
|
|
117
119
|
readonly auditReason?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../../src/api/default/rest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACpB,MAAM,WAAW,CAAA;AAElB;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IACzB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,CAAC,GAAG,OAAO,EACf,KAAK,EAAE,WAAW,GACnB,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,kBAAkB,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;IAEzF
|
|
1
|
+
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../../src/api/default/rest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EACR,i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