@ampsec/platform-client 62.22.0 → 62.24.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/build/src/dto/customScores.dto.js +1 -1
- package/build/src/dto/customScores.dto.js.map +1 -1
- package/build/src/dto/enums/category.d.ts +2 -1
- package/build/src/dto/enums/category.js +1 -0
- package/build/src/dto/enums/category.js.map +1 -1
- package/build/src/dto/enums/findingKind.d.ts +21 -0
- package/build/src/dto/enums/findingKind.js +71 -1
- package/build/src/dto/enums/findingKind.js.map +1 -1
- package/build/src/dto/enums/saasComponentKind.d.ts +2 -1
- package/build/src/dto/enums/saasComponentKind.js +2 -0
- package/build/src/dto/enums/saasComponentKind.js.map +1 -1
- package/build/src/dto/findings.dto.d.ts +67 -41
- package/build/src/dto/findings.dto.js +17 -5
- package/build/src/dto/findings.dto.js.map +1 -1
- package/build/src/dto/index.d.ts +1 -0
- package/build/src/dto/index.js +1 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/platform/index.d.ts +1 -0
- package/build/src/dto/platform/index.js +1 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.findings.dto.d.ts +46 -40
- package/build/src/dto/platform/platform.tokens.dto.d.ts +53 -0
- package/build/src/dto/platform/platform.tokens.dto.js +8 -0
- package/build/src/dto/platform/platform.tokens.dto.js.map +1 -0
- package/build/src/dto/saasComponents.dto.d.ts +1 -1
- package/build/src/dto/tokens.dto.d.ts +47 -0
- package/build/src/dto/tokens.dto.js +11 -0
- package/build/src/dto/tokens.dto.js.map +1 -0
- package/build/src/services/AmpApi.d.ts +2 -1
- package/build/src/services/AmpApi.js +1 -0
- package/build/src/services/AmpApi.js.map +1 -1
- package/build/src/services/AmpSdk.d.ts +2 -1
- package/build/src/services/AmpSdk.js +1 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/ContentTemplateService.d.ts +1 -0
- package/build/src/services/ContentTemplateService.js +25 -0
- package/build/src/services/ContentTemplateService.js.map +1 -0
- package/build/src/services/constants.d.ts +1 -0
- package/build/src/services/constants.js +1 -0
- package/build/src/services/constants.js.map +1 -1
- package/build/src/services/contentful.service.d.ts +272 -1
- package/build/src/services/contentful.service.js +197 -2
- package/build/src/services/contentful.service.js.map +1 -1
- package/build/src/services/index.d.ts +1 -0
- package/build/src/services/index.js +1 -0
- package/build/src/services/index.js.map +1 -1
- package/package.json +2 -2
- package/src/dto/customScores.dto.ts +1 -1
- package/src/dto/enums/category.ts +1 -0
- package/src/dto/enums/findingKind.ts +71 -0
- package/src/dto/enums/saasComponentKind.ts +3 -0
- package/src/dto/findings.dto.ts +36 -22
- package/src/dto/index.ts +1 -0
- package/src/dto/platform/index.ts +1 -0
- package/src/dto/platform/platform.tokens.dto.ts +9 -0
- package/src/dto/saasComponents.dto.ts +1 -1
- package/src/dto/tokens.dto.ts +11 -0
- package/src/services/AmpApi.ts +3 -0
- package/src/services/AmpSdk.ts +4 -0
- package/src/services/ContentTemplateService.ts +18 -0
- package/src/services/constants.ts +1 -0
- package/src/services/contentful.service.ts +238 -1
- package/src/services/index.ts +1 -0
|
@@ -10,7 +10,7 @@ exports._CustomScoreValueDto = base_dto_1._BaseDto.extend({
|
|
|
10
10
|
});
|
|
11
11
|
exports._CustomScoreValueUpsertDto = exports._CustomScoreValueDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
12
12
|
exports._CustomScoreCohortDto = base_dto_1._BaseDto.extend({
|
|
13
|
-
cohort: flows_dto_1._AmplifierCohortDto,
|
|
13
|
+
cohort: flows_dto_1._AmplifierCohortDto || zod_1.z.array(flows_dto_1._AmplifierCohortDto),
|
|
14
14
|
multiplier: zod_1.z.number(),
|
|
15
15
|
});
|
|
16
16
|
exports._CustomScoreCohortUpsertDto = exports._CustomScoreCohortDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEnC,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAG3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,+BAAmB;
|
|
1
|
+
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEnC,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAG3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,+BAAmB,IAAI,OAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,6BAAqB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -13,5 +13,6 @@ var Category;
|
|
|
13
13
|
Category["NOTIFICATION"] = "NOTIFICATION";
|
|
14
14
|
Category["TRAINING"] = "TRAINING";
|
|
15
15
|
Category["WEB_GATEWAY"] = "WEB_GATEWAY";
|
|
16
|
+
Category["CUSTOM"] = "CUSTOM";
|
|
16
17
|
})(Category || (exports.Category = Category = {}));
|
|
17
18
|
//# sourceMappingURL=category.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,2CAA+B,CAAA;IAC/B;;OAEG;IACH,uBAAW,CAAA;IACX,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,wBAAR,QAAQ,QAYnB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Category } from './category';
|
|
1
2
|
import { FindingOutcome } from './finding.outcome';
|
|
2
3
|
import { FindingSeverity } from './finding.severity';
|
|
4
|
+
import { SaasComponentKind } from './saasComponentKind';
|
|
3
5
|
export declare enum FindingKind {
|
|
4
6
|
NO_ACCOUNT = "NO_ACCOUNT",
|
|
5
7
|
MFA_NOT_ENABLED = "MFA_NOT_ENABLED",
|
|
@@ -16,3 +18,22 @@ export declare const lookupFindingOutcomeByKind: (kind: FindingKind) => FindingO
|
|
|
16
18
|
export declare const lookupFindingKindByCategory: (category: string) => FindingKind[];
|
|
17
19
|
export declare const lookupFindingSeverityByKind: (kind: string) => FindingSeverity | undefined;
|
|
18
20
|
export declare const lookupFindingDisplayValueByKind: (kind: string) => string;
|
|
21
|
+
export declare const generateInsights: (category: string, kind: string) => {
|
|
22
|
+
meta: {
|
|
23
|
+
kind: FindingKind;
|
|
24
|
+
severity: FindingSeverity;
|
|
25
|
+
displayValue: string;
|
|
26
|
+
};
|
|
27
|
+
rule: {
|
|
28
|
+
category: Category;
|
|
29
|
+
kind: SaasComponentKind;
|
|
30
|
+
aid: {
|
|
31
|
+
$has: boolean;
|
|
32
|
+
};
|
|
33
|
+
uid: {
|
|
34
|
+
$has: boolean;
|
|
35
|
+
};
|
|
36
|
+
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
37
|
+
remediatedCondition: Record<string, string | number | boolean | undefined>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lookupFindingDisplayValueByKind = exports.lookupFindingSeverityByKind = exports.lookupFindingKindByCategory = exports.lookupFindingOutcomeByKind = exports.FindingKind = void 0;
|
|
3
|
+
exports.generateInsights = exports.lookupFindingDisplayValueByKind = exports.lookupFindingSeverityByKind = exports.lookupFindingKindByCategory = exports.lookupFindingOutcomeByKind = exports.FindingKind = void 0;
|
|
4
4
|
const category_1 = require("./category");
|
|
5
5
|
const finding_outcome_1 = require("./finding.outcome");
|
|
6
6
|
const finding_severity_1 = require("./finding.severity");
|
|
7
|
+
const saasComponentKind_1 = require("./saasComponentKind");
|
|
7
8
|
var FindingKind;
|
|
8
9
|
(function (FindingKind) {
|
|
9
10
|
// ALL
|
|
@@ -106,4 +107,73 @@ const lookupFindingDisplayValueByKind = (kind) => {
|
|
|
106
107
|
}
|
|
107
108
|
};
|
|
108
109
|
exports.lookupFindingDisplayValueByKind = lookupFindingDisplayValueByKind;
|
|
110
|
+
const generateInsights = (category, kind) => {
|
|
111
|
+
const insights = {
|
|
112
|
+
meta: {
|
|
113
|
+
kind: kind,
|
|
114
|
+
severity: (0, exports.lookupFindingSeverityByKind)(kind),
|
|
115
|
+
displayValue: (0, exports.lookupFindingDisplayValueByKind)(kind),
|
|
116
|
+
},
|
|
117
|
+
rule: {
|
|
118
|
+
category: category,
|
|
119
|
+
kind: '',
|
|
120
|
+
aid: { $has: false },
|
|
121
|
+
uid: { $has: false },
|
|
122
|
+
findingCondition: {},
|
|
123
|
+
remediatedCondition: {},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
if (category === category_1.Category.EDR || category === category_1.Category.VULNERABILITY) {
|
|
127
|
+
insights.rule.aid = { $has: true };
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
insights.rule.uid = { $has: true };
|
|
131
|
+
}
|
|
132
|
+
const setCondition = (key, value) => {
|
|
133
|
+
insights.rule.findingCondition[key] = value;
|
|
134
|
+
insights.rule.remediatedCondition[key] = !value;
|
|
135
|
+
};
|
|
136
|
+
switch (kind) {
|
|
137
|
+
case FindingKind.WEB_GATEWAY_NOT_ACTIVE:
|
|
138
|
+
setCondition('meta._findings.loggedIn', false);
|
|
139
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.WEB_GATEWAY_SESSION;
|
|
140
|
+
break;
|
|
141
|
+
case FindingKind.VULNERABILITY_OUT_OF_SLA:
|
|
142
|
+
setCondition('meta._findings.overdue', true);
|
|
143
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.VULNERABILITY;
|
|
144
|
+
break;
|
|
145
|
+
case FindingKind.TRAINING_OVERDUE:
|
|
146
|
+
setCondition('meta._findings.overdue', true);
|
|
147
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.TRAINING_ASSIGNMENT;
|
|
148
|
+
break;
|
|
149
|
+
case FindingKind.FAILED_PHISHING:
|
|
150
|
+
setCondition('meta._findings.failedPhishing', true);
|
|
151
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.PHISHING_RESULT;
|
|
152
|
+
break;
|
|
153
|
+
case FindingKind.DEVICE_NOT_MANAGED:
|
|
154
|
+
setCondition('meta._findings.active', false);
|
|
155
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.EDR_CONFIG;
|
|
156
|
+
break;
|
|
157
|
+
case FindingKind.MFA_NOT_ENABLED:
|
|
158
|
+
setCondition('meta._findings.enabled', false);
|
|
159
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.MFA_CONFIG;
|
|
160
|
+
break;
|
|
161
|
+
case FindingKind.IS_EXECUTIVE:
|
|
162
|
+
setCondition('meta._findings.isExecutive', true);
|
|
163
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
164
|
+
break;
|
|
165
|
+
case FindingKind.HAS_PRODUCTION_ACCESS:
|
|
166
|
+
setCondition('meta._findings.hasProdAccess', true);
|
|
167
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
168
|
+
break;
|
|
169
|
+
case FindingKind.HAS_PRIVILEGED_ACCESS:
|
|
170
|
+
setCondition('meta._findings.hasPrivilegedAccess', true);
|
|
171
|
+
insights.rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
172
|
+
break;
|
|
173
|
+
default:
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
return insights;
|
|
177
|
+
};
|
|
178
|
+
exports.generateInsights = generateInsights;
|
|
109
179
|
//# sourceMappingURL=findingKind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findingKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/findingKind.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,uDAAiD;AACjD,yDAAmD;
|
|
1
|
+
{"version":3,"file":"findingKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/findingKind.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,uDAAiD;AACjD,yDAAmD;AACnD,2DAAsD;AAEtD,IAAY,WAoBX;AApBD,WAAY,WAAW;IACrB,MAAM;IACN,wCAAyB,CAAA;IAEzB,WAAW;IACX,kDAAmC,CAAA;IACnC,4CAA6B,CAAA;IAC7B,8DAA+C,CAAA;IAC/C,8DAA+C,CAAA;IAE/C,WAAW;IACX,kDAAmC,CAAA;IACnC,oDAAqC,CAAA;IAErC,MAAM;IACN,wDAAyC,CAAA;IACzC,oEAAqD,CAAA;IAErD,cAAc;IACd,gEAAiD,CAAA;AACn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A4B,EAAE,IAAI,CAAC,CAAC;YACjD,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,qCAAiB,CAAC,gBAAgB,CAAC;YACxD,MAAM;QACR,KAAK,WAAW,CAAC,qBAAqB;YACpC,YAAY,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;YACnD,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,qCAAiB,CAAC,gBAAgB,CAAC;YACxD,MAAM;QACR,KAAK,WAAW,CAAC,qBAAqB;YACpC,YAAY,CAAC,oCAAoC,EAAE,IAAI,CAAC,CAAC;YACzD,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,qCAAiB,CAAC,gBAAgB,CAAC;YACxD,MAAM;QACR;YACE,MAAM;IACV,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AApEW,QAAA,gBAAgB,oBAoE3B"}
|
|
@@ -15,5 +15,7 @@ var SaasComponentKind;
|
|
|
15
15
|
SaasComponentKind["DEVICE_ASSIGNMENT"] = "DEVICE_ASSIGNMENT";
|
|
16
16
|
// WEB_GATEWAY
|
|
17
17
|
SaasComponentKind["WEB_GATEWAY_SESSION"] = "WEB_GATEWAY_SESSION";
|
|
18
|
+
// CUSTOM (for custom findings)
|
|
19
|
+
SaasComponentKind["CUSTOM"] = "CUSTOM";
|
|
18
20
|
})(SaasComponentKind || (exports.SaasComponentKind = SaasComponentKind = {}));
|
|
19
21
|
//# sourceMappingURL=saasComponentKind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasComponentKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/saasComponentKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"saasComponentKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/saasComponentKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC3B,WAAW;IACX,8CAAyB,CAAA;IACzB,0DAAqC,CAAA;IAErC,WAAW;IACX,wDAAmC,CAAA;IACnC,gEAA2C,CAAA;IAE3C,MAAM;IACN,8CAAyB,CAAA;IACzB,oDAA+B,CAAA;IAC/B,4DAAuC,CAAA;IAEvC,cAAc;IACd,gEAA2C,CAAA;IAE3C,+BAA+B;IAC/B,sCAAiB,CAAA;AACnB,CAAC,EAnBW,iBAAiB,iCAAjB,iBAAiB,QAmB5B"}
|
|
@@ -18,7 +18,7 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
18
18
|
/** Category of finding */
|
|
19
19
|
category: Category;
|
|
20
20
|
/** Type of finding */
|
|
21
|
-
kind: FindingKind;
|
|
21
|
+
kind: FindingKind | string;
|
|
22
22
|
/** Status of the finding, e.g. OPEN */
|
|
23
23
|
status: FindingStatus;
|
|
24
24
|
/** Severity of the finding, e.g. CRITICAL, HIGH, etc... */
|
|
@@ -66,7 +66,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
66
66
|
description: z.ZodUnion<[z.ZodString, z.ZodUnknown]>;
|
|
67
67
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
68
68
|
insights: z.ZodOptional<z.ZodObject<{
|
|
69
|
-
meta: z.ZodObject<{
|
|
69
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
70
70
|
kind: z.ZodNativeEnum<typeof FindingKind>;
|
|
71
71
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
72
72
|
displayValue: z.ZodString;
|
|
@@ -78,8 +78,8 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
78
78
|
displayValue: string;
|
|
79
79
|
kind: FindingKind;
|
|
80
80
|
severity: FindingSeverity;
|
|
81
|
-
}
|
|
82
|
-
rule: z.ZodObject<{
|
|
81
|
+
}>>;
|
|
82
|
+
rule: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
category: z.ZodNativeEnum<typeof Category>;
|
|
84
84
|
kind: z.ZodNativeEnum<typeof SaasComponentKind>;
|
|
85
85
|
aid: z.ZodOptional<z.ZodObject<{
|
|
@@ -120,14 +120,14 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
120
120
|
$has: boolean;
|
|
121
121
|
} | undefined;
|
|
122
122
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
123
|
-
}
|
|
123
|
+
}>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
meta
|
|
125
|
+
meta?: {
|
|
126
126
|
displayValue: string;
|
|
127
127
|
kind: FindingKind;
|
|
128
128
|
severity: FindingSeverity;
|
|
129
|
-
};
|
|
130
|
-
rule
|
|
129
|
+
} | undefined;
|
|
130
|
+
rule?: {
|
|
131
131
|
kind: SaasComponentKind;
|
|
132
132
|
category: Category;
|
|
133
133
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -138,14 +138,14 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
138
138
|
$has: boolean;
|
|
139
139
|
} | undefined;
|
|
140
140
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
141
|
-
};
|
|
141
|
+
} | undefined;
|
|
142
142
|
}, {
|
|
143
|
-
meta
|
|
143
|
+
meta?: {
|
|
144
144
|
displayValue: string;
|
|
145
145
|
kind: FindingKind;
|
|
146
146
|
severity: FindingSeverity;
|
|
147
|
-
};
|
|
148
|
-
rule
|
|
147
|
+
} | undefined;
|
|
148
|
+
rule?: {
|
|
149
149
|
kind: SaasComponentKind;
|
|
150
150
|
category: Category;
|
|
151
151
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -156,9 +156,10 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
156
156
|
$has: boolean;
|
|
157
157
|
} | undefined;
|
|
158
158
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
159
|
-
};
|
|
159
|
+
} | undefined;
|
|
160
160
|
}>>;
|
|
161
161
|
expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
162
|
+
outcome: z.ZodOptional<z.ZodNativeEnum<typeof FindingOutcome>>;
|
|
162
163
|
}, "strip", z.ZodTypeAny, {
|
|
163
164
|
name: string;
|
|
164
165
|
id: string;
|
|
@@ -171,12 +172,12 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
171
172
|
cid?: string | undefined;
|
|
172
173
|
description?: unknown;
|
|
173
174
|
insights?: {
|
|
174
|
-
meta
|
|
175
|
+
meta?: {
|
|
175
176
|
displayValue: string;
|
|
176
177
|
kind: FindingKind;
|
|
177
178
|
severity: FindingSeverity;
|
|
178
|
-
};
|
|
179
|
-
rule
|
|
179
|
+
} | undefined;
|
|
180
|
+
rule?: {
|
|
180
181
|
kind: SaasComponentKind;
|
|
181
182
|
category: Category;
|
|
182
183
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -187,9 +188,10 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
187
188
|
$has: boolean;
|
|
188
189
|
} | undefined;
|
|
189
190
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
190
|
-
};
|
|
191
|
+
} | undefined;
|
|
191
192
|
} | undefined;
|
|
192
193
|
expireAfterDays?: number | null | undefined;
|
|
194
|
+
outcome?: FindingOutcome | undefined;
|
|
193
195
|
}, {
|
|
194
196
|
name: string;
|
|
195
197
|
id: string;
|
|
@@ -202,12 +204,12 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
202
204
|
cid?: string | undefined;
|
|
203
205
|
description?: unknown;
|
|
204
206
|
insights?: {
|
|
205
|
-
meta
|
|
207
|
+
meta?: {
|
|
206
208
|
displayValue: string;
|
|
207
209
|
kind: FindingKind;
|
|
208
210
|
severity: FindingSeverity;
|
|
209
|
-
};
|
|
210
|
-
rule
|
|
211
|
+
} | undefined;
|
|
212
|
+
rule?: {
|
|
211
213
|
kind: SaasComponentKind;
|
|
212
214
|
category: Category;
|
|
213
215
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -218,9 +220,10 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
218
220
|
$has: boolean;
|
|
219
221
|
} | undefined;
|
|
220
222
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
221
|
-
};
|
|
223
|
+
} | undefined;
|
|
222
224
|
} | undefined;
|
|
223
225
|
expireAfterDays?: number | null | undefined;
|
|
226
|
+
outcome?: FindingOutcome | undefined;
|
|
224
227
|
}>;
|
|
225
228
|
export type FindingSpecDto = z.infer<typeof _FindingSpecDto>;
|
|
226
229
|
export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
@@ -235,7 +238,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
235
238
|
eventType: z.ZodString;
|
|
236
239
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
237
240
|
insights: z.ZodOptional<z.ZodObject<{
|
|
238
|
-
meta: z.ZodObject<{
|
|
241
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
239
242
|
kind: z.ZodNativeEnum<typeof FindingKind>;
|
|
240
243
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
241
244
|
displayValue: z.ZodString;
|
|
@@ -247,8 +250,8 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
247
250
|
displayValue: string;
|
|
248
251
|
kind: FindingKind;
|
|
249
252
|
severity: FindingSeverity;
|
|
250
|
-
}
|
|
251
|
-
rule: z.ZodObject<{
|
|
253
|
+
}>>;
|
|
254
|
+
rule: z.ZodOptional<z.ZodObject<{
|
|
252
255
|
category: z.ZodNativeEnum<typeof Category>;
|
|
253
256
|
kind: z.ZodNativeEnum<typeof SaasComponentKind>;
|
|
254
257
|
aid: z.ZodOptional<z.ZodObject<{
|
|
@@ -289,14 +292,14 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
289
292
|
$has: boolean;
|
|
290
293
|
} | undefined;
|
|
291
294
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
292
|
-
}
|
|
295
|
+
}>>;
|
|
293
296
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
meta
|
|
297
|
+
meta?: {
|
|
295
298
|
displayValue: string;
|
|
296
299
|
kind: FindingKind;
|
|
297
300
|
severity: FindingSeverity;
|
|
298
|
-
};
|
|
299
|
-
rule
|
|
301
|
+
} | undefined;
|
|
302
|
+
rule?: {
|
|
300
303
|
kind: SaasComponentKind;
|
|
301
304
|
category: Category;
|
|
302
305
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -307,14 +310,14 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
307
310
|
$has: boolean;
|
|
308
311
|
} | undefined;
|
|
309
312
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
310
|
-
};
|
|
313
|
+
} | undefined;
|
|
311
314
|
}, {
|
|
312
|
-
meta
|
|
315
|
+
meta?: {
|
|
313
316
|
displayValue: string;
|
|
314
317
|
kind: FindingKind;
|
|
315
318
|
severity: FindingSeverity;
|
|
316
|
-
};
|
|
317
|
-
rule
|
|
319
|
+
} | undefined;
|
|
320
|
+
rule?: {
|
|
318
321
|
kind: SaasComponentKind;
|
|
319
322
|
category: Category;
|
|
320
323
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -325,9 +328,10 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
325
328
|
$has: boolean;
|
|
326
329
|
} | undefined;
|
|
327
330
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
328
|
-
};
|
|
331
|
+
} | undefined;
|
|
329
332
|
}>>;
|
|
330
333
|
expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
334
|
+
outcome: z.ZodOptional<z.ZodNativeEnum<typeof FindingOutcome>>;
|
|
331
335
|
}, "strip", z.ZodTypeAny, {
|
|
332
336
|
name: string;
|
|
333
337
|
displayValue: string;
|
|
@@ -340,12 +344,12 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
340
344
|
updatedAt?: string | undefined;
|
|
341
345
|
deletedAt?: string | null | undefined;
|
|
342
346
|
insights?: {
|
|
343
|
-
meta
|
|
347
|
+
meta?: {
|
|
344
348
|
displayValue: string;
|
|
345
349
|
kind: FindingKind;
|
|
346
350
|
severity: FindingSeverity;
|
|
347
|
-
};
|
|
348
|
-
rule
|
|
351
|
+
} | undefined;
|
|
352
|
+
rule?: {
|
|
349
353
|
kind: SaasComponentKind;
|
|
350
354
|
category: Category;
|
|
351
355
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -356,9 +360,10 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
356
360
|
$has: boolean;
|
|
357
361
|
} | undefined;
|
|
358
362
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
359
|
-
};
|
|
363
|
+
} | undefined;
|
|
360
364
|
} | undefined;
|
|
361
365
|
expireAfterDays?: number | null | undefined;
|
|
366
|
+
outcome?: FindingOutcome | undefined;
|
|
362
367
|
}, {
|
|
363
368
|
name: string;
|
|
364
369
|
displayValue: string;
|
|
@@ -371,12 +376,12 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
371
376
|
updatedAt?: string | undefined;
|
|
372
377
|
deletedAt?: string | null | undefined;
|
|
373
378
|
insights?: {
|
|
374
|
-
meta
|
|
379
|
+
meta?: {
|
|
375
380
|
displayValue: string;
|
|
376
381
|
kind: FindingKind;
|
|
377
382
|
severity: FindingSeverity;
|
|
378
|
-
};
|
|
379
|
-
rule
|
|
383
|
+
} | undefined;
|
|
384
|
+
rule?: {
|
|
380
385
|
kind: SaasComponentKind;
|
|
381
386
|
category: Category;
|
|
382
387
|
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
@@ -387,9 +392,10 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
387
392
|
$has: boolean;
|
|
388
393
|
} | undefined;
|
|
389
394
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
390
|
-
};
|
|
395
|
+
} | undefined;
|
|
391
396
|
} | undefined;
|
|
392
397
|
expireAfterDays?: number | null | undefined;
|
|
398
|
+
outcome?: FindingOutcome | undefined;
|
|
393
399
|
}>;
|
|
394
400
|
export type FindingSpecUpsertDto = z.infer<typeof _FindingSpecUpsertDto>;
|
|
395
401
|
export declare const _FindingSummaryDto: z.ZodObject<{
|
|
@@ -409,3 +415,23 @@ export declare const _FindingSummaryDto: z.ZodObject<{
|
|
|
409
415
|
cid?: string | undefined;
|
|
410
416
|
}>;
|
|
411
417
|
export type FindingSummaryDto = z.infer<typeof _FindingSummaryDto>;
|
|
418
|
+
export declare const _CustomFindingPayload: z.ZodObject<{
|
|
419
|
+
eventType: z.ZodString;
|
|
420
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
421
|
+
email: z.ZodOptional<z.ZodString>;
|
|
422
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
423
|
+
context: z.ZodOptional<z.ZodUnknown>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
eventType: string;
|
|
426
|
+
correlationId?: string | undefined;
|
|
427
|
+
email?: string | undefined;
|
|
428
|
+
serialNumber?: string | undefined;
|
|
429
|
+
context?: unknown;
|
|
430
|
+
}, {
|
|
431
|
+
eventType: string;
|
|
432
|
+
correlationId?: string | undefined;
|
|
433
|
+
email?: string | undefined;
|
|
434
|
+
serialNumber?: string | undefined;
|
|
435
|
+
context?: unknown;
|
|
436
|
+
}>;
|
|
437
|
+
export type CustomFindingPayload = z.infer<typeof _CustomFindingPayload>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._FindingSummaryDto = exports._FindingSpecUpsertDto = exports._FindingSpecDto = void 0;
|
|
3
|
+
exports._CustomFindingPayload = exports._FindingSummaryDto = exports._FindingSpecUpsertDto = exports._FindingSpecDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
@@ -15,12 +15,15 @@ exports._FindingSpecDto = base_dto_1._BaseDto.extend({
|
|
|
15
15
|
severity: zod_1.z.nativeEnum(enums_2.FindingSeverity),
|
|
16
16
|
insights: zod_1.z
|
|
17
17
|
.object({
|
|
18
|
-
meta: zod_1.z
|
|
18
|
+
meta: zod_1.z
|
|
19
|
+
.object({
|
|
19
20
|
kind: zod_1.z.nativeEnum(enums_1.FindingKind),
|
|
20
21
|
severity: zod_1.z.nativeEnum(enums_2.FindingSeverity),
|
|
21
22
|
displayValue: zod_1.z.string(),
|
|
22
|
-
})
|
|
23
|
-
|
|
23
|
+
})
|
|
24
|
+
.optional(),
|
|
25
|
+
rule: zod_1.z
|
|
26
|
+
.object({
|
|
24
27
|
category: zod_1.z.nativeEnum(enums_1.Category),
|
|
25
28
|
kind: zod_1.z.nativeEnum(enums_1.SaasComponentKind),
|
|
26
29
|
aid: zod_1.z
|
|
@@ -35,10 +38,12 @@ exports._FindingSpecDto = base_dto_1._BaseDto.extend({
|
|
|
35
38
|
.optional(),
|
|
36
39
|
findingCondition: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.boolean(), zod_1.z.string(), zod_1.z.number(), zod_1.z.undefined()])),
|
|
37
40
|
remediatedCondition: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.boolean(), zod_1.z.string(), zod_1.z.number(), zod_1.z.undefined()])).optional(),
|
|
38
|
-
})
|
|
41
|
+
})
|
|
42
|
+
.optional(),
|
|
39
43
|
})
|
|
40
44
|
.optional(),
|
|
41
45
|
expireAfterDays: zod_1.z.nullable(zod_1.z.number()).optional(),
|
|
46
|
+
outcome: zod_1.z.nativeEnum(enums_2.FindingOutcome).optional(), // TODO add column and form field??? Or just default to REMEDIATION?
|
|
42
47
|
});
|
|
43
48
|
exports._FindingSpecUpsertDto = exports._FindingSpecDto.partial({
|
|
44
49
|
id: true,
|
|
@@ -52,4 +57,11 @@ exports._FindingSummaryDto = zod_1.z.object({
|
|
|
52
57
|
displayValue: zod_1.z.string(),
|
|
53
58
|
eventType: zod_1.z.string(),
|
|
54
59
|
});
|
|
60
|
+
exports._CustomFindingPayload = zod_1.z.object({
|
|
61
|
+
eventType: zod_1.z.string(),
|
|
62
|
+
correlationId: zod_1.z.string().optional(),
|
|
63
|
+
email: zod_1.z.string().optional(),
|
|
64
|
+
serialNumber: zod_1.z.string().optional(),
|
|
65
|
+
context: zod_1.z.unknown().optional(),
|
|
66
|
+
});
|
|
55
67
|
//# sourceMappingURL=findings.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findings.dto.js","sourceRoot":"","sources":["../../../src/dto/findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,yCAA4D;AAC5D,mCAAiE;AACjE,mCAAuE;AAyDvE,MAAM,uBAAuB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAC/B,QAAA,eAAe,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAC7C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,uBAAuB,CAAC,CAAC;IAC3D,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC;IACvC,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,
|
|
1
|
+
{"version":3,"file":"findings.dto.js","sourceRoot":"","sources":["../../../src/dto/findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAA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AAC,QAAQ,EAAE;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
package/build/src/dto/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './saasComponents.dto';
|
|
|
28
28
|
export * from './saasUsers.dto';
|
|
29
29
|
export * from './ampSetting.dto';
|
|
30
30
|
export * from './tenants.dto';
|
|
31
|
+
export * from './tokens.dto';
|
|
31
32
|
export * from './users.dto';
|
|
32
33
|
export * from './messagingChannels';
|
|
33
34
|
export * from './cohort.dto';
|
package/build/src/dto/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./saasComponents.dto"), exports);
|
|
|
44
44
|
__exportStar(require("./saasUsers.dto"), exports);
|
|
45
45
|
__exportStar(require("./ampSetting.dto"), exports);
|
|
46
46
|
__exportStar(require("./tenants.dto"), exports);
|
|
47
|
+
__exportStar(require("./tokens.dto"), exports);
|
|
47
48
|
__exportStar(require("./users.dto"), exports);
|
|
48
49
|
__exportStar(require("./messagingChannels"), exports);
|
|
49
50
|
__exportStar(require("./cohort.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B"}
|
|
@@ -17,5 +17,6 @@ export * from './platform.saasComponents.dto';
|
|
|
17
17
|
export * from './platform.saasUsers.dto';
|
|
18
18
|
export * from './platform.ampSetting.dto';
|
|
19
19
|
export * from './platform.tenants.dto';
|
|
20
|
+
export * from './platform.tokens.dto';
|
|
20
21
|
export * from './platform.users.dto';
|
|
21
22
|
export * from './tenant.based.dto';
|
|
@@ -33,6 +33,7 @@ __exportStar(require("./platform.saasComponents.dto"), exports);
|
|
|
33
33
|
__exportStar(require("./platform.saasUsers.dto"), exports);
|
|
34
34
|
__exportStar(require("./platform.ampSetting.dto"), exports);
|
|
35
35
|
__exportStar(require("./platform.tenants.dto"), exports);
|
|
36
|
+
__exportStar(require("./platform.tokens.dto"), exports);
|
|
36
37
|
__exportStar(require("./platform.users.dto"), exports);
|
|
37
38
|
__exportStar(require("./tenant.based.dto"), exports);
|
|
38
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC"}
|