@abyss-project/reflex 6.3.0 → 6.5.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/README.md +15 -15
- package/dist/api/code-environment.api.d.ts +2 -0
- package/dist/api/code-environment.api.js +7 -0
- package/dist/api/code-environment.api.js.map +1 -0
- package/dist/api/function-run.api.d.ts +2 -1
- package/dist/api/function-run.api.js +3 -1
- package/dist/api/function-run.api.js.map +1 -1
- package/dist/api/function-settings.api.d.ts +3 -1
- package/dist/api/function-settings.api.js +7 -1
- package/dist/api/function-settings.api.js.map +1 -1
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-template.api.d.ts +2 -0
- package/dist/api/service-template.api.js +7 -0
- package/dist/api/service-template.api.js.map +1 -0
- package/dist/api/storage-surplus.admin.api.d.ts +5 -0
- package/dist/api/storage-surplus.admin.api.js +17 -0
- package/dist/api/storage-surplus.admin.api.js.map +1 -0
- package/dist/code/index.d.ts +1 -0
- package/dist/code/index.js +18 -0
- package/dist/code/index.js.map +1 -0
- package/dist/code/reflex-code-declarations.d.ts +1 -0
- package/dist/code/reflex-code-declarations.js +644 -0
- package/dist/code/reflex-code-declarations.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/index.d.ts +4 -0
- package/dist/types/enum/index.js +4 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-code-diagnostic-category.enum.d.ts +6 -0
- package/dist/types/enum/reflex-code-diagnostic-category.enum.js +11 -0
- package/dist/types/enum/reflex-code-diagnostic-category.enum.js.map +1 -0
- package/dist/types/enum/reflex-error-code.enum.d.ts +5 -1
- package/dist/types/enum/reflex-error-code.enum.js +4 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/service-template-follow-up-kind.enum.d.ts +10 -0
- package/dist/types/enum/service-template-follow-up-kind.enum.js +15 -0
- package/dist/types/enum/service-template-follow-up-kind.enum.js.map +1 -0
- package/dist/types/enum/service-template-id.enum.d.ts +10 -0
- package/dist/types/enum/service-template-id.enum.js +15 -0
- package/dist/types/enum/service-template-id.enum.js.map +1 -0
- package/dist/types/enum/service-template-parameter-kind.enum.d.ts +4 -0
- package/dist/types/enum/service-template-parameter-kind.enum.js +9 -0
- package/dist/types/enum/service-template-parameter-kind.enum.js.map +1 -0
- package/dist/types/enum/trigger-access-mode.enum.d.ts +2 -1
- package/dist/types/enum/trigger-access-mode.enum.js +1 -0
- package/dist/types/enum/trigger-access-mode.enum.js.map +1 -1
- package/dist/types/interface/api/requests/application-run-settings.request.d.ts +1 -0
- package/dist/types/interface/api/requests/code-environment.request.d.ts +3 -0
- package/dist/types/interface/api/requests/code-environment.request.js +3 -0
- package/dist/types/interface/api/requests/code-environment.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-run.request.d.ts +8 -0
- package/dist/types/interface/api/requests/function-settings.request.d.ts +12 -0
- package/dist/types/interface/api/requests/index.d.ts +3 -0
- package/dist/types/interface/api/requests/index.js +3 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-template.request.d.ts +3 -0
- package/dist/types/interface/api/requests/service-template.request.js +3 -0
- package/dist/types/interface/api/requests/service-template.request.js.map +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +3 -1
- package/dist/types/interface/api/requests/storage-surplus.admin.request.d.ts +8 -0
- package/dist/types/interface/api/requests/storage-surplus.admin.request.js +3 -0
- package/dist/types/interface/api/requests/storage-surplus.admin.request.js.map +1 -0
- package/dist/types/interface/api/responses/code-environment.response.d.ts +6 -0
- package/dist/types/interface/api/responses/code-environment.response.js +3 -0
- package/dist/types/interface/api/responses/code-environment.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-run.response.d.ts +4 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +5 -1
- package/dist/types/interface/api/responses/index.d.ts +3 -0
- package/dist/types/interface/api/responses/index.js +3 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-template.response.d.ts +6 -0
- package/dist/types/interface/api/responses/service-template.response.js +3 -0
- package/dist/types/interface/api/responses/service-template.response.js.map +1 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.d.ts +8 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.js +3 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +5 -0
- package/dist/types/interface/models/index.js +5 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-code-diagnostic.model.d.ts +10 -0
- package/dist/types/interface/models/reflex-code-diagnostic.model.js +5 -0
- package/dist/types/interface/models/reflex-code-diagnostic.model.js.map +1 -0
- package/dist/types/interface/models/reflex-code-environment.model.d.ts +9 -0
- package/dist/types/interface/models/reflex-code-environment.model.js +3 -0
- package/dist/types/interface/models/reflex-code-environment.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run-retention.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-run-retention.model.js +8 -0
- package/dist/types/interface/models/reflex-run-retention.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run-settings.model.d.ts +4 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +5 -0
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -2
- package/dist/types/interface/models/reflex-service-template.model.d.ts +33 -0
- package/dist/types/interface/models/reflex-service-template.model.js +3 -0
- package/dist/types/interface/models/reflex-service-template.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.d.ts +11 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.js +3 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.js.map +1 -0
- 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.test.ts +62 -51
- package/src/api/application-run-settings.api.ts +30 -30
- package/src/api/code-environment.api.ts +15 -0
- 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 -38
- package/src/api/function-settings.api.ts +96 -74
- 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.test.ts +346 -291
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +29 -26
- 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 +2 -2
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-template.api.test.ts +41 -0
- package/src/api/service-template.api.ts +12 -0
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.test.ts +220 -215
- package/src/api/service.api.ts +55 -55
- package/src/api/storage-surplus.admin.api.test.ts +66 -0
- package/src/api/storage-surplus.admin.api.ts +45 -0
- package/src/code/index.ts +1 -0
- package/src/code/reflex-code-declarations.ts +646 -0
- package/src/discord/discord-event-filter-cases.ts +261 -261
- package/src/discord/discord-event-filters.test.ts +91 -91
- package/src/discord/discord-event-filters.ts +95 -95
- package/src/discord/discord-event-intents.test.ts +112 -112
- package/src/discord/discord-event-intents.ts +55 -55
- package/src/discord/index.ts +3 -3
- package/src/index.test.ts +104 -104
- package/src/index.ts +497 -438
- 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 -7
- 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 +55 -51
- 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-alert-metric.enum.ts +5 -5
- package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -6
- package/src/types/enum/reflex-alert-scope.enum.ts +6 -6
- package/src/types/enum/reflex-code-diagnostic-category.enum.ts +11 -0
- package/src/types/enum/reflex-error-code.enum.ts +93 -72
- 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-template-follow-up-kind.enum.ts +19 -0
- package/src/types/enum/service-template-id.enum.ts +19 -0
- package/src/types/enum/service-template-parameter-kind.enum.ts +7 -0
- 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 +4 -0
- 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/application-run-settings.request.ts +13 -11
- package/src/types/interface/api/requests/code-environment.request.ts +3 -0
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-run.request.ts +42 -32
- package/src/types/interface/api/requests/function-settings.request.ts +50 -34
- 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 +27 -24
- 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 -155
- 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-template.request.ts +3 -0
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- package/src/types/interface/api/requests/service.request.ts +54 -46
- package/src/types/interface/api/requests/storage-surplus.admin.request.ts +12 -0
- 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/code-environment.response.ts +7 -0
- package/src/types/interface/api/responses/function-access.response.ts +45 -45
- package/src/types/interface/api/responses/function-run.response.ts +23 -18
- package/src/types/interface/api/responses/function-settings.response.ts +57 -50
- 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 +27 -24
- 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 +2 -2
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-template.response.ts +8 -0
- 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/api/responses/storage-surplus.admin.response.ts +10 -0
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +32 -27
- 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-alert-rule.model.ts +56 -56
- package/src/types/interface/models/reflex-bot-limits.model.ts +53 -53
- package/src/types/interface/models/reflex-code-diagnostic.model.ts +15 -0
- package/src/types/interface/models/reflex-code-environment.model.ts +17 -0
- 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 -208
- 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-retention.model.ts +24 -0
- package/src/types/interface/models/reflex-run-settings.model.ts +39 -28
- package/src/types/interface/models/reflex-run.model.ts +309 -299
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +48 -46
- package/src/types/interface/models/reflex-service-limits.model.ts +92 -92
- package/src/types/interface/models/reflex-service-template.model.ts +55 -0
- package/src/types/interface/models/reflex-service-version.model.ts +64 -64
- package/src/types/interface/models/reflex-service.model.ts +47 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-storage-surplus.model.ts +23 -0
- package/src/types/interface/models/reflex-task.model.ts +97 -97
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
|
@@ -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,51 +1,55 @@
|
|
|
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';
|
|
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 './service-template-id.enum';
|
|
53
|
+
export * from './service-template-follow-up-kind.enum';
|
|
54
|
+
export * from './service-template-parameter-kind.enum';
|
|
55
|
+
export * from './reflex-code-diagnostic-category.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
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** What an alert rule measures over its window: the error rate in percent, or the 95th percentile of the duration in ms. */
|
|
2
|
-
export enum ReflexAlertMetric {
|
|
3
|
-
ERROR_RATE = 'ERROR_RATE',
|
|
4
|
-
LATENCY_P95 = 'LATENCY_P95',
|
|
5
|
-
}
|
|
1
|
+
/** What an alert rule measures over its window: the error rate in percent, or the 95th percentile of the duration in ms. */
|
|
2
|
+
export enum ReflexAlertMetric {
|
|
3
|
+
ERROR_RATE = 'ERROR_RATE',
|
|
4
|
+
LATENCY_P95 = 'LATENCY_P95',
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** What became of the last incident report of an alert rule. */
|
|
2
|
-
export enum ReflexAlertNotificationState {
|
|
3
|
-
SENT = 'SENT',
|
|
4
|
-
MONITOR_NOT_ACTIVATED = 'MONITOR_NOT_ACTIVATED',
|
|
5
|
-
FAILED = 'FAILED',
|
|
6
|
-
}
|
|
1
|
+
/** What became of the last incident report of an alert rule. */
|
|
2
|
+
export enum ReflexAlertNotificationState {
|
|
3
|
+
SENT = 'SENT',
|
|
4
|
+
MONITOR_NOT_ACTIVATED = 'MONITOR_NOT_ACTIVATED',
|
|
5
|
+
FAILED = 'FAILED',
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** What an alert rule watches: a whole Service, one route of a Service, or one function. */
|
|
2
|
-
export enum ReflexAlertScope {
|
|
3
|
-
SERVICE = 'SERVICE',
|
|
4
|
-
ROUTE = 'ROUTE',
|
|
5
|
-
FUNCTION = 'FUNCTION',
|
|
6
|
-
}
|
|
1
|
+
/** What an alert rule watches: a whole Service, one route of a Service, or one function. */
|
|
2
|
+
export enum ReflexAlertScope {
|
|
3
|
+
SERVICE = 'SERVICE',
|
|
4
|
+
ROUTE = 'ROUTE',
|
|
5
|
+
FUNCTION = 'FUNCTION',
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** What a diagnostic of a CODE step is about; each one blocks the publication of the Service. */
|
|
2
|
+
export enum ReflexCodeDiagnosticCategory {
|
|
3
|
+
/** The source does not parse (JavaScript or TypeScript). Blocks the test of the draft too. */
|
|
4
|
+
SYNTAX = 'SYNTAX',
|
|
5
|
+
/** An `import` names a library Abyss does not provide. Blocks the test of the draft too. */
|
|
6
|
+
LIBRARY = 'LIBRARY',
|
|
7
|
+
/** The compiled code of the step is larger than `REFLEX_COMPILED_CODE_MAX_BYTES`. Blocks the test of the draft too. */
|
|
8
|
+
SIZE = 'SIZE',
|
|
9
|
+
/** A TypeScript step does not type-check. The draft can still be tested. */
|
|
10
|
+
TYPE = 'TYPE',
|
|
11
|
+
}
|
|
@@ -1,73 +1,94 @@
|
|
|
1
|
-
/** `error.code` of the refusals a client acts on. */
|
|
2
|
-
export enum ReflexErrorCode {
|
|
3
|
-
/** 400: the definition does not match the format; `error.details` holds the path of each fault. */
|
|
4
|
-
INVALID_DEFINITION = 'INVALID_DEFINITION',
|
|
5
|
-
/** 409: an access granted to the function is suspended; revoke it and grant it again. */
|
|
6
|
-
GRANT_SUSPENDED = 'GRANT_SUSPENDED',
|
|
7
|
-
/** 409: the function has no frozen version of its own draft yet, or none to go back to. */
|
|
8
|
-
NO_VERSION = 'NO_VERSION',
|
|
9
|
-
/** 409: the access to grant is not declared by the draft of the function. */
|
|
10
|
-
ACCESS_NOT_DECLARED = 'ACCESS_NOT_DECLARED',
|
|
11
|
-
/** 404: the environment is not one of the application's environments (abyss-main). */
|
|
12
|
-
ENVIRONMENT_NOT_FOUND = 'ENVIRONMENT_NOT_FOUND',
|
|
13
|
-
/** 409: a name, a path or an access already exists. */
|
|
14
|
-
ALREADY_EXISTS = 'ALREADY_EXISTS',
|
|
15
|
-
/** 403: the function is promoted in a production environment and the member lacks REFLEX_PUBLISH_PRODUCTION. */
|
|
16
|
-
PUBLISH_PRODUCTION_REQUIRED = 'PUBLISH_PRODUCTION_REQUIRED',
|
|
17
|
-
/** 503 (edge): the Service is paused in this environment; nothing ran, nothing is billed. */
|
|
18
|
-
SERVICE_PAUSED = 'SERVICE_PAUSED',
|
|
19
|
-
/** 429: the caller went past the limit; `Retry-After` and `RateLimit-*` say when to come back. */
|
|
20
|
-
RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED',
|
|
21
|
-
/** 409: the route would hide another one of the Service (same method, paths equal but for their parameters). */
|
|
22
|
-
ROUTE_CONFLICT = 'ROUTE_CONFLICT',
|
|
23
|
-
/** 409: the Service has not changed since its last version. */
|
|
24
|
-
VERSION_UNCHANGED = 'VERSION_UNCHANGED',
|
|
25
|
-
/** 409: the Discord bot token has no value in this environment's Vault entry. */
|
|
26
|
-
DISCORD_TOKEN_MISSING = 'DISCORD_TOKEN_MISSING',
|
|
27
|
-
/** 409: Discord refused the bot token (401). */
|
|
28
|
-
DISCORD_TOKEN_REJECTED = 'DISCORD_TOKEN_REJECTED',
|
|
29
|
-
/** 409: a non-production environment needs a test server before a Discord bot goes live there. */
|
|
30
|
-
DISCORD_TEST_GUILD_REQUIRED = 'DISCORD_TEST_GUILD_REQUIRED',
|
|
31
|
-
/** 409: a command of that name already exists in the Service. */
|
|
32
|
-
DISCORD_COMMAND_CONFLICT = 'DISCORD_COMMAND_CONFLICT',
|
|
33
|
-
/** 409: the component prefix equals, starts or is started by another prefix of the Service. */
|
|
34
|
-
DISCORD_COMPONENT_PREFIX_CONFLICT = 'DISCORD_COMPONENT_PREFIX_CONFLICT',
|
|
35
|
-
/** 400: the field does not exist for this type of Service (CORS or rate limit on a Discord bot). */
|
|
36
|
-
SERVICE_TYPE_FIELD_REFUSED = 'SERVICE_TYPE_FIELD_REFUSED',
|
|
1
|
+
/** `error.code` of the refusals a client acts on. */
|
|
2
|
+
export enum ReflexErrorCode {
|
|
3
|
+
/** 400: the definition does not match the format; `error.details` holds the path of each fault. */
|
|
4
|
+
INVALID_DEFINITION = 'INVALID_DEFINITION',
|
|
5
|
+
/** 409: an access granted to the function is suspended; revoke it and grant it again. */
|
|
6
|
+
GRANT_SUSPENDED = 'GRANT_SUSPENDED',
|
|
7
|
+
/** 409: the function has no frozen version of its own draft yet, or none to go back to. */
|
|
8
|
+
NO_VERSION = 'NO_VERSION',
|
|
9
|
+
/** 409: the access to grant is not declared by the draft of the function. */
|
|
10
|
+
ACCESS_NOT_DECLARED = 'ACCESS_NOT_DECLARED',
|
|
11
|
+
/** 404: the environment is not one of the application's environments (abyss-main). */
|
|
12
|
+
ENVIRONMENT_NOT_FOUND = 'ENVIRONMENT_NOT_FOUND',
|
|
13
|
+
/** 409: a name, a path or an access already exists. */
|
|
14
|
+
ALREADY_EXISTS = 'ALREADY_EXISTS',
|
|
15
|
+
/** 403: the function is promoted in a production environment and the member lacks REFLEX_PUBLISH_PRODUCTION. */
|
|
16
|
+
PUBLISH_PRODUCTION_REQUIRED = 'PUBLISH_PRODUCTION_REQUIRED',
|
|
17
|
+
/** 503 (edge): the Service is paused in this environment; nothing ran, nothing is billed. */
|
|
18
|
+
SERVICE_PAUSED = 'SERVICE_PAUSED',
|
|
19
|
+
/** 429: the caller went past the limit; `Retry-After` and `RateLimit-*` say when to come back. */
|
|
20
|
+
RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED',
|
|
21
|
+
/** 409: the route would hide another one of the Service (same method, paths equal but for their parameters). */
|
|
22
|
+
ROUTE_CONFLICT = 'ROUTE_CONFLICT',
|
|
23
|
+
/** 409: the Service has not changed since its last version. */
|
|
24
|
+
VERSION_UNCHANGED = 'VERSION_UNCHANGED',
|
|
25
|
+
/** 409: the Discord bot token has no value in this environment's Vault entry. */
|
|
26
|
+
DISCORD_TOKEN_MISSING = 'DISCORD_TOKEN_MISSING',
|
|
27
|
+
/** 409: Discord refused the bot token (401). */
|
|
28
|
+
DISCORD_TOKEN_REJECTED = 'DISCORD_TOKEN_REJECTED',
|
|
29
|
+
/** 409: a non-production environment needs a test server before a Discord bot goes live there. */
|
|
30
|
+
DISCORD_TEST_GUILD_REQUIRED = 'DISCORD_TEST_GUILD_REQUIRED',
|
|
31
|
+
/** 409: a command of that name already exists in the Service. */
|
|
32
|
+
DISCORD_COMMAND_CONFLICT = 'DISCORD_COMMAND_CONFLICT',
|
|
33
|
+
/** 409: the component prefix equals, starts or is started by another prefix of the Service. */
|
|
34
|
+
DISCORD_COMPONENT_PREFIX_CONFLICT = 'DISCORD_COMPONENT_PREFIX_CONFLICT',
|
|
35
|
+
/** 400: the field does not exist for this type of Service (CORS or rate limit on a Discord bot). */
|
|
36
|
+
SERVICE_TYPE_FIELD_REFUSED = 'SERVICE_TYPE_FIELD_REFUSED',
|
|
37
|
+
/**
|
|
38
|
+
* 400: a route path cannot start with `_`: the edge keeps those paths for its own addresses (`_abyss` for the ticks
|
|
39
|
+
* of the cron tasks, `_executions` for the state of an async execution).
|
|
40
|
+
*/
|
|
41
|
+
ROUTE_SEGMENT_RESERVED = 'ROUTE_SEGMENT_RESERVED',
|
|
42
|
+
/** 409: the bot bills credit overage but the organization does not allow overage of the credits metric. */
|
|
43
|
+
CREDIT_OVERAGE_NOT_ALLOWED = 'CREDIT_OVERAGE_NOT_ALLOWED',
|
|
44
|
+
/** 409: the lots asked for do not fit in the event rate reserve of the organization (the sum of its allocations would go past it). */
|
|
45
|
+
BOT_EVENT_RESERVE_EXCEEDED = 'BOT_EVENT_RESERVE_EXCEEDED',
|
|
46
|
+
/**
|
|
47
|
+
* 422 (edge): the body or the query of the request does not match the contract of the route; `error.errors` holds
|
|
48
|
+
* at most `REFLEX_CONTRACT_LIMITS.maxErrors` faults (`IReflexContractError`). Nothing ran, nothing is billed.
|
|
49
|
+
*/
|
|
50
|
+
REQUEST_INVALID = 'REQUEST_INVALID',
|
|
51
|
+
/**
|
|
52
|
+
* 503 (edge): the credits of the organization are spent and the Service has no overage in this environment;
|
|
53
|
+
* `Retry-After` points at the first day of the next month (UTC). Nothing ran, nothing is billed.
|
|
54
|
+
*/
|
|
55
|
+
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
56
|
+
/**
|
|
57
|
+
* 503 (edge): the monthly spend cap of the Service in this environment is reached; `Retry-After` points at the
|
|
58
|
+
* first day of the next month (UTC), and raising the cap lifts the stop at the next computation. Nothing ran,
|
|
59
|
+
* nothing is billed.
|
|
60
|
+
*/
|
|
61
|
+
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
62
|
+
/** 400: the contract of a route is not a valid one; `error.details` holds each fault (`IReflexContractError`). */
|
|
63
|
+
CONTRACT_INVALID = 'CONTRACT_INVALID',
|
|
64
|
+
/** 409: the Service already has `REFLEX_CONSUMER_LIMITS.perService` consumers. */
|
|
65
|
+
CONSUMER_LIMIT_REACHED = 'CONSUMER_LIMIT_REACHED',
|
|
66
|
+
/** 409: the consumer already has `REFLEX_CONSUMER_LIMITS.activeKeysPerConsumer` keys that are not revoked. */
|
|
67
|
+
CONSUMER_KEY_LIMIT_REACHED = 'CONSUMER_KEY_LIMIT_REACHED',
|
|
68
|
+
/**
|
|
69
|
+
* 400: the completion webhook URL is refused: not `https`, a private or internal address, or a name that resolves
|
|
70
|
+
* to one or does not resolve.
|
|
71
|
+
*/
|
|
72
|
+
COMPLETION_WEBHOOK_URL_REFUSED = 'COMPLETION_WEBHOOK_URL_REFUSED',
|
|
73
|
+
/**
|
|
74
|
+
* 422: a CODE step of a function has a fault that blocks the publication of the Service (syntax, library, size or
|
|
75
|
+
* types); `error.details` holds the `IReflexCodeDiagnostic` of each. Nothing was published.
|
|
76
|
+
*/
|
|
77
|
+
CODE_CHECK_FAILED = 'CODE_CHECK_FAILED',
|
|
37
78
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
*/
|
|
55
|
-
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
56
|
-
/**
|
|
57
|
-
* 503 (edge): the monthly spend cap of the Service in this environment is reached; `Retry-After` points at the
|
|
58
|
-
* first day of the next month (UTC), and raising the cap lifts the stop at the next computation. Nothing ran,
|
|
59
|
-
* nothing is billed.
|
|
60
|
-
*/
|
|
61
|
-
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
62
|
-
/** 400: the contract of a route is not a valid one; `error.details` holds each fault (`IReflexContractError`). */
|
|
63
|
-
CONTRACT_INVALID = 'CONTRACT_INVALID',
|
|
64
|
-
/** 409: the Service already has `REFLEX_CONSUMER_LIMITS.perService` consumers. */
|
|
65
|
-
CONSUMER_LIMIT_REACHED = 'CONSUMER_LIMIT_REACHED',
|
|
66
|
-
/** 409: the consumer already has `REFLEX_CONSUMER_LIMITS.activeKeysPerConsumer` keys that are not revoked. */
|
|
67
|
-
CONSUMER_KEY_LIMIT_REACHED = 'CONSUMER_KEY_LIMIT_REACHED',
|
|
68
|
-
/**
|
|
69
|
-
* 400: the completion webhook URL is refused: not `https`, a private or internal address, or a name that resolves
|
|
70
|
-
* to one or does not resolve.
|
|
71
|
-
*/
|
|
72
|
-
COMPLETION_WEBHOOK_URL_REFUSED = 'COMPLETION_WEBHOOK_URL_REFUSED',
|
|
73
|
-
}
|
|
79
|
+
* 503: the run detail is in the customer's archive and the archive cannot be read now (Storage unreachable, key
|
|
80
|
+
* unavailable, object failing its check). The run itself is untouched; asking again later may succeed.
|
|
81
|
+
*/
|
|
82
|
+
ARCHIVE_UNAVAILABLE = 'ARCHIVE_UNAVAILABLE',
|
|
83
|
+
/**
|
|
84
|
+
* 404: the detail of the run was in the customer's archive and the archive was deleted (day 90 of the storage
|
|
85
|
+
* surplus). The run's row stays; its detail, steps and log lines are gone for good.
|
|
86
|
+
*/
|
|
87
|
+
ARCHIVE_DELETED = 'ARCHIVE_DELETED',
|
|
88
|
+
/**
|
|
89
|
+
* 409: the version cannot be published because the AbyssReflex storage of the organization is full: its online quota
|
|
90
|
+
* is reached, or the personal threshold of AbyssReflex is, with "Block deposits" on. Nothing was published; the
|
|
91
|
+
* versions that exist and the executions go on. Delete versions, or raise the quota or the threshold.
|
|
92
|
+
*/
|
|
93
|
+
STORAGE_PUBLISH_REFUSED = 'STORAGE_PUBLISH_REFUSED',
|
|
94
|
+
}
|