@ampsec/platform-client 62.4.0 → 62.6.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/coverage.dto.d.ts +95 -9
- package/build/src/dto/coverage.dto.js +2 -0
- package/build/src/dto/coverage.dto.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/platform.saasUsers.dto.d.ts +52 -7
- package/build/src/dto/saasUsers.dto.d.ts +160 -19
- package/build/src/dto/saasUsers.dto.js +11 -2
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/coverage.dto.ts +3 -1
- package/src/dto/notification.dto.ts +1 -1
- package/src/dto/saasUsers.dto.ts +11 -1
|
@@ -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']);
|
|
32
|
+
exports._FlowContextKey = zod_1.z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED']);
|
|
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,yCAA6D;AAE7D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;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;AAGW,QAAA,2BAA2B,GAAG,kCAA0B,CAAC,KAAK,CACzE,OAAC,CAAC,MAAM,CAAC;IACP,eAAe,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACtD,gBAAgB,EAAE,8BAAsB;CACzC,CAAC,CACH,CAAC;AAGF,4GAA4G;AAC/F,QAAA,sBAAsB,GAAG,OAAC,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,CAAC,mCAA2B,EAAE,mCAA2B,CAAC,CAAC,CAAC;AAG7H,QAAA,gBAAgB,GAAG,8BAAsB,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AAGxD,QAAA,sBAAsB,GAAG,yBAAc,CAAC,KAAK,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAC3C,OAAO,EAAE,2BAAmB;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC;IACF,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,uEAAuE;IACvE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,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.
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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.
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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.
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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.
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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(
|
|
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.object({
|
|
21
30
|
/** User's first name */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAClE,mCAAuC;
|
|
1
|
+
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAClE,mCAAuC;AAEvC,iEAAiE;AACpD,QAAA,aAAa,GAAG,OAAC;KAC3B,MAAM,CAAC;IACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAEX,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,4BAA4B;QAC5B,KAAK,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC7B,+BAA+B;QAC/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gBAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC3B,6BAA6B;gBAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;aAC7B,CAAC;iBACD,QAAQ,EAAE;YACb,kBAAkB;YAClB,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAc,CAAC;SACvC,CAAC;KACH,CAAC;IACF,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,gCAAqB,CAAC,KAAK,CAC3D,OAAC,CAAC,MAAM,CAAC;IACP,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,mBAAmB;IACnB,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
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -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()),
|
|
@@ -28,7 +28,7 @@ export const _NotificationAddress = z.object({
|
|
|
28
28
|
webhooks: z.array(z.string()).optional(),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export const _FlowContextKey = z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED']);
|
|
31
|
+
export const _FlowContextKey = z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED']);
|
|
32
32
|
export const _FlowContext = z.record(_FlowContextKey, z.any());
|
|
33
33
|
|
|
34
34
|
export const _RawContentStrategy = z.object({
|
package/src/dto/saasUsers.dto.ts
CHANGED
|
@@ -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(
|
|
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 */
|