@ampsec/platform-client 63.1.0 → 63.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.
@@ -81,19 +81,19 @@ export declare const _UserCoverageSummary: z.ZodObject<{
81
81
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
82
82
  vendorName: z.ZodOptional<z.ZodString>;
83
83
  factorType: z.ZodOptional<z.ZodString>;
84
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
84
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
85
85
  }, "strip", z.ZodString, z.objectOutputType<{
86
86
  cid: z.ZodOptional<z.ZodString>;
87
87
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
88
88
  vendorName: z.ZodOptional<z.ZodString>;
89
89
  factorType: z.ZodOptional<z.ZodString>;
90
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
90
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
91
91
  }, z.ZodString, "strip">, z.objectInputType<{
92
92
  cid: z.ZodOptional<z.ZodString>;
93
93
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
94
94
  vendorName: z.ZodOptional<z.ZodString>;
95
95
  factorType: z.ZodOptional<z.ZodString>;
96
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
96
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
97
97
  }, z.ZodString, "strip">>, "many">>;
98
98
  notifications: z.ZodOptional<z.ZodNumber>;
99
99
  userAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -190,7 +190,7 @@ export declare const _UserCoverageSummary: z.ZodObject<{
190
190
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
191
191
  vendorName: z.ZodOptional<z.ZodString>;
192
192
  factorType: z.ZodOptional<z.ZodString>;
193
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
193
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
194
194
  }, z.ZodString, "strip">[] | undefined;
195
195
  notifications?: number | undefined;
196
196
  }, {
@@ -231,7 +231,7 @@ export declare const _UserCoverageSummary: z.ZodObject<{
231
231
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
232
232
  vendorName: z.ZodOptional<z.ZodString>;
233
233
  factorType: z.ZodOptional<z.ZodString>;
234
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
234
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
235
235
  }, z.ZodString, "strip">[] | undefined;
236
236
  notifications?: number | undefined;
237
237
  }>;
@@ -262,19 +262,19 @@ export declare const _UserCoverageReport: z.ZodObject<{
262
262
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
263
263
  vendorName: z.ZodOptional<z.ZodString>;
264
264
  factorType: z.ZodOptional<z.ZodString>;
265
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
265
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
266
266
  }, "strip", z.ZodString, z.objectOutputType<{
267
267
  cid: z.ZodOptional<z.ZodString>;
268
268
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
269
269
  vendorName: z.ZodOptional<z.ZodString>;
270
270
  factorType: z.ZodOptional<z.ZodString>;
271
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
271
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
272
272
  }, z.ZodString, "strip">, z.objectInputType<{
273
273
  cid: z.ZodOptional<z.ZodString>;
274
274
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
275
275
  vendorName: z.ZodOptional<z.ZodString>;
276
276
  factorType: z.ZodOptional<z.ZodString>;
277
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
277
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
278
278
  }, z.ZodString, "strip">>, "many">>;
279
279
  profile: z.ZodObject<{
280
280
  firstName: z.ZodString;
@@ -356,7 +356,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
356
356
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
357
357
  vendorName: z.ZodOptional<z.ZodString>;
358
358
  factorType: z.ZodOptional<z.ZodString>;
359
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
359
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
360
360
  }, z.ZodString, "strip">[] | undefined;
361
361
  }, {
362
362
  profile: {
@@ -384,7 +384,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
384
384
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
385
385
  vendorName: z.ZodOptional<z.ZodString>;
386
386
  factorType: z.ZodOptional<z.ZodString>;
387
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
387
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
388
388
  }, z.ZodString, "strip">[] | undefined;
389
389
  }>;
390
390
  _raw: z.ZodUnknown;
@@ -415,7 +415,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
415
415
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
416
416
  vendorName: z.ZodOptional<z.ZodString>;
417
417
  factorType: z.ZodOptional<z.ZodString>;
418
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
418
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
419
419
  }, z.ZodString, "strip">[] | undefined;
420
420
  };
