@abyss-project/reflex 5.4.0 → 5.6.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/function-insights.api.d.ts +2 -0
- package/dist/api/function-insights.api.js +7 -0
- package/dist/api/function-insights.api.js.map +1 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-discord-event.api.d.ts +6 -0
- package/dist/api/service-discord-event.api.js +18 -0
- package/dist/api/service-discord-event.api.js.map +1 -0
- package/dist/api/service-discord.api.d.ts +3 -1
- package/dist/api/service-discord.api.js +5 -1
- package/dist/api/service-discord.api.js.map +1 -1
- package/dist/api/service-insights.api.d.ts +3 -0
- package/dist/api/service-insights.api.js +12 -0
- package/dist/api/service-insights.api.js.map +1 -0
- package/dist/discord/discord-event-filter-cases.d.ts +15 -0
- package/dist/discord/discord-event-filter-cases.js +77 -0
- package/dist/discord/discord-event-filter-cases.js.map +1 -0
- package/dist/discord/discord-event-filters.d.ts +20 -0
- package/dist/discord/discord-event-filters.js +50 -0
- package/dist/discord/discord-event-filters.js.map +1 -0
- package/dist/discord/discord-event-intents.d.ts +14 -0
- package/dist/discord/discord-event-intents.js +38 -0
- package/dist/discord/discord-event-intents.js.map +1 -0
- package/dist/discord/index.d.ts +3 -0
- package/dist/discord/index.js +20 -0
- package/dist/discord/index.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/bot-event-block-reason.enum.d.ts +4 -0
- package/dist/types/enum/bot-event-block-reason.enum.js +9 -0
- package/dist/types/enum/bot-event-block-reason.enum.js.map +1 -0
- package/dist/types/enum/discord-event-drop-reason.enum.d.ts +7 -0
- package/dist/types/enum/discord-event-drop-reason.enum.js +12 -0
- package/dist/types/enum/discord-event-drop-reason.enum.js.map +1 -0
- package/dist/types/enum/discord-event-filter-name.enum.d.ts +9 -0
- package/dist/types/enum/discord-event-filter-name.enum.js +14 -0
- package/dist/types/enum/discord-event-filter-name.enum.js.map +1 -0
- package/dist/types/enum/discord-event-status.enum.d.ts +7 -0
- package/dist/types/enum/discord-event-status.enum.js +12 -0
- package/dist/types/enum/discord-event-status.enum.js.map +1 -0
- package/dist/types/enum/discord-event-type.enum.d.ts +6 -0
- package/dist/types/enum/discord-event-type.enum.js +11 -0
- package/dist/types/enum/discord-event-type.enum.js.map +1 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.d.ts +2 -1
- package/dist/types/enum/discord-gateway-failure-code.enum.js +1 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +7 -0
- package/dist/types/enum/index.js +7 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/insights-period.enum.d.ts +7 -0
- package/dist/types/enum/insights-period.enum.js +12 -0
- package/dist/types/enum/insights-period.enum.js.map +1 -0
- package/dist/types/enum/reflex-error-code.enum.d.ts +3 -1
- package/dist/types/enum/reflex-error-code.enum.js +2 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/scheduled-run-failure-code.enum.d.ts +2 -1
- package/dist/types/enum/scheduled-run-failure-code.enum.js +1 -0
- package/dist/types/enum/scheduled-run-failure-code.enum.js.map +1 -1
- package/dist/types/enum/trigger-kind.enum.d.ts +7 -0
- package/dist/types/enum/trigger-kind.enum.js +12 -0
- package/dist/types/enum/trigger-kind.enum.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +2 -0
- package/dist/types/interface/api/requests/index.js +2 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-discord-event.request.d.ts +51 -0
- package/dist/types/interface/api/requests/service-discord-event.request.js +3 -0
- package/dist/types/interface/api/requests/service-discord-event.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-discord.request.d.ts +22 -1
- package/dist/types/interface/api/requests/service-insights.request.d.ts +25 -0
- package/dist/types/interface/api/requests/service-insights.request.js +3 -0
- package/dist/types/interface/api/requests/service-insights.request.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +2 -0
- package/dist/types/interface/api/responses/index.js +2 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-discord-event.response.d.ts +18 -0
- package/dist/types/interface/api/responses/service-discord-event.response.js +3 -0
- package/dist/types/interface/api/responses/service-discord-event.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-discord.response.d.ts +30 -5
- package/dist/types/interface/api/responses/service-insights.response.d.ts +8 -0
- package/dist/types/interface/api/responses/service-insights.response.js +3 -0
- package/dist/types/interface/api/responses/service-insights.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-version.response.d.ts +9 -1
- package/dist/types/interface/models/index.d.ts +4 -0
- package/dist/types/interface/models/index.js +4 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-bot-limits.model.d.ts +56 -0
- package/dist/types/interface/models/reflex-bot-limits.model.js +16 -0
- package/dist/types/interface/models/reflex-bot-limits.model.js.map +1 -0
- package/dist/types/interface/models/reflex-discord-event-log.model.d.ts +38 -0
- package/dist/types/interface/models/reflex-discord-event-log.model.js +3 -0
- package/dist/types/interface/models/reflex-discord-event-log.model.js.map +1 -0
- package/dist/types/interface/models/reflex-discord-event.model.d.ts +41 -0
- package/dist/types/interface/models/reflex-discord-event.model.js +23 -0
- package/dist/types/interface/models/reflex-discord-event.model.js.map +1 -0
- package/dist/types/interface/models/reflex-insights.model.d.ts +83 -0
- package/dist/types/interface/models/reflex-insights.model.js +16 -0
- package/dist/types/interface/models/reflex-insights.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +2 -0
- package/dist/types/interface/models/reflex-service-version.model.d.ts +2 -0
- package/package.json +1 -1
- package/src/api/function-insights.api.test.ts +27 -0
- package/src/api/function-insights.api.ts +18 -0
- package/src/api/index.ts +17 -14
- package/src/api/service-discord-event.api.test.ts +106 -0
- package/src/api/service-discord-event.api.ts +78 -0
- package/src/api/service-discord.api.test.ts +197 -170
- package/src/api/service-discord.api.ts +241 -203
- package/src/api/service-insights.api.test.ts +36 -0
- package/src/api/service-insights.api.ts +42 -0
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/discord/discord-event-filter-cases.ts +261 -0
- package/src/discord/discord-event-filters.test.ts +91 -0
- package/src/discord/discord-event-filters.ts +95 -0
- package/src/discord/discord-event-intents.test.ts +112 -0
- package/src/discord/discord-event-intents.ts +55 -0
- package/src/discord/index.ts +3 -0
- package/src/index.test.ts +75 -50
- package/src/index.ts +46 -0
- package/src/types/enum/bot-event-block-reason.enum.ts +7 -0
- package/src/types/enum/discord-event-drop-reason.enum.ts +13 -0
- package/src/types/enum/discord-event-filter-name.enum.ts +11 -0
- package/src/types/enum/discord-event-status.enum.ts +13 -0
- package/src/types/enum/discord-event-type.enum.ts +7 -0
- package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -9
- package/src/types/enum/index.ts +7 -0
- package/src/types/enum/insights-period.enum.ts +8 -0
- package/src/types/enum/reflex-error-code.enum.ts +43 -39
- package/src/types/enum/schedule-sync-status.enum.ts +6 -6
- package/src/types/enum/scheduled-run-failure-code.enum.ts +2 -0
- 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/trigger-kind.enum.ts +8 -0
- package/src/types/interface/api/requests/index.ts +15 -13
- package/src/types/interface/api/requests/service-discord-event.request.ts +68 -0
- package/src/types/interface/api/requests/service-discord.request.ts +161 -128
- package/src/types/interface/api/requests/service-insights.request.ts +31 -0
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/responses/index.ts +15 -13
- package/src/types/interface/api/responses/service-discord-event.response.ts +24 -0
- package/src/types/interface/api/responses/service-discord.response.ts +122 -72
- package/src/types/interface/api/responses/service-insights.response.ts +11 -0
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +106 -91
- package/src/types/interface/models/index.ts +19 -15
- package/src/types/interface/models/reflex-bot-limits.model.ts +92 -0
- package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -0
- package/src/types/interface/models/reflex-discord-event.model.ts +77 -0
- package/src/types/interface/models/reflex-insights.model.ts +120 -0
- package/src/types/interface/models/reflex-run.model.ts +183 -179
- package/src/types/interface/models/reflex-service-version.model.ts +61 -58
- package/src/types/interface/models/reflex-task.model.ts +97 -97
|
@@ -1,128 +1,161 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
DiscordActivityType,
|
|
3
|
-
DiscordComponentKind,
|
|
4
|
-
DiscordPresenceStatus,
|
|
5
|
-
} from '../../../enum';
|
|
6
|
-
import type { IReflexDiscordCommandOption } from '../../models';
|
|
7
|
-
|
|
8
|
-
export interface IListServiceDiscordCommandParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
serviceId: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ICreateServiceDiscordCommandParams {
|
|
14
|
-
applicationId: string;
|
|
15
|
-
serviceId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ICreateServiceDiscordCommandBody {
|
|
18
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
19
|
-
name: string;
|
|
20
|
-
/** 1 to 100 characters. */
|
|
21
|
-
description: string;
|
|
22
|
-
/** 25 at most, required options first; empty by default. */
|
|
23
|
-
options?: IReflexDiscordCommandOption[];
|
|
24
|
-
/** A function of the same Service. */
|
|
25
|
-
functionId: string;
|
|
26
|
-
/** Discord permission bits as a decimal string; null (default) for everyone. */
|
|
27
|
-
defaultMemberPermissions?: string | null;
|
|
28
|
-
/** `true` by default. */
|
|
29
|
-
allowedInDirectMessages?: boolean;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IUpdateServiceDiscordCommandParams {
|
|
33
|
-
applicationId: string;
|
|
34
|
-
serviceId: string;
|
|
35
|
-
commandId: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IUpdateServiceDiscordCommandBody {
|
|
38
|
-
name?: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
options?: IReflexDiscordCommandOption[];
|
|
41
|
-
functionId?: string;
|
|
42
|
-
defaultMemberPermissions?: string | null;
|
|
43
|
-
allowedInDirectMessages?: boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface IDeleteServiceDiscordCommandParams {
|
|
47
|
-
applicationId: string;
|
|
48
|
-
serviceId: string;
|
|
49
|
-
commandId: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface IListServiceDiscordComponentParams {
|
|
53
|
-
applicationId: string;
|
|
54
|
-
serviceId: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ICreateServiceDiscordComponentParams {
|
|
58
|
-
applicationId: string;
|
|
59
|
-
serviceId: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ICreateServiceDiscordComponentBody {
|
|
62
|
-
/** `^[a-z0-9_-]{1,40}$`; no prefix of the Service equals, starts or is started by another one. */
|
|
63
|
-
customIdPrefix: string;
|
|
64
|
-
kind: DiscordComponentKind;
|
|
65
|
-
/** A function of the same Service. */
|
|
66
|
-
functionId: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface IUpdateServiceDiscordComponentParams {
|
|
70
|
-
applicationId: string;
|
|
71
|
-
serviceId: string;
|
|
72
|
-
componentId: string;
|
|
73
|
-
}
|
|
74
|
-
export interface IUpdateServiceDiscordComponentBody {
|
|
75
|
-
customIdPrefix?: string;
|
|
76
|
-
kind?: DiscordComponentKind;
|
|
77
|
-
functionId?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface IDeleteServiceDiscordComponentParams {
|
|
81
|
-
applicationId: string;
|
|
82
|
-
serviceId: string;
|
|
83
|
-
componentId: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface IGetServiceDiscordConnectionParams {
|
|
87
|
-
applicationId: string;
|
|
88
|
-
serviceId: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface ISetServiceDiscordTokenSecretParams {
|
|
92
|
-
applicationId: string;
|
|
93
|
-
serviceId: string;
|
|
94
|
-
}
|
|
95
|
-
export interface ISetServiceDiscordTokenSecretBody {
|
|
96
|
-
/** The Vault entry (a secret of the project) that holds the bot token, one value per environment. */
|
|
97
|
-
discordTokenSecretId: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface ISetServiceDiscordEnvironmentParams {
|
|
101
|
-
applicationId: string;
|
|
102
|
-
serviceId: string;
|
|
103
|
-
environmentId: string;
|
|
104
|
-
}
|
|
105
|
-
export interface ISetServiceDiscordEnvironmentBody {
|
|
106
|
-
/** Discord server (snowflake) the commands are pushed to outside production; null removes it. */
|
|
107
|
-
testGuildId?: string | null;
|
|
108
|
-
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
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;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface ICheckServiceDiscordConnectionParams {
|
|
119
|
-
applicationId: string;
|
|
120
|
-
serviceId: string;
|
|
121
|
-
environmentId: string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface IRetryServiceDiscordSyncParams {
|
|
125
|
-
applicationId: string;
|
|
126
|
-
serviceId: string;
|
|
127
|
-
environmentId: string;
|
|
128
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
DiscordActivityType,
|
|
3
|
+
DiscordComponentKind,
|
|
4
|
+
DiscordPresenceStatus,
|
|
5
|
+
} from '../../../enum';
|
|
6
|
+
import type { IReflexBotAlertSettings, IReflexDiscordCommandOption } from '../../models';
|
|
7
|
+
|
|
8
|
+
export interface IListServiceDiscordCommandParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
serviceId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ICreateServiceDiscordCommandParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ICreateServiceDiscordCommandBody {
|
|
18
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** 1 to 100 characters. */
|
|
21
|
+
description: string;
|
|
22
|
+
/** 25 at most, required options first; empty by default. */
|
|
23
|
+
options?: IReflexDiscordCommandOption[];
|
|
24
|
+
/** A function of the same Service. */
|
|
25
|
+
functionId: string;
|
|
26
|
+
/** Discord permission bits as a decimal string; null (default) for everyone. */
|
|
27
|
+
defaultMemberPermissions?: string | null;
|
|
28
|
+
/** `true` by default. */
|
|
29
|
+
allowedInDirectMessages?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IUpdateServiceDiscordCommandParams {
|
|
33
|
+
applicationId: string;
|
|
34
|
+
serviceId: string;
|
|
35
|
+
commandId: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IUpdateServiceDiscordCommandBody {
|
|
38
|
+
name?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
options?: IReflexDiscordCommandOption[];
|
|
41
|
+
functionId?: string;
|
|
42
|
+
defaultMemberPermissions?: string | null;
|
|
43
|
+
allowedInDirectMessages?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IDeleteServiceDiscordCommandParams {
|
|
47
|
+
applicationId: string;
|
|
48
|
+
serviceId: string;
|
|
49
|
+
commandId: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface IListServiceDiscordComponentParams {
|
|
53
|
+
applicationId: string;
|
|
54
|
+
serviceId: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ICreateServiceDiscordComponentParams {
|
|
58
|
+
applicationId: string;
|
|
59
|
+
serviceId: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ICreateServiceDiscordComponentBody {
|
|
62
|
+
/** `^[a-z0-9_-]{1,40}$`; no prefix of the Service equals, starts or is started by another one. */
|
|
63
|
+
customIdPrefix: string;
|
|
64
|
+
kind: DiscordComponentKind;
|
|
65
|
+
/** A function of the same Service. */
|
|
66
|
+
functionId: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface IUpdateServiceDiscordComponentParams {
|
|
70
|
+
applicationId: string;
|
|
71
|
+
serviceId: string;
|
|
72
|
+
componentId: string;
|
|
73
|
+
}
|
|
74
|
+
export interface IUpdateServiceDiscordComponentBody {
|
|
75
|
+
customIdPrefix?: string;
|
|
76
|
+
kind?: DiscordComponentKind;
|
|
77
|
+
functionId?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface IDeleteServiceDiscordComponentParams {
|
|
81
|
+
applicationId: string;
|
|
82
|
+
serviceId: string;
|
|
83
|
+
componentId: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface IGetServiceDiscordConnectionParams {
|
|
87
|
+
applicationId: string;
|
|
88
|
+
serviceId: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ISetServiceDiscordTokenSecretParams {
|
|
92
|
+
applicationId: string;
|
|
93
|
+
serviceId: string;
|
|
94
|
+
}
|
|
95
|
+
export interface ISetServiceDiscordTokenSecretBody {
|
|
96
|
+
/** The Vault entry (a secret of the project) that holds the bot token, one value per environment. */
|
|
97
|
+
discordTokenSecretId: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface ISetServiceDiscordEnvironmentParams {
|
|
101
|
+
applicationId: string;
|
|
102
|
+
serviceId: string;
|
|
103
|
+
environmentId: string;
|
|
104
|
+
}
|
|
105
|
+
export interface ISetServiceDiscordEnvironmentBody {
|
|
106
|
+
/** Discord server (snowflake) the commands are pushed to outside production; null removes it. */
|
|
107
|
+
testGuildId?: string | null;
|
|
108
|
+
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
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;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface ICheckServiceDiscordConnectionParams {
|
|
119
|
+
applicationId: string;
|
|
120
|
+
serviceId: string;
|
|
121
|
+
environmentId: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface IRetryServiceDiscordSyncParams {
|
|
125
|
+
applicationId: string;
|
|
126
|
+
serviceId: string;
|
|
127
|
+
environmentId: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ISetServiceDiscordAllocationParams {
|
|
131
|
+
applicationId: string;
|
|
132
|
+
serviceId: string;
|
|
133
|
+
environmentId: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ISetServiceDiscordAllocationBody {
|
|
136
|
+
/**
|
|
137
|
+
* Lots of 500 events per minute of the reserve of the organization this bot holds in this environment,
|
|
138
|
+
* from 0 to `rate.lotsMax`; 0 releases them. The sum over the organization cannot go past its reserve.
|
|
139
|
+
*/
|
|
140
|
+
lots: number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface ISetServiceDiscordBotSettingsParams {
|
|
144
|
+
applicationId: string;
|
|
145
|
+
serviceId: string;
|
|
146
|
+
environmentId: string;
|
|
147
|
+
}
|
|
148
|
+
export interface ISetServiceDiscordBotSettingsBody {
|
|
149
|
+
/**
|
|
150
|
+
* Bills the credits of the month past those of the organization. Refused (`CREDIT_OVERAGE_NOT_ALLOWED`)
|
|
151
|
+
* when the organization does not allow overage of the credits.
|
|
152
|
+
*/
|
|
153
|
+
creditOverageEnabled?: boolean;
|
|
154
|
+
/** Monthly spend cap of the events of the bot, in cents: 100 to 50 000. */
|
|
155
|
+
monthlySpendCapCents?: number;
|
|
156
|
+
/** Alerts on the rate and on the cap; a key left out keeps its current value. */
|
|
157
|
+
alerts?: {
|
|
158
|
+
rate?: Partial<IReflexBotAlertSettings>;
|
|
159
|
+
monthlySpendCap?: Partial<IReflexBotAlertSettings>;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IGetServiceInsightsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetServiceInsightsQuery {
|
|
8
|
+
/** The environment of the application (abyss-main's id). */
|
|
9
|
+
environmentId: string;
|
|
10
|
+
period: InsightsPeriod;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IGetServiceEventInsightsParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetServiceEventInsightsQuery {
|
|
18
|
+
/** The environment of the application (abyss-main's id). */
|
|
19
|
+
environmentId: string;
|
|
20
|
+
period: InsightsPeriod;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetFunctionInsightsParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
functionId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IGetFunctionInsightsQuery {
|
|
28
|
+
/** The environment of the application (abyss-main's id). */
|
|
29
|
+
environmentId: string;
|
|
30
|
+
period: InsightsPeriod;
|
|
31
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
export interface IListServiceTaskParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ICreateServiceTaskParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
serviceId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateServiceTaskBody {
|
|
11
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** A function of the same Service. */
|
|
14
|
-
functionId: string;
|
|
15
|
-
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
-
schedule?: string | null;
|
|
17
|
-
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
-
timezone?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IUpdateServiceTaskParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
serviceId: string;
|
|
24
|
-
taskId: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IUpdateServiceTaskBody {
|
|
27
|
-
name?: string;
|
|
28
|
-
functionId?: string;
|
|
29
|
-
schedule?: string | null;
|
|
30
|
-
timezone?: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IDeleteServiceTaskParams {
|
|
34
|
-
applicationId: string;
|
|
35
|
-
serviceId: string;
|
|
36
|
-
taskId: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ITestRunServiceTaskParams {
|
|
40
|
-
applicationId: string;
|
|
41
|
-
serviceId: string;
|
|
42
|
-
taskId: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ITestRunServiceTaskBody {
|
|
45
|
-
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
-
environmentId: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface IListServiceDelayedRunParams {
|
|
50
|
-
applicationId: string;
|
|
51
|
-
serviceId: string;
|
|
52
|
-
environmentId: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ICancelServiceDelayedRunParams {
|
|
56
|
-
applicationId: string;
|
|
57
|
-
serviceId: string;
|
|
58
|
-
environmentId: string;
|
|
59
|
-
delayedRunId: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
-
applicationId: string;
|
|
64
|
-
serviceId: string;
|
|
65
|
-
environmentId: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
-
applicationId: string;
|
|
70
|
-
serviceId: string;
|
|
71
|
-
taskId: string;
|
|
72
|
-
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
-
environmentId: string;
|
|
74
|
-
}
|
|
75
|
-
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
-
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
-
limit?: number;
|
|
78
|
-
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
-
offset?: number;
|
|
80
|
-
}
|
|
1
|
+
export interface IListServiceTaskParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ICreateServiceTaskParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
serviceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateServiceTaskBody {
|
|
11
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** A function of the same Service. */
|
|
14
|
+
functionId: string;
|
|
15
|
+
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
+
schedule?: string | null;
|
|
17
|
+
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
+
timezone?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IUpdateServiceTaskParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
serviceId: string;
|
|
24
|
+
taskId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateServiceTaskBody {
|
|
27
|
+
name?: string;
|
|
28
|
+
functionId?: string;
|
|
29
|
+
schedule?: string | null;
|
|
30
|
+
timezone?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IDeleteServiceTaskParams {
|
|
34
|
+
applicationId: string;
|
|
35
|
+
serviceId: string;
|
|
36
|
+
taskId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ITestRunServiceTaskParams {
|
|
40
|
+
applicationId: string;
|
|
41
|
+
serviceId: string;
|
|
42
|
+
taskId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ITestRunServiceTaskBody {
|
|
45
|
+
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
+
environmentId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IListServiceDelayedRunParams {
|
|
50
|
+
applicationId: string;
|
|
51
|
+
serviceId: string;
|
|
52
|
+
environmentId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ICancelServiceDelayedRunParams {
|
|
56
|
+
applicationId: string;
|
|
57
|
+
serviceId: string;
|
|
58
|
+
environmentId: string;
|
|
59
|
+
delayedRunId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
+
applicationId: string;
|
|
64
|
+
serviceId: string;
|
|
65
|
+
environmentId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
+
applicationId: string;
|
|
70
|
+
serviceId: string;
|
|
71
|
+
taskId: string;
|
|
72
|
+
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
+
environmentId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
+
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
+
limit?: number;
|
|
78
|
+
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
+
offset?: number;
|
|
80
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export * from './function.response';
|
|
2
|
-
export * from './function-access.response';
|
|
3
|
-
export * from './function-test.response';
|
|
4
|
-
export * from './function-version.response';
|
|
5
|
-
export * from './function-run.response';
|
|
6
|
-
export * from './function-settings.response';
|
|
7
|
-
export * from './service.response';
|
|
8
|
-
export * from './service-route.response';
|
|
9
|
-
export * from './service-version.response';
|
|
10
|
-
export * from './service-deployment.response';
|
|
11
|
-
export * from './service-configuration.response';
|
|
12
|
-
export * from './service-discord.response';
|
|
13
|
-
export * from './service-task.response';
|
|
1
|
+
export * from './function.response';
|
|
2
|
+
export * from './function-access.response';
|
|
3
|
+
export * from './function-test.response';
|
|
4
|
+
export * from './function-version.response';
|
|
5
|
+
export * from './function-run.response';
|
|
6
|
+
export * from './function-settings.response';
|
|
7
|
+
export * from './service.response';
|
|
8
|
+
export * from './service-route.response';
|
|
9
|
+
export * from './service-version.response';
|
|
10
|
+
export * from './service-deployment.response';
|
|
11
|
+
export * from './service-configuration.response';
|
|
12
|
+
export * from './service-discord.response';
|
|
13
|
+
export * from './service-task.response';
|
|
14
|
+
export * from './service-discord-event.response';
|
|
15
|
+
export * from './service-insights.response';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IReflexDiscordEvent, IReflexDiscordEventLogPage } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceDiscordEventData {
|
|
5
|
+
/** By name. */
|
|
6
|
+
events: IReflexDiscordEvent[];
|
|
7
|
+
}
|
|
8
|
+
export type IListServiceDiscordEventResponse = IResponse<IListServiceDiscordEventData>;
|
|
9
|
+
|
|
10
|
+
export interface ICreateServiceDiscordEventData {
|
|
11
|
+
event: IReflexDiscordEvent;
|
|
12
|
+
}
|
|
13
|
+
export type ICreateServiceDiscordEventResponse = IResponse<ICreateServiceDiscordEventData>;
|
|
14
|
+
|
|
15
|
+
export interface IUpdateServiceDiscordEventData {
|
|
16
|
+
event: IReflexDiscordEvent;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateServiceDiscordEventResponse = IResponse<IUpdateServiceDiscordEventData>;
|
|
19
|
+
|
|
20
|
+
export type IDeleteServiceDiscordEventData = Record<string, never>;
|
|
21
|
+
export type IDeleteServiceDiscordEventResponse = IResponse<IDeleteServiceDiscordEventData>;
|
|
22
|
+
|
|
23
|
+
export type IListServiceDiscordEventLogData = IReflexDiscordEventLogPage;
|
|
24
|
+
export type IListServiceDiscordEventLogResponse = IResponse<IListServiceDiscordEventLogData>;
|