@abyss-project/reflex 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-configuration.api.d.ts +2 -0
- package/dist/api/service-configuration.api.js +7 -0
- package/dist/api/service-configuration.api.js.map +1 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/types/enum/configuration-read-as.enum.d.ts +4 -0
- package/dist/types/enum/configuration-read-as.enum.js +9 -0
- package/dist/types/enum/configuration-read-as.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +3 -1
- package/dist/types/enum/index.js +3 -1
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/vault-value-source.enum.d.ts +6 -0
- package/dist/types/enum/vault-value-source.enum.js +11 -0
- package/dist/types/enum/vault-value-source.enum.js.map +1 -0
- package/dist/types/enum/vault-visibility.enum.d.ts +4 -0
- package/dist/types/enum/vault-visibility.enum.js +9 -0
- package/dist/types/enum/vault-visibility.enum.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +1 -1
- package/dist/types/interface/api/requests/index.js +1 -1
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-configuration.request.d.ts +4 -0
- package/dist/types/interface/api/requests/{service-variable.request.js → service-configuration.request.js} +1 -1
- package/dist/types/interface/api/requests/service-configuration.request.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +1 -1
- package/dist/types/interface/api/responses/index.js +1 -1
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-configuration.response.d.ts +6 -0
- package/dist/types/interface/api/responses/{service-variable.response.js → service-configuration.response.js} +1 -1
- package/dist/types/interface/api/responses/service-configuration.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +1 -1
- package/dist/types/interface/models/index.js +1 -1
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-service-configuration.model.d.ts +9 -0
- package/dist/types/interface/models/{reflex-service-variable.model.js → reflex-service-configuration.model.js} +1 -1
- package/dist/types/interface/models/reflex-service-configuration.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +0 -2
- package/dist/types/interface/models/reflex-service.model.js +0 -2
- package/dist/types/interface/models/reflex-service.model.js.map +1 -1
- package/package.json +1 -1
- package/src/api/function-run.api.ts +38 -38
- package/src/api/function-version.api.ts +48 -48
- package/src/api/function.api.test.ts +249 -249
- package/src/api/index.ts +1 -1
- package/src/api/service-configuration.api.ts +16 -0
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-route.api.ts +72 -72
- package/src/api/service-version.api.ts +39 -39
- package/src/api/service.api.test.ts +209 -234
- package/src/api/service.api.ts +55 -55
- package/src/index.ts +190 -196
- package/src/types/enum/configuration-read-as.enum.ts +5 -0
- package/src/types/enum/execution-mode.enum.ts +9 -9
- package/src/types/enum/index.ts +3 -1
- package/src/types/enum/reflex-error-code.enum.ts +25 -25
- package/src/types/enum/route-method.enum.ts +9 -9
- 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 +7 -7
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/enum/vault-value-source.enum.ts +12 -0
- package/src/types/enum/vault-visibility.enum.ts +5 -0
- package/src/types/interface/api/requests/function-run.request.ts +26 -26
- 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 +1 -1
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -0
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-route.request.ts +44 -44
- package/src/types/interface/api/requests/service-version.request.ts +19 -19
- package/src/types/interface/api/requests/service.request.ts +39 -39
- package/src/types/interface/api/responses/function-version.response.ts +31 -31
- package/src/types/interface/api/responses/index.ts +1 -1
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -0
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-version.response.ts +33 -33
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/models/index.ts +1 -1
- package/src/types/interface/models/reflex-function.model.ts +16 -16
- package/src/types/interface/models/reflex-route.model.ts +19 -19
- package/src/types/interface/models/reflex-run.model.ts +164 -164
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -0
- package/src/types/interface/models/reflex-service-deployment.model.ts +29 -29
- package/src/types/interface/models/reflex-service-version.model.ts +43 -43
- package/src/types/interface/models/reflex-service.model.ts +43 -46
- package/dist/api/service-variable.api.d.ts +0 -5
- package/dist/api/service-variable.api.js +0 -16
- package/dist/api/service-variable.api.js.map +0 -1
- package/dist/types/enum/secret-source.enum.d.ts +0 -5
- package/dist/types/enum/secret-source.enum.js +0 -10
- package/dist/types/enum/secret-source.enum.js.map +0 -1
- package/dist/types/interface/api/requests/service-variable.request.d.ts +0 -23
- package/dist/types/interface/api/requests/service-variable.request.js.map +0 -1
- package/dist/types/interface/api/responses/service-variable.response.d.ts +0 -22
- package/dist/types/interface/api/responses/service-variable.response.js.map +0 -1
- package/dist/types/interface/models/reflex-service-variable.model.d.ts +0 -10
- package/dist/types/interface/models/reflex-service-variable.model.js.map +0 -1
- package/src/api/service-variable.api.ts +0 -58
- package/src/types/enum/secret-source.enum.ts +0 -9
- package/src/types/interface/api/requests/service-variable.request.ts +0 -29
- package/src/types/interface/api/responses/service-variable.response.ts +0 -31
- package/src/types/interface/models/reflex-service-variable.model.ts +0 -16
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { RunMode } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionRunParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IListFunctionRunQuery {
|
|
8
|
-
mode?: RunMode;
|
|
9
|
-
/** 1 to 100, 50 by default. */
|
|
10
|
-
limit?: number;
|
|
11
|
-
/** Runs skipped, newest first; 0 by default. */
|
|
12
|
-
offset?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IGetFunctionRunParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
functionId: string;
|
|
18
|
-
runId: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IGetFunctionRunStateParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
functionId: string;
|
|
24
|
-
/** The `executionId` an async route answered with: the id of the live run. */
|
|
25
|
-
runId: string;
|
|
26
|
-
}
|
|
1
|
+
import type { RunMode } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionRunParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IListFunctionRunQuery {
|
|
8
|
+
mode?: RunMode;
|
|
9
|
+
/** 1 to 100, 50 by default. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Runs skipped, newest first; 0 by default. */
|
|
12
|
+
offset?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IGetFunctionRunParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
functionId: string;
|
|
18
|
+
runId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IGetFunctionRunStateParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
functionId: string;
|
|
24
|
+
/** The `executionId` an async route answered with: the id of the live run. */
|
|
25
|
+
runId: string;
|
|
26
|
+
}
|
|
@@ -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,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,44 +1,44 @@
|
|
|
1
|
-
import type { RouteMethod, TriggerAccessMode } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IListServiceRouteParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
serviceId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICreateServiceRouteParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
serviceId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ICreateServiceRouteBody {
|
|
13
|
-
/** `ANY` only in a `FUNCTIONS` Service. */
|
|
14
|
-
method: RouteMethod;
|
|
15
|
-
/** Segments of `[a-z0-9._~-]` or `:param` joined by `/`, 20 at most; must not hide another route. */
|
|
16
|
-
path: string;
|
|
17
|
-
/** A function of the same Service. */
|
|
18
|
-
functionId: string;
|
|
19
|
-
accessMode: TriggerAccessMode;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface IUpdateServiceRouteParams {
|
|
23
|
-
applicationId: string;
|
|
24
|
-
serviceId: string;
|
|
25
|
-
routeId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IUpdateServiceRouteBody {
|
|
28
|
-
method?: RouteMethod;
|
|
29
|
-
path?: string;
|
|
30
|
-
functionId?: string;
|
|
31
|
-
accessMode?: TriggerAccessMode;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IDeleteServiceRouteParams {
|
|
35
|
-
applicationId: string;
|
|
36
|
-
serviceId: string;
|
|
37
|
-
routeId: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface IRotateServiceRouteParams {
|
|
41
|
-
applicationId: string;
|
|
42
|
-
serviceId: string;
|
|
43
|
-
routeId: string;
|
|
44
|
-
}
|
|
1
|
+
import type { RouteMethod, TriggerAccessMode } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IListServiceRouteParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ICreateServiceRouteParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
serviceId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateServiceRouteBody {
|
|
13
|
+
/** `ANY` only in a `FUNCTIONS` Service. */
|
|
14
|
+
method: RouteMethod;
|
|
15
|
+
/** Segments of `[a-z0-9._~-]` or `:param` joined by `/`, 20 at most; must not hide another route. */
|
|
16
|
+
path: string;
|
|
17
|
+
/** A function of the same Service. */
|
|
18
|
+
functionId: string;
|
|
19
|
+
accessMode: TriggerAccessMode;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IUpdateServiceRouteParams {
|
|
23
|
+
applicationId: string;
|
|
24
|
+
serviceId: string;
|
|
25
|
+
routeId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IUpdateServiceRouteBody {
|
|
28
|
+
method?: RouteMethod;
|
|
29
|
+
path?: string;
|
|
30
|
+
functionId?: string;
|
|
31
|
+
accessMode?: TriggerAccessMode;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IDeleteServiceRouteParams {
|
|
35
|
+
applicationId: string;
|
|
36
|
+
serviceId: string;
|
|
37
|
+
routeId: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface IRotateServiceRouteParams {
|
|
41
|
+
applicationId: string;
|
|
42
|
+
serviceId: string;
|
|
43
|
+
routeId: string;
|
|
44
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
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 IGetServiceVersionParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
serviceId: string;
|
|
18
|
-
versionId: string;
|
|
19
|
-
}
|
|
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 IGetServiceVersionParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
serviceId: string;
|
|
18
|
+
versionId: string;
|
|
19
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
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
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IGetServiceParams {
|
|
20
|
-
applicationId: string;
|
|
21
|
-
serviceId: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IUpdateServiceParams {
|
|
25
|
-
applicationId: string;
|
|
26
|
-
serviceId: string;
|
|
27
|
-
}
|
|
28
|
-
/** Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. */
|
|
29
|
-
export interface IUpdateServiceBody {
|
|
30
|
-
name?: string;
|
|
31
|
-
cors?: IReflexServiceCors;
|
|
32
|
-
/** 1 to 6000. */
|
|
33
|
-
rateLimitPerIpPerMinute?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface IDeleteServiceParams {
|
|
37
|
-
applicationId: string;
|
|
38
|
-
serviceId: string;
|
|
39
|
-
}
|
|
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
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IGetServiceParams {
|
|
20
|
+
applicationId: string;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IUpdateServiceParams {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
serviceId: string;
|
|
27
|
+
}
|
|
28
|
+
/** Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. */
|
|
29
|
+
export interface IUpdateServiceBody {
|
|
30
|
+
name?: string;
|
|
31
|
+
cors?: IReflexServiceCors;
|
|
32
|
+
/** 1 to 6000. */
|
|
33
|
+
rateLimitPerIpPerMinute?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface IDeleteServiceParams {
|
|
37
|
+
applicationId: string;
|
|
38
|
+
serviceId: string;
|
|
39
|
+
}
|
|
@@ -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>;
|
|
@@ -8,4 +8,4 @@ export * from './service.response';
|
|
|
8
8
|
export * from './service-route.response';
|
|
9
9
|
export * from './service-version.response';
|
|
10
10
|
export * from './service-deployment.response';
|
|
11
|
-
export * from './service-
|
|
11
|
+
export * from './service-configuration.response';
|
|
@@ -0,0 +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,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>;
|