421
421
  _raw?: unknown;
@@ -446,7 +446,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
446
446
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
447
447
  vendorName: z.ZodOptional<z.ZodString>;
448
448
  factorType: z.ZodOptional<z.ZodString>;
449
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
449
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
450
450
  }, z.ZodString, "strip">[] | undefined;
451
451
  };
452
452
  _raw?: unknown;
@@ -493,7 +493,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
493
493
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
494
494
  vendorName: z.ZodOptional<z.ZodString>;
495
495
  factorType: z.ZodOptional<z.ZodString>;
496
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
496
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
497
497
  }, z.ZodString, "strip">[] | undefined;
498
498
  };
499
499
  _raw?: unknown;
@@ -535,7 +535,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
535
535
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
536
536
  vendorName: z.ZodOptional<z.ZodString>;
537
537
  factorType: z.ZodOptional<z.ZodString>;
538
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
538
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
539
539
  }, z.ZodString, "strip">[] | undefined;
540
540
  };
541
541
  _raw?: unknown;
@@ -845,7 +845,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
845
845
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
846
846
  vendorName: z.ZodOptional<z.ZodString>;
847
847
  factorType: z.ZodOptional<z.ZodString>;
848
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
848
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
849
849
  }, z.ZodString, "strip">[] | undefined;
850
850
  };
851
851
  _raw?: unknown;
@@ -948,7 +948,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
948
948
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
949
949
  vendorName: z.ZodOptional<z.ZodString>;
950
950
  factorType: z.ZodOptional<z.ZodString>;
951
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
951
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
952
952
  }, z.ZodString, "strip">[] | undefined;
953
953
  };
954
954
  _raw?: unknown;
@@ -23,19 +23,19 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
23
23
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
24
24
  vendorName: z.ZodOptional<z.ZodString>;
25
25
  factorType: z.ZodOptional<z.ZodString>;
26
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
26
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
27
27
  }, "strip", z.ZodString, z.objectOutputType<{
28
28
  cid: z.ZodOptional<z.ZodString>;
29
29
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
30
30
  vendorName: z.ZodOptional<z.ZodString>;
31
31
  factorType: z.ZodOptional<z.ZodString>;
32
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
32
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
33
33
  }, z.ZodString, "strip">, z.objectInputType<{
34
34
  cid: z.ZodOptional<z.ZodString>;
35
35
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
36
36
  vendorName: z.ZodOptional<z.ZodString>;
37
37
  factorType: z.ZodOptional<z.ZodString>;
38
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
38
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
39
39
  }, z.ZodString, "strip">>, "many">>;
40
40
  profile: z.ZodObject<{
41
41
  firstName: z.ZodString;
@@ -117,7 +117,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
117
117
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
118
118
  vendorName: z.ZodOptional<z.ZodString>;
119
119
  factorType: z.ZodOptional<z.ZodString>;
120
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
120
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
121
121
  }, z.ZodString, "strip">[] | undefined;
122
122
  }, {
123
123
  profile: {
@@ -145,7 +145,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
145
145
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
146
146
  vendorName: z.ZodOptional<z.ZodString>;
147
147
  factorType: z.ZodOptional<z.ZodString>;
148
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
148
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
149
149
  }, z.ZodString, "strip">[] | undefined;
150
150
  }>;
151
151
  _raw: z.ZodUnknown;
@@ -176,7 +176,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
176
176
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
177
177
  vendorName: z.ZodOptional<z.ZodString>;
178
178
  factorType: z.ZodOptional<z.ZodString>;
179
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
179
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
180
180
  }, z.ZodString, "strip">[] | undefined;
181
181
  };
182
182
  _raw?: unknown;
@@ -207,7 +207,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
207
207
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
208
208
  vendorName: z.ZodOptional<z.ZodString>;
209
209
  factorType: z.ZodOptional<z.ZodString>;
210
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
210
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
211
211
  }, z.ZodString, "strip">[] | undefined;
