@ampsec/platform-client 68.3.0 → 68.4.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/eng/coverage.dto.d.ts +263 -0
- package/build/src/dto/eng/coverage.dto.js +50 -0
- package/build/src/dto/eng/coverage.dto.js.map +1 -0
- package/build/src/dto/eng/index.d.ts +1 -0
- package/build/src/dto/eng/index.js +18 -0
- package/build/src/dto/eng/index.js.map +1 -0
- package/build/src/dto/enums/category.d.ts +2 -0
- package/build/src/dto/enums/category.js +2 -0
- package/build/src/dto/enums/category.js.map +1 -1
- package/build/src/dto/index.d.ts +1 -0
- package/build/src/dto/index.js +1 -0
- package/build/src/dto/index.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/eng/coverage.dto.ts +50 -0
- package/src/dto/eng/index.ts +1 -0
- package/src/dto/enums/category.ts +2 -0
- package/src/dto/index.ts +1 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum AssetDomainStatus {
|
|
3
|
+
SECURE = "SECURE",
|
|
4
|
+
INSECURE = "INSECURE",
|
|
5
|
+
MISSING = "MISSING"
|
|
6
|
+
}
|
|
7
|
+
export declare const _EndUserDeviceReportDto: z.ZodObject<{
|
|
8
|
+
aid: z.ZodString;
|
|
9
|
+
displayValue: z.ZodString;
|
|
10
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
11
|
+
os: z.ZodOptional<z.ZodString>;
|
|
12
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
13
|
+
hasEndpointManagement: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
14
|
+
hasEndpointSecurity: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
15
|
+
hasVulnManagement: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
aid: string;
|
|
18
|
+
displayValue: string;
|
|
19
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
20
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
21
|
+
hasVulnManagement: AssetDomainStatus;
|
|
22
|
+
hostname?: string | undefined;
|
|
23
|
+
os?: string | undefined;
|
|
24
|
+
sn?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
aid: string;
|
|
27
|
+
displayValue: string;
|
|
28
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
29
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
30
|
+
hasVulnManagement: AssetDomainStatus;
|
|
31
|
+
hostname?: string | undefined;
|
|
32
|
+
os?: string | undefined;
|
|
33
|
+
sn?: string | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export type EndUserDeviceReportDto = z.infer<typeof _EndUserDeviceReportDto>;
|
|
36
|
+
export declare const _EndUserCoverageReportDto: z.ZodObject<{
|
|
37
|
+
uid: z.ZodString;
|
|
38
|
+
score: z.ZodNumber;
|
|
39
|
+
mfa: z.ZodObject<{
|
|
40
|
+
allowEmptyFactors: z.ZodBoolean;
|
|
41
|
+
enabled: z.ZodBoolean;
|
|
42
|
+
rating: z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>;
|
|
43
|
+
factors: z.ZodArray<z.ZodObject<{
|
|
44
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
45
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
46
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
47
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
48
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
49
|
+
}, "strip", z.ZodString, z.objectOutputType<{
|
|
50
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
51
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
52
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
53
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
54
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
55
|
+
}, z.ZodString, "strip">, z.objectInputType<{
|
|
56
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
57
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
58
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
59
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
60
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
61
|
+
}, z.ZodString, "strip">>, "many">;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
factors: z.objectOutputType<{
|
|
64
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
66
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
67
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
68
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
69
|
+
}, z.ZodString, "strip">[];
|
|
70
|
+
allowEmptyFactors: boolean;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
rating: "UNKNOWN" | "SECURE" | "INSECURE" | "MISSING";
|
|
73
|
+
}, {
|
|
74
|
+
factors: z.objectInputType<{
|
|
75
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
76
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
77
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
78
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
79
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
80
|
+
}, z.ZodString, "strip">[];
|
|
81
|
+
allowEmptyFactors: boolean;
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
rating: "UNKNOWN" | "SECURE" | "INSECURE" | "MISSING";
|
|
84
|
+
}>;
|
|
85
|
+
training: z.ZodObject<{
|
|
86
|
+
hasAccount: z.ZodBoolean;
|
|
87
|
+
overdue: z.ZodNumber;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
hasAccount: boolean;
|
|
90
|
+
overdue: number;
|
|
91
|
+
}, {
|
|
92
|
+
hasAccount: boolean;
|
|
93
|
+
overdue: number;
|
|
94
|
+
}>;
|
|
95
|
+
devices: z.ZodObject<{
|
|
96
|
+
rating: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
97
|
+
allMonitored: z.ZodBoolean;
|
|
98
|
+
hasInactive: z.ZodBoolean;
|
|
99
|
+
hasMissing: z.ZodBoolean;
|
|
100
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
101
|
+
aid: z.ZodString;
|
|
102
|
+
displayValue: z.ZodString;
|
|
103
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
104
|
+
os: z.ZodOptional<z.ZodString>;
|
|
105
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
106
|
+
hasEndpointManagement: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
107
|
+
hasEndpointSecurity: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
108
|
+
hasVulnManagement: z.ZodNativeEnum<typeof AssetDomainStatus>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
aid: string;
|
|
111
|
+
displayValue: string;
|
|
112
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
113
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
114
|
+
hasVulnManagement: AssetDomainStatus;
|
|
115
|
+
hostname?: string | undefined;
|
|
116
|
+
os?: string | undefined;
|
|
117
|
+
sn?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
aid: string;
|
|
120
|
+
displayValue: string;
|
|
121
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
122
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
123
|
+
hasVulnManagement: AssetDomainStatus;
|
|
124
|
+
hostname?: string | undefined;
|
|
125
|
+
os?: string | undefined;
|
|
126
|
+
sn?: string | undefined;
|
|
127
|
+
}>, "many">;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
assets: {
|
|
130
|
+
aid: string;
|
|
131
|
+
displayValue: string;
|
|
132
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
133
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
134
|
+
hasVulnManagement: AssetDomainStatus;
|
|
135
|
+
hostname?: string | undefined;
|
|
136
|
+
os?: string | undefined;
|
|
137
|
+
sn?: string | undefined;
|
|
138
|
+
}[];
|
|
139
|
+
rating: AssetDomainStatus;
|
|
140
|
+
allMonitored: boolean;
|
|
141
|
+
hasInactive: boolean;
|
|
142
|
+
hasMissing: boolean;
|
|
143
|
+
}, {
|
|
144
|
+
assets: {
|
|
145
|
+
aid: string;
|
|
146
|
+
displayValue: string;
|
|
147
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
148
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
149
|
+
hasVulnManagement: AssetDomainStatus;
|
|
150
|
+
hostname?: string | undefined;
|
|
151
|
+
os?: string | undefined;
|
|
152
|
+
sn?: string | undefined;
|
|
153
|
+
}[];
|
|
154
|
+
rating: AssetDomainStatus;
|
|
155
|
+
allMonitored: boolean;
|
|
156
|
+
hasInactive: boolean;
|
|
157
|
+
hasMissing: boolean;
|
|
158
|
+
}>;
|
|
159
|
+
vulns: z.ZodObject<{
|
|
160
|
+
totalOpen: z.ZodNumber;
|
|
161
|
+
criticalOpen: z.ZodNumber;
|
|
162
|
+
highOpen: z.ZodNumber;
|
|
163
|
+
mediumOpen: z.ZodNumber;
|
|
164
|
+
lowOpen: z.ZodNumber;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
totalOpen: number;
|
|
167
|
+
criticalOpen: number;
|
|
168
|
+
highOpen: number;
|
|
169
|
+
mediumOpen: number;
|
|
170
|
+
lowOpen: number;
|
|
171
|
+
}, {
|
|
172
|
+
totalOpen: number;
|
|
173
|
+
criticalOpen: number;
|
|
174
|
+
highOpen: number;
|
|
175
|
+
mediumOpen: number;
|
|
176
|
+
lowOpen: number;
|
|
177
|
+
}>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
uid: string;
|
|
180
|
+
score: number;
|
|
181
|
+
mfa: {
|
|
182
|
+
factors: z.objectOutputType<{
|
|
183
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
184
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
185
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
186
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
187
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
188
|
+
}, z.ZodString, "strip">[];
|
|
189
|
+
allowEmptyFactors: boolean;
|
|
190
|
+
enabled: boolean;
|
|
191
|
+
rating: "UNKNOWN" | "SECURE" | "INSECURE" | "MISSING";
|
|
192
|
+
};
|
|
193
|
+
training: {
|
|
194
|
+
hasAccount: boolean;
|
|
195
|
+
overdue: number;
|
|
196
|
+
};
|
|
197
|
+
devices: {
|
|
198
|
+
assets: {
|
|
199
|
+
aid: string;
|
|
200
|
+
displayValue: string;
|
|
201
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
202
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
203
|
+
hasVulnManagement: AssetDomainStatus;
|
|
204
|
+
hostname?: string | undefined;
|
|
205
|
+
os?: string | undefined;
|
|
206
|
+
sn?: string | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
rating: AssetDomainStatus;
|
|
209
|
+
allMonitored: boolean;
|
|
210
|
+
hasInactive: boolean;
|
|
211
|
+
hasMissing: boolean;
|
|
212
|
+
};
|
|
213
|
+
vulns: {
|
|
214
|
+
totalOpen: number;
|
|
215
|
+
criticalOpen: number;
|
|
216
|
+
highOpen: number;
|
|
217
|
+
mediumOpen: number;
|
|
218
|
+
lowOpen: number;
|
|
219
|
+
};
|
|
220
|
+
}, {
|
|
221
|
+
uid: string;
|
|
222
|
+
score: number;
|
|
223
|
+
mfa: {
|
|
224
|
+
factors: z.objectInputType<{
|
|
225
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
226
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
|
|
227
|
+
vendorName: z.ZodOptional<z.ZodString>;
|
|
228
|
+
factorType: z.ZodOptional<z.ZodString>;
|
|
229
|
+
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
230
|
+
}, z.ZodString, "strip">[];
|
|
231
|
+
allowEmptyFactors: boolean;
|
|
232
|
+
enabled: boolean;
|
|
233
|
+
rating: "UNKNOWN" | "SECURE" | "INSECURE" | "MISSING";
|
|
234
|
+
};
|
|
235
|
+
training: {
|
|
236
|
+
hasAccount: boolean;
|
|
237
|
+
overdue: number;
|
|
238
|
+
};
|
|
239
|
+
devices: {
|
|
240
|
+
assets: {
|
|
241
|
+
aid: string;
|
|
242
|
+
displayValue: string;
|
|
243
|
+
hasEndpointManagement: AssetDomainStatus;
|
|
244
|
+
hasEndpointSecurity: AssetDomainStatus;
|
|
245
|
+
hasVulnManagement: AssetDomainStatus;
|
|
246
|
+
hostname?: string | undefined;
|
|
247
|
+
os?: string | undefined;
|
|
248
|
+
sn?: string | undefined;
|
|
249
|
+
}[];
|
|
250
|
+
rating: AssetDomainStatus;
|
|
251
|
+
allMonitored: boolean;
|
|
252
|
+
hasInactive: boolean;
|
|
253
|
+
hasMissing: boolean;
|
|
254
|
+
};
|
|
255
|
+
vulns: {
|
|
256
|
+
totalOpen: number;
|
|
257
|
+
criticalOpen: number;
|
|
258
|
+
highOpen: number;
|
|
259
|
+
mediumOpen: number;
|
|
260
|
+
lowOpen: number;
|
|
261
|
+
};
|
|
262
|
+
}>;
|
|
263
|
+
export type EndUserCoverageReportDto = z.infer<typeof _EndUserCoverageReportDto>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._EndUserCoverageReportDto = exports._EndUserDeviceReportDto = exports.AssetDomainStatus = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const saasUsers_dto_1 = require("../saasUsers.dto");
|
|
6
|
+
var AssetDomainStatus;
|
|
7
|
+
(function (AssetDomainStatus) {
|
|
8
|
+
AssetDomainStatus["SECURE"] = "SECURE";
|
|
9
|
+
AssetDomainStatus["INSECURE"] = "INSECURE";
|
|
10
|
+
AssetDomainStatus["MISSING"] = "MISSING";
|
|
11
|
+
})(AssetDomainStatus || (exports.AssetDomainStatus = AssetDomainStatus = {}));
|
|
12
|
+
exports._EndUserDeviceReportDto = zod_1.z.object({
|
|
13
|
+
aid: zod_1.z.string(),
|
|
14
|
+
displayValue: zod_1.z.string(),
|
|
15
|
+
hostname: zod_1.z.string().optional(),
|
|
16
|
+
os: zod_1.z.string().optional(),
|
|
17
|
+
sn: zod_1.z.string().optional(),
|
|
18
|
+
hasEndpointManagement: zod_1.z.nativeEnum(AssetDomainStatus),
|
|
19
|
+
hasEndpointSecurity: zod_1.z.nativeEnum(AssetDomainStatus),
|
|
20
|
+
hasVulnManagement: zod_1.z.nativeEnum(AssetDomainStatus),
|
|
21
|
+
});
|
|
22
|
+
exports._EndUserCoverageReportDto = zod_1.z.object({
|
|
23
|
+
uid: zod_1.z.string(),
|
|
24
|
+
score: zod_1.z.number(),
|
|
25
|
+
mfa: zod_1.z.object({
|
|
26
|
+
allowEmptyFactors: zod_1.z.boolean(),
|
|
27
|
+
enabled: zod_1.z.boolean(),
|
|
28
|
+
rating: saasUsers_dto_1._MfaRating,
|
|
29
|
+
factors: saasUsers_dto_1._MfaFactorDto.array(),
|
|
30
|
+
}),
|
|
31
|
+
training: zod_1.z.object({
|
|
32
|
+
hasAccount: zod_1.z.boolean(),
|
|
33
|
+
overdue: zod_1.z.number(),
|
|
34
|
+
}),
|
|
35
|
+
devices: zod_1.z.object({
|
|
36
|
+
rating: zod_1.z.nativeEnum(AssetDomainStatus),
|
|
37
|
+
allMonitored: zod_1.z.boolean(),
|
|
38
|
+
hasInactive: zod_1.z.boolean(),
|
|
39
|
+
hasMissing: zod_1.z.boolean(),
|
|
40
|
+
assets: exports._EndUserDeviceReportDto.array(),
|
|
41
|
+
}),
|
|
42
|
+
vulns: zod_1.z.object({
|
|
43
|
+
totalOpen: zod_1.z.number(),
|
|
44
|
+
criticalOpen: zod_1.z.number(),
|
|
45
|
+
highOpen: zod_1.z.number(),
|
|
46
|
+
mediumOpen: zod_1.z.number(),
|
|
47
|
+
lowOpen: zod_1.z.number(),
|
|
48
|
+
}),
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=coverage.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../../src/dto/eng/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,oDAA2D;AAE3D,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;AACrB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAEY,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,qBAAqB,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;IACtD,mBAAmB,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;IACpD,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;CACnD,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE;QAC9B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;QACpB,MAAM,EAAE,0BAAU;QAClB,OAAO,EAAE,6BAAa,CAAC,KAAK,EAAE;KAC/B,CAAC;IACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;QACvB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;QACvC,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;QACzB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;QACxB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;QACvB,MAAM,EAAE,+BAAuB,CAAC,KAAK,EAAE;KACxC,CAAC;IACF,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './coverage.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./coverage.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/eng/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -4,6 +4,8 @@ exports.Category = void 0;
|
|
|
4
4
|
var Category;
|
|
5
5
|
(function (Category) {
|
|
6
6
|
Category["EDR"] = "EDR";
|
|
7
|
+
Category["ENDPOINT_MANAGEMENT"] = "ENDPOINT_MANAGEMENT";
|
|
8
|
+
Category["ENDPOINT_SECURITY"] = "ENDPOINT_SECURITY";
|
|
7
9
|
Category["VULNERABILITY"] = "VULNERABILITY";
|
|
8
10
|
/**
|
|
9
11
|
* @deprecated Use IDENTITY instead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAcX;AAdD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uDAA2C,CAAA;IAC3C,mDAAuC,CAAA;IACvC,2CAA+B,CAAA;IAC/B;;OAEG;IACH,uBAAW,CAAA;IACX,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;AACnB,CAAC,EAdW,QAAQ,wBAAR,QAAQ,QAcnB"}
|
package/build/src/dto/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './coverage.dto';
|
|
|
8
8
|
export * from './customActions.dto';
|
|
9
9
|
export * from './customScores.dto';
|
|
10
10
|
export * from './defaultConnector.dto';
|
|
11
|
+
export * from './eng';
|
|
11
12
|
export * from './entityIdSummaries.dto';
|
|
12
13
|
export * from './enum.dto';
|
|
13
14
|
export * from './enums';
|
package/build/src/dto/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./coverage.dto"), exports);
|
|
|
24
24
|
__exportStar(require("./customActions.dto"), exports);
|
|
25
25
|
__exportStar(require("./customScores.dto"), exports);
|
|
26
26
|
__exportStar(require("./defaultConnector.dto"), exports);
|
|
27
|
+
__exportStar(require("./eng"), exports);
|
|
27
28
|
__exportStar(require("./entityIdSummaries.dto"), exports);
|
|
28
29
|
__exportStar(require("./enum.dto"), exports);
|
|
29
30
|
__exportStar(require("./enums"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {z} from 'zod';
|
|
2
|
+
import {_MfaFactorDto, _MfaRating} from '../saasUsers.dto';
|
|
3
|
+
|
|
4
|
+
export enum AssetDomainStatus {
|
|
5
|
+
SECURE = 'SECURE',
|
|
6
|
+
INSECURE = 'INSECURE',
|
|
7
|
+
MISSING = 'MISSING',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const _EndUserDeviceReportDto = z.object({
|
|
11
|
+
aid: z.string(),
|
|
12
|
+
displayValue: z.string(),
|
|
13
|
+
hostname: z.string().optional(),
|
|
14
|
+
os: z.string().optional(),
|
|
15
|
+
sn: z.string().optional(),
|
|
16
|
+
hasEndpointManagement: z.nativeEnum(AssetDomainStatus),
|
|
17
|
+
hasEndpointSecurity: z.nativeEnum(AssetDomainStatus),
|
|
18
|
+
hasVulnManagement: z.nativeEnum(AssetDomainStatus),
|
|
19
|
+
});
|
|
20
|
+
export type EndUserDeviceReportDto = z.infer<typeof _EndUserDeviceReportDto>;
|
|
21
|
+
|
|
22
|
+
export const _EndUserCoverageReportDto = z.object({
|
|
23
|
+
uid: z.string(),
|
|
24
|
+
score: z.number(),
|
|
25
|
+
mfa: z.object({
|
|
26
|
+
allowEmptyFactors: z.boolean(),
|
|
27
|
+
enabled: z.boolean(),
|
|
28
|
+
rating: _MfaRating,
|
|
29
|
+
factors: _MfaFactorDto.array(),
|
|
30
|
+
}),
|
|
31
|
+
training: z.object({
|
|
32
|
+
hasAccount: z.boolean(),
|
|
33
|
+
overdue: z.number(),
|
|
34
|
+
}),
|
|
35
|
+
devices: z.object({
|
|
36
|
+
rating: z.nativeEnum(AssetDomainStatus),
|
|
37
|
+
allMonitored: z.boolean(),
|
|
38
|
+
hasInactive: z.boolean(),
|
|
39
|
+
hasMissing: z.boolean(),
|
|
40
|
+
assets: _EndUserDeviceReportDto.array(),
|
|
41
|
+
}),
|
|
42
|
+
vulns: z.object({
|
|
43
|
+
totalOpen: z.number(),
|
|
44
|
+
criticalOpen: z.number(),
|
|
45
|
+
highOpen: z.number(),
|
|
46
|
+
mediumOpen: z.number(),
|
|
47
|
+
lowOpen: z.number(),
|
|
48
|
+
}),
|
|
49
|
+
});
|
|
50
|
+
export type EndUserCoverageReportDto = z.infer<typeof _EndUserCoverageReportDto>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './coverage.dto';
|
package/src/dto/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './coverage.dto';
|
|
|
8
8
|
export * from './customActions.dto';
|
|
9
9
|
export * from './customScores.dto';
|
|
10
10
|
export * from './defaultConnector.dto';
|
|
11
|
+
export * from './eng';
|
|
11
12
|
export * from './entityIdSummaries.dto';
|
|
12
13
|
export * from './enum.dto';
|
|
13
14
|
export * from './enums';
|