@ampsec/platform-client 70.0.0 → 70.2.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.
Files changed (33) hide show
  1. package/build/src/FilterCriteria.d.ts +82 -45
  2. package/build/src/dto/actionExecution.dto.d.ts +3 -2
  3. package/build/src/dto/agents.dto.d.ts +3 -2
  4. package/build/src/dto/assets.dto.d.ts +31 -10
  5. package/build/src/dto/base.dto.d.ts +6 -4
  6. package/build/src/dto/coverage.dto.d.ts +144 -106
  7. package/build/src/dto/customActions.dto.d.ts +32 -28
  8. package/build/src/dto/customScores.dto.d.ts +8 -4
  9. package/build/src/dto/eng/coverage.dto.d.ts +8 -8
  10. package/build/src/dto/findings.dto.d.ts +41 -40
  11. package/build/src/dto/flows.dto.d.ts +222 -179
  12. package/build/src/dto/notification.dto.d.ts +157 -134
  13. package/build/src/dto/page.dto.d.ts +5 -5
  14. package/build/src/dto/platform/platform.actionExecution.dto.d.ts +26 -12
  15. package/build/src/dto/platform/platform.agents.dto.d.ts +3 -2
  16. package/build/src/dto/platform/platform.customActions.dto.d.ts +36 -32
  17. package/build/src/dto/platform/platform.customScores.dto.d.ts +16 -9
  18. package/build/src/dto/platform/platform.findings.dto.d.ts +37 -34
  19. package/build/src/dto/platform/platform.flows.dto.d.ts +176 -136
  20. package/build/src/dto/platform/platform.saasAssets.dto.d.ts +29 -25
  21. package/build/src/dto/platform/platform.saasUsers.dto.d.ts +48 -44
  22. package/build/src/dto/platform/platform.tokens.dto.d.ts +21 -9
  23. package/build/src/dto/platform/tenant.based.dto.d.ts +6 -5
  24. package/build/src/dto/saasAssets.dto.d.ts +84 -58
  25. package/build/src/dto/saasUsers.dto.d.ts +131 -110
  26. package/build/src/dto/tokens.dto.d.ts +3 -2
  27. package/build/src/dto/users.dto.d.ts +8 -8
  28. package/build/src/services/contentful.service.d.ts +12 -12
  29. package/build/src/settings.d.ts +3 -0
  30. package/build/src/settings.js +3 -0
  31. package/build/src/settings.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/settings.ts +3 -0
@@ -21,59 +21,60 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  method: string;
23
23
  url: string;
24
+ params?: Record<string, string> | undefined;
24
25
  payload?: {
25
26
  value: string;
26
27
  kind: "TEMPLATE";
27
28
  format: "JSON";
28
29
  } | undefined;
29
30
  headers?: Record<string, string> | undefined;
30
- params?: Record<string, string> | undefined;
31
31
  }, {
32
32
  method: string;
33
33
  url: string;
34
+ params?: Record<string, string> | undefined;
34
35
  payload?: {
35
36
  value: string;
36
37
  kind: "TEMPLATE";
37
38
  format: "JSON";
38
39
  } | undefined;
39
40
  headers?: Record<string, string> | undefined;
40
- params?: Record<string, string> | undefined;
41
41
  }>;
42
42
  timeout: z.ZodOptional<z.ZodNumber>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  request: {
45
45
  method: string;
46
46
  url: string;
47
+ params?: Record<string, string> | undefined;
47
48
  payload?: {
48
49
  value: string;
49
50
  kind: "TEMPLATE";
50
51
  format: "JSON";
51
52
  } | undefined;
52
53
  headers?: Record<string, string> | undefined;
53
- params?: Record<string, string> | undefined;
54
54
  };
55
55
  timeout?: number | undefined;
56
56
  }, {
57
57
  request: {
58
58
  method: string;
59
59
  url: string;
60
+ params?: Record<string, string> | undefined;
60
61
  payload?: {
61
62
  value: string;
62
63
  kind: "TEMPLATE";
63
64
  format: "JSON";
64
65
  } | undefined;
65
66
  headers?: Record<string, string> | undefined;
66
- params?: Record<string, string> | undefined;
67
67
  };
68
68
  timeout?: number | undefined;
69
69
  }>;