212
212
  };
213
213
  _raw?: unknown;
@@ -246,7 +246,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
246
246
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
247
247
  vendorName: z.ZodOptional<z.ZodString>;
248
248
  factorType: z.ZodOptional<z.ZodString>;
249
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
249
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
250
250
  }, z.ZodString, "strip">[] | undefined;
251
251
  };
252
252
  _raw?: unknown;
@@ -289,7 +289,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
289
289
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
290
290
  vendorName: z.ZodOptional<z.ZodString>;
291
291
  factorType: z.ZodOptional<z.ZodString>;
292
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
292
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
293
293
  }, z.ZodString, "strip">[] | undefined;
294
294
  };
295
295
  _raw?: unknown;
@@ -7,19 +7,19 @@ export declare const _MfaFactorDto: z.ZodObject<{
7
7
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
8
8
  vendorName: z.ZodOptional<z.ZodString>;
9
9
  factorType: z.ZodOptional<z.ZodString>;
10
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
10
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
11
11
  }, "strip", z.ZodString, z.objectOutputType<{
12
12
  cid: z.ZodOptional<z.ZodString>;
13
13
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
14
14
  vendorName: z.ZodOptional<z.ZodString>;
15
15
  factorType: z.ZodOptional<z.ZodString>;
16
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
16
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
17
17
  }, z.ZodString, "strip">, z.objectInputType<{
18
18
  cid: z.ZodOptional<z.ZodString>;
19
19
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
20
20
  vendorName: z.ZodOptional<z.ZodString>;
21
21
  factorType: z.ZodOptional<z.ZodString>;
22
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
22
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
23
23
  }, z.ZodString, "strip">>;
24
24
  export declare const _SaasUserMeta: z.ZodObject<{
25
25
  _user: z.ZodObject<{
@@ -37,19 +37,19 @@ export declare const _SaasUserMeta: z.ZodObject<{
37
37
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
38
38
  vendorName: z.ZodOptional<z.ZodString>;
39
39
  factorType: z.ZodOptional<z.ZodString>;
40
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
40
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
41
41
  }, "strip", z.ZodString, z.objectOutputType<{
42
42
  cid: z.ZodOptional<z.ZodString>;
43
43
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
44
44
  vendorName: z.ZodOptional<z.ZodString>;
45
45
  factorType: z.ZodOptional<z.ZodString>;
46
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
46
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
47
47
  }, z.ZodString, "strip">, z.objectInputType<{
48
48
  cid: z.ZodOptional<z.ZodString>;
49
49
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
50
50
  vendorName: z.ZodOptional<z.ZodString>;
51
51
  factorType: z.ZodOptional<z.ZodString>;
52
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
52
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
53
53
  }, z.ZodString, "strip">>, "many">>;
54
54
  /** User's profile with provider */
55
55
  profile: z.ZodObject<{
@@ -145,7 +145,7 @@ export declare const _SaasUserMeta: z.ZodObject<{
145
145
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
146
146
  vendorName: z.ZodOptional<z.ZodString>;
147
147
  factorType: z.ZodOptional<z.ZodString>;
148
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
148
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
149
149
  }, z.ZodString, "strip">[] | undefined;
150
150
  }, {
151
151
  profile: {
@@ -173,7 +173,7 @@ export declare const _SaasUserMeta: z.ZodObject<{
173
173
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
174
174
  vendorName: z.ZodOptional<z.ZodString>;
175
175
  factorType: z.ZodOptional<z.ZodString>;
176
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
176
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
177
177
  }, z.ZodString, "strip">[] | undefined;
178
178
  }>;
179
179
  _raw: z.ZodUnknown;
@@ -204,7 +204,7 @@ export declare const _SaasUserMeta: z.ZodObject<{
204
204
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
205
205
  vendorName: z.ZodOptional<z.ZodString>;
206
206
  factorType: z.ZodOptional<z.ZodString>;
207
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
207
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
208
208
  }, z.ZodString, "strip">[] | undefined;
209
209
  };
210
210
  _raw?: unknown;
@@ -235,7 +235,7 @@ export declare const _SaasUserMeta: z.ZodObject<{
235
235
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
236
236
  vendorName: z.ZodOptional<z.ZodString>;
237
237
  factorType: z.ZodOptional<z.ZodString>;
238
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
238
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
239
239
  }, z.ZodString, "strip">[] | undefined;
240
240
  };
241
241
  _raw?: unknown;
@@ -267,19 +267,19 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
267
267
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
268
268
  vendorName: z.ZodOptional<z.ZodString>;
269
269
  factorType: z.ZodOptional<z.ZodString>;
270
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
270
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
271
271
  }, "strip", z.ZodString, z.objectOutputType<{
272
272
  cid: z.ZodOptional<z.ZodString>;
273
273
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
274
274
  vendorName: z.ZodOptional<z.ZodString>;
275
275
  factorType: z.ZodOptional<z.ZodString>;
276
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
276
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
277
277
  }, z.ZodString, "strip">, z.objectInputType<{
278
278
  cid: z.ZodOptional<z.ZodString>;
279
279
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
280
280
  vendorName: z.ZodOptional<z.ZodString>;
281
281
  factorType: z.ZodOptional<z.ZodString>;
282
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
282
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
283
283
  }, z.ZodString, "strip">>, "many">>;
