@abyss-project/reflex 5.11.0 → 6.0.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/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-completion-webhook.api.d.ts +3 -0
- package/dist/api/service-completion-webhook.api.js +10 -0
- package/dist/api/service-completion-webhook.api.js.map +1 -0
- package/dist/api/service-consumer.api.d.ts +7 -0
- package/dist/api/service-consumer.api.js +19 -0
- package/dist/api/service-consumer.api.js.map +1 -0
- package/dist/api/service-discord.api.d.ts +1 -2
- package/dist/api/service-discord.api.js +1 -3
- package/dist/api/service-discord.api.js.map +1 -1
- package/dist/api/service-limits.api.d.ts +3 -0
- package/dist/api/service-limits.api.js +10 -0
- package/dist/api/service-limits.api.js.map +1 -0
- package/dist/api/service-openapi.api.d.ts +2 -0
- package/dist/api/service-openapi.api.js +7 -0
- package/dist/api/service-openapi.api.js.map +1 -0
- package/dist/api/service-route.api.js.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/completion-delivery-status.enum.d.ts +5 -0
- package/dist/types/enum/completion-delivery-status.enum.js +10 -0
- package/dist/types/enum/completion-delivery-status.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +2 -0
- package/dist/types/enum/index.js +2 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +8 -1
- package/dist/types/enum/reflex-error-code.enum.js +7 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/run-status.enum.d.ts +2 -1
- package/dist/types/enum/run-status.enum.js +1 -0
- package/dist/types/enum/run-status.enum.js.map +1 -1
- package/dist/types/enum/scheduled-run-failure-code.enum.d.ts +2 -1
- package/dist/types/enum/scheduled-run-failure-code.enum.js +1 -0
- package/dist/types/enum/scheduled-run-failure-code.enum.js.map +1 -1
- package/dist/types/enum/service-block-reason.enum.d.ts +4 -0
- package/dist/types/enum/service-block-reason.enum.js +9 -0
- package/dist/types/enum/service-block-reason.enum.js.map +1 -0
- package/dist/types/interface/api/requests/function-run.request.d.ts +1 -0
- package/dist/types/interface/api/requests/function-test.request.d.ts +1 -0
- package/dist/types/interface/api/requests/index.d.ts +4 -0
- package/dist/types/interface/api/requests/index.js +4 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-completion-webhook.request.d.ts +9 -0
- package/dist/types/interface/api/requests/service-completion-webhook.request.js +3 -0
- package/dist/types/interface/api/requests/service-completion-webhook.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-consumer.request.d.ts +41 -0
- package/dist/types/interface/api/requests/service-consumer.request.js +3 -0
- package/dist/types/interface/api/requests/service-consumer.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-discord.request.d.ts +1 -14
- package/dist/types/interface/api/requests/service-limits.request.d.ts +18 -0
- package/dist/types/interface/api/requests/service-limits.request.js +3 -0
- package/dist/types/interface/api/requests/service-limits.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-openapi.request.d.ts +8 -0
- package/dist/types/interface/api/requests/service-openapi.request.js +3 -0
- package/dist/types/interface/api/requests/service-openapi.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-route.request.d.ts +3 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +3 -1
- package/dist/types/interface/api/responses/function-test.response.d.ts +3 -1
- package/dist/types/interface/api/responses/index.d.ts +4 -0
- package/dist/types/interface/api/responses/index.js +4 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-completion-webhook.response.d.ts +8 -0
- package/dist/types/interface/api/responses/service-completion-webhook.response.js +3 -0
- package/dist/types/interface/api/responses/service-completion-webhook.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-consumer.response.d.ts +25 -0
- package/dist/types/interface/api/responses/service-consumer.response.js +3 -0
- package/dist/types/interface/api/responses/service-consumer.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-discord.response.d.ts +1 -9
- package/dist/types/interface/api/responses/service-limits.response.d.ts +10 -0
- package/dist/types/interface/api/responses/service-limits.response.js +3 -0
- package/dist/types/interface/api/responses/service-limits.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-openapi.response.d.ts +5 -0
- package/dist/types/interface/api/responses/service-openapi.response.js +3 -0
- package/dist/types/interface/api/responses/service-openapi.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-version.response.d.ts +1 -0
- package/dist/types/interface/models/index.d.ts +4 -0
- package/dist/types/interface/models/index.js +4 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-bot-limits.model.d.ts +0 -25
- package/dist/types/interface/models/reflex-bot-limits.model.js +8 -7
- package/dist/types/interface/models/reflex-bot-limits.model.js.map +1 -1
- package/dist/types/interface/models/reflex-completion-webhook.model.d.ts +48 -0
- package/dist/types/interface/models/reflex-completion-webhook.model.js +12 -0
- package/dist/types/interface/models/reflex-completion-webhook.model.js.map +1 -0
- package/dist/types/interface/models/reflex-consumer.model.d.ts +30 -0
- package/dist/types/interface/models/reflex-consumer.model.js +11 -0
- package/dist/types/interface/models/reflex-consumer.model.js.map +1 -0
- package/dist/types/interface/models/reflex-execution-settings.model.d.ts +1 -0
- package/dist/types/interface/models/reflex-execution-settings.model.js +1 -0
- package/dist/types/interface/models/reflex-execution-settings.model.js.map +1 -1
- package/dist/types/interface/models/reflex-route-contract.model.d.ts +22 -0
- package/dist/types/interface/models/reflex-route-contract.model.js +13 -0
- package/dist/types/interface/models/reflex-route-contract.model.js.map +1 -0
- package/dist/types/interface/models/reflex-route.model.d.ts +2 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +21 -0
- package/dist/types/interface/models/reflex-run.model.js.map +1 -1
- package/dist/types/interface/models/reflex-service-limits.model.d.ts +41 -0
- package/dist/types/interface/models/reflex-service-limits.model.js +13 -0
- package/dist/types/interface/models/reflex-service-limits.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service-version.model.d.ts +2 -0
- package/package.json +15 -10
- package/src/api/function-access.api.ts +87 -87
- package/src/api/function-template.api.test.ts +72 -72
- package/src/api/function-template.api.ts +52 -52
- package/src/api/function-version.api.ts +66 -66
- package/src/api/function.api.test.ts +2 -1
- package/src/api/index.ts +4 -0
- package/src/api/service-completion-webhook.api.test.ts +87 -0
- package/src/api/service-completion-webhook.api.ts +37 -0
- package/src/api/service-consumer.api.test.ts +104 -0
- package/src/api/service-consumer.api.ts +88 -0
- package/src/api/service-discord.api.test.ts +178 -197
- package/src/api/service-discord.api.ts +222 -241
- package/src/api/service-limits.api.test.ts +100 -0
- package/src/api/service-limits.api.ts +37 -0
- package/src/api/service-openapi.api.test.ts +52 -0
- package/src/api/service-openapi.api.ts +21 -0
- package/src/api/service-route.api.ts +74 -72
- package/src/index.test.ts +104 -87
- package/src/index.ts +46 -3
- package/src/types/enum/access-request-status.enum.ts +11 -11
- package/src/types/enum/completion-delivery-status.enum.ts +9 -0
- package/src/types/enum/index.ts +2 -0
- package/src/types/enum/reflex-error-code.enum.ts +73 -43
- package/src/types/enum/run-status.enum.ts +16 -11
- package/src/types/enum/scheduled-run-failure-code.enum.ts +14 -12
- package/src/types/enum/service-block-reason.enum.ts +13 -0
- 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 +11 -11
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-run.request.ts +2 -0
- package/src/types/interface/api/requests/function-settings.request.ts +34 -34
- package/src/types/interface/api/requests/function-template.request.ts +29 -29
- package/src/types/interface/api/requests/function-test.request.ts +5 -0
- 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 +4 -0
- package/src/types/interface/api/requests/route-stats.request.ts +22 -22
- package/src/types/interface/api/requests/service-completion-webhook.request.ts +11 -0
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
- package/src/types/interface/api/requests/service-consumer.request.ts +51 -0
- 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 +1 -25
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-limits.request.ts +28 -0
- package/src/types/interface/api/requests/service-openapi.request.ts +10 -0
- package/src/types/interface/api/requests/service-route.request.ts +8 -0
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- package/src/types/interface/api/requests/service.request.ts +46 -46
- package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
- package/src/types/interface/api/responses/application-insights.response.ts +11 -11
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
- package/src/types/interface/api/responses/function-access.response.ts +45 -45
- package/src/types/interface/api/responses/function-run.response.ts +18 -18
- package/src/types/interface/api/responses/function-settings.response.ts +8 -0
- package/src/types/interface/api/responses/function-template.response.ts +21 -21
- package/src/types/interface/api/responses/function-test.response.ts +8 -1
- 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 +4 -0
- package/src/types/interface/api/responses/route-stats.response.ts +15 -15
- package/src/types/interface/api/responses/service-completion-webhook.response.ts +13 -0
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
- package/src/types/interface/api/responses/service-consumer.response.ts +33 -0
- 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 +4 -16
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-limits.response.ts +13 -0
- package/src/types/interface/api/responses/service-openapi.response.ts +7 -0
- package/src/types/interface/api/responses/service-route.response.ts +3 -3
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +112 -106
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/models/index.ts +4 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-access-request.model.ts +15 -15
- package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
- package/src/types/interface/models/reflex-bot-limits.model.ts +12 -51
- package/src/types/interface/models/reflex-completion-webhook.model.ts +85 -0
- package/src/types/interface/models/reflex-consumer.model.ts +50 -0
- 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 +196 -196
- package/src/types/interface/models/reflex-execution-settings.model.ts +7 -0
- 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 +20 -20
- package/src/types/interface/models/reflex-route-contract.model.ts +46 -0
- package/src/types/interface/models/reflex-route.model.ts +5 -1
- package/src/types/interface/models/reflex-run-settings.model.ts +28 -28
- package/src/types/interface/models/reflex-run.model.ts +47 -3
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
- package/src/types/interface/models/reflex-service-limits.model.ts +73 -0
- package/src/types/interface/models/reflex-service-version.model.ts +3 -0
- package/src/types/interface/models/reflex-service.model.ts +45 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-task.model.ts +97 -97
|
@@ -1,12 +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
|
|
11
|
-
CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
|
|
12
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +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,53 +1,53 @@
|
|
|
1
|
-
import type { ReflexAlertMetric, ReflexAlertScope } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IListAlertRuleParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IListAlertRuleQuery {
|
|
7
|
-
/** Only the rules of this environment of the application (abyss-main's id). */
|
|
8
|
-
environmentId?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ICreateAlertRuleParams {
|
|
12
|
-
applicationId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ICreateAlertRuleBody {
|
|
15
|
-
/** The environment the rule watches (abyss-main's id). */
|
|
16
|
-
environmentId: string;
|
|
17
|
-
scope: ReflexAlertScope;
|
|
18
|
-
/** Required for the scopes SERVICE and ROUTE; forbidden for FUNCTION. */
|
|
19
|
-
serviceId?: string;
|
|
20
|
-
/** Required for the scope ROUTE; forbidden otherwise. */
|
|
21
|
-
routeId?: string;
|
|
22
|
-
/** Required for the scope FUNCTION; forbidden otherwise. */
|
|
23
|
-
functionId?: string;
|
|
24
|
-
metric: ReflexAlertMetric;
|
|
25
|
-
/** Within the bounds of the metric (`REFLEX_ALERT_RULE_LIMITS.threshold`). */
|
|
26
|
-
threshold: number;
|
|
27
|
-
/** One of `REFLEX_ALERT_RULE_LIMITS.windowMinutes`. */
|
|
28
|
-
windowMinutes: number;
|
|
29
|
-
/** `REFLEX_ALERT_RULE_LIMITS.minRuns.default` when omitted. */
|
|
30
|
-
minRuns?: number;
|
|
31
|
-
/** True when omitted. */
|
|
32
|
-
enabled?: boolean;
|
|
33
|
-
/** 1 to 64 characters. */
|
|
34
|
-
name: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface IUpdateAlertRuleParams {
|
|
38
|
-
applicationId: string;
|
|
39
|
-
ruleId: string;
|
|
40
|
-
}
|
|
41
|
-
/** The environment, the scope, the target and the metric of a rule never change. Every value is required. */
|
|
42
|
-
export interface IUpdateAlertRuleBody {
|
|
43
|
-
threshold: number;
|
|
44
|
-
windowMinutes: number;
|
|
45
|
-
minRuns: number;
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
name: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface IDeleteAlertRuleParams {
|
|
51
|
-
applicationId: string;
|
|
52
|
-
ruleId: string;
|
|
53
|
-
}
|
|
1
|
+
import type { ReflexAlertMetric, ReflexAlertScope } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IListAlertRuleParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IListAlertRuleQuery {
|
|
7
|
+
/** Only the rules of this environment of the application (abyss-main's id). */
|
|
8
|
+
environmentId?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ICreateAlertRuleParams {
|
|
12
|
+
applicationId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ICreateAlertRuleBody {
|
|
15
|
+
/** The environment the rule watches (abyss-main's id). */
|
|
16
|
+
environmentId: string;
|
|
17
|
+
scope: ReflexAlertScope;
|
|
18
|
+
/** Required for the scopes SERVICE and ROUTE; forbidden for FUNCTION. */
|
|
19
|
+
serviceId?: string;
|
|
20
|
+
/** Required for the scope ROUTE; forbidden otherwise. */
|
|
21
|
+
routeId?: string;
|
|
22
|
+
/** Required for the scope FUNCTION; forbidden otherwise. */
|
|
23
|
+
functionId?: string;
|
|
24
|
+
metric: ReflexAlertMetric;
|
|
25
|
+
/** Within the bounds of the metric (`REFLEX_ALERT_RULE_LIMITS.threshold`). */
|
|
26
|
+
threshold: number;
|
|
27
|
+
/** One of `REFLEX_ALERT_RULE_LIMITS.windowMinutes`. */
|
|
28
|
+
windowMinutes: number;
|
|
29
|
+
/** `REFLEX_ALERT_RULE_LIMITS.minRuns.default` when omitted. */
|
|
30
|
+
minRuns?: number;
|
|
31
|
+
/** True when omitted. */
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
/** 1 to 64 characters. */
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface IUpdateAlertRuleParams {
|
|
38
|
+
applicationId: string;
|
|
39
|
+
ruleId: string;
|
|
40
|
+
}
|
|
41
|
+
/** The environment, the scope, the target and the metric of a rule never change. Every value is required. */
|
|
42
|
+
export interface IUpdateAlertRuleBody {
|
|
43
|
+
threshold: number;
|
|
44
|
+
windowMinutes: number;
|
|
45
|
+
minRuns: number;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
name: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface IDeleteAlertRuleParams {
|
|
51
|
+
applicationId: string;
|
|
52
|
+
ruleId: string;
|
|
53
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IGetApplicationInsightsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IGetApplicationInsightsQuery {
|
|
7
|
-
/** The environment of the application (abyss-main's id). */
|
|
8
|
-
environmentId: string;
|
|
9
|
-
period: InsightsPeriod;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IGetApplicationCalendarParams {
|
|
13
|
-
applicationId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IGetApplicationCalendarQuery {
|
|
16
|
-
/** The environment of the application (abyss-main's id). */
|
|
17
|
-
environmentId: string;
|
|
18
|
-
}
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IGetApplicationInsightsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetApplicationInsightsQuery {
|
|
7
|
+
/** The environment of the application (abyss-main's id). */
|
|
8
|
+
environmentId: string;
|
|
9
|
+
period: InsightsPeriod;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IGetApplicationCalendarParams {
|
|
13
|
+
applicationId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetApplicationCalendarQuery {
|
|
16
|
+
/** The environment of the application (abyss-main's id). */
|
|
17
|
+
environmentId: string;
|
|
18
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface IGetApplicationRunSettingsParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ISetApplicationRunSettingsParams {
|
|
6
|
-
applicationId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ISetApplicationRunSettingsBody {
|
|
9
|
-
/** Cap of log lines per run, 1 to 10 000; null for no cap. */
|
|
10
|
-
maxLogLinesPerRun: number | null;
|
|
11
|
-
}
|
|
1
|
+
export interface IGetApplicationRunSettingsParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface ISetApplicationRunSettingsParams {
|
|
6
|
+
applicationId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ISetApplicationRunSettingsBody {
|
|
9
|
+
/** Cap of log lines per run, 1 to 10 000; null for no cap. */
|
|
10
|
+
maxLogLinesPerRun: number | null;
|
|
11
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import type { IReflexAccessDeclaration } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionAccessParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IGrantFunctionAccessParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
functionId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The declaration must be one the draft makes. The member who grants must hold the right the access
|
|
14
|
-
* needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
|
|
15
|
-
* (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
|
|
16
|
-
*/
|
|
17
|
-
export interface IGrantFunctionAccessBody {
|
|
18
|
-
declaration: IReflexAccessDeclaration;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IRevokeFunctionAccessParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
functionId: string;
|
|
24
|
-
grantId: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IGrantAllFunctionAccessParams {
|
|
28
|
-
applicationId: string;
|
|
29
|
-
functionId: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IRequestFunctionAccessParams {
|
|
33
|
-
applicationId: string;
|
|
34
|
-
functionId: string;
|
|
35
|
-
}
|
|
36
|
-
/** The declaration must be one the saved draft makes (`409 ACCESS_NOT_DECLARED` otherwise). */
|
|
37
|
-
export interface IRequestFunctionAccessBody {
|
|
38
|
-
declaration: IReflexAccessDeclaration;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface IGrantFunctionAccessRequestParams {
|
|
42
|
-
applicationId: string;
|
|
43
|
-
functionId: string;
|
|
44
|
-
requestId: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface IDismissFunctionAccessRequestParams {
|
|
48
|
-
applicationId: string;
|
|
49
|
-
functionId: string;
|
|
50
|
-
requestId: string;
|
|
51
|
-
}
|
|
1
|
+
import type { IReflexAccessDeclaration } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionAccessParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface IGrantFunctionAccessParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
functionId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The declaration must be one the draft makes. The member who grants must hold the right the access
|
|
14
|
+
* needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
|
|
15
|
+
* (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
|
|
16
|
+
*/
|
|
17
|
+
export interface IGrantFunctionAccessBody {
|
|
18
|
+
declaration: IReflexAccessDeclaration;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IRevokeFunctionAccessParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
functionId: string;
|
|
24
|
+
grantId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IGrantAllFunctionAccessParams {
|
|
28
|
+
applicationId: string;
|
|
29
|
+
functionId: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IRequestFunctionAccessParams {
|
|
33
|
+
applicationId: string;
|
|
34
|
+
functionId: string;
|
|
35
|
+
}
|
|
36
|
+
/** The declaration must be one the saved draft makes (`409 ACCESS_NOT_DECLARED` otherwise). */
|
|
37
|
+
export interface IRequestFunctionAccessBody {
|
|
38
|
+
declaration: IReflexAccessDeclaration;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IGrantFunctionAccessRequestParams {
|
|
42
|
+
applicationId: string;
|
|
43
|
+
functionId: string;
|
|
44
|
+
requestId: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IDismissFunctionAccessRequestParams {
|
|
48
|
+
applicationId: string;
|
|
49
|
+
functionId: string;
|
|
50
|
+
requestId: string;
|
|
51
|
+
}
|
|
@@ -14,6 +14,8 @@ export interface IListFunctionRunQuery {
|
|
|
14
14
|
taskId?: string;
|
|
15
15
|
/** Only the runs of this environment of the application (abyss-main's id). */
|
|
16
16
|
environmentId?: string;
|
|
17
|
+
/** Only the live runs this consumer of the Service called; test runs have no consumer. */
|
|
18
|
+
consumerId?: string;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export interface IGetFunctionRunParams {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import type { IReflexExecutionSettingsValues, IReflexFunctionLogCap } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IGetFunctionSettingsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ISetFunctionDefaultSettingsParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
functionId: string;
|
|
11
|
-
}
|
|
12
|
-
/** Every value is required: a row of settings is whole. */
|
|
13
|
-
export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
|
|
14
|
-
|
|
15
|
-
export interface ISetFunctionEnvironmentSettingsParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
functionId: string;
|
|
18
|
-
/** An environment of the application (abyss-main's id). */
|
|
19
|
-
environmentId: string;
|
|
20
|
-
}
|
|
21
|
-
export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
|
|
22
|
-
|
|
23
|
-
export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
functionId: string;
|
|
26
|
-
environmentId: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ISetFunctionLogCapParams {
|
|
30
|
-
applicationId: string;
|
|
31
|
-
functionId: string;
|
|
32
|
-
}
|
|
33
|
-
/** `lines` is required, 1 to 10 000, when `mode` is LIMIT, and forbidden otherwise. */
|
|
34
|
-
export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
|
|
1
|
+
import type { IReflexExecutionSettingsValues, IReflexFunctionLogCap } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IGetFunctionSettingsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ISetFunctionDefaultSettingsParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
functionId: string;
|
|
11
|
+
}
|
|
12
|
+
/** Every value is required: a row of settings is whole. */
|
|
13
|
+
export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
|
|
14
|
+
|
|
15
|
+
export interface ISetFunctionEnvironmentSettingsParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
functionId: string;
|
|
18
|
+
/** An environment of the application (abyss-main's id). */
|
|
19
|
+
environmentId: string;
|
|
20
|
+
}
|
|
21
|
+
export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
|
|
22
|
+
|
|
23
|
+
export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
functionId: string;
|
|
26
|
+
environmentId: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ISetFunctionLogCapParams {
|
|
30
|
+
applicationId: string;
|
|
31
|
+
functionId: string;
|
|
32
|
+
}
|
|
33
|
+
/** `lines` is required, 1 to 10 000, when `mode` is LIMIT, and forbidden otherwise. */
|
|
34
|
+
export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export interface IListFunctionTemplateParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ICreateFunctionTemplateParams {
|
|
6
|
-
applicationId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ICreateFunctionTemplateBody {
|
|
9
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
10
|
-
name: string;
|
|
11
|
-
/** 500 characters at most. */
|
|
12
|
-
description?: string;
|
|
13
|
-
/** The function whose saved draft becomes the template. */
|
|
14
|
-
functionId: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IUpdateFunctionTemplateParams {
|
|
18
|
-
applicationId: string;
|
|
19
|
-
templateId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IUpdateFunctionTemplateBody {
|
|
22
|
-
name?: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface IDeleteFunctionTemplateParams {
|
|
27
|
-
applicationId: string;
|
|
28
|
-
templateId: string;
|
|
29
|
-
}
|
|
1
|
+
export interface IListFunctionTemplateParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface ICreateFunctionTemplateParams {
|
|
6
|
+
applicationId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateFunctionTemplateBody {
|
|
9
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** 500 characters at most. */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** The function whose saved draft becomes the template. */
|
|
14
|
+
functionId: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface IUpdateFunctionTemplateParams {
|
|
18
|
+
applicationId: string;
|
|
19
|
+
templateId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IUpdateFunctionTemplateBody {
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IDeleteFunctionTemplateParams {
|
|
27
|
+
applicationId: string;
|
|
28
|
+
templateId: string;
|
|
29
|
+
}
|
|
@@ -35,5 +35,10 @@ export interface ISimulateFunctionBody {
|
|
|
35
35
|
httpStubs?: Record<string, IReflexHttpStub>;
|
|
36
36
|
/** Answers of the `discord.*` calls of a step, by step id (a Discord bot Service only). */
|
|
37
37
|
discordStubs?: Record<string, IReflexDiscordStub>;
|
|
38
|
+
/**
|
|
39
|
+
* A route of the Service that starts the function: its contract validates `input` first
|
|
40
|
+
* (`422 REQUEST_INVALID` with `errors`), and the response is checked against it (`contractWarnings`).
|
|
41
|
+
*/
|
|
42
|
+
routeId?: string;
|
|
38
43
|
}
|
|
39
44
|
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export interface IListFunctionVersionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IListFunctionVersionQuery {
|
|
6
|
-
/** 1 by default. */
|
|
7
|
-
page?: number;
|
|
8
|
-
/** 1 to 50. */
|
|
9
|
-
limit?: number;
|
|
10
|
-
/** Only the version of this number. */
|
|
11
|
-
number?: number;
|
|
12
|
-
/** Only the versions published by this user. */
|
|
13
|
-
publishedByUserId?: string;
|
|
14
|
-
/** true: only versions a Service version put in service; false: only the others. */
|
|
15
|
-
deployed?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IGetFunctionVersionParams {
|
|
19
|
-
applicationId: string;
|
|
20
|
-
functionId: string;
|
|
21
|
-
versionId: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IGetFunctionVersionStepStatsParams {
|
|
25
|
-
applicationId: string;
|
|
26
|
-
functionId: string;
|
|
27
|
-
versionId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IGetFunctionVersionStepStatsQuery {
|
|
30
|
-
/** Only the executions of this environment; every environment when absent. */
|
|
31
|
-
environmentId?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IOpenFunctionVersionParams {
|
|
35
|
-
applicationId: string;
|
|
36
|
-
functionId: string;
|
|
37
|
-
versionId: string;
|
|
38
|
-
}
|
|
1
|
+
export interface IListFunctionVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IListFunctionVersionQuery {
|
|
6
|
+
/** 1 by default. */
|
|
7
|
+
page?: number;
|
|
8
|
+
/** 1 to 50. */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Only the version of this number. */
|
|
11
|
+
number?: number;
|
|
12
|
+
/** Only the versions published by this user. */
|
|
13
|
+
publishedByUserId?: string;
|
|
14
|
+
/** true: only versions a Service version put in service; false: only the others. */
|
|
15
|
+
deployed?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IGetFunctionVersionParams {
|
|
19
|
+
applicationId: string;
|
|
20
|
+
functionId: string;
|
|
21
|
+
versionId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IGetFunctionVersionStepStatsParams {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
functionId: string;
|
|
27
|
+
versionId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IGetFunctionVersionStepStatsQuery {
|
|
30
|
+
/** Only the executions of this environment; every environment when absent. */
|
|
31
|
+
environmentId?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IOpenFunctionVersionParams {
|
|
35
|
+
applicationId: string;
|
|
36
|
+
functionId: string;
|
|
37
|
+
versionId: string;
|
|
38
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { IReflexDefinition } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface ICreateFunctionParams {
|
|
8
|
-
applicationId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateFunctionBody {
|
|
11
|
-
/** A Service of the application, which the function joins. */
|
|
12
|
-
serviceId: string;
|
|
13
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Absent: a function without access or step, to fill in. */
|
|
16
|
-
definition?: IReflexDefinition;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IGetFunctionParams {
|
|
20
|
-
applicationId: string;
|
|
21
|
-
functionId: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IUpdateFunctionParams {
|
|
25
|
-
applicationId: string;
|
|
26
|
-
functionId: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IUpdateFunctionBody {
|
|
29
|
-
name?: string;
|
|
30
|
-
definition?: IReflexDefinition;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IDeleteFunctionParams {
|
|
34
|
-
applicationId: string;
|
|
35
|
-
functionId: string;
|
|
36
|
-
}
|
|
1
|
+
import type { IReflexDefinition } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface ICreateFunctionParams {
|
|
8
|
+
applicationId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateFunctionBody {
|
|
11
|
+
/** A Service of the application, which the function joins. */
|
|
12
|
+
serviceId: string;
|
|
13
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Absent: a function without access or step, to fill in. */
|
|
16
|
+
definition?: IReflexDefinition;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IGetFunctionParams {
|
|
20
|
+
applicationId: string;
|
|
21
|
+
functionId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IUpdateFunctionParams {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
functionId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IUpdateFunctionBody {
|
|
29
|
+
name?: string;
|
|
30
|
+
definition?: IReflexDefinition;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IDeleteFunctionParams {
|
|
34
|
+
applicationId: string;
|
|
35
|
+
functionId: string;
|
|
36
|
+
}
|
|
@@ -18,3 +18,7 @@ export * from './application-insights.request';
|
|
|
18
18
|
export * from './alert-rule.request';
|
|
19
19
|
export * from './route-stats.request';
|
|
20
20
|
export * from './function-template.request';
|
|
21
|
+
export * from './service-consumer.request';
|
|
22
|
+
export * from './service-openapi.request';
|
|
23
|
+
export * from './service-limits.request';
|
|
24
|
+
export * from './service-completion-webhook.request';
|