@abyss-project/reflex 6.1.0 → 6.3.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/.eslintrc.js +32 -32
- package/README.md +15 -15
- package/dist/api/function-run.api.d.ts +1 -2
- package/dist/api/function-run.api.js +1 -3
- package/dist/api/function-run.api.js.map +1 -1
- package/dist/api/function-settings.api.d.ts +1 -3
- package/dist/api/function-settings.api.js +1 -7
- package/dist/api/function-settings.api.js.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/dist/types/enum/discord-host-action.enum.d.ts +3 -1
- package/dist/types/enum/discord-host-action.enum.js +2 -0
- package/dist/types/enum/discord-host-action.enum.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +1 -2
- package/dist/types/enum/reflex-error-code.enum.js +0 -1
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/interface/api/requests/application-run-settings.request.d.ts +0 -1
- package/dist/types/interface/api/requests/function-run.request.d.ts +0 -8
- package/dist/types/interface/api/requests/function-settings.request.d.ts +0 -12
- package/dist/types/interface/api/requests/service-discord.request.d.ts +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +0 -1
- package/dist/types/interface/api/responses/function-run.response.d.ts +0 -4
- package/dist/types/interface/api/responses/function-settings.response.d.ts +1 -5
- package/dist/types/interface/models/index.d.ts +0 -2
- package/dist/types/interface/models/index.js +0 -2
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-discord.model.d.ts +5 -0
- package/dist/types/interface/models/reflex-discord.model.js +2 -0
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -1
- package/dist/types/interface/models/reflex-price-list.model.d.ts +1 -0
- package/dist/types/interface/models/reflex-run-settings.model.d.ts +0 -4
- package/dist/types/interface/models/reflex-run.model.d.ts +0 -5
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -2
- package/dist/types/interface/models/reflex-service.model.d.ts +0 -1
- package/jest.config.ts +11 -11
- package/package.json +1 -1
- package/src/api/alert-rule.api.test.ts +72 -72
- package/src/api/alert-rule.api.ts +57 -57
- package/src/api/application-insights.api.test.ts +42 -42
- package/src/api/application-insights.api.ts +38 -38
- package/src/api/application-run-settings.api.test.ts +0 -11
- package/src/api/application-run-settings.api.ts +30 -30
- package/src/api/function-access.api.ts +87 -87
- package/src/api/function-insights.api.test.ts +27 -27
- package/src/api/function-insights.api.ts +18 -18
- package/src/api/function-run.api.ts +0 -15
- package/src/api/function-settings.api.ts +0 -22
- package/src/api/function-template.api.test.ts +72 -72
- package/src/api/function-template.api.ts +52 -52
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +66 -66
- package/src/api/function.api.test.ts +0 -55
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +26 -26
- package/src/api/route-stats.api.test.ts +45 -45
- package/src/api/route-stats.api.ts +36 -36
- package/src/api/service-completion-webhook.api.test.ts +97 -97
- package/src/api/service-completion-webhook.api.ts +39 -39
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-consumer.api.test.ts +104 -104
- package/src/api/service-consumer.api.ts +90 -90
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-discord-event.api.test.ts +106 -106
- package/src/api/service-discord-event.api.ts +78 -78
- package/src/api/service-discord.api.test.ts +178 -178
- package/src/api/service-discord.api.ts +222 -222
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-limits.api.test.ts +100 -100
- package/src/api/service-limits.api.ts +37 -37
- package/src/api/service-openapi.api.test.ts +52 -52
- package/src/api/service-openapi.api.ts +21 -21
- package/src/api/service-route.api.ts +74 -74
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.test.ts +1 -6
- package/src/api/service.api.ts +55 -55
- package/src/discord/discord-event-filter-cases.ts +261 -261
- package/src/discord/discord-event-filters.test.ts +91 -91
- package/src/discord/discord-event-filters.ts +95 -95
- package/src/discord/discord-event-intents.test.ts +112 -112
- package/src/discord/discord-event-intents.ts +55 -55
- package/src/discord/index.ts +3 -3
- package/src/index.test.ts +104 -104
- package/src/index.ts +0 -12
- package/src/insights/index.ts +1 -1
- package/src/insights/percentiles.test.ts +75 -75
- package/src/insights/percentiles.ts +37 -37
- package/src/types/enum/discord-host-action.enum.ts +2 -0
- package/src/types/enum/reflex-error-code.enum.ts +0 -5
- package/src/types/interface/api/requests/application-run-settings.request.ts +0 -2
- package/src/types/interface/api/requests/function-run.request.ts +0 -10
- package/src/types/interface/api/requests/function-settings.request.ts +0 -16
- package/src/types/interface/api/requests/service-discord.request.ts +6 -0
- package/src/types/interface/api/requests/service.request.ts +0 -2
- package/src/types/interface/api/responses/function-run.response.ts +0 -5
- package/src/types/interface/api/responses/function-settings.response.ts +0 -7
- package/src/types/interface/models/index.ts +0 -2
- package/src/types/interface/models/reflex-discord.model.ts +12 -0
- package/src/types/interface/models/reflex-price-list.model.ts +2 -0
- package/src/types/interface/models/reflex-run-settings.model.ts +0 -11
- package/src/types/interface/models/reflex-run.model.ts +0 -10
- package/src/types/interface/models/reflex-service-deployment.model.ts +2 -4
- package/src/types/interface/models/reflex-service.model.ts +0 -2
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
- package/dist/types/interface/models/reflex-run-retention.model.d.ts +0 -13
- package/dist/types/interface/models/reflex-run-retention.model.js +0 -8
- package/dist/types/interface/models/reflex-run-retention.model.js.map +0 -1
- package/dist/types/interface/models/reflex-storage-surplus.model.d.ts +0 -11
- package/dist/types/interface/models/reflex-storage-surplus.model.js +0 -3
- package/dist/types/interface/models/reflex-storage-surplus.model.js.map +0 -1
- package/src/types/interface/models/reflex-run-retention.model.ts +0 -24
- package/src/types/interface/models/reflex-storage-surplus.model.ts +0 -23
|
@@ -32,19 +32,3 @@ export interface ISetFunctionLogCapParams {
|
|
|
32
32
|
}
|
|
33
33
|
/** `lines` is required, 1 to 10 000, when `mode` is LIMIT, and forbidden otherwise. */
|
|
34
34
|
export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
|
|
35
|
-
|
|
36
|
-
export interface IGetFunctionRunRetentionParams {
|
|
37
|
-
applicationId: string;
|
|
38
|
-
functionId: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface ISetFunctionRunRetentionParams {
|
|
42
|
-
applicationId: string;
|
|
43
|
-
functionId: string;
|
|
44
|
-
}
|
|
45
|
-
export interface ISetFunctionRunRetentionBody {
|
|
46
|
-
/** One of `REFLEX_RUN_RETENTION_TIER_DAYS`; null to follow the application. Left alone when absent. */
|
|
47
|
-
runRetentionDays?: number | null;
|
|
48
|
-
/** `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`. Left alone when absent. */
|
|
49
|
-
versionsKept?: number;
|
|
50
|
-
}
|
|
@@ -121,6 +121,12 @@ export interface ISetServiceDiscordEnvironmentBody {
|
|
|
121
121
|
activityType?: DiscordActivityType | null;
|
|
122
122
|
/** 1 to 128 characters, required with an `activityType`, null without. */
|
|
123
123
|
activityText?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Largest file the bot receives or sends, in bytes, 1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`; omitted,
|
|
126
|
+
* the current size is kept (the default until one is set), unlike the other fields of this body, which an
|
|
127
|
+
* omission resets: a screen sends it only when it changed it.
|
|
128
|
+
*/
|
|
129
|
+
maxAttachmentBytes?: number;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
export interface ICheckServiceDiscordConnectionParams {
|
|
@@ -38,8 +38,6 @@ export interface IUpdateServiceBody {
|
|
|
38
38
|
cors?: IReflexServiceCors;
|
|
39
39
|
/** 1 to 6000. */
|
|
40
40
|
rateLimitPerIpPerMinute?: number;
|
|
41
|
-
/** `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`: how many versions of the Service the purge keeps. */
|
|
42
|
-
versionsKept?: number;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
export interface IDeleteServiceParams {
|
|
@@ -16,8 +16,3 @@ export interface IGetFunctionRunStateData {
|
|
|
16
16
|
state: IReflexExecutionState;
|
|
17
17
|
}
|
|
18
18
|
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
19
|
-
|
|
20
|
-
export interface ISetFunctionRunFavoriteData {
|
|
21
|
-
run: IReflexRun;
|
|
22
|
-
}
|
|
23
|
-
export type ISetFunctionRunFavoriteResponse = IResponse<ISetFunctionRunFavoriteData>;
|
|
@@ -3,7 +3,6 @@ import type {
|
|
|
3
3
|
IReflexExecutionSettings,
|
|
4
4
|
IReflexExecutionSettingsValues,
|
|
5
5
|
IReflexFunctionLogCap,
|
|
6
|
-
IReflexFunctionRunRetention,
|
|
7
6
|
IReflexIssuedCompletionSecret,
|
|
8
7
|
IReflexPriceList,
|
|
9
8
|
} from '../../models';
|
|
@@ -49,9 +48,3 @@ export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
|
49
48
|
|
|
50
49
|
export type ISetFunctionLogCapData = IReflexFunctionLogCap;
|
|
51
50
|
export type ISetFunctionLogCapResponse = IResponse<ISetFunctionLogCapData>;
|
|
52
|
-
|
|
53
|
-
export type IGetFunctionRunRetentionData = IReflexFunctionRunRetention;
|
|
54
|
-
export type IGetFunctionRunRetentionResponse = IResponse<IGetFunctionRunRetentionData>;
|
|
55
|
-
|
|
56
|
-
export type ISetFunctionRunRetentionData = IReflexFunctionRunRetention;
|
|
57
|
-
export type ISetFunctionRunRetentionResponse = IResponse<ISetFunctionRunRetentionData>;
|
|
@@ -25,5 +25,3 @@ export * from './reflex-route-contract.model';
|
|
|
25
25
|
export * from './reflex-consumer.model';
|
|
26
26
|
export * from './reflex-service-limits.model';
|
|
27
27
|
export * from './reflex-completion-webhook.model';
|
|
28
|
-
export * from './reflex-run-retention.model';
|
|
29
|
-
export * from './reflex-storage-surplus.model';
|
|
@@ -30,6 +30,9 @@ export const REFLEX_DISCORD_LIMITS = {
|
|
|
30
30
|
optionLengthMax: 6000,
|
|
31
31
|
/** Length of the name of a choice, localized or not. */
|
|
32
32
|
choiceNameMaxLength: 100,
|
|
33
|
+
/** Largest file a bot receives or sends, per bot and environment (#915): the default, and the bound the setting may not pass. */
|
|
34
|
+
attachmentMaxBytesDefault: 2 * 1024 * 1024,
|
|
35
|
+
attachmentMaxBytesBound: 8 * 1024 * 1024,
|
|
33
36
|
} as const;
|
|
34
37
|
|
|
35
38
|
/** A translated command or option name Discord accepts: its pattern, and lower case where the script has one. */
|
|
@@ -62,6 +65,11 @@ export interface IReflexDiscordCommandOption {
|
|
|
62
65
|
required: boolean;
|
|
63
66
|
/** 25 at most, only for STRING, INTEGER and NUMBER; within `minValue`/`maxValue` and `minLength`/`maxLength`. */
|
|
64
67
|
choices?: IReflexDiscordOptionChoice[];
|
|
68
|
+
/**
|
|
69
|
+
* Discord asks the function for the choices while the user types. Only for STRING, INTEGER and NUMBER,
|
|
70
|
+
* never together with `choices`. Absent means false.
|
|
71
|
+
*/
|
|
72
|
+
autocomplete?: boolean;
|
|
65
73
|
/** INTEGER and NUMBER: safe numbers, `minValue` <= `maxValue`. */
|
|
66
74
|
minValue?: number;
|
|
67
75
|
maxValue?: number;
|
|
@@ -152,6 +160,8 @@ export interface IReflexDiscordEnvironmentSettings {
|
|
|
152
160
|
activityType: DiscordActivityType | null;
|
|
153
161
|
/** 1 to 128 characters with an `activityType`, null without. */
|
|
154
162
|
activityText: string | null;
|
|
163
|
+
/** Largest file the bot receives or sends, in bytes: `REFLEX_DISCORD_LIMITS.attachmentMaxBytesDefault` until set. */
|
|
164
|
+
maxAttachmentBytes: number;
|
|
155
165
|
createdAt: Date;
|
|
156
166
|
updatedAt: Date;
|
|
157
167
|
}
|
|
@@ -180,6 +190,8 @@ export interface IReflexDiscordEnvironmentConnection {
|
|
|
180
190
|
presenceStatus: DiscordPresenceStatus;
|
|
181
191
|
activityType: DiscordActivityType | null;
|
|
182
192
|
activityText: string | null;
|
|
193
|
+
/** Largest file the bot receives or sends, in bytes (1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`). */
|
|
194
|
+
maxAttachmentBytes: number;
|
|
183
195
|
/** The Gateway connection; null while the bot is not in service in this environment. */
|
|
184
196
|
presence: IReflexDiscordPresence | null;
|
|
185
197
|
/** Address to give Discord for interactions in this environment. */
|
|
@@ -8,6 +8,8 @@ import type { ExecutionProfile } from '../../enum';
|
|
|
8
8
|
export interface IReflexPriceList {
|
|
9
9
|
/** Once per execution; 0 for an interrupted or refused execution. */
|
|
10
10
|
executionMillicredits: number;
|
|
11
|
+
/** Once per autocomplete execution, in place of `executionMillicredits`; its CPU and memory are not billed. */
|
|
12
|
+
autocompleteExecutionMillicredits: number;
|
|
11
13
|
cpuMillicreditsPerSecond: number;
|
|
12
14
|
/** Per GB-second of the memory the profile allocates, GB = 1024 MB. */
|
|
13
15
|
memoryMillicreditsPerGbSecond: number;
|
|
@@ -17,17 +17,6 @@ export interface IReflexApplicationRunSettings {
|
|
|
17
17
|
maxLogLinesPerRun: number | null;
|
|
18
18
|
/** How long runs are kept, from the Monitor plan; null until the first synchronization answered. Read only. */
|
|
19
19
|
retentionDays: number | null;
|
|
20
|
-
/**
|
|
21
|
-
* The retention tier the customer chose for the runs of the application, one of `REFLEX_RUN_RETENTION_TIER_DAYS`;
|
|
22
|
-
* null follows the plan (`retentionDays`). A function's own tier wins over it.
|
|
23
|
-
*/
|
|
24
|
-
runRetentionDays: number | null;
|
|
25
|
-
/** The owner's storage is cut: the runs recorded now keep no detail, steps or log lines. Read only. */
|
|
26
|
-
historyMinimal: boolean;
|
|
27
|
-
/** Bytes the runs of the application hold online (detail, steps, log lines). Read only. */
|
|
28
|
-
storedBytesOnline: number;
|
|
29
|
-
/** Bytes the runs of the application hold in the customer's archive. Read only. */
|
|
30
|
-
storedBytesArchive: number;
|
|
31
20
|
/** Whether the application has Monitor activated. Read only. */
|
|
32
21
|
monitorActivated: boolean;
|
|
33
22
|
}
|
|
@@ -184,16 +184,6 @@ export interface IReflexRun {
|
|
|
184
184
|
delivery?: IReflexCompletionDelivery;
|
|
185
185
|
createdByUserId: string | null;
|
|
186
186
|
createdAt: Date;
|
|
187
|
-
/** When the run is purged (its start plus the retention in force); null for a test run, and while no retention is known. */
|
|
188
|
-
expiresAt: string | null;
|
|
189
|
-
/** A favorite run is never purged. */
|
|
190
|
-
isFavorite: boolean;
|
|
191
|
-
/** The run was recorded while the owner's storage was cut: no detail, steps or log lines were kept. */
|
|
192
|
-
historyMinimal: boolean;
|
|
193
|
-
/** Bytes the run holds online (detail, steps, log lines); null for a test run, and for a run whose size was never computed. */
|
|
194
|
-
storedBytes: number | null;
|
|
195
|
-
/** When the detail, steps and log lines moved to the customer's archive; null while they are online. */
|
|
196
|
-
detailArchivedAt: string | null;
|
|
197
187
|
}
|
|
198
188
|
|
|
199
189
|
/** The consumer of a Service that called a route, as the edge passed it to the function. */
|
|
@@ -23,10 +23,8 @@ export interface IReflexServiceDeployment {
|
|
|
23
23
|
environmentId: string;
|
|
24
24
|
/** The name of that environment, second segment of the address. */
|
|
25
25
|
environmentSlug: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/** Number of that version; null with `serviceVersionId`. */
|
|
29
|
-
serviceVersionNumber: number | null;
|
|
26
|
+
serviceVersionId: string;
|
|
27
|
+
serviceVersionNumber: number;
|
|
30
28
|
action: ServiceDeploymentAction;
|
|
31
29
|
status: ServiceDeploymentStatus;
|
|
32
30
|
grants: IReflexServiceDeploymentGrant[];
|
|
@@ -38,8 +38,6 @@ export interface IReflexService {
|
|
|
38
38
|
cors: IReflexServiceCors;
|
|
39
39
|
/** Draft: frozen by the next version. Calls per minute and per client IP, in each environment. */
|
|
40
40
|
rateLimitPerIpPerMinute: number;
|
|
41
|
-
/** How many versions of the Service the purge keeps, `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`. */
|
|
42
|
-
versionsKept: number;
|
|
43
41
|
createdByUserId: string;
|
|
44
42
|
updatedByUserId: string;
|
|
45
43
|
createdAt: Date;
|
package/tsconfig.check.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Perimetre de VERIFICATION, distinct de celui du build.
|
|
3
|
-
//
|
|
4
|
-
// `tsconfig.json` exclut `src/**/*.spec.ts` parce qu'il sert a emettre `dist/`, ou une spec
|
|
5
|
-
// n'a rien a faire. Mais eslint s'appuie sur ce meme fichier via `parserOptions.project` :
|
|
6
|
-
// les cinq specs du paquet sortaient donc en « Parsing error: that TSConfig does not include
|
|
7
|
-
// this file », mesure du 2026-09-09, et n'etaient lintees par personne.
|
|
8
|
-
//
|
|
9
|
-
// Ce fichier sert uniquement a eslint. Il n'emet rien et ne change pas ce que `build` produit.
|
|
10
|
-
"extends": "./tsconfig.json",
|
|
11
|
-
"compilerOptions": {
|
|
12
|
-
"noEmit": true
|
|
13
|
-
},
|
|
14
|
-
"exclude": ["./dist/**/*"]
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
// Perimetre de VERIFICATION, distinct de celui du build.
|
|
3
|
+
//
|
|
4
|
+
// `tsconfig.json` exclut `src/**/*.spec.ts` parce qu'il sert a emettre `dist/`, ou une spec
|
|
5
|
+
// n'a rien a faire. Mais eslint s'appuie sur ce meme fichier via `parserOptions.project` :
|
|
6
|
+
// les cinq specs du paquet sortaient donc en « Parsing error: that TSConfig does not include
|
|
7
|
+
// this file », mesure du 2026-09-09, et n'etaient lintees par personne.
|
|
8
|
+
//
|
|
9
|
+
// Ce fichier sert uniquement a eslint. Il n'emet rien et ne change pas ce que `build` produit.
|
|
10
|
+
"extends": "./tsconfig.json",
|
|
11
|
+
"compilerOptions": {
|
|
12
|
+
"noEmit": true
|
|
13
|
+
},
|
|
14
|
+
"exclude": ["./dist/**/*"]
|
|
15
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "es2021",
|
|
5
|
-
"lib": [
|
|
6
|
-
"dom",
|
|
7
|
-
"es2021"
|
|
8
|
-
],
|
|
9
|
-
"module": "commonjs",
|
|
10
|
-
"rootDir": "src",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"declaration": true,
|
|
14
|
-
"sourceMap": true,
|
|
15
|
-
"outDir": "./dist",
|
|
16
|
-
"removeComments": true,
|
|
17
|
-
"allowSyntheticDefaultImports": true,
|
|
18
|
-
"esModuleInterop": true,
|
|
19
|
-
"forceConsistentCasingInFileNames": true,
|
|
20
|
-
"strict": true,
|
|
21
|
-
"strictNullChecks": true,
|
|
22
|
-
"strictFunctionTypes": true,
|
|
23
|
-
"strictPropertyInitialization": false,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"./src"
|
|
28
|
-
],
|
|
29
|
-
"exclude": [
|
|
30
|
-
"./dist/**/*",
|
|
31
|
-
"./src/**/*.spec.ts",
|
|
32
|
-
"./src/**/*.test.ts",
|
|
33
|
-
"./src/**/__tests__/**"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
"lib": [
|
|
6
|
+
"dom",
|
|
7
|
+
"es2021"
|
|
8
|
+
],
|
|
9
|
+
"module": "commonjs",
|
|
10
|
+
"rootDir": "src",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"sourceMap": true,
|
|
15
|
+
"outDir": "./dist",
|
|
16
|
+
"removeComments": true,
|
|
17
|
+
"allowSyntheticDefaultImports": true,
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
20
|
+
"strict": true,
|
|
21
|
+
"strictNullChecks": true,
|
|
22
|
+
"strictFunctionTypes": true,
|
|
23
|
+
"strictPropertyInitialization": false,
|
|
24
|
+
"skipLibCheck": true
|
|
25
|
+
},
|
|
26
|
+
"include": [
|
|
27
|
+
"./src"
|
|
28
|
+
],
|
|
29
|
+
"exclude": [
|
|
30
|
+
"./dist/**/*",
|
|
31
|
+
"./src/**/*.spec.ts",
|
|
32
|
+
"./src/**/*.test.ts",
|
|
33
|
+
"./src/**/__tests__/**"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const REFLEX_RUN_RETENTION_TIER_DAYS: readonly [3, 7, 15, 30, 90, 180, 365];
|
|
2
|
-
export declare const REFLEX_VERSIONS_KEPT: {
|
|
3
|
-
readonly default: 20;
|
|
4
|
-
readonly min: 5;
|
|
5
|
-
readonly max: 100;
|
|
6
|
-
};
|
|
7
|
-
export declare const REFLEX_RUN_ARCHIVE_AFTER_DAYS = 30;
|
|
8
|
-
export declare const REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = 90;
|
|
9
|
-
export interface IReflexFunctionRunRetention {
|
|
10
|
-
runRetentionDays: number | null;
|
|
11
|
-
inheritedDays: number | null;
|
|
12
|
-
versionsKept: number;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = exports.REFLEX_RUN_ARCHIVE_AFTER_DAYS = exports.REFLEX_VERSIONS_KEPT = exports.REFLEX_RUN_RETENTION_TIER_DAYS = void 0;
|
|
4
|
-
exports.REFLEX_RUN_RETENTION_TIER_DAYS = [3, 7, 15, 30, 90, 180, 365];
|
|
5
|
-
exports.REFLEX_VERSIONS_KEPT = { default: 20, min: 5, max: 100 };
|
|
6
|
-
exports.REFLEX_RUN_ARCHIVE_AFTER_DAYS = 30;
|
|
7
|
-
exports.REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = 90;
|
|
8
|
-
//# sourceMappingURL=reflex-run-retention.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-run-retention.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run-retention.model.ts"],"names":[],"mappings":";;;AAIa,QAAA,8BAA8B,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;AAGvE,QAAA,oBAAoB,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAW,CAAC;AAGlE,QAAA,6BAA6B,GAAG,EAAE,CAAC;AAGnC,QAAA,gCAAgC,GAAG,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface IReflexStorageSurplusOwner {
|
|
2
|
-
organizationId?: string | null;
|
|
3
|
-
userId?: string | null;
|
|
4
|
-
}
|
|
5
|
-
export interface IReflexStorageSurplusItem {
|
|
6
|
-
id: string;
|
|
7
|
-
sizeBytes: number;
|
|
8
|
-
createdAt: Date | string;
|
|
9
|
-
isFavorite: boolean;
|
|
10
|
-
label: string;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-storage-surplus.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-storage-surplus.model.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The retention tiers of the runs a customer may choose, in days (AbyssReflex L3a, #893). The plan's retention is
|
|
3
|
-
* the default; a tier is chosen per application, and per function over it. Same list as the database CHECKs.
|
|
4
|
-
*/
|
|
5
|
-
export const REFLEX_RUN_RETENTION_TIER_DAYS = [3, 7, 15, 30, 90, 180, 365] as const;
|
|
6
|
-
|
|
7
|
-
/** Bounds of the number of versions the purge keeps, per function and per Service. */
|
|
8
|
-
export const REFLEX_VERSIONS_KEPT = { default: 20, min: 5, max: 100 } as const;
|
|
9
|
-
|
|
10
|
-
/** The detail of a run (detail, steps, log lines) moves to the archive past this age, in days, when its tier allows it. */
|
|
11
|
-
export const REFLEX_RUN_ARCHIVE_AFTER_DAYS = 30;
|
|
12
|
-
|
|
13
|
-
/** The runs of a tier under this number of days are never archived: they are purged before they would be. */
|
|
14
|
-
export const REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = 90;
|
|
15
|
-
|
|
16
|
-
/** The run retention of a function: its own tier, the one it inherits, and how many versions are kept. */
|
|
17
|
-
export interface IReflexFunctionRunRetention {
|
|
18
|
-
/** The tier of the function itself, one of `REFLEX_RUN_RETENTION_TIER_DAYS`; null follows the application. */
|
|
19
|
-
runRetentionDays: number | null;
|
|
20
|
-
/** The tier the function follows when it has none: the application's, else null for the plan's retention. Read only. */
|
|
21
|
-
inheritedDays: number | null;
|
|
22
|
-
/** How many versions of the function the purge keeps, `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`. */
|
|
23
|
-
versionsKept: number;
|
|
24
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whose storage a day-90 operation is about (the storage surplus contract of abyss-main, #889): the owner of an
|
|
3
|
-
* application is an organization, so `organizationId` is the one Reflex acts on.
|
|
4
|
-
*/
|
|
5
|
-
export interface IReflexStorageSurplusOwner {
|
|
6
|
-
organizationId?: string | null;
|
|
7
|
-
userId?: string | null;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* One item of the day-90 contract: a day of the runs of one function. Online (archivable) its `id` names the day; in
|
|
12
|
-
* the archive it is the id of the archive object of that day.
|
|
13
|
-
*/
|
|
14
|
-
export interface IReflexStorageSurplusItem {
|
|
15
|
-
id: string;
|
|
16
|
-
sizeBytes: number;
|
|
17
|
-
/** The day the item holds the runs of, UTC. */
|
|
18
|
-
createdAt: Date | string;
|
|
19
|
-
/** The day holds a favorite run. A favorite protects nothing against the quota. */
|
|
20
|
-
isFavorite: boolean;
|
|
21
|
-
/** What the customer recognises the day by: the function and the day. */
|
|
22
|
-
label: string;
|
|
23
|
-
}
|