284
284
  /** User's profile with provider */
285
285
  profile: z.ZodObject<{
@@ -375,7 +375,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
375
375
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
376
376
  vendorName: z.ZodOptional<z.ZodString>;
377
377
  factorType: z.ZodOptional<z.ZodString>;
378
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
378
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
379
379
  }, z.ZodString, "strip">[] | undefined;
380
380
  }, {
381
381
  profile: {
@@ -403,7 +403,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
403
403
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
404
404
  vendorName: z.ZodOptional<z.ZodString>;
405
405
  factorType: z.ZodOptional<z.ZodString>;
406
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
406
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
407
407
  }, z.ZodString, "strip">[] | undefined;
408
408
  }>;
409
409
  _raw: z.ZodUnknown;
@@ -434,7 +434,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
434
434
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
435
435
  vendorName: z.ZodOptional<z.ZodString>;
436
436
  factorType: z.ZodOptional<z.ZodString>;
437
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
437
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
438
438
  }, z.ZodString, "strip">[] | undefined;
439
439
  };
440
440
  _raw?: unknown;
@@ -465,7 +465,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
465
465
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
466
466
  vendorName: z.ZodOptional<z.ZodString>;
467
467
  factorType: z.ZodOptional<z.ZodString>;
468
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
468
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
469
469
  }, z.ZodString, "strip">[] | undefined;
470
470
  };
471
471
  _raw?: unknown;
@@ -503,7 +503,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
503
503
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
504
504
  vendorName: z.ZodOptional<z.ZodString>;
505
505
  factorType: z.ZodOptional<z.ZodString>;
506
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
506
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
507
507
  }, z.ZodString, "strip">[] | undefined;
508
508
  };
509
509
  _raw?: unknown;
@@ -545,7 +545,7 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
545
545
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
546
546
  vendorName: z.ZodOptional<z.ZodString>;
547
547
  factorType: z.ZodOptional<z.ZodString>;
548
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
548
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
549
549
  }, z.ZodString, "strip">[] | undefined;
550
550
  };
551
551
  _raw?: unknown;
