@abyss-project/reflex 4.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-discord.api.d.ts +14 -0
- package/dist/api/service-discord.api.js +38 -0
- package/dist/api/service-discord.api.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/types/enum/discord-activity-type.enum.d.ts +7 -0
- package/dist/types/enum/discord-activity-type.enum.js +12 -0
- package/dist/types/enum/discord-activity-type.enum.js.map +1 -0
- package/dist/types/enum/discord-component-kind.enum.d.ts +4 -0
- package/dist/types/enum/discord-component-kind.enum.js +9 -0
- package/dist/types/enum/discord-component-kind.enum.js.map +1 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.d.ts +5 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.js +10 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.js.map +1 -0
- package/dist/types/enum/discord-gateway-state.enum.d.ts +6 -0
- package/dist/types/enum/discord-gateway-state.enum.js +11 -0
- package/dist/types/enum/discord-gateway-state.enum.js.map +1 -0
- package/dist/types/enum/discord-option-type.enum.d.ts +11 -0
- package/dist/types/enum/discord-option-type.enum.js +16 -0
- package/dist/types/enum/discord-option-type.enum.js.map +1 -0
- package/dist/types/enum/discord-presence-status.enum.d.ts +5 -0
- package/dist/types/enum/discord-presence-status.enum.js +10 -0
- package/dist/types/enum/discord-presence-status.enum.js.map +1 -0
- package/dist/types/enum/discord-sync-status.enum.d.ts +5 -0
- package/dist/types/enum/discord-sync-status.enum.js +10 -0
- package/dist/types/enum/discord-sync-status.enum.js.map +1 -0
- package/dist/types/enum/discord-token-state.enum.d.ts +6 -0
- package/dist/types/enum/discord-token-state.enum.js +11 -0
- package/dist/types/enum/discord-token-state.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +8 -0
- package/dist/types/enum/index.js +8 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +7 -1
- package/dist/types/enum/reflex-error-code.enum.js +6 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/service-type.enum.d.ts +2 -1
- package/dist/types/enum/service-type.enum.js +1 -0
- package/dist/types/enum/service-type.enum.js.map +1 -1
- package/dist/types/interface/api/requests/index.d.ts +1 -0
- package/dist/types/interface/api/requests/index.js +1 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-discord.request.d.ts +97 -0
- package/dist/types/interface/api/requests/service-discord.request.js +3 -0
- package/dist/types/interface/api/requests/service-discord.request.js.map +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +2 -0
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-discord.response.d.ts +50 -0
- package/dist/types/interface/api/responses/service-discord.response.js +3 -0
- package/dist/types/interface/api/responses/service-discord.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-version.response.d.ts +15 -1
- package/dist/types/interface/models/index.d.ts +1 -0
- package/dist/types/interface/models/index.js +1 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-discord.model.d.ts +82 -0
- package/dist/types/interface/models/reflex-discord.model.js +13 -0
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +3 -0
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +5 -1
- package/dist/types/interface/models/reflex-service-version.model.d.ts +6 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
- package/package.json +15 -10
- package/src/api/index.ts +13 -12
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-discord.api.test.ts +170 -0
- package/src/api/service-discord.api.ts +203 -0
- package/src/index.ts +45 -0
- package/src/types/enum/access-grant-status.enum.ts +12 -12
- package/src/types/enum/access-kind.enum.ts +7 -7
- package/src/types/enum/discord-activity-type.enum.ts +9 -0
- package/src/types/enum/discord-component-kind.enum.ts +7 -0
- package/src/types/enum/discord-gateway-failure-code.enum.ts +9 -0
- package/src/types/enum/discord-gateway-state.enum.ts +11 -0
- package/src/types/enum/discord-option-type.enum.ts +12 -0
- package/src/types/enum/discord-presence-status.enum.ts +8 -0
- package/src/types/enum/discord-sync-status.enum.ts +6 -0
- package/src/types/enum/discord-token-state.enum.ts +11 -0
- 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 +8 -0
- package/src/types/enum/reflex-error-code.enum.ts +37 -25
- 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/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 -7
- 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/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 +26 -26
- package/src/types/interface/api/requests/function-settings.request.ts +27 -27
- package/src/types/interface/api/requests/function-test.request.ts +24 -24
- 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 -0
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-discord.request.ts +128 -0
- 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 +46 -39
- 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 +1 -0
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-discord.response.ts +72 -0
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-version.response.ts +62 -33
- 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 +1 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord.model.ts +146 -0
- 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-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 +173 -164
- package/src/types/interface/models/reflex-service-deployment.model.ts +40 -29
- package/src/types/interface/models/reflex-service-version.model.ts +55 -43
- package/src/types/interface/models/reflex-service.model.ts +45 -43
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/** How one step of a live execution ended. */
|
|
2
|
-
export enum RunStepStatus {
|
|
3
|
-
SUCCEEDED = 'SUCCEEDED',
|
|
4
|
-
FAILED = 'FAILED',
|
|
5
|
-
/** The step was running when the pod of the edge or of the runner stopped. */
|
|
6
|
-
INTERRUPTED = 'INTERRUPTED',
|
|
7
|
-
}
|
|
1
|
+
/** How one step of a live execution ended. */
|
|
2
|
+
export enum RunStepStatus {
|
|
3
|
+
SUCCEEDED = 'SUCCEEDED',
|
|
4
|
+
FAILED = 'FAILED',
|
|
5
|
+
/** The step was running when the pod of the edge or of the runner stopped. */
|
|
6
|
+
INTERRUPTED = 'INTERRUPTED',
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** The gesture a deployment row records, one row per gesture in an environment. */
|
|
2
|
-
export enum ServiceDeploymentAction {
|
|
3
|
-
/** A version of the Service put in service. */
|
|
4
|
-
GO_LIVE = 'GO_LIVE',
|
|
5
|
-
/** A version deployed before put back in service. */
|
|
6
|
-
ROLLBACK = 'ROLLBACK',
|
|
7
|
-
/** The Service stops answering (503 SERVICE_PAUSED), its version kept. */
|
|
8
|
-
PAUSE = 'PAUSE',
|
|
9
|
-
/** The paused Service answers again, with the same version. */
|
|
10
|
-
RESUME = 'RESUME',
|
|
11
|
-
}
|
|
1
|
+
/** The gesture a deployment row records, one row per gesture in an environment. */
|
|
2
|
+
export enum ServiceDeploymentAction {
|
|
3
|
+
/** A version of the Service put in service. */
|
|
4
|
+
GO_LIVE = 'GO_LIVE',
|
|
5
|
+
/** A version deployed before put back in service. */
|
|
6
|
+
ROLLBACK = 'ROLLBACK',
|
|
7
|
+
/** The Service stops answering (503 SERVICE_PAUSED), its version kept. */
|
|
8
|
+
PAUSE = 'PAUSE',
|
|
9
|
+
/** The paused Service answers again, with the same version. */
|
|
10
|
+
RESUME = 'RESUME',
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** State of the Service in an environment after a deployment gesture. */
|
|
2
|
-
export enum ServiceDeploymentStatus {
|
|
3
|
-
ACTIVE = 'ACTIVE',
|
|
4
|
-
PAUSED = 'PAUSED',
|
|
5
|
-
}
|
|
1
|
+
/** State of the Service in an environment after a deployment gesture. */
|
|
2
|
+
export enum ServiceDeploymentStatus {
|
|
3
|
+
ACTIVE = 'ACTIVE',
|
|
4
|
+
PAUSED = 'PAUSED',
|
|
5
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/** What a Service exposes. */
|
|
2
|
-
export enum ServiceType {
|
|
3
|
-
/** Routes of a method and a path, each calling one function of the Service. */
|
|
4
|
-
HTTP_API = 'HTTP_API',
|
|
5
|
-
/** Functions, each at a path, answering every method (routes of method `ANY` only). */
|
|
6
|
-
FUNCTIONS = 'FUNCTIONS',
|
|
7
|
-
|
|
1
|
+
/** What a Service exposes. */
|
|
2
|
+
export enum ServiceType {
|
|
3
|
+
/** Routes of a method and a path, each calling one function of the Service. */
|
|
4
|
+
HTTP_API = 'HTTP_API',
|
|
5
|
+
/** Functions, each at a path, answering every method (routes of method `ANY` only). */
|
|
6
|
+
FUNCTIONS = 'FUNCTIONS',
|
|
7
|
+
/** A Discord bot: commands and components, each calling one function of the Service. No routes. */
|
|
8
|
+
DISCORD_BOT = 'DISCORD_BOT',
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** How a route differs between a version of a Service and the previous one. */
|
|
2
|
-
export enum ServiceVersionChangeKind {
|
|
3
|
-
ADDED = 'ADDED',
|
|
4
|
-
REMOVED = 'REMOVED',
|
|
5
|
-
MODIFIED = 'MODIFIED',
|
|
6
|
-
}
|
|
1
|
+
/** How a route differs between a version of a Service and the previous one. */
|
|
2
|
+
export enum ServiceVersionChangeKind {
|
|
3
|
+
ADDED = 'ADDED',
|
|
4
|
+
REMOVED = 'REMOVED',
|
|
5
|
+
MODIFIED = 'MODIFIED',
|
|
6
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/** The kind of effect one trace entry records. */
|
|
2
|
-
export enum TraceEffectType {
|
|
3
|
-
/**
|
|
4
|
-
* An evaluation of expressions or code. Only in test runs recorded before Reflex lot 0 (#773), which
|
|
5
|
-
* the retention still keeps: evaluations now happen inside the runner's isolate and are not traced.
|
|
6
|
-
*/
|
|
7
|
-
EVALUATE = 'EVALUATE',
|
|
8
|
-
/** An HTTP call: an HTTP step or `fetch()`. */
|
|
9
|
-
HTTP = 'HTTP',
|
|
10
|
-
/** A call to the host: `store.*`, `secret.get`, `http.respond`, `wait` (its `action`). */
|
|
11
|
-
HOST = 'HOST',
|
|
12
|
-
}
|
|
1
|
+
/** The kind of effect one trace entry records. */
|
|
2
|
+
export enum TraceEffectType {
|
|
3
|
+
/**
|
|
4
|
+
* An evaluation of expressions or code. Only in test runs recorded before Reflex lot 0 (#773), which
|
|
5
|
+
* the retention still keeps: evaluations now happen inside the runner's isolate and are not traced.
|
|
6
|
+
*/
|
|
7
|
+
EVALUATE = 'EVALUATE',
|
|
8
|
+
/** An HTTP call: an HTTP step or `fetch()`. */
|
|
9
|
+
HTTP = 'HTTP',
|
|
10
|
+
/** A call to the host: `store.*`, `secret.get`, `http.respond`, `wait` (its `action`). */
|
|
11
|
+
HOST = 'HOST',
|
|
12
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Who may call a route of a Service.
|
|
3
|
-
* - PUBLIC: anyone.
|
|
4
|
-
* - API_KEY: the caller sends the key in `x-api-key`.
|
|
5
|
-
* - SIGNATURE: the caller signs the raw body: `x-reflex-signature: sha256=<hex HMAC-SHA256(secret,
|
|
6
|
-
* "<timestamp>." + body)>` with `x-reflex-timestamp` in Unix seconds, within 300 s of the edge's clock.
|
|
7
|
-
*/
|
|
8
|
-
export enum TriggerAccessMode {
|
|
9
|
-
PUBLIC = 'PUBLIC',
|
|
10
|
-
API_KEY = 'API_KEY',
|
|
11
|
-
SIGNATURE = 'SIGNATURE',
|
|
12
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Who may call a route of a Service.
|
|
3
|
+
* - PUBLIC: anyone.
|
|
4
|
+
* - API_KEY: the caller sends the key in `x-api-key`.
|
|
5
|
+
* - SIGNATURE: the caller signs the raw body: `x-reflex-signature: sha256=<hex HMAC-SHA256(secret,
|
|
6
|
+
* "<timestamp>." + body)>` with `x-reflex-timestamp` in Unix seconds, within 300 s of the edge's clock.
|
|
7
|
+
*/
|
|
8
|
+
export enum TriggerAccessMode {
|
|
9
|
+
PUBLIC = 'PUBLIC',
|
|
10
|
+
API_KEY = 'API_KEY',
|
|
11
|
+
SIGNATURE = 'SIGNATURE',
|
|
12
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './enum';
|
|
2
|
-
export * from './interface';
|
|
1
|
+
export * from './enum';
|
|
2
|
+
export * from './interface';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './response';
|
|
2
|
-
export * from './requests';
|
|
3
|
-
export * from './responses';
|
|
1
|
+
export * from './response';
|
|
2
|
+
export * from './requests';
|
|
3
|
+
export * from './responses';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { IReflexAccessDeclaration } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionAccessParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IGrantFunctionAccessParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
functionId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The declaration must be one the draft makes. The member who grants must hold the right the access
|
|
14
|
-
* needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
|
|
15
|
-
* (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
|
|
16
|
-
*/
|
|
17
|
-
export interface IGrantFunctionAccessBody {
|
|
18
|
-
declaration: IReflexAccessDeclaration;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IRevokeFunctionAccessParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
functionId: string;
|
|
24
|
-
grantId: string;
|
|
25
|
-
}
|
|
1
|
+
import type { IReflexAccessDeclaration } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionAccessParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface IGrantFunctionAccessParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
functionId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The declaration must be one the draft makes. The member who grants must hold the right the access
|
|
14
|
+
* needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
|
|
15
|
+
* (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
|
|
16
|
+
*/
|
|
17
|
+
export interface IGrantFunctionAccessBody {
|
|
18
|
+
declaration: IReflexAccessDeclaration;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IRevokeFunctionAccessParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
functionId: string;
|
|
24
|
+
grantId: string;
|
|
25
|
+
}
|
|
@@ -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,27 +1,27 @@
|
|
|
1
|
-
import type { IReflexExecutionSettingsValues } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IGetFunctionSettingsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ISetFunctionDefaultSettingsParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
functionId: string;
|
|
11
|
-
}
|
|
12
|
-
/** Every value is required: a row of settings is whole. */
|
|
13
|
-
export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
|
|
14
|
-
|
|
15
|
-
export interface ISetFunctionEnvironmentSettingsParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
functionId: string;
|
|
18
|
-
/** An environment of the application (abyss-main's id). */
|
|
19
|
-
environmentId: string;
|
|
20
|
-
}
|
|
21
|
-
export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
|
|
22
|
-
|
|
23
|
-
export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
functionId: string;
|
|
26
|
-
environmentId: string;
|
|
27
|
-
}
|
|
1
|
+
import type { IReflexExecutionSettingsValues } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IGetFunctionSettingsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ISetFunctionDefaultSettingsParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
functionId: string;
|
|
11
|
+
}
|
|
12
|
+
/** Every value is required: a row of settings is whole. */
|
|
13
|
+
export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
|
|
14
|
+
|
|
15
|
+
export interface ISetFunctionEnvironmentSettingsParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
functionId: string;
|
|
18
|
+
/** An environment of the application (abyss-main's id). */
|
|
19
|
+
environmentId: string;
|
|
20
|
+
}
|
|
21
|
+
export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
|
|
22
|
+
|
|
23
|
+
export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
functionId: string;
|
|
26
|
+
environmentId: string;
|
|
27
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface IFunctionTestParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
-
export interface IReflexHttpStub {
|
|
8
|
-
status: number;
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
body?: unknown;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ISimulateFunctionBody {
|
|
14
|
-
/**
|
|
15
|
-
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
16
|
-
* Store, the run is measured with its effective settings and recorded with it.
|
|
17
|
-
*/
|
|
18
|
-
environmentId: string;
|
|
19
|
-
/** The event the function receives, as the edge builds it: `{method, path, query, headers, body}`. */
|
|
20
|
-
input?: unknown;
|
|
21
|
-
/** Simulated responses of HTTP steps, by step id. */
|
|
22
|
-
httpStubs?: Record<string, IReflexHttpStub>;
|
|
23
|
-
}
|
|
24
|
-
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
1
|
+
export interface IFunctionTestParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
+
export interface IReflexHttpStub {
|
|
8
|
+
status: number;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ISimulateFunctionBody {
|
|
14
|
+
/**
|
|
15
|
+
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
16
|
+
* Store, the run is measured with its effective settings and recorded with it.
|
|
17
|
+
*/
|
|
18
|
+
environmentId: string;
|
|
19
|
+
/** The event the function receives, as the edge builds it: `{method, path, query, headers, body}`. */
|
|
20
|
+
input?: unknown;
|
|
21
|
+
/** Simulated responses of HTTP steps, by step id. */
|
|
22
|
+
httpStubs?: Record<string, IReflexHttpStub>;
|
|
23
|
+
}
|
|
24
|
+
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface IListFunctionVersionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface IGetFunctionVersionParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
functionId: string;
|
|
9
|
-
versionId: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IGetFunctionVersionStepStatsParams {
|
|
13
|
-
applicationId: string;
|
|
14
|
-
functionId: string;
|
|
15
|
-
versionId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGetFunctionVersionStepStatsQuery {
|
|
18
|
-
/** Only the executions of this environment; every environment when absent. */
|
|
19
|
-
environmentId?: string;
|
|
20
|
-
}
|
|
1
|
+
export interface IListFunctionVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface IGetFunctionVersionParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
functionId: string;
|
|
9
|
+
versionId: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IGetFunctionVersionStepStatsParams {
|
|
13
|
+
applicationId: string;
|
|
14
|
+
functionId: string;
|
|
15
|
+
versionId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetFunctionVersionStepStatsQuery {
|
|
18
|
+
/** Only the executions of this environment; every environment when absent. */
|
|
19
|
+
environmentId?: string;
|
|
20
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { IReflexDefinition } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface ICreateFunctionParams {
|
|
8
|
-
applicationId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateFunctionBody {
|
|
11
|
-
/** A Service of the application, which the function joins. */
|
|
12
|
-
serviceId: string;
|
|
13
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Absent: a function without access or step, to fill in. */
|
|
16
|
-
definition?: IReflexDefinition;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IGetFunctionParams {
|
|
20
|
-
applicationId: string;
|
|
21
|
-
functionId: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IUpdateFunctionParams {
|
|
25
|
-
applicationId: string;
|
|
26
|
-
functionId: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IUpdateFunctionBody {
|
|
29
|
-
name?: string;
|
|
30
|
-
definition?: IReflexDefinition;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IDeleteFunctionParams {
|
|
34
|
-
applicationId: string;
|
|
35
|
-
functionId: string;
|
|
36
|
-
}
|
|
1
|
+
import type { IReflexDefinition } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface ICreateFunctionParams {
|
|
8
|
+
applicationId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateFunctionBody {
|
|
11
|
+
/** A Service of the application, which the function joins. */
|
|
12
|
+
serviceId: string;
|
|
13
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Absent: a function without access or step, to fill in. */
|
|
16
|
+
definition?: IReflexDefinition;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IGetFunctionParams {
|
|
20
|
+
applicationId: string;
|
|
21
|
+
functionId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IUpdateFunctionParams {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
functionId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IUpdateFunctionBody {
|
|
29
|
+
name?: string;
|
|
30
|
+
definition?: IReflexDefinition;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IDeleteFunctionParams {
|
|
34
|
+
applicationId: string;
|
|
35
|
+
functionId: string;
|
|
36
|
+
}
|
|
@@ -1,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
|
+
}
|