@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,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,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
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IDeleteServiceParams {
|
|
44
|
-
applicationId: string;
|
|
45
|
-
serviceId: string;
|
|
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
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IDeleteServiceParams {
|
|
44
|
+
applicationId: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
}
|
|
@@ -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,17 +1,17 @@
|
|
|
1
|
-
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionAccessData {
|
|
5
|
-
grants: IReflexAccessGrant[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
-
|
|
9
|
-
export interface IGrantFunctionAccessData {
|
|
10
|
-
grant: IReflexAccessGrant;
|
|
11
|
-
}
|
|
12
|
-
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
-
|
|
14
|
-
export interface IRevokeFunctionAccessData {
|
|
15
|
-
grant: IReflexAccessGrant;
|
|
16
|
-
}
|
|
17
|
-
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
1
|
+
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionAccessData {
|
|
5
|
+
grants: IReflexAccessGrant[];
|
|
6
|
+
}
|
|
7
|
+
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
+
|
|
9
|
+
export interface IGrantFunctionAccessData {
|
|
10
|
+
grant: IReflexAccessGrant;
|
|
11
|
+
}
|
|
12
|
+
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
+
|
|
14
|
+
export interface IRevokeFunctionAccessData {
|
|
15
|
+
grant: IReflexAccessGrant;
|
|
16
|
+
}
|
|
17
|
+
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionRunData {
|
|
5
|
-
/** Newest first. */
|
|
6
|
-
runs: IReflexRun[];
|
|
7
|
-
}
|
|
8
|
-
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
-
|
|
10
|
-
export interface IGetFunctionRunData {
|
|
11
|
-
run: IReflexRunDetail;
|
|
12
|
-
}
|
|
13
|
-
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
-
|
|
15
|
-
export interface IGetFunctionRunStateData {
|
|
16
|
-
state: IReflexExecutionState;
|
|
17
|
-
}
|
|
18
|
-
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
1
|
+
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionRunData {
|
|
5
|
+
/** Newest first. */
|
|
6
|
+
runs: IReflexRun[];
|
|
7
|
+
}
|
|
8
|
+
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
+
|
|
10
|
+
export interface IGetFunctionRunData {
|
|
11
|
+
run: IReflexRunDetail;
|
|
12
|
+
}
|
|
13
|
+
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
+
|
|
15
|
+
export interface IGetFunctionRunStateData {
|
|
16
|
+
state: IReflexExecutionState;
|
|
17
|
+
}
|
|
18
|
+
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexEffectiveExecutionSettings,
|
|
3
|
-
IReflexExecutionSettings,
|
|
4
|
-
IReflexExecutionSettingsValues,
|
|
5
|
-
IReflexPriceList,
|
|
6
|
-
} from '../../models';
|
|
7
|
-
import type { IResponse } from '../response';
|
|
8
|
-
|
|
9
|
-
export interface IGetFunctionSettingsData {
|
|
10
|
-
/** The default of the function; null when none is set. */
|
|
11
|
-
default: IReflexExecutionSettings | null;
|
|
12
|
-
/** The override of each environment that has one. */
|
|
13
|
-
environments: IReflexExecutionSettings[];
|
|
14
|
-
/** What each environment of the application runs with. */
|
|
15
|
-
effective: IReflexEffectiveExecutionSettings[];
|
|
16
|
-
/** What applies when neither the environment nor the function sets anything. */
|
|
17
|
-
builtIn: IReflexExecutionSettingsValues;
|
|
18
|
-
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
19
|
-
priceList: IReflexPriceList;
|
|
20
|
-
}
|
|
21
|
-
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
22
|
-
|
|
23
|
-
export interface ISetFunctionDefaultSettingsData {
|
|
24
|
-
settings: IReflexExecutionSettings;
|
|
25
|
-
}
|
|
26
|
-
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
27
|
-
|
|
28
|
-
export interface ISetFunctionEnvironmentSettingsData {
|
|
29
|
-
settings: IReflexExecutionSettings;
|
|
30
|
-
}
|
|
31
|
-
export type ISetFunctionEnvironmentSettingsResponse =
|
|
32
|
-
IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
33
|
-
|
|
34
|
-
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
35
|
-
export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
36
|
-
IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
1
|
+
import type {
|
|
2
|
+
IReflexEffectiveExecutionSettings,
|
|
3
|
+
IReflexExecutionSettings,
|
|
4
|
+
IReflexExecutionSettingsValues,
|
|
5
|
+
IReflexPriceList,
|
|
6
|
+
} from '../../models';
|
|
7
|
+
import type { IResponse } from '../response';
|
|
8
|
+
|
|
9
|
+
export interface IGetFunctionSettingsData {
|
|
10
|
+
/** The default of the function; null when none is set. */
|
|
11
|
+
default: IReflexExecutionSettings | null;
|
|
12
|
+
/** The override of each environment that has one. */
|
|
13
|
+
environments: IReflexExecutionSettings[];
|
|
14
|
+
/** What each environment of the application runs with. */
|
|
15
|
+
effective: IReflexEffectiveExecutionSettings[];
|
|
16
|
+
/** What applies when neither the environment nor the function sets anything. */
|
|
17
|
+
builtIn: IReflexExecutionSettingsValues;
|
|
18
|
+
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
19
|
+
priceList: IReflexPriceList;
|
|
20
|
+
}
|
|
21
|
+
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
22
|
+
|
|
23
|
+
export interface ISetFunctionDefaultSettingsData {
|
|
24
|
+
settings: IReflexExecutionSettings;
|
|
25
|
+
}
|
|
26
|
+
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
27
|
+
|
|
28
|
+
export interface ISetFunctionEnvironmentSettingsData {
|
|
29
|
+
settings: IReflexExecutionSettings;
|
|
30
|
+
}
|
|
31
|
+
export type ISetFunctionEnvironmentSettingsResponse =
|
|
32
|
+
IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
33
|
+
|
|
34
|
+
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
35
|
+
export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
36
|
+
IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { IReflexRun } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface ISimulateFunctionData {
|
|
5
|
-
run: IReflexRun;
|
|
6
|
-
}
|
|
7
|
-
export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
|
|
8
|
-
|
|
9
|
-
export interface IDryRunFunctionData {
|
|
10
|
-
run: IReflexRun;
|
|
11
|
-
}
|
|
12
|
-
export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
|
|
1
|
+
import type { IReflexRun } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface ISimulateFunctionData {
|
|
5
|
+
run: IReflexRun;
|
|
6
|
+
}
|
|
7
|
+
export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
|
|
8
|
+
|
|
9
|
+
export interface IDryRunFunctionData {
|
|
10
|
+
run: IReflexRun;
|
|
11
|
+
}
|
|
12
|
+
export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexFunctionVersion,
|
|
3
|
-
IReflexRunningVersionHeapPeaks,
|
|
4
|
-
IReflexStepStats,
|
|
5
|
-
} from '../../models';
|
|
6
|
-
import type { IResponse } from '../response';
|
|
7
|
-
|
|
8
|
-
export interface IListFunctionVersionData {
|
|
9
|
-
versions: IReflexFunctionVersion[];
|
|
10
|
-
}
|
|
11
|
-
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
12
|
-
|
|
13
|
-
export interface IGetFunctionVersionData {
|
|
14
|
-
version: IReflexFunctionVersion;
|
|
15
|
-
}
|
|
16
|
-
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
17
|
-
|
|
18
|
-
export interface IGetFunctionVersionStepStatsData {
|
|
19
|
-
versionId: string;
|
|
20
|
-
/** The environment asked for; null for every environment. */
|
|
21
|
-
environmentId: string | null;
|
|
22
|
-
/** The window the statistics cover: the retention of the live runs. */
|
|
23
|
-
windowDays: number;
|
|
24
|
-
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
25
|
-
executions: number;
|
|
26
|
-
/** One entry per step that ran, most costly first. */
|
|
27
|
-
steps: IReflexStepStats[];
|
|
28
|
-
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
29
|
-
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
30
|
-
}
|
|
31
|
-
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
1
|
+
import type {
|
|
2
|
+
IReflexFunctionVersion,
|
|
3
|
+
IReflexRunningVersionHeapPeaks,
|
|
4
|
+
IReflexStepStats,
|
|
5
|
+
} from '../../models';
|
|
6
|
+
import type { IResponse } from '../response';
|
|
7
|
+
|
|
8
|
+
export interface IListFunctionVersionData {
|
|
9
|
+
versions: IReflexFunctionVersion[];
|
|
10
|
+
}
|
|
11
|
+
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
12
|
+
|
|
13
|
+
export interface IGetFunctionVersionData {
|
|
14
|
+
version: IReflexFunctionVersion;
|
|
15
|
+
}
|
|
16
|
+
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
17
|
+
|
|
18
|
+
export interface IGetFunctionVersionStepStatsData {
|
|
19
|
+
versionId: string;
|
|
20
|
+
/** The environment asked for; null for every environment. */
|
|
21
|
+
environmentId: string | null;
|
|
22
|
+
/** The window the statistics cover: the retention of the live runs. */
|
|
23
|
+
windowDays: number;
|
|
24
|
+
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
25
|
+
executions: number;
|
|
26
|
+
/** One entry per step that ran, most costly first. */
|
|
27
|
+
steps: IReflexStepStats[];
|
|
28
|
+
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
29
|
+
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
30
|
+
}
|
|
31
|
+
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { IReflexFunction } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionData {
|
|
5
|
-
functions: IReflexFunction[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionResponse = IResponse<IListFunctionData>;
|
|
8
|
-
|
|
9
|
-
export interface ICreateFunctionData {
|
|
10
|
-
function: IReflexFunction;
|
|
11
|
-
}
|
|
12
|
-
export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
|
|
13
|
-
|
|
14
|
-
export interface IGetFunctionData {
|
|
15
|
-
function: IReflexFunction;
|
|
16
|
-
}
|
|
17
|
-
export type IGetFunctionResponse = IResponse<IGetFunctionData>;
|
|
18
|
-
|
|
19
|
-
export interface IUpdateFunctionData {
|
|
20
|
-
function: IReflexFunction;
|
|
21
|
-
}
|
|
22
|
-
export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
|
|
23
|
-
|
|
24
|
-
export type IDeleteFunctionData = Record<string, never>;
|
|
25
|
-
export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
|
|
1
|
+
import type { IReflexFunction } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionData {
|
|
5
|
+
functions: IReflexFunction[];
|
|
6
|
+
}
|
|
7
|
+
export type IListFunctionResponse = IResponse<IListFunctionData>;
|
|
8
|
+
|
|
9
|
+
export interface ICreateFunctionData {
|
|
10
|
+
function: IReflexFunction;
|
|
11
|
+
}
|
|
12
|
+
export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
|
|
13
|
+
|
|
14
|
+
export interface IGetFunctionData {
|
|
15
|
+
function: IReflexFunction;
|
|
16
|
+
}
|
|
17
|
+
export type IGetFunctionResponse = IResponse<IGetFunctionData>;
|
|
18
|
+
|
|
19
|
+
export interface IUpdateFunctionData {
|
|
20
|
+
function: IReflexFunction;
|
|
21
|
+
}
|
|
22
|
+
export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
|
|
23
|
+
|
|
24
|
+
export type IDeleteFunctionData = Record<string, never>;
|
|
25
|
+
export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './function.response';
|
|
2
|
-
export * from './function-access.response';
|
|
3
|
-
export * from './function-test.response';
|
|
4
|
-
export * from './function-version.response';
|
|
5
|
-
export * from './function-run.response';
|
|
6
|
-
export * from './function-settings.response';
|
|
7
|
-
export * from './service.response';
|
|
8
|
-
export * from './service-route.response';
|
|
9
|
-
export * from './service-version.response';
|
|
10
|
-
export * from './service-deployment.response';
|
|
11
|
-
export * from './service-configuration.response';
|
|
12
|
-
export * from './service-discord.response';
|
|
13
|
-
export * from './service-task.response';
|
|
14
|
-
export * from './service-discord-event.response';
|
|
15
|
-
export * from './service-insights.response';
|
|
1
|
+
export * from './function.response';
|
|
2
|
+
export * from './function-access.response';
|
|
3
|
+
export * from './function-test.response';
|
|
4
|
+
export * from './function-version.response';
|
|
5
|
+
export * from './function-run.response';
|
|
6
|
+
export * from './function-settings.response';
|
|
7
|
+
export * from './service.response';
|
|
8
|
+
export * from './service-route.response';
|
|
9
|
+
export * from './service-version.response';
|
|
10
|
+
export * from './service-deployment.response';
|
|
11
|
+
export * from './service-configuration.response';
|
|
12
|
+
export * from './service-discord.response';
|
|
13
|
+
export * from './service-task.response';
|
|
14
|
+
export * from './service-discord-event.response';
|
|
15
|
+
export * from './service-insights.response';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IReflexServiceConfigurationEntry } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceConfigurationData {
|
|
5
|
-
/** One entry per key and way of reading it, by key then `readAs`. */
|
|
6
|
-
configuration: IReflexServiceConfigurationEntry[];
|
|
7
|
-
}
|
|
8
|
-
export type IListServiceConfigurationResponse = IResponse<IListServiceConfigurationData>;
|
|
1
|
+
import type { IReflexServiceConfigurationEntry } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceConfigurationData {
|
|
5
|
+
/** One entry per key and way of reading it, by key then `readAs`. */
|
|
6
|
+
configuration: IReflexServiceConfigurationEntry[];
|
|
7
|
+
}
|
|
8
|
+
export type IListServiceConfigurationResponse = IResponse<IListServiceConfigurationData>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import type { IReflexServiceDeployment } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceDeploymentData {
|
|
5
|
-
/** The current deployment of each environment. */
|
|
6
|
-
current: IReflexServiceDeployment[];
|
|
7
|
-
/** Every gesture, newest first, one page of it. */
|
|
8
|
-
history: IReflexServiceDeployment[];
|
|
9
|
-
/** Gestures in the history, every page. */
|
|
10
|
-
total: number;
|
|
11
|
-
}
|
|
12
|
-
export type IListServiceDeploymentResponse = IResponse<IListServiceDeploymentData>;
|
|
13
|
-
|
|
14
|
-
export interface IGoLiveServiceData {
|
|
15
|
-
deployment: IReflexServiceDeployment;
|
|
16
|
-
}
|
|
17
|
-
export type IGoLiveServiceResponse = IResponse<IGoLiveServiceData>;
|
|
18
|
-
|
|
19
|
-
export interface IRollbackServiceData {
|
|
20
|
-
deployment: IReflexServiceDeployment;
|
|
21
|
-
}
|
|
22
|
-
export type IRollbackServiceResponse = IResponse<IRollbackServiceData>;
|
|
23
|
-
|
|
24
|
-
export interface IPauseServiceData {
|
|
25
|
-
deployment: IReflexServiceDeployment;
|
|
26
|
-
}
|
|
27
|
-
export type IPauseServiceResponse = IResponse<IPauseServiceData>;
|
|
28
|
-
|
|
29
|
-
export interface IResumeServiceData {
|
|
30
|
-
deployment: IReflexServiceDeployment;
|
|
31
|
-
}
|
|
32
|
-
export type IResumeServiceResponse = IResponse<IResumeServiceData>;
|
|
1
|
+
import type { IReflexServiceDeployment } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceDeploymentData {
|
|
5
|
+
/** The current deployment of each environment. */
|
|
6
|
+
current: IReflexServiceDeployment[];
|
|
7
|
+
/** Every gesture, newest first, one page of it. */
|
|
8
|
+
history: IReflexServiceDeployment[];
|
|
9
|
+
/** Gestures in the history, every page. */
|
|
10
|
+
total: number;
|
|
11
|
+
}
|
|
12
|
+
export type IListServiceDeploymentResponse = IResponse<IListServiceDeploymentData>;
|
|
13
|
+
|
|
14
|
+
export interface IGoLiveServiceData {
|
|
15
|
+
deployment: IReflexServiceDeployment;
|
|
16
|
+
}
|
|
17
|
+
export type IGoLiveServiceResponse = IResponse<IGoLiveServiceData>;
|
|
18
|
+
|
|
19
|
+
export interface IRollbackServiceData {
|
|
20
|
+
deployment: IReflexServiceDeployment;
|
|
21
|
+
}
|
|
22
|
+
export type IRollbackServiceResponse = IResponse<IRollbackServiceData>;
|
|
23
|
+
|
|
24
|
+
export interface IPauseServiceData {
|
|
25
|
+
deployment: IReflexServiceDeployment;
|
|
26
|
+
}
|
|
27
|
+
export type IPauseServiceResponse = IResponse<IPauseServiceData>;
|
|
28
|
+
|
|
29
|
+
export interface IResumeServiceData {
|
|
30
|
+
deployment: IReflexServiceDeployment;
|
|
31
|
+
}
|
|
32
|
+
export type IResumeServiceResponse = IResponse<IResumeServiceData>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { IReflexDiscordEvent, IReflexDiscordEventLogPage } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceDiscordEventData {
|
|
5
|
-
/** By name. */
|
|
6
|
-
events: IReflexDiscordEvent[];
|
|
7
|
-
}
|
|
8
|
-
export type IListServiceDiscordEventResponse = IResponse<IListServiceDiscordEventData>;
|
|
9
|
-
|
|
10
|
-
export interface ICreateServiceDiscordEventData {
|
|
11
|
-
event: IReflexDiscordEvent;
|
|
12
|
-
}
|
|
13
|
-
export type ICreateServiceDiscordEventResponse = IResponse<ICreateServiceDiscordEventData>;
|
|
14
|
-
|
|
15
|
-
export interface IUpdateServiceDiscordEventData {
|
|
16
|
-
event: IReflexDiscordEvent;
|
|
17
|
-
}
|
|
18
|
-
export type IUpdateServiceDiscordEventResponse = IResponse<IUpdateServiceDiscordEventData>;
|
|
19
|
-
|
|
20
|
-
export type IDeleteServiceDiscordEventData = Record<string, never>;
|
|
21
|
-
export type IDeleteServiceDiscordEventResponse = IResponse<IDeleteServiceDiscordEventData>;
|
|
22
|
-
|
|
23
|
-
export type IListServiceDiscordEventLogData = IReflexDiscordEventLogPage;
|
|
24
|
-
export type IListServiceDiscordEventLogResponse = IResponse<IListServiceDiscordEventLogData>;
|
|
1
|
+
import type { IReflexDiscordEvent, IReflexDiscordEventLogPage } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceDiscordEventData {
|
|
5
|
+
/** By name. */
|
|
6
|
+
events: IReflexDiscordEvent[];
|
|
7
|
+
}
|
|
8
|
+
export type IListServiceDiscordEventResponse = IResponse<IListServiceDiscordEventData>;
|
|
9
|
+
|
|
10
|
+
export interface ICreateServiceDiscordEventData {
|
|
11
|
+
event: IReflexDiscordEvent;
|
|
12
|
+
}
|
|
13
|
+
export type ICreateServiceDiscordEventResponse = IResponse<ICreateServiceDiscordEventData>;
|
|
14
|
+
|
|
15
|
+
export interface IUpdateServiceDiscordEventData {
|
|
16
|
+
event: IReflexDiscordEvent;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateServiceDiscordEventResponse = IResponse<IUpdateServiceDiscordEventData>;
|
|
19
|
+
|
|
20
|
+
export type IDeleteServiceDiscordEventData = Record<string, never>;
|
|
21
|
+
export type IDeleteServiceDiscordEventResponse = IResponse<IDeleteServiceDiscordEventData>;
|
|
22
|
+
|
|
23
|
+
export type IListServiceDiscordEventLogData = IReflexDiscordEventLogPage;
|
|
24
|
+
export type IListServiceDiscordEventLogResponse = IResponse<IListServiceDiscordEventLogData>;
|