@@ -577,19 +577,19 @@ export declare const _SaasUserDto: z.ZodObject<{
577
577
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
578
578
  vendorName: z.ZodOptional<z.ZodString>;
579
579
  factorType: z.ZodOptional<z.ZodString>;
580
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
580
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
581
581
  }, "strip", z.ZodString, z.objectOutputType<{
582
582
  cid: z.ZodOptional<z.ZodString>;
583
583
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
584
584
  vendorName: z.ZodOptional<z.ZodString>;
585
585
  factorType: z.ZodOptional<z.ZodString>;
586
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
586
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
587
587
  }, z.ZodString, "strip">, z.objectInputType<{
588
588
  cid: z.ZodOptional<z.ZodString>;
589
589
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
590
590
  vendorName: z.ZodOptional<z.ZodString>;
591
591
  factorType: z.ZodOptional<z.ZodString>;
592
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
592
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
593
593
  }, z.ZodString, "strip">>, "many">>;
594
594
  /** User's profile with provider */
595
595
  profile: z.ZodObject<{
@@ -685,7 +685,7 @@ export declare const _SaasUserDto: z.ZodObject<{
685
685
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
686
686
  vendorName: z.ZodOptional<z.ZodString>;
687
687
  factorType: z.ZodOptional<z.ZodString>;
688
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
688
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
689
689
  }, z.ZodString, "strip">[] | undefined;
690
690
  }, {
691
691
  profile: {
@@ -713,7 +713,7 @@ export declare const _SaasUserDto: z.ZodObject<{
713
713
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
714
714
  vendorName: z.ZodOptional<z.ZodString>;
715
715
  factorType: z.ZodOptional<z.ZodString>;
716
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
716
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
717
717
  }, z.ZodString, "strip">[] | undefined;
718
718
  }>;
719
719
  _raw: z.ZodUnknown;
@@ -744,7 +744,7 @@ export declare const _SaasUserDto: z.ZodObject<{
744
744
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
745
745
  vendorName: z.ZodOptional<z.ZodString>;
746
746
  factorType: z.ZodOptional<z.ZodString>;
747
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
747
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
748
748
  }, z.ZodString, "strip">[] | undefined;
749
749
  };
750
750
  _raw?: unknown;
@@ -775,7 +775,7 @@ export declare const _SaasUserDto: z.ZodObject<{
775
775
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
776
776
  vendorName: z.ZodOptional<z.ZodString>;
777
777
  factorType: z.ZodOptional<z.ZodString>;
778
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
778
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
779
779
  }, z.ZodString, "strip">[] | undefined;
780
780
  };
781
781
  _raw?: unknown;
@@ -822,7 +822,7 @@ export declare const _SaasUserDto: z.ZodObject<{
822
822
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
823
823
  vendorName: z.ZodOptional<z.ZodString>;
824
824
  factorType: z.ZodOptional<z.ZodString>;
825
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
825
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
826
826
  }, z.ZodString, "strip">[] | undefined;
827
827
  };
828
828
  _raw?: unknown;
@@ -864,7 +864,7 @@ export declare const _SaasUserDto: z.ZodObject<{
864
864
  status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
865
865
  vendorName: z.ZodOptional<z.ZodString>;
866
866
  factorType: z.ZodOptional<z.ZodString>;
867
- rating: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
867
+ secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
868
868
  }, z.ZodString, "strip">[] | undefined;
869
869
  };
870
870
  _raw?: unknown;
@@ -12,7 +12,7 @@ exports._MfaFactorDto = zod_1.z
12
12
  status: zod_1.z.union([zod_1.z.literal('ACTIVE'), zod_1.z.string()]).optional(),
13
13
  vendorName: zod_1.z.string().optional(),
14
14
  factorType: zod_1.z.string().optional(),
15
- rating: exports._MfaRating.optional(),
15
+ secure: exports._MfaRating.optional(),
16
16
  })
17
17
  .catchall(zod_1.z.string());
