@abyss-project/reflex 6.0.4 → 6.1.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/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/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +2 -1
- 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/interface/api/requests/application-run-settings.request.d.ts +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/service.request.d.ts +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/models/index.d.ts +2 -0
- package/dist/types/interface/models/index.js +2 -0
- package/dist/types/interface/models/index.js.map +1 -1
- 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-limits.model.d.ts +5 -2
- 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/package.json +10 -15
- package/src/api/application-run-settings.api.test.ts +62 -51
- package/src/api/function-run.api.ts +53 -38
- package/src/api/function-settings.api.ts +96 -74
- package/src/api/function.api.test.ts +55 -0
- package/src/api/index.ts +26 -26
- 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-consumer.api.test.ts +104 -104
- package/src/api/service-consumer.api.ts +90 -90
- package/src/api/service-discord.api.test.ts +178 -178
- package/src/api/service-discord.api.ts +222 -222
- package/src/api/service-limits.api.test.ts +100 -100
- package/src/api/service-limits.api.ts +37 -37
- package/src/api/service-openapi.api.test.ts +52 -52
- package/src/api/service-openapi.api.ts +21 -21
- package/src/api/service-route.api.ts +74 -74
- package/src/api/service.api.test.ts +220 -215
- package/src/index.test.ts +104 -104
- package/src/index.ts +12 -0
- 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/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 +35 -35
- 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/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-error-code.enum.ts +5 -0
- 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-step-status.enum.ts +7 -7
- package/src/types/enum/schedule-sync-status.enum.ts +6 -6
- 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-deployment-action.enum.ts +11 -11
- package/src/types/enum/service-deployment-status.enum.ts +5 -5
- package/src/types/enum/service-type.enum.ts +9 -9
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trace-effect-type.enum.ts +12 -12
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/enum/trigger-kind.enum.ts +8 -8
- package/src/types/enum/vault-value-source.enum.ts +12 -12
- package/src/types/enum/vault-visibility.enum.ts +5 -5
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
- package/src/types/interface/api/requests/application-insights.request.ts +18 -18
- package/src/types/interface/api/requests/application-run-settings.request.ts +13 -11
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-run.request.ts +10 -0
- 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-version.request.ts +38 -38
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/route-stats.request.ts +22 -22
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
- 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-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 +48 -46
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
- package/src/types/interface/api/responses/application-insights.response.ts +11 -11
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
- package/src/types/interface/api/responses/function-access.response.ts +45 -45
- package/src/types/interface/api/responses/function-run.response.ts +23 -18
- package/src/types/interface/api/responses/function-settings.response.ts +7 -0
- package/src/types/interface/api/responses/function-template.response.ts +21 -21
- 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/route-stats.response.ts +15 -15
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
- 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-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +112 -112
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +2 -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-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-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-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 +10 -0
- 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 +17 -8
- 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
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import type { DiscordEventDropReason, DiscordEventStatus, DiscordEventType } from '../../../enum';
|
|
2
|
-
import type { IReflexDiscordEventFilters } from '../../models';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceDiscordEventParams {
|
|
5
|
-
applicationId: string;
|
|
6
|
-
serviceId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface ICreateServiceDiscordEventParams {
|
|
10
|
-
applicationId: string;
|
|
11
|
-
serviceId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreateServiceDiscordEventBody {
|
|
14
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
15
|
-
name: string;
|
|
16
|
-
eventType: DiscordEventType;
|
|
17
|
-
/** A function of the same Service. */
|
|
18
|
-
functionId: string;
|
|
19
|
-
/** Empty by default: no filter. */
|
|
20
|
-
filters?: IReflexDiscordEventFilters;
|
|
21
|
-
/** `true` by default. */
|
|
22
|
-
ordered?: boolean;
|
|
23
|
-
/** `false` by default, `MESSAGE_CREATE` only; asks for the MESSAGE_CONTENT intent. */
|
|
24
|
-
includeContent?: boolean;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IUpdateServiceDiscordEventParams {
|
|
28
|
-
applicationId: string;
|
|
29
|
-
serviceId: string;
|
|
30
|
-
eventId: string;
|
|
31
|
-
}
|
|
32
|
-
export interface IUpdateServiceDiscordEventBody {
|
|
33
|
-
name?: string;
|
|
34
|
-
eventType?: DiscordEventType;
|
|
35
|
-
functionId?: string;
|
|
36
|
-
filters?: IReflexDiscordEventFilters;
|
|
37
|
-
ordered?: boolean;
|
|
38
|
-
includeContent?: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface IDeleteServiceDiscordEventParams {
|
|
42
|
-
applicationId: string;
|
|
43
|
-
serviceId: string;
|
|
44
|
-
eventId: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface IListServiceDiscordEventLogParams {
|
|
48
|
-
applicationId: string;
|
|
49
|
-
serviceId: string;
|
|
50
|
-
}
|
|
51
|
-
export interface IListServiceDiscordEventLogQuery {
|
|
52
|
-
/** The environment of the application (abyss-main's id). */
|
|
53
|
-
environmentId: string;
|
|
54
|
-
/** Only the retained events in this status; drops the dropped ones from the page. */
|
|
55
|
-
status?: DiscordEventStatus;
|
|
56
|
-
/** Only the dropped events for this reason; drops the retained ones from the page. */
|
|
57
|
-
reason?: DiscordEventDropReason;
|
|
58
|
-
type?: DiscordEventType;
|
|
59
|
-
triggerId?: string;
|
|
60
|
-
/** ISO 8601, included. */
|
|
61
|
-
from?: string;
|
|
62
|
-
/** ISO 8601, excluded. */
|
|
63
|
-
to?: string;
|
|
64
|
-
/** The `nextCursor` of the previous page. */
|
|
65
|
-
cursor?: string;
|
|
66
|
-
/** 1 to 100, 50 by default. */
|
|
67
|
-
limit?: number;
|
|
68
|
-
}
|
|
1
|
+
import type { DiscordEventDropReason, DiscordEventStatus, DiscordEventType } from '../../../enum';
|
|
2
|
+
import type { IReflexDiscordEventFilters } from '../../models';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceDiscordEventParams {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
serviceId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ICreateServiceDiscordEventParams {
|
|
10
|
+
applicationId: string;
|
|
11
|
+
serviceId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ICreateServiceDiscordEventBody {
|
|
14
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
15
|
+
name: string;
|
|
16
|
+
eventType: DiscordEventType;
|
|
17
|
+
/** A function of the same Service. */
|
|
18
|
+
functionId: string;
|
|
19
|
+
/** Empty by default: no filter. */
|
|
20
|
+
filters?: IReflexDiscordEventFilters;
|
|
21
|
+
/** `true` by default. */
|
|
22
|
+
ordered?: boolean;
|
|
23
|
+
/** `false` by default, `MESSAGE_CREATE` only; asks for the MESSAGE_CONTENT intent. */
|
|
24
|
+
includeContent?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IUpdateServiceDiscordEventParams {
|
|
28
|
+
applicationId: string;
|
|
29
|
+
serviceId: string;
|
|
30
|
+
eventId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IUpdateServiceDiscordEventBody {
|
|
33
|
+
name?: string;
|
|
34
|
+
eventType?: DiscordEventType;
|
|
35
|
+
functionId?: string;
|
|
36
|
+
filters?: IReflexDiscordEventFilters;
|
|
37
|
+
ordered?: boolean;
|
|
38
|
+
includeContent?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IDeleteServiceDiscordEventParams {
|
|
42
|
+
applicationId: string;
|
|
43
|
+
serviceId: string;
|
|
44
|
+
eventId: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IListServiceDiscordEventLogParams {
|
|
48
|
+
applicationId: string;
|
|
49
|
+
serviceId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IListServiceDiscordEventLogQuery {
|
|
52
|
+
/** The environment of the application (abyss-main's id). */
|
|
53
|
+
environmentId: string;
|
|
54
|
+
/** Only the retained events in this status; drops the dropped ones from the page. */
|
|
55
|
+
status?: DiscordEventStatus;
|
|
56
|
+
/** Only the dropped events for this reason; drops the retained ones from the page. */
|
|
57
|
+
reason?: DiscordEventDropReason;
|
|
58
|
+
type?: DiscordEventType;
|
|
59
|
+
triggerId?: string;
|
|
60
|
+
/** ISO 8601, included. */
|
|
61
|
+
from?: string;
|
|
62
|
+
/** ISO 8601, excluded. */
|
|
63
|
+
to?: string;
|
|
64
|
+
/** The `nextCursor` of the previous page. */
|
|
65
|
+
cursor?: string;
|
|
66
|
+
/** 1 to 100, 50 by default. */
|
|
67
|
+
limit?: number;
|
|
68
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IGetServiceInsightsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
serviceId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IGetServiceInsightsQuery {
|
|
8
|
-
/** The environment of the application (abyss-main's id). */
|
|
9
|
-
environmentId: string;
|
|
10
|
-
period: InsightsPeriod;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IGetServiceEventInsightsParams {
|
|
14
|
-
applicationId: string;
|
|
15
|
-
serviceId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGetServiceEventInsightsQuery {
|
|
18
|
-
/** The environment of the application (abyss-main's id). */
|
|
19
|
-
environmentId: string;
|
|
20
|
-
period: InsightsPeriod;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IGetFunctionInsightsParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
functionId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IGetFunctionInsightsQuery {
|
|
28
|
-
/** The environment of the application (abyss-main's id). */
|
|
29
|
-
environmentId: string;
|
|
30
|
-
period: InsightsPeriod;
|
|
31
|
-
}
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IGetServiceInsightsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetServiceInsightsQuery {
|
|
8
|
+
/** The environment of the application (abyss-main's id). */
|
|
9
|
+
environmentId: string;
|
|
10
|
+
period: InsightsPeriod;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IGetServiceEventInsightsParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetServiceEventInsightsQuery {
|
|
18
|
+
/** The environment of the application (abyss-main's id). */
|
|
19
|
+
environmentId: string;
|
|
20
|
+
period: InsightsPeriod;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetFunctionInsightsParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
functionId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IGetFunctionInsightsQuery {
|
|
28
|
+
/** The environment of the application (abyss-main's id). */
|
|
29
|
+
environmentId: string;
|
|
30
|
+
period: InsightsPeriod;
|
|
31
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
export interface IListServiceTaskParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ICreateServiceTaskParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
serviceId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateServiceTaskBody {
|
|
11
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** A function of the same Service. */
|
|
14
|
-
functionId: string;
|
|
15
|
-
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
-
schedule?: string | null;
|
|
17
|
-
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
-
timezone?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IUpdateServiceTaskParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
serviceId: string;
|
|
24
|
-
taskId: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IUpdateServiceTaskBody {
|
|
27
|
-
name?: string;
|
|
28
|
-
functionId?: string;
|
|
29
|
-
schedule?: string | null;
|
|
30
|
-
timezone?: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IDeleteServiceTaskParams {
|
|
34
|
-
applicationId: string;
|
|
35
|
-
serviceId: string;
|
|
36
|
-
taskId: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ITestRunServiceTaskParams {
|
|
40
|
-
applicationId: string;
|
|
41
|
-
serviceId: string;
|
|
42
|
-
taskId: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ITestRunServiceTaskBody {
|
|
45
|
-
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
-
environmentId: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface IListServiceDelayedRunParams {
|
|
50
|
-
applicationId: string;
|
|
51
|
-
serviceId: string;
|
|
52
|
-
environmentId: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ICancelServiceDelayedRunParams {
|
|
56
|
-
applicationId: string;
|
|
57
|
-
serviceId: string;
|
|
58
|
-
environmentId: string;
|
|
59
|
-
delayedRunId: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
-
applicationId: string;
|
|
64
|
-
serviceId: string;
|
|
65
|
-
environmentId: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
-
applicationId: string;
|
|
70
|
-
serviceId: string;
|
|
71
|
-
taskId: string;
|
|
72
|
-
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
-
environmentId: string;
|
|
74
|
-
}
|
|
75
|
-
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
-
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
-
limit?: number;
|
|
78
|
-
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
-
offset?: number;
|
|
80
|
-
}
|
|
1
|
+
export interface IListServiceTaskParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ICreateServiceTaskParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
serviceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateServiceTaskBody {
|
|
11
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** A function of the same Service. */
|
|
14
|
+
functionId: string;
|
|
15
|
+
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
+
schedule?: string | null;
|
|
17
|
+
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
+
timezone?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IUpdateServiceTaskParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
serviceId: string;
|
|
24
|
+
taskId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateServiceTaskBody {
|
|
27
|
+
name?: string;
|
|
28
|
+
functionId?: string;
|
|
29
|
+
schedule?: string | null;
|
|
30
|
+
timezone?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IDeleteServiceTaskParams {
|
|
34
|
+
applicationId: string;
|
|
35
|
+
serviceId: string;
|
|
36
|
+
taskId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ITestRunServiceTaskParams {
|
|
40
|
+
applicationId: string;
|
|
41
|
+
serviceId: string;
|
|
42
|
+
taskId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ITestRunServiceTaskBody {
|
|
45
|
+
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
+
environmentId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IListServiceDelayedRunParams {
|
|
50
|
+
applicationId: string;
|
|
51
|
+
serviceId: string;
|
|
52
|
+
environmentId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ICancelServiceDelayedRunParams {
|
|
56
|
+
applicationId: string;
|
|
57
|
+
serviceId: string;
|
|
58
|
+
environmentId: string;
|
|
59
|
+
delayedRunId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
+
applicationId: string;
|
|
64
|
+
serviceId: string;
|
|
65
|
+
environmentId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
+
applicationId: string;
|
|
70
|
+
serviceId: string;
|
|
71
|
+
taskId: string;
|
|
72
|
+
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
+
environmentId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
+
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
+
limit?: number;
|
|
78
|
+
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
+
offset?: number;
|
|
80
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface IListServiceVersionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ICreateServiceVersionParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
serviceId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateServiceVersionBody {
|
|
11
|
-
/** 500 characters at most. */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IGetServiceVersionDraftStatusParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
serviceId: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IGetServiceVersionParams {
|
|
21
|
-
applicationId: string;
|
|
22
|
-
serviceId: string;
|
|
23
|
-
versionId: string;
|
|
24
|
-
}
|
|
1
|
+
export interface IListServiceVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ICreateServiceVersionParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
serviceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateServiceVersionBody {
|
|
11
|
+
/** 500 characters at most. */
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IGetServiceVersionDraftStatusParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
serviceId: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IGetServiceVersionParams {
|
|
21
|
+
applicationId: string;
|
|
22
|
+
serviceId: string;
|
|
23
|
+
versionId: string;
|
|
24
|
+
}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import type { ServiceType } from '../../../enum';
|
|
2
|
-
import type { IReflexServiceCors } from '../../models';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceParams {
|
|
5
|
-
applicationId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICreateServiceParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ICreateServiceBody {
|
|
12
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
-
name: string;
|
|
14
|
-
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
-
slug: string;
|
|
16
|
-
type: ServiceType;
|
|
17
|
-
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
-
cors?: IReflexServiceCors;
|
|
19
|
-
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
-
rateLimitPerIpPerMinute?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IGetServiceParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IUpdateServiceParams {
|
|
29
|
-
applicationId: string;
|
|
30
|
-
serviceId: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
-
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
-
*/
|
|
36
|
-
export interface IUpdateServiceBody {
|
|
37
|
-
name?: string;
|
|
38
|
-
cors?: IReflexServiceCors;
|
|
39
|
-
/** 1 to 6000. */
|
|
40
|
-
rateLimitPerIpPerMinute?: number;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import type { ServiceType } from '../../../enum';
|
|
2
|
+
import type { IReflexServiceCors } from '../../models';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceParams {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ICreateServiceParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateServiceBody {
|
|
12
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
+
slug: string;
|
|
16
|
+
type: ServiceType;
|
|
17
|
+
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
+
cors?: IReflexServiceCors;
|
|
19
|
+
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
+
rateLimitPerIpPerMinute?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetServiceParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IUpdateServiceParams {
|
|
29
|
+
applicationId: string;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
+
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
+
*/
|
|
36
|
+
export interface IUpdateServiceBody {
|
|
37
|
+
name?: string;
|
|
38
|
+
cors?: IReflexServiceCors;
|
|
39
|
+
/** 1 to 6000. */
|
|
40
|
+
rateLimitPerIpPerMinute?: number;
|
|
41
|
+
/** `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`: how many versions of the Service the purge keeps. */
|
|
42
|
+
versionsKept?: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface IDeleteServiceParams {
|
|
46
|
+
applicationId: string;
|
|
47
|
+
serviceId: string;
|
|
48
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
-
export interface IResponse<T> {
|
|
3
|
-
data: T;
|
|
4
|
-
}
|
|
1
|
+
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
+
export interface IResponse<T> {
|
|
3
|
+
data: T;
|
|
4
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
/** A rule and what its last evaluation found; `state` is null until the first evaluation. */
|
|
5
|
-
export interface IReflexAlertRuleWithState {
|
|
6
|
-
rule: IReflexAlertRule;
|
|
7
|
-
state: IReflexAlertRuleState | null;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IListAlertRuleData {
|
|
11
|
-
rules: IReflexAlertRuleWithState[];
|
|
12
|
-
/** Rules enabled in the application, against `REFLEX_ALERT_RULE_LIMITS.maxActivePerApplication`. */
|
|
13
|
-
activeCount: number;
|
|
14
|
-
}
|
|
15
|
-
export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
|
|
16
|
-
|
|
17
|
-
export type ICreateAlertRuleData = IReflexAlertRuleWithState;
|
|
18
|
-
export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
|
|
19
|
-
|
|
20
|
-
export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
|
|
21
|
-
export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
|
|
22
|
-
|
|
23
|
-
export type IDeleteAlertRuleData = Record<string, never>;
|
|
24
|
-
export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
|
|
1
|
+
import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
/** A rule and what its last evaluation found; `state` is null until the first evaluation. */
|
|
5
|
+
export interface IReflexAlertRuleWithState {
|
|
6
|
+
rule: IReflexAlertRule;
|
|
7
|
+
state: IReflexAlertRuleState | null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IListAlertRuleData {
|
|
11
|
+
rules: IReflexAlertRuleWithState[];
|
|
12
|
+
/** Rules enabled in the application, against `REFLEX_ALERT_RULE_LIMITS.maxActivePerApplication`. */
|
|
13
|
+
activeCount: number;
|
|
14
|
+
}
|
|
15
|
+
export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
|
|
16
|
+
|
|
17
|
+
export type ICreateAlertRuleData = IReflexAlertRuleWithState;
|
|
18
|
+
export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
|
|
19
|
+
|
|
20
|
+
export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
|
|
21
|
+
export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
|
|
22
|
+
|
|
23
|
+
export type IDeleteAlertRuleData = Record<string, never>;
|
|
24
|
+
export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export type IGetApplicationInsightsData = IReflexApplicationInsights;
|
|
5
|
-
export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
|
|
6
|
-
|
|
7
|
-
export interface IGetApplicationCalendarData {
|
|
8
|
-
/** The last 365 days, oldest first, a day without run included. */
|
|
9
|
-
days: IReflexCalendarDay[];
|
|
10
|
-
}
|
|
11
|
-
export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
|
|
1
|
+
import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export type IGetApplicationInsightsData = IReflexApplicationInsights;
|
|
5
|
+
export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
|
|
6
|
+
|
|
7
|
+
export interface IGetApplicationCalendarData {
|
|
8
|
+
/** The last 365 days, oldest first, a day without run included. */
|
|
9
|
+
days: IReflexCalendarDay[];
|
|
10
|
+
}
|
|
11
|
+
export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IReflexApplicationRunSettings } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
5
|
-
export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
|
|
6
|
-
|
|
7
|
-
export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
8
|
-
export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
|
|
1
|
+
import type { IReflexApplicationRunSettings } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
5
|
+
export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
|
|
6
|
+
|
|
7
|
+
export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
8
|
+
export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
|