@abyss-project/reflex 5.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/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-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-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/index.d.ts +4 -0
- package/dist/types/enum/index.js +4 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-discord.request.d.ts +4 -1
- package/dist/types/interface/models/reflex-discord.model.d.ts +14 -1
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -1
- package/package.json +15 -10
- package/src/api/service-discord.api.test.ts +170 -170
- package/src/api/service-discord.api.ts +203 -203
- package/src/index.ts +235 -235
- 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/configuration-read-as.enum.ts +5 -5
- package/src/types/enum/discord-activity-type.enum.ts +9 -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-presence-status.enum.ts +8 -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 +29 -25
- package/src/types/enum/reflex-error-code.enum.ts +37 -37
- 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 -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/vault-value-source.enum.ts +12 -12
- package/src/types/enum/vault-visibility.enum.ts +5 -5
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +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 +12 -12
- 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.request.ts +11 -1
- 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 -46
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/function-access.response.ts +17 -17
- package/src/types/interface/api/responses/function-run.response.ts +18 -18
- package/src/types/interface/api/responses/function-settings.response.ts +36 -36
- package/src/types/interface/api/responses/function-test.response.ts +12 -12
- package/src/types/interface/api/responses/function-version.response.ts +31 -31
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +12 -12
- 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-route.response.ts +31 -31
- 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 +14 -14
- 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 +30 -1
- 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-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +40 -40
- package/src/types/interface/models/reflex-service-version.model.ts +55 -55
- package/src/types/interface/models/reflex-service.model.ts +45 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
|
@@ -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,12 +1,12 @@
|
|
|
1
|
-
export * from './function.request';
|
|
2
|
-
export * from './function-access.request';
|
|
3
|
-
export * from './function-test.request';
|
|
4
|
-
export * from './function-version.request';
|
|
5
|
-
export * from './function-run.request';
|
|
6
|
-
export * from './function-settings.request';
|
|
7
|
-
export * from './service.request';
|
|
8
|
-
export * from './service-route.request';
|
|
9
|
-
export * from './service-version.request';
|
|
10
|
-
export * from './service-deployment.request';
|
|
11
|
-
export * from './service-configuration.request';
|
|
12
|
-
export * from './service-discord.request';
|
|
1
|
+
export * from './function.request';
|
|
2
|
+
export * from './function-access.request';
|
|
3
|
+
export * from './function-test.request';
|
|
4
|
+
export * from './function-version.request';
|
|
5
|
+
export * from './function-run.request';
|
|
6
|
+
export * from './function-settings.request';
|
|
7
|
+
export * from './service.request';
|
|
8
|
+
export * from './service-route.request';
|
|
9
|
+
export * from './service-version.request';
|
|
10
|
+
export * from './service-deployment.request';
|
|
11
|
+
export * from './service-configuration.request';
|
|
12
|
+
export * from './service-discord.request';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IListServiceConfigurationParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
1
|
+
export interface IListServiceConfigurationParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export interface IListServiceDeploymentParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IListServiceDeploymentQuery {
|
|
6
|
-
/** Only the history of this environment; every environment when absent. */
|
|
7
|
-
environmentId?: string;
|
|
8
|
-
/** 1 to 100, 50 by default. */
|
|
9
|
-
limit?: number;
|
|
10
|
-
/** Gestures skipped, newest first; 0 by default. */
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IGoLiveServiceParams {
|
|
15
|
-
applicationId: string;
|
|
16
|
-
serviceId: string;
|
|
17
|
-
}
|
|
18
|
-
/** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
|
|
19
|
-
export interface IGoLiveServiceBody {
|
|
20
|
-
/** An environment of the application (abyss-main's id). */
|
|
21
|
-
environmentId: string;
|
|
22
|
-
serviceVersionId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IRollbackServiceParams {
|
|
26
|
-
applicationId: string;
|
|
27
|
-
serviceId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IRollbackServiceBody {
|
|
30
|
-
environmentId: string;
|
|
31
|
-
/** A deployment of this environment, from the history: its version is put back in service. */
|
|
32
|
-
deploymentId: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface IPauseServiceParams {
|
|
36
|
-
applicationId: string;
|
|
37
|
-
serviceId: string;
|
|
38
|
-
}
|
|
39
|
-
export interface IPauseServiceBody {
|
|
40
|
-
environmentId: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IResumeServiceParams {
|
|
44
|
-
applicationId: string;
|
|
45
|
-
serviceId: string;
|
|
46
|
-
}
|
|
47
|
-
export interface IResumeServiceBody {
|
|
48
|
-
environmentId: string;
|
|
49
|
-
}
|
|
1
|
+
export interface IListServiceDeploymentParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IListServiceDeploymentQuery {
|
|
6
|
+
/** Only the history of this environment; every environment when absent. */
|
|
7
|
+
environmentId?: string;
|
|
8
|
+
/** 1 to 100, 50 by default. */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Gestures skipped, newest first; 0 by default. */
|
|
11
|
+
offset?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IGoLiveServiceParams {
|
|
15
|
+
applicationId: string;
|
|
16
|
+
serviceId: string;
|
|
17
|
+
}
|
|
18
|
+
/** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
|
|
19
|
+
export interface IGoLiveServiceBody {
|
|
20
|
+
/** An environment of the application (abyss-main's id). */
|
|
21
|
+
environmentId: string;
|
|
22
|
+
serviceVersionId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IRollbackServiceParams {
|
|
26
|
+
applicationId: string;
|
|
27
|
+
serviceId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IRollbackServiceBody {
|
|
30
|
+
environmentId: string;
|
|
31
|
+
/** A deployment of this environment, from the history: its version is put back in service. */
|
|
32
|
+
deploymentId: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IPauseServiceParams {
|
|
36
|
+
applicationId: string;
|
|
37
|
+
serviceId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IPauseServiceBody {
|
|
40
|
+
environmentId: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IResumeServiceParams {
|
|
44
|
+
applicationId: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IResumeServiceBody {
|
|
48
|
+
environmentId: string;
|
|
49
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
DiscordActivityType,
|
|
3
|
+
DiscordComponentKind,
|
|
4
|
+
DiscordPresenceStatus,
|
|
5
|
+
} from '../../../enum';
|
|
2
6
|
import type { IReflexDiscordCommandOption } from '../../models';
|
|
3
7
|
|
|
4
8
|
export interface IListServiceDiscordCommandParams {
|
|
@@ -103,6 +107,12 @@ export interface ISetServiceDiscordEnvironmentBody {
|
|
|
103
107
|
testGuildId?: string | null;
|
|
104
108
|
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
105
109
|
invitePermissions: string;
|
|
110
|
+
/** What the bot shows while connected. */
|
|
111
|
+
presenceStatus?: DiscordPresenceStatus;
|
|
112
|
+
/** The kind of activity; null removes it. */
|
|
113
|
+
activityType?: DiscordActivityType | null;
|
|
114
|
+
/** 1 to 128 characters, required with an `activityType`, null without. */
|
|
115
|
+
activityText?: string | null;
|
|
106
116
|
}
|
|
107
117
|
|
|
108
118
|
export interface ICheckServiceDiscordConnectionParams {
|
|
@@ -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,46 +1,46 @@
|
|
|
1
|
-
import type { ServiceType } from '../../../enum';
|
|
2
|
-
import type { IReflexServiceCors } from '../../models';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceParams {
|
|
5
|
-
applicationId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICreateServiceParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ICreateServiceBody {
|
|
12
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
-
name: string;
|
|
14
|
-
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
-
slug: string;
|
|
16
|
-
type: ServiceType;
|
|
17
|
-
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
-
cors?: IReflexServiceCors;
|
|
19
|
-
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
-
rateLimitPerIpPerMinute?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IGetServiceParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IUpdateServiceParams {
|
|
29
|
-
applicationId: string;
|
|
30
|
-
serviceId: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
-
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
-
*/
|
|
36
|
-
export interface IUpdateServiceBody {
|
|
37
|
-
name?: string;
|
|
38
|
-
cors?: IReflexServiceCors;
|
|
39
|
-
/** 1 to 6000. */
|
|
40
|
-
rateLimitPerIpPerMinute?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IDeleteServiceParams {
|
|
44
|
-
applicationId: string;
|
|
45
|
-
serviceId: string;
|
|
46
|
-
}
|
|
1
|
+
import type { ServiceType } from '../../../enum';
|
|
2
|
+
import type { IReflexServiceCors } from '../../models';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceParams {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ICreateServiceParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateServiceBody {
|
|
12
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
+
slug: string;
|
|
16
|
+
type: ServiceType;
|
|
17
|
+
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
+
cors?: IReflexServiceCors;
|
|
19
|
+
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
+
rateLimitPerIpPerMinute?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetServiceParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IUpdateServiceParams {
|
|
29
|
+
applicationId: string;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
+
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
+
*/
|
|
36
|
+
export interface IUpdateServiceBody {
|
|
37
|
+
name?: string;
|
|
38
|
+
cors?: IReflexServiceCors;
|
|
39
|
+
/** 1 to 6000. */
|
|
40
|
+
rateLimitPerIpPerMinute?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IDeleteServiceParams {
|
|
44
|
+
applicationId: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
-
export interface IResponse<T> {
|
|
3
|
-
data: T;
|
|
4
|
-
}
|
|
1
|
+
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
+
export interface IResponse<T> {
|
|
3
|
+
data: T;
|
|
4
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionAccessData {
|
|
5
|
-
grants: IReflexAccessGrant[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
-
|
|
9
|
-
export interface IGrantFunctionAccessData {
|
|
10
|
-
grant: IReflexAccessGrant;
|
|
11
|
-
}
|
|
12
|
-
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
-
|
|
14
|
-
export interface IRevokeFunctionAccessData {
|
|
15
|
-
grant: IReflexAccessGrant;
|
|
16
|
-
}
|
|
17
|
-
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
1
|
+
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionAccessData {
|
|
5
|
+
grants: IReflexAccessGrant[];
|
|
6
|
+
}
|
|
7
|
+
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
+
|
|
9
|
+
export interface IGrantFunctionAccessData {
|
|
10
|
+
grant: IReflexAccessGrant;
|
|
11
|
+
}
|
|
12
|
+
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
+
|
|
14
|
+
export interface IRevokeFunctionAccessData {
|
|
15
|
+
grant: IReflexAccessGrant;
|
|
16
|
+
}
|
|
17
|
+
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionRunData {
|
|
5
|
-
/** Newest first. */
|
|
6
|
-
runs: IReflexRun[];
|
|
7
|
-
}
|
|
8
|
-
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
-
|
|
10
|
-
export interface IGetFunctionRunData {
|
|
11
|
-
run: IReflexRunDetail;
|
|
12
|
-
}
|
|
13
|
-
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
-
|
|
15
|
-
export interface IGetFunctionRunStateData {
|
|
16
|
-
state: IReflexExecutionState;
|
|
17
|
-
}
|
|
18
|
-
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
1
|
+
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionRunData {
|
|
5
|
+
/** Newest first. */
|
|
6
|
+
runs: IReflexRun[];
|
|
7
|
+
}
|
|
8
|
+
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
+
|
|
10
|
+
export interface IGetFunctionRunData {
|
|
11
|
+
run: IReflexRunDetail;
|
|
12
|
+
}
|
|
13
|
+
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
+
|
|
15
|
+
export interface IGetFunctionRunStateData {
|
|
16
|
+
state: IReflexExecutionState;
|
|
17
|
+
}
|
|
18
|
+
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexEffectiveExecutionSettings,
|
|
3
|
-
IReflexExecutionSettings,
|
|
4
|
-
IReflexExecutionSettingsValues,
|
|
5
|
-
IReflexPriceList,
|
|
6
|
-
} from '../../models';
|
|
7
|
-
import type { IResponse } from '../response';
|
|
8
|
-
|
|
9
|
-
export interface IGetFunctionSettingsData {
|
|
10
|
-
/** The default of the function; null when none is set. */
|
|
11
|
-
default: IReflexExecutionSettings | null;
|
|
12
|
-
/** The override of each environment that has one. */
|
|
13
|
-
environments: IReflexExecutionSettings[];
|
|
14
|
-
/** What each environment of the application runs with. */
|
|
15
|
-
effective: IReflexEffectiveExecutionSettings[];
|
|
16
|
-
/** What applies when neither the environment nor the function sets anything. */
|
|
17
|
-
builtIn: IReflexExecutionSettingsValues;
|
|
18
|
-
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
19
|
-
priceList: IReflexPriceList;
|
|
20
|
-
}
|
|
21
|
-
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
22
|
-
|
|
23
|
-
export interface ISetFunctionDefaultSettingsData {
|
|
24
|
-
settings: IReflexExecutionSettings;
|
|
25
|
-
}
|
|
26
|
-
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
27
|
-
|
|
28
|
-
export interface ISetFunctionEnvironmentSettingsData {
|
|
29
|
-
settings: IReflexExecutionSettings;
|
|
30
|
-
}
|
|
31
|
-
export type ISetFunctionEnvironmentSettingsResponse =
|
|
32
|
-
IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
33
|
-
|
|
34
|
-
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
35
|
-
export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
36
|
-
IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
1
|
+
import type {
|
|
2
|
+
IReflexEffectiveExecutionSettings,
|
|
3
|
+
IReflexExecutionSettings,
|
|
4
|
+
IReflexExecutionSettingsValues,
|
|
5
|
+
IReflexPriceList,
|
|
6
|
+
} from '../../models';
|
|
7
|
+
import type { IResponse } from '../response';
|
|
8
|
+
|
|
9
|
+
export interface IGetFunctionSettingsData {
|
|
10
|
+
/** The default of the function; null when none is set. */
|
|
11
|
+
default: IReflexExecutionSettings | null;
|
|
12
|
+
/** The override of each environment that has one. */
|
|
13
|
+
environments: IReflexExecutionSettings[];
|
|
14
|
+
/** What each environment of the application runs with. */
|
|
15
|
+
effective: IReflexEffectiveExecutionSettings[];
|
|
16
|
+
/** What applies when neither the environment nor the function sets anything. */
|
|
17
|
+
builtIn: IReflexExecutionSettingsValues;
|
|
18
|
+
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
19
|
+
priceList: IReflexPriceList;
|
|
20
|
+
}
|
|
21
|
+
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
22
|
+
|
|
23
|
+
export interface ISetFunctionDefaultSettingsData {
|
|
24
|
+
settings: IReflexExecutionSettings;
|
|
25
|
+
}
|
|
26
|
+
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
27
|
+
|
|
28
|
+
export interface ISetFunctionEnvironmentSettingsData {
|
|
29
|
+
settings: IReflexExecutionSettings;
|
|
30
|
+
}
|
|
31
|
+
export type ISetFunctionEnvironmentSettingsResponse =
|
|
32
|
+
IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
33
|
+
|
|
34
|
+
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
35
|
+
export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
36
|
+
IResponse<IRemoveFunctionEnvironmentSettingsData>;
|