@ampsec/platform-client 62.4.0 → 62.5.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.
@@ -74,6 +74,23 @@ export declare const _UserCoverageSummary: z.ZodObject<{
74
74
  active: z.ZodOptional<z.ZodBoolean>;
75
75
  lastActivity: z.ZodOptional<z.ZodString>;
76
76
  name: z.ZodOptional<z.ZodString>;
77
+ mfaEnabled: z.ZodOptional<z.ZodBoolean>;
78
+ mfaFactors: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ cid: z.ZodOptional<z.ZodString>;
80
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
81
+ vendorName: z.ZodOptional<z.ZodString>;
82
+ factorType: z.ZodOptional<z.ZodString>;
83
+ }, "strip", z.ZodString, z.objectOutputType<{
84
+ cid: z.ZodOptional<z.ZodString>;
85
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
86
+ vendorName: z.ZodOptional<z.ZodString>;
87
+ factorType: z.ZodOptional<z.ZodString>;
88
+ }, z.ZodString, "strip">, z.objectInputType<{
89
+ cid: z.ZodOptional<z.ZodString>;
90
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
91
+ vendorName: z.ZodOptional<z.ZodString>;
92
+ factorType: z.ZodOptional<z.ZodString>;
93
+ }, z.ZodString, "strip">>, "many">>;
77
94
  notifications: z.ZodOptional<z.ZodNumber>;
78
95
  userAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
79
96
  userAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
@@ -162,6 +179,13 @@ export declare const _UserCoverageSummary: z.ZodObject<{
162
179
  active?: boolean | undefined;
163
180
  lastActivity?: string | undefined;
164
181
  name?: string | undefined;
182
+ mfaEnabled?: boolean | undefined;
183
+ mfaFactors?: z.objectOutputType<{
184
+ cid: z.ZodOptional<z.ZodString>;
185
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
186
+ vendorName: z.ZodOptional<z.ZodString>;
187
+ factorType: z.ZodOptional<z.ZodString>;
188
+ }, z.ZodString, "strip">[] | undefined;
165
189
  notifications?: number | undefined;
166
190
  }, {
167
191
  assetAccounts: Record<string, number>;
@@ -194,6 +218,13 @@ export declare const _UserCoverageSummary: z.ZodObject<{
194
218
  active?: boolean | undefined;
195
219
  lastActivity?: string | undefined;
196
220
  name?: string | undefined;
221
+ mfaEnabled?: boolean | undefined;
222
+ mfaFactors?: z.objectInputType<{
223
+ cid: z.ZodOptional<z.ZodString>;
224
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
225
+ vendorName: z.ZodOptional<z.ZodString>;
226
+ factorType: z.ZodOptional<z.ZodString>;
227
+ }, z.ZodString, "strip">[] | undefined;
197
228
  notifications?: number | undefined;
198
229
  }>;
199
230
  export type UserCoverageSummary = z.infer<typeof _UserCoverageSummary>;
@@ -218,7 +249,22 @@ export declare const _UserCoverageReport: z.ZodObject<{
218
249
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
219
250
  created: z.ZodOptional<z.ZodString>;
220
251
  lastActivityTime: z.ZodOptional<z.ZodString>;
221
- factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
252
+ factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ cid: z.ZodOptional<z.ZodString>;
254
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
255
+ vendorName: z.ZodOptional<z.ZodString>;
256
+ factorType: z.ZodOptional<z.ZodString>;
257
+ }, "strip", z.ZodString, z.objectOutputType<{
258
+ cid: z.ZodOptional<z.ZodString>;
259
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
260
+ vendorName: z.ZodOptional<z.ZodString>;
261
+ factorType: z.ZodOptional<z.ZodString>;
262
+ }, z.ZodString, "strip">, z.objectInputType<{
263
+ cid: z.ZodOptional<z.ZodString>;
264
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
265
+ vendorName: z.ZodOptional<z.ZodString>;
266
+ factorType: z.ZodOptional<z.ZodString>;
267
+ }, z.ZodString, "strip">>, "many">>;
222
268
  profile: z.ZodObject<{
223
269
  firstName: z.ZodString;
224
270
  lastName: z.ZodString;
@@ -294,7 +340,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
294
340
  groups?: Record<string, string> | undefined;
295
341
  created?: string | undefined;
296
342
  lastActivityTime?: string | undefined;
297
- factors?: Record<string, string>[] | undefined;
343
+ factors?: z.objectOutputType<{
344
+ cid: z.ZodOptional<z.ZodString>;
345
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
346
+ vendorName: z.ZodOptional<z.ZodString>;
347
+ factorType: z.ZodOptional<z.ZodString>;
348
+ }, z.ZodString, "strip">[] | undefined;
298
349
  }, {
299
350
  profile: {
300
351
  email: string;
@@ -316,7 +367,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
316
367
  groups?: Record<string, string> | undefined;
317
368
  created?: string | undefined;
318
369
  lastActivityTime?: string | undefined;
319
- factors?: Record<string, string>[] | undefined;
370
+ factors?: z.objectInputType<{
371
+ cid: z.ZodOptional<z.ZodString>;
372
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
373
+ vendorName: z.ZodOptional<z.ZodString>;
374
+ factorType: z.ZodOptional<z.ZodString>;
375
+ }, z.ZodString, "strip">[] | undefined;
320
376
  }>;
321
377
  _raw: z.ZodUnknown;
322
378
  }, "strip", z.ZodTypeAny, {
@@ -341,7 +397,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
341
397
  groups?: Record<string, string> | undefined;
342
398
  created?: string | undefined;
343
399
  lastActivityTime?: string | undefined;
344
- factors?: Record<string, string>[] | undefined;
400
+ factors?: z.objectOutputType<{
401
+ cid: z.ZodOptional<z.ZodString>;
402
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
403
+ vendorName: z.ZodOptional<z.ZodString>;
404
+ factorType: z.ZodOptional<z.ZodString>;
405
+ }, z.ZodString, "strip">[] | undefined;
345
406
  };
346
407
  _raw?: unknown;
347
408
  }, {
@@ -366,7 +427,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
366
427
  groups?: Record<string, string> | undefined;
367
428
  created?: string | undefined;
368
429
  lastActivityTime?: string | undefined;
369
- factors?: Record<string, string>[] | undefined;
430
+ factors?: z.objectInputType<{
431
+ cid: z.ZodOptional<z.ZodString>;
432
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
433
+ vendorName: z.ZodOptional<z.ZodString>;
434
+ factorType: z.ZodOptional<z.ZodString>;
435
+ }, z.ZodString, "strip">[] | undefined;
370
436
  };
