@ampsec/platform-client 70.2.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.
Files changed (35) hide show
  1. package/build/src/dto/coverage.dto.d.ts +12 -12
  2. package/build/src/dto/customActions.dto.d.ts +7 -7
  3. package/build/src/dto/enums/findingKind.d.ts +13 -13
  4. package/build/src/dto/enums/findingKind.js +25 -24
  5. package/build/src/dto/enums/findingKind.js.map +1 -1
  6. package/build/src/dto/findings.dto.d.ts +25 -7
  7. package/build/src/dto/findings.dto.js +4 -3
  8. package/build/src/dto/findings.dto.js.map +1 -1
  9. package/build/src/dto/flows.dto.d.ts +23 -23
  10. package/build/src/dto/platform/platform.customActions.dto.d.ts +5 -5
  11. package/build/src/dto/platform/platform.findings.dto.d.ts +14 -0
  12. package/build/src/dto/platform/platform.flows.dto.d.ts +14 -14
  13. package/build/src/dto/platform/platform.ops.dto.d.ts +95 -0
  14. package/build/src/dto/platform/platform.ops.dto.js +20 -0
  15. package/build/src/dto/platform/platform.ops.dto.js.map +1 -0
  16. package/build/src/dto/platform/platform.saasAssets.dto.d.ts +6 -6
  17. package/build/src/dto/platform/platform.tenants.dto.d.ts +1234 -0
  18. package/build/src/dto/platform/platform.tenants.dto.js +96 -0
  19. package/build/src/dto/platform/platform.tenants.dto.js.map +1 -1
  20. package/build/src/dto/saasAssets.dto.d.ts +16 -16
  21. package/build/src/dto/users.dto.d.ts +2 -2
  22. package/build/src/services/AmpSdk.d.ts +3 -2
  23. package/build/src/services/AmpSdk.js +2 -1
  24. package/build/src/services/AmpSdk.js.map +1 -1
  25. package/build/src/services/contentful.service.d.ts +6 -6
  26. package/build/src/services/rest/TenantsService.d.ts +27 -0
  27. package/build/src/services/rest/TenantsService.js +69 -0
  28. package/build/src/services/rest/TenantsService.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/dto/enums/findingKind.ts +28 -26
  31. package/src/dto/findings.dto.ts +4 -2
  32. package/src/dto/platform/platform.ops.dto.ts +22 -0
  33. package/src/dto/platform/platform.tenants.dto.ts +110 -0
  34. package/src/services/AmpSdk.ts +3 -4
  35. package/src/services/rest/TenantsService.ts +69 -0
@@ -1,3 +1,1237 @@
1
+ import { z } from 'zod';
1
2
  import { TenantDto, TenantUpsertDto } from '../tenants.dto';
3
+ import { FindingKind, FindingSeverity, FindingStatus, GlobalAssetType, GlobalUserType } from '../enums';
4
+ import { FlowSpecStatusKind } from '../flows.dto';
2
5
  export type PlatformTenantUpsertDto = TenantUpsertDto;
3
6
  export type PlatformTenantDto = TenantDto;
