@ampsec/platform-client 59.2.0 → 59.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/dto/coverage.dto.d.ts +40 -0
- package/build/src/dto/coverage.dto.js +6 -1
- package/build/src/dto/coverage.dto.js.map +1 -1
- package/build/src/dto/enums/finding.severity.d.ts +2 -1
- package/build/src/dto/enums/finding.severity.js +1 -0
- package/build/src/dto/enums/finding.severity.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/coverage.dto.ts +7 -0
- package/src/dto/enums/finding.severity.ts +1 -0
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const _AssetAccountSummary: z.ZodObject<{
|
|
3
|
+
active: z.ZodBoolean;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
active: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
active: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
2
10
|
export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
3
11
|
id: z.ZodOptional<z.ZodString>;
|
|
4
12
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -10,8 +18,18 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
10
18
|
os: z.ZodOptional<z.ZodString>;
|
|
11
19
|
model: z.ZodOptional<z.ZodString>;
|
|
12
20
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21
|
+
assetAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
22
|
+
active: z.ZodBoolean;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
active: boolean;
|
|
25
|
+
}, {
|
|
26
|
+
active: boolean;
|
|
27
|
+
}>, "many">>;
|
|
13
28
|
}, "strip", z.ZodTypeAny, {
|
|
14
29
|
assetAccounts: Record<string, unknown>;
|
|
30
|
+
assetAccounts2: Record<string, {
|
|
31
|
+
active: boolean;
|
|
32
|
+
}[]>;
|
|
15
33
|
id?: string | undefined;
|
|
16
34
|
uid?: string | undefined;
|
|
17
35
|
sn?: string | undefined;
|
|
@@ -23,6 +41,9 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
23
41
|
model?: string | undefined;
|
|
24
42
|
}, {
|
|
25
43
|
assetAccounts: Record<string, unknown>;
|
|
44
|
+
assetAccounts2: Record<string, {
|
|
45
|
+
active: boolean;
|
|
46
|
+
}[]>;
|
|
26
47
|
id?: string | undefined;
|
|
27
48
|
uid?: string | undefined;
|
|
28
49
|
sn?: string | undefined;
|
|
@@ -59,8 +80,18 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
59
80
|
os: z.ZodOptional<z.ZodString>;
|
|
60
81
|
model: z.ZodOptional<z.ZodString>;
|
|
61
82
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
83
|
+
assetAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
84
|
+
active: z.ZodBoolean;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
active: boolean;
|
|
87
|
+
}, {
|
|
88
|
+
active: boolean;
|
|
89
|
+
}>, "many">>;
|
|
62
90
|
}, "strip", z.ZodTypeAny, {
|
|
63
91
|
assetAccounts: Record<string, unknown>;
|
|
92
|
+
assetAccounts2: Record<string, {
|
|
93
|
+
active: boolean;
|
|
94
|
+
}[]>;
|
|
64
95
|
id?: string | undefined;
|
|
65
96
|
uid?: string | undefined;
|
|
66
97
|
sn?: string | undefined;
|
|
@@ -72,6 +103,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
72
103
|
model?: string | undefined;
|
|
73
104
|
}, {
|
|
74
105
|
assetAccounts: Record<string, unknown>;
|
|
106
|
+
assetAccounts2: Record<string, {
|
|
107
|
+
active: boolean;
|
|
108
|
+
}[]>;
|
|
75
109
|
id?: string | undefined;
|
|
76
110
|
uid?: string | undefined;
|
|
77
111
|
sn?: string | undefined;
|
|
@@ -87,6 +121,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
87
121
|
userAccounts: Record<string, number>;
|
|
88
122
|
assets: {
|
|
89
123
|
assetAccounts: Record<string, unknown>;
|
|
124
|
+
assetAccounts2: Record<string, {
|
|
125
|
+
active: boolean;
|
|
126
|
+
}[]>;
|
|
90
127
|
id?: string | undefined;
|
|
91
128
|
uid?: string | undefined;
|
|
92
129
|
sn?: string | undefined;
|
|
@@ -113,6 +150,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
113
150
|
userAccounts: Record<string, number>;
|
|
114
151
|
assets: {
|
|
115
152
|
assetAccounts: Record<string, unknown>;
|
|
153
|
+
assetAccounts2: Record<string, {
|
|
154
|
+
active: boolean;
|
|
155
|
+
}[]>;
|
|
116
156
|
id?: string | undefined;
|
|
117
157
|
uid?: string | undefined;
|
|
118
158
|
sn?: string | undefined;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = void 0;
|
|
3
|
+
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = exports._AssetAccountSummary = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assets_dto_1 = require("./assets.dto");
|
|
6
6
|
const saasAssets_dto_1 = require("./saasAssets.dto");
|
|
7
7
|
const saasUsers_dto_1 = require("./saasUsers.dto");
|
|
8
8
|
const users_dto_1 = require("./users.dto");
|
|
9
|
+
exports._AssetAccountSummary = zod_1.z.object({
|
|
10
|
+
active: zod_1.z.boolean(),
|
|
11
|
+
});
|
|
9
12
|
exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.object({
|
|
13
|
+
/** @deprecated */
|
|
10
14
|
assetAccounts: zod_1.z.record(zod_1.z.unknown()),
|
|
15
|
+
assetAccounts2: zod_1.z.record(zod_1.z.array(exports._AssetAccountSummary)),
|
|
11
16
|
}));
|
|
12
17
|
exports._UserCoverageSummary = users_dto_1._SimpleUserDto.merge(zod_1.z.object({
|
|
13
18
|
name: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;IACpC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC;CACxD,CAAC,CACH,CAAC;AAGW,QAAA,oBAAoB,GAAG,0BAAc,CAAC,KAAK,CACtD,OAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;CACvC,CAAC,CACH,CAAC;AAGW,QAAA,mBAAmB,GAAG,0BAAc,CAAC,KAAK,CACrD,OAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAY,CAAC,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAS,CAAC;CAC3B,CAAC,CACH,CAAC"}
|
|
@@ -7,5 +7,6 @@ var FindingSeverity;
|
|
|
7
7
|
FindingSeverity["MEDIUM"] = "MEDIUM";
|
|
8
8
|
FindingSeverity["HIGH"] = "HIGH";
|
|
9
9
|
FindingSeverity["CRITICAL"] = "CRITICAL";
|
|
10
|
+
FindingSeverity["INFO"] = "INFO";
|
|
10
11
|
})(FindingSeverity || (exports.FindingSeverity = FindingSeverity = {}));
|
|
11
12
|
//# sourceMappingURL=finding.severity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding.severity.js","sourceRoot":"","sources":["../../../../src/dto/enums/finding.severity.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"finding.severity.js","sourceRoot":"","sources":["../../../../src/dto/enums/finding.severity.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,wCAAqB,CAAA;IACrB,gCAAa,CAAA;AACf,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B"}
|
package/package.json
CHANGED
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -4,9 +4,16 @@ import {_SaasAssetDto} from './saasAssets.dto';
|
|
|
4
4
|
import {_SaasUserDto} from './saasUsers.dto';
|
|
5
5
|
import {_SimpleUserDto} from './users.dto';
|
|
6
6
|
|
|
7
|
+
export const _AssetAccountSummary = z.object({
|
|
8
|
+
active: z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
11
|
+
|
|
7
12
|
export const _AssetCoverageSummary = _SummaryAssetDto.merge(
|
|
8
13
|
z.object({
|
|
14
|
+
/** @deprecated */
|
|
9
15
|
assetAccounts: z.record(z.unknown()),
|
|
16
|
+
assetAccounts2: z.record(z.array(_AssetAccountSummary)),
|
|
10
17
|
})
|
|
11
18
|
);
|
|
12
19
|
export type AssetCoverageSummary = z.infer<typeof _AssetCoverageSummary>;
|