18
18
  exports._SaasUserMeta = zod_1.z.object({
@@ -1,5 +1,5 @@
1
- import { ActionExecutionDto, AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
- import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
1
+ import { ActionExecutionDto, AgentDto, AgentUpsertDto, AssetDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
+ import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService, CustomActionsService } from '.';
3
3
  import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
4
4
  import { UsersInsightsService } from './usersInsights.service';
5
5
  import { FlowSpecsService } from './flowSpecs.service';
@@ -23,7 +23,7 @@ export declare class AmpApi {
23
23
  readonly asset: AmpDataService<AssetDto>;
24
24
  readonly cohorts: CohortService;
25
25
  readonly connectors: ConnectorsService;
26
- readonly customActions: AmpEntityService<CustomActionUpsertDto, CustomActionDto>;
26
+ readonly customActions: CustomActionsService;
27
27
  readonly customScoreValues: AmpEntityService<CustomScoreValueUpsertDto, CustomScoreValueDto>;
28
28
  readonly customScoreCohorts: AmpEntityService<CustomScoreCohortUpsertDto, CustomScoreCohortDto>;
29
29
  readonly enums: EnumService;
@@ -26,7 +26,7 @@ class AmpApi {
26
26
  this.asset = new _1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS);
27
27
  this.cohorts = new CohortService_1.CohortService(rest);
28
28
  this.connectors = new _1.ConnectorsService(rest);
29
- this.customActions = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS);
29
+ this.customActions = new _1.CustomActionsService(rest);
30
30
  this.customScoreCohorts = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS);
31
31
  this.customScoreValues = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES);
32
32
  this.enums = new rest_1.DefaultEnumService(rest);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAuBA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AAInD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IA8BjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qBAAkB,CAAqB,IAAI,EAAE,gBAAI,CAAC,gBAAgB,CAAC,CAAC;QAChG,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAk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oBAAiB,CAAC,IAAI,EAAE,gBAAI,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAjED,wBAiEC"}
@@ -0,0 +1,8 @@
1
+ import { FilterCriteria } from '../FilterCriteria';
2
+ import { CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page } from '../dto';
3
+ import { AmpEntityServiceImpl } from './entity.service';
4
+ import { RestClient } from './rest';
5
+ export declare class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto> {
6
+ constructor(rest: RestClient);
7
+ summary: (filter?: FilterCriteria) => Promise<Page<CustomerActionSummaryDto>>;
8
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomActionsService = void 0;
4
+ const constants_1 = require("./constants");
5
+ const entity_service_1 = require("./entity.service");
6
+ class CustomActionsService extends entity_service_1.AmpEntityServiceImpl {
7
+ constructor(rest) {
8
+ super(rest, constants_1.KIND.CUSTOM_ACTIONS);
9
+ this.summary = async (filter) => {
10
+ const res = await this.rest.call({
11
+ url: `/${this.targetApi}/v1/${this.kind}/_summary`,
12
+ method: 'GET',
13
+ params: filter,
14
+ });
15
+ return res.data;
16
+ };
17
+ }
18
+ }
19
+ exports.CustomActionsService = CustomActionsService;
20
+ //# sourceMappingURL=customActionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customActionsService.js","sourceRoot":"","sources":["../../../src/services/customActionsService.ts"],"names":[],"mappings":";;;AAEA,2CAAiC;AACjC,qDAAsD;AAGtD,MAAa,oBAAqB,SAAQ,qCAA4D;IACpG,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QAEnC,YAAO,GAAG,KAAK,EAAE,MAAuB,EAA2C,EAAE;YACnF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,WAAW;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAsC,CAAC;QACpD,CAAC,CAAC;IARF,CAAC;CASF;AAZD,oDAYC"}
@@ -17,3 +17,4 @@ export * from './notification.service';
17
17
  export * from './reports.service';
18
18
  export * from './contentful.service';
19
19
  export * from './prediction.service';
20
+ export * from './customActionsService';
@@ -33,4 +33,5 @@ __exportStar(require("./notification.service"), exports);
33
33
  __exportStar(require("./reports.service"), exports);
34
34
  __exportStar(require("./contentful.service"), exports);
35
35
  __exportStar(require("./prediction.service"), exports);
36
+ __exportStar(require("./customActionsService"), exports);
36
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2DAAyC;AACzC,iDAA+B;AAC/B,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2DAAyC;AACzC,iDAA+B;AAC/B,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "63.1.0",
3
+ "version": "63.2.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -11,7 +11,7 @@ export const _MfaFactorDto = z
11
11
  status: z.union([z.literal('ACTIVE'), z.string()]).optional(),
12
12
  vendorName: z.string().optional(),
13
13
  factorType: z.string().optional(),
14
- rating: _MfaRating.optional(),
14
+ secure: _MfaRating.optional(),
15
15
  })