371
437
  _raw?: unknown;
372
438
  }>;
@@ -407,7 +473,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
407
473
  groups?: Record<string, string> | undefined;
408
474
  created?: string | undefined;
409
475
  lastActivityTime?: string | undefined;
410
- factors?: Record<string, string>[] | undefined;
476
+ factors?: z.objectOutputType<{
477
+ cid: z.ZodOptional<z.ZodString>;
478
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
479
+ vendorName: z.ZodOptional<z.ZodString>;
480
+ factorType: z.ZodOptional<z.ZodString>;
481
+ }, z.ZodString, "strip">[] | undefined;
411
482
  };
412
483
  _raw?: unknown;
413
484
  };
@@ -443,7 +514,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
443
514
  groups?: Record<string, string> | undefined;
444
515
  created?: string | undefined;
445
516
  lastActivityTime?: string | undefined;
446
- factors?: Record<string, string>[] | undefined;
517
+ factors?: z.objectInputType<{
518
+ cid: z.ZodOptional<z.ZodString>;
519
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
520
+ vendorName: z.ZodOptional<z.ZodString>;
521
+ factorType: z.ZodOptional<z.ZodString>;
522
+ }, z.ZodString, "strip">[] | undefined;
447
523
  };
448
524
  _raw?: unknown;
449
525
  };
@@ -747,7 +823,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
747
823
  groups?: Record<string, string> | undefined;
748
824
  created?: string | undefined;
749
825
  lastActivityTime?: string | undefined;
750
- factors?: Record<string, string>[] | undefined;
826
+ factors?: z.objectOutputType<{
827
+ cid: z.ZodOptional<z.ZodString>;
828
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
829
+ vendorName: z.ZodOptional<z.ZodString>;
830
+ factorType: z.ZodOptional<z.ZodString>;
831
+ }, z.ZodString, "strip">[] | undefined;
751
832
  };
752
833
  _raw?: unknown;
753
834
  };
@@ -844,7 +925,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
844
925
  groups?: Record<string, string> | undefined;
845
926
  created?: string | undefined;
