@ampsec/platform-client 58.9.1 → 58.10.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/FilterCriteria.d.ts +795 -40
- package/build/src/FilterCriteria.js +82 -0
- package/build/src/FilterCriteria.js.map +1 -1
- package/build/src/dto/assets.dto.d.ts +13 -1
- package/build/src/dto/assets.dto.js +1 -0
- package/build/src/dto/assets.dto.js.map +1 -1
- package/build/src/dto/base.dto.d.ts +27 -9
- package/build/src/dto/base.dto.js +2 -4
- package/build/src/dto/base.dto.js.map +1 -1
- package/build/src/dto/coverage.dto.d.ts +19 -11
- package/build/src/dto/flows.dto.d.ts +819 -0
- package/build/src/dto/flows.dto.js +85 -0
- package/build/src/dto/flows.dto.js.map +1 -0
- package/build/src/dto/index.d.ts +1 -0
- package/build/src/dto/index.js +1 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/platform/index.d.ts +1 -0
- package/build/src/dto/platform/index.js +1 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.flows.dto.d.ts +540 -0
- package/build/src/dto/platform/platform.flows.dto.js +32 -0
- package/build/src/dto/platform/platform.flows.dto.js.map +1 -0
- package/build/src/dto/platform/tenant.based.dto.d.ts +40 -8
- package/build/src/dto/platform/tenant.based.dto.js +7 -0
- package/build/src/dto/platform/tenant.based.dto.js.map +1 -1
- package/build/src/dto/saasAssets.dto.d.ts +10 -1
- package/build/src/dto/saasUsers.dto.d.ts +15 -6
- package/build/src/services/AmpSdk.d.ts +3 -0
- package/build/src/services/AmpSdk.js +2 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/constants.d.ts +2 -0
- package/build/src/services/constants.js +2 -0
- package/build/src/services/constants.js.map +1 -1
- package/build/src/services/utils.d.ts +3 -0
- package/build/src/services/utils.js +16 -1
- package/build/src/services/utils.js.map +1 -1
- package/package.json +2 -1
- package/src/FilterCriteria.ts +104 -39
- package/src/dto/assets.dto.ts +1 -0
- package/src/dto/base.dto.ts +4 -6
- package/src/dto/flows.dto.ts +107 -0
- package/src/dto/index.ts +1 -0
- package/src/dto/platform/index.ts +1 -0
- package/src/dto/platform/platform.flows.dto.ts +38 -0
- package/src/dto/platform/tenant.based.dto.ts +8 -9
- package/src/services/AmpSdk.ts +5 -0
- package/src/services/constants.ts +2 -0
- package/src/services/utils.ts +16 -0
|
@@ -1,3 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._FilterCriteria = exports._BaseFilter = exports._SortFilter = exports._PaginationFilter = exports._DateMatcher = exports._NumberMatcher = exports._StringMatcher = exports._IdMatcher = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _OptionalStringValue = zod_1.z.string().nullable();
|
|
6
|
+
const _OptionalNumberValue = zod_1.z.number().nullable();
|
|
7
|
+
exports._IdMatcher = zod_1.z.object({
|
|
8
|
+
$eq: _OptionalStringValue.optional(),
|
|
9
|
+
$ne: _OptionalStringValue.optional(),
|
|
10
|
+
$in: zod_1.z.array(_OptionalStringValue).optional(),
|
|
11
|
+
$nin: zod_1.z.array(_OptionalStringValue).optional(),
|
|
12
|
+
});
|
|
13
|
+
exports._StringMatcher = zod_1.z.object({
|
|
14
|
+
$eq: _OptionalStringValue.optional(),
|
|
15
|
+
$neq: _OptionalStringValue.optional(),
|
|
16
|
+
$lt: zod_1.z.string().optional(),
|
|
17
|
+
$gt: zod_1.z.string().optional(),
|
|
18
|
+
$lte: zod_1.z.string().optional(),
|
|
19
|
+
$gte: zod_1.z.string().optional(),
|
|
20
|
+
$like: zod_1.z.string().optional(),
|
|
21
|
+
$nlike: zod_1.z.string().optional(),
|
|
22
|
+
$in: zod_1.z.array(_OptionalStringValue).optional(),
|
|
23
|
+
$nin: zod_1.z.array(_OptionalStringValue).optional(),
|
|
24
|
+
});
|
|
25
|
+
exports._NumberMatcher = zod_1.z.object({
|
|
26
|
+
$eq: _OptionalNumberValue.optional(),
|
|
27
|
+
$neq: _OptionalNumberValue.optional(),
|
|
28
|
+
$lt: zod_1.z.number().optional(),
|
|
29
|
+
$gt: zod_1.z.number().optional(),
|
|
30
|
+
$lte: zod_1.z.number().optional(),
|
|
31
|
+
$gte: zod_1.z.number().optional(),
|
|
32
|
+
$in: zod_1.z.array(_OptionalNumberValue).optional(),
|
|
33
|
+
$nin: zod_1.z.array(_OptionalNumberValue).optional(),
|
|
34
|
+
});
|
|
35
|
+
exports._DateMatcher = zod_1.z.object({
|
|
36
|
+
$eq: _OptionalStringValue.optional(),
|
|
37
|
+
$neq: _OptionalStringValue.optional(),
|
|
38
|
+
$lt: zod_1.z.string().optional(),
|
|
39
|
+
$gt: zod_1.z.string().optional(),
|
|
40
|
+
$lte: zod_1.z.string().optional(),
|
|
41
|
+
$gte: zod_1.z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
exports._PaginationFilter = zod_1.z.object({
|
|
44
|
+
limit: zod_1.z.number().int().min(1).optional(),
|
|
45
|
+
offset: zod_1.z.number().int().min(0).optional(),
|
|
46
|
+
});
|
|
47
|
+
exports._SortFilter = zod_1.z.object({
|
|
48
|
+
sort: zod_1.z.record(zod_1.z.enum(['ASC', 'DESC'])).optional(),
|
|
49
|
+
});
|
|
50
|
+
exports._BaseFilter = exports._PaginationFilter.merge(exports._SortFilter);
|
|
51
|
+
exports._FilterCriteria = exports._BaseFilter
|
|
52
|
+
.merge(zod_1.z.object({
|
|
53
|
+
/** Entity ID */
|
|
54
|
+
id: exports._IdMatcher.optional(),
|
|
55
|
+
/** Tenant ID */
|
|
56
|
+
tid: exports._IdMatcher.optional(),
|
|
57
|
+
/** Connector ID */
|
|
58
|
+
cid: exports._IdMatcher.optional(),
|
|
59
|
+
/** Organization name. Defaults to `*` which matches all organizations. */
|
|
60
|
+
organization: zod_1.z.string().optional(),
|
|
61
|
+
/** Department name. Defaults to `*` which matches all departments. */
|
|
62
|
+
department: zod_1.z.string().optional(),
|
|
63
|
+
/** User ID */
|
|
64
|
+
uid: exports._IdMatcher.optional(),
|
|
65
|
+
/** Asset ID */
|
|
66
|
+
aid: exports._IdMatcher.optional(),
|
|
67
|
+
/** Created at Date */
|
|
68
|
+
createdAt: exports._DateMatcher.optional(),
|
|
69
|
+
/** Updated at Date */
|
|
70
|
+
updatedAt: exports._DateMatcher.optional(),
|
|
71
|
+
/** Deleted at Date. `null` if not deleted */
|
|
72
|
+
deletedAt: exports._DateMatcher.optional(),
|
|
73
|
+
}))
|
|
74
|
+
.catchall(zod_1.z.record(zod_1.z.union([
|
|
75
|
+
zod_1.z.string(),
|
|
76
|
+
zod_1.z.array(zod_1.z.string()), //
|
|
77
|
+
exports._StringMatcher,
|
|
78
|
+
zod_1.z.number(),
|
|
79
|
+
exports._NumberMatcher,
|
|
80
|
+
zod_1.z.boolean(),
|
|
81
|
+
zod_1.z.null(),
|
|
82
|
+
zod_1.z.undefined(),
|
|
83
|
+
exports._SortFilter,
|
|
84
|
+
])));
|
|
3
85
|
//# sourceMappingURL=FilterCriteria.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterCriteria.js","sourceRoot":"","sources":["../../src/FilterCriteria.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"FilterCriteria.js","sourceRoot":"","sources":["../../src/FilterCriteria.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AACnD,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AAEtC,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAA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gB;IAChB,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,mBAAmB;IACnB,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,0EAA0E;IAC1E,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,sEAAsE;IACtE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc;IACd,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,eAAe;IACf,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,sBAAsB;IACtB,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,sBAAsB;IACtB,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,6CAA6C;IAC7C,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;CACnC,CAAC,CACH;KACA,QAAQ,CACP,OAAC,CAAC,MAAM,CACN,OAAC,CAAC,KAAK,CAAC;IACN,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACvB,sBAAc;IACd,OAAC,CAAC,MAAM,EAAE;IACV,sBAAc;IACd,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,SAAS,EAAE;IACb,mBAAW;CACZ,CAAC,CACH,CACF,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
20
20
|
/** Human readable name of the asset */
|
|
21
21
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
22
22
|
sn: z.ZodOptional<z.ZodString>;
|
|
23
|
+
maxSeverity: z.ZodOptional<z.ZodString>;
|
|
23
24
|
hostname: z.ZodOptional<z.ZodString>;
|
|
24
25
|
lastCheckinTs: z.ZodOptional<z.ZodString>;
|
|
25
26
|
os: z.ZodOptional<z.ZodString>;
|
|
@@ -29,6 +30,7 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
29
30
|
uid?: string | undefined;
|
|
30
31
|
displayValue?: string | undefined;
|
|
31
32
|
sn?: string | undefined;
|
|
33
|
+
maxSeverity?: string | undefined;
|
|
32
34
|
hostname?: string | undefined;
|
|
33
35
|
lastCheckinTs?: string | undefined;
|
|
34
36
|
os?: string | undefined;
|
|
@@ -38,6 +40,7 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
38
40
|
uid?: string | undefined;
|
|
39
41
|
displayValue?: string | undefined;
|
|
40
42
|
sn?: string | undefined;
|
|
43
|
+
maxSeverity?: string | undefined;
|
|
41
44
|
hostname?: string | undefined;
|
|
42
45
|
lastCheckinTs?: string | undefined;
|
|
43
46
|
os?: string | undefined;
|
|
@@ -45,7 +48,10 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
45
48
|
}>;
|
|
46
49
|
export type SummaryAssetDto = z.infer<typeof _SummaryAssetDto>;
|
|
47
50
|
export declare const _AssetUpsertDto: z.ZodObject<{
|
|
48
|
-
id: z.ZodOptional<z.
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
53
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
54
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
55
|
etag: z.ZodString;
|
|
50
56
|
extKeys: z.ZodObject<{
|
|
51
57
|
extId: z.ZodOptional<z.ZodString>;
|
|
@@ -72,6 +78,9 @@ export declare const _AssetUpsertDto: z.ZodObject<{
|
|
|
72
78
|
sn?: string | undefined;
|
|
73
79
|
};
|
|
74
80
|
id?: string | undefined;
|
|
81
|
+
createdAt?: string | undefined;
|
|
82
|
+
updatedAt?: string | undefined;
|
|
83
|
+
deletedAt?: string | null | undefined;
|
|
75
84
|
uid?: string | undefined;
|
|
76
85
|
assetType?: GlobalAssetType | undefined;
|
|
77
86
|
}, {
|
|
@@ -83,6 +92,9 @@ export declare const _AssetUpsertDto: z.ZodObject<{
|
|
|
83
92
|
sn?: string | undefined;
|
|
84
93
|
};
|
|
85
94
|
id?: string | undefined;
|
|
95
|
+
createdAt?: string | undefined;
|
|
96
|
+
updatedAt?: string | undefined;
|
|
97
|
+
deletedAt?: string | null | undefined;
|
|
86
98
|
uid?: string | undefined;
|
|
87
99
|
assetType?: GlobalAssetType | undefined;
|
|
88
100
|
}>;
|
|
@@ -18,6 +18,7 @@ exports._SummaryAssetDto = zod_1.z.object({
|
|
|
18
18
|
/** Human readable name of the asset */
|
|
19
19
|
displayValue: zod_1.z.string().optional(),
|
|
20
20
|
sn: zod_1.z.string().optional(),
|
|
21
|
+
maxSeverity: zod_1.z.string().optional(),
|
|
21
22
|
hostname: zod_1.z.string().optional(),
|
|
22
23
|
lastCheckinTs: zod_1.z.string().optional(),
|
|
23
24
|
os: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.dto.js","sourceRoot":"","sources":["../../../src/dto/assets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,+DAAyD;AAE5C,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,sBAAsB;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,uCAAuC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAIU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,sBAAsB;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,uCAAuC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ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string | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
10
2
|
export declare const _BaseDto: z.ZodObject<{
|
|
11
3
|
id: z.ZodString;
|
|
12
4
|
createdAt: z.ZodString;
|
|
@@ -24,15 +16,41 @@ export declare const _BaseDto: z.ZodObject<{
|
|
|
24
16
|
deletedAt: string | null;
|
|
25
17
|
}>;
|
|
26
18
|
export type BaseDto = z.infer<typeof _BaseDto>;
|
|
19
|
+
export declare const _BaseUpsertDto: z.ZodObject<{
|
|
20
|
+
id: z.ZodOptional<z.ZodString>;
|
|
21
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
createdAt?: string | undefined;
|
|
27
|
+
updatedAt?: string | undefined;
|
|
28
|
+
deletedAt?: string | null | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
createdAt?: string | undefined;
|
|
32
|
+
updatedAt?: string | undefined;
|
|
33
|
+
deletedAt?: string | null | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
27
36
|
export declare const _ChangeAwareUpsertDto: z.ZodObject<{
|
|
28
|
-
id: z.ZodOptional<z.
|
|
37
|
+
id: z.ZodOptional<z.ZodString>;
|
|
38
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
40
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
41
|
etag: z.ZodString;
|
|
30
42
|
}, "strip", z.ZodTypeAny, {
|
|
31
43
|
etag: string;
|
|
32
44
|
id?: string | undefined;
|
|
45
|
+
createdAt?: string | undefined;
|
|
46
|
+
updatedAt?: string | undefined;
|
|
47
|
+
deletedAt?: string | null | undefined;
|
|
33
48
|
}, {
|
|
34
49
|
etag: string;
|
|
35
50
|
id?: string | undefined;
|
|
51
|
+
createdAt?: string | undefined;
|
|
52
|
+
updatedAt?: string | undefined;
|
|
53
|
+
deletedAt?: string | null | undefined;
|
|
36
54
|
}>;
|
|
37
55
|
export type ChangeAwareUpsertDto = z.infer<typeof _ChangeAwareUpsertDto>;
|
|
38
56
|
export declare const _ChangeAwareDto: z.ZodObject<{
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._ChangeAwareDto = exports._ChangeAwareUpsertDto = exports.
|
|
3
|
+
exports._ChangeAwareDto = exports._ChangeAwareUpsertDto = exports._BaseUpsertDto = exports._BaseDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports._BaseUpsertDto = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()]).optional(),
|
|
7
|
-
});
|
|
8
5
|
exports._BaseDto = zod_1.z.object({
|
|
9
6
|
id: zod_1.z.string(),
|
|
10
7
|
createdAt: zod_1.z.string(),
|
|
11
8
|
updatedAt: zod_1.z.string(),
|
|
12
9
|
deletedAt: zod_1.z.string().nullable(),
|
|
13
10
|
});
|
|
11
|
+
exports._BaseUpsertDto = exports._BaseDto.partial();
|
|
14
12
|
const WithEtag = zod_1.z.object({ etag: zod_1.z.string() });
|
|
15
13
|
exports._ChangeAwareUpsertDto = exports._BaseUpsertDto.merge(WithEtag);
|
|
16
14
|
exports._ChangeAwareDto = exports._BaseDto.merge(WithEtag);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,
|
|
1
|
+
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAIU,QAAA,cAAc,GAAG,gBAAQ,CAAC,OAAO,EAAE,CAAC;AAIjD,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC,CAAC;AAEjC,QAAA,qBAAqB,GAAG,sBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAIvD,QAAA,eAAe,GAAG,gBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
4
4
|
uid: z.ZodOptional<z.ZodString>;
|
|
5
5
|
sn: z.ZodOptional<z.ZodString>;
|
|
6
6
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
7
|
+
maxSeverity: z.ZodOptional<z.ZodString>;
|
|
7
8
|
hostname: z.ZodOptional<z.ZodString>;
|
|
8
9
|
lastCheckinTs: z.ZodOptional<z.ZodString>;
|
|
9
10
|
os: z.ZodOptional<z.ZodString>;
|
|
@@ -15,6 +16,7 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
15
16
|
uid?: string | undefined;
|
|
16
17
|
sn?: string | undefined;
|
|
17
18
|
displayValue?: string | undefined;
|
|
19
|
+
maxSeverity?: string | undefined;
|
|
18
20
|
hostname?: string | undefined;
|
|
19
21
|
lastCheckinTs?: string | undefined;
|
|
20
22
|
os?: string | undefined;
|
|
@@ -25,6 +27,7 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
25
27
|
uid?: string | undefined;
|
|
26
28
|
sn?: string | undefined;
|
|
27
29
|
displayValue?: string | undefined;
|
|
30
|
+
maxSeverity?: string | undefined;
|
|
28
31
|
hostname?: string | undefined;
|
|
29
32
|
lastCheckinTs?: string | undefined;
|
|
30
33
|
os?: string | undefined;
|
|
@@ -32,10 +35,10 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
32
35
|
}>;
|
|
33
36
|
export type AssetCoverageSummary = z.infer<typeof _AssetCoverageSummary>;
|
|
34
37
|
export declare const _UserCoverageSummary: z.ZodObject<{
|
|
38
|
+
email: z.ZodOptional<z.ZodString>;
|
|
35
39
|
id: z.ZodOptional<z.ZodString>;
|
|
36
40
|
organization: z.ZodOptional<z.ZodString>;
|
|
37
41
|
department: z.ZodOptional<z.ZodString>;
|
|
38
|
-
email: z.ZodOptional<z.ZodString>;
|
|
39
42
|
score: z.ZodOptional<z.ZodNumber>;
|
|
40
43
|
firstName: z.ZodOptional<z.ZodString>;
|
|
41
44
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -50,6 +53,7 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
50
53
|
uid: z.ZodOptional<z.ZodString>;
|
|
51
54
|
sn: z.ZodOptional<z.ZodString>;
|
|
52
55
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
56
|
+
maxSeverity: z.ZodOptional<z.ZodString>;
|
|
53
57
|
hostname: z.ZodOptional<z.ZodString>;
|
|
54
58
|
lastCheckinTs: z.ZodOptional<z.ZodString>;
|
|
55
59
|
os: z.ZodOptional<z.ZodString>;
|
|
@@ -61,6 +65,7 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
61
65
|
uid?: string | undefined;
|
|
62
66
|
sn?: string | undefined;
|
|
63
67
|
displayValue?: string | undefined;
|
|
68
|
+
maxSeverity?: string | undefined;
|
|
64
69
|
hostname?: string | undefined;
|
|
65
70
|
lastCheckinTs?: string | undefined;
|
|
66
71
|
os?: string | undefined;
|
|
@@ -71,6 +76,7 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
71
76
|
uid?: string | undefined;
|
|
72
77
|
sn?: string | undefined;
|
|
73
78
|
displayValue?: string | undefined;
|
|
79
|
+
maxSeverity?: string | undefined;
|
|
74
80
|
hostname?: string | undefined;
|
|
75
81
|
lastCheckinTs?: string | undefined;
|
|
76
82
|
os?: string | undefined;
|
|
@@ -85,15 +91,16 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
85
91
|
uid?: string | undefined;
|
|
86
92
|
sn?: string | undefined;
|
|
87
93
|
displayValue?: string | undefined;
|
|
94
|
+
maxSeverity?: string | undefined;
|
|
88
95
|
hostname?: string | undefined;
|
|
89
96
|
lastCheckinTs?: string | undefined;
|
|
90
97
|
os?: string | undefined;
|
|
91
98
|
model?: string | undefined;
|
|
92
99
|
}[];
|
|
100
|
+
email?: string | undefined;
|
|
93
101
|
id?: string | undefined;
|
|
94
102
|
organization?: string | undefined;
|
|
95
103
|
department?: string | undefined;
|
|
96
|
-
email?: string | undefined;
|
|
97
104
|
score?: number | undefined;
|
|
98
105
|
firstName?: string | undefined;
|
|
99
106
|
lastName?: string | undefined;
|
|
@@ -110,15 +117,16 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
110
117
|
uid?: string | undefined;
|
|
111
118
|
sn?: string | undefined;
|
|
112
119
|
displayValue?: string | undefined;
|
|
120
|
+
maxSeverity?: string | undefined;
|
|
113
121
|
hostname?: string | undefined;
|
|
114
122
|
lastCheckinTs?: string | undefined;
|
|
115
123
|
os?: string | undefined;
|
|
116
124
|
model?: string | undefined;
|
|
117
125
|
}[];
|
|
126
|
+
email?: string | undefined;
|
|
118
127
|
id?: string | undefined;
|
|
119
128
|
organization?: string | undefined;
|
|
120
129
|
department?: string | undefined;
|
|
121
|
-
email?: string | undefined;
|
|
122
130
|
score?: number | undefined;
|
|
123
131
|
firstName?: string | undefined;
|
|
124
132
|
lastName?: string | undefined;
|
|
@@ -129,19 +137,19 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
129
137
|
}>;
|
|
130
138
|
export type UserCoverageSummary = z.infer<typeof _UserCoverageSummary>;
|
|
131
139
|
export declare const _UserCoverageReport: z.ZodObject<{
|
|
140
|
+
email: z.ZodOptional<z.ZodString>;
|
|
132
141
|
id: z.ZodOptional<z.ZodString>;
|
|
133
142
|
organization: z.ZodOptional<z.ZodString>;
|
|
134
143
|
department: z.ZodOptional<z.ZodString>;
|
|
135
|
-
email: z.ZodOptional<z.ZodString>;
|
|
136
144
|
score: z.ZodOptional<z.ZodNumber>;
|
|
137
145
|
firstName: z.ZodOptional<z.ZodString>;
|
|
138
146
|
lastName: z.ZodOptional<z.ZodString>;
|
|
139
147
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
140
148
|
lastActivity: z.ZodOptional<z.ZodString>;
|
|
141
149
|
userAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
150
|
+
email: z.ZodString;
|
|
142
151
|
cid: z.ZodString;
|
|
143
152
|
uid: z.ZodString;
|
|
144
|
-
email: z.ZodString;
|
|
145
153
|
extId: z.ZodString;
|
|
146
154
|
meta: z.ZodUnknown;
|
|
147
155
|
id: z.ZodString;
|
|
@@ -150,24 +158,24 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
150
158
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
151
159
|
etag: z.ZodString;
|
|
152
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
email: string;
|
|
153
162
|
id: string;
|
|
154
163
|
cid: string;
|
|
155
164
|
uid: string;
|
|
156
165
|
createdAt: string;
|
|
157
166
|
updatedAt: string;
|
|
158
167
|
deletedAt: string | null;
|
|
159
|
-
email: string;
|
|
160
168
|
etag: string;
|
|
161
169
|
extId: string;
|
|
162
170
|
meta?: unknown;
|
|
163
171
|
}, {
|
|
172
|
+
email: string;
|
|
164
173
|
id: string;
|
|
165
174
|
cid: string;
|
|
166
175
|
uid: string;
|
|
167
176
|
createdAt: string;
|
|
168
177
|
updatedAt: string;
|
|
169
178
|
deletedAt: string | null;
|
|
170
|
-
email: string;
|
|
171
179
|
etag: string;
|
|
172
180
|
extId: string;
|
|
173
181
|
meta?: unknown;
|
|
@@ -299,13 +307,13 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
299
307
|
meta?: unknown;
|
|
300
308
|
}[]>;
|
|
301
309
|
userAccounts: Record<string, {
|
|
310
|
+
email: string;
|
|
302
311
|
id: string;
|
|
303
312
|
cid: string;
|
|
304
313
|
uid: string;
|
|
305
314
|
createdAt: string;
|
|
306
315
|
updatedAt: string;
|
|
307
316
|
deletedAt: string | null;
|
|
308
|
-
email: string;
|
|
309
317
|
etag: string;
|
|
310
318
|
extId: string;
|
|
311
319
|
meta?: unknown;
|
|
@@ -325,10 +333,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
325
333
|
uid?: string | undefined;
|
|
326
334
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
327
335
|
}[];
|
|
336
|
+
email?: string | undefined;
|
|
328
337
|
id?: string | undefined;
|
|
329
338
|
organization?: string | undefined;
|
|
330
339
|
department?: string | undefined;
|
|
331
|
-
email?: string | undefined;
|
|
332
340
|
score?: number | undefined;
|
|
333
341
|
firstName?: string | undefined;
|
|
334
342
|
lastName?: string | undefined;
|
|
@@ -353,13 +361,13 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
353
361
|
meta?: unknown;
|
|
354
362
|
}[]>;
|
|
355
363
|
userAccounts: Record<string, {
|
|
364
|
+
email: string;
|
|
356
365
|
id: string;
|
|
357
366
|
cid: string;
|
|
358
367
|
uid: string;
|
|
359
368
|
createdAt: string;
|
|
360
369
|
updatedAt: string;
|
|
361
370
|
deletedAt: string | null;
|
|
362
|
-
email: string;
|
|
363
371
|
etag: string;
|
|
364
372
|
extId: string;
|
|
365
373
|
meta?: unknown;
|
|
@@ -379,10 +387,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
379
387
|
uid?: string | undefined;
|
|
380
388
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
381
389
|
}[];
|
|
390
|
+
email?: string | undefined;
|
|
382
391
|
id?: string | undefined;
|
|
383
392
|
organization?: string | undefined;
|
|
384
393
|
department?: string | undefined;
|
|
385
|
-
email?: string | undefined;
|
|
386
394
|
score?: number | undefined;
|
|
387
395
|
firstName?: string | undefined;
|
|
388
396
|
lastName?: string | undefined;
|