16
16
  .catchall(z.string());
17
17
 
@@ -3,8 +3,6 @@ import {
3
3
  AgentDto,
4
4
  AgentUpsertDto,
5
5
  AssetDto,
6
- CustomActionDto,
7
- CustomActionUpsertDto,
8
6
  CustomScoreCohortDto,
9
7
  CustomScoreCohortUpsertDto,
10
8
  CustomScoreValueDto,
@@ -34,6 +32,7 @@ import {
34
32
  FindingsService,
35
33
  NotificationService,
36
34
  PredictionService,
35
+ CustomActionsService,
37
36
  } from '.';
38
37
  import {KIND, TARGET_API_AGENT} from './constants';
39
38
  import {getAmpRestClient, AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, DefaultEnumService, EnumService, RestClient} from './rest';
@@ -61,7 +60,7 @@ export class AmpApi {
61
60
  readonly asset: AmpDataService<AssetDto>;
62
61
  readonly cohorts: CohortService;
63
62
  readonly connectors: ConnectorsService;
64
- readonly customActions: AmpEntityService<CustomActionUpsertDto, CustomActionDto>;
63
+ readonly customActions: CustomActionsService;
65
64
  readonly customScoreValues: AmpEntityService<CustomScoreValueUpsertDto, CustomScoreValueDto>;
66
65
  readonly customScoreCohorts: AmpEntityService<CustomScoreCohortUpsertDto, CustomScoreCohortDto>;
67
66
  readonly enums: EnumService;
@@ -91,7 +90,7 @@ export class AmpApi {
91
90
  this.asset = new AmpDataServiceImpl<AssetDto>(rest, KIND.ASSETS);
92
91
  this.cohorts = new CohortService(rest);
93
92
  this.connectors = new ConnectorsService(rest);
94
- this.customActions = new AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto>(rest, KIND.CUSTOM_ACTIONS);
93
+ this.customActions = new CustomActionsService(rest);
95
94
  this.customScoreCohorts = new AmpEntityServiceImpl<CustomScoreCohortUpsertDto, CustomScoreCohortDto>(rest, KIND.CUSTOM_SCORE_COHORTS);
96
95
  this.customScoreValues = new AmpEntityServiceImpl<CustomScoreValueUpsertDto, CustomScoreValueDto>(rest, KIND.CUSTOM_SCORE_VALUES);
97
96
  this.enums = new DefaultEnumService(rest);
@@ -0,0 +1,19 @@
1
+ import {FilterCriteria} from '../FilterCriteria';
2
+ import {CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page} from '../dto';
3
+ import {KIND} from './constants';
4
+ import {AmpEntityServiceImpl} from './entity.service';
5
+ import {RestClient} from './rest';
6
+
7
+ export class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto> {
8
+ constructor(rest: RestClient) {
9
+ super(rest, KIND.CUSTOM_ACTIONS);
10
+ }
11
+ summary = async (filter?: FilterCriteria): Promise<Page<CustomerActionSummaryDto>> => {
12
+ const res = await this.rest.call({
13
+ url: `/${this.targetApi}/v1/${this.kind}/_summary`,
14
+ method: 'GET',
15
+ params: filter,
16
+ });
17
+ return res.data as Page<CustomerActionSummaryDto>;
18
+ };
19
+ }
@@ -17,3 +17,4 @@ export * from './notification.service';
17
17
  export * from './reports.service';
18
18
  export * from './contentful.service';
19
19
  export * from './prediction.service';
20
+ export * from './customActionsService';