@ampsec/platform-client 70.3.0 → 70.3.1
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/coverage.dto.d.ts +12 -12
- package/build/src/dto/customActions.dto.d.ts +7 -7
- package/build/src/dto/enums/findingKind.d.ts +13 -13
- package/build/src/dto/enums/findingKind.js +25 -24
- package/build/src/dto/enums/findingKind.js.map +1 -1
- package/build/src/dto/findings.dto.d.ts +25 -7
- package/build/src/dto/findings.dto.js +4 -3
- package/build/src/dto/findings.dto.js.map +1 -1
- package/build/src/dto/flows.dto.d.ts +23 -23
- package/build/src/dto/platform/platform.customActions.dto.d.ts +5 -5
- package/build/src/dto/platform/platform.findings.dto.d.ts +14 -0
- package/build/src/dto/platform/platform.flows.dto.d.ts +14 -14
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +6 -6
- package/build/src/dto/saasAssets.dto.d.ts +16 -16
- package/build/src/dto/users.dto.d.ts +2 -2
- package/build/src/services/contentful.service.d.ts +6 -6
- package/package.json +1 -1
- package/src/dto/enums/findingKind.ts +28 -26
- package/src/dto/findings.dto.ts +4 -2
|
@@ -334,9 +334,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
334
334
|
id?: string | undefined;
|
|
335
335
|
organization?: string | undefined;
|
|
336
336
|
department?: string | undefined;
|
|
337
|
+
score?: number | undefined;
|
|
337
338
|
firstName?: string | undefined;
|
|
338
339
|
lastName?: string | undefined;
|
|
339
|
-
score?: number | undefined;
|
|
340
340
|
active?: boolean | undefined;
|
|
341
341
|
lastActivity?: string | undefined;
|
|
342
342
|
mfaEnabled?: boolean | undefined;
|
|
@@ -400,9 +400,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
400
400
|
id?: string | undefined;
|
|
401
401
|
organization?: string | undefined;
|
|
402
402
|
department?: string | undefined;
|
|
403
|
+
score?: number | undefined;
|
|
403
404
|
firstName?: string | undefined;
|
|
404
405
|
lastName?: string | undefined;
|
|
405
|
-
score?: number | undefined;
|
|
406
406
|
active?: boolean | undefined;
|
|
407
407
|
lastActivity?: string | undefined;
|
|
408
408
|
mfaEnabled?: boolean | undefined;
|
|
@@ -816,8 +816,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
816
816
|
make?: string | undefined;
|
|
817
817
|
model?: string | undefined;
|
|
818
818
|
lastActivityTime?: string | undefined;
|
|
819
|
-
deviceName?: string | undefined;
|
|
820
819
|
serialNumber?: string | undefined;
|
|
820
|
+
deviceName?: string | undefined;
|
|
821
821
|
macAddresses?: string[] | undefined;
|
|
822
822
|
owner?: {
|
|
823
823
|
email?: string | undefined;
|
|
@@ -832,8 +832,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
832
832
|
make?: string | undefined;
|
|
833
833
|
model?: string | undefined;
|
|
834
834
|
lastActivityTime?: string | undefined;
|
|
835
|
-
deviceName?: string | undefined;
|
|
836
835
|
serialNumber?: string | undefined;
|
|
836
|
+
deviceName?: string | undefined;
|
|
837
837
|
macAddresses?: string[] | undefined;
|
|
838
838
|
owner?: {
|
|
839
839
|
email?: string | undefined;
|
|
@@ -851,8 +851,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
851
851
|
make?: string | undefined;
|
|
852
852
|
model?: string | undefined;
|
|
853
853
|
lastActivityTime?: string | undefined;
|
|
854
|
-
deviceName?: string | undefined;
|
|
855
854
|
serialNumber?: string | undefined;
|
|
855
|
+
deviceName?: string | undefined;
|
|
856
856
|
macAddresses?: string[] | undefined;
|
|
857
857
|
owner?: {
|
|
858
858
|
email?: string | undefined;
|
|
@@ -870,8 +870,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
870
870
|
make?: string | undefined;
|
|
871
871
|
model?: string | undefined;
|
|
872
872
|
lastActivityTime?: string | undefined;
|
|
873
|
-
deviceName?: string | undefined;
|
|
874
873
|
serialNumber?: string | undefined;
|
|
874
|
+
deviceName?: string | undefined;
|
|
875
875
|
macAddresses?: string[] | undefined;
|
|
876
876
|
owner?: {
|
|
877
877
|
email?: string | undefined;
|
|
@@ -911,8 +911,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
911
911
|
make?: string | undefined;
|
|
912
912
|
model?: string | undefined;
|
|
913
913
|
lastActivityTime?: string | undefined;
|
|
914
|
-
deviceName?: string | undefined;
|
|
915
914
|
serialNumber?: string | undefined;
|
|
915
|
+
deviceName?: string | undefined;
|
|
916
916
|
macAddresses?: string[] | undefined;
|
|
917
917
|
owner?: {
|
|
918
918
|
email?: string | undefined;
|
|
@@ -946,8 +946,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
946
946
|
make?: string | undefined;
|
|
947
947
|
model?: string | undefined;
|
|
948
948
|
lastActivityTime?: string | undefined;
|
|
949
|
-
deviceName?: string | undefined;
|
|
950
949
|
serialNumber?: string | undefined;
|
|
950
|
+
deviceName?: string | undefined;
|
|
951
951
|
macAddresses?: string[] | undefined;
|
|
952
952
|
owner?: {
|
|
953
953
|
email?: string | undefined;
|
|
@@ -1046,8 +1046,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1046
1046
|
make?: string | undefined;
|
|
1047
1047
|
model?: string | undefined;
|
|
1048
1048
|
lastActivityTime?: string | undefined;
|
|
1049
|
-
deviceName?: string | undefined;
|
|
1050
1049
|
serialNumber?: string | undefined;
|
|
1050
|
+
deviceName?: string | undefined;
|
|
1051
1051
|
macAddresses?: string[] | undefined;
|
|
1052
1052
|
owner?: {
|
|
1053
1053
|
email?: string | undefined;
|
|
@@ -1120,9 +1120,9 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1120
1120
|
id?: string | undefined;
|
|
1121
1121
|
organization?: string | undefined;
|
|
1122
1122
|
department?: string | undefined;
|
|
1123
|
+
score?: number | undefined;
|
|
1123
1124
|
firstName?: string | undefined;
|
|
1124
1125
|
lastName?: string | undefined;
|
|
1125
|
-
score?: number | undefined;
|
|
1126
1126
|
active?: boolean | undefined;
|
|
1127
1127
|
lastActivity?: string | undefined;
|
|
1128
1128
|
}, {
|
|
@@ -1151,8 +1151,8 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1151
1151
|
make?: string | undefined;
|
|
1152
1152
|
model?: string | undefined;
|
|
1153
1153
|
lastActivityTime?: string | undefined;
|
|
1154
|
-
deviceName?: string | undefined;
|
|
1155
1154
|
serialNumber?: string | undefined;
|
|
1155
|
+
deviceName?: string | undefined;
|
|
1156
1156
|
macAddresses?: string[] | undefined;
|
|
1157
1157
|
owner?: {
|
|
1158
1158
|
email?: string | undefined;
|
|
@@ -1225,9 +1225,9 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1225
1225
|
id?: string | undefined;
|
|
1226
1226
|
organization?: string | undefined;
|
|
1227
1227
|
department?: string | undefined;
|
|
1228
|
+
score?: number | undefined;
|
|
1228
1229
|
firstName?: string | undefined;
|
|
1229
1230
|
lastName?: string | undefined;
|
|
1230
|
-
score?: number | undefined;
|
|
1231
1231
|
active?: boolean | undefined;
|
|
1232
1232
|
lastActivity?: string | undefined;
|
|
1233
1233
|
}>;
|
|
@@ -165,6 +165,7 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
165
165
|
updatedAt: string;
|
|
166
166
|
deletedAt: string | null;
|
|
167
167
|
displayValue: string;
|
|
168
|
+
kind: "REST_ACTION";
|
|
168
169
|
meta: {
|
|
169
170
|
request: {
|
|
170
171
|
method: string;
|
|
@@ -180,7 +181,6 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
180
181
|
timeout?: number | undefined;
|
|
181
182
|
};
|
|
182
183
|
isTemplate: boolean;
|
|
183
|
-
kind: "REST_ACTION";
|
|
184
184
|
description?: string | undefined;
|
|
185
185
|
retryStrategy?: {
|
|
186
186
|
kind: "CONSTANT_BACKOFF";
|
|
@@ -193,6 +193,7 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
193
193
|
updatedAt: string;
|
|
194
194
|
deletedAt: string | null;
|
|
195
195
|
displayValue: string;
|
|
196
|
+
kind: "REST_ACTION";
|
|
196
197
|
meta: {
|
|
197
198
|
request: {
|
|
198
199
|
method: string;
|
|
@@ -208,7 +209,6 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
208
209
|
timeout?: number | undefined;
|
|
209
210
|
};
|
|
210
211
|
isTemplate: boolean;
|
|
211
|
-
kind: "REST_ACTION";
|
|
212
212
|
description?: string | undefined;
|
|
213
213
|
retryStrategy?: {
|
|
214
214
|
kind: "CONSTANT_BACKOFF";
|
|
@@ -315,6 +315,7 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
315
315
|
updatedAt: string;
|
|
316
316
|
deletedAt: string | null;
|
|
317
317
|
displayValue: string;
|
|
318
|
+
kind: "REST_ACTION";
|
|
318
319
|
meta: {
|
|
319
320
|
request: {
|
|
320
321
|
method: string;
|
|
@@ -330,7 +331,6 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
330
331
|
timeout?: number | undefined;
|
|
331
332
|
};
|
|
332
333
|
isTemplate: boolean;
|
|
333
|
-
kind: "REST_ACTION";
|
|
334
334
|
description?: string | undefined;
|
|
335
335
|
retryStrategy?: {
|
|
336
336
|
kind: "CONSTANT_BACKOFF";
|
|
@@ -343,6 +343,7 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
343
343
|
updatedAt: string;
|
|
344
344
|
deletedAt: string | null;
|
|
345
345
|
displayValue: string;
|
|
346
|
+
kind: "REST_ACTION";
|
|
346
347
|
meta: {
|
|
347
348
|
request: {
|
|
348
349
|
method: string;
|
|
@@ -358,7 +359,6 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
358
359
|
timeout?: number | undefined;
|
|
359
360
|
};
|
|
360
361
|
isTemplate: boolean;
|
|
361
|
-
kind: "REST_ACTION";
|
|
362
362
|
description?: string | undefined;
|
|
363
363
|
retryStrategy?: {
|
|
364
364
|
kind: "CONSTANT_BACKOFF";
|
|
@@ -374,6 +374,7 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
374
374
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
375
375
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
376
|
displayValue: z.ZodString;
|
|
377
|
+
kind: z.ZodLiteral<"REST_ACTION">;
|
|
377
378
|
meta: z.ZodObject<{
|
|
378
379
|
request: z.ZodObject<{
|
|
379
380
|
url: z.ZodString;
|
|
@@ -443,7 +444,6 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
443
444
|
timeout?: number | undefined;
|
|
444
445
|
}>;
|
|
445
446
|
isTemplate: z.ZodBoolean;
|
|
446
|
-
kind: z.ZodLiteral<"REST_ACTION">;
|
|
447
447
|
retryStrategy: z.ZodOptional<z.ZodObject<{
|
|
448
448
|
kind: z.ZodLiteral<"CONSTANT_BACKOFF">;
|
|
449
449
|
maxRetries: z.ZodNumber;
|
|
@@ -459,6 +459,7 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
459
459
|
}>>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
displayValue: string;
|
|
462
|
+
kind: "REST_ACTION";
|
|
462
463
|
meta: {
|
|
463
464
|
request: {
|
|
464
465
|
method: string;
|
|
@@ -474,7 +475,6 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
474
475
|
timeout?: number | undefined;
|
|
475
476
|
};
|
|
476
477
|
isTemplate: boolean;
|
|
477
|
-
kind: "REST_ACTION";
|
|
478
478
|
description?: string | undefined;
|
|
479
479
|
id?: string | undefined;
|
|
480
480
|
createdAt?: string | undefined;
|
|
@@ -487,6 +487,7 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
487
487
|
} | undefined;
|
|
488
488
|
}, {
|
|
489
489
|
displayValue: string;
|
|
490
|
+
kind: "REST_ACTION";
|
|
490
491
|
meta: {
|
|
491
492
|
request: {
|
|
492
493
|
method: string;
|
|
@@ -502,7 +503,6 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
502
503
|
timeout?: number | undefined;
|
|
503
504
|
};
|
|
504
505
|
isTemplate: boolean;
|
|
505
|
-
kind: "REST_ACTION";
|
|
506
506
|
description?: string | undefined;
|
|
507
507
|
id?: string | undefined;
|
|
508
508
|
createdAt?: string | undefined;
|
|
@@ -27,22 +27,22 @@ export declare const lookupFindingSeverityByKind: (kind: string) => FindingSever
|
|
|
27
27
|
export declare const lookupFindingScoreByCategoryKindAndSeverity: (category: Category, kind: string) => number;
|
|
28
28
|
export declare const lookupFindingDisplayValueByKind: (kind: string) => string;
|
|
29
29
|
export declare const generateInsights: (category: string, kind: string) => {
|
|
30
|
-
meta
|
|
30
|
+
meta?: {
|
|
31
|
+
displayValue: string;
|
|
31
32
|
kind: FindingKind;
|
|
32
33
|
severity: FindingSeverity;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
rule: {
|
|
36
|
-
category: Category;
|
|
34
|
+
} | undefined;
|
|
35
|
+
rule?: {
|
|
37
36
|
kind: SaasComponentKind;
|
|
38
|
-
|
|
37
|
+
category: Category;
|
|
38
|
+
findingCondition: Record<string, string | number | boolean | undefined>;
|
|
39
|
+
uid?: {
|
|
39
40
|
$has: boolean;
|
|
40
|
-
};
|
|
41
|
-
|
|
41
|
+
} | undefined;
|
|
42
|
+
aid?: {
|
|
42
43
|
$has: boolean;
|
|
43
|
-
};
|
|
44
|
-
severity
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
44
|
+
} | undefined;
|
|
45
|
+
severity?: FindingSeverity | undefined;
|
|
46
|
+
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
47
|
+
} | undefined;
|
|
48
48
|
};
|
|
@@ -227,84 +227,85 @@ const generateInsights = (category, kind) => {
|
|
|
227
227
|
remediatedCondition: {},
|
|
228
228
|
},
|
|
229
229
|
};
|
|
230
|
+
const rule = insights.rule;
|
|
230
231
|
if (category === category_1.Category.EDR || category === category_1.Category.VULNERABILITY) {
|
|
231
|
-
|
|
232
|
+
rule.aid = { $has: true };
|
|
232
233
|
}
|
|
233
234
|
else {
|
|
234
|
-
|
|
235
|
+
rule.uid = { $has: true };
|
|
235
236
|
}
|
|
236
237
|
const setCondition = (key, value) => {
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
rule.findingCondition[key] = value;
|
|
239
|
+
rule.remediatedCondition[key] = !value;
|
|
239
240
|
};
|
|
240
241
|
switch (kind) {
|
|
241
242
|
case FindingKind.WEB_GATEWAY_NOT_ACTIVE:
|
|
242
243
|
setCondition('meta._findings.loggedIn', false);
|
|
243
|
-
|
|
244
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.WEB_GATEWAY_SESSION;
|
|
244
245
|
break;
|
|
245
246
|
case FindingKind.CRITICAL_VULNERABILITY_OUT_OF_SLA:
|
|
246
247
|
setCondition('meta._findings.overdue', true);
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.VULNERABILITY;
|
|
249
|
+
rule.severity = finding_severity_1.FindingSeverity.CRITICAL;
|
|
249
250
|
break;
|
|
250
251
|
case FindingKind.HIGH_VULNERABILITY_OUT_OF_SLA:
|
|
251
252
|
setCondition('meta._findings.overdue', true);
|
|
252
|
-
|
|
253
|
-
|
|
253
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.VULNERABILITY;
|
|
254
|
+
rule.severity = finding_severity_1.FindingSeverity.HIGH;
|
|
254
255
|
break;
|
|
255
256
|
case FindingKind.MEDIUM_VULNERABILITY_OUT_OF_SLA:
|
|
256
257
|
setCondition('meta._findings.overdue', true);
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.VULNERABILITY;
|
|
259
|
+
rule.severity = finding_severity_1.FindingSeverity.MEDIUM;
|
|
259
260
|
break;
|
|
260
261
|
case FindingKind.LOW_VULNERABILITY_OUT_OF_SLA:
|
|
261
262
|
setCondition('meta._findings.overdue', true);
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.VULNERABILITY;
|
|
264
|
+
rule.severity = finding_severity_1.FindingSeverity.LOW;
|
|
264
265
|
break;
|
|
265
266
|
case FindingKind.TRAINING_OVERDUE:
|
|
266
267
|
setCondition('meta._findings.overdue', true);
|
|
267
|
-
|
|
268
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.TRAINING_ASSIGNMENT;
|
|
268
269
|
break;
|
|
269
270
|
case FindingKind.FAILED_PHISHING:
|
|
270
271
|
setCondition('meta._findings.failedPhishing', true);
|
|
271
|
-
|
|
272
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.PHISHING_RESULT;
|
|
272
273
|
break;
|
|
273
274
|
case FindingKind.DEVICE_NOT_MANAGED:
|
|
274
275
|
setCondition('meta._findings.active', false);
|
|
275
|
-
|
|
276
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.EDR_CONFIG;
|
|
276
277
|
break;
|
|
277
278
|
case FindingKind.FIREWALL_DISABLED:
|
|
278
279
|
setCondition('meta._findings.isFirewallDisabled', true);
|
|
279
|
-
|
|
280
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.EDR_CONFIG;
|
|
280
281
|
break;
|
|
281
282
|
case FindingKind.SCREENSAVER_DISABLED:
|
|
282
283
|
setCondition('meta._findings.isScreenSaverDisabled', true);
|
|
283
|
-
|
|
284
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.EDR_CONFIG;
|
|
284
285
|
break;
|
|
285
286
|
case FindingKind.DEVICE_NOT_ENCRYPTED:
|
|
286
287
|
setCondition('meta._findings.isDeviceNotEncrypted', true);
|
|
287
|
-
|
|
288
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.EDR_CONFIG;
|
|
288
289
|
break;
|
|
289
290
|
case FindingKind.MFA_NOT_ENABLED:
|
|
290
291
|
setCondition('meta._findings.enabled', false);
|
|
291
|
-
|
|
292
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.MFA_CONFIG;
|
|
292
293
|
break;
|
|
293
294
|
case FindingKind.MFA_NOT_SECURE:
|
|
294
295
|
setCondition('meta._findings.hasInsecureFactors', true);
|
|
295
|
-
|
|
296
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.MFA_CONFIG;
|
|
296
297
|
break;
|
|
297
298
|
case FindingKind.IS_EXECUTIVE:
|
|
298
299
|
setCondition('meta._findings.isExecutive', true);
|
|
299
|
-
|
|
300
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
300
301
|
break;
|
|
301
302
|
case FindingKind.HAS_PRODUCTION_ACCESS:
|
|
302
303
|
setCondition('meta._findings.hasProdAccess', true);
|
|
303
|
-
|
|
304
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
304
305
|
break;
|
|
305
306
|
case FindingKind.HAS_PRIVILEGED_ACCESS:
|
|
306
307
|
setCondition('meta._findings.hasPrivilegedAccess', true);
|
|
307
|
-
|
|
308
|
+
rule.kind = saasComponentKind_1.SaasComponentKind.GROUP_MEMBERSHIP;
|
|
308
309
|
break;
|
|
309
310
|
default:
|
|
310
311
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findingKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/findingKind.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"findingKind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CAAiB,CAAC,gBAAgB,CAAC;YAC/C,MAAM;QACR;YACE,MAAM;IACV,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAtGW,QAAA,gBAAgB,oBAsG3B"}
|
|
@@ -84,21 +84,21 @@ export declare const _FindingBucketSummaryDto: z.ZodObject<{
|
|
|
84
84
|
id: string;
|
|
85
85
|
uid: string;
|
|
86
86
|
score: number;
|
|
87
|
-
kind: string;
|
|
88
87
|
key: string;
|
|
88
|
+
kind: string;
|
|
89
89
|
flowStateId: string | null;
|
|
90
90
|
flowStateCreatedAt: string | null;
|
|
91
91
|
}, {
|
|
92
92
|
id: string;
|
|
93
93
|
uid: string;
|
|
94
94
|
score: number;
|
|
95
|
-
kind: string;
|
|
96
95
|
key: string;
|
|
96
|
+
kind: string;
|
|
97
97
|
flowStateId: string | null;
|
|
98
98
|
flowStateCreatedAt: string | null;
|
|
99
99
|
}>;
|
|
100
100
|
export type FindingBucketSummaryDto = z.infer<typeof _FindingBucketSummaryDto>;
|
|
101
|
-
declare const _FindingSpecInsights: z.ZodObject<{
|
|
101
|
+
export declare const _FindingSpecInsights: z.ZodObject<{
|
|
102
102
|
meta: z.ZodOptional<z.ZodObject<{
|
|
103
103
|
kind: z.ZodNativeEnum<typeof FindingKind>;
|
|
104
104
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
@@ -129,6 +129,7 @@ declare const _FindingSpecInsights: z.ZodObject<{
|
|
|
129
129
|
}, {
|
|
130
130
|
$has: boolean;
|
|
131
131
|
}>>;
|
|
132
|
+
severity: z.ZodOptional<z.ZodNativeEnum<typeof FindingSeverity>>;
|
|
132
133
|
findingCondition: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>;
|
|
133
134
|
remediatedCondition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>>;
|
|
134
135
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -141,6 +142,7 @@ declare const _FindingSpecInsights: z.ZodObject<{
|
|
|
141
142
|
aid?: {
|
|
142
143
|
$has: boolean;
|
|
143
144
|
} | undefined;
|
|
145
|
+
severity?: FindingSeverity | undefined;
|
|
144
146
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
145
147
|
}, {
|
|
146
148
|
kind: SaasComponentKind;
|
|
@@ -152,6 +154,7 @@ declare const _FindingSpecInsights: z.ZodObject<{
|
|
|
152
154
|
aid?: {
|
|
153
155
|
$has: boolean;
|
|
154
156
|
} | undefined;
|
|
157
|
+
severity?: FindingSeverity | undefined;
|
|
155
158
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
156
159
|
}>>;
|
|
157
160
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -170,6 +173,7 @@ declare const _FindingSpecInsights: z.ZodObject<{
|
|
|
170
173
|
aid?: {
|
|
171
174
|
$has: boolean;
|
|
172
175
|
} | undefined;
|
|
176
|
+
severity?: FindingSeverity | undefined;
|
|
173
177
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
174
178
|
} | undefined;
|
|
175
179
|
}, {
|
|
@@ -188,9 +192,11 @@ declare const _FindingSpecInsights: z.ZodObject<{
|
|
|
188
192
|
aid?: {
|
|
189
193
|
$has: boolean;
|
|
190
194
|
} | undefined;
|
|
195
|
+
severity?: FindingSeverity | undefined;
|
|
191
196
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
192
197
|
} | undefined;
|
|
193
198
|
}>;
|
|
199
|
+
export type FindingSpecInsights = z.infer<typeof _FindingSpecInsights>;
|
|
194
200
|
export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
195
201
|
id: z.ZodString;
|
|
196
202
|
createdAt: z.ZodString;
|
|
@@ -234,6 +240,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
234
240
|
}, {
|
|
235
241
|
$has: boolean;
|
|
236
242
|
}>>;
|
|
243
|
+
severity: z.ZodOptional<z.ZodNativeEnum<typeof FindingSeverity>>;
|
|
237
244
|
findingCondition: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>;
|
|
238
245
|
remediatedCondition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>>;
|
|
239
246
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -246,6 +253,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
246
253
|
aid?: {
|
|
247
254
|
$has: boolean;
|
|
248
255
|
} | undefined;
|
|
256
|
+
severity?: FindingSeverity | undefined;
|
|
249
257
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
250
258
|
}, {
|
|
251
259
|
kind: SaasComponentKind;
|
|
@@ -257,6 +265,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
257
265
|
aid?: {
|
|
258
266
|
$has: boolean;
|
|
259
267
|
} | undefined;
|
|
268
|
+
severity?: FindingSeverity | undefined;
|
|
260
269
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
261
270
|
}>>;
|
|
262
271
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -275,6 +284,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
275
284
|
aid?: {
|
|
276
285
|
$has: boolean;
|
|
277
286
|
} | undefined;
|
|
287
|
+
severity?: FindingSeverity | undefined;
|
|
278
288
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
279
289
|
} | undefined;
|
|
280
290
|
}, {
|
|
@@ -293,6 +303,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
293
303
|
aid?: {
|
|
294
304
|
$has: boolean;
|
|
295
305
|
} | undefined;
|
|
306
|
+
severity?: FindingSeverity | undefined;
|
|
296
307
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
297
308
|
} | undefined;
|
|
298
309
|
}>>;
|
|
@@ -329,6 +340,7 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
329
340
|
aid?: {
|
|
330
341
|
$has: boolean;
|
|
331
342
|
} | undefined;
|
|
343
|
+
severity?: FindingSeverity | undefined;
|
|
332
344
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
333
345
|
} | undefined;
|
|
334
346
|
} | undefined;
|
|
@@ -363,13 +375,13 @@ export declare const _FindingSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
363
375
|
aid?: {
|
|
364
376
|
$has: boolean;
|
|
365
377
|
} | undefined;
|
|
378
|
+
severity?: FindingSeverity | undefined;
|
|
366
379
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
367
380
|
} | undefined;
|
|
368
381
|
} | undefined;
|
|
369
382
|
expireAfterDays?: number | null | undefined;
|
|
370
383
|
outcome?: FindingOutcome | undefined;
|
|
371
384
|
}>;
|
|
372
|
-
export type FindingSpecInsights = z.infer<typeof _FindingSpecInsights>;
|
|
373
385
|
export type FindingSpecDto = z.infer<typeof _FindingSpecDto>;
|
|
374
386
|
export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
375
387
|
name: z.ZodString;
|
|
@@ -415,6 +427,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
415
427
|
}, {
|
|
416
428
|
$has: boolean;
|
|
417
429
|
}>>;
|
|
430
|
+
severity: z.ZodOptional<z.ZodNativeEnum<typeof FindingSeverity>>;
|
|
418
431
|
findingCondition: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>;
|
|
419
432
|
remediatedCondition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodUndefined]>>>;
|
|
420
433
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -427,6 +440,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
427
440
|
aid?: {
|
|
428
441
|
$has: boolean;
|
|
429
442
|
} | undefined;
|
|
443
|
+
severity?: FindingSeverity | undefined;
|
|
430
444
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
431
445
|
}, {
|
|
432
446
|
kind: SaasComponentKind;
|
|
@@ -438,6 +452,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
438
452
|
aid?: {
|
|
439
453
|
$has: boolean;
|
|
440
454
|
} | undefined;
|
|
455
|
+
severity?: FindingSeverity | undefined;
|
|
441
456
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
442
457
|
}>>;
|
|
443
458
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -456,6 +471,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
456
471
|
aid?: {
|
|
457
472
|
$has: boolean;
|
|
458
473
|
} | undefined;
|
|
474
|
+
severity?: FindingSeverity | undefined;
|
|
459
475
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
460
476
|
} | undefined;
|
|
461
477
|
}, {
|
|
@@ -474,6 +490,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
474
490
|
aid?: {
|
|
475
491
|
$has: boolean;
|
|
476
492
|
} | undefined;
|
|
493
|
+
severity?: FindingSeverity | undefined;
|
|
477
494
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
478
495
|
} | undefined;
|
|
479
496
|
}>>;
|
|
@@ -508,6 +525,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
508
525
|
aid?: {
|
|
509
526
|
$has: boolean;
|
|
510
527
|
} | undefined;
|
|
528
|
+
severity?: FindingSeverity | undefined;
|
|
511
529
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
512
530
|
} | undefined;
|
|
513
531
|
} | undefined;
|
|
@@ -542,6 +560,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
542
560
|
aid?: {
|
|
543
561
|
$has: boolean;
|
|
544
562
|
} | undefined;
|
|
563
|
+
severity?: FindingSeverity | undefined;
|
|
545
564
|
remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
|
|
546
565
|
} | undefined;
|
|
547
566
|
} | undefined;
|
|
@@ -578,15 +597,14 @@ export declare const _CustomFindingPayload: z.ZodObject<{
|
|
|
578
597
|
}, "strip", z.ZodTypeAny, {
|
|
579
598
|
eventType: string;
|
|
580
599
|
email?: string | undefined;
|
|
581
|
-
serialNumber?: string | undefined;
|
|
582
600
|
correlationId?: string | undefined;
|
|
601
|
+
serialNumber?: string | undefined;
|
|
583
602
|
context?: unknown;
|
|
584
603
|
}, {
|
|
585
604
|
eventType: string;
|
|
586
605
|
email?: string | undefined;
|
|
587
|
-
serialNumber?: string | undefined;
|
|
588
606
|
correlationId?: string | undefined;
|
|
607
|
+
serialNumber?: string | undefined;
|
|
589
608
|
context?: unknown;
|
|
590
609
|
}>;
|
|
591
610
|
export type CustomFindingPayload = z.infer<typeof _CustomFindingPayload>;
|
|
592
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._CustomFindingPayload = exports._FindingSummaryDto = exports._FindingSpecUpsertDto = exports._FindingSpecDto = exports._FindingBucketSummaryDto = exports._FindingBucketDto = void 0;
|
|
3
|
+
exports._CustomFindingPayload = exports._FindingSummaryDto = exports._FindingSpecUpsertDto = exports._FindingSpecDto = exports._FindingSpecInsights = exports._FindingBucketSummaryDto = exports._FindingBucketDto = 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");
|
|
@@ -30,7 +30,7 @@ exports._FindingBucketSummaryDto = zod_1.z.object({
|
|
|
30
30
|
// });
|
|
31
31
|
// export type PendingFindingFilter = z.infer<typeof _PendingFindingFilter>;
|
|
32
32
|
const _FindingSpecDescription = zod_1.z.unknown();
|
|
33
|
-
|
|
33
|
+
exports._FindingSpecInsights = zod_1.z.object({
|
|
34
34
|
meta: zod_1.z
|
|
35
35
|
.object({
|
|
36
36
|
kind: zod_1.z.nativeEnum(enums_1.FindingKind),
|
|
@@ -52,6 +52,7 @@ const _FindingSpecInsights = zod_1.z.object({
|
|
|
52
52
|
$has: zod_1.z.boolean(),
|
|
53
53
|
})
|
|
54
54
|
.optional(),
|
|
55
|
+
severity: zod_1.z.nativeEnum(enums_2.FindingSeverity).optional(),
|
|
55
56
|
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()])),
|
|
56
57
|
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(),
|
|
57
58
|
})
|
|
@@ -64,7 +65,7 @@ exports._FindingSpecDto = base_dto_1._BaseDto.extend({
|
|
|
64
65
|
eventType: zod_1.z.string(),
|
|
65
66
|
description: zod_1.z.union([zod_1.z.string(), _FindingSpecDescription]),
|
|
66
67
|
severity: zod_1.z.nativeEnum(enums_2.FindingSeverity),
|
|
67
|
-
insights: _FindingSpecInsights.optional(),
|
|
68
|
+
insights: exports._FindingSpecInsights.optional(),
|
|
68
69
|
expireAfterDays: zod_1.z.nullable(zod_1.z.number()).optional(),
|
|
69
70
|
outcome: zod_1.z.nativeEnum(enums_2.FindingOutcome).optional(), // TODO add column and form field??? Or just default to REMEDIATION?
|
|
70
71
|
kind: zod_1.z.nativeEnum(enums_1.FindingSpecKind),
|