846
927
  lastActivityTime?: string | undefined;
847
- factors?: Record<string, string>[] | undefined;
928
+ factors?: z.objectInputType<{
929
+ cid: z.ZodOptional<z.ZodString>;
930
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
931
+ vendorName: z.ZodOptional<z.ZodString>;
932
+ factorType: z.ZodOptional<z.ZodString>;
933
+ }, z.ZodString, "strip">[] | undefined;
848
934
  };
849
935
  _raw?: unknown;
850
936
  };
@@ -19,6 +19,8 @@ exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.obje
19
19
  }));
20
20
  exports._UserCoverageSummary = users_dto_1._SimpleUserDto.merge(zod_1.z.object({
21
21
  name: zod_1.z.string().optional(),
22
+ mfaEnabled: zod_1.z.boolean().optional(),
23
+ mfaFactors: zod_1.z.array(saasUsers_dto_1._MfaFactorDto).optional(),
22
24
  notifications: zod_1.z.number().optional(),
23
25
  /** @deprecated */
24
26
  userAccounts: zod_1.z.record(zod_1.z.number()),
@@ -1 +1 @@
1
- {"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;IACpC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC;CACxD,CAAC,CACH,CAAC;AAGW,QAAA,oBAAoB,GAAG,0BAAc,CAAC,KAAK,CACtD,OAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,2BAAmB,CAAC,CAAC;IACrD,kBAAkB;IAClB,aAAa,EAAE,OAAC,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,QAAQ,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAa,CAAC,CAAC,QAAQ,EAAE;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,2BAAmB,CAAC,CAAC;IACrD,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;CACvC,CAAC,CACH,CAAC;AAGW,QAAA,mBAAmB,GAAG,0BAAc,CAAC,KAAK,CACrD,OAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAY,CAAC,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAS,CAAC;CAC3B,CAAC,CACH,CAAC"}
@@ -18,7 +18,22 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
18
18
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19
19
  created: z.ZodOptional<z.ZodString>;
20
20
  lastActivityTime: z.ZodOptional<z.ZodString>;
21
- factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
21
+ factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ cid: z.ZodOptional<z.ZodString>;
23
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
24
+ vendorName: z.ZodOptional<z.ZodString>;
25
+ factorType: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodString, z.objectOutputType<{
27
+ cid: z.ZodOptional<z.ZodString>;
28
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
29
+ vendorName: z.ZodOptional<z.ZodString>;
30
+ factorType: z.ZodOptional<z.ZodString>;
31
+ }, z.ZodString, "strip">, z.objectInputType<{
32
+ cid: z.ZodOptional<z.ZodString>;
33
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
34
+ vendorName: z.ZodOptional<z.ZodString>;
35
+ factorType: z.ZodOptional<z.ZodString>;
36
+ }, z.ZodString, "strip">>, "many">>;
22
37
  profile: z.ZodObject<{
23
38
  firstName: z.ZodString;
24
39
  lastName: z.ZodString;
@@ -94,7 +109,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
94
109
  groups?: Record<string, string> | undefined;
95
110
  created?: string | undefined;
96
111
  lastActivityTime?: string | undefined;
97
- factors?: Record<string, string>[] | undefined;
112
+ factors?: z.objectOutputType<{
113
+ cid: z.ZodOptional<z.ZodString>;
114
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
115
+ vendorName: z.ZodOptional<z.ZodString>;
116
+ factorType: z.ZodOptional<z.ZodString>;
117
+ }, z.ZodString, "strip">[] | undefined;
98
118
  }, {
99
119
  profile: {
100
120
  email: string;
@@ -116,7 +136,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
116
136
  groups?: Record<string, string> | undefined;
117
137
  created?: string | undefined;
118
138
  lastActivityTime?: string | undefined;
119
- factors?: Record<string, string>[] | undefined;
139
+ factors?: z.objectInputType<{
140
+ cid: z.ZodOptional<z.ZodString>;
141
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
142
+ vendorName: z.ZodOptional<z.ZodString>;
143
+ factorType: z.ZodOptional<z.ZodString>;
144
+ }, z.ZodString, "strip">[] | undefined;
120
145
  }>;
121
146
  _raw: z.ZodUnknown;
122
147
  }, "strip", z.ZodTypeAny, {
@@ -141,7 +166,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
141
166
  groups?: Record<string, string> | undefined;
142
167
  created?: string | undefined;
143
168
  lastActivityTime?: string | undefined;
144
- factors?: Record<string, string>[] | undefined;
169
+ factors?: z.objectOutputType<{
170
+ cid: z.ZodOptional<z.ZodString>;
171
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
172
+ vendorName: z.ZodOptional<z.ZodString>;
173
+ factorType: z.ZodOptional<z.ZodString>;
174
+ }, z.ZodString, "strip">[] | undefined;
145
175
  };
146
176
  _raw?: unknown;
147
177
  }, {
@@ -166,7 +196,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
166
196
  groups?: Record<string, string> | undefined;
167
197
  created?: string | undefined;
168
198
  lastActivityTime?: string | undefined;
169
- factors?: Record<string, string>[] | undefined;
199
+ factors?: z.objectInputType<{
200
+ cid: z.ZodOptional<z.ZodString>;
201
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
202
+ vendorName: z.ZodOptional<z.ZodString>;
203
+ factorType: z.ZodOptional<z.ZodString>;
204
+ }, z.ZodString, "strip">[] | undefined;
170
205
  };
171
206
  _raw?: unknown;
172
207
  }>;
@@ -198,7 +233,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
198
233
  groups?: Record<string, string> | undefined;
199
234
  created?: string | undefined;
200
235
  lastActivityTime?: string | undefined;
201
- factors?: Record<string, string>[] | undefined;
236
+ factors?: z.objectOutputType<{
237
+ cid: z.ZodOptional<z.ZodString>;
238
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
239
+ vendorName: z.ZodOptional<z.ZodString>;
240
+ factorType: z.ZodOptional<z.ZodString>;
241
+ }, z.ZodString, "strip">[] | undefined;
202
242
  };
