@ampsec/platform-client 87.8.4 → 87.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/build/src/dto/assets.dto.d.ts +11 -4
- package/build/src/dto/assets.dto.js +3 -0
- package/build/src/dto/assets.dto.js.map +1 -1
- package/build/src/dto/coverage.dto.d.ts +237 -65
- package/build/src/dto/coverage.dto.js +11 -0
- package/build/src/dto/coverage.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +7 -7
- package/build/src/dto/platform/platform.customActions.dto.d.ts +5 -5
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +67 -24
- package/build/src/dto/saasAssets.dto.d.ts +196 -64
- package/build/src/dto/saasAssets.dto.js +21 -1
- package/build/src/dto/saasAssets.dto.js.map +1 -1
- package/build/src/dto/users.dto.d.ts +10 -10
- package/package.json +1 -1
- package/src/dto/assets.dto.ts +3 -0
- package/src/dto/coverage.dto.ts +13 -0
- package/src/dto/saasAssets.dto.ts +20 -0
|
@@ -5,6 +5,16 @@ export declare enum SaasAssetActiveStatus {
|
|
|
5
5
|
INACTIVE = "INACTIVE",
|
|
6
6
|
ARCHIVED = "ARCHIVED"
|
|
7
7
|
}
|
|
8
|
+
export declare enum SaasAssetAttributionStatus {
|
|
9
|
+
POSITIVE = "POSITIVE",
|
|
10
|
+
NEGATIVE = "NEGATIVE"
|
|
11
|
+
}
|
|
12
|
+
export declare enum SaasAssetAttributionReason {
|
|
13
|
+
CONFLICTING_EVIDENCE = "CONFLICTING_EVIDENCE",
|
|
14
|
+
MISSING_EVIDENCE = "MISSING_EVIDENCE",
|
|
15
|
+
NO_DEVICE = "NO_DEVICE",
|
|
16
|
+
OTHER = "OTHER"
|
|
17
|
+
}
|
|
8
18
|
export declare const _SaasAssetMeta: z.ZodObject<{
|
|
9
19
|
_asset: z.ZodObject<{
|
|
10
20
|
/** Asset ID from provider */
|
|
@@ -48,6 +58,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
48
58
|
model: z.ZodOptional<z.ZodString>;
|
|
49
59
|
/** Asset active status */
|
|
50
60
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
62
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
64
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
65
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
status: SaasAssetAttributionStatus;
|
|
68
|
+
updatedAt?: string | undefined;
|
|
69
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
status: SaasAssetAttributionStatus;
|
|
72
|
+
updatedAt?: string | undefined;
|
|
73
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
74
|
+
}>>;
|
|
51
75
|
}, "strip", z.ZodTypeAny, {
|
|
52
76
|
extId: string;
|
|
53
77
|
assetType: GlobalAssetType;
|
|
@@ -58,15 +82,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
58
82
|
}[];
|
|
59
83
|
sn?: string | undefined;
|
|
60
84
|
macs?: string[] | undefined;
|
|
61
|
-
make?: string | undefined;
|
|
62
|
-
model?: string | undefined;
|
|
63
|
-
lastActivityTime?: string | undefined;
|
|
64
|
-
active?: boolean | undefined;
|
|
65
85
|
deviceName?: string | undefined;
|
|
86
|
+
lastActivityTime?: string | undefined;
|
|
66
87
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
67
88
|
owner?: {
|
|
68
89
|
email?: string | undefined;
|
|
69
90
|
} | undefined;
|
|
91
|
+
make?: string | undefined;
|
|
92
|
+
model?: string | undefined;
|
|
93
|
+
active?: boolean | undefined;
|
|
94
|
+
attribution?: {
|
|
95
|
+
status: SaasAssetAttributionStatus;
|
|
96
|
+
updatedAt?: string | undefined;
|
|
97
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
98
|
+
} | undefined;
|
|
70
99
|
}, {
|
|
71
100
|
extId: string;
|
|
72
101
|
assetType: GlobalAssetType;
|
|
@@ -77,15 +106,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
77
106
|
}[];
|
|
78
107
|
sn?: string | undefined;
|
|
79
108
|
macs?: string[] | undefined;
|
|
80
|
-
make?: string | undefined;
|
|
81
|
-
model?: string | undefined;
|
|
82
|
-
lastActivityTime?: string | undefined;
|
|
83
|
-
active?: boolean | undefined;
|
|
84
109
|
deviceName?: string | undefined;
|
|
110
|
+
lastActivityTime?: string | undefined;
|
|
85
111
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
86
112
|
owner?: {
|
|
87
113
|
email?: string | undefined;
|
|
88
114
|
} | undefined;
|
|
115
|
+
make?: string | undefined;
|
|
116
|
+
model?: string | undefined;
|
|
117
|
+
active?: boolean | undefined;
|
|
118
|
+
attribution?: {
|
|
119
|
+
status: SaasAssetAttributionStatus;
|
|
120
|
+
updatedAt?: string | undefined;
|
|
121
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
122
|
+
} | undefined;
|
|
89
123
|
}>;
|
|
90
124
|
_raw: z.ZodUnknown;
|
|
91
125
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -99,15 +133,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
99
133
|
}[];
|
|
100
134
|
sn?: string | undefined;
|
|
101
135
|
macs?: string[] | undefined;
|
|
102
|
-
make?: string | undefined;
|
|
103
|
-
model?: string | undefined;
|
|
104
|
-
lastActivityTime?: string | undefined;
|
|
105
|
-
active?: boolean | undefined;
|
|
106
136
|
deviceName?: string | undefined;
|
|
137
|
+
lastActivityTime?: string | undefined;
|
|
107
138
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
108
139
|
owner?: {
|
|
109
140
|
email?: string | undefined;
|
|
110
141
|
} | undefined;
|
|
142
|
+
make?: string | undefined;
|
|
143
|
+
model?: string | undefined;
|
|
144
|
+
active?: boolean | undefined;
|
|
145
|
+
attribution?: {
|
|
146
|
+
status: SaasAssetAttributionStatus;
|
|
147
|
+
updatedAt?: string | undefined;
|
|
148
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
149
|
+
} | undefined;
|
|
111
150
|
};
|
|
112
151
|
_raw?: unknown;
|
|
113
152
|
}, {
|
|
@@ -121,15 +160,20 @@ export declare const _SaasAssetMeta: z.ZodObject<{
|
|
|
121
160
|
}[];
|
|
122
161
|
sn?: string | undefined;
|
|
123
162
|
macs?: string[] | undefined;
|
|
124
|
-
make?: string | undefined;
|
|
125
|
-
model?: string | undefined;
|
|
126
|
-
lastActivityTime?: string | undefined;
|
|
127
|
-
active?: boolean | undefined;
|
|
128
163
|
deviceName?: string | undefined;
|
|
164
|
+
lastActivityTime?: string | undefined;
|
|
129
165
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
130
166
|
owner?: {
|
|
131
167
|
email?: string | undefined;
|
|
132
168
|
} | undefined;
|
|
169
|
+
make?: string | undefined;
|
|
170
|
+
model?: string | undefined;
|
|
171
|
+
active?: boolean | undefined;
|
|
172
|
+
attribution?: {
|
|
173
|
+
status: SaasAssetAttributionStatus;
|
|
174
|
+
updatedAt?: string | undefined;
|
|
175
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
176
|
+
} | undefined;
|
|
133
177
|
};
|
|
134
178
|
_raw?: unknown;
|
|
135
179
|
}>;
|
|
@@ -215,6 +259,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
215
259
|
model: z.ZodOptional<z.ZodString>;
|
|
216
260
|
/** Asset active status */
|
|
217
261
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
263
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
265
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
266
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
status: SaasAssetAttributionStatus;
|
|
269
|
+
updatedAt?: string | undefined;
|
|
270
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
status: SaasAssetAttributionStatus;
|
|
273
|
+
updatedAt?: string | undefined;
|
|
274
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
275
|
+
}>>;
|
|
218
276
|
}, "strip", z.ZodTypeAny, {
|
|
219
277
|
extId: string;
|
|
220
278
|
assetType: GlobalAssetType;
|
|
@@ -225,15 +283,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
225
283
|
}[];
|
|
226
284
|
sn?: string | undefined;
|
|
227
285
|
macs?: string[] | undefined;
|
|
228
|
-
make?: string | undefined;
|
|
229
|
-
model?: string | undefined;
|
|
230
|
-
lastActivityTime?: string | undefined;
|
|
231
|
-
active?: boolean | undefined;
|
|
232
286
|
deviceName?: string | undefined;
|
|
287
|
+
lastActivityTime?: string | undefined;
|
|
233
288
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
234
289
|
owner?: {
|
|
235
290
|
email?: string | undefined;
|
|
236
291
|
} | undefined;
|
|
292
|
+
make?: string | undefined;
|
|
293
|
+
model?: string | undefined;
|
|
294
|
+
active?: boolean | undefined;
|
|
295
|
+
attribution?: {
|
|
296
|
+
status: SaasAssetAttributionStatus;
|
|
297
|
+
updatedAt?: string | undefined;
|
|
298
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
299
|
+
} | undefined;
|
|
237
300
|
}, {
|
|
238
301
|
extId: string;
|
|
239
302
|
assetType: GlobalAssetType;
|
|
@@ -244,15 +307,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
244
307
|
}[];
|
|
245
308
|
sn?: string | undefined;
|
|
246
309
|
macs?: string[] | undefined;
|
|
247
|
-
make?: string | undefined;
|
|
248
|
-
model?: string | undefined;
|
|
249
|
-
lastActivityTime?: string | undefined;
|
|
250
|
-
active?: boolean | undefined;
|
|
251
310
|
deviceName?: string | undefined;
|
|
311
|
+
lastActivityTime?: string | undefined;
|
|
252
312
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
253
313
|
owner?: {
|
|
254
314
|
email?: string | undefined;
|
|
255
315
|
} | undefined;
|
|
316
|
+
make?: string | undefined;
|
|
317
|
+
model?: string | undefined;
|
|
318
|
+
active?: boolean | undefined;
|
|
319
|
+
attribution?: {
|
|
320
|
+
status: SaasAssetAttributionStatus;
|
|
321
|
+
updatedAt?: string | undefined;
|
|
322
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
323
|
+
} | undefined;
|
|
256
324
|
}>;
|
|
257
325
|
_raw: z.ZodUnknown;
|
|
258
326
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -266,15 +334,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
266
334
|
}[];
|
|
267
335
|
sn?: string | undefined;
|
|
268
336
|
macs?: string[] | undefined;
|
|
269
|
-
make?: string | undefined;
|
|
270
|
-
model?: string | undefined;
|
|
271
|
-
lastActivityTime?: string | undefined;
|
|
272
|
-
active?: boolean | undefined;
|
|
273
337
|
deviceName?: string | undefined;
|
|
338
|
+
lastActivityTime?: string | undefined;
|
|
274
339
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
275
340
|
owner?: {
|
|
276
341
|
email?: string | undefined;
|
|
277
342
|
} | undefined;
|
|
343
|
+
make?: string | undefined;
|
|
344
|
+
model?: string | undefined;
|
|
345
|
+
active?: boolean | undefined;
|
|
346
|
+
attribution?: {
|
|
347
|
+
status: SaasAssetAttributionStatus;
|
|
348
|
+
updatedAt?: string | undefined;
|
|
349
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
350
|
+
} | undefined;
|
|
278
351
|
};
|
|
279
352
|
_raw?: unknown;
|
|
280
353
|
}, {
|
|
@@ -288,15 +361,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
288
361
|
}[];
|
|
289
362
|
sn?: string | undefined;
|
|
290
363
|
macs?: string[] | undefined;
|
|
291
|
-
make?: string | undefined;
|
|
292
|
-
model?: string | undefined;
|
|
293
|
-
lastActivityTime?: string | undefined;
|
|
294
|
-
active?: boolean | undefined;
|
|
295
364
|
deviceName?: string | undefined;
|
|
365
|
+
lastActivityTime?: string | undefined;
|
|
296
366
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
297
367
|
owner?: {
|
|
298
368
|
email?: string | undefined;
|
|
299
369
|
} | undefined;
|
|
370
|
+
make?: string | undefined;
|
|
371
|
+
model?: string | undefined;
|
|
372
|
+
active?: boolean | undefined;
|
|
373
|
+
attribution?: {
|
|
374
|
+
status: SaasAssetAttributionStatus;
|
|
375
|
+
updatedAt?: string | undefined;
|
|
376
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
377
|
+
} | undefined;
|
|
300
378
|
};
|
|
301
379
|
_raw?: unknown;
|
|
302
380
|
}>;
|
|
@@ -322,15 +400,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
322
400
|
}[];
|
|
323
401
|
sn?: string | undefined;
|
|
324
402
|
macs?: string[] | undefined;
|
|
325
|
-
make?: string | undefined;
|
|
326
|
-
model?: string | undefined;
|
|
327
|
-
lastActivityTime?: string | undefined;
|
|
328
|
-
active?: boolean | undefined;
|
|
329
403
|
deviceName?: string | undefined;
|
|
404
|
+
lastActivityTime?: string | undefined;
|
|
330
405
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
331
406
|
owner?: {
|
|
332
407
|
email?: string | undefined;
|
|
333
408
|
} | undefined;
|
|
409
|
+
make?: string | undefined;
|
|
410
|
+
model?: string | undefined;
|
|
411
|
+
active?: boolean | undefined;
|
|
412
|
+
attribution?: {
|
|
413
|
+
status: SaasAssetAttributionStatus;
|
|
414
|
+
updatedAt?: string | undefined;
|
|
415
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
416
|
+
} | undefined;
|
|
334
417
|
};
|
|
335
418
|
_raw?: unknown;
|
|
336
419
|
};
|
|
@@ -363,15 +446,20 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
363
446
|
}[];
|
|
364
447
|
sn?: string | undefined;
|
|
365
448
|
macs?: string[] | undefined;
|
|
366
|
-
make?: string | undefined;
|
|
367
|
-
model?: string | undefined;
|
|
368
|
-
lastActivityTime?: string | undefined;
|
|
369
|
-
active?: boolean | undefined;
|
|
370
449
|
deviceName?: string | undefined;
|
|
450
|
+
lastActivityTime?: string | undefined;
|
|
371
451
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
372
452
|
owner?: {
|
|
373
453
|
email?: string | undefined;
|
|
374
454
|
} | undefined;
|
|
455
|
+
make?: string | undefined;
|
|
456
|
+
model?: string | undefined;
|
|
457
|
+
active?: boolean | undefined;
|
|
458
|
+
attribution?: {
|
|
459
|
+
status: SaasAssetAttributionStatus;
|
|
460
|
+
updatedAt?: string | undefined;
|
|
461
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
462
|
+
} | undefined;
|
|
375
463
|
};
|
|
376
464
|
_raw?: unknown;
|
|
377
465
|
};
|
|
@@ -465,6 +553,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
465
553
|
model: z.ZodOptional<z.ZodString>;
|
|
466
554
|
/** Asset active status */
|
|
467
555
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
556
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
557
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
status: z.ZodNativeEnum<typeof SaasAssetAttributionStatus>;
|
|
559
|
+
reason: z.ZodOptional<z.ZodNativeEnum<typeof SaasAssetAttributionReason>>;
|
|
560
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
status: SaasAssetAttributionStatus;
|
|
563
|
+
updatedAt?: string | undefined;
|
|
564
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
565
|
+
}, {
|
|
566
|
+
status: SaasAssetAttributionStatus;
|
|
567
|
+
updatedAt?: string | undefined;
|
|
568
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
569
|
+
}>>;
|
|
468
570
|
}, "strip", z.ZodTypeAny, {
|
|
469
571
|
extId: string;
|
|
470
572
|
assetType: GlobalAssetType;
|
|
@@ -475,15 +577,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
475
577
|
}[];
|
|
476
578
|
sn?: string | undefined;
|
|
477
579
|
macs?: string[] | undefined;
|
|
478
|
-
make?: string | undefined;
|
|
479
|
-
model?: string | undefined;
|
|
480
|
-
lastActivityTime?: string | undefined;
|
|
481
|
-
active?: boolean | undefined;
|
|
482
580
|
deviceName?: string | undefined;
|
|
581
|
+
lastActivityTime?: string | undefined;
|
|
483
582
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
484
583
|
owner?: {
|
|
485
584
|
email?: string | undefined;
|
|
486
585
|
} | undefined;
|
|
586
|
+
make?: string | undefined;
|
|
587
|
+
model?: string | undefined;
|
|
588
|
+
active?: boolean | undefined;
|
|
589
|
+
attribution?: {
|
|
590
|
+
status: SaasAssetAttributionStatus;
|
|
591
|
+
updatedAt?: string | undefined;
|
|
592
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
593
|
+
} | undefined;
|
|
487
594
|
}, {
|
|
488
595
|
extId: string;
|
|
489
596
|
assetType: GlobalAssetType;
|
|
@@ -494,15 +601,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
494
601
|
}[];
|
|
495
602
|
sn?: string | undefined;
|
|
496
603
|
macs?: string[] | undefined;
|
|
497
|
-
make?: string | undefined;
|
|
498
|
-
model?: string | undefined;
|
|
499
|
-
lastActivityTime?: string | undefined;
|
|
500
|
-
active?: boolean | undefined;
|
|
501
604
|
deviceName?: string | undefined;
|
|
605
|
+
lastActivityTime?: string | undefined;
|
|
502
606
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
503
607
|
owner?: {
|
|
504
608
|
email?: string | undefined;
|
|
505
609
|
} | undefined;
|
|
610
|
+
make?: string | undefined;
|
|
611
|
+
model?: string | undefined;
|
|
612
|
+
active?: boolean | undefined;
|
|
613
|
+
attribution?: {
|
|
614
|
+
status: SaasAssetAttributionStatus;
|
|
615
|
+
updatedAt?: string | undefined;
|
|
616
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
617
|
+
} | undefined;
|
|
506
618
|
}>;
|
|
507
619
|
_raw: z.ZodUnknown;
|
|
508
620
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -516,15 +628,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
516
628
|
}[];
|
|
517
629
|
sn?: string | undefined;
|
|
518
630
|
macs?: string[] | undefined;
|
|
519
|
-
make?: string | undefined;
|
|
520
|
-
model?: string | undefined;
|
|
521
|
-
lastActivityTime?: string | undefined;
|
|
522
|
-
active?: boolean | undefined;
|
|
523
631
|
deviceName?: string | undefined;
|
|
632
|
+
lastActivityTime?: string | undefined;
|
|
524
633
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
525
634
|
owner?: {
|
|
526
635
|
email?: string | undefined;
|
|
527
636
|
} | undefined;
|
|
637
|
+
make?: string | undefined;
|
|
638
|
+
model?: string | undefined;
|
|
639
|
+
active?: boolean | undefined;
|
|
640
|
+
attribution?: {
|
|
641
|
+
status: SaasAssetAttributionStatus;
|
|
642
|
+
updatedAt?: string | undefined;
|
|
643
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
644
|
+
} | undefined;
|
|
528
645
|
};
|
|
529
646
|
_raw?: unknown;
|
|
530
647
|
}, {
|
|
@@ -538,15 +655,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
538
655
|
}[];
|
|
539
656
|
sn?: string | undefined;
|
|
540
657
|
macs?: string[] | undefined;
|
|
541
|
-
make?: string | undefined;
|
|
542
|
-
model?: string | undefined;
|
|
543
|
-
lastActivityTime?: string | undefined;
|
|
544
|
-
active?: boolean | undefined;
|
|
545
658
|
deviceName?: string | undefined;
|
|
659
|
+
lastActivityTime?: string | undefined;
|
|
546
660
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
547
661
|
owner?: {
|
|
548
662
|
email?: string | undefined;
|
|
549
663
|
} | undefined;
|
|
664
|
+
make?: string | undefined;
|
|
665
|
+
model?: string | undefined;
|
|
666
|
+
active?: boolean | undefined;
|
|
667
|
+
attribution?: {
|
|
668
|
+
status: SaasAssetAttributionStatus;
|
|
669
|
+
updatedAt?: string | undefined;
|
|
670
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
671
|
+
} | undefined;
|
|
550
672
|
};
|
|
551
673
|
_raw?: unknown;
|
|
552
674
|
}>;
|
|
@@ -583,15 +705,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
583
705
|
}[];
|
|
584
706
|
sn?: string | undefined;
|
|
585
707
|
macs?: string[] | undefined;
|
|
586
|
-
make?: string | undefined;
|
|
587
|
-
model?: string | undefined;
|
|
588
|
-
lastActivityTime?: string | undefined;
|
|
589
|
-
active?: boolean | undefined;
|
|
590
708
|
deviceName?: string | undefined;
|
|
709
|
+
lastActivityTime?: string | undefined;
|
|
591
710
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
592
711
|
owner?: {
|
|
593
712
|
email?: string | undefined;
|
|
594
713
|
} | undefined;
|
|
714
|
+
make?: string | undefined;
|
|
715
|
+
model?: string | undefined;
|
|
716
|
+
active?: boolean | undefined;
|
|
717
|
+
attribution?: {
|
|
718
|
+
status: SaasAssetAttributionStatus;
|
|
719
|
+
updatedAt?: string | undefined;
|
|
720
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
721
|
+
} | undefined;
|
|
595
722
|
};
|
|
596
723
|
_raw?: unknown;
|
|
597
724
|
};
|
|
@@ -624,15 +751,20 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
624
751
|
}[];
|
|
625
752
|
sn?: string | undefined;
|
|
626
753
|
macs?: string[] | undefined;
|
|
627
|
-
make?: string | undefined;
|
|
628
|
-
model?: string | undefined;
|
|
629
|
-
lastActivityTime?: string | undefined;
|
|
630
|
-
active?: boolean | undefined;
|
|
631
754
|
deviceName?: string | undefined;
|
|
755
|
+
lastActivityTime?: string | undefined;
|
|
632
756
|
activeStatus?: SaasAssetActiveStatus | undefined;
|
|
633
757
|
owner?: {
|
|
634
758
|
email?: string | undefined;
|
|
635
759
|
} | undefined;
|
|
760
|
+
make?: string | undefined;
|
|
761
|
+
model?: string | undefined;
|
|
762
|
+
active?: boolean | undefined;
|
|
763
|
+
attribution?: {
|
|
764
|
+
status: SaasAssetAttributionStatus;
|
|
765
|
+
updatedAt?: string | undefined;
|
|
766
|
+
reason?: SaasAssetAttributionReason | undefined;
|
|
767
|
+
} | undefined;
|
|
636
768
|
};
|
|
637
769
|
_raw?: unknown;
|
|
638
770
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._SaasAssetDto = exports._SaasAssetUpsertDto = exports._SaasAssetMeta = exports.SaasAssetActiveStatus = void 0;
|
|
3
|
+
exports._SaasAssetDto = exports._SaasAssetUpsertDto = exports._SaasAssetMeta = exports.SaasAssetAttributionReason = exports.SaasAssetAttributionStatus = exports.SaasAssetActiveStatus = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assetKeys_1 = require("./assetKeys");
|
|
6
6
|
const base_dto_1 = require("./base.dto");
|
|
@@ -11,6 +11,18 @@ var SaasAssetActiveStatus;
|
|
|
11
11
|
SaasAssetActiveStatus["INACTIVE"] = "INACTIVE";
|
|
12
12
|
SaasAssetActiveStatus["ARCHIVED"] = "ARCHIVED";
|
|
13
13
|
})(SaasAssetActiveStatus || (exports.SaasAssetActiveStatus = SaasAssetActiveStatus = {}));
|
|
14
|
+
var SaasAssetAttributionStatus;
|
|
15
|
+
(function (SaasAssetAttributionStatus) {
|
|
16
|
+
SaasAssetAttributionStatus["POSITIVE"] = "POSITIVE";
|
|
17
|
+
SaasAssetAttributionStatus["NEGATIVE"] = "NEGATIVE";
|
|
18
|
+
})(SaasAssetAttributionStatus || (exports.SaasAssetAttributionStatus = SaasAssetAttributionStatus = {}));
|
|
19
|
+
var SaasAssetAttributionReason;
|
|
20
|
+
(function (SaasAssetAttributionReason) {
|
|
21
|
+
SaasAssetAttributionReason["CONFLICTING_EVIDENCE"] = "CONFLICTING_EVIDENCE";
|
|
22
|
+
SaasAssetAttributionReason["MISSING_EVIDENCE"] = "MISSING_EVIDENCE";
|
|
23
|
+
SaasAssetAttributionReason["NO_DEVICE"] = "NO_DEVICE";
|
|
24
|
+
SaasAssetAttributionReason["OTHER"] = "OTHER";
|
|
25
|
+
})(SaasAssetAttributionReason || (exports.SaasAssetAttributionReason = SaasAssetAttributionReason = {}));
|
|
14
26
|
exports._SaasAssetMeta = zod_1.z.object({
|
|
15
27
|
_asset: zod_1.z.object({
|
|
16
28
|
/** Asset ID from provider */
|
|
@@ -50,6 +62,14 @@ exports._SaasAssetMeta = zod_1.z.object({
|
|
|
50
62
|
model: zod_1.z.string().optional(),
|
|
51
63
|
/** Asset active status */
|
|
52
64
|
active: zod_1.z.boolean().optional(),
|
|
65
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
66
|
+
attribution: zod_1.z
|
|
67
|
+
.object({
|
|
68
|
+
status: zod_1.z.nativeEnum(SaasAssetAttributionStatus),
|
|
69
|
+
reason: zod_1.z.nativeEnum(SaasAssetAttributionReason).optional(),
|
|
70
|
+
updatedAt: zod_1.z.string().optional(),
|
|
71
|
+
})
|
|
72
|
+
.optional(),
|
|
53
73
|
}),
|
|
54
74
|
_raw: zod_1.z.unknown(),
|
|
55
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasAssets.dto.js","sourceRoot":"","sources":["../../../src/dto/saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,mCAAwC;AAExC,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAEY,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,6BAA6B;QAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,iBAAiB;QACjB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC;QACxC,iBAAiB;QACjB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,sBAAsB;QACtB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC9B,+CAA+C;QAC/C,mBAAmB;QACnB,kCAAkC;QAClC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACvC,4DAA4D;QAC5D,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE;QAC5D,gCAAgC;QAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CACvB,OAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,OAAC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+114,7 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
114
114
|
id?: string | undefined;
|
|
115
115
|
organization?: string | undefined;
|
|
116
116
|
department?: string | undefined;
|
|
117
|
-
score?: number | undefined;
|
|
118
|
-
firstName?: string | undefined;
|
|
119
|
-
lastName?: string | undefined;
|
|
120
|
-
title?: string | undefined;
|
|
121
117
|
active?: boolean | undefined;
|
|
122
|
-
lastActivity?: string | undefined;
|
|
123
118
|
meta?: {
|
|
124
119
|
_profile: {
|
|
125
120
|
timeZoneInfo?: {
|
|
@@ -129,17 +124,17 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
129
124
|
} | undefined;
|
|
130
125
|
};
|
|
131
126
|
} | undefined;
|
|
127
|
+
score?: number | undefined;
|
|
128
|
+
firstName?: string | undefined;
|
|
129
|
+
lastName?: string | undefined;
|
|
130
|
+
title?: string | undefined;
|
|
131
|
+
lastActivity?: string | undefined;
|
|
132
132
|
}, {
|
|
133
133
|
email?: string | undefined;
|
|
134
134
|
id?: string | undefined;
|
|
135
135
|
organization?: string | undefined;
|
|
136
136
|
department?: string | undefined;
|
|
137
|
-
score?: number | undefined;
|
|
138
|
-
firstName?: string | undefined;
|
|
139
|
-
lastName?: string | undefined;
|
|
140
|
-
title?: string | undefined;
|
|
141
137
|
active?: boolean | undefined;
|
|
142
|
-
lastActivity?: string | undefined;
|
|
143
138
|
meta?: {
|
|
144
139
|
_profile: {
|
|
145
140
|
timeZoneInfo?: {
|
|
@@ -149,6 +144,11 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
149
144
|
} | undefined;
|
|
150
145
|
};
|
|
151
146
|
} | undefined;
|
|
147
|
+
score?: number | undefined;
|
|
148
|
+
firstName?: string | undefined;
|
|
149
|
+
lastName?: string | undefined;
|
|
150
|
+
title?: string | undefined;
|
|
151
|
+
lastActivity?: string | undefined;
|
|
152
152
|
}>;
|
|
153
153
|
export type SimpleUserDto = z.infer<typeof _SimpleUserDto>;
|
|
154
154
|
export type UserUpsertDto = ChangeAwareUpsertDto & {
|
package/package.json
CHANGED
package/src/dto/assets.dto.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {z} from 'zod';
|
|
|
2
2
|
import {_AssetKeys} from './assetKeys';
|
|
3
3
|
import {_ChangeAwareDto, _ChangeAwareUpsertDto} from './base.dto';
|
|
4
4
|
import {GlobalAssetType} from './enums/globalAsset.type';
|
|
5
|
+
import {SaasAssetAttributionReason, SaasAssetAttributionStatus} from './saasAssets.dto';
|
|
5
6
|
|
|
6
7
|
export const _SimpleAssetDto = z.object({
|
|
7
8
|
/** Id of the asset */
|
|
@@ -25,6 +26,8 @@ export const _SummaryAssetDto = z.object({
|
|
|
25
26
|
os: z.string().optional(),
|
|
26
27
|
make: z.string().optional(),
|
|
27
28
|
model: z.string().optional(),
|
|
29
|
+
attributionStatus: z.nativeEnum(SaasAssetAttributionStatus).optional(),
|
|
30
|
+
attributionReason: z.nativeEnum(SaasAssetAttributionReason).optional(),
|
|
28
31
|
});
|
|
29
32
|
export type SummaryAssetDto = z.infer<typeof _SummaryAssetDto>;
|
|
30
33
|
|
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -17,6 +17,19 @@ export type UserAccountSummary = z.infer<typeof _UserAccountSummary>;
|
|
|
17
17
|
|
|
18
18
|
export const _AssetCoverageSummary = _SummaryAssetDto.merge(
|
|
19
19
|
z.object({
|
|
20
|
+
saasAssets: z
|
|
21
|
+
.array(
|
|
22
|
+
z.object({
|
|
23
|
+
id: z.string().optional(),
|
|
24
|
+
cid: z.string(),
|
|
25
|
+
displayValue: z.string().optional(),
|
|
26
|
+
uid: z.string().optional(),
|
|
27
|
+
ownerEmail: z.string().optional(),
|
|
28
|
+
attributionStatus: z.string().optional(),
|
|
29
|
+
attributionReason: z.string().optional(),
|
|
30
|
+
})
|
|
31
|
+
)
|
|
32
|
+
.optional(),
|
|
20
33
|
/** @deprecated */
|
|
21
34
|
assetAccounts: z.record(z.unknown()),
|
|
22
35
|
assetAccounts2: z.record(z.array(_AssetAccountSummary)),
|
|
@@ -9,6 +9,18 @@ export enum SaasAssetActiveStatus {
|
|
|
9
9
|
ARCHIVED = 'ARCHIVED',
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export enum SaasAssetAttributionStatus {
|
|
13
|
+
POSITIVE = 'POSITIVE',
|
|
14
|
+
NEGATIVE = 'NEGATIVE',
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum SaasAssetAttributionReason {
|
|
18
|
+
CONFLICTING_EVIDENCE = 'CONFLICTING_EVIDENCE',
|
|
19
|
+
MISSING_EVIDENCE = 'MISSING_EVIDENCE',
|
|
20
|
+
NO_DEVICE = 'NO_DEVICE',
|
|
21
|
+
OTHER = 'OTHER',
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
export const _SaasAssetMeta = z.object({
|
|
13
25
|
_asset: z.object({
|
|
14
26
|
/** Asset ID from provider */
|
|
@@ -50,6 +62,14 @@ export const _SaasAssetMeta = z.object({
|
|
|
50
62
|
model: z.string().optional(),
|
|
51
63
|
/** Asset active status */
|
|
52
64
|
active: z.boolean().optional(),
|
|
65
|
+
/** Normalized attribution status used by tooling compliance UI */
|
|
66
|
+
attribution: z
|
|
67
|
+
.object({
|
|
68
|
+
status: z.nativeEnum(SaasAssetAttributionStatus),
|
|
69
|
+
reason: z.nativeEnum(SaasAssetAttributionReason).optional(),
|
|
70
|
+
updatedAt: z.string().optional(),
|
|
71
|
+
})
|
|
72
|
+
.optional(),
|
|
53
73
|
}),
|
|
54
74
|
_raw: z.unknown(),
|
|
55
75
|
});
|