@abyss-project/reflex 6.6.0 → 6.9.1
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/.eslintrc.js +32 -32
- package/.prettierrc +5 -5
- package/README.md +15 -15
- package/dist/api/function-run.api.d.ts +1 -2
- package/dist/api/function-run.api.js +1 -3
- package/dist/api/function-run.api.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/reflex-admin.admin.api.d.ts +5 -0
- package/dist/api/reflex-admin.admin.api.js +18 -0
- package/dist/api/reflex-admin.admin.api.js.map +1 -0
- package/dist/discord/discord-event-filter-cases.js +11 -27
- package/dist/discord/discord-event-filter-cases.js.map +1 -1
- package/dist/discord/discord-event-filters.js +3 -7
- package/dist/discord/discord-event-filters.js.map +1 -1
- package/dist/discord/discord-event-intents.d.ts +2 -8
- package/dist/discord/discord-event-intents.js +2 -13
- package/dist/discord/discord-event-intents.js.map +1 -1
- package/dist/discord/index.d.ts +0 -1
- package/dist/discord/index.js +0 -1
- package/dist/discord/index.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/discord-event-type.enum.d.ts +1 -3
- package/dist/types/enum/discord-event-type.enum.js +0 -2
- package/dist/types/enum/discord-event-type.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +2 -2
- package/dist/types/enum/index.js +2 -2
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-abuse-rule.enum.d.ts +5 -0
- package/dist/types/enum/reflex-abuse-rule.enum.js +10 -0
- package/dist/types/enum/reflex-abuse-rule.enum.js.map +1 -0
- package/dist/types/enum/reflex-admin-hold-kind.enum.d.ts +4 -0
- package/dist/types/enum/reflex-admin-hold-kind.enum.js +9 -0
- package/dist/types/enum/reflex-admin-hold-kind.enum.js.map +1 -0
- package/dist/types/enum/reflex-error-code.enum.d.ts +3 -11
- package/dist/types/enum/reflex-error-code.enum.js +2 -10
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/interface/api/requests/function-run.request.d.ts +0 -8
- package/dist/types/interface/api/requests/index.d.ts +1 -0
- package/dist/types/interface/api/requests/index.js +1 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/reflex-admin.admin.request.d.ts +21 -0
- package/dist/types/interface/api/requests/reflex-admin.admin.request.js +3 -0
- package/dist/types/interface/api/requests/reflex-admin.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-discord.request.d.ts +3 -7
- package/dist/types/interface/api/responses/function-run.response.d.ts +0 -8
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/reflex-admin.admin.response.d.ts +22 -0
- package/dist/types/interface/api/responses/reflex-admin.admin.response.js +3 -0
- package/dist/types/interface/api/responses/reflex-admin.admin.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +1 -0
- package/dist/types/interface/models/index.js +1 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-admin-hold.model.d.ts +50 -0
- package/dist/types/interface/models/reflex-admin-hold.model.js +11 -0
- package/dist/types/interface/models/reflex-admin-hold.model.js.map +1 -0
- package/dist/types/interface/models/reflex-discord.model.d.ts +2 -18
- package/dist/types/interface/models/reflex-discord.model.js +0 -4
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -1
- package/dist/types/interface/models/reflex-run.model.d.ts +0 -4
- package/dist/types/interface/models/reflex-run.model.js +1 -4
- package/dist/types/interface/models/reflex-run.model.js.map +1 -1
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -1
- package/dist/types/interface/models/reflex-service.model.d.ts +2 -0
- package/dist/types/interface/models/reflex-service.model.js.map +1 -1
- package/jest.config.ts +11 -11
- package/package.json +1 -1
- package/src/api/alert-rule.api.test.ts +72 -72
- package/src/api/alert-rule.api.ts +57 -57
- package/src/api/application-insights.api.test.ts +42 -42
- package/src/api/application-insights.api.ts +38 -38
- package/src/api/application-run-settings.api.ts +30 -30
- package/src/api/function-access.api.ts +87 -87
- package/src/api/function-insights.api.test.ts +27 -27
- package/src/api/function-insights.api.ts +18 -18
- package/src/api/function-run.api.ts +53 -72
- package/src/api/function-template.api.test.ts +72 -72
- package/src/api/function-template.api.ts +52 -52
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +66 -66
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +1 -0
- package/src/api/reflex-admin.admin.api.test.ts +78 -0
- package/src/api/reflex-admin.admin.api.ts +53 -0
- package/src/api/route-stats.api.test.ts +45 -45
- package/src/api/route-stats.api.ts +36 -36
- package/src/api/service-completion-webhook.api.test.ts +97 -97
- package/src/api/service-completion-webhook.api.ts +39 -39
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-consumer.api.test.ts +104 -104
- package/src/api/service-consumer.api.ts +90 -90
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-discord-event.api.test.ts +106 -106
- package/src/api/service-discord-event.api.ts +78 -78
- package/src/api/service-discord.api.test.ts +178 -178
- package/src/api/service-discord.api.ts +222 -222
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-limits.api.test.ts +100 -100
- package/src/api/service-limits.api.ts +37 -37
- package/src/api/service-openapi.api.test.ts +52 -52
- package/src/api/service-openapi.api.ts +21 -21
- package/src/api/service-route.api.ts +74 -74
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.ts +55 -55
- package/src/discord/discord-event-filter-cases.ts +261 -299
- package/src/discord/discord-event-filters.test.ts +91 -120
- package/src/discord/discord-event-filters.ts +95 -103
- package/src/discord/discord-event-intents.test.ts +112 -139
- package/src/discord/discord-event-intents.ts +55 -80
- package/src/discord/index.ts +3 -4
- package/src/index.test.ts +104 -104
- package/src/index.ts +26 -2
- package/src/insights/index.ts +1 -1
- package/src/insights/percentiles.test.ts +75 -75
- package/src/insights/percentiles.ts +37 -37
- package/src/types/enum/access-grant-status.enum.ts +12 -12
- package/src/types/enum/access-kind.enum.ts +7 -7
- package/src/types/enum/access-request-status.enum.ts +11 -11
- package/src/types/enum/bot-event-block-reason.enum.ts +7 -7
- package/src/types/enum/completion-delivery-status.enum.ts +9 -9
- package/src/types/enum/configuration-read-as.enum.ts +5 -5
- package/src/types/enum/discord-activity-type.enum.ts +9 -9
- package/src/types/enum/discord-channel-type.enum.ts +11 -11
- package/src/types/enum/discord-component-kind.enum.ts +7 -7
- package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
- package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
- package/src/types/enum/discord-event-status.enum.ts +13 -13
- package/src/types/enum/discord-event-type.enum.ts +7 -11
- package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
- package/src/types/enum/discord-gateway-state.enum.ts +11 -11
- package/src/types/enum/discord-host-action.enum.ts +37 -37
- package/src/types/enum/discord-locale.enum.ts +35 -35
- package/src/types/enum/discord-option-type.enum.ts +12 -12
- package/src/types/enum/discord-presence-status.enum.ts +8 -8
- package/src/types/enum/discord-sync-status.enum.ts +6 -6
- package/src/types/enum/discord-token-state.enum.ts +11 -11
- package/src/types/enum/execution-mode.enum.ts +9 -9
- package/src/types/enum/execution-profile.enum.ts +20 -20
- package/src/types/enum/execution-settings-source.enum.ts +9 -9
- package/src/types/enum/health-status.enum.ts +4 -4
- package/src/types/enum/index.ts +53 -53
- package/src/types/enum/insights-period.enum.ts +8 -8
- package/src/types/enum/log-cap-mode.enum.ts +6 -6
- package/src/types/enum/log-drop-cause.enum.ts +8 -8
- package/src/types/enum/reflex-abuse-rule.enum.ts +9 -0
- package/src/types/enum/reflex-admin-hold-kind.enum.ts +7 -0
- package/src/types/enum/reflex-error-code.enum.ts +7 -23
- package/src/types/enum/route-method.enum.ts +9 -9
- package/src/types/enum/run-log-level.enum.ts +6 -6
- package/src/types/enum/run-mode.enum.ts +11 -11
- package/src/types/enum/run-status.enum.ts +16 -16
- package/src/types/enum/run-step-status.enum.ts +7 -7
- package/src/types/enum/schedule-sync-status.enum.ts +6 -6
- package/src/types/enum/scheduled-run-failure-code.enum.ts +14 -14
- package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
- package/src/types/enum/scheduled-run-status.enum.ts +17 -17
- package/src/types/enum/service-block-reason.enum.ts +13 -13
- package/src/types/enum/service-deployment-action.enum.ts +11 -11
- package/src/types/enum/service-deployment-status.enum.ts +5 -5
- package/src/types/enum/service-type.enum.ts +9 -9
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trace-effect-type.enum.ts +12 -12
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/enum/trigger-kind.enum.ts +8 -8
- package/src/types/enum/vault-value-source.enum.ts +12 -12
- package/src/types/enum/vault-visibility.enum.ts +5 -5
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
- package/src/types/interface/api/requests/application-insights.request.ts +18 -18
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-run.request.ts +0 -11
- package/src/types/interface/api/requests/function-template.request.ts +29 -29
- package/src/types/interface/api/requests/function-test.request.ts +44 -44
- package/src/types/interface/api/requests/function-version.request.ts +38 -38
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/index.ts +1 -0
- package/src/types/interface/api/requests/reflex-admin.admin.request.ts +26 -0
- package/src/types/interface/api/requests/route-stats.request.ts +22 -22
- package/src/types/interface/api/requests/service-completion-webhook.request.ts +11 -11
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
- package/src/types/interface/api/requests/service-consumer.request.ts +51 -51
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
- package/src/types/interface/api/requests/service-discord.request.ts +155 -168
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-limits.request.ts +28 -28
- package/src/types/interface/api/requests/service-openapi.request.ts +10 -10
- package/src/types/interface/api/requests/service-route.request.ts +52 -52
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
- package/src/types/interface/api/responses/application-insights.response.ts +11 -11
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
- package/src/types/interface/api/responses/function-access.response.ts +45 -45
- package/src/types/interface/api/responses/function-run.response.ts +0 -12
- package/src/types/interface/api/responses/function-template.response.ts +21 -21
- package/src/types/interface/api/responses/function-test.response.ts +19 -19
- package/src/types/interface/api/responses/function-version.response.ts +42 -42
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +1 -0
- package/src/types/interface/api/responses/reflex-admin.admin.response.ts +32 -0
- package/src/types/interface/api/responses/route-stats.response.ts +15 -15
- package/src/types/interface/api/responses/service-completion-webhook.response.ts +13 -13
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
- package/src/types/interface/api/responses/service-consumer.response.ts +33 -33
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
- package/src/types/interface/api/responses/service-discord.response.ts +110 -110
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-limits.response.ts +13 -13
- package/src/types/interface/api/responses/service-openapi.response.ts +7 -7
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +112 -112
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +1 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-access-request.model.ts +15 -15
- package/src/types/interface/models/reflex-admin-hold.model.ts +64 -0
- package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
- package/src/types/interface/models/reflex-bot-limits.model.ts +53 -53
- package/src/types/interface/models/reflex-completion-webhook.model.ts +111 -111
- package/src/types/interface/models/reflex-consumer.model.ts +50 -50
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
- package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
- package/src/types/interface/models/reflex-discord.model.ts +208 -249
- package/src/types/interface/models/reflex-execution-settings.model.ts +57 -57
- package/src/types/interface/models/reflex-function-template.model.ts +18 -18
- package/src/types/interface/models/reflex-function-version.model.ts +19 -19
- package/src/types/interface/models/reflex-function.model.ts +30 -30
- package/src/types/interface/models/reflex-insights.model.ts +215 -215
- package/src/types/interface/models/reflex-price-list.model.ts +22 -22
- package/src/types/interface/models/reflex-route-contract.model.ts +46 -46
- package/src/types/interface/models/reflex-route.model.ts +23 -23
- package/src/types/interface/models/reflex-run.model.ts +0 -8
- package/src/types/interface/models/reflex-service-deployment.model.ts +51 -48
- package/src/types/interface/models/reflex-service.model.ts +50 -47
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-task.model.ts +97 -97
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
- package/dist/discord/discord-command-tree.d.ts +0 -5
- package/dist/discord/discord-command-tree.js +0 -38
- package/dist/discord/discord-command-tree.js.map +0 -1
- package/dist/types/enum/discord-command-node-type.enum.d.ts +0 -5
- package/dist/types/enum/discord-command-node-type.enum.js +0 -10
- package/dist/types/enum/discord-command-node-type.enum.js.map +0 -1
- package/dist/types/enum/discord-command-type.enum.d.ts +0 -5
- package/dist/types/enum/discord-command-type.enum.js +0 -10
- package/dist/types/enum/discord-command-type.enum.js.map +0 -1
- package/src/discord/discord-command-tree.test.ts +0 -47
- package/src/discord/discord-command-tree.ts +0 -60
- package/src/types/enum/discord-command-node-type.enum.ts +0 -10
- package/src/types/enum/discord-command-type.enum.ts +0 -9
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import type { DiscordEventType } from '../../enum';
|
|
2
|
-
|
|
3
|
-
/** Bounds of the Discord event triggers of a bot; the API, the Gateway and their databases apply the same ones. */
|
|
4
|
-
export const REFLEX_DISCORD_EVENT_LIMITS = {
|
|
5
|
-
/** `^[-_a-z0-9]{1,32}$`: the name of a trigger, unique within the Service. */
|
|
6
|
-
namePattern: /^[-_a-z0-9]{1,32}$/,
|
|
7
|
-
nameMaxLength: 32,
|
|
8
|
-
maxTriggersPerService: 25,
|
|
9
|
-
guildIdsMax: 25,
|
|
10
|
-
channelIdsMax: 50,
|
|
11
|
-
roleIdsMax: 25,
|
|
12
|
-
contentPrefixMaxLength: 32,
|
|
13
|
-
/** Characters of the payload of a retained event, serialized to JSON. */
|
|
14
|
-
payloadMaxLength: 8192,
|
|
15
|
-
/** Characters of the summary kept with an event, retained or dropped. */
|
|
16
|
-
summaryMaxLength: 512,
|
|
17
|
-
/** Dropped events kept as a sample, per bot and per reason. */
|
|
18
|
-
dropSamplesPerReason: 200,
|
|
19
|
-
/** Lateness past which a retained event is EXPIRED instead of run. */
|
|
20
|
-
toleranceMinutes: 15,
|
|
21
|
-
} as const;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* What one bot can take in (decision 6 of the J2 spec, ADR-0307). Measured on staging (C1, run 2, 24/11/2026, after
|
|
25
|
-
* the per-bot claim and the sharded rollups): a bot sustains about 3 000 events per minute, bounded by the database
|
|
26
|
-
* (WAL and the `execution_counters` row) more than by its slots: 20 usable slots at 150 each on staging. The formula
|
|
27
|
-
* `min(lotsMaxCeiling, floor((maxConcurrencyPerBot * runsPerSlotPerMinute - base) / 500))` is kept, with
|
|
28
|
-
* `maxConcurrencyPerBot × runsPerSlotPerMinute` = 30 × 100 = the measured 3 000; `lotsMax` is its value for the largest base.
|
|
29
|
-
*/
|
|
30
|
-
export const REFLEX_BOT_EVENT_CAPACITY = {
|
|
31
|
-
/** With `maxConcurrencyPerBot` (the configuration ceiling 30), keeps the product at the measured 3 000 per bot. */
|
|
32
|
-
runsPerSlotPerMinute: 100,
|
|
33
|
-
/** `maxReplicas` (3) times the ceiling per pod (10) of the edge fleet. */
|
|
34
|
-
maxConcurrencyPerBot: 30,
|
|
35
|
-
/** The most lots of 500 events per minute a bot can be allocated, whatever the measure says. */
|
|
36
|
-
lotsMaxCeiling: 40,
|
|
37
|
-
/** The most lots a bot can be allocated: floor((30 × 100 − 500) / 500) = 5. */
|
|
38
|
-
lotsMax: 5,
|
|
39
|
-
} as const;
|
|
40
|
-
|
|
41
|
-
/** Optional filters of a trigger, combined with AND. An absent or empty list is no filter. */
|
|
42
|
-
export interface IReflexDiscordEventFilters {
|
|
43
|
-
/** 25 at most, every type. */
|
|
44
|
-
guildIds?: string[];
|
|
45
|
-
/** 50 at most, message and reaction. */
|
|
46
|
-
channelIds?: string[];
|
|
47
|
-
/** 25 at most, member arrival, message and reaction: the member has one of these roles. */
|
|
48
|
-
roleIds?: string[];
|
|
49
|
-
/** 32 characters at most, message: the content starts with it; needs the MESSAGE_CONTENT intent. */
|
|
50
|
-
contentPrefix?: string;
|
|
51
|
-
/** True when absent: an author or member that is a bot is ignored. */
|
|
52
|
-
ignoreBots?: boolean;
|
|
53
|
-
/** True when absent, message and reaction: the bot itself is ignored. */
|
|
54
|
-
ignoreSelf?: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** A Discord event trigger of the draft of a bot Service: a named target of one event type. */
|
|
58
|
-
export interface IReflexDiscordEvent {
|
|
59
|
-
id: string;
|
|
60
|
-
serviceId: string;
|
|
61
|
-
/** A function of the same Service. */
|
|
62
|
-
functionId: string;
|
|
63
|
-
/** Unique within the Service. */
|
|
64
|
-
name: string;
|
|
65
|
-
eventType: DiscordEventType;
|
|
66
|
-
filters: IReflexDiscordEventFilters;
|
|
67
|
-
/** True by default: events of one channel (or one server for member events) run one after the other. */
|
|
68
|
-
ordered: boolean;
|
|
69
|
-
/** False by default, MESSAGE_CREATE only: the function receives the message content. */
|
|
70
|
-
includeContent: boolean;
|
|
71
|
-
createdAt: Date;
|
|
72
|
-
updatedAt: Date;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** A Discord event trigger as a version of the Service froze it. */
|
|
76
|
-
export type IReflexDiscordEventSnapshot = Pick<
|
|
77
|
-
IReflexDiscordEvent,
|
|
78
|
-
'id' | 'functionId' | 'name' | 'eventType' | 'filters' | 'ordered' | 'includeContent'
|
|
79
|
-
>;
|
|
1
|
+
import type { DiscordEventType } from '../../enum';
|
|
2
|
+
|
|
3
|
+
/** Bounds of the Discord event triggers of a bot; the API, the Gateway and their databases apply the same ones. */
|
|
4
|
+
export const REFLEX_DISCORD_EVENT_LIMITS = {
|
|
5
|
+
/** `^[-_a-z0-9]{1,32}$`: the name of a trigger, unique within the Service. */
|
|
6
|
+
namePattern: /^[-_a-z0-9]{1,32}$/,
|
|
7
|
+
nameMaxLength: 32,
|
|
8
|
+
maxTriggersPerService: 25,
|
|
9
|
+
guildIdsMax: 25,
|
|
10
|
+
channelIdsMax: 50,
|
|
11
|
+
roleIdsMax: 25,
|
|
12
|
+
contentPrefixMaxLength: 32,
|
|
13
|
+
/** Characters of the payload of a retained event, serialized to JSON. */
|
|
14
|
+
payloadMaxLength: 8192,
|
|
15
|
+
/** Characters of the summary kept with an event, retained or dropped. */
|
|
16
|
+
summaryMaxLength: 512,
|
|
17
|
+
/** Dropped events kept as a sample, per bot and per reason. */
|
|
18
|
+
dropSamplesPerReason: 200,
|
|
19
|
+
/** Lateness past which a retained event is EXPIRED instead of run. */
|
|
20
|
+
toleranceMinutes: 15,
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* What one bot can take in (decision 6 of the J2 spec, ADR-0307). Measured on staging (C1, run 2, 24/11/2026, after
|
|
25
|
+
* the per-bot claim and the sharded rollups): a bot sustains about 3 000 events per minute, bounded by the database
|
|
26
|
+
* (WAL and the `execution_counters` row) more than by its slots: 20 usable slots at 150 each on staging. The formula
|
|
27
|
+
* `min(lotsMaxCeiling, floor((maxConcurrencyPerBot * runsPerSlotPerMinute - base) / 500))` is kept, with
|
|
28
|
+
* `maxConcurrencyPerBot × runsPerSlotPerMinute` = 30 × 100 = the measured 3 000; `lotsMax` is its value for the largest base.
|
|
29
|
+
*/
|
|
30
|
+
export const REFLEX_BOT_EVENT_CAPACITY = {
|
|
31
|
+
/** With `maxConcurrencyPerBot` (the configuration ceiling 30), keeps the product at the measured 3 000 per bot. */
|
|
32
|
+
runsPerSlotPerMinute: 100,
|
|
33
|
+
/** `maxReplicas` (3) times the ceiling per pod (10) of the edge fleet. */
|
|
34
|
+
maxConcurrencyPerBot: 30,
|
|
35
|
+
/** The most lots of 500 events per minute a bot can be allocated, whatever the measure says. */
|
|
36
|
+
lotsMaxCeiling: 40,
|
|
37
|
+
/** The most lots a bot can be allocated: floor((30 × 100 − 500) / 500) = 5. */
|
|
38
|
+
lotsMax: 5,
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
/** Optional filters of a trigger, combined with AND. An absent or empty list is no filter. */
|
|
42
|
+
export interface IReflexDiscordEventFilters {
|
|
43
|
+
/** 25 at most, every type. */
|
|
44
|
+
guildIds?: string[];
|
|
45
|
+
/** 50 at most, message and reaction. */
|
|
46
|
+
channelIds?: string[];
|
|
47
|
+
/** 25 at most, member arrival, message and reaction: the member has one of these roles. */
|
|
48
|
+
roleIds?: string[];
|
|
49
|
+
/** 32 characters at most, message: the content starts with it; needs the MESSAGE_CONTENT intent. */
|
|
50
|
+
contentPrefix?: string;
|
|
51
|
+
/** True when absent: an author or member that is a bot is ignored. */
|
|
52
|
+
ignoreBots?: boolean;
|
|
53
|
+
/** True when absent, message and reaction: the bot itself is ignored. */
|
|
54
|
+
ignoreSelf?: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** A Discord event trigger of the draft of a bot Service: a named target of one event type. */
|
|
58
|
+
export interface IReflexDiscordEvent {
|
|
59
|
+
id: string;
|
|
60
|
+
serviceId: string;
|
|
61
|
+
/** A function of the same Service. */
|
|
62
|
+
functionId: string;
|
|
63
|
+
/** Unique within the Service. */
|
|
64
|
+
name: string;
|
|
65
|
+
eventType: DiscordEventType;
|
|
66
|
+
filters: IReflexDiscordEventFilters;
|
|
67
|
+
/** True by default: events of one channel (or one server for member events) run one after the other. */
|
|
68
|
+
ordered: boolean;
|
|
69
|
+
/** False by default, MESSAGE_CREATE only: the function receives the message content. */
|
|
70
|
+
includeContent: boolean;
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** A Discord event trigger as a version of the Service froze it. */
|
|
76
|
+
export type IReflexDiscordEventSnapshot = Pick<
|
|
77
|
+
IReflexDiscordEvent,
|
|
78
|
+
'id' | 'functionId' | 'name' | 'eventType' | 'filters' | 'ordered' | 'includeContent'
|
|
79
|
+
>;
|
|
@@ -1,249 +1,208 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
DiscordActivityType,
|
|
3
|
-
DiscordChannelType,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/** A
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
export interface IReflexDiscordPresence {
|
|
210
|
-
state: DiscordGatewayState;
|
|
211
|
-
/** Set if and only if `state` is `FAILED`. */
|
|
212
|
-
failureCode: DiscordGatewayFailureCode | null;
|
|
213
|
-
stateChangedAt: Date;
|
|
214
|
-
/** Null until the bot connected once. */
|
|
215
|
-
lastConnectedAt: Date | null;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/** What the Connection screen shows of the bot of one environment. Never carries the token. */
|
|
219
|
-
export interface IReflexDiscordEnvironmentConnection {
|
|
220
|
-
environmentId: string;
|
|
221
|
-
/** The Discord application read from the token; null while the token is missing, rejected or unchecked. */
|
|
222
|
-
applicationId: string | null;
|
|
223
|
-
publicKey: string | null;
|
|
224
|
-
botName: string | null;
|
|
225
|
-
botAvatarUrl: string | null;
|
|
226
|
-
tokenState: DiscordTokenState;
|
|
227
|
-
testGuildId: string | null;
|
|
228
|
-
invitePermissions: string;
|
|
229
|
-
presenceStatus: DiscordPresenceStatus;
|
|
230
|
-
activityType: DiscordActivityType | null;
|
|
231
|
-
activityText: string | null;
|
|
232
|
-
/** Largest file the bot receives or sends, in bytes (1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`). */
|
|
233
|
-
maxAttachmentBytes: number;
|
|
234
|
-
/** The bot receives poll votes; false until turned on. */
|
|
235
|
-
pollVotesEnabled: boolean;
|
|
236
|
-
/** The Gateway connection; null while the bot is not in service in this environment. */
|
|
237
|
-
presence: IReflexDiscordPresence | null;
|
|
238
|
-
/** Address to give Discord for interactions in this environment. */
|
|
239
|
-
interactionsUrl: string;
|
|
240
|
-
/** Link that adds the bot to a Discord server; null while the application is unknown. */
|
|
241
|
-
inviteUrl: string | null;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/** The Vault entry holding the token, and the bot of each environment of the application. */
|
|
245
|
-
export interface IReflexDiscordConnection {
|
|
246
|
-
/** Vault entry (secret) that holds the bot token, one value per environment; null until chosen. */
|
|
247
|
-
discordTokenSecretId: string | null;
|
|
248
|
-
environments: IReflexDiscordEnvironmentConnection[];
|
|
249
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
DiscordActivityType,
|
|
3
|
+
DiscordChannelType,
|
|
4
|
+
DiscordComponentKind,
|
|
5
|
+
DiscordLocale,
|
|
6
|
+
DiscordGatewayFailureCode,
|
|
7
|
+
DiscordGatewayState,
|
|
8
|
+
DiscordOptionType,
|
|
9
|
+
DiscordPresenceStatus,
|
|
10
|
+
DiscordTokenState,
|
|
11
|
+
} from '../../enum';
|
|
12
|
+
|
|
13
|
+
/** Bounds of the commands and components of a Discord bot; the API and its database apply the same ones. */
|
|
14
|
+
export const REFLEX_DISCORD_LIMITS = {
|
|
15
|
+
/** `^[-_a-z0-9]{1,32}$`: the name typed after the slash. */
|
|
16
|
+
commandNamePattern: /^[-_a-z0-9]{1,32}$/,
|
|
17
|
+
/**
|
|
18
|
+
* Discord's pattern of a translated command or option name: letters and digits of any script, `-`, `_` and
|
|
19
|
+
* `'`, 1 to 32 characters. It must also be lower case where the script has one (see `isValidLocalizedName`).
|
|
20
|
+
*/
|
|
21
|
+
localizedNamePattern: /^[-_'\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/u,
|
|
22
|
+
commandDescriptionMaxLength: 100,
|
|
23
|
+
commandsPerServiceMax: 100,
|
|
24
|
+
optionsPerCommandMax: 25,
|
|
25
|
+
choicesPerOptionMax: 25,
|
|
26
|
+
/** `^[a-z0-9_-]{1,40}$`: the start of the `custom_id` of a button, a menu or a form. */
|
|
27
|
+
componentPrefixPattern: /^[a-z0-9_-]{1,40}$/,
|
|
28
|
+
syncErrorMaxLength: 500,
|
|
29
|
+
/** Bounds of `minLength` and `maxLength` of a STRING option (`maxLength` is 1 at least). */
|
|
30
|
+
optionLengthMax: 6000,
|
|
31
|
+
/** Length of the name of a choice, localized or not. */
|
|
32
|
+
choiceNameMaxLength: 100,
|
|
33
|
+
/** Largest file a bot receives or sends, per bot and environment (#915): the default, and the bound the setting may not pass. */
|
|
34
|
+
attachmentMaxBytesDefault: 2 * 1024 * 1024,
|
|
35
|
+
attachmentMaxBytesBound: 8 * 1024 * 1024,
|
|
36
|
+
} as const;
|
|
37
|
+
|
|
38
|
+
/** A translated command or option name Discord accepts: its pattern, and lower case where the script has one. */
|
|
39
|
+
export const isValidLocalizedName = (name: string): boolean =>
|
|
40
|
+
REFLEX_DISCORD_LIMITS.localizedNamePattern.test(name) && name === name.toLowerCase();
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Translations of a name or a description, by Discord locale. A localized command or option name
|
|
44
|
+
* passes `isValidLocalizedName`, a description 1 to 100 characters, a choice name 1 to 100.
|
|
45
|
+
*/
|
|
46
|
+
export type ReflexDiscordLocalizations = Partial<Record<DiscordLocale, string>>;
|
|
47
|
+
|
|
48
|
+
/** A fixed answer a user picks for a STRING, INTEGER or NUMBER option. */
|
|
49
|
+
export interface IReflexDiscordOptionChoice {
|
|
50
|
+
name: string;
|
|
51
|
+
value: string | number;
|
|
52
|
+
nameLocalizations?: ReflexDiscordLocalizations;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* An option of a command. Required options come first. A bound only exists on the types it applies
|
|
57
|
+
* to: the API refuses it on another one.
|
|
58
|
+
*/
|
|
59
|
+
export interface IReflexDiscordCommandOption {
|
|
60
|
+
type: DiscordOptionType;
|
|
61
|
+
/** Same pattern as the command name. */
|
|
62
|
+
name: string;
|
|
63
|
+
/** 1 to 100 characters. */
|
|
64
|
+
description: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
/** 25 at most, only for STRING, INTEGER and NUMBER; within `minValue`/`maxValue` and `minLength`/`maxLength`. */
|
|
67
|
+
choices?: IReflexDiscordOptionChoice[];
|
|
68
|
+
/**
|
|
69
|
+
* Discord asks the function for the choices while the user types. Only for STRING, INTEGER and NUMBER,
|
|
70
|
+
* never together with `choices`. Absent means false.
|
|
71
|
+
*/
|
|
72
|
+
autocomplete?: boolean;
|
|
73
|
+
/** INTEGER and NUMBER: safe numbers, `minValue` <= `maxValue`. */
|
|
74
|
+
minValue?: number;
|
|
75
|
+
maxValue?: number;
|
|
76
|
+
/** STRING: 0 to 6000 (`maxLength` 1 at least), `minLength` <= `maxLength`. */
|
|
77
|
+
minLength?: number;
|
|
78
|
+
maxLength?: number;
|
|
79
|
+
/** CHANNEL: the channel types a user may pick, not empty, no duplicate. */
|
|
80
|
+
channelTypes?: DiscordChannelType[];
|
|
81
|
+
nameLocalizations?: ReflexDiscordLocalizations;
|
|
82
|
+
descriptionLocalizations?: ReflexDiscordLocalizations;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** A slash command of the draft of a Discord bot Service. */
|
|
86
|
+
export interface IReflexDiscordCommand {
|
|
87
|
+
id: string;
|
|
88
|
+
serviceId: string;
|
|
89
|
+
/** A function of the same Service. */
|
|
90
|
+
functionId: string;
|
|
91
|
+
/** Unique within the Service. */
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
options: IReflexDiscordCommandOption[];
|
|
95
|
+
/** Discord permission bits as a decimal string, or null for everyone. */
|
|
96
|
+
defaultMemberPermissions: string | null;
|
|
97
|
+
allowedInDirectMessages: boolean;
|
|
98
|
+
/** Null without translations. */
|
|
99
|
+
nameLocalizations: ReflexDiscordLocalizations | null;
|
|
100
|
+
descriptionLocalizations: ReflexDiscordLocalizations | null;
|
|
101
|
+
/**
|
|
102
|
+
* Users may install the bot on their account and use the command outside the servers it is in (in
|
|
103
|
+
* group messages too). It can then act on no server in the bot's name.
|
|
104
|
+
*/
|
|
105
|
+
userInstallable: boolean;
|
|
106
|
+
createdAt: Date;
|
|
107
|
+
updatedAt: Date;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** A button, select menu or form of the draft of a Discord bot Service, routed by the start of its `custom_id`. */
|
|
111
|
+
export interface IReflexDiscordComponent {
|
|
112
|
+
id: string;
|
|
113
|
+
serviceId: string;
|
|
114
|
+
/** A function of the same Service. */
|
|
115
|
+
functionId: string;
|
|
116
|
+
/** Unique within the Service; no prefix starts another one. An interaction matches the prefix followed by `:`, or equal to its `custom_id`. */
|
|
117
|
+
customIdPrefix: string;
|
|
118
|
+
kind: DiscordComponentKind;
|
|
119
|
+
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* A command as a version of the Service froze it. The fields of card 846 are only there when set (a
|
|
125
|
+
* translation, `userInstallable` true): a command without them keeps the fingerprint it had.
|
|
126
|
+
*/
|
|
127
|
+
export type IReflexDiscordCommandSnapshot = Pick<
|
|
128
|
+
IReflexDiscordCommand,
|
|
129
|
+
| 'id'
|
|
130
|
+
| 'functionId'
|
|
131
|
+
| 'name'
|
|
132
|
+
| 'description'
|
|
133
|
+
| 'options'
|
|
134
|
+
| 'defaultMemberPermissions'
|
|
135
|
+
| 'allowedInDirectMessages'
|
|
136
|
+
> & {
|
|
137
|
+
nameLocalizations?: ReflexDiscordLocalizations;
|
|
138
|
+
descriptionLocalizations?: ReflexDiscordLocalizations;
|
|
139
|
+
userInstallable?: true;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** A component as a version of the Service froze it. */
|
|
143
|
+
export type IReflexDiscordComponentSnapshot = Pick<
|
|
144
|
+
IReflexDiscordComponent,
|
|
145
|
+
'id' | 'functionId' | 'customIdPrefix' | 'kind'
|
|
146
|
+
>;
|
|
147
|
+
|
|
148
|
+
/** Settings of a Discord bot Service in one environment, kept outside the versions. */
|
|
149
|
+
export interface IReflexDiscordEnvironmentSettings {
|
|
150
|
+
id: string;
|
|
151
|
+
serviceId: string;
|
|
152
|
+
environmentId: string;
|
|
153
|
+
/** Discord server (snowflake) the commands are pushed to outside production; required there. */
|
|
154
|
+
testGuildId: string | null;
|
|
155
|
+
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
156
|
+
invitePermissions: string;
|
|
157
|
+
/** What the bot shows while connected. */
|
|
158
|
+
presenceStatus: DiscordPresenceStatus;
|
|
159
|
+
/** Null for no activity. */
|
|
160
|
+
activityType: DiscordActivityType | null;
|
|
161
|
+
/** 1 to 128 characters with an `activityType`, null without. */
|
|
162
|
+
activityText: string | null;
|
|
163
|
+
/** Largest file the bot receives or sends, in bytes: `REFLEX_DISCORD_LIMITS.attachmentMaxBytesDefault` until set. */
|
|
164
|
+
maxAttachmentBytes: number;
|
|
165
|
+
createdAt: Date;
|
|
166
|
+
updatedAt: Date;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** The Gateway connection of the bot of one environment, as its row in the execution plane says. */
|
|
170
|
+
export interface IReflexDiscordPresence {
|
|
171
|
+
state: DiscordGatewayState;
|
|
172
|
+
/** Set if and only if `state` is `FAILED`. */
|
|
173
|
+
failureCode: DiscordGatewayFailureCode | null;
|
|
174
|
+
stateChangedAt: Date;
|
|
175
|
+
/** Null until the bot connected once. */
|
|
176
|
+
lastConnectedAt: Date | null;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** What the Connection screen shows of the bot of one environment. Never carries the token. */
|
|
180
|
+
export interface IReflexDiscordEnvironmentConnection {
|
|
181
|
+
environmentId: string;
|
|
182
|
+
/** The Discord application read from the token; null while the token is missing, rejected or unchecked. */
|
|
183
|
+
applicationId: string | null;
|
|
184
|
+
publicKey: string | null;
|
|
185
|
+
botName: string | null;
|
|
186
|
+
botAvatarUrl: string | null;
|
|
187
|
+
tokenState: DiscordTokenState;
|
|
188
|
+
testGuildId: string | null;
|
|
189
|
+
invitePermissions: string;
|
|
190
|
+
presenceStatus: DiscordPresenceStatus;
|
|
191
|
+
activityType: DiscordActivityType | null;
|
|
192
|
+
activityText: string | null;
|
|
193
|
+
/** Largest file the bot receives or sends, in bytes (1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`). */
|
|
194
|
+
maxAttachmentBytes: number;
|
|
195
|
+
/** The Gateway connection; null while the bot is not in service in this environment. */
|
|
196
|
+
presence: IReflexDiscordPresence | null;
|
|
197
|
+
/** Address to give Discord for interactions in this environment. */
|
|
198
|
+
interactionsUrl: string;
|
|
199
|
+
/** Link that adds the bot to a Discord server; null while the application is unknown. */
|
|
200
|
+
inviteUrl: string | null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** The Vault entry holding the token, and the bot of each environment of the application. */
|
|
204
|
+
export interface IReflexDiscordConnection {
|
|
205
|
+
/** Vault entry (secret) that holds the bot token, one value per environment; null until chosen. */
|
|
206
|
+
discordTokenSecretId: string | null;
|
|
207
|
+
environments: IReflexDiscordEnvironmentConnection[];
|
|
208
|
+
}
|