@ampsec/platform-client 80.5.0 → 81.1.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 +166 -40
- package/build/src/dto/enums/category.d.ts +2 -1
- package/build/src/dto/enums/category.js +1 -0
- package/build/src/dto/enums/category.js.map +1 -1
- package/build/src/dto/enums/findingKind.d.ts +3 -1
- package/build/src/dto/enums/findingKind.js +32 -1
- package/build/src/dto/enums/findingKind.js.map +1 -1
- package/build/src/dto/enums/saasComponentKind.d.ts +3 -1
- package/build/src/dto/enums/saasComponentKind.js +3 -0
- package/build/src/dto/enums/saasComponentKind.js.map +1 -1
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +30 -30
- package/build/src/dto/saasComponents.dto.d.ts +2 -0
- package/build/src/dto/saasUsers.dto.d.ts +80 -80
- package/build/src/dto/users.dto.d.ts +114 -3
- package/build/src/dto/users.dto.js +10 -1
- package/build/src/dto/users.dto.js.map +1 -1
- package/build/src/settings.d.ts +4 -0
- package/build/src/settings.js +5 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/enums/category.ts +1 -0
- package/src/dto/enums/findingKind.ts +33 -1
- package/src/dto/enums/saasComponentKind.ts +4 -0
- package/src/dto/saasComponents.dto.ts +2 -0
- package/src/dto/users.dto.ts +14 -3
- package/src/settings.ts +6 -0
|
@@ -131,6 +131,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
131
131
|
groups?: Record<string, string> | undefined;
|
|
132
132
|
extId?: string | undefined;
|
|
133
133
|
lastActivityTime?: string | undefined;
|
|
134
|
+
timeZoneInfo?: {
|
|
135
|
+
timezone: string;
|
|
136
|
+
src: import("..").TimeZoneSource;
|
|
137
|
+
config?: Record<string, unknown> | undefined;
|
|
138
|
+
} | undefined;
|
|
134
139
|
created?: string | undefined;
|
|
135
140
|
factors?: z.objectOutputType<{
|
|
136
141
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -139,11 +144,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
139
144
|
factorType: z.ZodOptional<z.ZodString>;
|
|
140
145
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
141
146
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
142
|
-
timeZoneInfo?: {
|
|
143
|
-
timezone: string;
|
|
144
|
-
src: import("..").TimeZoneSource;
|
|
145
|
-
config?: Record<string, unknown> | undefined;
|
|
146
|
-
} | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
profile: {
|
|
149
149
|
email: string;
|
|
@@ -165,6 +165,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
165
165
|
groups?: Record<string, string> | undefined;
|
|
166
166
|
extId?: string | undefined;
|
|
167
167
|
lastActivityTime?: string | undefined;
|
|
168
|
+
timeZoneInfo?: {
|
|
169
|
+
timezone: string;
|
|
170
|
+
src: import("..").TimeZoneSource;
|
|
171
|
+
config?: Record<string, unknown> | undefined;
|
|
172
|
+
} | undefined;
|
|
168
173
|
created?: string | undefined;
|
|
169
174
|
factors?: z.objectInputType<{
|
|
170
175
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -173,11 +178,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
173
178
|
factorType: z.ZodOptional<z.ZodString>;
|
|
174
179
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
175
180
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
176
|
-
timeZoneInfo?: {
|
|
177
|
-
timezone: string;
|
|
178
|
-
src: import("..").TimeZoneSource;
|
|
179
|
-
config?: Record<string, unknown> | undefined;
|
|
180
|
-
} | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
_raw: z.ZodUnknown;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -202,6 +202,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
202
202
|
groups?: Record<string, string> | undefined;
|
|
203
203
|
extId?: string | undefined;
|
|
204
204
|
lastActivityTime?: string | undefined;
|
|
205
|
+
timeZoneInfo?: {
|
|
206
|
+
timezone: string;
|
|
207
|
+
src: import("..").TimeZoneSource;
|
|
208
|
+
config?: Record<string, unknown> | undefined;
|
|
209
|
+
} | undefined;
|
|
205
210
|
created?: string | undefined;
|
|
206
211
|
factors?: z.objectOutputType<{
|
|
207
212
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -210,11 +215,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
210
215
|
factorType: z.ZodOptional<z.ZodString>;
|
|
211
216
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
212
217
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
213
|
-
timeZoneInfo?: {
|
|
214
|
-
timezone: string;
|
|
215
|
-
src: import("..").TimeZoneSource;
|
|
216
|
-
config?: Record<string, unknown> | undefined;
|
|
217
|
-
} | undefined;
|
|
218
218
|
};
|
|
219
219
|
_raw?: unknown;
|
|
220
220
|
}, {
|
|
@@ -239,6 +239,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
239
239
|
groups?: Record<string, string> | undefined;
|
|
240
240
|
extId?: string | undefined;
|
|
241
241
|
lastActivityTime?: string | undefined;
|
|
242
|
+
timeZoneInfo?: {
|
|
243
|
+
timezone: string;
|
|
244
|
+
src: import("..").TimeZoneSource;
|
|
245
|
+
config?: Record<string, unknown> | undefined;
|
|
246
|
+
} | undefined;
|
|
242
247
|
created?: string | undefined;
|
|
243
248
|
factors?: z.objectInputType<{
|
|
244
249
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -247,11 +252,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
247
252
|
factorType: z.ZodOptional<z.ZodString>;
|
|
248
253
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
249
254
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
250
|
-
timeZoneInfo?: {
|
|
251
|
-
timezone: string;
|
|
252
|
-
src: import("..").TimeZoneSource;
|
|
253
|
-
config?: Record<string, unknown> | undefined;
|
|
254
|
-
} | undefined;
|
|
255
255
|
};
|
|
256
256
|
_raw?: unknown;
|
|
257
257
|
}>;
|
|
@@ -285,6 +285,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
285
285
|
groups?: Record<string, string> | undefined;
|
|
286
286
|
extId?: string | undefined;
|
|
287
287
|
lastActivityTime?: string | undefined;
|
|
288
|
+
timeZoneInfo?: {
|
|
289
|
+
timezone: string;
|
|
290
|
+
src: import("..").TimeZoneSource;
|
|
291
|
+
config?: Record<string, unknown> | undefined;
|
|
292
|
+
} | undefined;
|
|
288
293
|
created?: string | undefined;
|
|
289
294
|
factors?: z.objectOutputType<{
|
|
290
295
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -293,11 +298,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
293
298
|
factorType: z.ZodOptional<z.ZodString>;
|
|
294
299
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
295
300
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
296
|
-
timeZoneInfo?: {
|
|
297
|
-
timezone: string;
|
|
298
|
-
src: import("..").TimeZoneSource;
|
|
299
|
-
config?: Record<string, unknown> | undefined;
|
|
300
|
-
} | undefined;
|
|
301
301
|
};
|
|
302
302
|
_raw?: unknown;
|
|
303
303
|
};
|
|
@@ -334,6 +334,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
334
334
|
groups?: Record<string, string> | undefined;
|
|
335
335
|
extId?: string | undefined;
|
|
336
336
|
lastActivityTime?: string | undefined;
|
|
337
|
+
timeZoneInfo?: {
|
|
338
|
+
timezone: string;
|
|
339
|
+
src: import("..").TimeZoneSource;
|
|
340
|
+
config?: Record<string, unknown> | undefined;
|
|
341
|
+
} | undefined;
|
|
337
342
|
created?: string | undefined;
|
|
338
343
|
factors?: z.objectInputType<{
|
|
339
344
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -342,11 +347,6 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
342
347
|
factorType: z.ZodOptional<z.ZodString>;
|
|
343
348
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
344
349
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
345
|
-
timeZoneInfo?: {
|
|
346
|
-
timezone: string;
|
|
347
|
-
src: import("..").TimeZoneSource;
|
|
348
|
-
config?: Record<string, unknown> | undefined;
|
|
349
|
-
} | undefined;
|
|
350
350
|
};
|
|
351
351
|
_raw?: unknown;
|
|
352
352
|
};
|
|
@@ -78,6 +78,8 @@ export type RawFindingsContext = {
|
|
|
78
78
|
unquarantinedMalwareDetected?: boolean;
|
|
79
79
|
context?: Record<string, string>;
|
|
80
80
|
findingStatus?: FindingStatus;
|
|
81
|
+
isTopClicker?: boolean;
|
|
82
|
+
isVeryAttacked?: boolean;
|
|
81
83
|
};
|
|
82
84
|
export type SaasComponentMeta = {
|
|
83
85
|
_findings: RawFindingsContext;
|
|
@@ -159,6 +159,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
159
159
|
groups?: Record<string, string> | undefined;
|
|
160
160
|
extId?: string | undefined;
|
|
161
161
|
lastActivityTime?: string | undefined;
|
|
162
|
+
timeZoneInfo?: {
|
|
163
|
+
timezone: string;
|
|
164
|
+
src: import("./enums").TimeZoneSource;
|
|
165
|
+
config?: Record<string, unknown> | undefined;
|
|
166
|
+
} | undefined;
|
|
162
167
|
created?: string | undefined;
|
|
163
168
|
factors?: z.objectOutputType<{
|
|
164
169
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -167,11 +172,6 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
167
172
|
factorType: z.ZodOptional<z.ZodString>;
|
|
168
173
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
169
174
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
170
|
-
timeZoneInfo?: {
|
|
171
|
-
timezone: string;
|
|
172
|
-
src: import("./enums").TimeZoneSource;
|
|
173
|
-
config?: Record<string, unknown> | undefined;
|
|
174
|
-
} | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
profile: {
|
|
177
177
|
email: string;
|
|
@@ -193,6 +193,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
193
193
|
groups?: Record<string, string> | undefined;
|
|
194
194
|
extId?: string | undefined;
|
|
195
195
|
lastActivityTime?: string | undefined;
|
|
196
|
+
timeZoneInfo?: {
|
|
197
|
+
timezone: string;
|
|
198
|
+
src: import("./enums").TimeZoneSource;
|
|
199
|
+
config?: Record<string, unknown> | undefined;
|
|
200
|
+
} | undefined;
|
|
196
201
|
created?: string | undefined;
|
|
197
202
|
factors?: z.objectInputType<{
|
|
198
203
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -201,11 +206,6 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
201
206
|
factorType: z.ZodOptional<z.ZodString>;
|
|
202
207
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
203
208
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
204
|
-
timeZoneInfo?: {
|
|
205
|
-
timezone: string;
|
|
206
|
-
src: import("./enums").TimeZoneSource;
|
|
207
|
-
config?: Record<string, unknown> | undefined;
|
|
208
|
-
} | undefined;
|
|
209
209
|
}>;
|
|
210
210
|
_raw: z.ZodUnknown;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -230,6 +230,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
230
230
|
groups?: Record<string, string> | undefined;
|
|
231
231
|
extId?: string | undefined;
|
|
232
232
|
lastActivityTime?: string | undefined;
|
|
233
|
+
timeZoneInfo?: {
|
|
234
|
+
timezone: string;
|
|
235
|
+
src: import("./enums").TimeZoneSource;
|
|
236
|
+
config?: Record<string, unknown> | undefined;
|
|
237
|
+
} | undefined;
|
|
233
238
|
created?: string | undefined;
|
|
234
239
|
factors?: z.objectOutputType<{
|
|
235
240
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -238,11 +243,6 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
238
243
|
factorType: z.ZodOptional<z.ZodString>;
|
|
239
244
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
240
245
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
241
|
-
timeZoneInfo?: {
|
|
242
|
-
timezone: string;
|
|
243
|
-
src: import("./enums").TimeZoneSource;
|
|
244
|
-
config?: Record<string, unknown> | undefined;
|
|
245
|
-
} | undefined;
|
|
246
246
|
};
|
|
247
247
|
_raw?: unknown;
|
|
248
248
|
}, {
|
|
@@ -267,6 +267,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
267
267
|
groups?: Record<string, string> | undefined;
|
|
268
268
|
extId?: string | undefined;
|
|
269
269
|
lastActivityTime?: string | undefined;
|
|
270
|
+
timeZoneInfo?: {
|
|
271
|
+
timezone: string;
|
|
272
|
+
src: import("./enums").TimeZoneSource;
|
|
273
|
+
config?: Record<string, unknown> | undefined;
|
|
274
|
+
} | undefined;
|
|
270
275
|
created?: string | undefined;
|
|
271
276
|
factors?: z.objectInputType<{
|
|
272
277
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -275,11 +280,6 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
275
280
|
factorType: z.ZodOptional<z.ZodString>;
|
|
276
281
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
277
282
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
278
|
-
timeZoneInfo?: {
|
|
279
|
-
timezone: string;
|
|
280
|
-
src: import("./enums").TimeZoneSource;
|
|
281
|
-
config?: Record<string, unknown> | undefined;
|
|
282
|
-
} | undefined;
|
|
283
283
|
};
|
|
284
284
|
_raw?: unknown;
|
|
285
285
|
}>;
|
|
@@ -438,6 +438,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
438
438
|
groups?: Record<string, string> | undefined;
|
|
439
439
|
extId?: string | undefined;
|
|
440
440
|
lastActivityTime?: string | undefined;
|
|
441
|
+
timeZoneInfo?: {
|
|
442
|
+
timezone: string;
|
|
443
|
+
src: import("./enums").TimeZoneSource;
|
|
444
|
+
config?: Record<string, unknown> | undefined;
|
|
445
|
+
} | undefined;
|
|
441
446
|
created?: string | undefined;
|
|
442
447
|
factors?: z.objectOutputType<{
|
|
443
448
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -446,11 +451,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
446
451
|
factorType: z.ZodOptional<z.ZodString>;
|
|
447
452
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
448
453
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
449
|
-
timeZoneInfo?: {
|
|
450
|
-
timezone: string;
|
|
451
|
-
src: import("./enums").TimeZoneSource;
|
|
452
|
-
config?: Record<string, unknown> | undefined;
|
|
453
|
-
} | undefined;
|
|
454
454
|
}, {
|
|
455
455
|
profile: {
|
|
456
456
|
email: string;
|
|
@@ -472,6 +472,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
472
472
|
groups?: Record<string, string> | undefined;
|
|
473
473
|
extId?: string | undefined;
|
|
474
474
|
lastActivityTime?: string | undefined;
|
|
475
|
+
timeZoneInfo?: {
|
|
476
|
+
timezone: string;
|
|
477
|
+
src: import("./enums").TimeZoneSource;
|
|
478
|
+
config?: Record<string, unknown> | undefined;
|
|
479
|
+
} | undefined;
|
|
475
480
|
created?: string | undefined;
|
|
476
481
|
factors?: z.objectInputType<{
|
|
477
482
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -480,11 +485,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
480
485
|
factorType: z.ZodOptional<z.ZodString>;
|
|
481
486
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
482
487
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
483
|
-
timeZoneInfo?: {
|
|
484
|
-
timezone: string;
|
|
485
|
-
src: import("./enums").TimeZoneSource;
|
|
486
|
-
config?: Record<string, unknown> | undefined;
|
|
487
|
-
} | undefined;
|
|
488
488
|
}>;
|
|
489
489
|
_raw: z.ZodUnknown;
|
|
490
490
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -509,6 +509,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
509
509
|
groups?: Record<string, string> | undefined;
|
|
510
510
|
extId?: string | undefined;
|
|
511
511
|
lastActivityTime?: string | undefined;
|
|
512
|
+
timeZoneInfo?: {
|
|
513
|
+
timezone: string;
|
|
514
|
+
src: import("./enums").TimeZoneSource;
|
|
515
|
+
config?: Record<string, unknown> | undefined;
|
|
516
|
+
} | undefined;
|
|
512
517
|
created?: string | undefined;
|
|
513
518
|
factors?: z.objectOutputType<{
|
|
514
519
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -517,11 +522,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
517
522
|
factorType: z.ZodOptional<z.ZodString>;
|
|
518
523
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
519
524
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
520
|
-
timeZoneInfo?: {
|
|
521
|
-
timezone: string;
|
|
522
|
-
src: import("./enums").TimeZoneSource;
|
|
523
|
-
config?: Record<string, unknown> | undefined;
|
|
524
|
-
} | undefined;
|
|
525
525
|
};
|
|
526
526
|
_raw?: unknown;
|
|
527
527
|
}, {
|
|
@@ -546,6 +546,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
546
546
|
groups?: Record<string, string> | undefined;
|
|
547
547
|
extId?: string | undefined;
|
|
548
548
|
lastActivityTime?: string | undefined;
|
|
549
|
+
timeZoneInfo?: {
|
|
550
|
+
timezone: string;
|
|
551
|
+
src: import("./enums").TimeZoneSource;
|
|
552
|
+
config?: Record<string, unknown> | undefined;
|
|
553
|
+
} | undefined;
|
|
549
554
|
created?: string | undefined;
|
|
550
555
|
factors?: z.objectInputType<{
|
|
551
556
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -554,11 +559,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
554
559
|
factorType: z.ZodOptional<z.ZodString>;
|
|
555
560
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
556
561
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
557
|
-
timeZoneInfo?: {
|
|
558
|
-
timezone: string;
|
|
559
|
-
src: import("./enums").TimeZoneSource;
|
|
560
|
-
config?: Record<string, unknown> | undefined;
|
|
561
|
-
} | undefined;
|
|
562
562
|
};
|
|
563
563
|
_raw?: unknown;
|
|
564
564
|
}>;
|
|
@@ -590,6 +590,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
590
590
|
groups?: Record<string, string> | undefined;
|
|
591
591
|
extId?: string | undefined;
|
|
592
592
|
lastActivityTime?: string | undefined;
|
|
593
|
+
timeZoneInfo?: {
|
|
594
|
+
timezone: string;
|
|
595
|
+
src: import("./enums").TimeZoneSource;
|
|
596
|
+
config?: Record<string, unknown> | undefined;
|
|
597
|
+
} | undefined;
|
|
593
598
|
created?: string | undefined;
|
|
594
599
|
factors?: z.objectOutputType<{
|
|
595
600
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -598,11 +603,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
598
603
|
factorType: z.ZodOptional<z.ZodString>;
|
|
599
604
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
600
605
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
601
|
-
timeZoneInfo?: {
|
|
602
|
-
timezone: string;
|
|
603
|
-
src: import("./enums").TimeZoneSource;
|
|
604
|
-
config?: Record<string, unknown> | undefined;
|
|
605
|
-
} | undefined;
|
|
606
606
|
};
|
|
607
607
|
_raw?: unknown;
|
|
608
608
|
};
|
|
@@ -638,6 +638,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
638
638
|
groups?: Record<string, string> | undefined;
|
|
639
639
|
extId?: string | undefined;
|
|
640
640
|
lastActivityTime?: string | undefined;
|
|
641
|
+
timeZoneInfo?: {
|
|
642
|
+
timezone: string;
|
|
643
|
+
src: import("./enums").TimeZoneSource;
|
|
644
|
+
config?: Record<string, unknown> | undefined;
|
|
645
|
+
} | undefined;
|
|
641
646
|
created?: string | undefined;
|
|
642
647
|
factors?: z.objectInputType<{
|
|
643
648
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -646,11 +651,6 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
646
651
|
factorType: z.ZodOptional<z.ZodString>;
|
|
647
652
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
648
653
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
649
|
-
timeZoneInfo?: {
|
|
650
|
-
timezone: string;
|
|
651
|
-
src: import("./enums").TimeZoneSource;
|
|
652
|
-
config?: Record<string, unknown> | undefined;
|
|
653
|
-
} | undefined;
|
|
654
654
|
};
|
|
655
655
|
_raw?: unknown;
|
|
656
656
|
};
|
|
@@ -814,6 +814,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
814
814
|
groups?: Record<string, string> | undefined;
|
|
815
815
|
extId?: string | undefined;
|
|
816
816
|
lastActivityTime?: string | undefined;
|
|
817
|
+
timeZoneInfo?: {
|
|
818
|
+
timezone: string;
|
|
819
|
+
src: import("./enums").TimeZoneSource;
|
|
820
|
+
config?: Record<string, unknown> | undefined;
|
|
821
|
+
} | undefined;
|
|
817
822
|
created?: string | undefined;
|
|
818
823
|
factors?: z.objectOutputType<{
|
|
819
824
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -822,11 +827,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
822
827
|
factorType: z.ZodOptional<z.ZodString>;
|
|
823
828
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
824
829
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
825
|
-
timeZoneInfo?: {
|
|
826
|
-
timezone: string;
|
|
827
|
-
src: import("./enums").TimeZoneSource;
|
|
828
|
-
config?: Record<string, unknown> | undefined;
|
|
829
|
-
} | undefined;
|
|
830
830
|
}, {
|
|
831
831
|
profile: {
|
|
832
832
|
email: string;
|
|
@@ -848,6 +848,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
848
848
|
groups?: Record<string, string> | undefined;
|
|
849
849
|
extId?: string | undefined;
|
|
850
850
|
lastActivityTime?: string | undefined;
|
|
851
|
+
timeZoneInfo?: {
|
|
852
|
+
timezone: string;
|
|
853
|
+
src: import("./enums").TimeZoneSource;
|
|
854
|
+
config?: Record<string, unknown> | undefined;
|
|
855
|
+
} | undefined;
|
|
851
856
|
created?: string | undefined;
|
|
852
857
|
factors?: z.objectInputType<{
|
|
853
858
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -856,11 +861,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
856
861
|
factorType: z.ZodOptional<z.ZodString>;
|
|
857
862
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
858
863
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
859
|
-
timeZoneInfo?: {
|
|
860
|
-
timezone: string;
|
|
861
|
-
src: import("./enums").TimeZoneSource;
|
|
862
|
-
config?: Record<string, unknown> | undefined;
|
|
863
|
-
} | undefined;
|
|
864
864
|
}>;
|
|
865
865
|
_raw: z.ZodUnknown;
|
|
866
866
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -885,6 +885,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
885
885
|
groups?: Record<string, string> | undefined;
|
|
886
886
|
extId?: string | undefined;
|
|
887
887
|
lastActivityTime?: string | undefined;
|
|
888
|
+
timeZoneInfo?: {
|
|
889
|
+
timezone: string;
|
|
890
|
+
src: import("./enums").TimeZoneSource;
|
|
891
|
+
config?: Record<string, unknown> | undefined;
|
|
892
|
+
} | undefined;
|
|
888
893
|
created?: string | undefined;
|
|
889
894
|
factors?: z.objectOutputType<{
|
|
890
895
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -893,11 +898,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
893
898
|
factorType: z.ZodOptional<z.ZodString>;
|
|
894
899
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
895
900
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
896
|
-
timeZoneInfo?: {
|
|
897
|
-
timezone: string;
|
|
898
|
-
src: import("./enums").TimeZoneSource;
|
|
899
|
-
config?: Record<string, unknown> | undefined;
|
|
900
|
-
} | undefined;
|
|
901
901
|
};
|
|
902
902
|
_raw?: unknown;
|
|
903
903
|
}, {
|
|
@@ -922,6 +922,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
922
922
|
groups?: Record<string, string> | undefined;
|
|
923
923
|
extId?: string | undefined;
|
|
924
924
|
lastActivityTime?: string | undefined;
|
|
925
|
+
timeZoneInfo?: {
|
|
926
|
+
timezone: string;
|
|
927
|
+
src: import("./enums").TimeZoneSource;
|
|
928
|
+
config?: Record<string, unknown> | undefined;
|
|
929
|
+
} | undefined;
|
|
925
930
|
created?: string | undefined;
|
|
926
931
|
factors?: z.objectInputType<{
|
|
927
932
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -930,11 +935,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
930
935
|
factorType: z.ZodOptional<z.ZodString>;
|
|
931
936
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
932
937
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
933
|
-
timeZoneInfo?: {
|
|
934
|
-
timezone: string;
|
|
935
|
-
src: import("./enums").TimeZoneSource;
|
|
936
|
-
config?: Record<string, unknown> | undefined;
|
|
937
|
-
} | undefined;
|
|
938
938
|
};
|
|
939
939
|
_raw?: unknown;
|
|
940
940
|
}>;
|
|
@@ -977,6 +977,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
977
977
|
groups?: Record<string, string> | undefined;
|
|
978
978
|
extId?: string | undefined;
|
|
979
979
|
lastActivityTime?: string | undefined;
|
|
980
|
+
timeZoneInfo?: {
|
|
981
|
+
timezone: string;
|
|
982
|
+
src: import("./enums").TimeZoneSource;
|
|
983
|
+
config?: Record<string, unknown> | undefined;
|
|
984
|
+
} | undefined;
|
|
980
985
|
created?: string | undefined;
|
|
981
986
|
factors?: z.objectOutputType<{
|
|
982
987
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -985,11 +990,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
985
990
|
factorType: z.ZodOptional<z.ZodString>;
|
|
986
991
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
987
992
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
988
|
-
timeZoneInfo?: {
|
|
989
|
-
timezone: string;
|
|
990
|
-
src: import("./enums").TimeZoneSource;
|
|
991
|
-
config?: Record<string, unknown> | undefined;
|
|
992
|
-
} | undefined;
|
|
993
993
|
};
|
|
994
994
|
_raw?: unknown;
|
|
995
995
|
};
|
|
@@ -1025,6 +1025,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
1025
1025
|
groups?: Record<string, string> | undefined;
|
|
1026
1026
|
extId?: string | undefined;
|
|
1027
1027
|
lastActivityTime?: string | undefined;
|
|
1028
|
+
timeZoneInfo?: {
|
|
1029
|
+
timezone: string;
|
|
1030
|
+
src: import("./enums").TimeZoneSource;
|
|
1031
|
+
config?: Record<string, unknown> | undefined;
|
|
1032
|
+
} | undefined;
|
|
1028
1033
|
created?: string | undefined;
|
|
1029
1034
|
factors?: z.objectInputType<{
|
|
1030
1035
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,11 +1038,6 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
1033
1038
|
factorType: z.ZodOptional<z.ZodString>;
|
|
1034
1039
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
1035
1040
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
1036
|
-
timeZoneInfo?: {
|
|
1037
|
-
timezone: string;
|
|
1038
|
-
src: import("./enums").TimeZoneSource;
|
|
1039
|
-
config?: Record<string, unknown> | undefined;
|
|
1040
|
-
} | undefined;
|
|
1041
1041
|
};
|
|
1042
1042
|
_raw?: unknown;
|
|
1043
1043
|
};
|
|
@@ -2,7 +2,53 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
3
3
|
import { GlobalUserType } from './enums/globalUser.type';
|
|
4
4
|
import { RiskContributorUpsertDto } from './riskContributors.dto';
|
|
5
|
-
|
|
5
|
+
export declare const _UserMeta: z.ZodObject<{
|
|
6
|
+
_profile: z.ZodObject<{
|
|
7
|
+
/** User's time zone info */
|
|
8
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
9
|
+
timezone: z.ZodString;
|
|
10
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
11
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
timezone: string;
|
|
14
|
+
src: import("./enums").TimeZoneSource;
|
|
15
|
+
config?: Record<string, unknown> | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
timezone: string;
|
|
18
|
+
src: import("./enums").TimeZoneSource;
|
|
19
|
+
config?: Record<string, unknown> | undefined;
|
|
20
|
+
}>>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
timeZoneInfo?: {
|
|
23
|
+
timezone: string;
|
|
24
|
+
src: import("./enums").TimeZoneSource;
|
|
25
|
+
config?: Record<string, unknown> | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
timeZoneInfo?: {
|
|
29
|
+
timezone: string;
|
|
30
|
+
src: import("./enums").TimeZoneSource;
|
|
31
|
+
config?: Record<string, unknown> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
_profile: {
|
|
36
|
+
timeZoneInfo?: {
|
|
37
|
+
timezone: string;
|
|
38
|
+
src: import("./enums").TimeZoneSource;
|
|
39
|
+
config?: Record<string, unknown> | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
_profile: {
|
|
44
|
+
timeZoneInfo?: {
|
|
45
|
+
timezone: string;
|
|
46
|
+
src: import("./enums").TimeZoneSource;
|
|
47
|
+
config?: Record<string, unknown> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
export type GlobalUserMeta = z.infer<typeof _UserMeta>;
|
|
6
52
|
export declare const _SimpleUserDto: z.ZodObject<{
|
|
7
53
|
id: z.ZodOptional<z.ZodString>;
|
|
8
54
|
score: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15,6 +61,53 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
15
61
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
16
62
|
/** Last activity time for the user */
|
|
17
63
|
lastActivity: z.ZodOptional<z.ZodString>;
|
|
64
|
+
/** Additional information specific to this User */
|
|
65
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
_profile: z.ZodObject<{
|
|
67
|
+
/** User's time zone info */
|
|
68
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
69
|
+
timezone: z.ZodString;
|
|
70
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
71
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
timezone: string;
|
|
74
|
+
src: import("./enums").TimeZoneSource;
|
|
75
|
+
config?: Record<string, unknown> | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
timezone: string;
|
|
78
|
+
src: import("./enums").TimeZoneSource;
|
|
79
|
+
config?: Record<string, unknown> | undefined;
|
|
80
|
+
}>>>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
timeZoneInfo?: {
|
|
83
|
+
timezone: string;
|
|
84
|
+
src: import("./enums").TimeZoneSource;
|
|
85
|
+
config?: Record<string, unknown> | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
timeZoneInfo?: {
|
|
89
|
+
timezone: string;
|
|
90
|
+
src: import("./enums").TimeZoneSource;
|
|
91
|
+
config?: Record<string, unknown> | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
_profile: {
|
|
96
|
+
timeZoneInfo?: {
|
|
97
|
+
timezone: string;
|
|
98
|
+
src: import("./enums").TimeZoneSource;
|
|
99
|
+
config?: Record<string, unknown> | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
_profile: {
|
|
104
|
+
timeZoneInfo?: {
|
|
105
|
+
timezone: string;
|
|
106
|
+
src: import("./enums").TimeZoneSource;
|
|
107
|
+
config?: Record<string, unknown> | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
}>>;
|
|
18
111
|
}, "strip", z.ZodTypeAny, {
|
|
19
112
|
email?: string | undefined;
|
|
20
113
|
id?: string | undefined;
|
|
@@ -25,6 +118,15 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
25
118
|
lastName?: string | undefined;
|
|
26
119
|
active?: boolean | undefined;
|
|
27
120
|
lastActivity?: string | undefined;
|
|
121
|
+
meta?: {
|
|
122
|
+
_profile: {
|
|
123
|
+
timeZoneInfo?: {
|
|
124
|
+
timezone: string;
|
|
125
|
+
src: import("./enums").TimeZoneSource;
|
|
126
|
+
config?: Record<string, unknown> | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
};
|
|
129
|
+
} | undefined;
|
|
28
130
|
}, {
|
|
29
131
|
email?: string | undefined;
|
|
30
132
|
id?: string | undefined;
|
|
@@ -35,6 +137,15 @@ export declare const _SimpleUserDto: z.ZodObject<{
|
|
|
35
137
|
lastName?: string | undefined;
|
|
36
138
|
active?: boolean | undefined;
|
|
37
139
|
lastActivity?: string | undefined;
|
|
140
|
+
meta?: {
|
|
141
|
+
_profile: {
|
|
142
|
+
timeZoneInfo?: {
|
|
143
|
+
timezone: string;
|
|
144
|
+
src: import("./enums").TimeZoneSource;
|
|
145
|
+
config?: Record<string, unknown> | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
};
|
|
148
|
+
} | undefined;
|
|
38
149
|
}>;
|
|
39
150
|
export type SimpleUserDto = z.infer<typeof _SimpleUserDto>;
|
|
40
151
|
export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
@@ -66,8 +177,8 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
66
177
|
userType?: GlobalUserType;
|
|
67
178
|
/** Last time the user was active */
|
|
68
179
|
lastActivityTime?: string;
|
|
69
|
-
/**
|
|
70
|
-
|
|
180
|
+
/** Additional information specific to this User */
|
|
181
|
+
meta?: GlobalUserMeta;
|
|
71
182
|
};
|
|
72
183
|
export type UserDto = ChangeAwareDto & UserUpsertDto & {
|
|
73
184
|
/** Human readable name of the user's tenant, e.g. tenant.displayName */
|