@abyss-project/reflex 6.6.0 → 6.9.0
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 +19 -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 +44 -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 +52 -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 +25 -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 +55 -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,37 +1,37 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `discord.*` actions a function of a Discord bot Service can declare in its accesses. Same values
|
|
3
|
-
* as the runtime's `DiscordCapability`, which a parity test keeps equal: the Access screen lists them all.
|
|
4
|
-
*/
|
|
5
|
-
export enum DiscordHostAction {
|
|
6
|
-
REPLY = 'discord.reply',
|
|
7
|
-
UPDATE = 'discord.update',
|
|
8
|
-
SHOW_MODAL = 'discord.showModal',
|
|
9
|
-
FOLLOW_UP = 'discord.followUp',
|
|
10
|
-
SEND_MESSAGE = 'discord.sendMessage',
|
|
11
|
-
EDIT_MESSAGE = 'discord.editMessage',
|
|
12
|
-
DELETE_MESSAGE = 'discord.deleteMessage',
|
|
13
|
-
ADD_ROLE = 'discord.addRole',
|
|
14
|
-
REMOVE_ROLE = 'discord.removeRole',
|
|
15
|
-
SEND_DIRECT_MESSAGE = 'discord.sendDirectMessage',
|
|
16
|
-
GET_MEMBER = 'discord.getMember',
|
|
17
|
-
GET_GUILD_ROLES = 'discord.getGuildRoles',
|
|
18
|
-
GET_CHANNEL = 'discord.getChannel',
|
|
19
|
-
GET_GUILD = 'discord.getGuild',
|
|
20
|
-
KICK_MEMBER = 'discord.kickMember',
|
|
21
|
-
BAN_MEMBER = 'discord.banMember',
|
|
22
|
-
UNBAN_MEMBER = 'discord.unbanMember',
|
|
23
|
-
TIMEOUT_MEMBER = 'discord.timeoutMember',
|
|
24
|
-
BULK_DELETE_MESSAGES = 'discord.bulkDeleteMessages',
|
|
25
|
-
ADD_REACTION = 'discord.addReaction',
|
|
26
|
-
REMOVE_REACTION = 'discord.removeReaction',
|
|
27
|
-
CREATE_CHANNEL = 'discord.createChannel',
|
|
28
|
-
DELETE_CHANNEL = 'discord.deleteChannel',
|
|
29
|
-
SET_CHANNEL_PERMISSION = 'discord.setChannelPermission',
|
|
30
|
-
REMOVE_CHANNEL_PERMISSION = 'discord.removeChannelPermission',
|
|
31
|
-
CREATE_ROLE = 'discord.createRole',
|
|
32
|
-
DELETE_ROLE = 'discord.deleteRole',
|
|
33
|
-
CREATE_THREAD = 'discord.createThread',
|
|
34
|
-
END_POLL = 'discord.endPoll',
|
|
35
|
-
AUTOCOMPLETE = 'discord.autocomplete',
|
|
36
|
-
READ_ATTACHMENT = 'discord.readAttachment',
|
|
37
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The `discord.*` actions a function of a Discord bot Service can declare in its accesses. Same values
|
|
3
|
+
* as the runtime's `DiscordCapability`, which a parity test keeps equal: the Access screen lists them all.
|
|
4
|
+
*/
|
|
5
|
+
export enum DiscordHostAction {
|
|
6
|
+
REPLY = 'discord.reply',
|
|
7
|
+
UPDATE = 'discord.update',
|
|
8
|
+
SHOW_MODAL = 'discord.showModal',
|
|
9
|
+
FOLLOW_UP = 'discord.followUp',
|
|
10
|
+
SEND_MESSAGE = 'discord.sendMessage',
|
|
11
|
+
EDIT_MESSAGE = 'discord.editMessage',
|
|
12
|
+
DELETE_MESSAGE = 'discord.deleteMessage',
|
|
13
|
+
ADD_ROLE = 'discord.addRole',
|
|
14
|
+
REMOVE_ROLE = 'discord.removeRole',
|
|
15
|
+
SEND_DIRECT_MESSAGE = 'discord.sendDirectMessage',
|
|
16
|
+
GET_MEMBER = 'discord.getMember',
|
|
17
|
+
GET_GUILD_ROLES = 'discord.getGuildRoles',
|
|
18
|
+
GET_CHANNEL = 'discord.getChannel',
|
|
19
|
+
GET_GUILD = 'discord.getGuild',
|
|
20
|
+
KICK_MEMBER = 'discord.kickMember',
|
|
21
|
+
BAN_MEMBER = 'discord.banMember',
|
|
22
|
+
UNBAN_MEMBER = 'discord.unbanMember',
|
|
23
|
+
TIMEOUT_MEMBER = 'discord.timeoutMember',
|
|
24
|
+
BULK_DELETE_MESSAGES = 'discord.bulkDeleteMessages',
|
|
25
|
+
ADD_REACTION = 'discord.addReaction',
|
|
26
|
+
REMOVE_REACTION = 'discord.removeReaction',
|
|
27
|
+
CREATE_CHANNEL = 'discord.createChannel',
|
|
28
|
+
DELETE_CHANNEL = 'discord.deleteChannel',
|
|
29
|
+
SET_CHANNEL_PERMISSION = 'discord.setChannelPermission',
|
|
30
|
+
REMOVE_CHANNEL_PERMISSION = 'discord.removeChannelPermission',
|
|
31
|
+
CREATE_ROLE = 'discord.createRole',
|
|
32
|
+
DELETE_ROLE = 'discord.deleteRole',
|
|
33
|
+
CREATE_THREAD = 'discord.createThread',
|
|
34
|
+
END_POLL = 'discord.endPoll',
|
|
35
|
+
AUTOCOMPLETE = 'discord.autocomplete',
|
|
36
|
+
READ_ATTACHMENT = 'discord.readAttachment',
|
|
37
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/** The locales Discord translates a command, an option or a choice into (Discord's own codes). */
|
|
2
|
-
export enum DiscordLocale {
|
|
3
|
-
ID = 'id',
|
|
4
|
-
DA = 'da',
|
|
5
|
-
DE = 'de',
|
|
6
|
-
EN_GB = 'en-GB',
|
|
7
|
-
EN_US = 'en-US',
|
|
8
|
-
ES_ES = 'es-ES',
|
|
9
|
-
ES_419 = 'es-419',
|
|
10
|
-
FR = 'fr',
|
|
11
|
-
HR = 'hr',
|
|
12
|
-
IT = 'it',
|
|
13
|
-
LT = 'lt',
|
|
14
|
-
HU = 'hu',
|
|
15
|
-
NL = 'nl',
|
|
16
|
-
NO = 'no',
|
|
17
|
-
PL = 'pl',
|
|
18
|
-
PT_BR = 'pt-BR',
|
|
19
|
-
RO = 'ro',
|
|
20
|
-
FI = 'fi',
|
|
21
|
-
SV_SE = 'sv-SE',
|
|
22
|
-
VI = 'vi',
|
|
23
|
-
TR = 'tr',
|
|
24
|
-
CS = 'cs',
|
|
25
|
-
EL = 'el',
|
|
26
|
-
BG = 'bg',
|
|
27
|
-
RU = 'ru',
|
|
28
|
-
UK = 'uk',
|
|
29
|
-
HI = 'hi',
|
|
30
|
-
TH = 'th',
|
|
31
|
-
ZH_CN = 'zh-CN',
|
|
32
|
-
JA = 'ja',
|
|
33
|
-
ZH_TW = 'zh-TW',
|
|
34
|
-
KO = 'ko',
|
|
35
|
-
}
|
|
1
|
+
/** The locales Discord translates a command, an option or a choice into (Discord's own codes). */
|
|
2
|
+
export enum DiscordLocale {
|
|
3
|
+
ID = 'id',
|
|
4
|
+
DA = 'da',
|
|
5
|
+
DE = 'de',
|
|
6
|
+
EN_GB = 'en-GB',
|
|
7
|
+
EN_US = 'en-US',
|
|
8
|
+
ES_ES = 'es-ES',
|
|
9
|
+
ES_419 = 'es-419',
|
|
10
|
+
FR = 'fr',
|
|
11
|
+
HR = 'hr',
|
|
12
|
+
IT = 'it',
|
|
13
|
+
LT = 'lt',
|
|
14
|
+
HU = 'hu',
|
|
15
|
+
NL = 'nl',
|
|
16
|
+
NO = 'no',
|
|
17
|
+
PL = 'pl',
|
|
18
|
+
PT_BR = 'pt-BR',
|
|
19
|
+
RO = 'ro',
|
|
20
|
+
FI = 'fi',
|
|
21
|
+
SV_SE = 'sv-SE',
|
|
22
|
+
VI = 'vi',
|
|
23
|
+
TR = 'tr',
|
|
24
|
+
CS = 'cs',
|
|
25
|
+
EL = 'el',
|
|
26
|
+
BG = 'bg',
|
|
27
|
+
RU = 'ru',
|
|
28
|
+
UK = 'uk',
|
|
29
|
+
HI = 'hi',
|
|
30
|
+
TH = 'th',
|
|
31
|
+
ZH_CN = 'zh-CN',
|
|
32
|
+
JA = 'ja',
|
|
33
|
+
ZH_TW = 'zh-TW',
|
|
34
|
+
KO = 'ko',
|
|
35
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/** Type of an option of a Discord command (same names as the options Discord documents). */
|
|
2
|
-
export enum DiscordOptionType {
|
|
3
|
-
STRING = 'STRING',
|
|
4
|
-
INTEGER = 'INTEGER',
|
|
5
|
-
NUMBER = 'NUMBER',
|
|
6
|
-
BOOLEAN = 'BOOLEAN',
|
|
7
|
-
USER = 'USER',
|
|
8
|
-
CHANNEL = 'CHANNEL',
|
|
9
|
-
ROLE = 'ROLE',
|
|
10
|
-
MENTIONABLE = 'MENTIONABLE',
|
|
11
|
-
ATTACHMENT = 'ATTACHMENT',
|
|
12
|
-
}
|
|
1
|
+
/** Type of an option of a Discord command (same names as the options Discord documents). */
|
|
2
|
+
export enum DiscordOptionType {
|
|
3
|
+
STRING = 'STRING',
|
|
4
|
+
INTEGER = 'INTEGER',
|
|
5
|
+
NUMBER = 'NUMBER',
|
|
6
|
+
BOOLEAN = 'BOOLEAN',
|
|
7
|
+
USER = 'USER',
|
|
8
|
+
CHANNEL = 'CHANNEL',
|
|
9
|
+
ROLE = 'ROLE',
|
|
10
|
+
MENTIONABLE = 'MENTIONABLE',
|
|
11
|
+
ATTACHMENT = 'ATTACHMENT',
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** The status a Discord bot shows while connected to the Gateway. */
|
|
2
|
-
export enum DiscordPresenceStatus {
|
|
3
|
-
ONLINE = 'ONLINE',
|
|
4
|
-
/** Away. */
|
|
5
|
-
IDLE = 'IDLE',
|
|
6
|
-
/** Do not disturb. */
|
|
7
|
-
DND = 'DND',
|
|
8
|
-
}
|
|
1
|
+
/** The status a Discord bot shows while connected to the Gateway. */
|
|
2
|
+
export enum DiscordPresenceStatus {
|
|
3
|
+
ONLINE = 'ONLINE',
|
|
4
|
+
/** Away. */
|
|
5
|
+
IDLE = 'IDLE',
|
|
6
|
+
/** Do not disturb. */
|
|
7
|
+
DND = 'DND',
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** State of the push of the interactions address and the commands to Discord, per environment. */
|
|
2
|
-
export enum DiscordSyncStatus {
|
|
3
|
-
PENDING = 'PENDING',
|
|
4
|
-
SYNCED = 'SYNCED',
|
|
5
|
-
FAILED = 'FAILED',
|
|
6
|
-
}
|
|
1
|
+
/** State of the push of the interactions address and the commands to Discord, per environment. */
|
|
2
|
+
export enum DiscordSyncStatus {
|
|
3
|
+
PENDING = 'PENDING',
|
|
4
|
+
SYNCED = 'SYNCED',
|
|
5
|
+
FAILED = 'FAILED',
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** What Reflex knows of the bot token of an environment. */
|
|
2
|
-
export enum DiscordTokenState {
|
|
3
|
-
/** Discord accepted the token at the last check. */
|
|
4
|
-
VALID = 'VALID',
|
|
5
|
-
/** Discord answered 401 to the token. */
|
|
6
|
-
REJECTED = 'REJECTED',
|
|
7
|
-
/** The Vault entry has no value in this environment. */
|
|
8
|
-
MISSING = 'MISSING',
|
|
9
|
-
/** The token has not been checked yet. */
|
|
10
|
-
UNCHECKED = 'UNCHECKED',
|
|
11
|
-
}
|
|
1
|
+
/** What Reflex knows of the bot token of an environment. */
|
|
2
|
+
export enum DiscordTokenState {
|
|
3
|
+
/** Discord accepted the token at the last check. */
|
|
4
|
+
VALID = 'VALID',
|
|
5
|
+
/** Discord answered 401 to the token. */
|
|
6
|
+
REJECTED = 'REJECTED',
|
|
7
|
+
/** The Vault entry has no value in this environment. */
|
|
8
|
+
MISSING = 'MISSING',
|
|
9
|
+
/** The token has not been checked yet. */
|
|
10
|
+
UNCHECKED = 'UNCHECKED',
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How a route answers its caller.
|
|
3
|
-
* - SYNC: the caller waits for the Respond step, or gets 504 past the response timeout.
|
|
4
|
-
* - ASYNC: the caller gets `202 {executionId}` before the execution starts, and reads its state.
|
|
5
|
-
*/
|
|
6
|
-
export enum ExecutionMode {
|
|
7
|
-
SYNC = 'SYNC',
|
|
8
|
-
ASYNC = 'ASYNC',
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* How a route answers its caller.
|
|
3
|
+
* - SYNC: the caller waits for the Respond step, or gets 504 past the response timeout.
|
|
4
|
+
* - ASYNC: the caller gets `202 {executionId}` before the execution starts, and reads its state.
|
|
5
|
+
*/
|
|
6
|
+
export enum ExecutionMode {
|
|
7
|
+
SYNC = 'SYNC',
|
|
8
|
+
ASYNC = 'ASYNC',
|
|
9
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory of the isolate an execution runs in (ADR-0244). The CPU part of the cost grows with the
|
|
3
|
-
* profile: S x1, M x1.05, L x1.10, XL x1.20, XXL x1.35.
|
|
4
|
-
*/
|
|
5
|
-
export enum ExecutionProfile {
|
|
6
|
-
S = 'S',
|
|
7
|
-
M = 'M',
|
|
8
|
-
L = 'L',
|
|
9
|
-
XL = 'XL',
|
|
10
|
-
XXL = 'XXL',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/** Memory limit of each profile, in MB (1 GB = 1024 MB). */
|
|
14
|
-
export const EXECUTION_PROFILE_MEMORY_MB: Readonly<Record<ExecutionProfile, number>> = {
|
|
15
|
-
[ExecutionProfile.S]: 128,
|
|
16
|
-
[ExecutionProfile.M]: 256,
|
|
17
|
-
[ExecutionProfile.L]: 512,
|
|
18
|
-
[ExecutionProfile.XL]: 1024,
|
|
19
|
-
[ExecutionProfile.XXL]: 2048,
|
|
20
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Memory of the isolate an execution runs in (ADR-0244). The CPU part of the cost grows with the
|
|
3
|
+
* profile: S x1, M x1.05, L x1.10, XL x1.20, XXL x1.35.
|
|
4
|
+
*/
|
|
5
|
+
export enum ExecutionProfile {
|
|
6
|
+
S = 'S',
|
|
7
|
+
M = 'M',
|
|
8
|
+
L = 'L',
|
|
9
|
+
XL = 'XL',
|
|
10
|
+
XXL = 'XXL',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Memory limit of each profile, in MB (1 GB = 1024 MB). */
|
|
14
|
+
export const EXECUTION_PROFILE_MEMORY_MB: Readonly<Record<ExecutionProfile, number>> = {
|
|
15
|
+
[ExecutionProfile.S]: 128,
|
|
16
|
+
[ExecutionProfile.M]: 256,
|
|
17
|
+
[ExecutionProfile.L]: 512,
|
|
18
|
+
[ExecutionProfile.XL]: 1024,
|
|
19
|
+
[ExecutionProfile.XXL]: 2048,
|
|
20
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** Where the effective settings of an environment come from. */
|
|
2
|
-
export enum ExecutionSettingsSource {
|
|
3
|
-
/** The override of this environment. */
|
|
4
|
-
ENVIRONMENT = 'ENVIRONMENT',
|
|
5
|
-
/** The default of the function, for every environment without an override. */
|
|
6
|
-
DEFAULT = 'DEFAULT',
|
|
7
|
-
/** Nothing is set: the built-in defaults. */
|
|
8
|
-
BUILT_IN = 'BUILT_IN',
|
|
9
|
-
}
|
|
1
|
+
/** Where the effective settings of an environment come from. */
|
|
2
|
+
export enum ExecutionSettingsSource {
|
|
3
|
+
/** The override of this environment. */
|
|
4
|
+
ENVIRONMENT = 'ENVIRONMENT',
|
|
5
|
+
/** The default of the function, for every environment without an override. */
|
|
6
|
+
DEFAULT = 'DEFAULT',
|
|
7
|
+
/** Nothing is set: the built-in defaults. */
|
|
8
|
+
BUILT_IN = 'BUILT_IN',
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum HealthStatus {
|
|
2
|
-
UP = 'up',
|
|
3
|
-
DOWN = 'down',
|
|
4
|
-
}
|
|
1
|
+
export enum HealthStatus {
|
|
2
|
+
UP = 'up',
|
|
3
|
+
DOWN = 'down',
|
|
4
|
+
}
|
package/src/types/enum/index.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export * from './health-status.enum';
|
|
2
|
-
export * from './trigger-access-mode.enum';
|
|
3
|
-
export * from './access-grant-status.enum';
|
|
4
|
-
export * from './run-mode.enum';
|
|
5
|
-
export * from './run-status.enum';
|
|
6
|
-
export * from './trace-effect-type.enum';
|
|
7
|
-
export * from './reflex-error-code.enum';
|
|
8
|
-
export * from './access-kind.enum';
|
|
9
|
-
export * from './execution-profile.enum';
|
|
10
|
-
export * from './execution-mode.enum';
|
|
11
|
-
export * from './execution-settings-source.enum';
|
|
12
|
-
export * from './run-step-status.enum';
|
|
13
|
-
export * from './run-log-level.enum';
|
|
14
|
-
export * from './service-type.enum';
|
|
15
|
-
export * from './route-method.enum';
|
|
16
|
-
export * from './service-deployment-action.enum';
|
|
17
|
-
export * from './service-deployment-status.enum';
|
|
18
|
-
export * from './vault-value-source.enum';
|
|
19
|
-
export * from './vault-visibility.enum';
|
|
20
|
-
export * from './configuration-read-as.enum';
|
|
21
|
-
export * from './service-version-change-kind.enum';
|
|
22
|
-
export * from './discord-option-type.enum';
|
|
23
|
-
export * from './discord-
|
|
24
|
-
export * from './discord-
|
|
25
|
-
export * from './discord-
|
|
26
|
-
export * from './discord-
|
|
27
|
-
export * from './discord-
|
|
28
|
-
export * from './discord-
|
|
29
|
-
export * from './discord-
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './scheduled-run-
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './discord-event-
|
|
37
|
-
export * from './discord-event-
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './
|
|
42
|
-
export * from './
|
|
43
|
-
export * from './discord-
|
|
44
|
-
export * from './
|
|
45
|
-
export * from './
|
|
46
|
-
export * from './
|
|
47
|
-
export * from './
|
|
48
|
-
export * from './reflex-alert-
|
|
49
|
-
export * from './
|
|
50
|
-
export * from './
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './
|
|
53
|
-
export * from './
|
|
1
|
+
export * from './health-status.enum';
|
|
2
|
+
export * from './trigger-access-mode.enum';
|
|
3
|
+
export * from './access-grant-status.enum';
|
|
4
|
+
export * from './run-mode.enum';
|
|
5
|
+
export * from './run-status.enum';
|
|
6
|
+
export * from './trace-effect-type.enum';
|
|
7
|
+
export * from './reflex-error-code.enum';
|
|
8
|
+
export * from './access-kind.enum';
|
|
9
|
+
export * from './execution-profile.enum';
|
|
10
|
+
export * from './execution-mode.enum';
|
|
11
|
+
export * from './execution-settings-source.enum';
|
|
12
|
+
export * from './run-step-status.enum';
|
|
13
|
+
export * from './run-log-level.enum';
|
|
14
|
+
export * from './service-type.enum';
|
|
15
|
+
export * from './route-method.enum';
|
|
16
|
+
export * from './service-deployment-action.enum';
|
|
17
|
+
export * from './service-deployment-status.enum';
|
|
18
|
+
export * from './vault-value-source.enum';
|
|
19
|
+
export * from './vault-visibility.enum';
|
|
20
|
+
export * from './configuration-read-as.enum';
|
|
21
|
+
export * from './service-version-change-kind.enum';
|
|
22
|
+
export * from './discord-option-type.enum';
|
|
23
|
+
export * from './discord-component-kind.enum';
|
|
24
|
+
export * from './discord-sync-status.enum';
|
|
25
|
+
export * from './discord-token-state.enum';
|
|
26
|
+
export * from './discord-presence-status.enum';
|
|
27
|
+
export * from './discord-activity-type.enum';
|
|
28
|
+
export * from './discord-gateway-state.enum';
|
|
29
|
+
export * from './discord-gateway-failure-code.enum';
|
|
30
|
+
export * from './schedule-sync-status.enum';
|
|
31
|
+
export * from './scheduled-run-origin.enum';
|
|
32
|
+
export * from './scheduled-run-status.enum';
|
|
33
|
+
export * from './scheduled-run-failure-code.enum';
|
|
34
|
+
export * from './discord-event-type.enum';
|
|
35
|
+
export * from './discord-event-status.enum';
|
|
36
|
+
export * from './discord-event-drop-reason.enum';
|
|
37
|
+
export * from './discord-event-filter-name.enum';
|
|
38
|
+
export * from './bot-event-block-reason.enum';
|
|
39
|
+
export * from './insights-period.enum';
|
|
40
|
+
export * from './trigger-kind.enum';
|
|
41
|
+
export * from './discord-channel-type.enum';
|
|
42
|
+
export * from './discord-locale.enum';
|
|
43
|
+
export * from './discord-host-action.enum';
|
|
44
|
+
export * from './log-cap-mode.enum';
|
|
45
|
+
export * from './log-drop-cause.enum';
|
|
46
|
+
export * from './reflex-alert-scope.enum';
|
|
47
|
+
export * from './reflex-alert-metric.enum';
|
|
48
|
+
export * from './reflex-alert-notification-state.enum';
|
|
49
|
+
export * from './access-request-status.enum';
|
|
50
|
+
export * from './service-block-reason.enum';
|
|
51
|
+
export * from './completion-delivery-status.enum';
|
|
52
|
+
export * from './reflex-admin-hold-kind.enum';
|
|
53
|
+
export * from './reflex-abuse-rule.enum';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** The period a dashboard covers; the value is what the query string carries. */
|
|
2
|
-
export enum InsightsPeriod {
|
|
3
|
-
HOUR_1 = '1h',
|
|
4
|
-
HOURS_24 = '24h',
|
|
5
|
-
DAYS_7 = '7d',
|
|
6
|
-
DAYS_30 = '30d',
|
|
7
|
-
DAYS_90 = '90d',
|
|
8
|
-
}
|
|
1
|
+
/** The period a dashboard covers; the value is what the query string carries. */
|
|
2
|
+
export enum InsightsPeriod {
|
|
3
|
+
HOUR_1 = '1h',
|
|
4
|
+
HOURS_24 = '24h',
|
|
5
|
+
DAYS_7 = '7d',
|
|
6
|
+
DAYS_30 = '30d',
|
|
7
|
+
DAYS_90 = '90d',
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** How a function caps the log lines it keeps per run: follow its application, no cap, or its own cap. */
|
|
2
|
-
export enum LogCapMode {
|
|
3
|
-
INHERIT = 'INHERIT',
|
|
4
|
-
NONE = 'NONE',
|
|
5
|
-
LIMIT = 'LIMIT',
|
|
6
|
-
}
|
|
1
|
+
/** How a function caps the log lines it keeps per run: follow its application, no cap, or its own cap. */
|
|
2
|
+
export enum LogCapMode {
|
|
3
|
+
INHERIT = 'INHERIT',
|
|
4
|
+
NONE = 'NONE',
|
|
5
|
+
LIMIT = 'LIMIT',
|
|
6
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Why a run kept fewer log lines than it wrote: the cap in force for the run (the function's own, or its
|
|
3
|
-
* application's), or the technical bound every run has (10 000 lines, 4 MiB).
|
|
4
|
-
*/
|
|
5
|
-
export enum LogDropCause {
|
|
6
|
-
CAP = 'CAP',
|
|
7
|
-
TECHNICAL = 'TECHNICAL',
|
|
8
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Why a run kept fewer log lines than it wrote: the cap in force for the run (the function's own, or its
|
|
3
|
+
* application's), or the technical bound every run has (10 000 lines, 4 MiB).
|
|
4
|
+
*/
|
|
5
|
+
export enum LogDropCause {
|
|
6
|
+
CAP = 'CAP',
|
|
7
|
+
TECHNICAL = 'TECHNICAL',
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The rule of the abuse detector a Service crossed (`REFLEX_ABUSE_THRESHOLDS`). */
|
|
2
|
+
export enum ReflexAbuseRule {
|
|
3
|
+
/** At least `failureRate.minRuns` runs in the window and a failed share of `failureRate.minRatio` or more. */
|
|
4
|
+
FAILURE_RATE = 'FAILURE_RATE',
|
|
5
|
+
/** The cost of the window is `costSpike.factor` times the daily baseline or more, and at least `costSpike.minMillicredits`. */
|
|
6
|
+
COST_SPIKE = 'COST_SPIKE',
|
|
7
|
+
/** The network sent out in the window reaches `netOut.minBytes`. */
|
|
8
|
+
NET_OUT = 'NET_OUT',
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** How Abyss holds a Service in an environment (back-office gesture, outside the member's reach). */
|
|
2
|
+
export enum ReflexAdminHoldKind {
|
|
3
|
+
/** The Service is paused: it answers `503 SERVICE_PAUSED`; the member cannot resume it (`409 ADMIN_HOLD`). */
|
|
4
|
+
PAUSE = 'PAUSE',
|
|
5
|
+
/** The Service is suspended: it answers `503 SERVICE_SUSPENDED` and its writes are refused (`409 SERVICE_SUSPENDED`). */
|
|
6
|
+
SUSPEND = 'SUSPEND',
|
|
7
|
+
}
|
|
@@ -30,29 +30,6 @@ export enum ReflexErrorCode {
|
|
|
30
30
|
DISCORD_TEST_GUILD_REQUIRED = 'DISCORD_TEST_GUILD_REQUIRED',
|
|
31
31
|
/** 409: a command of that name already exists in the Service. */
|
|
32
32
|
DISCORD_COMMAND_CONFLICT = 'DISCORD_COMMAND_CONFLICT',
|
|
33
|
-
/**
|
|
34
|
-
* 422: the tree of a slash command is refused: a group under a group or under a subcommand, a child of a context menu
|
|
35
|
-
* or of a leaf, options on a command that has subcommands, or more than `subcommandsPerLevelMax` children.
|
|
36
|
-
*/
|
|
37
|
-
DISCORD_COMMAND_TREE_INVALID = 'DISCORD_COMMAND_TREE_INVALID',
|
|
38
|
-
/** 422: a field Discord only reads on the root (default permissions, direct messages, user install) is set on a child. */
|
|
39
|
-
DISCORD_COMMAND_ROOT_ONLY_FIELD = 'DISCORD_COMMAND_ROOT_ONLY_FIELD',
|
|
40
|
-
/** 422: a version is refused while a command with subcommands, or a group, has no child; `error.data.commandIds` names them. */
|
|
41
|
-
DISCORD_COMMAND_EMPTY_PARENT = 'DISCORD_COMMAND_EMPTY_PARENT',
|
|
42
|
-
/** 409: the Service already has the most commands of that type (100 slash commands, 15 menus of each type). */
|
|
43
|
-
DISCORD_COMMAND_LIMIT = 'DISCORD_COMMAND_LIMIT',
|
|
44
|
-
/** 422: the run cannot be replayed: it was not started by a Discord event trigger. */
|
|
45
|
-
REPLAY_NOT_EVENT_RUN = 'REPLAY_NOT_EVENT_RUN',
|
|
46
|
-
/** 410: the detail of the run is gone (retention of the plan): nothing to replay. */
|
|
47
|
-
RUN_DETAIL_GONE = 'RUN_DETAIL_GONE',
|
|
48
|
-
/** 422: the kept input of the run was cut to fit its budget: replaying it would mislead the function. */
|
|
49
|
-
REPLAY_INPUT_TRUNCATED = 'REPLAY_INPUT_TRUNCATED',
|
|
50
|
-
/** 409: the event trigger of the run is no longer in service in its environment. */
|
|
51
|
-
REPLAY_TRIGGER_GONE = 'REPLAY_TRIGGER_GONE',
|
|
52
|
-
/** 409: the events of the bot are stopped in that environment (credits spent or monthly cap reached). */
|
|
53
|
-
BOT_EVENTS_BLOCKED = 'BOT_EVENTS_BLOCKED',
|
|
54
|
-
/** 429: the bot already has `REFLEX_REPLAY_LIMITS.liveReplaysPerMinute` real replays in the last minute in that environment. */
|
|
55
|
-
REPLAY_RATE_LIMITED = 'REPLAY_RATE_LIMITED',
|
|
56
33
|
/** 409: the component prefix equals, starts or is started by another prefix of the Service. */
|
|
57
34
|
DISCORD_COMPONENT_PREFIX_CONFLICT = 'DISCORD_COMPONENT_PREFIX_CONFLICT',
|
|
58
35
|
/** 400: the field does not exist for this type of Service (CORS or rate limit on a Discord bot). */
|
|
@@ -109,4 +86,11 @@ export enum ReflexErrorCode {
|
|
|
109
86
|
* versions that exist and the executions go on. Delete versions, or raise the quota or the threshold.
|
|
110
87
|
*/
|
|
111
88
|
STORAGE_PUBLISH_REFUSED = 'STORAGE_PUBLISH_REFUSED',
|
|
89
|
+
/** 409: Abyss holds the Service (pause) in this environment; the member cannot resume it. */
|
|
90
|
+
ADMIN_HOLD = 'ADMIN_HOLD',
|
|
91
|
+
/**
|
|
92
|
+
* 503 (edge): Abyss suspended the Service in this environment; nothing ran, nothing is billed. 409 on an API call:
|
|
93
|
+
* a write on the Service or its functions, or a go-live or rollback, while an environment of the Service is suspended.
|
|
94
|
+
*/
|
|
95
|
+
SERVICE_SUSPENDED = 'SERVICE_SUSPENDED',
|
|
112
96
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** The HTTP method a route answers. `ANY` answers every method; a `FUNCTIONS` Service only has `ANY` routes. */
|
|
2
|
-
export enum RouteMethod {
|
|
3
|
-
GET = 'GET',
|
|
4
|
-
POST = 'POST',
|
|
5
|
-
PUT = 'PUT',
|
|
6
|
-
PATCH = 'PATCH',
|
|
7
|
-
DELETE = 'DELETE',
|
|
8
|
-
ANY = 'ANY',
|
|
9
|
-
}
|
|
1
|
+
/** The HTTP method a route answers. `ANY` answers every method; a `FUNCTIONS` Service only has `ANY` routes. */
|
|
2
|
+
export enum RouteMethod {
|
|
3
|
+
GET = 'GET',
|
|
4
|
+
POST = 'POST',
|
|
5
|
+
PUT = 'PUT',
|
|
6
|
+
PATCH = 'PATCH',
|
|
7
|
+
DELETE = 'DELETE',
|
|
8
|
+
ANY = 'ANY',
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** The level of a log line an execution wrote (LOG step, `abyss.log.*`, `console.*`). */
|
|
2
|
-
export enum RunLogLevel {
|
|
3
|
-
INFO = 'info',
|
|
4
|
-
WARN = 'warn',
|
|
5
|
-
ERROR = 'error',
|
|
6
|
-
}
|
|
1
|
+
/** The level of a log line an execution wrote (LOG step, `abyss.log.*`, `console.*`). */
|
|
2
|
+
export enum RunLogLevel {
|
|
3
|
+
INFO = 'info',
|
|
4
|
+
WARN = 'warn',
|
|
5
|
+
ERROR = 'error',
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How a run was made.
|
|
3
|
-
* - SIMULATION: nothing is executed, effects are recorded, the Store is a scratch copy thrown away.
|
|
4
|
-
* - DRY_RUN: Store reads are real, writes are recorded and not executed.
|
|
5
|
-
* - LIVE: an execution of the edge on a promoted version.
|
|
6
|
-
*/
|
|
7
|
-
export enum RunMode {
|
|
8
|
-
SIMULATION = 'SIMULATION',
|
|
9
|
-
DRY_RUN = 'DRY_RUN',
|
|
10
|
-
LIVE = 'LIVE',
|
|
11
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* How a run was made.
|
|
3
|
+
* - SIMULATION: nothing is executed, effects are recorded, the Store is a scratch copy thrown away.
|
|
4
|
+
* - DRY_RUN: Store reads are real, writes are recorded and not executed.
|
|
5
|
+
* - LIVE: an execution of the edge on a promoted version.
|
|
6
|
+
*/
|
|
7
|
+
export enum RunMode {
|
|
8
|
+
SIMULATION = 'SIMULATION',
|
|
9
|
+
DRY_RUN = 'DRY_RUN',
|
|
10
|
+
LIVE = 'LIVE',
|
|
11
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export enum RunStatus {
|
|
2
|
-
/** A live execution accepted and not finished yet (an async caller reads it by its id). */
|
|
3
|
-
RUNNING = 'RUNNING',
|
|
4
|
-
SUCCEEDED = 'SUCCEEDED',
|
|
5
|
-
FAILED = 'FAILED',
|
|
6
|
-
/**
|
|
7
|
-
* A live execution stopped by the end of a pod of the edge or of the runner: offered (cost 0), kept in
|
|
8
|
-
* the journal with its measures up to the interruption, left out of every statistic.
|
|
9
|
-
*/
|
|
10
|
-
INTERRUPTED = 'INTERRUPTED',
|
|
11
|
-
/**
|
|
12
|
-
* A live call refused before anything ran: the request did not match the contract of its route
|
|
13
|
-
* (`errorCode` REQUEST_INVALID). Costs 0, has no measures, and is left out of every statistic.
|
|
14
|
-
*/
|
|
15
|
-
REFUSED = 'REFUSED',
|
|
16
|
-
}
|
|
1
|
+
export enum RunStatus {
|
|
2
|
+
/** A live execution accepted and not finished yet (an async caller reads it by its id). */
|
|
3
|
+
RUNNING = 'RUNNING',
|
|
4
|
+
SUCCEEDED = 'SUCCEEDED',
|
|
5
|
+
FAILED = 'FAILED',
|
|
6
|
+
/**
|
|
7
|
+
* A live execution stopped by the end of a pod of the edge or of the runner: offered (cost 0), kept in
|
|
8
|
+
* the journal with its measures up to the interruption, left out of every statistic.
|
|
9
|
+
*/
|
|
10
|
+
INTERRUPTED = 'INTERRUPTED',
|
|
11
|
+
/**
|
|
12
|
+
* A live call refused before anything ran: the request did not match the contract of its route
|
|
13
|
+
* (`errorCode` REQUEST_INVALID). Costs 0, has no measures, and is left out of every statistic.
|
|
14
|
+
*/
|
|
15
|
+
REFUSED = 'REFUSED',
|
|
16
|
+
}
|