203
243
  _raw?: unknown;
204
244
  };
@@ -234,7 +274,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
234
274
  groups?: Record<string, string> | undefined;
235
275
  created?: string | undefined;
236
276
  lastActivityTime?: string | undefined;
237
- factors?: Record<string, string>[] | undefined;
277
+ factors?: z.objectInputType<{
278
+ cid: z.ZodOptional<z.ZodString>;
279
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
280
+ vendorName: z.ZodOptional<z.ZodString>;
281
+ factorType: z.ZodOptional<z.ZodString>;
282
+ }, z.ZodString, "strip">[] | undefined;
238
283
  };
239
284
  _raw?: unknown;
240
285
  };
@@ -1,5 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  import { GlobalUserType } from './enums';
3
+ export declare const _MfaFactorDto: z.ZodObject<{
4
+ cid: z.ZodOptional<z.ZodString>;
5
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
6
+ vendorName: z.ZodOptional<z.ZodString>;
7
+ factorType: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodString, z.objectOutputType<{
9
+ cid: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
11
+ vendorName: z.ZodOptional<z.ZodString>;
12
+ factorType: z.ZodOptional<z.ZodString>;
13
+ }, z.ZodString, "strip">, z.objectInputType<{
14
+ cid: z.ZodOptional<z.ZodString>;
15
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
16
+ vendorName: z.ZodOptional<z.ZodString>;
17
+ factorType: z.ZodOptional<z.ZodString>;
18
+ }, z.ZodString, "strip">>;
3
19
  export declare const _SaasUserMeta: z.ZodObject<{
4
20
  _user: z.ZodObject<{
5
21
  /** User ID from provider */
@@ -11,7 +27,22 @@ export declare const _SaasUserMeta: z.ZodObject<{
11
27
  /** User's last activity time */
12
28
  lastActivityTime: z.ZodOptional<z.ZodString>;
13
29
  /** User's factors */
14
- factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
30
+ factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ cid: z.ZodOptional<z.ZodString>;
32
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
33
+ vendorName: z.ZodOptional<z.ZodString>;
34
+ factorType: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodString, z.objectOutputType<{
36
+ cid: z.ZodOptional<z.ZodString>;
37
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
38
+ vendorName: z.ZodOptional<z.ZodString>;
39
+ factorType: z.ZodOptional<z.ZodString>;
40
+ }, z.ZodString, "strip">, z.objectInputType<{
41
+ cid: z.ZodOptional<z.ZodString>;
42
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
43
+ vendorName: z.ZodOptional<z.ZodString>;
44
+ factorType: z.ZodOptional<z.ZodString>;
45
+ }, z.ZodString, "strip">>, "many">>;
15
46
  /** User's profile with provider */
16
47
  profile: z.ZodObject<{
17
48
  /** User's first name */
@@ -101,7 +132,12 @@ export declare const _SaasUserMeta: z.ZodObject<{
101
132
  groups?: Record<string, string> | undefined;
102
133
  created?: string | undefined;
103
134
  lastActivityTime?: string | undefined;
104
- factors?: Record<string, string>[] | undefined;
135
+ factors?: z.objectOutputType<{
136
+ cid: z.ZodOptional<z.ZodString>;
137
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
138
+ vendorName: z.ZodOptional<z.ZodString>;
139
+ factorType: z.ZodOptional<z.ZodString>;
140
+ }, z.ZodString, "strip">[] | undefined;
105
141
  }, {
106
142
  profile: {
107
143
  email: string;
@@ -123,7 +159,12 @@ export declare const _SaasUserMeta: z.ZodObject<{
123
159
  groups?: Record<string, string> | undefined;
124
160
  created?: string | undefined;
125
161
  lastActivityTime?: string | undefined;
126
- factors?: Record<string, string>[] | undefined;
162
+ factors?: z.objectInputType<{
163
+ cid: z.ZodOptional<z.ZodString>;
164
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
165
+ vendorName: z.ZodOptional<z.ZodString>;
166
+ factorType: z.ZodOptional<z.ZodString>;
167
+ }, z.ZodString, "strip">[] | undefined;
127
168
  }>;
128
169
  _raw: z.ZodUnknown;
129
170
  }, "strip", z.ZodTypeAny, {
@@ -148,7 +189,12 @@ export declare const _SaasUserMeta: z.ZodObject<{
148
189
  groups?: Record<string, string> | undefined;
149
190
  created?: string | undefined;
150
191
  lastActivityTime?: string | undefined;
151
- factors?: Record<string, string>[] | undefined;
192
+ factors?: z.objectOutputType<{
193
+ cid: z.ZodOptional<z.ZodString>;
194
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
195
+ vendorName: z.ZodOptional<z.ZodString>;
196
+ factorType: z.ZodOptional<z.ZodString>;
197
+ }, z.ZodString, "strip">[] | undefined;
152
198
  };
153
199
  _raw?: unknown;
154
200
  }, {
@@ -173,7 +219,12 @@ export declare const _SaasUserMeta: z.ZodObject<{
173
219
  groups?: Record<string, string> | undefined;
174
220
  created?: string | undefined;
175
221
  lastActivityTime?: string | undefined;
176
- factors?: Record<string, string>[] | undefined;
222
+ factors?: z.objectInputType<{
223
+ cid: z.ZodOptional<z.ZodString>;
224
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
225
+ vendorName: z.ZodOptional<z.ZodString>;
226
+ factorType: z.ZodOptional<z.ZodString>;
227
+ }, z.ZodString, "strip">[] | undefined;
177
228
  };
178
229
  _raw?: unknown;
179
230
  }>;
@@ -199,7 +250,22 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
199
250
  /** User's last activity time */
200
251
  lastActivityTime: z.ZodOptional<z.ZodString>;
201
252
  /** User's factors */
202
- factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
253
+ factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
254
+ cid: z.ZodOptional<z.ZodString>;
255
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
256
+ vendorName: z.ZodOptional<z.ZodString>;
257
+ factorType: z.ZodOptional<z.ZodString>;
258
+ }, "strip", z.ZodString, z.objectOutputType<{
259
+ cid: z.ZodOptional<z.ZodString>;
260
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
261
+ vendorName: z.ZodOptional<z.ZodString>;
262
+ factorType: z.ZodOptional<z.ZodString>;
263
+ }, z.ZodString, "strip">, z.objectInputType<{
264
+ cid: z.ZodOptional<z.ZodString>;
265
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
266
+ vendorName: z.ZodOptional<z.ZodString>;
267
+ factorType: z.ZodOptional<z.ZodString>;
268
+ }, z.ZodString, "strip">>, "many">>;
203
269
  /** User's profile with provider */
204
270
  profile: z.ZodObject<{
205
271
  /** User's first name */
@@ -289,7 +355,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
289
355
  groups?: Record<string, string> | undefined;
290
356
  created?: string | undefined;
291
357
  lastActivityTime?: string | undefined;
292
- factors?: Record<string, string>[] | undefined;
358
+ factors?: z.objectOutputType<{
359
+ cid: z.ZodOptional<z.ZodString>;
360
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
361
+ vendorName: z.ZodOptional<z.ZodString>;
362
+ factorType: z.ZodOptional<z.ZodString>;
363
+ }, z.ZodString, "strip">[] | undefined;
293
364
  }, {
294
365
  profile: {
295
366
  email: string;
@@ -311,7 +382,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
311
382
  groups?: Record<string, string> | undefined;
312
383
  created?: string | undefined;
313
384
  lastActivityTime?: string | undefined;
314
- factors?: Record<string, string>[] | undefined;
385
+ factors?: z.objectInputType<{
386
+ cid: z.ZodOptional<z.ZodString>;
387
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
388
+ vendorName: z.ZodOptional<z.ZodString>;
389
+ factorType: z.ZodOptional<z.ZodString>;
390
+ }, z.ZodString, "strip">[] | undefined;
315
391
  }>;
316
392
  _raw: z.ZodUnknown;
317
393
  }, "strip", z.ZodTypeAny, {
@@ -336,7 +412,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
336
412
  groups?: Record<string, string> | undefined;
337
413
  created?: string | undefined;
338
414
  lastActivityTime?: string | undefined;
339
- factors?: Record<string, string>[] | undefined;
415
+ factors?: z.objectOutputType<{
416
+ cid: z.ZodOptional<z.ZodString>;
417
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
418
+ vendorName: z.ZodOptional<z.ZodString>;
419
+ factorType: z.ZodOptional<z.ZodString>;
420
+ }, z.ZodString, "strip">[] | undefined;
340
421
  };
341
422
  _raw?: unknown;
342
423
  }, {
@@ -361,7 +442,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
361
442
  groups?: Record<string, string> | undefined;
362
443
  created?: string | undefined;
363
444
  lastActivityTime?: string | undefined;
364
- factors?: Record<string, string>[] | undefined;
445
+ factors?: z.objectInputType<{
446
+ cid: z.ZodOptional<z.ZodString>;
447
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
448
+ vendorName: z.ZodOptional<z.ZodString>;
449
+ factorType: z.ZodOptional<z.ZodString>;
450
+ }, z.ZodString, "strip">[] | undefined;
365
451
  };
366
452
  _raw?: unknown;
367
453
  }>;
@@ -393,7 +479,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
393
479
  groups?: Record<string, string> | undefined;
394
480
  created?: string | undefined;
395
481
  lastActivityTime?: string | undefined;
396
- factors?: Record<string, string>[] | undefined;
482
+ factors?: z.objectOutputType<{
483
+ cid: z.ZodOptional<z.ZodString>;
484
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
485
+ vendorName: z.ZodOptional<z.ZodString>;
486
+ factorType: z.ZodOptional<z.ZodString>;
487
+ }, z.ZodString, "strip">[] | undefined;
397
488
  };
398
489
  _raw?: unknown;
399
490
  };
@@ -429,7 +520,12 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
429
520
  groups?: Record<string, string> | undefined;
430
521
  created?: string | undefined;
431
522
  lastActivityTime?: string | undefined;
432
- factors?: Record<string, string>[] | undefined;
523
+ factors?: z.objectInputType<{
524
+ cid: z.ZodOptional<z.ZodString>;
525
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
526
+ vendorName: z.ZodOptional<z.ZodString>;
527
+ factorType: z.ZodOptional<z.ZodString>;
528
+ }, z.ZodString, "strip">[] | undefined;
433
529
  };