70
- declare const _CustomRestActionDto: z.ZodObject<{
71
- description: z.ZodOptional<z.ZodString>;
70
+ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
72
71
  id: z.ZodString;
73
72
  createdAt: z.ZodString;
74
73
  updatedAt: z.ZodString;
75
74
  deletedAt: z.ZodNullable<z.ZodString>;
75
+ }, {
76
76
  displayValue: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
77
78
  isTemplate: z.ZodBoolean;
78
79
  retryStrategy: z.ZodOptional<z.ZodObject<{
79
80
  kind: z.ZodLiteral<"CONSTANT_BACKOFF">;
@@ -88,6 +89,7 @@ declare const _CustomRestActionDto: z.ZodObject<{
88
89
  maxRetries: number;
89
90
  delay: number;
90
91
  }>>;
92
+ }>, {
91
93
  kind: z.ZodLiteral<"REST_ACTION">;
92
94
  meta: z.ZodObject<{
93
95
  request: z.ZodObject<{
@@ -111,53 +113,53 @@ declare const _CustomRestActionDto: z.ZodObject<{
111
113
  }, "strip", z.ZodTypeAny, {
112
114
  method: string;
113
115
  url: string;
116
+ params?: Record<string, string> | undefined;
114
117
  payload?: {
115
118
  value: string;
116
119
  kind: "TEMPLATE";
117
120
  format: "JSON";
118
121
  } | undefined;
119
122
  headers?: Record<string, string> | undefined;
120
- params?: Record<string, string> | undefined;
121
123
  }, {
122
124
  method: string;
123
125
  url: string;
126
+ params?: Record<string, string> | undefined;
124
127
  payload?: {
125
128
  value: string;
126
129
  kind: "TEMPLATE";
127
130
  format: "JSON";
128
131
  } | undefined;
129
132
  headers?: Record<string, string> | undefined;
130
- params?: Record<string, string> | undefined;
131
133
  }>;
132
134
  timeout: z.ZodOptional<z.ZodNumber>;
133
135
  }, "strip", z.ZodTypeAny, {
134
136
  request: {
135
137
  method: string;
136
138
  url: string;
139
+ params?: Record<string, string> | undefined;
137
140
  payload?: {
138
141
  value: string;
139
142
  kind: "TEMPLATE";
140
143
  format: "JSON";
141
144
  } | undefined;
142
145
  headers?: Record<string, string> | undefined;
143
- params?: Record<string, string> | undefined;
144
146
  };
145
147
  timeout?: number | undefined;
146
148
  }, {
147
149
  request: {
148
150
  method: string;
149
151
  url: string;
152
+ params?: Record<string, string> | undefined;
150
153
  payload?: {
151
154
  value: string;
152
155
  kind: "TEMPLATE";
153
156
  format: "JSON";
154
157
  } | undefined;
155
158
  headers?: Record<string, string> | undefined;
156
- params?: Record<string, string> | undefined;
157
159
  };
158
160
  timeout?: number | undefined;
159
161
  }>;
160
- }, "strip", z.ZodTypeAny, {
162
+ }>, "strip", z.ZodTypeAny, {
161
163
  id: string;
162
164
  createdAt: string;
163
165
  updatedAt: string;
@@ -167,13 +169,13 @@ declare const _CustomRestActionDto: z.ZodObject<{
167
169
  request: {
168
170
  method: string;
169
171
  url: string;
172
+ params?: Record<string, string> | undefined;
170
173
  payload?: {
171
174
  value: string;
172
175
  kind: "TEMPLATE";
173
176
  format: "JSON";
174
177
  } | undefined;
175
178
  headers?: Record<string, string> | undefined;
176
- params?: Record<string, string> | undefined;
177
179
  };
178
180
  timeout?: number | undefined;
179
181
  };
@@ -195,13 +197,13 @@ declare const _CustomRestActionDto: z.ZodObject<{
195
197
  request: {
196
198
  method: string;
197
199
  url: string;
200
+ params?: Record<string, string> | undefined;
198
201
  payload?: {
199
202
  value: string;
200
203
  kind: "TEMPLATE";
201
204
  format: "JSON";
202
205
  } | undefined;
203
206
  headers?: Record<string, string> | undefined;
204
- params?: Record<string, string> | undefined;
205
207
  };
206
208
  timeout?: number | undefined;
207
209
  };
@@ -215,13 +217,14 @@ declare const _CustomRestActionDto: z.ZodObject<{
215
217
  } | undefined;
216
218
  }>;
217
219
  export type CustomRestActionDto = z.infer<typeof _CustomRestActionDto>;
218
- export declare const _CustomActionDto: z.ZodObject<{
219
- description: z.ZodOptional<z.ZodString>;
220
+ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
220
221
  id: z.ZodString;
221
222
  createdAt: z.ZodString;
222
223
  updatedAt: z.ZodString;
223
224
  deletedAt: z.ZodNullable<z.ZodString>;
225
+ }, {
224
226
  displayValue: z.ZodString;
227
+ description: z.ZodOptional<z.ZodString>;
225
228
  isTemplate: z.ZodBoolean;
226
229
  retryStrategy: z.ZodOptional<z.ZodObject<{
227
230
  kind: z.ZodLiteral<"CONSTANT_BACKOFF">;
@@ -236,6 +239,7 @@ export declare const _CustomActionDto: z.ZodObject<{
236
239
  maxRetries: number;
237
240
  delay: number;
238
241
  }>>;
242
+ }>, {
239
243
  kind: z.ZodLiteral<"REST_ACTION">;
240
244
  meta: z.ZodObject<{
241
245
  request: z.ZodObject<{
@@ -259,53 +263,53 @@ export declare const _CustomActionDto: z.ZodObject<{
259
263
  }, "strip", z.ZodTypeAny, {
260
264
  method: string;
261
265
  url: string;
266
+ params?: Record<string, string> | undefined;
262
267
  payload?: {
263
268
  value: string;
264
269
  kind: "TEMPLATE";
265
270
  format: "JSON";
266
271
  } | undefined;
267
272
  headers?: Record<string, string> | undefined;
268
- params?: Record<string, string> | undefined;
269
273
  }, {
270
274
  method: string;
271
275
  url: string;
276
+ params?: Record<string, string> | undefined;
272
277
  payload?: {
273
278
  value: string;
274
279
  kind: "TEMPLATE";
275
280
  format: "JSON";
276
281
  } | undefined;
277
282
  headers?: Record<string, string> | undefined;
278
- params?: Record<string, string> | undefined;
279
283
  }>;
280
284
  timeout: z.ZodOptional<z.ZodNumber>;
281
285
  }, "strip", z.ZodTypeAny, {
282
286
  request: {
283
287
  method: string;
284
288
  url: string;
289
+ params?: Record<string, string> | undefined;
285
290
  payload?: {
286
291
  value: string;
287
292
  kind: "TEMPLATE";
288
293
  format: "JSON";
289
294
  } | undefined;
290
295
  headers?: Record<string, string> | undefined;
291
- params?: Record<string, string> | undefined;
292
296
  };
293
297
  timeout?: number | undefined;
294
298
  }, {
295
299
  request: {
296
300
  method: string;
297
301
  url: string;
302
+ params?: Record<string, string> | undefined;
298
303
  payload?: {
299
304
  value: string;
300
305
  kind: "TEMPLATE";
301
306
  format: "JSON";
302
307
  } | undefined;
303
308
  headers?: Record<string, string> | undefined;
304
- params?: Record<string, string> | undefined;
305
309
  };
306
310
  timeout?: number | undefined;
307
311
  }>;
308
- }, "strip", z.ZodTypeAny, {
312
+ }>, "strip", z.ZodTypeAny, {
309
313
  id: string;
310
314
  createdAt: string;
311
315
  updatedAt: string;
@@ -315,13 +319,13 @@ export declare const _CustomActionDto: z.ZodObject<{
315
319
  request: {
316
320
  method: string;
317
321
  url: string;
322
+ params?: Record<string, string> | undefined;
318
323
  payload?: {
319
324
  value: string;
320
325
  kind: "TEMPLATE";
321
326
  format: "JSON";
322
327
  } | undefined;
323
328
  headers?: Record<string, string> | undefined;
324
- params?: Record<string, string> | undefined;
325
329
  };
326
330
  timeout?: number | undefined;
327
331
  };
@@ -343,13 +347,13 @@ export declare const _CustomActionDto: z.ZodObject<{
343
347
  request: {
344
348
  method: string;
345
349
  url: string;
350
+ params?: Record<string, string> | undefined;
346
351
  payload?: {
347
352
  value: string;
348
353
  kind: "TEMPLATE";
349
354
  format: "JSON";
350
355
  } | undefined;
351
356
  headers?: Record<string, string> | undefined;
352
- params?: Record<string, string> | undefined;
353
357
  };
354
358
  timeout?: number | undefined;
355
359
  };
@@ -392,49 +396,49 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
392
396
  }, "strip", z.ZodTypeAny, {
393
397
  method: string;
394
398
  url: string;
399
+ params?: Record<string, string> | undefined;
395
400
  payload?: {
396
401
  value: string;
397
402
  kind: "TEMPLATE";
398
403
  format: "JSON";
399
404
  } | undefined;
400
405
  headers?: Record<string, string> | undefined;
401
- params?: Record<string, string> | undefined;
402
406
  }, {
403
407
  method: string;
404
408
  url: string;
409
+ params?: Record<string, string> | undefined;
405
410
  payload?: {
406
411
  value: string;
407
412
  kind: "TEMPLATE";
408
413
  format: "JSON";
409
414
  } | undefined;
410
415
  headers?: Record<string, string> | undefined;
411
- params?: Record<string, string> | undefined;
412
416
  }>;
413
417
  timeout: z.ZodOptional<z.ZodNumber>;
414
418
  }, "strip", z.ZodTypeAny, {
415
419
  request: {
416
420
  method: string;
417
421
  url: string;
422
+ params?: Record<string, string> | undefined;
418
423
  payload?: {
419
424
  value: string;
420
425
  kind: "TEMPLATE";
421
426
  format: "JSON";
422
427
  } | undefined;
423
428
  headers?: Record<string, string> | undefined;
424
- params?: Record<string, string> | undefined;
425
429
  };
426
430
  timeout?: number | undefined;
427
431
  }, {
428
432
  request: {
429
433
  method: string;
430
434
  url: string;
435
+ params?: Record<string, string> | undefined;
431
436
  payload?: {
432
437
  value: string;
433
438
  kind: "TEMPLATE";
434
439
  format: "JSON";
435
440
  } | undefined;
436
441
  headers?: Record<string, string> | undefined;
437
- params?: Record<string, string> | undefined;
438
442
  };
439
443
  timeout?: number | undefined;
440
444
  }>;
@@ -459,13 +463,13 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
459
463
  request: {
460
464
  method: string;
461
465
  url: string;
466
+ params?: Record<string, string> | undefined;
462
467
  payload?: {
463
468
  value: string;
464
469
  kind: "TEMPLATE";
465
470
  format: "JSON";
466
471
  } | undefined;
467
472
  headers?: Record<string, string> | undefined;
468
- params?: Record<string, string> | undefined;
469
473
  };
470
474
  timeout?: number | undefined;
471
475
  };
@@ -487,13 +491,13 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
487
491
  request: {
488
492
  method: string;
489
493
  url: string;
494
+ params?: Record<string, string> | undefined;
490
495
  payload?: {
491
496
  value: string;
492
497
  kind: "TEMPLATE";
493
498
  format: "JSON";
494
499
  } | undefined;
495
500
  headers?: Record<string, string> | undefined;
496
- params?: Record<string, string> | undefined;
497
501
  };
498
502
  timeout?: number | undefined;
499
503
  };
@@ -1,13 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  /** @deprecated */
3
- export declare const _CustomScoreValueDto: z.ZodObject<{
3
+ export declare const _CustomScoreValueDto: z.ZodObject<z.objectUtil.extendShape<{
4
4
  id: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
+ /** @deprecated */
7
8
  deletedAt: z.ZodNullable<z.ZodString>;
9
+ }, {
8
10
  findingSpecId: z.ZodString;
9
11
  value: z.ZodNumber;
10
- }, "strip", z.ZodTypeAny, {
12
+ }>, "strip", z.ZodTypeAny, {
11
13
  value: number;
12
14
  id: string;
13
15
  createdAt: string;
@@ -49,11 +51,13 @@ export declare const _CustomScoreValueUpsertDto: z.ZodObject<{
49
51
  }>;
50
52
  /** @deprecated */
51
53
  export type CustomScoreValueUpsertDto = z.infer<typeof _CustomScoreValueUpsertDto>;
52
- export declare const _CustomScoreCohortDto: z.ZodObject<{
54
+ export declare const _CustomScoreCohortDto: z.ZodObject<z.objectUtil.extendShape<{
53
55
  id: z.ZodString;
54
56
  createdAt: z.ZodString;
55
57
  updatedAt: z.ZodString;
58
+ /** @deprecated */
56
59
  deletedAt: z.ZodNullable<z.ZodString>;
60
+ }, {
57
61
  cohort: z.ZodArray<z.ZodObject<{
58
62
  id: z.ZodString;
59
63
  kind: z.ZodNativeEnum<typeof import("./flows.dto").CohortKind>;
@@ -74,7 +78,7 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
74
78
  kind: import("./flows.dto").CohortKind;
75
79
  }>, "many">;
76
80
  multiplier: z.ZodNumber;
77
- }, "strip", z.ZodTypeAny, {
81
+ }>, "strip", z.ZodTypeAny, {
78
82
  id: string;
79
83
  createdAt: string;
80
84
  updatedAt: string;
@@ -19,18 +19,18 @@ export declare const _EndUserDeviceReportDto: z.ZodObject<{
19
19
  hasEndpointManagement: AssetDomainStatus;
20
20
  hasEndpointSecurity: AssetDomainStatus;
21
21
  hasVulnManagement: AssetDomainStatus;
22
+ sn?: string | undefined;
22
23
  hostname?: string | undefined;
23
24
  os?: string | undefined;
24
- sn?: string | undefined;
25
25
  }, {
26
26
  aid: string;
27
27
  displayValue: string;
28
28
  hasEndpointManagement: AssetDomainStatus;
29
29
  hasEndpointSecurity: AssetDomainStatus;
30
30
  hasVulnManagement: AssetDomainStatus;
31
+ sn?: string | undefined;
31
32
  hostname?: string | undefined;
32
33
  os?: string | undefined;
33
- sn?: string | undefined;
34
34
  }>;
35
35
  export type EndUserDeviceReportDto = z.infer<typeof _EndUserDeviceReportDto>;
36
36
  export declare const _EndUserCoverageReportDto: z.ZodObject<{
@@ -205,18 +205,18 @@ export declare const _EndUserCoverageReportDto: z.ZodObject<{
205
205
  hasEndpointManagement: AssetDomainStatus;
206
206
  hasEndpointSecurity: AssetDomainStatus;
207
207
  hasVulnManagement: AssetDomainStatus;
208
+ sn?: string | undefined;
208
209
  hostname?: string | undefined;
209
210
  os?: string | undefined;
210
- sn?: string | undefined;
211
211
  }, {
212
212
  aid: string;
213
213
  displayValue: string;
214
214
  hasEndpointManagement: AssetDomainStatus;
215
215
  hasEndpointSecurity: AssetDomainStatus;
216
216
  hasVulnManagement: AssetDomainStatus;
217
+ sn?: string | undefined;
217
218
  hostname?: string | undefined;
218
219
  os?: string | undefined;
219
- sn?: string | undefined;
220
220
  }>, "many">;
221
221
  }, "strip", z.ZodTypeAny, {
222
222
  assets: {
@@ -225,9 +225,9 @@ export declare const _EndUserCoverageReportDto: z.ZodObject<{
225
225
  hasEndpointManagement: AssetDomainStatus;
226
226
  hasEndpointSecurity: AssetDomainStatus;
227
227
  hasVulnManagement: AssetDomainStatus;
228
+ sn?: string | undefined;
228
229
  hostname?: string | undefined;
229
230
  os?: string | undefined;
230
- sn?: string | undefined;
231
231
  }[];
232
232
  rating: AssetDomainStatus;
233
233
  allMonitored: boolean;
@@ -240,9 +240,9 @@ export declare const _EndUserCoverageReportDto: z.ZodObject<{
240
240
  hasEndpointManagement: AssetDomainStatus;
241
241
  hasEndpointSecurity: AssetDomainStatus;
242
242
  hasVulnManagement: AssetDomainStatus;
243
+ sn?: string | undefined;
243
244
  hostname?: string | undefined;
244
245
  os?: string | undefined;
245
- sn?: string | undefined;
246
246
  }[];
247
247
  rating: AssetDomainStatus;
248
248
  allMonitored: boolean;
@@ -294,9 +294,9 @@ export declare const _EndUserCoverageReportDto: z.ZodObject<{
294
294
  hasEndpointManagement: AssetDomainStatus;
295
295
  hasEndpointSecurity: AssetDomainStatus;
296
296
  hasVulnManagement: AssetDomainStatus;
297
+ sn?: string | undefined;
297
298
  hostname?: string | undefined;
298
299
  os?: string | undefined;
299
- sn?: string | undefined;
300
300
  }[];
301
301
  rating: AssetDomainStatus;
302
302
  allMonitored: boolean;
@@ -360,9 +360,9 @@ export declare const _EndUserCoverageReportDto: z.ZodObject<{
360
360
  hasEndpointManagement: AssetDomainStatus;
361
361
  hasEndpointSecurity: AssetDomainStatus;
362
362
  hasVulnManagement: AssetDomainStatus;
363
+ sn?: string | undefined;
363
364
  hostname?: string | undefined;
364
365
  os?: string | undefined;
365
- sn?: string | undefined;
366
366
  }[];
367
367
  rating: AssetDomainStatus;
368
368
  allMonitored: boolean;