@abyss-project/reflex 6.0.4 → 6.0.5
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/interface/models/reflex-service-limits.model.d.ts +5 -2
- package/jest.config.ts +11 -11
- package/package.json +1 -1
- package/src/api/alert-rule.api.test.ts +72 -72
- package/src/api/alert-rule.api.ts +57 -57
- package/src/api/application-insights.api.test.ts +42 -42
- package/src/api/application-insights.api.ts +38 -38
- package/src/api/application-run-settings.api.test.ts +51 -51
- package/src/api/application-run-settings.api.ts +30 -30
- package/src/api/function-access.api.ts +87 -87
- 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 +74 -74
- package/src/api/function-template.api.test.ts +72 -72
- package/src/api/function-template.api.ts +52 -52
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +66 -66
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/route-stats.api.test.ts +45 -45
- package/src/api/route-stats.api.ts +36 -36
- 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-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- 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/insights/index.ts +1 -1
- package/src/insights/percentiles.test.ts +75 -75
- package/src/insights/percentiles.ts +37 -37
- 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/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 +11 -11
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-settings.request.ts +34 -34
- package/src/types/interface/api/requests/function-template.request.ts +29 -29
- package/src/types/interface/api/requests/function-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 +46 -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 +18 -18
- 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/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-settings.model.ts +28 -28
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
- package/src/types/interface/models/reflex-service-limits.model.ts +17 -8
- 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,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,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>;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import type { IReflexAccessGrant, IReflexAccessRequest } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionAccessData {
|
|
5
|
-
grants: IReflexAccessGrant[];
|
|
6
|
-
/** The requests of the function, every status, newest first. */
|
|
7
|
-
requests: IReflexAccessRequest[];
|
|
8
|
-
/** The declaration keys of the saved draft the caller may grant. */
|
|
9
|
-
grantable: string[];
|
|
10
|
-
}
|
|
11
|
-
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
12
|
-
|
|
13
|
-
export interface IGrantFunctionAccessData {
|
|
14
|
-
grant: IReflexAccessGrant;
|
|
15
|
-
}
|
|
16
|
-
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
17
|
-
|
|
18
|
-
export interface IRevokeFunctionAccessData {
|
|
19
|
-
grant: IReflexAccessGrant;
|
|
20
|
-
}
|
|
21
|
-
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
22
|
-
|
|
23
|
-
export interface IGrantAllFunctionAccessData {
|
|
24
|
-
/** What the caller could grant, now granted. */
|
|
25
|
-
granted: IReflexAccessGrant[];
|
|
26
|
-
/** The pending requests for the rest (an existing pending request is reused). */
|
|
27
|
-
requested: IReflexAccessRequest[];
|
|
28
|
-
}
|
|
29
|
-
export type IGrantAllFunctionAccessResponse = IResponse<IGrantAllFunctionAccessData>;
|
|
30
|
-
|
|
31
|
-
export interface IRequestFunctionAccessData {
|
|
32
|
-
request: IReflexAccessRequest;
|
|
33
|
-
}
|
|
34
|
-
export type IRequestFunctionAccessResponse = IResponse<IRequestFunctionAccessData>;
|
|
35
|
-
|
|
36
|
-
export interface IGrantFunctionAccessRequestData {
|
|
37
|
-
request: IReflexAccessRequest;
|
|
38
|
-
grant: IReflexAccessGrant;
|
|
39
|
-
}
|
|
40
|
-
export type IGrantFunctionAccessRequestResponse = IResponse<IGrantFunctionAccessRequestData>;
|
|
41
|
-
|
|
42
|
-
export interface IDismissFunctionAccessRequestData {
|
|
43
|
-
request: IReflexAccessRequest;
|
|
44
|
-
}
|
|
45
|
-
export type IDismissFunctionAccessRequestResponse = IResponse<IDismissFunctionAccessRequestData>;
|
|
1
|
+
import type { IReflexAccessGrant, IReflexAccessRequest } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionAccessData {
|
|
5
|
+
grants: IReflexAccessGrant[];
|
|
6
|
+
/** The requests of the function, every status, newest first. */
|
|
7
|
+
requests: IReflexAccessRequest[];
|
|
8
|
+
/** The declaration keys of the saved draft the caller may grant. */
|
|
9
|
+
grantable: string[];
|
|
10
|
+
}
|
|
11
|
+
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
12
|
+
|
|
13
|
+
export interface IGrantFunctionAccessData {
|
|
14
|
+
grant: IReflexAccessGrant;
|
|
15
|
+
}
|
|
16
|
+
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
17
|
+
|
|
18
|
+
export interface IRevokeFunctionAccessData {
|
|
19
|
+
grant: IReflexAccessGrant;
|
|
20
|
+
}
|
|
21
|
+
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
22
|
+
|
|
23
|
+
export interface IGrantAllFunctionAccessData {
|
|
24
|
+
/** What the caller could grant, now granted. */
|
|
25
|
+
granted: IReflexAccessGrant[];
|
|
26
|
+
/** The pending requests for the rest (an existing pending request is reused). */
|
|
27
|
+
requested: IReflexAccessRequest[];
|
|
28
|
+
}
|
|
29
|
+
export type IGrantAllFunctionAccessResponse = IResponse<IGrantAllFunctionAccessData>;
|
|
30
|
+
|
|
31
|
+
export interface IRequestFunctionAccessData {
|
|
32
|
+
request: IReflexAccessRequest;
|
|
33
|
+
}
|
|
34
|
+
export type IRequestFunctionAccessResponse = IResponse<IRequestFunctionAccessData>;
|
|
35
|
+
|
|
36
|
+
export interface IGrantFunctionAccessRequestData {
|
|
37
|
+
request: IReflexAccessRequest;
|
|
38
|
+
grant: IReflexAccessGrant;
|
|
39
|
+
}
|
|
40
|
+
export type IGrantFunctionAccessRequestResponse = IResponse<IGrantFunctionAccessRequestData>;
|
|
41
|
+
|
|
42
|
+
export interface IDismissFunctionAccessRequestData {
|
|
43
|
+
request: IReflexAccessRequest;
|
|
44
|
+
}
|
|
45
|
+
export type IDismissFunctionAccessRequestResponse = IResponse<IDismissFunctionAccessRequestData>;
|
|
@@ -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,21 +1,21 @@
|
|
|
1
|
-
import type { IReflexFunctionTemplate } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionTemplateData {
|
|
5
|
-
/** Sorted by name. */
|
|
6
|
-
templates: IReflexFunctionTemplate[];
|
|
7
|
-
}
|
|
8
|
-
export type IListFunctionTemplateResponse = IResponse<IListFunctionTemplateData>;
|
|
9
|
-
|
|
10
|
-
export interface ICreateFunctionTemplateData {
|
|
11
|
-
template: IReflexFunctionTemplate;
|
|
12
|
-
}
|
|
13
|
-
export type ICreateFunctionTemplateResponse = IResponse<ICreateFunctionTemplateData>;
|
|
14
|
-
|
|
15
|
-
export interface IUpdateFunctionTemplateData {
|
|
16
|
-
template: IReflexFunctionTemplate;
|
|
17
|
-
}
|
|
18
|
-
export type IUpdateFunctionTemplateResponse = IResponse<IUpdateFunctionTemplateData>;
|
|
19
|
-
|
|
20
|
-
export type IDeleteFunctionTemplateData = Record<string, never>;
|
|
21
|
-
export type IDeleteFunctionTemplateResponse = IResponse<IDeleteFunctionTemplateData>;
|
|
1
|
+
import type { IReflexFunctionTemplate } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionTemplateData {
|
|
5
|
+
/** Sorted by name. */
|
|
6
|
+
templates: IReflexFunctionTemplate[];
|
|
7
|
+
}
|
|
8
|
+
export type IListFunctionTemplateResponse = IResponse<IListFunctionTemplateData>;
|
|
9
|
+
|
|
10
|
+
export interface ICreateFunctionTemplateData {
|
|
11
|
+
template: IReflexFunctionTemplate;
|
|
12
|
+
}
|
|
13
|
+
export type ICreateFunctionTemplateResponse = IResponse<ICreateFunctionTemplateData>;
|
|
14
|
+
|
|
15
|
+
export interface IUpdateFunctionTemplateData {
|
|
16
|
+
template: IReflexFunctionTemplate;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateFunctionTemplateResponse = IResponse<IUpdateFunctionTemplateData>;
|
|
19
|
+
|
|
20
|
+
export type IDeleteFunctionTemplateData = Record<string, never>;
|
|
21
|
+
export type IDeleteFunctionTemplateResponse = IResponse<IDeleteFunctionTemplateData>;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexFunction,
|
|
3
|
-
IReflexFunctionVersion,
|
|
4
|
-
IReflexFunctionVersionRow,
|
|
5
|
-
IReflexRunningVersionHeapPeaks,
|
|
6
|
-
IReflexStepStats,
|
|
7
|
-
} from '../../models';
|
|
8
|
-
import type { IResponse } from '../response';
|
|
9
|
-
|
|
10
|
-
export interface IListFunctionVersionData {
|
|
11
|
-
/** The page, newest first. */
|
|
12
|
-
rows: IReflexFunctionVersionRow[];
|
|
13
|
-
/** Versions matching the filters, every page. */
|
|
14
|
-
total: number;
|
|
15
|
-
}
|
|
16
|
-
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
17
|
-
|
|
18
|
-
export interface IGetFunctionVersionData {
|
|
19
|
-
version: IReflexFunctionVersion;
|
|
20
|
-
}
|
|
21
|
-
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
22
|
-
|
|
23
|
-
export interface IGetFunctionVersionStepStatsData {
|
|
24
|
-
versionId: string;
|
|
25
|
-
/** The environment asked for; null for every environment. */
|
|
26
|
-
environmentId: string | null;
|
|
27
|
-
/** The window the statistics cover: the retention of the live runs. */
|
|
28
|
-
windowDays: number;
|
|
29
|
-
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
30
|
-
executions: number;
|
|
31
|
-
/** One entry per step that ran, most costly first. */
|
|
32
|
-
steps: IReflexStepStats[];
|
|
33
|
-
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
34
|
-
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
35
|
-
}
|
|
36
|
-
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
37
|
-
|
|
38
|
-
export interface IOpenFunctionVersionData {
|
|
39
|
-
/** The function, its draft now the definition of the version. */
|
|
40
|
-
function: IReflexFunction;
|
|
41
|
-
}
|
|
42
|
-
export type IOpenFunctionVersionResponse = IResponse<IOpenFunctionVersionData>;
|
|
1
|
+
import type {
|
|
2
|
+
IReflexFunction,
|
|
3
|
+
IReflexFunctionVersion,
|
|
4
|
+
IReflexFunctionVersionRow,
|
|
5
|
+
IReflexRunningVersionHeapPeaks,
|
|
6
|
+
IReflexStepStats,
|
|
7
|
+
} from '../../models';
|
|
8
|
+
import type { IResponse } from '../response';
|
|
9
|
+
|
|
10
|
+
export interface IListFunctionVersionData {
|
|
11
|
+
/** The page, newest first. */
|
|
12
|
+
rows: IReflexFunctionVersionRow[];
|
|
13
|
+
/** Versions matching the filters, every page. */
|
|
14
|
+
total: number;
|
|
15
|
+
}
|
|
16
|
+
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
17
|
+
|
|
18
|
+
export interface IGetFunctionVersionData {
|
|
19
|
+
version: IReflexFunctionVersion;
|
|
20
|
+
}
|
|
21
|
+
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
22
|
+
|
|
23
|
+
export interface IGetFunctionVersionStepStatsData {
|
|
24
|
+
versionId: string;
|
|
25
|
+
/** The environment asked for; null for every environment. */
|
|
26
|
+
environmentId: string | null;
|
|
27
|
+
/** The window the statistics cover: the retention of the live runs. */
|
|
28
|
+
windowDays: number;
|
|
29
|
+
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
30
|
+
executions: number;
|
|
31
|
+
/** One entry per step that ran, most costly first. */
|
|
32
|
+
steps: IReflexStepStats[];
|
|
33
|
+
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
34
|
+
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
35
|
+
}
|
|
36
|
+
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
37
|
+
|
|
38
|
+
export interface IOpenFunctionVersionData {
|
|
39
|
+
/** The function, its draft now the definition of the version. */
|
|
40
|
+
function: IReflexFunction;
|
|
41
|
+
}
|
|
42
|
+
export type IOpenFunctionVersionResponse = IResponse<IOpenFunctionVersionData>;
|
|
@@ -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
|
-
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
-
import type { IReflexRouteInsights, IReflexRouteStatsRow } from '../../models';
|
|
3
|
-
import type { IResponse } from '../response';
|
|
4
|
-
|
|
5
|
-
export interface IGetServiceRouteStatsData {
|
|
6
|
-
period: InsightsPeriod;
|
|
7
|
-
from: Date;
|
|
8
|
-
to: Date;
|
|
9
|
-
/** One row per route of the Service. */
|
|
10
|
-
routes: IReflexRouteStatsRow[];
|
|
11
|
-
}
|
|
12
|
-
export type IGetServiceRouteStatsResponse = IResponse<IGetServiceRouteStatsData>;
|
|
13
|
-
|
|
14
|
-
export type IGetRouteInsightsData = IReflexRouteInsights;
|
|
15
|
-
export type IGetRouteInsightsResponse = IResponse<IGetRouteInsightsData>;
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
import type { IReflexRouteInsights, IReflexRouteStatsRow } from '../../models';
|
|
3
|
+
import type { IResponse } from '../response';
|
|
4
|
+
|
|
5
|
+
export interface IGetServiceRouteStatsData {
|
|
6
|
+
period: InsightsPeriod;
|
|
7
|
+
from: Date;
|
|
8
|
+
to: Date;
|
|
9
|
+
/** One row per route of the Service. */
|
|
10
|
+
routes: IReflexRouteStatsRow[];
|
|
11
|
+
}
|
|
12
|
+
export type IGetServiceRouteStatsResponse = IResponse<IGetServiceRouteStatsData>;
|
|
13
|
+
|
|
14
|
+
export type IGetRouteInsightsData = IReflexRouteInsights;
|
|
15
|
+
export type IGetRouteInsightsResponse = IResponse<IGetRouteInsightsData>;
|
|
@@ -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>;
|