@abyss-project/reflex 5.7.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +32 -32
- package/.prettierrc +5 -5
- package/README.md +15 -15
- package/dist/types/enum/discord-channel-type.enum.d.ts +7 -0
- package/dist/types/enum/discord-channel-type.enum.js +12 -0
- package/dist/types/enum/discord-channel-type.enum.js.map +1 -0
- package/dist/types/enum/discord-host-action.enum.d.ts +31 -0
- package/dist/types/enum/discord-host-action.enum.js +36 -0
- package/dist/types/enum/discord-host-action.enum.js.map +1 -0
- package/dist/types/enum/discord-locale.enum.d.ts +34 -0
- package/dist/types/enum/discord-locale.enum.js +39 -0
- package/dist/types/enum/discord-locale.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +3 -0
- package/dist/types/enum/index.js +3 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-discord.request.d.ts +7 -1
- package/dist/types/interface/models/reflex-discord-event.model.js.map +1 -1
- package/dist/types/interface/models/reflex-discord.model.d.ts +22 -2
- package/dist/types/interface/models/reflex-discord.model.js +6 -1
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -1
- package/jest.config.ts +11 -11
- package/package.json +1 -1
- package/src/api/function-access.api.ts +36 -36
- package/src/api/function-insights.api.test.ts +27 -27
- package/src/api/function-insights.api.ts +18 -18
- package/src/api/function-run.api.ts +38 -38
- package/src/api/function-settings.api.ts +59 -59
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +48 -48
- package/src/api/function.api.test.ts +249 -249
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +17 -17
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-discord-event.api.test.ts +106 -106
- package/src/api/service-discord-event.api.ts +78 -78
- package/src/api/service-discord.api.test.ts +197 -197
- package/src/api/service-discord.api.ts +241 -241
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-route.api.ts +72 -72
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.test.ts +215 -215
- package/src/api/service.api.ts +55 -55
- package/src/discord/discord-event-filter-cases.ts +261 -261
- package/src/discord/discord-event-filters.test.ts +91 -91
- package/src/discord/discord-event-filters.ts +95 -95
- package/src/discord/discord-event-intents.test.ts +112 -112
- package/src/discord/discord-event-intents.ts +55 -55
- package/src/discord/index.ts +3 -3
- package/src/index.test.ts +75 -75
- package/src/index.ts +317 -317
- 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/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 -0
- 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 -0
- package/src/types/enum/discord-locale.enum.ts +35 -0
- 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 +43 -40
- package/src/types/enum/insights-period.enum.ts +8 -8
- package/src/types/enum/reflex-error-code.enum.ts +43 -43
- 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 +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-failure-code.enum.ts +12 -12
- 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/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +30 -30
- package/src/types/interface/api/requests/function-settings.request.ts +27 -27
- package/src/types/interface/api/requests/function-test.request.ts +39 -39
- package/src/types/interface/api/requests/function-version.request.ts +20 -20
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/index.ts +15 -15
- 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-discord.request.ts +173 -161
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-route.request.ts +44 -44
- 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/response.ts +4 -4
- package/src/types/interface/api/responses/function-access.response.ts +17 -17
- package/src/types/interface/api/responses/function-run.response.ts +18 -18
- package/src/types/interface/api/responses/function-settings.response.ts +36 -36
- package/src/types/interface/api/responses/function-test.response.ts +12 -12
- package/src/types/interface/api/responses/function-version.response.ts +31 -31
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.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-discord.response.ts +122 -122
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +106 -106
- 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 +19 -19
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-bot-limits.model.ts +92 -92
- 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 -78
- package/src/types/interface/models/reflex-discord.model.ts +54 -4
- package/src/types/interface/models/reflex-execution-settings.model.ts +50 -50
- package/src/types/interface/models/reflex-function-version.model.ts +14 -14
- package/src/types/interface/models/reflex-function.model.ts +16 -16
- package/src/types/interface/models/reflex-insights.model.ts +120 -120
- package/src/types/interface/models/reflex-price-list.model.ts +20 -20
- package/src/types/interface/models/reflex-route.model.ts +19 -19
- package/src/types/interface/models/reflex-run.model.ts +186 -186
- 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-version.model.ts +61 -61
- 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
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export interface IFunctionTestParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
-
export interface IReflexHttpStub {
|
|
8
|
-
status: number;
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
body?: unknown;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The answer a `discord.*` call of a step gets in a test; nothing reaches Discord. Without a stub the
|
|
15
|
-
* call gets a simulated answer of the shape the edge returns (`{ id }` of a message, a member, a channel...).
|
|
16
|
-
*/
|
|
17
|
-
export interface IReflexDiscordStub {
|
|
18
|
-
/** What the call returns: `null` for `getMember` reads as a user who is not a member. */
|
|
19
|
-
response: unknown;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ISimulateFunctionBody {
|
|
23
|
-
/**
|
|
24
|
-
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
25
|
-
* Store, the run is measured with its effective settings and recorded with it.
|
|
26
|
-
*/
|
|
27
|
-
environmentId: string;
|
|
28
|
-
/**
|
|
29
|
-
* The event the function receives, as the edge builds it: `{method, path, query, headers, body}`, or the
|
|
30
|
-
* input of a run of a task (`ScheduledRunInput` of `@abyss-project/runtime`, `kind` SCHEDULE or DELAYED),
|
|
31
|
-
* which no interaction started: `discord.reply`, `update`, `showModal` and `followUp` then reject with `NO_INTERACTION`.
|
|
32
|
-
*/
|
|
33
|
-
input?: unknown;
|
|
34
|
-
/** Simulated responses of HTTP steps, by step id. */
|
|
35
|
-
httpStubs?: Record<string, IReflexHttpStub>;
|
|
36
|
-
/** Answers of the `discord.*` calls of a step, by step id (a Discord bot Service only). */
|
|
37
|
-
discordStubs?: Record<string, IReflexDiscordStub>;
|
|
38
|
-
}
|
|
39
|
-
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
1
|
+
export interface IFunctionTestParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
+
export interface IReflexHttpStub {
|
|
8
|
+
status: number;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The answer a `discord.*` call of a step gets in a test; nothing reaches Discord. Without a stub the
|
|
15
|
+
* call gets a simulated answer of the shape the edge returns (`{ id }` of a message, a member, a channel...).
|
|
16
|
+
*/
|
|
17
|
+
export interface IReflexDiscordStub {
|
|
18
|
+
/** What the call returns: `null` for `getMember` reads as a user who is not a member. */
|
|
19
|
+
response: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ISimulateFunctionBody {
|
|
23
|
+
/**
|
|
24
|
+
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
25
|
+
* Store, the run is measured with its effective settings and recorded with it.
|
|
26
|
+
*/
|
|
27
|
+
environmentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The event the function receives, as the edge builds it: `{method, path, query, headers, body}`, or the
|
|
30
|
+
* input of a run of a task (`ScheduledRunInput` of `@abyss-project/runtime`, `kind` SCHEDULE or DELAYED),
|
|
31
|
+
* which no interaction started: `discord.reply`, `update`, `showModal` and `followUp` then reject with `NO_INTERACTION`.
|
|
32
|
+
*/
|
|
33
|
+
input?: unknown;
|
|
34
|
+
/** Simulated responses of HTTP steps, by step id. */
|
|
35
|
+
httpStubs?: Record<string, IReflexHttpStub>;
|
|
36
|
+
/** Answers of the `discord.*` calls of a step, by step id (a Discord bot Service only). */
|
|
37
|
+
discordStubs?: Record<string, IReflexDiscordStub>;
|
|
38
|
+
}
|
|
39
|
+
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface IListFunctionVersionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface IGetFunctionVersionParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
functionId: string;
|
|
9
|
-
versionId: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IGetFunctionVersionStepStatsParams {
|
|
13
|
-
applicationId: string;
|
|
14
|
-
functionId: string;
|
|
15
|
-
versionId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGetFunctionVersionStepStatsQuery {
|
|
18
|
-
/** Only the executions of this environment; every environment when absent. */
|
|
19
|
-
environmentId?: string;
|
|
20
|
-
}
|
|
1
|
+
export interface IListFunctionVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface IGetFunctionVersionParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
functionId: string;
|
|
9
|
+
versionId: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IGetFunctionVersionStepStatsParams {
|
|
13
|
+
applicationId: string;
|
|
14
|
+
functionId: string;
|
|
15
|
+
versionId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetFunctionVersionStepStatsQuery {
|
|
18
|
+
/** Only the executions of this environment; every environment when absent. */
|
|
19
|
+
environmentId?: string;
|
|
20
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './function.request';
|
|
2
|
-
export * from './function-access.request';
|
|
3
|
-
export * from './function-test.request';
|
|
4
|
-
export * from './function-version.request';
|
|
5
|
-
export * from './function-run.request';
|
|
6
|
-
export * from './function-settings.request';
|
|
7
|
-
export * from './service.request';
|
|
8
|
-
export * from './service-route.request';
|
|
9
|
-
export * from './service-version.request';
|
|
10
|
-
export * from './service-deployment.request';
|
|
11
|
-
export * from './service-configuration.request';
|
|
12
|
-
export * from './service-discord.request';
|
|
13
|
-
export * from './service-task.request';
|
|
14
|
-
export * from './service-discord-event.request';
|
|
15
|
-
export * from './service-insights.request';
|
|
1
|
+
export * from './function.request';
|
|
2
|
+
export * from './function-access.request';
|
|
3
|
+
export * from './function-test.request';
|
|
4
|
+
export * from './function-version.request';
|
|
5
|
+
export * from './function-run.request';
|
|
6
|
+
export * from './function-settings.request';
|
|
7
|
+
export * from './service.request';
|
|
8
|
+
export * from './service-route.request';
|
|
9
|
+
export * from './service-version.request';
|
|
10
|
+
export * from './service-deployment.request';
|
|
11
|
+
export * from './service-configuration.request';
|
|
12
|
+
export * from './service-discord.request';
|
|
13
|
+
export * from './service-task.request';
|
|
14
|
+
export * from './service-discord-event.request';
|
|
15
|
+
export * from './service-insights.request';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IListServiceConfigurationParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
1
|
+
export interface IListServiceConfigurationParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export interface IListServiceDeploymentParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IListServiceDeploymentQuery {
|
|
6
|
-
/** Only the history of this environment; every environment when absent. */
|
|
7
|
-
environmentId?: string;
|
|
8
|
-
/** 1 to 100, 50 by default. */
|
|
9
|
-
limit?: number;
|
|
10
|
-
/** Gestures skipped, newest first; 0 by default. */
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IGoLiveServiceParams {
|
|
15
|
-
applicationId: string;
|
|
16
|
-
serviceId: string;
|
|
17
|
-
}
|
|
18
|
-
/** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
|
|
19
|
-
export interface IGoLiveServiceBody {
|
|
20
|
-
/** An environment of the application (abyss-main's id). */
|
|
21
|
-
environmentId: string;
|
|
22
|
-
serviceVersionId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IRollbackServiceParams {
|
|
26
|
-
applicationId: string;
|
|
27
|
-
serviceId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IRollbackServiceBody {
|
|
30
|
-
environmentId: string;
|
|
31
|
-
/** A deployment of this environment, from the history: its version is put back in service. */
|
|
32
|
-
deploymentId: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface IPauseServiceParams {
|
|
36
|
-
applicationId: string;
|
|
37
|
-
serviceId: string;
|
|
38
|
-
}
|
|
39
|
-
export interface IPauseServiceBody {
|
|
40
|
-
environmentId: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IResumeServiceParams {
|
|
44
|
-
applicationId: string;
|
|
45
|
-
serviceId: string;
|
|
46
|
-
}
|
|
47
|
-
export interface IResumeServiceBody {
|
|
48
|
-
environmentId: string;
|
|
49
|
-
}
|
|
1
|
+
export interface IListServiceDeploymentParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IListServiceDeploymentQuery {
|
|
6
|
+
/** Only the history of this environment; every environment when absent. */
|
|
7
|
+
environmentId?: string;
|
|
8
|
+
/** 1 to 100, 50 by default. */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Gestures skipped, newest first; 0 by default. */
|
|
11
|
+
offset?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IGoLiveServiceParams {
|
|
15
|
+
applicationId: string;
|
|
16
|
+
serviceId: string;
|
|
17
|
+
}
|
|
18
|
+
/** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
|
|
19
|
+
export interface IGoLiveServiceBody {
|
|
20
|
+
/** An environment of the application (abyss-main's id). */
|
|
21
|
+
environmentId: string;
|
|
22
|
+
serviceVersionId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IRollbackServiceParams {
|
|
26
|
+
applicationId: string;
|
|
27
|
+
serviceId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IRollbackServiceBody {
|
|
30
|
+
environmentId: string;
|
|
31
|
+
/** A deployment of this environment, from the history: its version is put back in service. */
|
|
32
|
+
deploymentId: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IPauseServiceParams {
|
|
36
|
+
applicationId: string;
|
|
37
|
+
serviceId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IPauseServiceBody {
|
|
40
|
+
environmentId: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IResumeServiceParams {
|
|
44
|
+
applicationId: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IResumeServiceBody {
|
|
48
|
+
environmentId: string;
|
|
49
|
+
}
|
|
@@ -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
|
+
}
|