@abyss-project/reflex 6.4.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/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/index.d.ts +2 -0
- package/dist/api/index.js +2 -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/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 +9 -0
- package/dist/index.js +9 -0
- 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 +1 -0
- package/dist/types/enum/reflex-error-code.enum.js +1 -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/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/index.d.ts +2 -0
- package/dist/types/interface/api/requests/index.js +2 -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 +2 -1
- 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/index.d.ts +2 -0
- package/dist/types/interface/api/responses/index.js +2 -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/models/index.d.ts +3 -0
- package/dist/types/interface/models/index.js +3 -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-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/package.json +1 -1
- package/src/api/application-run-settings.api.test.ts +62 -62
- package/src/api/code-environment.api.ts +15 -0
- package/src/api/function-run.api.ts +53 -53
- package/src/api/function-settings.api.ts +96 -96
- package/src/api/function.api.test.ts +346 -346
- package/src/api/index.ts +2 -0
- package/src/api/service-route.api.ts +74 -74
- package/src/api/service-template.api.test.ts +41 -0
- package/src/api/service-template.api.ts +12 -0
- package/src/api/service.api.test.ts +220 -220
- package/src/api/storage-surplus.admin.api.test.ts +66 -66
- package/src/api/storage-surplus.admin.api.ts +45 -45
- package/src/code/index.ts +1 -0
- package/src/code/reflex-code-declarations.ts +646 -0
- package/src/index.ts +497 -480
- 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-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 -88
- 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 -13
- 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 -42
- package/src/types/interface/api/requests/function-settings.request.ts +50 -50
- 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 -25
- 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-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 -48
- package/src/types/interface/api/requests/storage-surplus.admin.request.ts +12 -12
- 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 -23
- package/src/types/interface/api/responses/function-settings.response.ts +57 -57
- 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 -25
- 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 -10
- 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 -29
- 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-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-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 -24
- package/src/types/interface/models/reflex-run-settings.model.ts +39 -39
- package/src/types/interface/models/reflex-run.model.ts +309 -309
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +48 -48
- 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 -47
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-storage-surplus.model.ts +23 -23
- package/src/types/interface/models/reflex-task.model.ts +97 -97
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,89 +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
|
-
/**
|
|
74
|
-
* 503: the run detail is in the customer's archive and the archive cannot be read now (Storage unreachable, key
|
|
75
|
-
* unavailable, object failing its check). The run itself is untouched; asking again later may succeed.
|
|
76
|
-
*/
|
|
77
|
-
ARCHIVE_UNAVAILABLE = 'ARCHIVE_UNAVAILABLE',
|
|
78
|
-
/**
|
|
79
|
-
* 404: the detail of the run was in the customer's archive and the archive was deleted (day 90 of the storage
|
|
80
|
-
* surplus). The run's row stays; its detail, steps and log lines are gone for good.
|
|
81
|
-
*/
|
|
82
|
-
ARCHIVE_DELETED = 'ARCHIVE_DELETED',
|
|
83
|
-
/**
|
|
84
|
-
* 409: the version cannot be published because the AbyssReflex storage of the organization is full: its online quota
|
|
85
|
-
* is reached, or the personal threshold of AbyssReflex is, with "Block deposits" on. Nothing was published; the
|
|
86
|
-
* versions that exist and the executions go on. Delete versions, or raise the quota or the threshold.
|
|
87
|
-
*/
|
|
88
|
-
STORAGE_PUBLISH_REFUSED = 'STORAGE_PUBLISH_REFUSED',
|
|
89
|
-
}
|
|
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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/** How one step of a live execution ended. */
|
|
2
|
-
export enum RunStepStatus {
|
|
3
|
-
SUCCEEDED = 'SUCCEEDED',
|
|
4
|
-
FAILED = 'FAILED',
|
|
5
|
-
/** The step was running when the pod of the edge or of the runner stopped. */
|
|
6
|
-
INTERRUPTED = 'INTERRUPTED',
|
|
7
|
-
}
|
|
1
|
+
/** How one step of a live execution ended. */
|
|
2
|
+
export enum RunStepStatus {
|
|
3
|
+
SUCCEEDED = 'SUCCEEDED',
|
|
4
|
+
FAILED = 'FAILED',
|
|
5
|
+
/** The step was running when the pod of the edge or of the runner stopped. */
|
|
6
|
+
INTERRUPTED = 'INTERRUPTED',
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** State of the synchronization of the cron tasks of the version in service with Flow, per environment. */
|
|
2
|
-
export enum ScheduleSyncStatus {
|
|
3
|
-
PENDING = 'PENDING',
|
|
4
|
-
SYNCED = 'SYNCED',
|
|
5
|
-
FAILED = 'FAILED',
|
|
6
|
-
}
|
|
1
|
+
/** State of the synchronization of the cron tasks of the version in service with Flow, per environment. */
|
|
2
|
+
export enum ScheduleSyncStatus {
|
|
3
|
+
PENDING = 'PENDING',
|
|
4
|
+
SYNCED = 'SYNCED',
|
|
5
|
+
FAILED = 'FAILED',
|
|
6
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `failureCode` of a FAILED scheduled run the execution plane writes itself. Any other `failureCode` is the
|
|
3
|
-
* error code of the live run that failed (`FUNCTION_FAILED`, `FUNCTION_TIMEOUT`, `INTERNAL_ERROR`...).
|
|
4
|
-
*/
|
|
5
|
-
export enum ScheduledRunFailureCode {
|
|
6
|
-
/** The task left the version in service before the run was due: nothing ran, nothing is billed. */
|
|
7
|
-
TASK_REMOVED = 'TASK_REMOVED',
|
|
8
|
-
/** Every attempt was interrupted by the end of its edge. */
|
|
9
|
-
ATTEMPTS_EXHAUSTED = 'ATTEMPTS_EXHAUSTED',
|
|
10
|
-
/** The credits of the organization are spent and the Service has no overage: the run stopped, nothing ran, nothing is billed. */
|
|
11
|
-
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
12
|
-
/** The monthly spend cap of the HTTP Service is reached in the environment: nothing ran, nothing is billed. */
|
|
13
|
-
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
14
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The `failureCode` of a FAILED scheduled run the execution plane writes itself. Any other `failureCode` is the
|
|
3
|
+
* error code of the live run that failed (`FUNCTION_FAILED`, `FUNCTION_TIMEOUT`, `INTERNAL_ERROR`...).
|
|
4
|
+
*/
|
|
5
|
+
export enum ScheduledRunFailureCode {
|
|
6
|
+
/** The task left the version in service before the run was due: nothing ran, nothing is billed. */
|
|
7
|
+
TASK_REMOVED = 'TASK_REMOVED',
|
|
8
|
+
/** Every attempt was interrupted by the end of its edge. */
|
|
9
|
+
ATTEMPTS_EXHAUSTED = 'ATTEMPTS_EXHAUSTED',
|
|
10
|
+
/** The credits of the organization are spent and the Service has no overage: the run stopped, nothing ran, nothing is billed. */
|
|
11
|
+
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
12
|
+
/** The monthly spend cap of the HTTP Service is reached in the environment: nothing ran, nothing is billed. */
|
|
13
|
+
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** What queued a scheduled run of a task: a tick of its cron (sent by Flow), or a delayed run the code scheduled. */
|
|
2
|
-
export enum ScheduledRunOrigin {
|
|
3
|
-
RECURRING = 'RECURRING',
|
|
4
|
-
DELAYED = 'DELAYED',
|
|
5
|
-
}
|
|
1
|
+
/** What queued a scheduled run of a task: a tick of its cron (sent by Flow), or a delayed run the code scheduled. */
|
|
2
|
+
export enum ScheduledRunOrigin {
|
|
3
|
+
RECURRING = 'RECURRING',
|
|
4
|
+
DELAYED = 'DELAYED',
|
|
5
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/** Where a scheduled run of a task stands (`scheduled_runs.status` of the execution plane). */
|
|
2
|
-
export enum ScheduledRunStatus {
|
|
3
|
-
/** Waiting for its due date, or due and not yet taken by an edge. */
|
|
4
|
-
PENDING = 'PENDING',
|
|
5
|
-
/** An edge runs it. */
|
|
6
|
-
CLAIMED = 'CLAIMED',
|
|
7
|
-
/** Ran to its end. */
|
|
8
|
-
DONE = 'DONE',
|
|
9
|
-
/** Did not run to its end: `failureCode` says why. */
|
|
10
|
-
FAILED = 'FAILED',
|
|
11
|
-
/** Cancelled before it ran (`abyss.schedule.cancel` or the screen). */
|
|
12
|
-
CANCELLED = 'CANCELLED',
|
|
13
|
-
/** Taken too late, past the tolerance (after a pause or an outage): ran nothing, cost nothing. */
|
|
14
|
-
EXPIRED = 'EXPIRED',
|
|
15
|
-
/** A tick of a cron that came while the previous one still ran: ran nothing, cost nothing. */
|
|
16
|
-
SKIPPED = 'SKIPPED',
|
|
17
|
-
}
|
|
1
|
+
/** Where a scheduled run of a task stands (`scheduled_runs.status` of the execution plane). */
|
|
2
|
+
export enum ScheduledRunStatus {
|
|
3
|
+
/** Waiting for its due date, or due and not yet taken by an edge. */
|
|
4
|
+
PENDING = 'PENDING',
|
|
5
|
+
/** An edge runs it. */
|
|
6
|
+
CLAIMED = 'CLAIMED',
|
|
7
|
+
/** Ran to its end. */
|
|
8
|
+
DONE = 'DONE',
|
|
9
|
+
/** Did not run to its end: `failureCode` says why. */
|
|
10
|
+
FAILED = 'FAILED',
|
|
11
|
+
/** Cancelled before it ran (`abyss.schedule.cancel` or the screen). */
|
|
12
|
+
CANCELLED = 'CANCELLED',
|
|
13
|
+
/** Taken too late, past the tolerance (after a pause or an outage): ran nothing, cost nothing. */
|
|
14
|
+
EXPIRED = 'EXPIRED',
|
|
15
|
+
/** A tick of a cron that came while the previous one still ran: ran nothing, cost nothing. */
|
|
16
|
+
SKIPPED = 'SKIPPED',
|
|
17
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/** Why a Service is stopped in an environment, by its limits. */
|
|
2
|
-
export enum ServiceBlockReason {
|
|
3
|
-
/**
|
|
4
|
-
* The credits of the organization are spent and the Service has no overage there: an HTTP Service answers
|
|
5
|
-
* `503 CREDITS_EXHAUSTED` and runs none of its tasks; a bot stops entirely.
|
|
6
|
-
*/
|
|
7
|
-
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
8
|
-
/**
|
|
9
|
-
* The monthly spend cap of the Service is reached there: an HTTP Service answers `503 BUDGET_REACHED` and runs
|
|
10
|
-
* none of its tasks; for a bot, only its events stop.
|
|
11
|
-
*/
|
|
12
|
-
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
13
|
-
}
|
|
1
|
+
/** Why a Service is stopped in an environment, by its limits. */
|
|
2
|
+
export enum ServiceBlockReason {
|
|
3
|
+
/**
|
|
4
|
+
* The credits of the organization are spent and the Service has no overage there: an HTTP Service answers
|
|
5
|
+
* `503 CREDITS_EXHAUSTED` and runs none of its tasks; a bot stops entirely.
|
|
6
|
+
*/
|
|
7
|
+
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
8
|
+
/**
|
|
9
|
+
* The monthly spend cap of the Service is reached there: an HTTP Service answers `503 BUDGET_REACHED` and runs
|
|
10
|
+
* none of its tasks; for a bot, only its events stop.
|
|
11
|
+
*/
|
|
12
|
+
BUDGET_REACHED = 'BUDGET_REACHED',
|
|
13
|
+
}
|