@ampsec/platform-client 64.4.0 → 66.0.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/agents.dto.d.ts +80 -2
- package/build/src/dto/agents.dto.js +17 -0
- package/build/src/dto/agents.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +113 -113
- package/build/src/dto/customActions.dto.js +7 -5
- package/build/src/dto/customActions.dto.js.map +1 -1
- package/build/src/dto/customScores.dto.d.ts +12 -120
- package/build/src/dto/customScores.dto.js +1 -1
- package/build/src/dto/customScores.dto.js.map +1 -1
- package/build/src/dto/enums/findingSpecKind.d.ts +4 -0
- package/build/src/dto/enums/findingSpecKind.js +9 -0
- package/build/src/dto/enums/findingSpecKind.js.map +1 -0
- package/build/src/dto/enums/index.d.ts +1 -0
- package/build/src/dto/enums/index.js +1 -0
- package/build/src/dto/enums/index.js.map +1 -1
- package/build/src/dto/findings.dto.d.ts +7 -1
- package/build/src/dto/findings.dto.js +1 -0
- package/build/src/dto/findings.dto.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +62 -62
- package/build/src/dto/platform/platform.customScores.dto.d.ts +12 -120
- package/build/src/dto/platform/platform.findings.dto.d.ts +6 -0
- package/build/src/services/AgentsService.d.ts +47 -0
- package/build/src/services/AgentsService.js +23 -0
- package/build/src/services/AgentsService.js.map +1 -0
- package/build/src/services/AmpApi.d.ts +3 -2
- package/build/src/services/AmpApi.js +2 -1
- package/build/src/services/AmpApi.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/agents.dto.ts +22 -3
- package/src/dto/customActions.dto.ts +10 -8
- package/src/dto/customScores.dto.ts +1 -1
- package/src/dto/enums/findingSpecKind.ts +4 -0
- package/src/dto/enums/index.ts +1 -0
- package/src/dto/findings.dto.ts +2 -1
- package/src/services/AgentsService.ts +25 -0
- package/src/services/AmpApi.ts +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customActions.dto.js","sourceRoot":"","sources":["../../../src/dto/customActions.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAErD,MAAM,iBAAiB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"customActions.dto.js","sourceRoot":"","sources":["../../../src/dto/customActions.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAErD,MAAM,iBAAiB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,aAAa,EAAE,OAAC;SACb,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,OAAC;aACP,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YAC3B,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;SAClB,CAAC;aACD,QAAQ,EAAE;QACb,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACxC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACxC,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AACH,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9B,IAAI,EAAE,gCAAwB;CAC/B,CAAC,CAAC;AAGH,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAEpE,QAAA,gBAAgB,GAAG,oBAAoB,CAAC;AAGxC,QAAA,sBAAsB,GAAG,0BAA0B,CAAC;AAGpD,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC;QACvB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACxC,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;KACzB,CAAC;CACH,CAAC,CAAC;AAGH,yCAAyC"}
|
|
@@ -54,7 +54,7 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
|
|
|
54
54
|
createdAt: z.ZodString;
|
|
55
55
|
updatedAt: z.ZodString;
|
|
56
56
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
57
|
-
cohort: z.
|
|
57
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
60
60
|
displayValue: z.ZodString;
|
|
@@ -72,87 +72,33 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
|
|
|
72
72
|
id: string;
|
|
73
73
|
displayValue: string;
|
|
74
74
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
75
|
-
}>,
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
78
|
-
displayValue: z.ZodString;
|
|
79
|
-
value: z.ZodString;
|
|
80
|
-
inclusive: z.ZodBoolean;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
inclusive: boolean;
|
|
83
|
-
value: string;
|
|
84
|
-
id: string;
|
|
85
|
-
displayValue: string;
|
|
86
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
87
|
-
}, {
|
|
88
|
-
inclusive: boolean;
|
|
89
|
-
value: string;
|
|
90
|
-
id: string;
|
|
91
|
-
displayValue: string;
|
|
92
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
93
|
-
}>, "many">]>;
|
|
75
|
+
}>, "many">;
|
|
94
76
|
multiplier: z.ZodNumber;
|
|
95
77
|
}, "strip", z.ZodTypeAny, {
|
|
96
78
|
id: string;
|
|
97
79
|
createdAt: string;
|
|
98
80
|
updatedAt: string;
|
|
99
81
|
deletedAt: string | null;
|
|
100
|
-
cohort:
|
|
101
|
-
inclusive: boolean;
|
|
102
|
-
value: string;
|
|
103
|
-
id: string;
|
|
104
|
-
displayValue: string;
|
|
105
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
106
|
-
} | {
|
|
82
|
+
cohort: {
|
|
107
83
|
inclusive: boolean;
|
|
108
84
|
value: string;
|
|
109
85
|
id: string;
|
|
110
86
|
displayValue: string;
|
|
111
87
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
112
|
-
}[]
|
|
113
|
-
inclusive: boolean;
|
|
114
|
-
value: string;
|
|
115
|
-
id: string;
|
|
116
|
-
displayValue: string;
|
|
117
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
118
|
-
} | {
|
|
119
|
-
inclusive: boolean;
|
|
120
|
-
value: string;
|
|
121
|
-
id: string;
|
|
122
|
-
displayValue: string;
|
|
123
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
124
|
-
}[] | undefined);
|
|
88
|
+
}[];
|
|
125
89
|
multiplier: number;
|
|
126
90
|
}, {
|
|
127
91
|
id: string;
|
|
128
92
|
createdAt: string;
|
|
129
93
|
updatedAt: string;
|
|
130
94
|
deletedAt: string | null;
|
|
131
|
-
cohort:
|
|
132
|
-
inclusive: boolean;
|
|
133
|
-
value: string;
|
|
134
|
-
id: string;
|
|
135
|
-
displayValue: string;
|
|
136
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
137
|
-
} | {
|
|
138
|
-
inclusive: boolean;
|
|
139
|
-
value: string;
|
|
140
|
-
id: string;
|
|
141
|
-
displayValue: string;
|
|
142
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
143
|
-
}[]) & ({
|
|
144
|
-
inclusive: boolean;
|
|
145
|
-
value: string;
|
|
146
|
-
id: string;
|
|
147
|
-
displayValue: string;
|
|
148
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
149
|
-
} | {
|
|
95
|
+
cohort: {
|
|
150
96
|
inclusive: boolean;
|
|
151
97
|
value: string;
|
|
152
98
|
id: string;
|
|
153
99
|
displayValue: string;
|
|
154
100
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
155
|
-
}[]
|
|
101
|
+
}[];
|
|
156
102
|
multiplier: number;
|
|
157
103
|
}>;
|
|
158
104
|
export type CustomScoreCohortDto = z.infer<typeof _CustomScoreCohortDto>;
|
|
@@ -161,7 +107,7 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
161
107
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
162
108
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
163
109
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
-
cohort: z.
|
|
110
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
165
111
|
id: z.ZodString;
|
|
166
112
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
167
113
|
displayValue: z.ZodString;
|
|
@@ -179,83 +125,29 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
179
125
|
id: string;
|
|
180
126
|
displayValue: string;
|
|
181
127
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
182
|
-
}>,
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
185
|
-
displayValue: z.ZodString;
|
|
186
|
-
value: z.ZodString;
|
|
187
|
-
inclusive: z.ZodBoolean;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
inclusive: boolean;
|
|
190
|
-
value: string;
|
|
191
|
-
id: string;
|
|
192
|
-
displayValue: string;
|
|
193
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
194
|
-
}, {
|
|
195
|
-
inclusive: boolean;
|
|
196
|
-
value: string;
|
|
197
|
-
id: string;
|
|
198
|
-
displayValue: string;
|
|
199
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
200
|
-
}>, "many">]>;
|
|
128
|
+
}>, "many">;
|
|
201
129
|
multiplier: z.ZodNumber;
|
|
202
130
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
cohort:
|
|
204
|
-
inclusive: boolean;
|
|
205
|
-
value: string;
|
|
206
|
-
id: string;
|
|
207
|
-
displayValue: string;
|
|
208
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
209
|
-
} | {
|
|
131
|
+
cohort: {
|
|
210
132
|
inclusive: boolean;
|
|
211
133
|
value: string;
|
|
212
134
|
id: string;
|
|
213
135
|
displayValue: string;
|
|
214
136
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
215
|
-
}[]
|
|
216
|
-
inclusive: boolean;
|
|
217
|
-
value: string;
|
|
218
|
-
id: string;
|
|
219
|
-
displayValue: string;
|
|
220
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
221
|
-
} | {
|
|
222
|
-
inclusive: boolean;
|
|
223
|
-
value: string;
|
|
224
|
-
id: string;
|
|
225
|
-
displayValue: string;
|
|
226
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
227
|
-
}[] | undefined);
|
|
137
|
+
}[];
|
|
228
138
|
multiplier: number;
|
|
229
139
|
id?: string | undefined;
|
|
230
140
|
createdAt?: string | undefined;
|
|
231
141
|
updatedAt?: string | undefined;
|
|
232
142
|
deletedAt?: string | null | undefined;
|
|
233
143
|
}, {
|
|
234
|
-
cohort:
|
|
235
|
-
inclusive: boolean;
|
|
236
|
-
value: string;
|
|
237
|
-
id: string;
|
|
238
|
-
displayValue: string;
|
|
239
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
240
|
-
} | {
|
|
241
|
-
inclusive: boolean;
|
|
242
|
-
value: string;
|
|
243
|
-
id: string;
|
|
244
|
-
displayValue: string;
|
|
245
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
246
|
-
}[]) & ({
|
|
247
|
-
inclusive: boolean;
|
|
248
|
-
value: string;
|
|
249
|
-
id: string;
|
|
250
|
-
displayValue: string;
|
|
251
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
252
|
-
} | {
|
|
144
|
+
cohort: {
|
|
253
145
|
inclusive: boolean;
|
|
254
146
|
value: string;
|
|
255
147
|
id: string;
|
|
256
148
|
displayValue: string;
|
|
257
149
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
258
|
-
}[]
|
|
150
|
+
}[];
|
|
259
151
|
multiplier: number;
|
|
260
152
|
id?: string | undefined;
|
|
261
153
|
createdAt?: string | undefined;
|
|
@@ -12,7 +12,7 @@ exports._CustomScoreValueDto = base_dto_1._BaseDto.extend({
|
|
|
12
12
|
/** @deprecated */
|
|
13
13
|
exports._CustomScoreValueUpsertDto = exports._CustomScoreValueDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
14
14
|
exports._CustomScoreCohortDto = base_dto_1._BaseDto.extend({
|
|
15
|
-
cohort: zod_1.z.
|
|
15
|
+
cohort: zod_1.z.array(flows_dto_1._AmplifierCohortDto),
|
|
16
16
|
multiplier: zod_1.z.number(),
|
|
17
17
|
});
|
|
18
18
|
exports._CustomScoreCohortUpsertDto = exports._CustomScoreCohortDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEhD,kBAAkB;AACL,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIH,kBAAkB;AACL,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAI3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEhD,kBAAkB;AACL,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIH,kBAAkB;AACL,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAI3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,6BAAqB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindingSpecKind = void 0;
|
|
4
|
+
var FindingSpecKind;
|
|
5
|
+
(function (FindingSpecKind) {
|
|
6
|
+
FindingSpecKind["CUSTOM"] = "CUSTOM";
|
|
7
|
+
FindingSpecKind["SYSTEM"] = "SYSTEM";
|
|
8
|
+
})(FindingSpecKind || (exports.FindingSpecKind = FindingSpecKind = {}));
|
|
9
|
+
//# sourceMappingURL=findingSpecKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findingSpecKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/findingSpecKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
|
@@ -7,6 +7,7 @@ export * from './computer.os.enum';
|
|
|
7
7
|
export * from './connector.status';
|
|
8
8
|
export * from './contact.type';
|
|
9
9
|
export * from './findingKind';
|
|
10
|
+
export * from './findingSpecKind';
|
|
10
11
|
export * from './finding.severity';
|
|
11
12
|
export * from './finding.status';
|
|
12
13
|
export * from './finding.outcome';
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./computer.os.enum"), exports);
|
|
|
23
23
|
__exportStar(require("./connector.status"), exports);
|
|
24
24
|
__exportStar(require("./contact.type"), exports);
|
|
25
25
|
__exportStar(require("./findingKind"), exports);
|
|
26
|
+
__exportStar(require("./findingSpecKind"), exports);
|
|
26
27
|
__exportStar(require("./finding.severity"), exports);
|
|
27
28
|
__exportStar(require("./finding.status"), exports);
|
|
28
29
|
__exportStar(require("./finding.outcome"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SimpleAssetDto } from './assets.dto';
|
|
3
3
|
import { BaseDto, BaseUpsertDto } from './base.dto';
|
|
4
|
-
import { Category, FindingKind, SaasComponentKind } from './enums';
|
|
4
|
+
import { Category, FindingKind, FindingSpecKind, SaasComponentKind } from './enums';
|
|
5
5
|
import { FindingOutcome, FindingSeverity, FindingStatus } from './enums';
|
|
6
6
|
import { SimpleProviderDto } from './providers.dto';
|
|
7
7
|
import { SaasComponentMeta } from './saasComponents.dto';
|
|
@@ -162,6 +162,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
162
162
|
}>>;
|
|
163
163
|
expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
164
164
|
outcome: z.ZodOptional<z.ZodNativeEnum<typeof FindingOutcome>>;
|
|
165
|
+
kind: z.ZodNativeEnum<typeof FindingSpecKind>;
|
|
165
166
|
score: z.ZodOptional<z.ZodNumber>;
|
|
166
167
|
}, "strip", z.ZodTypeAny, {
|
|
167
168
|
name: string;
|
|
@@ -170,6 +171,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
170
171
|
updatedAt: string;
|
|
171
172
|
deletedAt: string | null;
|
|
172
173
|
displayValue: string;
|
|
174
|
+
kind: FindingSpecKind;
|
|
173
175
|
eventType: string;
|
|
174
176
|
severity: FindingSeverity;
|
|
175
177
|
cid?: string | undefined;
|
|
@@ -203,6 +205,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
|
|
|
203
205
|
updatedAt: string;
|
|
204
206
|
deletedAt: string | null;
|
|
205
207
|
displayValue: string;
|
|
208
|
+
kind: FindingSpecKind;
|
|
206
209
|
eventType: string;
|
|
207
210
|
severity: FindingSeverity;
|
|
208
211
|
cid?: string | undefined;
|
|
@@ -241,6 +244,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
241
244
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
245
|
displayValue: z.ZodString;
|
|
243
246
|
score: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
kind: z.ZodNativeEnum<typeof FindingSpecKind>;
|
|
244
248
|
eventType: z.ZodString;
|
|
245
249
|
severity: z.ZodNativeEnum<typeof FindingSeverity>;
|
|
246
250
|
insights: z.ZodOptional<z.ZodObject<{
|
|
@@ -341,6 +345,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
341
345
|
}, "strip", z.ZodTypeAny, {
|
|
342
346
|
name: string;
|
|
343
347
|
displayValue: string;
|
|
348
|
+
kind: FindingSpecKind;
|
|
344
349
|
eventType: string;
|
|
345
350
|
severity: FindingSeverity;
|
|
346
351
|
description?: unknown;
|
|
@@ -374,6 +379,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
|
|
|
374
379
|
}, {
|
|
375
380
|
name: string;
|
|
376
381
|
displayValue: string;
|
|
382
|
+
kind: FindingSpecKind;
|
|
377
383
|
eventType: string;
|
|
378
384
|
severity: FindingSeverity;
|
|
379
385
|
description?: unknown;
|
|
@@ -44,6 +44,7 @@ exports._FindingSpecDto = base_dto_1._BaseDto.extend({
|
|
|
44
44
|
.optional(),
|
|
45
45
|
expireAfterDays: zod_1.z.nullable(zod_1.z.number()).optional(),
|
|
46
46
|
outcome: zod_1.z.nativeEnum(enums_2.FindingOutcome).optional(), // TODO add column and form field??? Or just default to REMEDIATION?
|
|
47
|
+
kind: zod_1.z.nativeEnum(enums_1.FindingSpecKind),
|
|
47
48
|
score: zod_1.z.number().optional(),
|
|
48
49
|
});
|
|
49
50
|
exports._FindingSpecUpsertDto = exports._FindingSpecDto.partial({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findings.dto.js","sourceRoot":"","sources":["../../../src/dto/findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,yCAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"findings.dto.js","sourceRoot":"","sources":["../../../src/dto/findings.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
3
|
-
description: z.ZodString
|
|
3
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
createdAt: z.ZodString;
|
|
6
6
|
updatedAt: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
10
10
|
request: z.ZodObject<{
|
|
11
11
|
url: z.ZodString;
|
|
12
12
|
method: z.ZodString;
|
|
13
|
-
payload: z.ZodObject<{
|
|
13
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
15
15
|
format: z.ZodLiteral<"JSON">;
|
|
16
16
|
value: z.ZodString;
|
|
@@ -22,55 +22,55 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
22
22
|
value: string;
|
|
23
23
|
kind: "TEMPLATE";
|
|
24
24
|
format: "JSON";
|
|
25
|
-
}
|
|
26
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
27
|
-
params: z.ZodRecord<z.ZodString, z.ZodString
|
|
25
|
+
}>>;
|
|
26
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
27
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
method: string;
|
|
30
30
|
url: string;
|
|
31
|
-
|
|
32
|
-
payload: {
|
|
31
|
+
payload?: {
|
|
33
32
|
value: string;
|
|
34
33
|
kind: "TEMPLATE";
|
|
35
34
|
format: "JSON";
|
|
36
|
-
};
|
|
37
|
-
headers
|
|
35
|
+
} | undefined;
|
|
36
|
+
headers?: Record<string, string> | undefined;
|
|
37
|
+
params?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
method: string;
|
|
40
40
|
url: string;
|
|
41
|
-
|
|
42
|
-
payload: {
|
|
41
|
+
payload?: {
|
|
43
42
|
value: string;
|
|
44
43
|
kind: "TEMPLATE";
|
|
45
44
|
format: "JSON";
|
|
46
|
-
};
|
|
47
|
-
headers
|
|
45
|
+
} | undefined;
|
|
46
|
+
headers?: Record<string, string> | undefined;
|
|
47
|
+
params?: Record<string, string> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
request: {
|
|
52
52
|
method: string;
|
|
53
53
|
url: string;
|
|
54
|
-
|
|
55
|
-
payload: {
|
|
54
|
+
payload?: {
|
|
56
55
|
value: string;
|
|
57
56
|
kind: "TEMPLATE";
|
|
58
57
|
format: "JSON";
|
|
59
|
-
};
|
|
60
|
-
headers
|
|
58
|
+
} | undefined;
|
|
59
|
+
headers?: Record<string, string> | undefined;
|
|
60
|
+
params?: Record<string, string> | undefined;
|
|
61
61
|
};
|
|
62
62
|
timeout?: number | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
request: {
|
|
65
65
|
method: string;
|
|
66
66
|
url: string;
|
|
67
|
-
|
|
68
|
-
payload: {
|
|
67
|
+
payload?: {
|
|
69
68
|
value: string;
|
|
70
69
|
kind: "TEMPLATE";
|
|
71
70
|
format: "JSON";
|
|
72
|
-
};
|
|
73
|
-
headers
|
|
71
|
+
} | undefined;
|
|
72
|
+
headers?: Record<string, string> | undefined;
|
|
73
|
+
params?: Record<string, string> | undefined;
|
|
74
74
|
};
|
|
75
75
|
timeout?: number | undefined;
|
|
76
76
|
}>;
|
|
@@ -91,7 +91,6 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
91
91
|
}>>;
|
|
92
92
|
tid: z.ZodString;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
description: string;
|
|
95
94
|
id: string;
|
|
96
95
|
tid: string;
|
|
97
96
|
createdAt: string;
|
|
@@ -102,25 +101,25 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
102
101
|
request: {
|
|
103
102
|
method: string;
|
|
104
103
|
url: string;
|
|
105
|
-
|
|
106
|
-
payload: {
|
|
104
|
+
payload?: {
|
|
107
105
|
value: string;
|
|
108
106
|
kind: "TEMPLATE";
|
|
109
107
|
format: "JSON";
|
|
110
|
-
};
|
|
111
|
-
headers
|
|
108
|
+
} | undefined;
|
|
109
|
+
headers?: Record<string, string> | undefined;
|
|
110
|
+
params?: Record<string, string> | undefined;
|
|
112
111
|
};
|
|
113
112
|
timeout?: number | undefined;
|
|
114
113
|
};
|
|
115
114
|
isTemplate: boolean;
|
|
116
115
|
kind: "REST_ACTION";
|
|
116
|
+
description?: string | undefined;
|
|
117
117
|
retryStrategy?: {
|
|
118
118
|
kind: "CONSTANT_BACKOFF";
|
|
119
119
|
maxRetries: number;
|
|
120
120
|
delay: number;
|
|
121
121
|
} | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
description: string;
|
|
124
123
|
id: string;
|
|
125
124
|
tid: string;
|
|
126
125
|
createdAt: string;
|
|
@@ -131,18 +130,19 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
131
130
|
request: {
|
|
132
131
|
method: string;
|
|
133
132
|
url: string;
|
|
134
|
-
|
|
135
|
-
payload: {
|
|
133
|
+
payload?: {
|
|
136
134
|
value: string;
|
|
137
135
|
kind: "TEMPLATE";
|
|
138
136
|
format: "JSON";
|
|
139
|
-
};
|
|
140
|
-
headers
|
|
137
|
+
} | undefined;
|
|
138
|
+
headers?: Record<string, string> | undefined;
|
|
139
|
+
params?: Record<string, string> | undefined;
|
|
141
140
|
};
|
|
142
141
|
timeout?: number | undefined;
|
|
143
142
|
};
|
|
144
143
|
isTemplate: boolean;
|
|
145
144
|
kind: "REST_ACTION";
|
|
145
|
+
description?: string | undefined;
|
|
146
146
|
retryStrategy?: {
|
|
147
147
|
kind: "CONSTANT_BACKOFF";
|
|
148
148
|
maxRetries: number;
|
|
@@ -151,7 +151,7 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
151
151
|
}>;
|
|
152
152
|
export type PlatformCustomActionDto = z.infer<typeof _PlatformCustomActionDto>;
|
|
153
153
|
export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
154
|
-
description: z.ZodString
|
|
154
|
+
description: z.ZodOptional<z.ZodString>;
|
|
155
155
|
id: z.ZodOptional<z.ZodString>;
|
|
156
156
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
157
157
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -161,7 +161,7 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
161
161
|
request: z.ZodObject<{
|
|
162
162
|
url: z.ZodString;
|
|
163
163
|
method: z.ZodString;
|
|
164
|
-
payload: z.ZodObject<{
|
|
164
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
165
165
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
166
166
|
format: z.ZodLiteral<"JSON">;
|
|
167
167
|
value: z.ZodString;
|
|
@@ -173,55 +173,55 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
173
173
|
value: string;
|
|
174
174
|
kind: "TEMPLATE";
|
|
175
175
|
format: "JSON";
|
|
176
|
-
}
|
|
177
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
178
|
-
params: z.ZodRecord<z.ZodString, z.ZodString
|
|
176
|
+
}>>;
|
|
177
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
178
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
method: string;
|
|
181
181
|
url: string;
|
|
182
|
-
|
|
183
|
-
payload: {
|
|
182
|
+
payload?: {
|
|
184
183
|
value: string;
|
|
185
184
|
kind: "TEMPLATE";
|
|
186
185
|
format: "JSON";
|
|
187
|
-
};
|
|
188
|
-
headers
|
|
186
|
+
} | undefined;
|
|
187
|
+
headers?: Record<string, string> | undefined;
|
|
188
|
+
params?: Record<string, string> | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
method: string;
|
|
191
191
|
url: string;
|
|
192
|
-
|
|
193
|
-
payload: {
|
|
192
|
+
payload?: {
|
|
194
193
|
value: string;
|
|
195
194
|
kind: "TEMPLATE";
|
|
196
195
|
format: "JSON";
|
|
197
|
-
};
|
|
198
|
-
headers
|
|
196
|
+
} | undefined;
|
|
197
|
+
headers?: Record<string, string> | undefined;
|
|
198
|
+
params?: Record<string, string> | undefined;
|
|
199
199
|
}>;
|
|
200
200
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
202
|
request: {
|
|
203
203
|
method: string;
|
|
204
204
|
url: string;
|
|
205
|
-
|
|
206
|
-
payload: {
|
|
205
|
+
payload?: {
|
|
207
206
|
value: string;
|
|
208
207
|
kind: "TEMPLATE";
|
|
209
208
|
format: "JSON";
|
|
210
|
-
};
|
|
211
|
-
headers
|
|
209
|
+
} | undefined;
|
|
210
|
+
headers?: Record<string, string> | undefined;
|
|
211
|
+
params?: Record<string, string> | undefined;
|
|
212
212
|
};
|
|
213
213
|
timeout?: number | undefined;
|
|
214
214
|
}, {
|
|
215
215
|
request: {
|
|
216
216
|
method: string;
|
|
217
217
|
url: string;
|
|
218
|
-
|
|
219
|
-
payload: {
|
|
218
|
+
payload?: {
|
|
220
219
|
value: string;
|
|
221
220
|
kind: "TEMPLATE";
|
|
222
221
|
format: "JSON";
|
|
223
|
-
};
|
|
224
|
-
headers
|
|
222
|
+
} | undefined;
|
|
223
|
+
headers?: Record<string, string> | undefined;
|
|
224
|
+
params?: Record<string, string> | undefined;
|
|
225
225
|
};
|
|
226
226
|
timeout?: number | undefined;
|
|
227
227
|
}>;
|
|
@@ -242,25 +242,25 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
242
242
|
}>>;
|
|
243
243
|
tid: z.ZodString;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
description: string;
|
|
246
245
|
tid: string;
|
|
247
246
|
displayValue: string;
|
|
248
247
|
meta: {
|
|
249
248
|
request: {
|
|
250
249
|
method: string;
|
|
251
250
|
url: string;
|
|
252
|
-
|
|
253
|
-
payload: {
|
|
251
|
+
payload?: {
|
|
254
252
|
value: string;
|
|
255
253
|
kind: "TEMPLATE";
|
|
256
254
|
format: "JSON";
|
|
257
|
-
};
|
|
258
|
-
headers
|
|
255
|
+
} | undefined;
|
|
256
|
+
headers?: Record<string, string> | undefined;
|
|
257
|
+
params?: Record<string, string> | undefined;
|
|
259
258
|
};
|
|
260
259
|
timeout?: number | undefined;
|
|
261
260
|
};
|
|
262
261
|
isTemplate: boolean;
|
|
263
262
|
kind: "REST_ACTION";
|
|
263
|
+
description?: string | undefined;
|
|
264
264
|
id?: string | undefined;
|
|
265
265
|
createdAt?: string | undefined;
|
|
266
266
|
updatedAt?: string | undefined;
|
|
@@ -271,25 +271,25 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
271
271
|
delay: number;
|
|
272
272
|
} | undefined;
|
|
273
273
|
}, {
|
|
274
|
-
description: string;
|
|
275
274
|
tid: string;
|
|
276
275
|
displayValue: string;
|
|
277
276
|
meta: {
|
|
278
277
|
request: {
|
|
279
278
|
method: string;
|
|
280
279
|
url: string;
|
|
281
|
-
|
|
282
|
-
payload: {
|
|
280
|
+
payload?: {
|
|
283
281
|
value: string;
|
|
284
282
|
kind: "TEMPLATE";
|
|
285
283
|
format: "JSON";
|
|
286
|
-
};
|
|
287
|
-
headers
|
|
284
|
+
} | undefined;
|
|
285
|
+
headers?: Record<string, string> | undefined;
|
|
286
|
+
params?: Record<string, string> | undefined;
|
|
288
287
|
};
|
|
289
288
|
timeout?: number | undefined;
|
|
290
289
|
};
|
|
291
290
|
isTemplate: boolean;
|
|
292
291
|
kind: "REST_ACTION";
|
|
292
|
+
description?: string | undefined;
|
|
293
293
|
id?: string | undefined;
|
|
294
294
|
createdAt?: string | undefined;
|
|
295
295
|
updatedAt?: string | undefined;
|