@ampsec/platform-client 62.7.0 → 62.9.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/base.dto.d.ts +6 -0
- package/build/src/dto/base.dto.js +8 -2
- package/build/src/dto/base.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +365 -0
- package/build/src/dto/customActions.dto.js +40 -0
- package/build/src/dto/customActions.dto.js.map +1 -0
- package/build/src/dto/customScores.dto.d.ts +153 -0
- package/build/src/dto/customScores.dto.js +17 -0
- package/build/src/dto/customScores.dto.js.map +1 -0
- package/build/src/dto/findings.dto.d.ts +88 -0
- package/build/src/dto/findings.dto.js +25 -0
- package/build/src/dto/findings.dto.js.map +1 -1
- package/build/src/dto/flows.dto.d.ts +19 -0
- package/build/src/dto/flows.dto.js +9 -10
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/index.d.ts +2 -0
- package/build/src/dto/index.js +2 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/notification.dto.d.ts +121 -121
- package/build/src/dto/notification.dto.js +1 -1
- package/build/src/dto/notification.dto.js.map +1 -1
- package/build/src/dto/platform/index.d.ts +2 -0
- package/build/src/dto/platform/index.js +2 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +303 -0
- package/build/src/dto/platform/platform.customActions.dto.js +12 -0
- package/build/src/dto/platform/platform.customActions.dto.js.map +1 -0
- package/build/src/dto/platform/platform.customScores.dto.d.ts +165 -0
- package/build/src/dto/platform/platform.customScores.dto.js +18 -0
- package/build/src/dto/platform/platform.customScores.dto.js.map +1 -0
- package/build/src/dto/platform/platform.findings.dto.d.ts +77 -0
- package/build/src/dto/platform/platform.findings.dto.js +9 -0
- package/build/src/dto/platform/platform.findings.dto.js.map +1 -1
- package/build/src/services/AmpApi.d.ts +5 -1
- package/build/src/services/AmpApi.js +4 -0
- package/build/src/services/AmpApi.js.map +1 -1
- package/build/src/services/AmpSdk.d.ts +5 -4
- package/build/src/services/AmpSdk.js +4 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/constants.d.ts +4 -0
- package/build/src/services/constants.js +4 -0
- package/build/src/services/constants.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/base.dto.ts +7 -2
- package/src/dto/customActions.dto.ts +44 -0
- package/src/dto/customScores.dto.ts +21 -0
- package/src/dto/findings.dto.ts +29 -1
- package/src/dto/flows.dto.ts +8 -11
- package/src/dto/index.ts +2 -0
- package/src/dto/notification.dto.ts +1 -1
- package/src/dto/platform/index.ts +2 -0
- package/src/dto/platform/platform.customActions.dto.ts +12 -0
- package/src/dto/platform/platform.customScores.dto.ts +22 -0
- package/src/dto/platform/platform.findings.dto.ts +12 -1
- package/src/services/AmpApi.ts +29 -1
- package/src/services/AmpSdk.ts +24 -3
- package/src/services/constants.ts +4 -0
|
@@ -29,7 +29,7 @@ exports._NotificationAddress = zod_1.z.object({
|
|
|
29
29
|
users: zod_1.z.array(zod_1.z.union([zod_1.z.string(), zod_1.z.number()])).optional(),
|
|
30
30
|
webhooks: zod_1.z.array(zod_1.z.string()).optional(),
|
|
31
31
|
});
|
|
32
|
-
exports._FlowContextKey = zod_1.z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED']);
|
|
32
|
+
exports._FlowContextKey = zod_1.z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED', 'REMINDER_COUNT']);
|
|
33
33
|
exports._FlowContext = zod_1.z.record(exports._FlowContextKey, zod_1.z.any());
|
|
34
34
|
exports._RawContentStrategy = zod_1.z.object({
|
|
35
35
|
kind: zod_1.z.literal(ContentStrategyKind.RAW),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../../src/dto/notification.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCA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ors.dto';
|
|
4
|
+
export * from './platform.customActions.dto';
|
|
5
|
+
export * from './platform.customScores.dto';
|
|
4
6
|
export * from './platform.findingsInsights.dto';
|
|
5
7
|
export * from './platform.findings.dto';
|
|
6
8
|
export * from './platform.flows.dto';
|
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./platform.agents.dto"), exports);
|
|
18
18
|
__exportStar(require("./platform.assets.dto"), exports);
|
|
19
19
|
__exportStar(require("./platform.connectors.dto"), exports);
|
|
20
|
+
__exportStar(require("./platform.customActions.dto"), exports);
|
|
21
|
+
__exportStar(require("./platform.customScores.dto"), exports);
|
|
20
22
|
__exportStar(require("./platform.findingsInsights.dto"), exports);
|
|
21
23
|
__exportStar(require("./platform.findings.dto"), exports);
|
|
22
24
|
__exportStar(require("./platform.flows.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
3
|
+
description: z.ZodString;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodString;
|
|
7
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
displayValue: z.ZodString;
|
|
9
|
+
meta: z.ZodObject<{
|
|
10
|
+
request: z.ZodObject<{
|
|
11
|
+
url: z.ZodString;
|
|
12
|
+
method: z.ZodString;
|
|
13
|
+
payload: z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"TEMPLATE">;
|
|
15
|
+
format: z.ZodLiteral<"JSON">;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
value: string;
|
|
19
|
+
kind: "TEMPLATE";
|
|
20
|
+
format: "JSON";
|
|
21
|
+
}, {
|
|
22
|
+
value: string;
|
|
23
|
+
kind: "TEMPLATE";
|
|
24
|
+
format: "JSON";
|
|
25
|
+
}>;
|
|
26
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
27
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
method: string;
|
|
30
|
+
url: string;
|
|
31
|
+
params: Record<string, string>;
|
|
32
|
+
payload: {
|
|
33
|
+
value: string;
|
|
34
|
+
kind: "TEMPLATE";
|
|
35
|
+
format: "JSON";
|
|
36
|
+
};
|
|
37
|
+
headers: Record<string, string>;
|
|
38
|
+
}, {
|
|
39
|
+
method: string;
|
|
40
|
+
url: string;
|
|
41
|
+
params: Record<string, string>;
|
|
42
|
+
payload: {
|
|
43
|
+
value: string;
|
|
44
|
+
kind: "TEMPLATE";
|
|
45
|
+
format: "JSON";
|
|
46
|
+
};
|
|
47
|
+
headers: Record<string, string>;
|
|
48
|
+
}>;
|
|
49
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
request: {
|
|
52
|
+
method: string;
|
|
53
|
+
url: string;
|
|
54
|
+
params: Record<string, string>;
|
|
55
|
+
payload: {
|
|
56
|
+
value: string;
|
|
57
|
+
kind: "TEMPLATE";
|
|
58
|
+
format: "JSON";
|
|
59
|
+
};
|
|
60
|
+
headers: Record<string, string>;
|
|
61
|
+
};
|
|
62
|
+
timeout?: number | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
request: {
|
|
65
|
+
method: string;
|
|
66
|
+
url: string;
|
|
67
|
+
params: Record<string, string>;
|
|
68
|
+
payload: {
|
|
69
|
+
value: string;
|
|
70
|
+
kind: "TEMPLATE";
|
|
71
|
+
format: "JSON";
|
|
72
|
+
};
|
|
73
|
+
headers: Record<string, string>;
|
|
74
|
+
};
|
|
75
|
+
timeout?: number | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
isTemplate: z.ZodBoolean;
|
|
78
|
+
kind: z.ZodLiteral<"REST_ACTION">;
|
|
79
|
+
retryStrategy: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"CONSTANT_BACKOFF">;
|
|
81
|
+
maxRetries: z.ZodNumber;
|
|
82
|
+
delay: z.ZodNumber;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
kind: "CONSTANT_BACKOFF";
|
|
85
|
+
maxRetries: number;
|
|
86
|
+
delay: number;
|
|
87
|
+
}, {
|
|
88
|
+
kind: "CONSTANT_BACKOFF";
|
|
89
|
+
maxRetries: number;
|
|
90
|
+
delay: number;
|
|
91
|
+
}>>;
|
|
92
|
+
tid: z.ZodString;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
description: string;
|
|
95
|
+
id: string;
|
|
96
|
+
tid: string;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
deletedAt: string | null;
|
|
100
|
+
displayValue: string;
|
|
101
|
+
meta: {
|
|
102
|
+
request: {
|
|
103
|
+
method: string;
|
|
104
|
+
url: string;
|
|
105
|
+
params: Record<string, string>;
|
|
106
|
+
payload: {
|
|
107
|
+
value: string;
|
|
108
|
+
kind: "TEMPLATE";
|
|
109
|
+
format: "JSON";
|
|
110
|
+
};
|
|
111
|
+
headers: Record<string, string>;
|
|
112
|
+
};
|
|
113
|
+
timeout?: number | undefined;
|
|
114
|
+
};
|
|
115
|
+
isTemplate: boolean;
|
|
116
|
+
kind: "REST_ACTION";
|
|
117
|
+
retryStrategy?: {
|
|
118
|
+
kind: "CONSTANT_BACKOFF";
|
|
119
|
+
maxRetries: number;
|
|
120
|
+
delay: number;
|
|
121
|
+
} | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
description: string;
|
|
124
|
+
id: string;
|
|
125
|
+
tid: string;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
deletedAt: string | null;
|
|
129
|
+
displayValue: string;
|
|
130
|
+
meta: {
|
|
131
|
+
request: {
|
|
132
|
+
method: string;
|
|
133
|
+
url: string;
|
|
134
|
+
params: Record<string, string>;
|
|
135
|
+
payload: {
|
|
136
|
+
value: string;
|
|
137
|
+
kind: "TEMPLATE";
|
|
138
|
+
format: "JSON";
|
|
139
|
+
};
|
|
140
|
+
headers: Record<string, string>;
|
|
141
|
+
};
|
|
142
|
+
timeout?: number | undefined;
|
|
143
|
+
};
|
|
144
|
+
isTemplate: boolean;
|
|
145
|
+
kind: "REST_ACTION";
|
|
146
|
+
retryStrategy?: {
|
|
147
|
+
kind: "CONSTANT_BACKOFF";
|
|
148
|
+
maxRetries: number;
|
|
149
|
+
delay: number;
|
|
150
|
+
} | undefined;
|
|
151
|
+
}>;
|
|
152
|
+
export type PlatformCustomActionDto = z.infer<typeof _PlatformCustomActionDto>;
|
|
153
|
+
export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
154
|
+
description: z.ZodString;
|
|
155
|
+
id: z.ZodOptional<z.ZodString>;
|
|
156
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
157
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
158
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
displayValue: z.ZodString;
|
|
160
|
+
meta: z.ZodObject<{
|
|
161
|
+
request: z.ZodObject<{
|
|
162
|
+
url: z.ZodString;
|
|
163
|
+
method: z.ZodString;
|
|
164
|
+
payload: z.ZodObject<{
|
|
165
|
+
kind: z.ZodLiteral<"TEMPLATE">;
|
|
166
|
+
format: z.ZodLiteral<"JSON">;
|
|
167
|
+
value: z.ZodString;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
value: string;
|
|
170
|
+
kind: "TEMPLATE";
|
|
171
|
+
format: "JSON";
|
|
172
|
+
}, {
|
|
173
|
+
value: string;
|
|
174
|
+
kind: "TEMPLATE";
|
|
175
|
+
format: "JSON";
|
|
176
|
+
}>;
|
|
177
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
178
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
method: string;
|
|
181
|
+
url: string;
|
|
182
|
+
params: Record<string, string>;
|
|
183
|
+
payload: {
|
|
184
|
+
value: string;
|
|
185
|
+
kind: "TEMPLATE";
|
|
186
|
+
format: "JSON";
|
|
187
|
+
};
|
|
188
|
+
headers: Record<string, string>;
|
|
189
|
+
}, {
|
|
190
|
+
method: string;
|
|
191
|
+
url: string;
|
|
192
|
+
params: Record<string, string>;
|
|
193
|
+
payload: {
|
|
194
|
+
value: string;
|
|
195
|
+
kind: "TEMPLATE";
|
|
196
|
+
format: "JSON";
|
|
197
|
+
};
|
|
198
|
+
headers: Record<string, string>;
|
|
199
|
+
}>;
|
|
200
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
request: {
|
|
203
|
+
method: string;
|
|
204
|
+
url: string;
|
|
205
|
+
params: Record<string, string>;
|
|
206
|
+
payload: {
|
|
207
|
+
value: string;
|
|
208
|
+
kind: "TEMPLATE";
|
|
209
|
+
format: "JSON";
|
|
210
|
+
};
|
|
211
|
+
headers: Record<string, string>;
|
|
212
|
+
};
|
|
213
|
+
timeout?: number | undefined;
|
|
214
|
+
}, {
|
|
215
|
+
request: {
|
|
216
|
+
method: string;
|
|
217
|
+
url: string;
|
|
218
|
+
params: Record<string, string>;
|
|
219
|
+
payload: {
|
|
220
|
+
value: string;
|
|
221
|
+
kind: "TEMPLATE";
|
|
222
|
+
format: "JSON";
|
|
223
|
+
};
|
|
224
|
+
headers: Record<string, string>;
|
|
225
|
+
};
|
|
226
|
+
timeout?: number | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
isTemplate: z.ZodBoolean;
|
|
229
|
+
kind: z.ZodLiteral<"REST_ACTION">;
|
|
230
|
+
retryStrategy: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
kind: z.ZodLiteral<"CONSTANT_BACKOFF">;
|
|
232
|
+
maxRetries: z.ZodNumber;
|
|
233
|
+
delay: z.ZodNumber;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
kind: "CONSTANT_BACKOFF";
|
|
236
|
+
maxRetries: number;
|
|
237
|
+
delay: number;
|
|
238
|
+
}, {
|
|
239
|
+
kind: "CONSTANT_BACKOFF";
|
|
240
|
+
maxRetries: number;
|
|
241
|
+
delay: number;
|
|
242
|
+
}>>;
|
|
243
|
+
tid: z.ZodString;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
description: string;
|
|
246
|
+
tid: string;
|
|
247
|
+
displayValue: string;
|
|
248
|
+
meta: {
|
|
249
|
+
request: {
|
|
250
|
+
method: string;
|
|
251
|
+
url: string;
|
|
252
|
+
params: Record<string, string>;
|
|
253
|
+
payload: {
|
|
254
|
+
value: string;
|
|
255
|
+
kind: "TEMPLATE";
|
|
256
|
+
format: "JSON";
|
|
257
|
+
};
|
|
258
|
+
headers: Record<string, string>;
|
|
259
|
+
};
|
|
260
|
+
timeout?: number | undefined;
|
|
261
|
+
};
|
|
262
|
+
isTemplate: boolean;
|
|
263
|
+
kind: "REST_ACTION";
|
|
264
|
+
id?: string | undefined;
|
|
265
|
+
createdAt?: string | undefined;
|
|
266
|
+
updatedAt?: string | undefined;
|
|
267
|
+
deletedAt?: string | null | undefined;
|
|
268
|
+
retryStrategy?: {
|
|
269
|
+
kind: "CONSTANT_BACKOFF";
|
|
270
|
+
maxRetries: number;
|
|
271
|
+
delay: number;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
description: string;
|
|
275
|
+
tid: string;
|
|
276
|
+
displayValue: string;
|
|
277
|
+
meta: {
|
|
278
|
+
request: {
|
|
279
|
+
method: string;
|
|
280
|
+
url: string;
|
|
281
|
+
params: Record<string, string>;
|
|
282
|
+
payload: {
|
|
283
|
+
value: string;
|
|
284
|
+
kind: "TEMPLATE";
|
|
285
|
+
format: "JSON";
|
|
286
|
+
};
|
|
287
|
+
headers: Record<string, string>;
|
|
288
|
+
};
|
|
289
|
+
timeout?: number | undefined;
|
|
290
|
+
};
|
|
291
|
+
isTemplate: boolean;
|
|
292
|
+
kind: "REST_ACTION";
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
createdAt?: string | undefined;
|
|
295
|
+
updatedAt?: string | undefined;
|
|
296
|
+
deletedAt?: string | null | undefined;
|
|
297
|
+
retryStrategy?: {
|
|
298
|
+
kind: "CONSTANT_BACKOFF";
|
|
299
|
+
maxRetries: number;
|
|
300
|
+
delay: number;
|
|
301
|
+
} | undefined;
|
|
302
|
+
}>;
|
|
303
|
+
export type PlatformCustomActionUpsertDto = z.infer<typeof _PlatformCustomActionUpsertDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformCustomActionUpsertDto = exports._PlatformCustomActionDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const customActions_dto_1 = require("../customActions.dto");
|
|
6
|
+
exports._PlatformCustomActionDto = customActions_dto_1._CustomActionDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformCustomActionUpsertDto = customActions_dto_1._CustomActionUpsertDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=platform.customActions.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.customActions.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.customActions.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,4DAA8E;AAEjE,QAAA,wBAAwB,GAAG,oCAAgB,CAAC,MAAM,CAAC;IAC9D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,0CAAsB,CAAC,MAAM,CAAC;IAC1E,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformCustomScoreValueDto: z.ZodObject<{
|
|
3
|
+
value: z.ZodNumber;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodString;
|
|
7
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
findingSpecId: z.ZodString;
|
|
9
|
+
tid: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
value: number;
|
|
12
|
+
id: string;
|
|
13
|
+
tid: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
deletedAt: string | null;
|
|
17
|
+
findingSpecId: string;
|
|
18
|
+
}, {
|
|
19
|
+
value: number;
|
|
20
|
+
id: string;
|
|
21
|
+
tid: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
findingSpecId: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type PlatformCustomScoreValueDto = z.infer<typeof _PlatformCustomScoreValueDto>;
|
|
28
|
+
export declare const _PlatformCustomScoreValueUpsertDto: z.ZodObject<{
|
|
29
|
+
value: z.ZodNumber;
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
32
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
findingSpecId: z.ZodString;
|
|
35
|
+
tid: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
value: number;
|
|
38
|
+
tid: string;
|
|
39
|
+
findingSpecId: string;
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
createdAt?: string | undefined;
|
|
42
|
+
updatedAt?: string | undefined;
|
|
43
|
+
deletedAt?: string | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
value: number;
|
|
46
|
+
tid: string;
|
|
47
|
+
findingSpecId: string;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
createdAt?: string | undefined;
|
|
50
|
+
updatedAt?: string | undefined;
|
|
51
|
+
deletedAt?: string | null | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export type PlatformCustomScoreValueUpsertDto = z.infer<typeof _PlatformCustomScoreValueUpsertDto>;
|
|
54
|
+
export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
+
cohort: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
62
|
+
displayValue: z.ZodString;
|
|
63
|
+
value: z.ZodString;
|
|
64
|
+
inclusive: z.ZodBoolean;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
inclusive: boolean;
|
|
67
|
+
value: string;
|
|
68
|
+
id: string;
|
|
69
|
+
displayValue: string;
|
|
70
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
71
|
+
}, {
|
|
72
|
+
inclusive: boolean;
|
|
73
|
+
value: string;
|
|
74
|
+
id: string;
|
|
75
|
+
displayValue: string;
|
|
76
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
77
|
+
}>;
|
|
78
|
+
multiplier: z.ZodNumber;
|
|
79
|
+
tid: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
id: string;
|
|
82
|
+
tid: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
deletedAt: string | null;
|
|
86
|
+
cohort: {
|
|
87
|
+
inclusive: boolean;
|
|
88
|
+
value: string;
|
|
89
|
+
id: string;
|
|
90
|
+
displayValue: string;
|
|
91
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
92
|
+
};
|
|
93
|
+
multiplier: number;
|
|
94
|
+
}, {
|
|
95
|
+
id: string;
|
|
96
|
+
tid: string;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
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
|
+
};
|
|
107
|
+
multiplier: number;
|
|
108
|
+
}>;
|
|
109
|
+
export type PlatformCustomScoreCohortDto = z.infer<typeof _PlatformCustomScoreCohortDto>;
|
|
110
|
+
export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
createdAt: z.ZodString;
|
|
113
|
+
updatedAt: z.ZodString;
|
|
114
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
115
|
+
cohort: z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
118
|
+
displayValue: z.ZodString;
|
|
119
|
+
value: z.ZodString;
|
|
120
|
+
inclusive: z.ZodBoolean;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
inclusive: boolean;
|
|
123
|
+
value: string;
|
|
124
|
+
id: string;
|
|
125
|
+
displayValue: string;
|
|
126
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
127
|
+
}, {
|
|
128
|
+
inclusive: boolean;
|
|
129
|
+
value: string;
|
|
130
|
+
id: string;
|
|
131
|
+
displayValue: string;
|
|
132
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
133
|
+
}>;
|
|
134
|
+
multiplier: z.ZodNumber;
|
|
135
|
+
tid: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
id: string;
|
|
138
|
+
tid: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
deletedAt: string | null;
|
|
142
|
+
cohort: {
|
|
143
|
+
inclusive: boolean;
|
|
144
|
+
value: string;
|
|
145
|
+
id: string;
|
|
146
|
+
displayValue: string;
|
|
147
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
148
|
+
};
|
|
149
|
+
multiplier: number;
|
|
150
|
+
}, {
|
|
151
|
+
id: string;
|
|
152
|
+
tid: string;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
deletedAt: string | null;
|
|
156
|
+
cohort: {
|
|
157
|
+
inclusive: boolean;
|
|
158
|
+
value: string;
|
|
159
|
+
id: string;
|
|
160
|
+
displayValue: string;
|
|
161
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
162
|
+
};
|
|
163
|
+
multiplier: number;
|
|
164
|
+
}>;
|
|
165
|
+
export type PlatformCustomScoreCohortUpsertDto = z.infer<typeof _PlatformCustomScoreCohortUpsertDto>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformCustomScoreCohortUpsertDto = exports._PlatformCustomScoreCohortDto = exports._PlatformCustomScoreValueUpsertDto = exports._PlatformCustomScoreValueDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const customScores_dto_1 = require("../customScores.dto");
|
|
6
|
+
exports._PlatformCustomScoreValueDto = customScores_dto_1._CustomScoreValueDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformCustomScoreValueUpsertDto = customScores_dto_1._CustomScoreValueUpsertDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports._PlatformCustomScoreCohortDto = customScores_dto_1._CustomScoreCohortDto.extend({
|
|
13
|
+
tid: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
exports._PlatformCustomScoreCohortUpsertDto = customScores_dto_1._CustomScoreCohortDto.extend({
|
|
16
|
+
tid: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=platform.customScores.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.customScores.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,0DAAyI;AAE5H,QAAA,4BAA4B,GAAG,uCAAoB,CAAC,MAAM,CAAC;IACtE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,kCAAkC,GAAG,6CAA0B,CAAC,MAAM,CAAC;IAClF,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,wCAAqB,CAAC,MAAM,CAAC;IACxE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,wCAAqB,CAAC,MAAM,CAAC;IAC9E,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -1,4 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { FindingDto, FindingUpsertDto } from '../findings.dto';
|
|
2
3
|
import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
|
|
3
4
|
export type PlatformFindingUpsertDto = FindingUpsertDto & UpsertTenantBased;
|
|
4
5
|
export type PlatformFindingDto = FindingDto & TenantBased;
|
|
6
|
+
export declare const _PlatformFindingSpecDto: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodUnion<[z.ZodString, z.ZodUnknown]>;
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
displayValue: z.ZodString;
|
|
15
|
+
eventType: z.ZodString;
|
|
16
|
+
severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
|
|
17
|
+
tid: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
tid: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
displayValue: string;
|
|
26
|
+
eventType: string;
|
|
27
|
+
severity: import("..").FindingSeverity;
|
|
28
|
+
description?: unknown;
|
|
29
|
+
cid?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name: string;
|
|
32
|
+
id: string;
|
|
33
|
+
tid: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
deletedAt: string | null;
|
|
37
|
+
displayValue: string;
|
|
38
|
+
eventType: string;
|
|
39
|
+
severity: import("..").FindingSeverity;
|
|
40
|
+
description?: unknown;
|
|
41
|
+
cid?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type PlatformFindingSpecDto = z.infer<typeof _PlatformFindingSpecDto>;
|
|
44
|
+
export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodUnion<[z.ZodString, z.ZodUnknown]>;
|
|
47
|
+
id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
displayValue: z.ZodString;
|
|
53
|
+
eventType: z.ZodString;
|
|
54
|
+
severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
|
|
55
|
+
tid: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
name: string;
|
|
58
|
+
tid: string;
|
|
59
|
+
displayValue: string;
|
|
60
|
+
eventType: string;
|
|
61
|
+
severity: import("..").FindingSeverity;
|
|
62
|
+
description?: unknown;
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
cid?: string | undefined;
|
|
65
|
+
createdAt?: string | undefined;
|
|
66
|
+
updatedAt?: string | undefined;
|
|
67
|
+
deletedAt?: string | null | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
name: string;
|
|
70
|
+
tid: string;
|
|
71
|
+
displayValue: string;
|
|
72
|
+
eventType: string;
|
|
73
|
+
severity: import("..").FindingSeverity;
|
|
74
|
+
description?: unknown;
|
|
75
|
+
id?: string | undefined;
|
|
76
|
+
cid?: string | undefined;
|
|
77
|
+
createdAt?: string | undefined;
|
|
78
|
+
updatedAt?: string | undefined;
|
|
79
|
+
deletedAt?: string | null | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export type PlatformFindingSpecUpsertDto = z.infer<typeof _PlatformFindingSpecUpsertDto>;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformFindingSpecUpsertDto = exports._PlatformFindingSpecDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const findings_dto_1 = require("../findings.dto");
|
|
6
|
+
exports._PlatformFindingSpecDto = findings_dto_1._FindingSpecDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformFindingSpecUpsertDto = findings_dto_1._FindingSpecUpsertDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
3
12
|
//# sourceMappingURL=platform.findings.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.findings.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.findings.dto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"platform.findings.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,kDAAqG;AAOxF,QAAA,uBAAuB,GAAG,8BAAe,CAAC,MAAM,CAAC;IAC5D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,oCAAqB,CAAC,MAAM,CAAC;IACxE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|