7
+ export declare const _AssetCountReport: z.ZodObject<{
8
+ byType: z.ZodArray<z.ZodObject<{
9
+ assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
10
+ total: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ assetType: GlobalAssetType;
13
+ total: number;
14
+ }, {
15
+ assetType: GlobalAssetType;
16
+ total: number;
17
+ }>, "many">;
18
+ byConnector: z.ZodArray<z.ZodObject<{
19
+ cid: z.ZodString;
20
+ assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
21
+ total: z.ZodNumber;
22
+ }, "strip", z.ZodTypeAny, {
23
+ cid: string;
24
+ assetType: GlobalAssetType;
25
+ total: number;
26
+ }, {
27
+ cid: string;
28
+ assetType: GlobalAssetType;
29
+ total: number;
30
+ }>, "many">;
31
+ totalAssets: z.ZodNumber;
32
+ totalSaasAssets: z.ZodNumber;
33
+ totalStagedAssets: z.ZodNumber;
34
+ links: z.ZodObject<{
35
+ withUsers: z.ZodNumber;
36
+ withoutUsers: z.ZodNumber;
37
+ withVulns: z.ZodNumber;
38
+ withoutVulns: z.ZodNumber;
39
+ withUserAssignedVulns: z.ZodNumber;
40
+ withOrphanedVulns: z.ZodNumber;
41
+ }, "strip", z.ZodTypeAny, {
42
+ withUsers: number;
43
+ withoutUsers: number;
44
+ withVulns: number;
45
+ withoutVulns: number;
46
+ withUserAssignedVulns: number;
47
+ withOrphanedVulns: number;
48
+ }, {
49
+ withUsers: number;
50
+ withoutUsers: number;
51
+ withVulns: number;
52
+ withoutVulns: number;
53
+ withUserAssignedVulns: number;
54
+ withOrphanedVulns: number;
55
+ }>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ links: {
58
+ withUsers: number;
59
+ withoutUsers: number;
60
+ withVulns: number;
61
+ withoutVulns: number;
62
+ withUserAssignedVulns: number;
63
+ withOrphanedVulns: number;
64
+ };
65
+ byType: {
66
+ assetType: GlobalAssetType;
67
+ total: number;
68
+ }[];
69
+ byConnector: {
70
+ cid: string;
71
+ assetType: GlobalAssetType;
72
+ total: number;
73
+ }[];
74
+ totalAssets: number;
75
+ totalSaasAssets: number;
76
+ totalStagedAssets: number;
77
+ }, {
78
+ links: {
79
+ withUsers: number;
80
+ withoutUsers: number;
81
+ withVulns: number;
82
+ withoutVulns: number;
83
+ withUserAssignedVulns: number;
84
+ withOrphanedVulns: number;
85
+ };
86
+ byType: {
87
+ assetType: GlobalAssetType;
88
+ total: number;
89
+ }[];
90
+ byConnector: {
91
+ cid: string;
92
+ assetType: GlobalAssetType;
93
+ total: number;
94
+ }[];
95
+ totalAssets: number;
96
+ totalSaasAssets: number;
97
+ totalStagedAssets: number;
98
+ }>;
99
+ export type AssetCountReport = z.infer<typeof _AssetCountReport>;
100
+ export declare const _UserCountReport: z.ZodObject<{
101
+ byConnectorStatus: z.ZodArray<z.ZodObject<{
102
+ cid: z.ZodString;
103
+ userType: z.ZodNativeEnum<typeof GlobalUserType>;
104
+ total: z.ZodNumber;
105
+ }, "strip", z.ZodTypeAny, {
106
+ cid: string;
107
+ userType: GlobalUserType;
108
+ total: number;
109
+ }, {
110
+ cid: string;
111
+ userType: GlobalUserType;
112
+ total: number;
113
+ }>, "many">;
114
+ byType: z.ZodArray<z.ZodObject<{
115
+ userType: z.ZodNativeEnum<typeof GlobalUserType>;
116
+ total: z.ZodNumber;
117
+ }, "strip", z.ZodTypeAny, {
118
+ userType: GlobalUserType;
119
+ total: number;
120
+ }, {
121
+ userType: GlobalUserType;
122
+ total: number;
123
+ }>, "many">;
124
+ totalUsers: z.ZodNumber;
125
+ totalSaasUsers: z.ZodNumber;
126
+ totalStagedUsers: z.ZodNumber;
127
+ links: z.ZodObject<{
128
+ withDevices: z.ZodNumber;
129
+ withoutDevices: z.ZodNumber;
130
+ }, "strip", z.ZodTypeAny, {
131
+ withDevices: number;
132
+ withoutDevices: number;
133
+ }, {
134
+ withDevices: number;
135
+ withoutDevices: number;
136
+ }>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ links: {
139
+ withDevices: number;
140
+ withoutDevices: number;
141
+ };
142
+ byType: {
143
+ userType: GlobalUserType;
144
+ total: number;
145
+ }[];
146
+ byConnectorStatus: {
147
+ cid: string;
148
+ userType: GlobalUserType;
149
+ total: number;
150
+ }[];
151
+ totalUsers: number;
152
+ totalSaasUsers: number;
153
+ totalStagedUsers: number;
154
+ }, {
155
+ links: {
156
+ withDevices: number;
157
+ withoutDevices: number;
158
+ };
159
+ byType: {
160
+ userType: GlobalUserType;
161
+ total: number;
162
+ }[];
163
+ byConnectorStatus: {
164
+ cid: string;
165
+ userType: GlobalUserType;
166
+ total: number;
167
+ }[];
168
+ totalUsers: number;
169
+ totalSaasUsers: number;
170
+ totalStagedUsers: number;
171
+ }>;
172
+ export type UserCountReport = z.infer<typeof _UserCountReport>;
173
+ export declare const _SaasCompCountReport: z.ZodObject<{
174
+ byConnectorKind: z.ZodArray<z.ZodObject<{
175
+ cid: z.ZodString;
176
+ kind: z.ZodString;
177
+ total: z.ZodNumber;
178
+ }, "strip", z.ZodTypeAny, {
179
+ cid: string;
180
+ kind: string;
181
+ total: number;
182
+ }, {
183
+ cid: string;
184
+ kind: string;
185
+ total: number;
186
+ }>, "many">;
187
+ totalSaasComps: z.ZodNumber;
188
+ totalStagedSaasComps: z.ZodNumber;
189
+ links: z.ZodObject<{
190
+ withUsers: z.ZodNumber;
191
+ withoutUsers: z.ZodNumber;
192
+ withDevices: z.ZodNumber;
193
+ withoutDevices: z.ZodNumber;
194
+ orphaned: z.ZodNumber;
195
+ }, "strip", z.ZodTypeAny, {
196
+ withUsers: number;
197
+ withoutUsers: number;
198
+ withDevices: number;
199
+ withoutDevices: number;
200
+ orphaned: number;
201
+ }, {
202
+ withUsers: number;
203
+ withoutUsers: number;
204
+ withDevices: number;
205
+ withoutDevices: number;
206
+ orphaned: number;
207
+ }>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ links: {
210
+ withUsers: number;
211
+ withoutUsers: number;
212
+ withDevices: number;
213
+ withoutDevices: number;
214
+ orphaned: number;
215
+ };
216
+ byConnectorKind: {
217
+ cid: string;
218
+ kind: string;
219
+ total: number;
220
+ }[];
221
+ totalSaasComps: number;
222
+ totalStagedSaasComps: number;
223
+ }, {
224
+ links: {
225
+ withUsers: number;
226
+ withoutUsers: number;
227
+ withDevices: number;
228
+ withoutDevices: number;
229
+ orphaned: number;
230
+ };
231
+ byConnectorKind: {
232
+ cid: string;
233
+ kind: string;
234
+ total: number;
235
+ }[];
236
+ totalSaasComps: number;
237
+ totalStagedSaasComps: number;
238
+ }>;
239
+ export type SaasCompCountReport = z.infer<typeof _SaasCompCountReport>;
240
+ export declare const _FindingsCountReport: z.ZodObject<{
241
+ connectorKindSeverityStatus: z.ZodArray<z.ZodObject<{
242
+ cid: z.ZodNullable<z.ZodString>;
243
+ kind: z.ZodUnion<[z.ZodNativeEnum<typeof FindingKind>, z.ZodString]>;
244
+ severity: z.ZodNativeEnum<typeof FindingSeverity>;
245
+ status: z.ZodNativeEnum<typeof FindingStatus>;
246
+ total: z.ZodNumber;
247
+ }, "strip", z.ZodTypeAny, {
248
+ status: FindingStatus;
249
+ cid: string | null;
250
+ kind: string;
251
+ severity: FindingSeverity;
252
+ total: number;
253
+ }, {
254
+ status: FindingStatus;
255
+ cid: string | null;
256
+ kind: string;
257
+ severity: FindingSeverity;
258
+ total: number;
259
+ }>, "many">;
260
+ total: z.ZodObject<{
261
+ openWithUser: z.ZodNumber;
262
+ openWithoutUser: z.ZodNumber;
263
+ closedWithUser: z.ZodNumber;
264
+ closedWithoutUser: z.ZodNumber;
265
+ }, "strip", z.ZodTypeAny, {
266
+ openWithUser: number;
267
+ openWithoutUser: number;
268
+ closedWithUser: number;
269
+ closedWithoutUser: number;
270
+ }, {
271
+ openWithUser: number;
272
+ openWithoutUser: number;
273
+ closedWithUser: number;
274
+ closedWithoutUser: number;
275
+ }>;
276
+ total90d: z.ZodObject<{
277
+ openWithUser: z.ZodNumber;
278
+ openWithoutUser: z.ZodNumber;
279
+ closedWithUser: z.ZodNumber;
280
+ closedWithoutUser: z.ZodNumber;
281
+ }, "strip", z.ZodTypeAny, {
282
+ openWithUser: number;
283
+ openWithoutUser: number;
284
+ closedWithUser: number;
285
+ closedWithoutUser: number;
286
+ }, {
287
+ openWithUser: number;
288
+ openWithoutUser: number;
289
+ closedWithUser: number;
290
+ closedWithoutUser: number;
291
+ }>;
292
+ pending: z.ZodNumber;
293
+ links: z.ZodObject<{
294
+ withUsers: z.ZodNumber;
295
+ withoutUsers: z.ZodNumber;
296
+ withDevices: z.ZodNumber;
297
+ withoutDevices: z.ZodNumber;
298
+ }, "strip", z.ZodTypeAny, {
299
+ withUsers: number;
300
+ withoutUsers: number;
301
+ withDevices: number;
302
+ withoutDevices: number;
303
+ }, {
304
+ withUsers: number;
305
+ withoutUsers: number;
306
+ withDevices: number;
307
+ withoutDevices: number;
308
+ }>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ links: {
311
+ withUsers: number;
312
+ withoutUsers: number;
313
+ withDevices: number;
314
+ withoutDevices: number;
315
+ };
316
+ total: {
317
+ openWithUser: number;
318
+ openWithoutUser: number;
319
+ closedWithUser: number;
320
+ closedWithoutUser: number;
321
+ };
322
+ connectorKindSeverityStatus: {
323
+ status: FindingStatus;
324
+ cid: string | null;
325
+ kind: string;
326
+ severity: FindingSeverity;
327
+ total: number;
328
+ }[];
329
+ total90d: {
330
+ openWithUser: number;
331
+ openWithoutUser: number;
332
+ closedWithUser: number;
333
+ closedWithoutUser: number;
334
+ };
335
+ pending: number;
336
+ }, {
337
+ links: {
338
+ withUsers: number;
339
+ withoutUsers: number;
340
+ withDevices: number;
341
+ withoutDevices: number;
342
+ };
343
+ total: {
344
+ openWithUser: number;
345
+ openWithoutUser: number;
346
+ closedWithUser: number;
347
+ closedWithoutUser: number;
348
+ };
349
+ connectorKindSeverityStatus: {
350
+ status: FindingStatus;
351
+ cid: string | null;
352
+ kind: string;
353
+ severity: FindingSeverity;
354
+ total: number;
355
+ }[];
356
+ total90d: {
357
+ openWithUser: number;
358
+ openWithoutUser: number;
359
+ closedWithUser: number;
360
+ closedWithoutUser: number;
361
+ };
362
+ pending: number;
363
+ }>;
364
+ export type FindingsCountReport = z.infer<typeof _FindingsCountReport>;
365
+ export declare const _NotificationsCountReport: z.ZodObject<{
366
+ total: z.ZodNumber;
367
+ total7d: z.ZodNumber;
368
+ total30d: z.ZodNumber;
369
+ total90d: z.ZodNumber;
370
+ }, "strip", z.ZodTypeAny, {
371
+ total: number;
372
+ total90d: number;
373
+ total7d: number;
374
+ total30d: number;
375
+ }, {
376
+ total: number;
377
+ total90d: number;
378
+ total7d: number;
379
+ total30d: number;
380
+ }>;
381
+ export type NotificationsCountReport = z.infer<typeof _NotificationsCountReport>;
382
+ export declare const _FlowsCountReport: z.ZodObject<{
383
+ specsByStatusTrigger: z.ZodArray<z.ZodObject<{
384
+ status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
385
+ trigger: z.ZodString;
386
+ total: z.ZodNumber;
387
+ }, "strip", z.ZodTypeAny, {
388
+ status: FlowSpecStatusKind;
389
+ trigger: string;
390
+ total: number;
391
+ }, {
392
+ status: FlowSpecStatusKind;
393
+ trigger: string;
394
+ total: number;
395
+ }>, "many">;
396
+ statesByBucketStatus: z.ZodArray<z.ZodObject<{
397
+ status: z.ZodString;
398
+ bucket: z.ZodUnion<[z.ZodNativeEnum<typeof FindingKind>, z.ZodString]>;
399
+ total: z.ZodNumber;
400
+ }, "strip", z.ZodTypeAny, {
401
+ status: string;
402
+ total: number;
403
+ bucket: string;
404
+ }, {
405
+ status: string;
406
+ total: number;
407
+ bucket: string;
408
+ }>, "many">;
409
+ total: z.ZodObject<{
410
+ active: z.ZodNumber;
411
+ closed: z.ZodNumber;
412
+ }, "strip", z.ZodTypeAny, {
413
+ active: number;
414
+ closed: number;
415
+ }, {
416
+ active: number;
417
+ closed: number;
418
+ }>;
419
+ total7d: z.ZodObject<{
420
+ active: z.ZodNumber;
421
+ closed: z.ZodNumber;
422
+ }, "strip", z.ZodTypeAny, {
423
+ active: number;
424
+ closed: number;
425
+ }, {
426
+ active: number;
427
+ closed: number;
428
+ }>;
429
+ total30d: z.ZodObject<{
430
+ active: z.ZodNumber;
431
+ closed: z.ZodNumber;
432
+ }, "strip", z.ZodTypeAny, {
433
+ active: number;
434
+ closed: number;
435
+ }, {
436
+ active: number;
437
+ closed: number;
438
+ }>;
439
+ total90d: z.ZodObject<{
440
+ active: z.ZodNumber;
441
+ closed: z.ZodNumber;
442
+ }, "strip", z.ZodTypeAny, {
443
+ active: number;
444
+ closed: number;
445
+ }, {
446
+ active: number;
447
+ closed: number;
448
+ }>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ total: {
451
+ active: number;
452
+ closed: number;
453
+ };
454
+ total90d: {
455
+ active: number;
456
+ closed: number;
457
+ };
458
+ total7d: {
459
+ active: number;
460
+ closed: number;
461
+ };
462
+ total30d: {
463
+ active: number;
464
+ closed: number;
465
+ };
466
+ specsByStatusTrigger: {
467
+ status: FlowSpecStatusKind;
468
+ trigger: string;
469
+ total: number;
470
+ }[];
471
+ statesByBucketStatus: {
472
+ status: string;
473
+ total: number;
474
+ bucket: string;
475
+ }[];
476
+ }, {
477
+ total: {
478
+ active: number;
479
+ closed: number;
480
+ };
481
+ total90d: {
482
+ active: number;
483
+ closed: number;
484
+ };
485
+ total7d: {
486
+ active: number;
487
+ closed: number;
488
+ };
489
+ total30d: {
490
+ active: number;
491
+ closed: number;
492
+ };
493
+ specsByStatusTrigger: {
494
+ status: FlowSpecStatusKind;
495
+ trigger: string;
496
+ total: number;
497
+ }[];
498
+ statesByBucketStatus: {
499
+ status: string;
500
+ total: number;
501
+ bucket: string;
502
+ }[];
503
+ }>;
504
+ export type FlowsCountReport = z.infer<typeof _FlowsCountReport>;
505
+ export declare const _TenantCountReportDto: z.ZodObject<{
506
+ users: z.ZodObject<{
507
+ byConnectorStatus: z.ZodArray<z.ZodObject<{
508
+ cid: z.ZodString;
509
+ userType: z.ZodNativeEnum<typeof GlobalUserType>;
510
+ total: z.ZodNumber;
511
+ }, "strip", z.ZodTypeAny, {
512
+ cid: string;
513
+ userType: GlobalUserType;
514
+ total: number;
515
+ }, {
516
+ cid: string;
517
+ userType: GlobalUserType;
518
+ total: number;
519
+ }>, "many">;
520
+ byType: z.ZodArray<z.ZodObject<{
521
+ userType: z.ZodNativeEnum<typeof GlobalUserType>;
522
+ total: z.ZodNumber;
523
+ }, "strip", z.ZodTypeAny, {
524
+ userType: GlobalUserType;
525
+ total: number;
526
+ }, {
527
+ userType: GlobalUserType;
528
+ total: number;
529
+ }>, "many">;
530
+ totalUsers: z.ZodNumber;
531
+ totalSaasUsers: z.ZodNumber;
532
+ totalStagedUsers: z.ZodNumber;
533
+ links: z.ZodObject<{
534
+ withDevices: z.ZodNumber;
535
+ withoutDevices: z.ZodNumber;
536
+ }, "strip", z.ZodTypeAny, {
537
+ withDevices: number;
538
+ withoutDevices: number;
539
+ }, {
540
+ withDevices: number;
541
+ withoutDevices: number;
542
+ }>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ links: {
545
+ withDevices: number;
546
+ withoutDevices: number;
547
+ };
548
+ byType: {
549
+ userType: GlobalUserType;
550
+ total: number;
551
+ }[];
552
+ byConnectorStatus: {
553
+ cid: string;
554
+ userType: GlobalUserType;
555
+ total: number;
556
+ }[];
557
+ totalUsers: number;
558
+ totalSaasUsers: number;
559
+ totalStagedUsers: number;
560
+ }, {
561
+ links: {
562
+ withDevices: number;
563
+ withoutDevices: number;
564
+ };
565
+ byType: {
566
+ userType: GlobalUserType;
567
+ total: number;
568
+ }[];
569
+ byConnectorStatus: {
570
+ cid: string;
571
+ userType: GlobalUserType;
572
+ total: number;
573
+ }[];
574
+ totalUsers: number;
575
+ totalSaasUsers: number;
576
+ totalStagedUsers: number;
577
+ }>;
578
+ assets: z.ZodObject<{
579
+ byType: z.ZodArray<z.ZodObject<{
580
+ assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
581
+ total: z.ZodNumber;
582
+ }, "strip", z.ZodTypeAny, {
583
+ assetType: GlobalAssetType;
584
+ total: number;
585
+ }, {
586
+ assetType: GlobalAssetType;
587
+ total: number;
588
+ }>, "many">;
589
+ byConnector: z.ZodArray<z.ZodObject<{
590
+ cid: z.ZodString;
591
+ assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
592
+ total: z.ZodNumber;
593
+ }, "strip", z.ZodTypeAny, {
594
+ cid: string;
595
+ assetType: GlobalAssetType;
596
+ total: number;
597
+ }, {
598
+ cid: string;
599
+ assetType: GlobalAssetType;
600
+ total: number;
601
+ }>, "many">;
602
+ totalAssets: z.ZodNumber;
603
+ totalSaasAssets: z.ZodNumber;
604
+ totalStagedAssets: z.ZodNumber;
605
+ links: z.ZodObject<{
606
+ withUsers: z.ZodNumber;
607
+ withoutUsers: z.ZodNumber;
608
+ withVulns: z.ZodNumber;
609
+ withoutVulns: z.ZodNumber;
610
+ withUserAssignedVulns: z.ZodNumber;
611
+ withOrphanedVulns: z.ZodNumber;
612
+ }, "strip", z.ZodTypeAny, {
613
+ withUsers: number;
614
+ withoutUsers: number;
615
+ withVulns: number;
616
+ withoutVulns: number;
617
+ withUserAssignedVulns: number;
618
+ withOrphanedVulns: number;
619
+ }, {
620
+ withUsers: number;
621
+ withoutUsers: number;
622
+ withVulns: number;
623
+ withoutVulns: number;
624
+ withUserAssignedVulns: number;
625
+ withOrphanedVulns: number;
626
+ }>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ links: {
629
+ withUsers: number;
630
+ withoutUsers: number;
631
+ withVulns: number;
632
+ withoutVulns: number;
633
+ withUserAssignedVulns: number;
634
+ withOrphanedVulns: number;
635
+ };
636
+ byType: {
637
+ assetType: GlobalAssetType;
638
+ total: number;
639
+ }[];
640
+ byConnector: {
641
+ cid: string;
642
+ assetType: GlobalAssetType;
643
+ total: number;
644
+ }[];
645
+ totalAssets: number;
646
+ totalSaasAssets: number;
647
+ totalStagedAssets: number;
648
+ }, {
649
+ links: {
650
+ withUsers: number;
651
+ withoutUsers: number;
652
+ withVulns: number;
653
+ withoutVulns: number;
654
+ withUserAssignedVulns: number;
655
+ withOrphanedVulns: number;
656
+ };
657
+ byType: {
658
+ assetType: GlobalAssetType;
659
+ total: number;
660
+ }[];
661
+ byConnector: {
662
+ cid: string;
663
+ assetType: GlobalAssetType;
664
+ total: number;
665
+ }[];
666
+ totalAssets: number;
667
+ totalSaasAssets: number;
668
+ totalStagedAssets: number;
669
+ }>;
670
+ saasComp: z.ZodObject<{
671
+ byConnectorKind: z.ZodArray<z.ZodObject<{
672
+ cid: z.ZodString;
673
+ kind: z.ZodString;
674
+ total: z.ZodNumber;
675
+ }, "strip", z.ZodTypeAny, {
676
+ cid: string;
677
+ kind: string;
678
+ total: number;
679
+ }, {
680
+ cid: string;
681
+ kind: string;
682
+ total: number;
683
+ }>, "many">;
684
+ totalSaasComps: z.ZodNumber;
685
+ totalStagedSaasComps: z.ZodNumber;
686
+ links: z.ZodObject<{
687
+ withUsers: z.ZodNumber;
688
+ withoutUsers: z.ZodNumber;
689
+ withDevices: z.ZodNumber;
690
+ withoutDevices: z.ZodNumber;
691
+ orphaned: z.ZodNumber;
692
+ }, "strip", z.ZodTypeAny, {
693
+ withUsers: number;
694
+ withoutUsers: number;
695
+ withDevices: number;
696
+ withoutDevices: number;
697
+ orphaned: number;
698
+ }, {
699
+ withUsers: number;
700
+ withoutUsers: number;
701
+ withDevices: number;
702
+ withoutDevices: number;
703
+ orphaned: number;
704
+ }>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ links: {
707
+ withUsers: number;
708
+ withoutUsers: number;
709
+ withDevices: number;
710
+ withoutDevices: number;
711
+ orphaned: number;
712
+ };
713
+ byConnectorKind: {
714
+ cid: string;
715
+ kind: string;
716
+ total: number;
717
+ }[];
718
+ totalSaasComps: number;
719
+ totalStagedSaasComps: number;
720
+ }, {
721
+ links: {
722
+ withUsers: number;
723
+ withoutUsers: number;
724
+ withDevices: number;
725
+ withoutDevices: number;
726
+ orphaned: number;
727
+ };
728
+ byConnectorKind: {
729
+ cid: string;
730
+ kind: string;
731
+ total: number;
732
+ }[];
733
+ totalSaasComps: number;
734
+ totalStagedSaasComps: number;
735
+ }>;
736
+ findings: z.ZodObject<{
737
+ connectorKindSeverityStatus: z.ZodArray<z.ZodObject<{
738
+ cid: z.ZodNullable<z.ZodString>;
739
+ kind: z.ZodUnion<[z.ZodNativeEnum<typeof FindingKind>, z.ZodString]>;
740
+ severity: z.ZodNativeEnum<typeof FindingSeverity>;
741
+ status: z.ZodNativeEnum<typeof FindingStatus>;
742
+ total: z.ZodNumber;
743
+ }, "strip", z.ZodTypeAny, {
744
+ status: FindingStatus;
745
+ cid: string | null;
746
+ kind: string;
747
+ severity: FindingSeverity;
748
+ total: number;
749
+ }, {
750
+ status: FindingStatus;
751
+ cid: string | null;
752
+ kind: string;
753
+ severity: FindingSeverity;
754
+ total: number;
755
+ }>, "many">;
756
+ total: z.ZodObject<{
757
+ openWithUser: z.ZodNumber;
758
+ openWithoutUser: z.ZodNumber;
759
+ closedWithUser: z.ZodNumber;
760
+ closedWithoutUser: z.ZodNumber;
761
+ }, "strip", z.ZodTypeAny, {
762
+ openWithUser: number;
763
+ openWithoutUser: number;
764
+ closedWithUser: number;
765
+ closedWithoutUser: number;
766
+ }, {
767
+ openWithUser: number;
768
+ openWithoutUser: number;
769
+ closedWithUser: number;
770
+ closedWithoutUser: number;
771
+ }>;
772
+ total90d: z.ZodObject<{
773
+ openWithUser: z.ZodNumber;
774
+ openWithoutUser: z.ZodNumber;
775
+ closedWithUser: z.ZodNumber;
776
+ closedWithoutUser: z.ZodNumber;
777
+ }, "strip", z.ZodTypeAny, {
778
+ openWithUser: number;
779
+ openWithoutUser: number;
780
+ closedWithUser: number;
781
+ closedWithoutUser: number;
782
+ }, {
783
+ openWithUser: number;
784
+ openWithoutUser: number;
785
+ closedWithUser: number;
786
+ closedWithoutUser: number;
787
+ }>;
788
+ pending: z.ZodNumber;
789
+ links: z.ZodObject<{
790
+ withUsers: z.ZodNumber;
791
+ withoutUsers: z.ZodNumber;
792
+ withDevices: z.ZodNumber;
793
+ withoutDevices: z.ZodNumber;
794
+ }, "strip", z.ZodTypeAny, {
795
+ withUsers: number;
796
+ withoutUsers: number;
797
+ withDevices: number;
798
+ withoutDevices: number;
799
+ }, {
800
+ withUsers: number;
801
+ withoutUsers: number;
802
+ withDevices: number;
803
+ withoutDevices: number;
804
+ }>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ links: {
807
+ withUsers: number;
808
+ withoutUsers: number;
809
+ withDevices: number;
810
+ withoutDevices: number;
811
+ };
812
+ total: {
813
+ openWithUser: number;
814
+ openWithoutUser: number;
815
+ closedWithUser: number;
816
+ closedWithoutUser: number;
817
+ };
818
+ connectorKindSeverityStatus: {
819
+ status: FindingStatus;
820
+ cid: string | null;
821
+ kind: string;
822
+ severity: FindingSeverity;
823
+ total: number;
824
+ }[];
825
+ total90d: {
826
+ openWithUser: number;
827
+ openWithoutUser: number;
828
+ closedWithUser: number;
829
+ closedWithoutUser: number;
830
+ };
831
+ pending: number;
832
+ }, {
833
+ links: {
834
+ withUsers: number;
835
+ withoutUsers: number;
836
+ withDevices: number;
837
+ withoutDevices: number;
838
+ };
839
+ total: {
840
+ openWithUser: number;
841
+ openWithoutUser: number;
842
+ closedWithUser: number;
843
+ closedWithoutUser: number;
844
+ };
845
+ connectorKindSeverityStatus: {
846
+ status: FindingStatus;
847
+ cid: string | null;
848
+ kind: string;
849
+ severity: FindingSeverity;
850
+ total: number;
851
+ }[];
852
+ total90d: {
853
+ openWithUser: number;
854
+ openWithoutUser: number;
855
+ closedWithUser: number;
856
+ closedWithoutUser: number;
857
+ };
858
+ pending: number;
859
+ }>;
860
+ notifications: z.ZodObject<{
861
+ total: z.ZodNumber;
862
+ total7d: z.ZodNumber;
863
+ total30d: z.ZodNumber;
864
+ total90d: z.ZodNumber;
865
+ }, "strip", z.ZodTypeAny, {
866
+ total: number;
867
+ total90d: number;
868
+ total7d: number;
869
+ total30d: number;
870
+ }, {
871
+ total: number;
872
+ total90d: number;
873
+ total7d: number;
874
+ total30d: number;
875
+ }>;
876
+ flows: z.ZodObject<{
877
+ specsByStatusTrigger: z.ZodArray<z.ZodObject<{
878
+ status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
879
+ trigger: z.ZodString;
880
+ total: z.ZodNumber;
881
+ }, "strip", z.ZodTypeAny, {
882
+ status: FlowSpecStatusKind;
883
+ trigger: string;
884
+ total: number;
885
+ }, {
886
+ status: FlowSpecStatusKind;
887
+ trigger: string;
888
+ total: number;
889
+ }>, "many">;
890
+ statesByBucketStatus: z.ZodArray<z.ZodObject<{
891
+ status: z.ZodString;
892
+ bucket: z.ZodUnion<[z.ZodNativeEnum<typeof FindingKind>, z.ZodString]>;
893
+ total: z.ZodNumber;
894
+ }, "strip", z.ZodTypeAny, {
895
+ status: string;
896
+ total: number;
897
+ bucket: string;
898
+ }, {
899
+ status: string;
900
+ total: number;
901
+ bucket: string;
902
+ }>, "many">;
903
+ total: z.ZodObject<{
904
+ active: z.ZodNumber;
905
+ closed: z.ZodNumber;
906
+ }, "strip", z.ZodTypeAny, {
907
+ active: number;
908
+ closed: number;
909
+ }, {
910
+ active: number;
911
+ closed: number;
912
+ }>;
913
+ total7d: z.ZodObject<{
914
+ active: z.ZodNumber;
915
+ closed: z.ZodNumber;
916
+ }, "strip", z.ZodTypeAny, {
917
+ active: number;
918
+ closed: number;
919
+ }, {
920
+ active: number;
921
+ closed: number;
922
+ }>;
923
+ total30d: z.ZodObject<{
924
+ active: z.ZodNumber;
925
+ closed: z.ZodNumber;
926
+ }, "strip", z.ZodTypeAny, {
927
+ active: number;
928
+ closed: number;
929
+ }, {
930
+ active: number;
931
+ closed: number;
932
+ }>;
933
+ total90d: z.ZodObject<{
934
+ active: z.ZodNumber;
935
+ closed: z.ZodNumber;
936
+ }, "strip", z.ZodTypeAny, {
937
+ active: number;
938
+ closed: number;
939
+ }, {
940
+ active: number;
941
+ closed: number;
942
+ }>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ total: {
945
+ active: number;
946
+ closed: number;
947
+ };
948
+ total90d: {
949
+ active: number;
950
+ closed: number;
951
+ };
952
+ total7d: {
953
+ active: number;
954
+ closed: number;
955
+ };
956
+ total30d: {
957
+ active: number;
958
+ closed: number;
959
+ };
960
+ specsByStatusTrigger: {
961
+ status: FlowSpecStatusKind;
962
+ trigger: string;
963
+ total: number;
964
+ }[];
965
+ statesByBucketStatus: {
966
+ status: string;
967
+ total: number;
968
+ bucket: string;
969
+ }[];
970
+ }, {
971
+ total: {
972
+ active: number;
973
+ closed: number;
974
+ };
975
+ total90d: {
976
+ active: number;
977
+ closed: number;
978
+ };
979
+ total7d: {
980
+ active: number;
981
+ closed: number;
982
+ };
983
+ total30d: {
984
+ active: number;
985
+ closed: number;
986
+ };
987
+ specsByStatusTrigger: {
988
+ status: FlowSpecStatusKind;
989
+ trigger: string;
990
+ total: number;
991
+ }[];
992
+ statesByBucketStatus: {
993
+ status: string;
994
+ total: number;
995
+ bucket: string;
996
+ }[];
997
+ }>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ notifications: {
1000
+ total: number;
1001
+ total90d: number;
1002
+ total7d: number;
1003
+ total30d: number;
1004
+ };
1005
+ assets: {
1006
+ links: {
1007
+ withUsers: number;
1008
+ withoutUsers: number;
1009
+ withVulns: number;
1010
+ withoutVulns: number;
1011
+ withUserAssignedVulns: number;
1012
+ withOrphanedVulns: number;
1013
+ };
1014
+ byType: {
1015
+ assetType: GlobalAssetType;
1016
+ total: number;
1017
+ }[];
1018
+ byConnector: {
1019
+ cid: string;
1020
+ assetType: GlobalAssetType;
1021
+ total: number;
1022
+ }[];
1023
+ totalAssets: number;
1024
+ totalSaasAssets: number;
1025
+ totalStagedAssets: number;
1026
+ };
1027
+ users: {
1028
+ links: {
1029
+ withDevices: number;
1030
+ withoutDevices: number;
1031
+ };
1032
+ byType: {
1033
+ userType: GlobalUserType;
1034
+ total: number;
1035
+ }[];
1036
+ byConnectorStatus: {
1037
+ cid: string;
1038
+ userType: GlobalUserType;
1039
+ total: number;
1040
+ }[];
1041
+ totalUsers: number;
1042
+ totalSaasUsers: number;
1043
+ totalStagedUsers: number;
1044
+ };
1045
+ saasComp: {
1046
+ links: {
1047
+ withUsers: number;
1048
+ withoutUsers: number;
1049
+ withDevices: number;
1050
+ withoutDevices: number;
1051
+ orphaned: number;
1052
+ };
1053
+ byConnectorKind: {
1054
+ cid: string;
1055
+ kind: string;
1056
+ total: number;
1057
+ }[];
1058
+ totalSaasComps: number;
1059
+ totalStagedSaasComps: number;
1060
+ };
1061
+ findings: {
1062
+ links: {
1063
+ withUsers: number;
1064
+ withoutUsers: number;
1065
+ withDevices: number;
1066
+ withoutDevices: number;
1067
+ };
1068
+ total: {
1069
+ openWithUser: number;
1070
+ openWithoutUser: number;
1071
+ closedWithUser: number;
1072
+ closedWithoutUser: number;
1073
+ };
1074
+ connectorKindSeverityStatus: {
1075
+ status: FindingStatus;
1076
+ cid: string | null;
1077
+ kind: string;
1078
+ severity: FindingSeverity;
1079
+ total: number;
1080
+ }[];
1081
+ total90d: {
1082
+ openWithUser: number;
1083
+ openWithoutUser: number;
1084
+ closedWithUser: number;
1085
+ closedWithoutUser: number;
1086
+ };
1087
+ pending: number;
1088
+ };
1089
+ flows: {
1090
+ total: {
1091
+ active: number;
1092
+ closed: number;
1093
+ };
1094
+ total90d: {
1095
+ active: number;
1096
+ closed: number;
1097
+ };
1098
+ total7d: {
1099
+ active: number;
1100
+ closed: number;
1101
+ };
1102
+ total30d: {
1103
+ active: number;
1104
+ closed: number;
1105
+ };
1106
+ specsByStatusTrigger: {
1107
+ status: FlowSpecStatusKind;
1108
+ trigger: string;
1109
+ total: number;
1110
+ }[];
1111
+ statesByBucketStatus: {
1112
+ status: string;
1113
+ total: number;
1114
+ bucket: string;
1115
+ }[];
1116
+ };
1117
+ }, {
1118
+ notifications: {
1119
+ total: number;
1120
+ total90d: number;
1121
+ total7d: number;
1122
+ total30d: number;
1123
+ };
1124
+ assets: {
1125
+ links: {
1126
+ withUsers: number;
1127
+ withoutUsers: number;
1128
+ withVulns: number;
1129
+ withoutVulns: number;
1130
+ withUserAssignedVulns: number;
1131
+ withOrphanedVulns: number;
1132
+ };
1133
+ byType: {
1134
+ assetType: GlobalAssetType;
1135
+ total: number;
1136
+ }[];
1137
+ byConnector: {
1138
+ cid: string;
1139
+ assetType: GlobalAssetType;
1140
+ total: number;
1141
+ }[];
1142
+ totalAssets: number;
1143
+ totalSaasAssets: number;
1144
+ totalStagedAssets: number;
1145
+ };
1146
+ users: {
1147
+ links: {
1148
+ withDevices: number;
1149
+ withoutDevices: number;
1150
+ };
1151
+ byType: {
1152
+ userType: GlobalUserType;
1153
+ total: number;
1154
+ }[];
1155
+ byConnectorStatus: {
1156
+ cid: string;
1157
+ userType: GlobalUserType;
1158
+ total: number;
1159
+ }[];
1160
+ totalUsers: number;
1161
+ totalSaasUsers: number;
1162
+ totalStagedUsers: number;
1163
+ };
1164
+ saasComp: {
1165
+ links: {
1166
+ withUsers: number;
1167
+ withoutUsers: number;
1168
+ withDevices: number;
1169
+ withoutDevices: number;
1170
+ orphaned: number;
1171
+ };
1172
+ byConnectorKind: {
1173
+ cid: string;
1174
+ kind: string;
1175
+ total: number;
1176
+ }[];
1177
+ totalSaasComps: number;
1178
+ totalStagedSaasComps: number;
1179
+ };
1180
+ findings: {
1181
+ links: {
1182
+ withUsers: number;
1183
+ withoutUsers: number;
1184
+ withDevices: number;
1185
+ withoutDevices: number;
1186
+ };
1187
+ total: {
1188
+ openWithUser: number;
1189
+ openWithoutUser: number;
1190
+ closedWithUser: number;
1191
+ closedWithoutUser: number;
1192
+ };
1193
+ connectorKindSeverityStatus: {
1194
+ status: FindingStatus;
1195
+ cid: string | null;
1196
+ kind: string;
1197
+ severity: FindingSeverity;
1198
+ total: number;
1199
+ }[];
1200
+ total90d: {
1201
+ openWithUser: number;
1202
+ openWithoutUser: number;
1203
+ closedWithUser: number;
1204
+ closedWithoutUser: number;
1205
+ };
1206
+ pending: number;
1207
+ };
1208
+ flows: {
1209
+ total: {
1210
+ active: number;
1211
+ closed: number;
1212
+ };
1213
+ total90d: {
1214
+ active: number;
1215
+ closed: number;
1216
+ };
1217
+ total7d: {
1218
+ active: number;
1219
+ closed: number;
1220
+ };
1221
+ total30d: {
1222
+ active: number;
1223
+ closed: number;
1224
+ };
1225
+ specsByStatusTrigger: {
1226
+ status: FlowSpecStatusKind;
1227
+ trigger: string;
1228
+ total: number;
1229
+ }[];
1230
+ statesByBucketStatus: {
1231
+ status: string;
1232
+ total: number;
1233
+ bucket: string;
1234
+ }[];
1235
+ };
1236
+ }>;
1237
+ export type TenantCountReportDto = z.infer<typeof _TenantCountReportDto>;