@abyss-project/reflex 5.8.1 → 5.9.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/.prettierrc +5 -5
- package/README.md +15 -15
- package/dist/api/alert-rule.api.d.ts +5 -0
- package/dist/api/alert-rule.api.js +16 -0
- package/dist/api/alert-rule.api.js.map +1 -0
- package/dist/api/application-insights.api.d.ts +3 -0
- package/dist/api/application-insights.api.js +12 -0
- package/dist/api/application-insights.api.js.map +1 -0
- package/dist/api/application-run-settings.api.d.ts +3 -0
- package/dist/api/application-run-settings.api.js +11 -0
- package/dist/api/application-run-settings.api.js.map +1 -0
- package/dist/api/function-settings.api.d.ts +2 -1
- package/dist/api/function-settings.api.js +3 -1
- package/dist/api/function-settings.api.js.map +1 -1
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/route-stats.api.d.ts +3 -0
- package/dist/api/route-stats.api.js +9 -0
- package/dist/api/route-stats.api.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.js +18 -0
- package/dist/insights/index.js.map +1 -0
- package/dist/insights/percentiles.d.ts +2 -0
- package/dist/insights/percentiles.js +28 -0
- package/dist/insights/percentiles.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/enum/log-cap-mode.enum.d.ts +5 -0
- package/dist/types/enum/log-cap-mode.enum.js +10 -0
- package/dist/types/enum/log-cap-mode.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-metric.enum.d.ts +4 -0
- package/dist/types/enum/reflex-alert-metric.enum.js +9 -0
- package/dist/types/enum/reflex-alert-metric.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.d.ts +5 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.js +10 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-scope.enum.d.ts +5 -0
- package/dist/types/enum/reflex-alert-scope.enum.js +10 -0
- package/dist/types/enum/reflex-alert-scope.enum.js.map +1 -0
- package/dist/types/interface/api/requests/alert-rule.request.d.ts +38 -0
- package/dist/types/interface/api/requests/alert-rule.request.js +3 -0
- package/dist/types/interface/api/requests/alert-rule.request.js.map +1 -0
- package/dist/types/interface/api/requests/application-insights.request.d.ts +14 -0
- package/dist/types/interface/api/requests/application-insights.request.js +3 -0
- package/dist/types/interface/api/requests/application-insights.request.js.map +1 -0
- package/dist/types/interface/api/requests/application-run-settings.request.d.ts +9 -0
- package/dist/types/interface/api/requests/application-run-settings.request.js +3 -0
- package/dist/types/interface/api/requests/application-run-settings.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-settings.request.d.ts +6 -1
- package/dist/types/interface/api/requests/index.d.ts +4 -0
- package/dist/types/interface/api/requests/index.js +4 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/route-stats.request.d.ts +18 -0
- package/dist/types/interface/api/requests/route-stats.request.js +3 -0
- package/dist/types/interface/api/requests/route-stats.request.js.map +1 -0
- package/dist/types/interface/api/responses/alert-rule.response.d.ts +17 -0
- package/dist/types/interface/api/responses/alert-rule.response.js +3 -0
- package/dist/types/interface/api/responses/alert-rule.response.js.map +1 -0
- package/dist/types/interface/api/responses/application-insights.response.d.ts +8 -0
- package/dist/types/interface/api/responses/application-insights.response.js +3 -0
- package/dist/types/interface/api/responses/application-insights.response.js.map +1 -0
- package/dist/types/interface/api/responses/application-run-settings.response.d.ts +6 -0
- package/dist/types/interface/api/responses/application-run-settings.response.js +3 -0
- package/dist/types/interface/api/responses/application-run-settings.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +3 -1
- package/dist/types/interface/api/responses/index.d.ts +4 -0
- package/dist/types/interface/api/responses/index.js +4 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/route-stats.response.d.ts +12 -0
- package/dist/types/interface/api/responses/route-stats.response.js +3 -0
- package/dist/types/interface/api/responses/route-stats.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +2 -0
- package/dist/types/interface/models/index.js +2 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-alert-rule.model.d.ts +55 -0
- package/dist/types/interface/models/reflex-alert-rule.model.js +15 -0
- package/dist/types/interface/models/reflex-alert-rule.model.js.map +1 -0
- package/dist/types/interface/models/reflex-insights.model.d.ts +63 -0
- package/dist/types/interface/models/reflex-insights.model.js +4 -1
- package/dist/types/interface/models/reflex-insights.model.js.map +1 -1
- package/dist/types/interface/models/reflex-run-settings.model.d.ts +19 -0
- package/dist/types/interface/models/reflex-run-settings.model.js +9 -0
- package/dist/types/interface/models/reflex-run-settings.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +40 -3
- package/dist/types/interface/models/reflex-run.model.js +9 -0
- package/dist/types/interface/models/reflex-run.model.js.map +1 -1
- package/jest.config.ts +11 -11
- package/package.json +15 -10
- package/src/api/alert-rule.api.test.ts +72 -0
- package/src/api/alert-rule.api.ts +57 -0
- package/src/api/application-insights.api.test.ts +42 -0
- package/src/api/application-insights.api.ts +38 -0
- package/src/api/application-run-settings.api.test.ts +51 -0
- package/src/api/application-run-settings.api.ts +30 -0
- package/src/api/function-access.api.ts +36 -36
- 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 +38 -38
- package/src/api/function-settings.api.ts +74 -59
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +48 -48
- package/src/api/function.api.test.ts +249 -249
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +21 -17
- package/src/api/route-stats.api.test.ts +45 -0
- package/src/api/route-stats.api.ts +36 -0
- package/src/api/service-configuration.api.ts +16 -16
- 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 +197 -197
- package/src/api/service-discord.api.ts +241 -241
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-route.api.ts +72 -72
- 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 +215 -215
- 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 +87 -75
- package/src/index.ts +371 -317
- package/src/insights/index.ts +1 -0
- package/src/insights/percentiles.test.ts +75 -0
- package/src/insights/percentiles.ts +37 -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/bot-event-block-reason.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 -9
- package/src/types/enum/discord-component-kind.enum.ts +7 -7
- package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
- package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
- package/src/types/enum/discord-event-status.enum.ts +13 -13
- package/src/types/enum/discord-event-type.enum.ts +7 -7
- package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
- package/src/types/enum/discord-gateway-state.enum.ts +11 -11
- package/src/types/enum/discord-option-type.enum.ts +12 -12
- package/src/types/enum/discord-presence-status.enum.ts +8 -8
- package/src/types/enum/discord-sync-status.enum.ts +6 -6
- package/src/types/enum/discord-token-state.enum.ts +11 -11
- 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 +44 -40
- package/src/types/enum/insights-period.enum.ts +8 -8
- package/src/types/enum/log-cap-mode.enum.ts +6 -0
- package/src/types/enum/reflex-alert-metric.enum.ts +5 -0
- package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -0
- package/src/types/enum/reflex-alert-scope.enum.ts +6 -0
- package/src/types/enum/reflex-error-code.enum.ts +43 -43
- 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/schedule-sync-status.enum.ts +6 -6
- package/src/types/enum/scheduled-run-failure-code.enum.ts +12 -12
- 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/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/trigger-kind.enum.ts +8 -8
- 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/alert-rule.request.ts +53 -0
- package/src/types/interface/api/requests/application-insights.request.ts +18 -0
- package/src/types/interface/api/requests/application-run-settings.request.ts +11 -0
- package/src/types/interface/api/requests/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +30 -30
- package/src/types/interface/api/requests/function-settings.request.ts +34 -27
- package/src/types/interface/api/requests/function-test.request.ts +39 -39
- 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 +19 -15
- package/src/types/interface/api/requests/route-stats.request.ts +22 -0
- 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-event.request.ts +68 -68
- package/src/types/interface/api/requests/service-discord.request.ts +173 -173
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-route.request.ts +44 -44
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- 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/alert-rule.response.ts +24 -0
- package/src/types/interface/api/responses/application-insights.response.ts +11 -0
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -0
- 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 +40 -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 +19 -15
- package/src/types/interface/api/responses/route-stats.response.ts +15 -0
- 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-discord-event.response.ts +24 -24
- package/src/types/interface/api/responses/service-discord.response.ts +122 -122
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +106 -106
- 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 +21 -19
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-alert-rule.model.ts +56 -0
- package/src/types/interface/models/reflex-bot-limits.model.ts +92 -92
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
- package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
- 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-insights.model.ts +215 -120
- 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-settings.model.ts +28 -0
- package/src/types/interface/models/reflex-run.model.ts +250 -186
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
- package/src/types/interface/models/reflex-service-version.model.ts +61 -61
- package/src/types/interface/models/reflex-service.model.ts +45 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-task.model.ts +97 -97
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-rule.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/alert-rule.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
export interface IGetApplicationInsightsParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IGetApplicationInsightsQuery {
|
|
6
|
+
environmentId: string;
|
|
7
|
+
period: InsightsPeriod;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetApplicationCalendarParams {
|
|
10
|
+
applicationId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IGetApplicationCalendarQuery {
|
|
13
|
+
environmentId: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-insights.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/application-insights.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-run-settings.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/application-run-settings.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IReflexExecutionSettingsValues } from '../../models';
|
|
1
|
+
import type { IReflexExecutionSettingsValues, IReflexFunctionLogCap } from '../../models';
|
|
2
2
|
export interface IGetFunctionSettingsParams {
|
|
3
3
|
applicationId: string;
|
|
4
4
|
functionId: string;
|
|
@@ -19,3 +19,8 @@ export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
|
19
19
|
functionId: string;
|
|
20
20
|
environmentId: string;
|
|
21
21
|
}
|
|
22
|
+
export interface ISetFunctionLogCapParams {
|
|
23
|
+
applicationId: string;
|
|
24
|
+
functionId: string;
|
|
25
|
+
}
|
|
26
|
+
export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
|
|
@@ -13,3 +13,7 @@ export * from './service-discord.request';
|
|
|
13
13
|
export * from './service-task.request';
|
|
14
14
|
export * from './service-discord-event.request';
|
|
15
15
|
export * from './service-insights.request';
|
|
16
|
+
export * from './application-run-settings.request';
|
|
17
|
+
export * from './application-insights.request';
|
|
18
|
+
export * from './alert-rule.request';
|
|
19
|
+
export * from './route-stats.request';
|
|
@@ -29,4 +29,8 @@ __exportStar(require("./service-discord.request"), exports);
|
|
|
29
29
|
__exportStar(require("./service-task.request"), exports);
|
|
30
30
|
__exportStar(require("./service-discord-event.request"), exports);
|
|
31
31
|
__exportStar(require("./service-insights.request"), exports);
|
|
32
|
+
__exportStar(require("./application-run-settings.request"), exports);
|
|
33
|
+
__exportStar(require("./application-insights.request"), exports);
|
|
34
|
+
__exportStar(require("./alert-rule.request"), exports);
|
|
35
|
+
__exportStar(require("./route-stats.request"), exports);
|
|
32
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,yDAAuC;AACvC,kEAAgD;AAChD,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,yDAAuC;AACvC,kEAAgD;AAChD,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
export interface IGetServiceRouteStatsParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
serviceId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetServiceRouteStatsQuery {
|
|
7
|
+
environmentId: string;
|
|
8
|
+
period: InsightsPeriod;
|
|
9
|
+
}
|
|
10
|
+
export interface IGetRouteInsightsParams {
|
|
11
|
+
applicationId: string;
|
|
12
|
+
serviceId: string;
|
|
13
|
+
routeId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetRouteInsightsQuery {
|
|
16
|
+
environmentId: string;
|
|
17
|
+
period: InsightsPeriod;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-stats.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/route-stats.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IReflexAlertRuleWithState {
|
|
4
|
+
rule: IReflexAlertRule;
|
|
5
|
+
state: IReflexAlertRuleState | null;
|
|
6
|
+
}
|
|
7
|
+
export interface IListAlertRuleData {
|
|
8
|
+
rules: IReflexAlertRuleWithState[];
|
|
9
|
+
activeCount: number;
|
|
10
|
+
}
|
|
11
|
+
export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
|
|
12
|
+
export type ICreateAlertRuleData = IReflexAlertRuleWithState;
|
|
13
|
+
export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
|
|
14
|
+
export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
|
|
15
|
+
export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
|
|
16
|
+
export type IDeleteAlertRuleData = Record<string, never>;
|
|
17
|
+
export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-rule.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/alert-rule.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export type IGetApplicationInsightsData = IReflexApplicationInsights;
|
|
4
|
+
export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
|
|
5
|
+
export interface IGetApplicationCalendarData {
|
|
6
|
+
days: IReflexCalendarDay[];
|
|
7
|
+
}
|
|
8
|
+
export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-insights.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/application-insights.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IReflexApplicationRunSettings } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
4
|
+
export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
|
|
5
|
+
export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
6
|
+
export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-run-settings.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/application-run-settings.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IReflexEffectiveExecutionSettings, IReflexExecutionSettings, IReflexExecutionSettingsValues, IReflexPriceList } from '../../models';
|
|
1
|
+
import type { IReflexEffectiveExecutionSettings, IReflexExecutionSettings, IReflexExecutionSettingsValues, IReflexFunctionLogCap, IReflexPriceList } from '../../models';
|
|
2
2
|
import type { IResponse } from '../response';
|
|
3
3
|
export interface IGetFunctionSettingsData {
|
|
4
4
|
default: IReflexExecutionSettings | null;
|
|
@@ -18,3 +18,5 @@ export interface ISetFunctionEnvironmentSettingsData {
|
|
|
18
18
|
export type ISetFunctionEnvironmentSettingsResponse = IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
19
19
|
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
20
20
|
export type IRemoveFunctionEnvironmentSettingsResponse = IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
21
|
+
export type ISetFunctionLogCapData = IReflexFunctionLogCap;
|
|
22
|
+
export type ISetFunctionLogCapResponse = IResponse<ISetFunctionLogCapData>;
|
|
@@ -13,3 +13,7 @@ export * from './service-discord.response';
|
|
|
13
13
|
export * from './service-task.response';
|
|
14
14
|
export * from './service-discord-event.response';
|
|
15
15
|
export * from './service-insights.response';
|
|
16
|
+
export * from './application-run-settings.response';
|
|
17
|
+
export * from './application-insights.response';
|
|
18
|
+
export * from './alert-rule.response';
|
|
19
|
+
export * from './route-stats.response';
|
|
@@ -29,4 +29,8 @@ __exportStar(require("./service-discord.response"), exports);
|
|
|
29
29
|
__exportStar(require("./service-task.response"), exports);
|
|
30
30
|
__exportStar(require("./service-discord-event.response"), exports);
|
|
31
31
|
__exportStar(require("./service-insights.response"), exports);
|
|
32
|
+
__exportStar(require("./application-run-settings.response"), exports);
|
|
33
|
+
__exportStar(require("./application-insights.response"), exports);
|
|
34
|
+
__exportStar(require("./alert-rule.response"), exports);
|
|
35
|
+
__exportStar(require("./route-stats.response"), exports);
|
|
32
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,sEAAoD;AACpD,kEAAgD;AAChD,wDAAsC;AACtC,yDAAuC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
import type { IReflexRouteInsights, IReflexRouteStatsRow } from '../../models';
|
|
3
|
+
import type { IResponse } from '../response';
|
|
4
|
+
export interface IGetServiceRouteStatsData {
|
|
5
|
+
period: InsightsPeriod;
|
|
6
|
+
from: Date;
|
|
7
|
+
to: Date;
|
|
8
|
+
routes: IReflexRouteStatsRow[];
|
|
9
|
+
}
|
|
10
|
+
export type IGetServiceRouteStatsResponse = IResponse<IGetServiceRouteStatsData>;
|
|
11
|
+
export type IGetRouteInsightsData = IReflexRouteInsights;
|
|
12
|
+
export type IGetRouteInsightsResponse = IResponse<IGetRouteInsightsData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-stats.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/route-stats.response.ts"],"names":[],"mappings":""}
|
|
@@ -17,3 +17,5 @@ export * from './reflex-discord-event.model';
|
|
|
17
17
|
export * from './reflex-bot-limits.model';
|
|
18
18
|
export * from './reflex-insights.model';
|
|
19
19
|
export * from './reflex-discord-event-log.model';
|
|
20
|
+
export * from './reflex-run-settings.model';
|
|
21
|
+
export * from './reflex-alert-rule.model';
|
|
@@ -33,4 +33,6 @@ __exportStar(require("./reflex-discord-event.model"), exports);
|
|
|
33
33
|
__exportStar(require("./reflex-bot-limits.model"), exports);
|
|
34
34
|
__exportStar(require("./reflex-insights.model"), exports);
|
|
35
35
|
__exportStar(require("./reflex-discord-event-log.model"), exports);
|
|
36
|
+
__exportStar(require("./reflex-run-settings.model"), exports);
|
|
37
|
+
__exportStar(require("./reflex-alert-rule.model"), exports);
|
|
36
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,qDAAmC;AACnC,oEAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,oEAAkD;AAClD,uEAAqD;AACrD,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,mEAAiD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,qDAAmC;AACnC,oEAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,oEAAkD;AAClD,uEAAqD;AACrD,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,4DAA0C"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReflexAlertMetric } from '../../enum';
|
|
2
|
+
import type { ReflexAlertNotificationState, ReflexAlertScope } from '../../enum';
|
|
3
|
+
export declare const REFLEX_ALERT_RULE_LIMITS: {
|
|
4
|
+
readonly maxActivePerApplication: 20;
|
|
5
|
+
readonly windowMinutes: readonly [5, 15, 30, 60];
|
|
6
|
+
readonly threshold: {
|
|
7
|
+
readonly ERROR_RATE: {
|
|
8
|
+
readonly min: 1;
|
|
9
|
+
readonly max: 100;
|
|
10
|
+
};
|
|
11
|
+
readonly LATENCY_P95: {
|
|
12
|
+
readonly min: 1;
|
|
13
|
+
readonly max: 3600000;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly minRuns: {
|
|
17
|
+
readonly default: 20;
|
|
18
|
+
readonly min: 1;
|
|
19
|
+
readonly max: 10000;
|
|
20
|
+
};
|
|
21
|
+
readonly name: {
|
|
22
|
+
readonly minLength: 1;
|
|
23
|
+
readonly maxLength: 64;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export interface IReflexAlertRule {
|
|
27
|
+
id: string;
|
|
28
|
+
applicationId: string;
|
|
29
|
+
environmentId: string;
|
|
30
|
+
scope: ReflexAlertScope;
|
|
31
|
+
serviceId: string | null;
|
|
32
|
+
routeId: string | null;
|
|
33
|
+
functionId: string | null;
|
|
34
|
+
metric: ReflexAlertMetric;
|
|
35
|
+
threshold: number;
|
|
36
|
+
windowMinutes: number;
|
|
37
|
+
minRuns: number;
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
name: string;
|
|
40
|
+
createdByUserId: string;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}
|
|
44
|
+
export interface IReflexAlertRuleState {
|
|
45
|
+
ruleId: string;
|
|
46
|
+
environmentId: string;
|
|
47
|
+
evaluatedAt: Date;
|
|
48
|
+
value: number | null;
|
|
49
|
+
runs: number;
|
|
50
|
+
firing: boolean;
|
|
51
|
+
firingSince: Date | null;
|
|
52
|
+
lastReportedAt: Date | null;
|
|
53
|
+
incidentId: string | null;
|
|
54
|
+
notificationState: ReflexAlertNotificationState | null;
|
|
55
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REFLEX_ALERT_RULE_LIMITS = void 0;
|
|
4
|
+
const enum_1 = require("../../enum");
|
|
5
|
+
exports.REFLEX_ALERT_RULE_LIMITS = {
|
|
6
|
+
maxActivePerApplication: 20,
|
|
7
|
+
windowMinutes: [5, 15, 30, 60],
|
|
8
|
+
threshold: {
|
|
9
|
+
[enum_1.ReflexAlertMetric.ERROR_RATE]: { min: 1, max: 100 },
|
|
10
|
+
[enum_1.ReflexAlertMetric.LATENCY_P95]: { min: 1, max: 3_600_000 },
|
|
11
|
+
},
|
|
12
|
+
minRuns: { default: 20, min: 1, max: 10_000 },
|
|
13
|
+
name: { minLength: 1, maxLength: 64 },
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=reflex-alert-rule.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflex-alert-rule.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-alert-rule.model.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAIlC,QAAA,wBAAwB,GAAG;IAEtC,uBAAuB,EAAE,EAAE;IAE3B,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;IAE9B,SAAS,EAAE;QACT,CAAC,wBAAiB,CAAC,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE;QACpD,CAAC,wBAAiB,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE;KAC5D;IAED,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE;IAC7C,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;CAC7B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { InsightsPeriod } from '../../enum';
|
|
|
2
2
|
import type { TriggerKind } from '../../enum';
|
|
3
3
|
export declare const REFLEX_INSIGHTS_PERIOD_STEP_SECONDS: Record<InsightsPeriod, number>;
|
|
4
4
|
export declare const REFLEX_COST_HISTOGRAM_UPPER_BOUNDS: readonly [10, 25, 50, 100, 250, 500, 1000, 2500, 5000];
|
|
5
|
+
export declare const DURATION_HISTOGRAM_BOUNDS_MS: readonly [10, 25, 50, 100, 200, 300, 500, 750, 1000, 1500, 2500, 5000, 10000, 30000];
|
|
5
6
|
export declare const REFLEX_HEAVY_TRIGGER_FACTOR = 5;
|
|
6
7
|
export interface IReflexInsightsTile {
|
|
7
8
|
value: number;
|
|
@@ -81,3 +82,65 @@ export interface IReflexEventInsights {
|
|
|
81
82
|
spendCents: number;
|
|
82
83
|
monthlySpendCapCents: number;
|
|
83
84
|
}
|
|
85
|
+
export interface IReflexDurationPercentile {
|
|
86
|
+
upperBoundMs: number;
|
|
87
|
+
open: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface IReflexHttpClasses {
|
|
90
|
+
http2xx: number;
|
|
91
|
+
http3xx: number;
|
|
92
|
+
http4xx: number;
|
|
93
|
+
http5xx: number;
|
|
94
|
+
}
|
|
95
|
+
export interface IReflexRouteStatsPoint {
|
|
96
|
+
at: Date;
|
|
97
|
+
runs: number;
|
|
98
|
+
failed: number;
|
|
99
|
+
}
|
|
100
|
+
export interface IReflexRouteStatsRow extends IReflexHttpClasses {
|
|
101
|
+
routeId: string;
|
|
102
|
+
label: string | null;
|
|
103
|
+
runs: number;
|
|
104
|
+
failed: number;
|
|
105
|
+
p50: IReflexDurationPercentile | null;
|
|
106
|
+
p95: IReflexDurationPercentile | null;
|
|
107
|
+
p99: IReflexDurationPercentile | null;
|
|
108
|
+
series: IReflexRouteStatsPoint[];
|
|
109
|
+
}
|
|
110
|
+
export interface IReflexRouteInsightsPoint extends IReflexHttpClasses {
|
|
111
|
+
at: Date;
|
|
112
|
+
runs: number;
|
|
113
|
+
failed: number;
|
|
114
|
+
p50: IReflexDurationPercentile | null;
|
|
115
|
+
p95: IReflexDurationPercentile | null;
|
|
116
|
+
p99: IReflexDurationPercentile | null;
|
|
117
|
+
}
|
|
118
|
+
export interface IReflexRouteInsights {
|
|
119
|
+
period: InsightsPeriod;
|
|
120
|
+
from: Date;
|
|
121
|
+
to: Date;
|
|
122
|
+
stepSeconds: number;
|
|
123
|
+
series: IReflexRouteInsightsPoint[];
|
|
124
|
+
}
|
|
125
|
+
export interface IReflexApplicationServiceShare {
|
|
126
|
+
serviceId: string;
|
|
127
|
+
runs: number;
|
|
128
|
+
failed: number;
|
|
129
|
+
costMillicredits: number;
|
|
130
|
+
}
|
|
131
|
+
export interface IReflexApplicationInsights {
|
|
132
|
+
period: InsightsPeriod;
|
|
133
|
+
from: Date;
|
|
134
|
+
to: Date;
|
|
135
|
+
stepSeconds: number;
|
|
136
|
+
tiles: IReflexInsightsTiles;
|
|
137
|
+
series: IReflexInsightsPoint[];
|
|
138
|
+
byService: IReflexApplicationServiceShare[];
|
|
139
|
+
ranking: IReflexInsightsRankingRow[];
|
|
140
|
+
}
|
|
141
|
+
export interface IReflexCalendarDay {
|
|
142
|
+
day: string;
|
|
143
|
+
runs: number;
|
|
144
|
+
failed: number;
|
|
145
|
+
millicredits: number;
|
|
146
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REFLEX_HEAVY_TRIGGER_FACTOR = exports.REFLEX_COST_HISTOGRAM_UPPER_BOUNDS = exports.REFLEX_INSIGHTS_PERIOD_STEP_SECONDS = void 0;
|
|
3
|
+
exports.REFLEX_HEAVY_TRIGGER_FACTOR = exports.DURATION_HISTOGRAM_BOUNDS_MS = exports.REFLEX_COST_HISTOGRAM_UPPER_BOUNDS = exports.REFLEX_INSIGHTS_PERIOD_STEP_SECONDS = void 0;
|
|
4
4
|
const enum_1 = require("../../enum");
|
|
5
5
|
exports.REFLEX_INSIGHTS_PERIOD_STEP_SECONDS = {
|
|
6
6
|
[enum_1.InsightsPeriod.HOUR_1]: 60,
|
|
@@ -12,5 +12,8 @@ exports.REFLEX_INSIGHTS_PERIOD_STEP_SECONDS = {
|
|
|
12
12
|
exports.REFLEX_COST_HISTOGRAM_UPPER_BOUNDS = [
|
|
13
13
|
10, 25, 50, 100, 250, 500, 1000, 2500, 5000,
|
|
14
14
|
];
|
|
15
|
+
exports.DURATION_HISTOGRAM_BOUNDS_MS = [
|
|
16
|
+
10, 25, 50, 100, 200, 300, 500, 750, 1000, 1500, 2500, 5000, 10000, 30000,
|
|
17
|
+
];
|
|
15
18
|
exports.REFLEX_HEAVY_TRIGGER_FACTOR = 5;
|
|
16
19
|
//# sourceMappingURL=reflex-insights.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-insights.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-insights.model.ts"],"names":[],"mappings":";;;AAAA,qCAA4C;AAI/B,QAAA,mCAAmC,GAAmC;IACjF,CAAC,qBAAc,CAAC,MAAM,CAAC,EAAE,EAAE;IAC3B,CAAC,qBAAc,CAAC,QAAQ,CAAC,EAAE,GAAG;IAC9B,CAAC,qBAAc,CAAC,MAAM,CAAC,EAAE,IAAI;IAC7B,CAAC,qBAAc,CAAC,OAAO,CAAC,EAAE,KAAK;IAC/B,CAAC,qBAAc,CAAC,OAAO,CAAC,EAAE,KAAK;CAChC,CAAC;AAGW,QAAA,kCAAkC,GAAG;IAChD,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CACnC,CAAC;AAGE,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"reflex-insights.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-insights.model.ts"],"names":[],"mappings":";;;AAAA,qCAA4C;AAI/B,QAAA,mCAAmC,GAAmC;IACjF,CAAC,qBAAc,CAAC,MAAM,CAAC,EAAE,EAAE;IAC3B,CAAC,qBAAc,CAAC,QAAQ,CAAC,EAAE,GAAG;IAC9B,CAAC,qBAAc,CAAC,MAAM,CAAC,EAAE,IAAI;IAC7B,CAAC,qBAAc,CAAC,OAAO,CAAC,EAAE,KAAK;IAC/B,CAAC,qBAAc,CAAC,OAAO,CAAC,EAAE,KAAK;CAChC,CAAC;AAGW,QAAA,kCAAkC,GAAG;IAChD,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CACnC,CAAC;AAME,QAAA,4BAA4B,GAAG;IAC1C,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK;CACjE,CAAC;AAGE,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { LogCapMode } from '../../enum';
|
|
2
|
+
export declare const REFLEX_LOG_LIMITS: {
|
|
3
|
+
readonly maxLinesPerRun: 10000;
|
|
4
|
+
readonly maxBytesPerRun: 4194304;
|
|
5
|
+
readonly cap: {
|
|
6
|
+
readonly min: 1;
|
|
7
|
+
readonly max: 10000;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export interface IReflexApplicationRunSettings {
|
|
11
|
+
applicationId: string;
|
|
12
|
+
maxLogLinesPerRun: number | null;
|
|
13
|
+
retentionDays: number | null;
|
|
14
|
+
monitorActivated: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface IReflexFunctionLogCap {
|
|
17
|
+
mode: LogCapMode;
|
|
18
|
+
lines: number | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REFLEX_LOG_LIMITS = void 0;
|
|
4
|
+
exports.REFLEX_LOG_LIMITS = {
|
|
5
|
+
maxLinesPerRun: 10_000,
|
|
6
|
+
maxBytesPerRun: 4_194_304,
|
|
7
|
+
cap: { min: 1, max: 10_000 },
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=reflex-run-settings.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflex-run-settings.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run-settings.model.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAAG;IAE/B,cAAc,EAAE,MAAM;IAEtB,cAAc,EAAE,SAAS;IAEzB,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE;CACpB,CAAC"}
|
|
@@ -3,6 +3,37 @@ export interface IReflexTraceError {
|
|
|
3
3
|
code: string;
|
|
4
4
|
message: string;
|
|
5
5
|
}
|
|
6
|
+
export interface IReflexRunErrorLocation {
|
|
7
|
+
stepId: string;
|
|
8
|
+
line: number;
|
|
9
|
+
column: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IReflexTraceOutcomeError extends IReflexTraceError {
|
|
12
|
+
stepId?: string;
|
|
13
|
+
line?: number;
|
|
14
|
+
column?: number;
|
|
15
|
+
stack?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IReflexTraceRequest {
|
|
18
|
+
method: string;
|
|
19
|
+
path: string;
|
|
20
|
+
query: Record<string, string | string[]>;
|
|
21
|
+
headers: Record<string, string>;
|
|
22
|
+
body: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface IReflexTraceStep {
|
|
25
|
+
stepId: string;
|
|
26
|
+
output?: unknown;
|
|
27
|
+
outputTruncated: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const REFLEX_RUN_DETAIL_LIMITS: {
|
|
30
|
+
readonly totalBytes: 65536;
|
|
31
|
+
readonly errorBytes: 4096;
|
|
32
|
+
readonly requestMetaBytes: 8192;
|
|
33
|
+
readonly requestBodyBytes: 16384;
|
|
34
|
+
readonly responseBytes: 16384;
|
|
35
|
+
readonly entryBytes: 4096;
|
|
36
|
+
};
|
|
6
37
|
export interface IReflexTraceEntry {
|
|
7
38
|
stepId: string;
|
|
8
39
|
type: TraceEffectType;
|
|
@@ -18,16 +49,18 @@ export interface IReflexTraceResponse {
|
|
|
18
49
|
body: unknown;
|
|
19
50
|
}
|
|
20
51
|
export interface IReflexRunTrace {
|
|
52
|
+
request?: IReflexTraceRequest;
|
|
53
|
+
input?: unknown;
|
|
21
54
|
entries: IReflexTraceEntry[];
|
|
55
|
+
steps?: IReflexTraceStep[];
|
|
22
56
|
outcome: {
|
|
23
57
|
status: RunStatus;
|
|
24
58
|
output?: unknown;
|
|
25
|
-
error?:
|
|
26
|
-
stepId?: string;
|
|
27
|
-
};
|
|
59
|
+
error?: IReflexTraceOutcomeError;
|
|
28
60
|
};
|
|
29
61
|
response?: IReflexTraceResponse;
|
|
30
62
|
truncated: boolean;
|
|
63
|
+
truncatedFields: string[];
|
|
31
64
|
}
|
|
32
65
|
export interface IReflexRun {
|
|
33
66
|
id: string;
|
|
@@ -48,6 +81,10 @@ export interface IReflexRun {
|
|
|
48
81
|
originLabel: string | null;
|
|
49
82
|
httpStatus: number | null;
|
|
50
83
|
errorCode: string | null;
|
|
84
|
+
errorMessage: string | null;
|
|
85
|
+
errorLocation: IReflexRunErrorLocation | null;
|
|
86
|
+
rumSessionId: string | null;
|
|
87
|
+
monitorActivated: boolean;
|
|
51
88
|
executionMode: ExecutionMode | null;
|
|
52
89
|
responseSentAt: Date | null;
|
|
53
90
|
metrics: IReflexRunMetrics | null;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REFLEX_RUN_DETAIL_LIMITS = void 0;
|
|
4
|
+
exports.REFLEX_RUN_DETAIL_LIMITS = {
|
|
5
|
+
totalBytes: 65_536,
|
|
6
|
+
errorBytes: 4_096,
|
|
7
|
+
requestMetaBytes: 8_192,
|
|
8
|
+
requestBodyBytes: 16_384,
|
|
9
|
+
responseBytes: 16_384,
|
|
10
|
+
entryBytes: 4_096,
|
|
11
|
+
};
|
|
3
12
|
//# sourceMappingURL=reflex-run.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":";;;AAiDa,QAAA,wBAAwB,GAAG;IAEtC,UAAU,EAAE,MAAM;IAElB,UAAU,EAAE,KAAK;IAEjB,gBAAgB,EAAE,KAAK;IAEvB,gBAAgB,EAAE,MAAM;IAExB,aAAa,EAAE,MAAM;IAErB,UAAU,EAAE,KAAK;CACT,CAAC"}
|
package/jest.config.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Config } from '@jest/types';
|
|
2
|
-
|
|
3
|
-
const config: Config.InitialOptions = {
|
|
4
|
-
testEnvironment: 'node',
|
|
5
|
-
transform: {
|
|
6
|
-
'^.+\\.tsx?$': ['ts-jest', { isolatedModules: true }],
|
|
7
|
-
},
|
|
8
|
-
modulePathIgnorePatterns: ['dist'],
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default config;
|
|
1
|
+
import type { Config } from '@jest/types';
|
|
2
|
+
|
|
3
|
+
const config: Config.InitialOptions = {
|
|
4
|
+
testEnvironment: 'node',
|
|
5
|
+
transform: {
|
|
6
|
+
'^.+\\.tsx?$': ['ts-jest', { isolatedModules: true }],
|
|
7
|
+
},
|
|
8
|
+
modulePathIgnorePatterns: ['dist'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/reflex",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "Core package to interact with AbyssReflex",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"prepublishOnly": "tsc && node ../../scripts/check-sdk-surface.cjs",
|
|
18
|
+
"dev": "tsc --watch"
|
|
19
|
+
},
|
|
7
20
|
"repository": {
|
|
8
21
|
"type": "git",
|
|
9
22
|
"url": "https://gitlab.com/abyss-group/abyss-reflex.git"
|
|
@@ -32,13 +45,5 @@
|
|
|
32
45
|
"ts-jest": "^29.1.0",
|
|
33
46
|
"ts-node": "^10.4.0",
|
|
34
47
|
"typescript": "5.9.3"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
38
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
39
|
-
"tsc": "tsc",
|
|
40
|
-
"build": "tsc",
|
|
41
|
-
"test": "jest",
|
|
42
|
-
"dev": "tsc --watch"
|
|
43
48
|
}
|
|
44
|
-
}
|
|
49
|
+
}
|