434
530
  _raw?: unknown;
435
531
  };
@@ -455,7 +551,22 @@ export declare const _SaasUserDto: z.ZodObject<{
455
551
  /** User's last activity time */
456
552
  lastActivityTime: z.ZodOptional<z.ZodString>;
457
553
  /** User's factors */
458
- factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
554
+ factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
555
+ cid: z.ZodOptional<z.ZodString>;
556
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
557
+ vendorName: z.ZodOptional<z.ZodString>;
558
+ factorType: z.ZodOptional<z.ZodString>;
559
+ }, "strip", z.ZodString, z.objectOutputType<{
560
+ cid: z.ZodOptional<z.ZodString>;
561
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
562
+ vendorName: z.ZodOptional<z.ZodString>;
563
+ factorType: z.ZodOptional<z.ZodString>;
564
+ }, z.ZodString, "strip">, z.objectInputType<{
565
+ cid: z.ZodOptional<z.ZodString>;
566
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
567
+ vendorName: z.ZodOptional<z.ZodString>;
568
+ factorType: z.ZodOptional<z.ZodString>;
569
+ }, z.ZodString, "strip">>, "many">>;
459
570
  /** User's profile with provider */
460
571
  profile: z.ZodObject<{
461
572
  /** User's first name */
@@ -545,7 +656,12 @@ export declare const _SaasUserDto: z.ZodObject<{
545
656
  groups?: Record<string, string> | undefined;
546
657
  created?: string | undefined;
547
658
  lastActivityTime?: string | undefined;
548
- factors?: Record<string, string>[] | undefined;
659
+ factors?: z.objectOutputType<{
660
+ cid: z.ZodOptional<z.ZodString>;
661
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
662
+ vendorName: z.ZodOptional<z.ZodString>;
663
+ factorType: z.ZodOptional<z.ZodString>;
664
+ }, z.ZodString, "strip">[] | undefined;
549
665
  }, {
550
666
  profile: {
551
667
  email: string;
@@ -567,7 +683,12 @@ export declare const _SaasUserDto: z.ZodObject<{
567
683
  groups?: Record<string, string> | undefined;
568
684
  created?: string | undefined;
569
685
  lastActivityTime?: string | undefined;
570
- factors?: Record<string, string>[] | undefined;
686
+ factors?: z.objectInputType<{
687
+ cid: z.ZodOptional<z.ZodString>;
688
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
689
+ vendorName: z.ZodOptional<z.ZodString>;
690
+ factorType: z.ZodOptional<z.ZodString>;
691
+ }, z.ZodString, "strip">[] | undefined;
571
692
  }>;
572
693
  _raw: z.ZodUnknown;
573
694
  }, "strip", z.ZodTypeAny, {
@@ -592,7 +713,12 @@ export declare const _SaasUserDto: z.ZodObject<{
592
713
  groups?: Record<string, string> | undefined;
593
714
  created?: string | undefined;
594
715
  lastActivityTime?: string | undefined;
595
- factors?: Record<string, string>[] | undefined;
716
+ factors?: z.objectOutputType<{
717
+ cid: z.ZodOptional<z.ZodString>;
718
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
719
+ vendorName: z.ZodOptional<z.ZodString>;
720
+ factorType: z.ZodOptional<z.ZodString>;
721
+ }, z.ZodString, "strip">[] | undefined;
596
722
  };
597
723
  _raw?: unknown;
598
724
  }, {
@@ -617,7 +743,12 @@ export declare const _SaasUserDto: z.ZodObject<{
617
743
  groups?: Record<string, string> | undefined;
618
744
  created?: string | undefined;
619
745
  lastActivityTime?: string | undefined;
620
- factors?: Record<string, string>[] | undefined;
746
+ factors?: z.objectInputType<{
747
+ cid: z.ZodOptional<z.ZodString>;
748
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
749
+ vendorName: z.ZodOptional<z.ZodString>;
750
+ factorType: z.ZodOptional<z.ZodString>;
751
+ }, z.ZodString, "strip">[] | undefined;
621
752
  };
622
753
  _raw?: unknown;
623
754
  }>;
@@ -658,7 +789,12 @@ export declare const _SaasUserDto: z.ZodObject<{
658
789
  groups?: Record<string, string> | undefined;
659
790
  created?: string | undefined;
660
791
  lastActivityTime?: string | undefined;
661
- factors?: Record<string, string>[] | undefined;
792
+ factors?: z.objectOutputType<{
793
+ cid: z.ZodOptional<z.ZodString>;
794
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
795
+ vendorName: z.ZodOptional<z.ZodString>;
796
+ factorType: z.ZodOptional<z.ZodString>;
797
+ }, z.ZodString, "strip">[] | undefined;
662
798
  };
663
799
  _raw?: unknown;
664
800
  };
@@ -694,7 +830,12 @@ export declare const _SaasUserDto: z.ZodObject<{
694
830
  groups?: Record<string, string> | undefined;
695
831
  created?: string | undefined;
696
832
  lastActivityTime?: string | undefined;
697
- factors?: Record<string, string>[] | undefined;
833
+ factors?: z.objectInputType<{
834
+ cid: z.ZodOptional<z.ZodString>;
835
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodString]>>;
836
+ vendorName: z.ZodOptional<z.ZodString>;
837
+ factorType: z.ZodOptional<z.ZodString>;
838
+ }, z.ZodString, "strip">[] | undefined;
698
839
  };
699
840
  _raw?: unknown;
700
841
  };
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._SaasUserDto = exports._SaasUserUpsertDto = exports._SaasUserMeta = void 0;
3
+ exports._SaasUserDto = exports._SaasUserUpsertDto = exports._SaasUserMeta = exports._MfaFactorDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const base_dto_1 = require("./base.dto");
6
6
  const enums_1 = require("./enums");
7
+ // export const _MfaFactorDto = z.record(z.string(), z.string());
8
+ exports._MfaFactorDto = zod_1.z
9
+ .object({
10
+ cid: zod_1.z.string().optional(),
11
+ status: zod_1.z.union([zod_1.z.literal('ACTIVE'), zod_1.z.string()]).optional(),
12
+ vendorName: zod_1.z.string().optional(),
13
+ factorType: zod_1.z.string().optional(),
14
+ })
15
+ .catchall(zod_1.z.string());
7
16
  exports._SaasUserMeta = zod_1.z.object({
8
17
  _user: zod_1.z.object({
9
18
  /** User ID from provider */
@@ -15,7 +24,7 @@ exports._SaasUserMeta = zod_1.z.object({
15
24
  /** User's last activity time */
16
25
  lastActivityTime: zod_1.z.optional(zod_1.z.string()),
17
26
  /** User's factors */
18
- factors: zod_1.z.optional(zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.string()))),
27
+ factors: zod_1.z.optional(zod_1.z.array(exports._MfaFactorDto)),
19
28
  /** User's profile with provider */
20
29
  profile: zod_1.z.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ACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,qBAAqB;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,wDAAwD;IACxD,IAAI,EAAE,qBAAa;CACpB,CAAC,CACH,CAAC;AAIW,QAAA,YAAY,GAAG,0BAAkB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "62.4.0",
3
+ "version": "62.5.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,7 +1,7 @@
1
1
  import {z} from 'zod';
2
2
  import {_AssetDto, _SummaryAssetDto} from './assets.dto';
3
3
  import {_SaasAssetDto} from './saasAssets.dto';
4
- import {_SaasUserDto} from './saasUsers.dto';
4
+ import {_MfaFactorDto, _SaasUserDto} from './saasUsers.dto';
5
5
  import {_SimpleUserDto} from './users.dto';
6
6
 
7
7
  export const _AssetAccountSummary = z.object({
@@ -26,6 +26,8 @@ export type AssetCoverageSummary = z.infer<typeof _AssetCoverageSummary>;
26
26
  export const _UserCoverageSummary = _SimpleUserDto.merge(
27
27
  z.object({
28
28
  name: z.string().optional(),
29
+ mfaEnabled: z.boolean().optional(),
30
+ mfaFactors: z.array(_MfaFactorDto).optional(),
29
31
  notifications: z.number().optional(),
30
32
  /** @deprecated */
31
33
  userAccounts: z.record(z.number()),
@@ -2,6 +2,16 @@ import {z} from 'zod';
2
2
  import {_ChangeAwareDto, _ChangeAwareUpsertDto} from './base.dto';
3
3
  import {GlobalUserType} from './enums';
4
4
 
5
+ // export const _MfaFactorDto = z.record(z.string(), z.string());
6
+ export const _MfaFactorDto = z
7
+ .object({
8
+ cid: z.string().optional(),
9
+ status: z.union([z.literal('ACTIVE'), z.string()]).optional(),
10
+ vendorName: z.string().optional(),
11
+ factorType: z.string().optional(),
12
+ })
13
+ .catchall(z.string());
14
+
5
15
  export const _SaasUserMeta = z.object({
6
16
  _user: z.object({
7
17
  /** User ID from provider */
@@ -13,7 +23,7 @@ export const _SaasUserMeta = z.object({
13
23
  /** User's last activity time */
14
24
  lastActivityTime: z.optional(z.string()),
15
25
  /** User's factors */
16
- factors: z.optional(z.array(z.record(z.string(), z.string()))),
26
+ factors: z.optional(z.array(_MfaFactorDto)),
17
27
  /** User's profile with provider */
18
28
  profile: z.object({
19
29
  /** User's first name */