@logto/schemas 1.29.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/alterations/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.ts +81 -0
  2. package/alterations/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.ts +20 -0
  3. package/alterations/1.30.0-1751255436-split-secret-connector-relatioins-table.ts +359 -0
  4. package/alterations/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.ts +20 -0
  5. package/alterations/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.ts +21 -0
  6. package/alterations/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.ts +20 -0
  7. package/alterations/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.ts +20 -0
  8. package/alterations/1.30.0-1753669579-add-organization-user-relations-foreign-key.ts +46 -0
  9. package/alterations-js/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.js +76 -0
  10. package/alterations-js/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.js +16 -0
  11. package/alterations-js/1.30.0-1751255436-split-secret-connector-relatioins-table.js +338 -0
  12. package/alterations-js/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.js +16 -0
  13. package/alterations-js/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.js +17 -0
  14. package/alterations-js/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.js +16 -0
  15. package/alterations-js/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.js +16 -0
  16. package/alterations-js/1.30.0-1753669579-add-organization-user-relations-foreign-key.js +38 -0
  17. package/lib/consts/oidc.d.ts +9 -1
  18. package/lib/consts/oidc.js +5 -0
  19. package/lib/db-entries/connector.d.ts +5 -1
  20. package/lib/db-entries/connector.js +4 -0
  21. package/lib/db-entries/index.d.ts +2 -1
  22. package/lib/db-entries/index.js +2 -1
  23. package/lib/db-entries/secret-enterprise-sso-connector-relation.d.ts +28 -0
  24. package/lib/db-entries/secret-enterprise-sso-connector-relation.js +37 -0
  25. package/lib/db-entries/secret-social-connector-relation.d.ts +28 -0
  26. package/lib/db-entries/secret-social-connector-relation.js +37 -0
  27. package/lib/db-entries/secret.d.ts +9 -9
  28. package/lib/db-entries/secret.js +9 -9
  29. package/lib/db-entries/sso-connector.d.ts +5 -1
  30. package/lib/db-entries/sso-connector.js +4 -0
  31. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +336 -11
  32. package/lib/foundations/jsonb-types/custom-profile-fields.js +17 -9
  33. package/lib/foundations/jsonb-types/secrets.d.ts +2 -0
  34. package/lib/foundations/jsonb-types/secrets.js +5 -0
  35. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +3 -1
  36. package/lib/foundations/jsonb-types/sign-in-experience.js +2 -0
  37. package/lib/foundations/jsonb-types/users.d.ts +94 -0
  38. package/lib/foundations/jsonb-types/users.js +11 -0
  39. package/lib/types/connector.d.ts +39 -0
  40. package/lib/types/connector.js +1 -0
  41. package/lib/types/consent.d.ts +40 -0
  42. package/lib/types/custom-profile-fields.d.ts +1410 -133
  43. package/lib/types/custom-profile-fields.js +51 -15
  44. package/lib/types/index.d.ts +2 -0
  45. package/lib/types/index.js +2 -0
  46. package/lib/types/interactions.d.ts +175 -1
  47. package/lib/types/interactions.js +48 -1
  48. package/lib/types/logto-config/index.d.ts +214 -179
  49. package/lib/types/logto-config/jwt-customizer.d.ts +453 -328
  50. package/lib/types/logto-config/jwt-customizer.js +6 -1
  51. package/lib/types/secrets.d.ts +436 -0
  52. package/lib/types/secrets.js +73 -0
  53. package/lib/types/sign-in-experience.d.ts +19 -1
  54. package/lib/types/sign-in-experience.js +3 -1
  55. package/lib/types/sso-connector.d.ts +5 -2
  56. package/lib/types/user-logto-config.d.ts +45 -0
  57. package/lib/types/user-logto-config.js +18 -0
  58. package/lib/types/user.d.ts +615 -0
  59. package/lib/types/user.js +14 -1
  60. package/lib/types/verification-records/backup-code-verification.d.ts +18 -0
  61. package/lib/types/verification-records/backup-code-verification.js +3 -0
  62. package/lib/types/verification-records/enterprise-sso-verification.d.ts +145 -0
  63. package/lib/types/verification-records/enterprise-sso-verification.js +5 -0
  64. package/lib/types/verification-records/new-password-identity-verification.d.ts +31 -0
  65. package/lib/types/verification-records/new-password-identity-verification.js +4 -0
  66. package/lib/types/verification-records/social-verification.d.ts +164 -0
  67. package/lib/types/verification-records/social-verification.js +6 -0
  68. package/lib/types/verification-records/totp-verification.d.ts +18 -0
  69. package/lib/types/verification-records/totp-verification.js +3 -0
  70. package/lib/types/verification-records/web-authn-verification.d.ts +44 -0
  71. package/lib/types/verification-records/web-authn-verification.js +5 -0
  72. package/package.json +7 -7
  73. package/tables/account_centers.sql +1 -1
  74. package/tables/connectors.sql +2 -0
  75. package/tables/organization_user_relations.sql +4 -1
  76. package/tables/secret_enterprise_sso_connector_relations.sql +60 -0
  77. package/tables/secret_social_connector_relations.sql +75 -0
  78. package/tables/secrets.sql +4 -4
  79. package/tables/sso_connectors.sql +2 -0
  80. package/tables/users.sql +2 -1
  81. package/lib/db-entries/secret-connector-relation.d.ts +0 -40
  82. package/lib/db-entries/secret-connector-relation.js +0 -49
  83. package/tables/secret_connector_relations.sql +0 -78
@@ -5,7 +5,7 @@ export type BaseProfileField = {
5
5
  label?: string;
6
6
  description?: string;
7
7
  type: CustomProfileFieldType;
8
- required?: boolean;
8
+ required: boolean;
9
9
  };
10
10
  export type TextProfileField = BaseProfileField & {
11
11
  type: CustomProfileFieldType.Text;
@@ -19,7 +19,7 @@ export declare const textProfileFieldGuard: z.ZodObject<{
19
19
  name: z.ZodString;
20
20
  label: z.ZodString;
21
21
  description: z.ZodOptional<z.ZodString>;
22
- required: z.ZodOptional<z.ZodBoolean>;
22
+ required: z.ZodBoolean;
23
23
  } & {
24
24
  type: z.ZodLiteral<CustomProfileFieldType.Text>;
25
25
  config: z.ZodOptional<z.ZodObject<{
@@ -39,24 +39,24 @@ export declare const textProfileFieldGuard: z.ZodObject<{
39
39
  type: CustomProfileFieldType.Text;
40
40
  name: string;
41
41
  label: string;
42
+ required: boolean;
42
43
  description?: string | undefined;
43
44
  config?: {
44
45
  minLength?: number | undefined;
45
46
  maxLength?: number | undefined;
46
47
  placeholder?: string | undefined;
47
48
  } | undefined;
48
- required?: boolean | undefined;
49
49
  }, {
50
50
  type: CustomProfileFieldType.Text;
51
51
  name: string;
52
52
  label: string;
53
+ required: boolean;
53
54
  description?: string | undefined;
54
55
  config?: {
55
56
  minLength?: number | undefined;
56
57
  maxLength?: number | undefined;
57
58
  placeholder?: string | undefined;
58
59
  } | undefined;
59
- required?: boolean | undefined;
60
60
  }>;
61
61
  export type NumberProfileField = BaseProfileField & {
62
62
  type: CustomProfileFieldType.Number;
@@ -70,7 +70,7 @@ export declare const numberProfileFieldGuard: z.ZodObject<{
70
70
  name: z.ZodString;
71
71
  label: z.ZodString;
72
72
  description: z.ZodOptional<z.ZodString>;
73
- required: z.ZodOptional<z.ZodBoolean>;
73
+ required: z.ZodBoolean;
74
74
  } & {
75
75
  type: z.ZodLiteral<CustomProfileFieldType.Number>;
76
76
  config: z.ZodOptional<z.ZodObject<{
@@ -90,69 +90,75 @@ export declare const numberProfileFieldGuard: z.ZodObject<{
90
90
  type: CustomProfileFieldType.Number;
91
91
  name: string;
92
92
  label: string;
93
+ required: boolean;
93
94
  description?: string | undefined;
94
95
  config?: {
95
96
  placeholder?: string | undefined;
96
97
  minValue?: number | undefined;
97
98
  maxValue?: number | undefined;
98
99
  } | undefined;
99
- required?: boolean | undefined;
100
100
  }, {
101
101
  type: CustomProfileFieldType.Number;
102
102
  name: string;
103
103
  label: string;
104
+ required: boolean;
104
105
  description?: string | undefined;
105
106
  config?: {
106
107
  placeholder?: string | undefined;
107
108
  minValue?: number | undefined;
108
109
  maxValue?: number | undefined;
109
110
  } | undefined;
110
- required?: boolean | undefined;
111
111
  }>;
112
112
  export type DateProfileField = BaseProfileField & {
113
113
  type: CustomProfileFieldType.Date;
114
114
  config?: {
115
115
  placeholder?: string;
116
116
  format: string;
117
+ customFormat?: string;
117
118
  };
118
119
  };
119
120
  export declare const dateProfileFieldGuard: z.ZodObject<{
120
121
  name: z.ZodString;
121
122
  label: z.ZodString;
122
123
  description: z.ZodOptional<z.ZodString>;
123
- required: z.ZodOptional<z.ZodBoolean>;
124
+ required: z.ZodBoolean;
124
125
  } & {
125
126
  type: z.ZodLiteral<CustomProfileFieldType.Date>;
126
127
  config: z.ZodOptional<z.ZodObject<{
127
128
  placeholder: z.ZodOptional<z.ZodString>;
128
129
  format: z.ZodString;
130
+ customFormat: z.ZodOptional<z.ZodString>;
129
131
  }, "strip", z.ZodTypeAny, {
130
132
  format: string;
131
133
  placeholder?: string | undefined;
134
+ customFormat?: string | undefined;
132
135
  }, {
133
136
  format: string;
134
137
  placeholder?: string | undefined;
138
+ customFormat?: string | undefined;
135
139
  }>>;
136
140
  }, "strip", z.ZodTypeAny, {
137
141
  type: CustomProfileFieldType.Date;
138
142
  name: string;
139
143
  label: string;
144
+ required: boolean;
140
145
  description?: string | undefined;
141
146
  config?: {
142
147
  format: string;
143
148
  placeholder?: string | undefined;
149
+ customFormat?: string | undefined;
144
150
  } | undefined;
145
- required?: boolean | undefined;
146
151
  }, {
147
152
  type: CustomProfileFieldType.Date;
148
153
  name: string;
149
154
  label: string;
155
+ required: boolean;
150
156
  description?: string | undefined;
151
157
  config?: {
152
158
  format: string;
153
159
  placeholder?: string | undefined;
160
+ customFormat?: string | undefined;
154
161
  } | undefined;
155
- required?: boolean | undefined;
156
162
  }>;
157
163
  export type CheckboxProfileField = BaseProfileField & {
158
164
  type: CustomProfileFieldType.Checkbox;
@@ -167,7 +173,7 @@ export declare const checkboxProfileFieldGuard: z.ZodObject<{
167
173
  name: z.ZodString;
168
174
  label: z.ZodString;
169
175
  description: z.ZodOptional<z.ZodString>;
170
- required: z.ZodOptional<z.ZodBoolean>;
176
+ required: z.ZodBoolean;
171
177
  } & {
172
178
  type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
173
179
  config: z.ZodObject<{
@@ -196,6 +202,7 @@ export declare const checkboxProfileFieldGuard: z.ZodObject<{
196
202
  type: CustomProfileFieldType.Checkbox;
197
203
  name: string;
198
204
  label: string;
205
+ required: boolean;
199
206
  config: {
200
207
  options: {
201
208
  value: string;
@@ -203,11 +210,11 @@ export declare const checkboxProfileFieldGuard: z.ZodObject<{
203
210
  }[];
204
211
  };
205
212
  description?: string | undefined;
206
- required?: boolean | undefined;
207
213
  }, {
208
214
  type: CustomProfileFieldType.Checkbox;
209
215
  name: string;
210
216
  label: string;
217
+ required: boolean;
211
218
  config: {
212
219
  options: {
213
220
  value: string;
@@ -215,7 +222,6 @@ export declare const checkboxProfileFieldGuard: z.ZodObject<{
215
222
  }[];
216
223
  };
217
224
  description?: string | undefined;
218
- required?: boolean | undefined;
219
225
  }>;
220
226
  export type SelectProfileField = BaseProfileField & {
221
227
  type: CustomProfileFieldType.Select;
@@ -231,7 +237,7 @@ export declare const selectProfileFieldGuard: z.ZodObject<{
231
237
  name: z.ZodString;
232
238
  label: z.ZodString;
233
239
  description: z.ZodOptional<z.ZodString>;
234
- required: z.ZodOptional<z.ZodBoolean>;
240
+ required: z.ZodBoolean;
235
241
  } & {
236
242
  type: z.ZodLiteral<CustomProfileFieldType.Select>;
237
243
  config: z.ZodObject<{
@@ -263,6 +269,7 @@ export declare const selectProfileFieldGuard: z.ZodObject<{
263
269
  type: CustomProfileFieldType.Select;
264
270
  name: string;
265
271
  label: string;
272
+ required: boolean;
266
273
  config: {
267
274
  options: {
268
275
  value: string;
@@ -271,11 +278,11 @@ export declare const selectProfileFieldGuard: z.ZodObject<{
271
278
  placeholder?: string | undefined;
272
279
  };
273
280
  description?: string | undefined;
274
- required?: boolean | undefined;
275
281
  }, {
276
282
  type: CustomProfileFieldType.Select;
277
283
  name: string;
278
284
  label: string;
285
+ required: boolean;
279
286
  config: {
280
287
  options: {
281
288
  value: string;
@@ -284,7 +291,6 @@ export declare const selectProfileFieldGuard: z.ZodObject<{
284
291
  placeholder?: string | undefined;
285
292
  };
286
293
  description?: string | undefined;
287
- required?: boolean | undefined;
288
294
  }>;
289
295
  export type UrlProfileField = BaseProfileField & {
290
296
  type: CustomProfileFieldType.Url;
@@ -296,7 +302,7 @@ export declare const urlProfileFieldGuard: z.ZodObject<{
296
302
  name: z.ZodString;
297
303
  label: z.ZodString;
298
304
  description: z.ZodOptional<z.ZodString>;
299
- required: z.ZodOptional<z.ZodBoolean>;
305
+ required: z.ZodBoolean;
300
306
  } & {
301
307
  type: z.ZodLiteral<CustomProfileFieldType.Url>;
302
308
  config: z.ZodOptional<z.ZodObject<{
@@ -310,20 +316,20 @@ export declare const urlProfileFieldGuard: z.ZodObject<{
310
316
  type: CustomProfileFieldType.Url;
311
317
  name: string;
312
318
  label: string;
319
+ required: boolean;
313
320
  description?: string | undefined;
314
321
  config?: {
315
322
  placeholder?: string | undefined;
316
323
  } | undefined;
317
- required?: boolean | undefined;
318
324
  }, {
319
325
  type: CustomProfileFieldType.Url;
320
326
  name: string;
321
327
  label: string;
328
+ required: boolean;
322
329
  description?: string | undefined;
323
330
  config?: {
324
331
  placeholder?: string | undefined;
325
332
  } | undefined;
326
- required?: boolean | undefined;
327
333
  }>;
328
334
  export type RegexProfileField = BaseProfileField & {
329
335
  type: CustomProfileFieldType.Regex;
@@ -336,7 +342,7 @@ export declare const regexProfileFieldGuard: z.ZodObject<{
336
342
  name: z.ZodString;
337
343
  label: z.ZodString;
338
344
  description: z.ZodOptional<z.ZodString>;
339
- required: z.ZodOptional<z.ZodBoolean>;
345
+ required: z.ZodBoolean;
340
346
  } & {
341
347
  type: z.ZodLiteral<CustomProfileFieldType.Regex>;
342
348
  config: z.ZodObject<{
@@ -353,29 +359,46 @@ export declare const regexProfileFieldGuard: z.ZodObject<{
353
359
  type: CustomProfileFieldType.Regex;
354
360
  name: string;
355
361
  label: string;
362
+ required: boolean;
356
363
  config: {
357
364
  format: string;
358
365
  placeholder?: string | undefined;
359
366
  };
360
367
  description?: string | undefined;
361
- required?: boolean | undefined;
362
368
  }, {
363
369
  type: CustomProfileFieldType.Regex;
364
370
  name: string;
365
371
  label: string;
372
+ required: boolean;
366
373
  config: {
367
374
  format: string;
368
375
  placeholder?: string | undefined;
369
376
  };
370
377
  description?: string | undefined;
371
- required?: boolean | undefined;
372
378
  }>;
373
379
  export type AddressProfileField = BaseProfileField & {
374
380
  type: CustomProfileFieldType.Address;
375
381
  config: {
376
382
  parts: Array<{
377
- key: keyof Exclude<UserProfile['address'], undefined>;
378
383
  enabled: boolean;
384
+ name: keyof Exclude<UserProfile['address'], undefined>;
385
+ type: CustomProfileFieldType;
386
+ label: string;
387
+ description?: string;
388
+ required: boolean;
389
+ config?: {
390
+ placeholder?: string;
391
+ minLength?: number;
392
+ maxLength?: number;
393
+ minValue?: number;
394
+ maxValue?: number;
395
+ options?: Array<{
396
+ label: string;
397
+ value: string;
398
+ }>;
399
+ format?: string;
400
+ customFormat?: string;
401
+ };
379
402
  }>;
380
403
  };
381
404
  };
@@ -383,124 +406,444 @@ export declare const addressProfileFieldGuard: z.ZodObject<{
383
406
  name: z.ZodString;
384
407
  label: z.ZodString;
385
408
  description: z.ZodOptional<z.ZodString>;
386
- required: z.ZodOptional<z.ZodBoolean>;
409
+ required: z.ZodBoolean;
387
410
  } & {
388
411
  type: z.ZodLiteral<CustomProfileFieldType.Address>;
389
412
  config: z.ZodObject<{
390
- parts: z.ZodArray<z.ZodObject<{
391
- key: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
413
+ parts: z.ZodArray<z.ZodObject<Omit<{
392
414
  enabled: z.ZodBoolean;
415
+ name: z.ZodString;
416
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
417
+ label: z.ZodString;
418
+ description: z.ZodOptional<z.ZodString>;
419
+ required: z.ZodBoolean;
420
+ config: z.ZodOptional<z.ZodObject<{
421
+ placeholder: z.ZodOptional<z.ZodString>;
422
+ minLength: z.ZodOptional<z.ZodNumber>;
423
+ maxLength: z.ZodOptional<z.ZodNumber>;
424
+ minValue: z.ZodOptional<z.ZodNumber>;
425
+ maxValue: z.ZodOptional<z.ZodNumber>;
426
+ format: z.ZodOptional<z.ZodString>;
427
+ customFormat: z.ZodOptional<z.ZodString>;
428
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
+ label: z.ZodString;
430
+ value: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ value: string;
433
+ label: string;
434
+ }, {
435
+ value: string;
436
+ label: string;
437
+ }>, "many">>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ options?: {
440
+ value: string;
441
+ label: string;
442
+ }[] | undefined;
443
+ minLength?: number | undefined;
444
+ maxLength?: number | undefined;
445
+ placeholder?: string | undefined;
446
+ minValue?: number | undefined;
447
+ maxValue?: number | undefined;
448
+ format?: string | undefined;
449
+ customFormat?: string | undefined;
450
+ }, {
451
+ options?: {
452
+ value: string;
453
+ label: string;
454
+ }[] | undefined;
455
+ minLength?: number | undefined;
456
+ maxLength?: number | undefined;
457
+ placeholder?: string | undefined;
458
+ minValue?: number | undefined;
459
+ maxValue?: number | undefined;
460
+ format?: string | undefined;
461
+ customFormat?: string | undefined;
462
+ }>>;
463
+ }, "name"> & {
464
+ name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
393
465
  }, "strip", z.ZodTypeAny, {
394
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
466
+ type: CustomProfileFieldType;
467
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
395
468
  enabled: boolean;
469
+ label: string;
470
+ required: boolean;
471
+ description?: string | undefined;
472
+ config?: {
473
+ options?: {
474
+ value: string;
475
+ label: string;
476
+ }[] | undefined;
477
+ minLength?: number | undefined;
478
+ maxLength?: number | undefined;
479
+ placeholder?: string | undefined;
480
+ minValue?: number | undefined;
481
+ maxValue?: number | undefined;
482
+ format?: string | undefined;
483
+ customFormat?: string | undefined;
484
+ } | undefined;
396
485
  }, {
397
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
486
+ type: CustomProfileFieldType;
487
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
398
488
  enabled: boolean;
489
+ label: string;
490
+ required: boolean;
491
+ description?: string | undefined;
492
+ config?: {
493
+ options?: {
494
+ value: string;
495
+ label: string;
496
+ }[] | undefined;
497
+ minLength?: number | undefined;
498
+ maxLength?: number | undefined;
499
+ placeholder?: string | undefined;
500
+ minValue?: number | undefined;
501
+ maxValue?: number | undefined;
502
+ format?: string | undefined;
503
+ customFormat?: string | undefined;
504
+ } | undefined;
399
505
  }>, "many">;
400
506
  }, "strip", z.ZodTypeAny, {
401
507
  parts: {
402
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
508
+ type: CustomProfileFieldType;
509
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
403
510
  enabled: boolean;
511
+ label: string;
512
+ required: boolean;
513
+ description?: string | undefined;
514
+ config?: {
515
+ options?: {
516
+ value: string;
517
+ label: string;
518
+ }[] | undefined;
519
+ minLength?: number | undefined;
520
+ maxLength?: number | undefined;
521
+ placeholder?: string | undefined;
522
+ minValue?: number | undefined;
523
+ maxValue?: number | undefined;
524
+ format?: string | undefined;
525
+ customFormat?: string | undefined;
526
+ } | undefined;
404
527
  }[];
405
528
  }, {
406
529
  parts: {
407
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
530
+ type: CustomProfileFieldType;
531
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
408
532
  enabled: boolean;
533
+ label: string;
534
+ required: boolean;
535
+ description?: string | undefined;
536
+ config?: {
537
+ options?: {
538
+ value: string;
539
+ label: string;
540
+ }[] | undefined;
541
+ minLength?: number | undefined;
542
+ maxLength?: number | undefined;
543
+ placeholder?: string | undefined;
544
+ minValue?: number | undefined;
545
+ maxValue?: number | undefined;
546
+ format?: string | undefined;
547
+ customFormat?: string | undefined;
548
+ } | undefined;
409
549
  }[];
410
550
  }>;
411
551
  }, "strip", z.ZodTypeAny, {
412
552
  type: CustomProfileFieldType.Address;
413
553
  name: string;
414
554
  label: string;
555
+ required: boolean;
415
556
  config: {
416
557
  parts: {
417
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
558
+ type: CustomProfileFieldType;
559
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
418
560
  enabled: boolean;
561
+ label: string;
562
+ required: boolean;
563
+ description?: string | undefined;
564
+ config?: {
565
+ options?: {
566
+ value: string;
567
+ label: string;
568
+ }[] | undefined;
569
+ minLength?: number | undefined;
570
+ maxLength?: number | undefined;
571
+ placeholder?: string | undefined;
572
+ minValue?: number | undefined;
573
+ maxValue?: number | undefined;
574
+ format?: string | undefined;
575
+ customFormat?: string | undefined;
576
+ } | undefined;
419
577
  }[];
420
578
  };
421
579
  description?: string | undefined;
422
- required?: boolean | undefined;
423
580
  }, {
424
581
  type: CustomProfileFieldType.Address;
425
582
  name: string;
426
583
  label: string;
584
+ required: boolean;
427
585
  config: {
428
586
  parts: {
429
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
587
+ type: CustomProfileFieldType;
588
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
430
589
  enabled: boolean;
590
+ label: string;
591
+ required: boolean;
592
+ description?: string | undefined;
593
+ config?: {
594
+ options?: {
595
+ value: string;
596
+ label: string;
597
+ }[] | undefined;
598
+ minLength?: number | undefined;
599
+ maxLength?: number | undefined;
600
+ placeholder?: string | undefined;
601
+ minValue?: number | undefined;
602
+ maxValue?: number | undefined;
603
+ format?: string | undefined;
604
+ customFormat?: string | undefined;
605
+ } | undefined;
431
606
  }[];
432
607
  };
433
608
  description?: string | undefined;
434
- required?: boolean | undefined;
435
609
  }>;
436
610
  export type FullnameProfileField = BaseProfileField & {
437
611
  type: CustomProfileFieldType.Fullname;
438
612
  config: {
439
613
  parts: Array<{
440
- key: keyof Pick<UserProfile, 'givenName' | 'middleName' | 'familyName'>;
441
614
  enabled: boolean;
615
+ name: keyof Pick<UserProfile, 'givenName' | 'middleName' | 'familyName'>;
616
+ type: CustomProfileFieldType;
617
+ label: string;
618
+ description?: string;
619
+ required: boolean;
620
+ config?: {
621
+ placeholder?: string;
622
+ minLength?: number;
623
+ maxLength?: number;
624
+ minValue?: number;
625
+ maxValue?: number;
626
+ options?: Array<{
627
+ label: string;
628
+ value: string;
629
+ }>;
630
+ format?: string;
631
+ customFormat?: string;
632
+ };
442
633
  }>;
443
634
  };
444
635
  };
636
+ export declare const fullnameKeys: ["familyName", "givenName", "middleName"];
445
637
  export declare const fullnameProfileFieldGuard: z.ZodObject<{
446
638
  name: z.ZodString;
447
639
  label: z.ZodString;
448
640
  description: z.ZodOptional<z.ZodString>;
449
- required: z.ZodOptional<z.ZodBoolean>;
641
+ required: z.ZodBoolean;
450
642
  } & {
451
643
  type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
452
644
  config: z.ZodObject<{
453
- parts: z.ZodArray<z.ZodObject<{
454
- key: z.ZodEnum<["familyName", "givenName", "middleName"]>;
645
+ parts: z.ZodArray<z.ZodObject<Omit<{
455
646
  enabled: z.ZodBoolean;
647
+ name: z.ZodString;
648
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
649
+ label: z.ZodString;
650
+ description: z.ZodOptional<z.ZodString>;
651
+ required: z.ZodBoolean;
652
+ config: z.ZodOptional<z.ZodObject<{
653
+ placeholder: z.ZodOptional<z.ZodString>;
654
+ minLength: z.ZodOptional<z.ZodNumber>;
655
+ maxLength: z.ZodOptional<z.ZodNumber>;
656
+ minValue: z.ZodOptional<z.ZodNumber>;
657
+ maxValue: z.ZodOptional<z.ZodNumber>;
658
+ format: z.ZodOptional<z.ZodString>;
659
+ customFormat: z.ZodOptional<z.ZodString>;
660
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
+ label: z.ZodString;
662
+ value: z.ZodString;
663
+ }, "strip", z.ZodTypeAny, {
664
+ value: string;
665
+ label: string;
666
+ }, {
667
+ value: string;
668
+ label: string;
669
+ }>, "many">>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ options?: {
672
+ value: string;
673
+ label: string;
674
+ }[] | undefined;
675
+ minLength?: number | undefined;
676
+ maxLength?: number | undefined;
677
+ placeholder?: string | undefined;
678
+ minValue?: number | undefined;
679
+ maxValue?: number | undefined;
680
+ format?: string | undefined;
681
+ customFormat?: string | undefined;
682
+ }, {
683
+ options?: {
684
+ value: string;
685
+ label: string;
686
+ }[] | undefined;
687
+ minLength?: number | undefined;
688
+ maxLength?: number | undefined;
689
+ placeholder?: string | undefined;
690
+ minValue?: number | undefined;
691
+ maxValue?: number | undefined;
692
+ format?: string | undefined;
693
+ customFormat?: string | undefined;
694
+ }>>;
695
+ }, "name"> & {
696
+ name: z.ZodEnum<["familyName", "givenName", "middleName"]>;
456
697
  }, "strip", z.ZodTypeAny, {
457
- key: "familyName" | "givenName" | "middleName";
698
+ type: CustomProfileFieldType;
699
+ name: "familyName" | "givenName" | "middleName";
458
700
  enabled: boolean;
701
+ label: string;
702
+ required: boolean;
703
+ description?: string | undefined;
704
+ config?: {
705
+ options?: {
706
+ value: string;
707
+ label: string;
708
+ }[] | undefined;
709
+ minLength?: number | undefined;
710
+ maxLength?: number | undefined;
711
+ placeholder?: string | undefined;
712
+ minValue?: number | undefined;
713
+ maxValue?: number | undefined;
714
+ format?: string | undefined;
715
+ customFormat?: string | undefined;
716
+ } | undefined;
459
717
  }, {
460
- key: "familyName" | "givenName" | "middleName";
718
+ type: CustomProfileFieldType;
719
+ name: "familyName" | "givenName" | "middleName";
461
720
  enabled: boolean;
721
+ label: string;
722
+ required: boolean;
723
+ description?: string | undefined;
724
+ config?: {
725
+ options?: {
726
+ value: string;
727
+ label: string;
728
+ }[] | undefined;
729
+ minLength?: number | undefined;
730
+ maxLength?: number | undefined;
731
+ placeholder?: string | undefined;
732
+ minValue?: number | undefined;
733
+ maxValue?: number | undefined;
734
+ format?: string | undefined;
735
+ customFormat?: string | undefined;
736
+ } | undefined;
462
737
  }>, "many">;
463
738
  }, "strip", z.ZodTypeAny, {
464
739
  parts: {
465
- key: "familyName" | "givenName" | "middleName";
740
+ type: CustomProfileFieldType;
741
+ name: "familyName" | "givenName" | "middleName";
466
742
  enabled: boolean;
743
+ label: string;
744
+ required: boolean;
745
+ description?: string | undefined;
746
+ config?: {
747
+ options?: {
748
+ value: string;
749
+ label: string;
750
+ }[] | undefined;
751
+ minLength?: number | undefined;
752
+ maxLength?: number | undefined;
753
+ placeholder?: string | undefined;
754
+ minValue?: number | undefined;
755
+ maxValue?: number | undefined;
756
+ format?: string | undefined;
757
+ customFormat?: string | undefined;
758
+ } | undefined;
467
759
  }[];
468
760
  }, {
469
761
  parts: {
470
- key: "familyName" | "givenName" | "middleName";
762
+ type: CustomProfileFieldType;
763
+ name: "familyName" | "givenName" | "middleName";
471
764
  enabled: boolean;
765
+ label: string;
766
+ required: boolean;
767
+ description?: string | undefined;
768
+ config?: {
769
+ options?: {
770
+ value: string;
771
+ label: string;
772
+ }[] | undefined;
773
+ minLength?: number | undefined;
774
+ maxLength?: number | undefined;
775
+ placeholder?: string | undefined;
776
+ minValue?: number | undefined;
777
+ maxValue?: number | undefined;
778
+ format?: string | undefined;
779
+ customFormat?: string | undefined;
780
+ } | undefined;
472
781
  }[];
473
782
  }>;
474
783
  }, "strip", z.ZodTypeAny, {
475
784
  type: CustomProfileFieldType.Fullname;
476
785
  name: string;
477
786
  label: string;
787
+ required: boolean;
478
788
  config: {
479
789
  parts: {
480
- key: "familyName" | "givenName" | "middleName";
790
+ type: CustomProfileFieldType;
791
+ name: "familyName" | "givenName" | "middleName";
481
792
  enabled: boolean;
793
+ label: string;
794
+ required: boolean;
795
+ description?: string | undefined;
796
+ config?: {
797
+ options?: {
798
+ value: string;
799
+ label: string;
800
+ }[] | undefined;
801
+ minLength?: number | undefined;
802
+ maxLength?: number | undefined;
803
+ placeholder?: string | undefined;
804
+ minValue?: number | undefined;
805
+ maxValue?: number | undefined;
806
+ format?: string | undefined;
807
+ customFormat?: string | undefined;
808
+ } | undefined;
482
809
  }[];
483
810
  };
484
811
  description?: string | undefined;
485
- required?: boolean | undefined;
486
812
  }, {
487
813
  type: CustomProfileFieldType.Fullname;
488
814
  name: string;
489
815
  label: string;
816
+ required: boolean;
490
817
  config: {
491
818
  parts: {
492
- key: "familyName" | "givenName" | "middleName";
819
+ type: CustomProfileFieldType;
820
+ name: "familyName" | "givenName" | "middleName";
493
821
  enabled: boolean;
822
+ label: string;
823
+ required: boolean;
824
+ description?: string | undefined;
825
+ config?: {
826
+ options?: {
827
+ value: string;
828
+ label: string;
829
+ }[] | undefined;
830
+ minLength?: number | undefined;
831
+ maxLength?: number | undefined;
832
+ placeholder?: string | undefined;
833
+ minValue?: number | undefined;
834
+ maxValue?: number | undefined;
835
+ format?: string | undefined;
836
+ customFormat?: string | undefined;
837
+ } | undefined;
494
838
  }[];
495
839
  };
496
840
  description?: string | undefined;
497
- required?: boolean | undefined;
498
841
  }>;
499
842
  export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
500
843
  name: z.ZodString;
501
844
  label: z.ZodString;
502
845
  description: z.ZodOptional<z.ZodString>;
503
- required: z.ZodOptional<z.ZodBoolean>;
846
+ required: z.ZodBoolean;
504
847
  } & {
505
848
  type: z.ZodLiteral<CustomProfileFieldType.Text>;
506
849
  config: z.ZodOptional<z.ZodObject<{
@@ -520,29 +863,29 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
520
863
  type: CustomProfileFieldType.Text;
521
864
  name: string;
522
865
  label: string;
866
+ required: boolean;
523
867
  description?: string | undefined;
524
868
  config?: {
525
869
  minLength?: number | undefined;
526
870
  maxLength?: number | undefined;
527
871
  placeholder?: string | undefined;
528
872
  } | undefined;
529
- required?: boolean | undefined;
530
873
  }, {
531
874
  type: CustomProfileFieldType.Text;
532
875
  name: string;
533
876
  label: string;
877
+ required: boolean;
534
878
  description?: string | undefined;
535
879
  config?: {
536
880
  minLength?: number | undefined;
537
881
  maxLength?: number | undefined;
538
882
  placeholder?: string | undefined;
539
883
  } | undefined;
540
- required?: boolean | undefined;
541
884
  }>, z.ZodObject<{
542
885
  name: z.ZodString;
543
886
  label: z.ZodString;
544
887
  description: z.ZodOptional<z.ZodString>;
545
- required: z.ZodOptional<z.ZodBoolean>;
888
+ required: z.ZodBoolean;
546
889
  } & {
547
890
  type: z.ZodLiteral<CustomProfileFieldType.Number>;
548
891
  config: z.ZodOptional<z.ZodObject<{
@@ -562,66 +905,71 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
562
905
  type: CustomProfileFieldType.Number;
563
906
  name: string;
564
907
  label: string;
908
+ required: boolean;
565
909
  description?: string | undefined;
566
910
  config?: {
567
911
  placeholder?: string | undefined;
568
912
  minValue?: number | undefined;
569
913
  maxValue?: number | undefined;
570
914
  } | undefined;
571
- required?: boolean | undefined;
572
915
  }, {
573
916
  type: CustomProfileFieldType.Number;
574
917
  name: string;
575
918
  label: string;
919
+ required: boolean;
576
920
  description?: string | undefined;
577
921
  config?: {
578
922
  placeholder?: string | undefined;
579
923
  minValue?: number | undefined;
580
924
  maxValue?: number | undefined;
581
925
  } | undefined;
582
- required?: boolean | undefined;
583
926
  }>, z.ZodObject<{
584
927
  name: z.ZodString;
585
928
  label: z.ZodString;
586
929
  description: z.ZodOptional<z.ZodString>;
587
- required: z.ZodOptional<z.ZodBoolean>;
930
+ required: z.ZodBoolean;
588
931
  } & {
589
932
  type: z.ZodLiteral<CustomProfileFieldType.Date>;
590
933
  config: z.ZodOptional<z.ZodObject<{
591
934
  placeholder: z.ZodOptional<z.ZodString>;
592
935
  format: z.ZodString;
936
+ customFormat: z.ZodOptional<z.ZodString>;
593
937
  }, "strip", z.ZodTypeAny, {
594
938
  format: string;
595
939
  placeholder?: string | undefined;
940
+ customFormat?: string | undefined;
596
941
  }, {
597
942
  format: string;
598
943
  placeholder?: string | undefined;
944
+ customFormat?: string | undefined;
599
945
  }>>;
600
946
  }, "strip", z.ZodTypeAny, {
601
947
  type: CustomProfileFieldType.Date;
602
948
  name: string;
603
949
  label: string;
950
+ required: boolean;
604
951
  description?: string | undefined;
605
952
  config?: {
606
953
  format: string;
607
954
  placeholder?: string | undefined;
955
+ customFormat?: string | undefined;
608
956
  } | undefined;
609
- required?: boolean | undefined;
610
957
  }, {
611
958
  type: CustomProfileFieldType.Date;
612
959
  name: string;
613
960
  label: string;
961
+ required: boolean;
614
962
  description?: string | undefined;
615
963
  config?: {
616
964
  format: string;
617
965
  placeholder?: string | undefined;
966
+ customFormat?: string | undefined;
618
967
  } | undefined;
619
- required?: boolean | undefined;
620
968
  }>, z.ZodObject<{
621
969
  name: z.ZodString;
622
970
  label: z.ZodString;
623
971
  description: z.ZodOptional<z.ZodString>;
624
- required: z.ZodOptional<z.ZodBoolean>;
972
+ required: z.ZodBoolean;
625
973
  } & {
626
974
  type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
627
975
  config: z.ZodObject<{
@@ -650,6 +998,7 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
650
998
  type: CustomProfileFieldType.Checkbox;
651
999
  name: string;
652
1000
  label: string;
1001
+ required: boolean;
653
1002
  config: {
654
1003
  options: {
655
1004
  value: string;
@@ -657,11 +1006,11 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
657
1006
  }[];
658
1007
  };
659
1008
  description?: string | undefined;
660
- required?: boolean | undefined;
661
1009
  }, {
662
1010
  type: CustomProfileFieldType.Checkbox;
663
1011
  name: string;
664
1012
  label: string;
1013
+ required: boolean;
665
1014
  config: {
666
1015
  options: {
667
1016
  value: string;
@@ -669,12 +1018,11 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
669
1018
  }[];
670
1019
  };
671
1020
  description?: string | undefined;
672
- required?: boolean | undefined;
673
1021
  }>, z.ZodObject<{
674
1022
  name: z.ZodString;
675
1023
  label: z.ZodString;
676
1024
  description: z.ZodOptional<z.ZodString>;
677
- required: z.ZodOptional<z.ZodBoolean>;
1025
+ required: z.ZodBoolean;
678
1026
  } & {
679
1027
  type: z.ZodLiteral<CustomProfileFieldType.Select>;
680
1028
  config: z.ZodObject<{
@@ -706,6 +1054,7 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
706
1054
  type: CustomProfileFieldType.Select;
707
1055
  name: string;
708
1056
  label: string;
1057
+ required: boolean;
709
1058
  config: {
710
1059
  options: {
711
1060
  value: string;
@@ -714,11 +1063,11 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
714
1063
  placeholder?: string | undefined;
715
1064
  };
716
1065
  description?: string | undefined;
717
- required?: boolean | undefined;
718
1066
  }, {
719
1067
  type: CustomProfileFieldType.Select;
720
1068
  name: string;
721
1069
  label: string;
1070
+ required: boolean;
722
1071
  config: {
723
1072
  options: {
724
1073
  value: string;
@@ -727,12 +1076,11 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
727
1076
  placeholder?: string | undefined;
728
1077
  };
729
1078
  description?: string | undefined;
730
- required?: boolean | undefined;
731
1079
  }>, z.ZodObject<{
732
1080
  name: z.ZodString;
733
1081
  label: z.ZodString;
734
1082
  description: z.ZodOptional<z.ZodString>;
735
- required: z.ZodOptional<z.ZodBoolean>;
1083
+ required: z.ZodBoolean;
736
1084
  } & {
737
1085
  type: z.ZodLiteral<CustomProfileFieldType.Url>;
738
1086
  config: z.ZodOptional<z.ZodObject<{
@@ -746,25 +1094,25 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
746
1094
  type: CustomProfileFieldType.Url;
747
1095
  name: string;
748
1096
  label: string;
1097
+ required: boolean;
749
1098
  description?: string | undefined;
750
1099
  config?: {
751
1100
  placeholder?: string | undefined;
752
1101
  } | undefined;
753
- required?: boolean | undefined;
754
1102
  }, {
755
1103
  type: CustomProfileFieldType.Url;
756
1104
  name: string;
757
1105
  label: string;
1106
+ required: boolean;
758
1107
  description?: string | undefined;
759
1108
  config?: {
760
1109
  placeholder?: string | undefined;
761
1110
  } | undefined;
762
- required?: boolean | undefined;
763
1111
  }>, z.ZodObject<{
764
1112
  name: z.ZodString;
765
1113
  label: z.ZodString;
766
1114
  description: z.ZodOptional<z.ZodString>;
767
- required: z.ZodOptional<z.ZodBoolean>;
1115
+ required: z.ZodBoolean;
768
1116
  } & {
769
1117
  type: z.ZodLiteral<CustomProfileFieldType.Regex>;
770
1118
  config: z.ZodObject<{
@@ -781,136 +1129,576 @@ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type
781
1129
  type: CustomProfileFieldType.Regex;
782
1130
  name: string;
783
1131
  label: string;
1132
+ required: boolean;
784
1133
  config: {
785
1134
  format: string;
786
1135
  placeholder?: string | undefined;
787
1136
  };
788
1137
  description?: string | undefined;
789
- required?: boolean | undefined;
790
1138
  }, {
791
1139
  type: CustomProfileFieldType.Regex;
792
1140
  name: string;
793
1141
  label: string;
1142
+ required: boolean;
794
1143
  config: {
795
1144
  format: string;
796
1145
  placeholder?: string | undefined;
797
1146
  };
798
1147
  description?: string | undefined;
799
- required?: boolean | undefined;
800
1148
  }>, z.ZodObject<{
801
1149
  name: z.ZodString;
802
1150
  label: z.ZodString;
803
1151
  description: z.ZodOptional<z.ZodString>;
804
- required: z.ZodOptional<z.ZodBoolean>;
1152
+ required: z.ZodBoolean;
805
1153
  } & {
806
1154
  type: z.ZodLiteral<CustomProfileFieldType.Address>;
807
1155
  config: z.ZodObject<{
808
- parts: z.ZodArray<z.ZodObject<{
809
- key: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
1156
+ parts: z.ZodArray<z.ZodObject<Omit<{
810
1157
  enabled: z.ZodBoolean;
1158
+ name: z.ZodString;
1159
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
1160
+ label: z.ZodString;
1161
+ description: z.ZodOptional<z.ZodString>;
1162
+ required: z.ZodBoolean;
1163
+ config: z.ZodOptional<z.ZodObject<{
1164
+ placeholder: z.ZodOptional<z.ZodString>;
1165
+ minLength: z.ZodOptional<z.ZodNumber>;
1166
+ maxLength: z.ZodOptional<z.ZodNumber>;
1167
+ minValue: z.ZodOptional<z.ZodNumber>;
1168
+ maxValue: z.ZodOptional<z.ZodNumber>;
1169
+ format: z.ZodOptional<z.ZodString>;
1170
+ customFormat: z.ZodOptional<z.ZodString>;
1171
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1172
+ label: z.ZodString;
1173
+ value: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ value: string;
1176
+ label: string;
1177
+ }, {
1178
+ value: string;
1179
+ label: string;
1180
+ }>, "many">>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ options?: {
1183
+ value: string;
1184
+ label: string;
1185
+ }[] | undefined;
1186
+ minLength?: number | undefined;
1187
+ maxLength?: number | undefined;
1188
+ placeholder?: string | undefined;
1189
+ minValue?: number | undefined;
1190
+ maxValue?: number | undefined;
1191
+ format?: string | undefined;
1192
+ customFormat?: string | undefined;
1193
+ }, {
1194
+ options?: {
1195
+ value: string;
1196
+ label: string;
1197
+ }[] | undefined;
1198
+ minLength?: number | undefined;
1199
+ maxLength?: number | undefined;
1200
+ placeholder?: string | undefined;
1201
+ minValue?: number | undefined;
1202
+ maxValue?: number | undefined;
1203
+ format?: string | undefined;
1204
+ customFormat?: string | undefined;
1205
+ }>>;
1206
+ }, "name"> & {
1207
+ name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
811
1208
  }, "strip", z.ZodTypeAny, {
812
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1209
+ type: CustomProfileFieldType;
1210
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
813
1211
  enabled: boolean;
1212
+ label: string;
1213
+ required: boolean;
1214
+ description?: string | undefined;
1215
+ config?: {
1216
+ options?: {
1217
+ value: string;
1218
+ label: string;
1219
+ }[] | undefined;
1220
+ minLength?: number | undefined;
1221
+ maxLength?: number | undefined;
1222
+ placeholder?: string | undefined;
1223
+ minValue?: number | undefined;
1224
+ maxValue?: number | undefined;
1225
+ format?: string | undefined;
1226
+ customFormat?: string | undefined;
1227
+ } | undefined;
814
1228
  }, {
815
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1229
+ type: CustomProfileFieldType;
1230
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
816
1231
  enabled: boolean;
1232
+ label: string;
1233
+ required: boolean;
1234
+ description?: string | undefined;
1235
+ config?: {
1236
+ options?: {
1237
+ value: string;
1238
+ label: string;
1239
+ }[] | undefined;
1240
+ minLength?: number | undefined;
1241
+ maxLength?: number | undefined;
1242
+ placeholder?: string | undefined;
1243
+ minValue?: number | undefined;
1244
+ maxValue?: number | undefined;
1245
+ format?: string | undefined;
1246
+ customFormat?: string | undefined;
1247
+ } | undefined;
817
1248
  }>, "many">;
818
1249
  }, "strip", z.ZodTypeAny, {
819
1250
  parts: {
820
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1251
+ type: CustomProfileFieldType;
1252
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
821
1253
  enabled: boolean;
1254
+ label: string;
1255
+ required: boolean;
1256
+ description?: string | undefined;
1257
+ config?: {
1258
+ options?: {
1259
+ value: string;
1260
+ label: string;
1261
+ }[] | undefined;
1262
+ minLength?: number | undefined;
1263
+ maxLength?: number | undefined;
1264
+ placeholder?: string | undefined;
1265
+ minValue?: number | undefined;
1266
+ maxValue?: number | undefined;
1267
+ format?: string | undefined;
1268
+ customFormat?: string | undefined;
1269
+ } | undefined;
822
1270
  }[];
823
1271
  }, {
824
1272
  parts: {
825
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1273
+ type: CustomProfileFieldType;
1274
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
826
1275
  enabled: boolean;
1276
+ label: string;
1277
+ required: boolean;
1278
+ description?: string | undefined;
1279
+ config?: {
1280
+ options?: {
1281
+ value: string;
1282
+ label: string;
1283
+ }[] | undefined;
1284
+ minLength?: number | undefined;
1285
+ maxLength?: number | undefined;
1286
+ placeholder?: string | undefined;
1287
+ minValue?: number | undefined;
1288
+ maxValue?: number | undefined;
1289
+ format?: string | undefined;
1290
+ customFormat?: string | undefined;
1291
+ } | undefined;
827
1292
  }[];
828
1293
  }>;
829
1294
  }, "strip", z.ZodTypeAny, {
830
1295
  type: CustomProfileFieldType.Address;
831
1296
  name: string;
832
1297
  label: string;
1298
+ required: boolean;
833
1299
  config: {
834
1300
  parts: {
835
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1301
+ type: CustomProfileFieldType;
1302
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
836
1303
  enabled: boolean;
1304
+ label: string;
1305
+ required: boolean;
1306
+ description?: string | undefined;
1307
+ config?: {
1308
+ options?: {
1309
+ value: string;
1310
+ label: string;
1311
+ }[] | undefined;
1312
+ minLength?: number | undefined;
1313
+ maxLength?: number | undefined;
1314
+ placeholder?: string | undefined;
1315
+ minValue?: number | undefined;
1316
+ maxValue?: number | undefined;
1317
+ format?: string | undefined;
1318
+ customFormat?: string | undefined;
1319
+ } | undefined;
837
1320
  }[];
838
1321
  };
839
1322
  description?: string | undefined;
840
- required?: boolean | undefined;
841
1323
  }, {
842
1324
  type: CustomProfileFieldType.Address;
843
1325
  name: string;
844
1326
  label: string;
1327
+ required: boolean;
845
1328
  config: {
846
1329
  parts: {
847
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1330
+ type: CustomProfileFieldType;
1331
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
848
1332
  enabled: boolean;
1333
+ label: string;
1334
+ required: boolean;
1335
+ description?: string | undefined;
1336
+ config?: {
1337
+ options?: {
1338
+ value: string;
1339
+ label: string;
1340
+ }[] | undefined;
1341
+ minLength?: number | undefined;
1342
+ maxLength?: number | undefined;
1343
+ placeholder?: string | undefined;
1344
+ minValue?: number | undefined;
1345
+ maxValue?: number | undefined;
1346
+ format?: string | undefined;
1347
+ customFormat?: string | undefined;
1348
+ } | undefined;
849
1349
  }[];
850
1350
  };
851
1351
  description?: string | undefined;
852
- required?: boolean | undefined;
853
1352
  }>, z.ZodObject<{
854
1353
  name: z.ZodString;
855
1354
  label: z.ZodString;
856
1355
  description: z.ZodOptional<z.ZodString>;
857
- required: z.ZodOptional<z.ZodBoolean>;
1356
+ required: z.ZodBoolean;
858
1357
  } & {
859
1358
  type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
860
1359
  config: z.ZodObject<{
861
- parts: z.ZodArray<z.ZodObject<{
862
- key: z.ZodEnum<["familyName", "givenName", "middleName"]>;
1360
+ parts: z.ZodArray<z.ZodObject<Omit<{
863
1361
  enabled: z.ZodBoolean;
1362
+ name: z.ZodString;
1363
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
1364
+ label: z.ZodString;
1365
+ description: z.ZodOptional<z.ZodString>;
1366
+ required: z.ZodBoolean;
1367
+ config: z.ZodOptional<z.ZodObject<{
1368
+ placeholder: z.ZodOptional<z.ZodString>;
1369
+ minLength: z.ZodOptional<z.ZodNumber>;
1370
+ maxLength: z.ZodOptional<z.ZodNumber>;
1371
+ minValue: z.ZodOptional<z.ZodNumber>;
1372
+ maxValue: z.ZodOptional<z.ZodNumber>;
1373
+ format: z.ZodOptional<z.ZodString>;
1374
+ customFormat: z.ZodOptional<z.ZodString>;
1375
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1376
+ label: z.ZodString;
1377
+ value: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ value: string;
1380
+ label: string;
1381
+ }, {
1382
+ value: string;
1383
+ label: string;
1384
+ }>, "many">>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ options?: {
1387
+ value: string;
1388
+ label: string;
1389
+ }[] | undefined;
1390
+ minLength?: number | undefined;
1391
+ maxLength?: number | undefined;
1392
+ placeholder?: string | undefined;
1393
+ minValue?: number | undefined;
1394
+ maxValue?: number | undefined;
1395
+ format?: string | undefined;
1396
+ customFormat?: string | undefined;
1397
+ }, {
1398
+ options?: {
1399
+ value: string;
1400
+ label: string;
1401
+ }[] | undefined;
1402
+ minLength?: number | undefined;
1403
+ maxLength?: number | undefined;
1404
+ placeholder?: string | undefined;
1405
+ minValue?: number | undefined;
1406
+ maxValue?: number | undefined;
1407
+ format?: string | undefined;
1408
+ customFormat?: string | undefined;
1409
+ }>>;
1410
+ }, "name"> & {
1411
+ name: z.ZodEnum<["familyName", "givenName", "middleName"]>;
864
1412
  }, "strip", z.ZodTypeAny, {
865
- key: "familyName" | "givenName" | "middleName";
1413
+ type: CustomProfileFieldType;
1414
+ name: "familyName" | "givenName" | "middleName";
866
1415
  enabled: boolean;
1416
+ label: string;
1417
+ required: boolean;
1418
+ description?: string | undefined;
1419
+ config?: {
1420
+ options?: {
1421
+ value: string;
1422
+ label: string;
1423
+ }[] | undefined;
1424
+ minLength?: number | undefined;
1425
+ maxLength?: number | undefined;
1426
+ placeholder?: string | undefined;
1427
+ minValue?: number | undefined;
1428
+ maxValue?: number | undefined;
1429
+ format?: string | undefined;
1430
+ customFormat?: string | undefined;
1431
+ } | undefined;
867
1432
  }, {
868
- key: "familyName" | "givenName" | "middleName";
1433
+ type: CustomProfileFieldType;
1434
+ name: "familyName" | "givenName" | "middleName";
869
1435
  enabled: boolean;
1436
+ label: string;
1437
+ required: boolean;
1438
+ description?: string | undefined;
1439
+ config?: {
1440
+ options?: {
1441
+ value: string;
1442
+ label: string;
1443
+ }[] | undefined;
1444
+ minLength?: number | undefined;
1445
+ maxLength?: number | undefined;
1446
+ placeholder?: string | undefined;
1447
+ minValue?: number | undefined;
1448
+ maxValue?: number | undefined;
1449
+ format?: string | undefined;
1450
+ customFormat?: string | undefined;
1451
+ } | undefined;
870
1452
  }>, "many">;
871
1453
  }, "strip", z.ZodTypeAny, {
872
1454
  parts: {
873
- key: "familyName" | "givenName" | "middleName";
1455
+ type: CustomProfileFieldType;
1456
+ name: "familyName" | "givenName" | "middleName";
874
1457
  enabled: boolean;
1458
+ label: string;
1459
+ required: boolean;
1460
+ description?: string | undefined;
1461
+ config?: {
1462
+ options?: {
1463
+ value: string;
1464
+ label: string;
1465
+ }[] | undefined;
1466
+ minLength?: number | undefined;
1467
+ maxLength?: number | undefined;
1468
+ placeholder?: string | undefined;
1469
+ minValue?: number | undefined;
1470
+ maxValue?: number | undefined;
1471
+ format?: string | undefined;
1472
+ customFormat?: string | undefined;
1473
+ } | undefined;
875
1474
  }[];
876
1475
  }, {
877
1476
  parts: {
878
- key: "familyName" | "givenName" | "middleName";
1477
+ type: CustomProfileFieldType;
1478
+ name: "familyName" | "givenName" | "middleName";
879
1479
  enabled: boolean;
1480
+ label: string;
1481
+ required: boolean;
1482
+ description?: string | undefined;
1483
+ config?: {
1484
+ options?: {
1485
+ value: string;
1486
+ label: string;
1487
+ }[] | undefined;
1488
+ minLength?: number | undefined;
1489
+ maxLength?: number | undefined;
1490
+ placeholder?: string | undefined;
1491
+ minValue?: number | undefined;
1492
+ maxValue?: number | undefined;
1493
+ format?: string | undefined;
1494
+ customFormat?: string | undefined;
1495
+ } | undefined;
880
1496
  }[];
881
1497
  }>;
882
1498
  }, "strip", z.ZodTypeAny, {
883
1499
  type: CustomProfileFieldType.Fullname;
884
1500
  name: string;
885
1501
  label: string;
1502
+ required: boolean;
886
1503
  config: {
887
1504
  parts: {
888
- key: "familyName" | "givenName" | "middleName";
1505
+ type: CustomProfileFieldType;
1506
+ name: "familyName" | "givenName" | "middleName";
889
1507
  enabled: boolean;
1508
+ label: string;
1509
+ required: boolean;
1510
+ description?: string | undefined;
1511
+ config?: {
1512
+ options?: {
1513
+ value: string;
1514
+ label: string;
1515
+ }[] | undefined;
1516
+ minLength?: number | undefined;
1517
+ maxLength?: number | undefined;
1518
+ placeholder?: string | undefined;
1519
+ minValue?: number | undefined;
1520
+ maxValue?: number | undefined;
1521
+ format?: string | undefined;
1522
+ customFormat?: string | undefined;
1523
+ } | undefined;
890
1524
  }[];
891
1525
  };
892
1526
  description?: string | undefined;
893
- required?: boolean | undefined;
894
1527
  }, {
895
1528
  type: CustomProfileFieldType.Fullname;
896
1529
  name: string;
897
1530
  label: string;
1531
+ required: boolean;
898
1532
  config: {
899
1533
  parts: {
900
- key: "familyName" | "givenName" | "middleName";
1534
+ type: CustomProfileFieldType;
1535
+ name: "familyName" | "givenName" | "middleName";
901
1536
  enabled: boolean;
1537
+ label: string;
1538
+ required: boolean;
1539
+ description?: string | undefined;
1540
+ config?: {
1541
+ options?: {
1542
+ value: string;
1543
+ label: string;
1544
+ }[] | undefined;
1545
+ minLength?: number | undefined;
1546
+ maxLength?: number | undefined;
1547
+ placeholder?: string | undefined;
1548
+ minValue?: number | undefined;
1549
+ maxValue?: number | undefined;
1550
+ format?: string | undefined;
1551
+ customFormat?: string | undefined;
1552
+ } | undefined;
902
1553
  }[];
903
1554
  };
904
1555
  description?: string | undefined;
905
- required?: boolean | undefined;
906
1556
  }>]>;
907
1557
  export type CustomProfileFieldUnion = TextProfileField | NumberProfileField | DateProfileField | CheckboxProfileField | SelectProfileField | UrlProfileField | RegexProfileField | AddressProfileField | FullnameProfileField;
908
- export declare const builtInCustomProfileFieldKeys: readonly ["familyName", "givenName", "middleName", "nickname", "preferredUsername", "profile", "website", "gender", "birthdate", "zoneinfo", "locale", "address", "name", "avatar", "primaryEmail", "primaryPhone"];
1558
+ export declare const nameAndAvatarGuard: z.ZodObject<{
1559
+ name: z.ZodOptional<z.ZodString>;
1560
+ avatar: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ name?: string | undefined;
1563
+ avatar?: string | undefined;
1564
+ }, {
1565
+ name?: string | undefined;
1566
+ avatar?: string | undefined;
1567
+ }>;
1568
+ export declare const builtInProfileGuard: z.ZodObject<{
1569
+ name: z.ZodOptional<z.ZodString>;
1570
+ avatar: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1571
+ } & {
1572
+ profile: z.ZodObject<{
1573
+ familyName: z.ZodOptional<z.ZodString>;
1574
+ givenName: z.ZodOptional<z.ZodString>;
1575
+ middleName: z.ZodOptional<z.ZodString>;
1576
+ nickname: z.ZodOptional<z.ZodString>;
1577
+ preferredUsername: z.ZodOptional<z.ZodString>;
1578
+ profile: z.ZodOptional<z.ZodString>;
1579
+ website: z.ZodOptional<z.ZodString>;
1580
+ gender: z.ZodOptional<z.ZodString>;
1581
+ birthdate: z.ZodOptional<z.ZodString>;
1582
+ zoneinfo: z.ZodOptional<z.ZodString>;
1583
+ locale: z.ZodOptional<z.ZodString>;
1584
+ address: z.ZodOptional<z.ZodObject<{
1585
+ formatted: z.ZodOptional<z.ZodString>;
1586
+ streetAddress: z.ZodOptional<z.ZodString>;
1587
+ locality: z.ZodOptional<z.ZodString>;
1588
+ region: z.ZodOptional<z.ZodString>;
1589
+ postalCode: z.ZodOptional<z.ZodString>;
1590
+ country: z.ZodOptional<z.ZodString>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ formatted?: string | undefined;
1593
+ streetAddress?: string | undefined;
1594
+ locality?: string | undefined;
1595
+ region?: string | undefined;
1596
+ postalCode?: string | undefined;
1597
+ country?: string | undefined;
1598
+ }, {
1599
+ formatted?: string | undefined;
1600
+ streetAddress?: string | undefined;
1601
+ locality?: string | undefined;
1602
+ region?: string | undefined;
1603
+ postalCode?: string | undefined;
1604
+ country?: string | undefined;
1605
+ }>>;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ familyName?: string | undefined;
1608
+ givenName?: string | undefined;
1609
+ middleName?: string | undefined;
1610
+ nickname?: string | undefined;
1611
+ preferredUsername?: string | undefined;
1612
+ profile?: string | undefined;
1613
+ website?: string | undefined;
1614
+ gender?: string | undefined;
1615
+ birthdate?: string | undefined;
1616
+ zoneinfo?: string | undefined;
1617
+ locale?: string | undefined;
1618
+ address?: {
1619
+ formatted?: string | undefined;
1620
+ streetAddress?: string | undefined;
1621
+ locality?: string | undefined;
1622
+ region?: string | undefined;
1623
+ postalCode?: string | undefined;
1624
+ country?: string | undefined;
1625
+ } | undefined;
1626
+ }, {
1627
+ familyName?: string | undefined;
1628
+ givenName?: string | undefined;
1629
+ middleName?: string | undefined;
1630
+ nickname?: string | undefined;
1631
+ preferredUsername?: string | undefined;
1632
+ profile?: string | undefined;
1633
+ website?: string | undefined;
1634
+ gender?: string | undefined;
1635
+ birthdate?: string | undefined;
1636
+ zoneinfo?: string | undefined;
1637
+ locale?: string | undefined;
1638
+ address?: {
1639
+ formatted?: string | undefined;
1640
+ streetAddress?: string | undefined;
1641
+ locality?: string | undefined;
1642
+ region?: string | undefined;
1643
+ postalCode?: string | undefined;
1644
+ country?: string | undefined;
1645
+ } | undefined;
1646
+ }>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ profile: {
1649
+ familyName?: string | undefined;
1650
+ givenName?: string | undefined;
1651
+ middleName?: string | undefined;
1652
+ nickname?: string | undefined;
1653
+ preferredUsername?: string | undefined;
1654
+ profile?: string | undefined;
1655
+ website?: string | undefined;
1656
+ gender?: string | undefined;
1657
+ birthdate?: string | undefined;
1658
+ zoneinfo?: string | undefined;
1659
+ locale?: string | undefined;
1660
+ address?: {
1661
+ formatted?: string | undefined;
1662
+ streetAddress?: string | undefined;
1663
+ locality?: string | undefined;
1664
+ region?: string | undefined;
1665
+ postalCode?: string | undefined;
1666
+ country?: string | undefined;
1667
+ } | undefined;
1668
+ };
1669
+ name?: string | undefined;
1670
+ avatar?: string | undefined;
1671
+ }, {
1672
+ profile: {
1673
+ familyName?: string | undefined;
1674
+ givenName?: string | undefined;
1675
+ middleName?: string | undefined;
1676
+ nickname?: string | undefined;
1677
+ preferredUsername?: string | undefined;
1678
+ profile?: string | undefined;
1679
+ website?: string | undefined;
1680
+ gender?: string | undefined;
1681
+ birthdate?: string | undefined;
1682
+ zoneinfo?: string | undefined;
1683
+ locale?: string | undefined;
1684
+ address?: {
1685
+ formatted?: string | undefined;
1686
+ streetAddress?: string | undefined;
1687
+ locality?: string | undefined;
1688
+ region?: string | undefined;
1689
+ postalCode?: string | undefined;
1690
+ country?: string | undefined;
1691
+ } | undefined;
1692
+ };
1693
+ name?: string | undefined;
1694
+ avatar?: string | undefined;
1695
+ }>;
1696
+ export declare const builtInCustomProfileFieldKeys: readonly ["familyName", "givenName", "middleName", "nickname", "preferredUsername", "profile", "website", "gender", "birthdate", "zoneinfo", "locale", "address", "name", "avatar"];
909
1697
  export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
910
1698
  name: z.ZodString;
911
1699
  label: z.ZodString;
912
1700
  description: z.ZodOptional<z.ZodString>;
913
- required: z.ZodOptional<z.ZodBoolean>;
1701
+ required: z.ZodBoolean;
914
1702
  } & {
915
1703
  type: z.ZodLiteral<CustomProfileFieldType.Text>;
916
1704
  config: z.ZodOptional<z.ZodObject<{
@@ -929,28 +1717,28 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
929
1717
  }, "name">, "strip", z.ZodTypeAny, {
930
1718
  type: CustomProfileFieldType.Text;
931
1719
  label: string;
1720
+ required: boolean;
932
1721
  description?: string | undefined;
933
1722
  config?: {
934
1723
  minLength?: number | undefined;
935
1724
  maxLength?: number | undefined;
936
1725
  placeholder?: string | undefined;
937
1726
  } | undefined;
938
- required?: boolean | undefined;
939
1727
  }, {
940
1728
  type: CustomProfileFieldType.Text;
941
1729
  label: string;
1730
+ required: boolean;
942
1731
  description?: string | undefined;
943
1732
  config?: {
944
1733
  minLength?: number | undefined;
945
1734
  maxLength?: number | undefined;
946
1735
  placeholder?: string | undefined;
947
1736
  } | undefined;
948
- required?: boolean | undefined;
949
1737
  }>, z.ZodObject<Omit<{
950
1738
  name: z.ZodString;
951
1739
  label: z.ZodString;
952
1740
  description: z.ZodOptional<z.ZodString>;
953
- required: z.ZodOptional<z.ZodBoolean>;
1741
+ required: z.ZodBoolean;
954
1742
  } & {
955
1743
  type: z.ZodLiteral<CustomProfileFieldType.Number>;
956
1744
  config: z.ZodOptional<z.ZodObject<{
@@ -969,63 +1757,68 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
969
1757
  }, "name">, "strip", z.ZodTypeAny, {
970
1758
  type: CustomProfileFieldType.Number;
971
1759
  label: string;
1760
+ required: boolean;
972
1761
  description?: string | undefined;
973
1762
  config?: {
974
1763
  placeholder?: string | undefined;
975
1764
  minValue?: number | undefined;
976
1765
  maxValue?: number | undefined;
977
1766
  } | undefined;
978
- required?: boolean | undefined;
979
1767
  }, {
980
1768
  type: CustomProfileFieldType.Number;
981
1769
  label: string;
1770
+ required: boolean;
982
1771
  description?: string | undefined;
983
1772
  config?: {
984
1773
  placeholder?: string | undefined;
985
1774
  minValue?: number | undefined;
986
1775
  maxValue?: number | undefined;
987
1776
  } | undefined;
988
- required?: boolean | undefined;
989
1777
  }>, z.ZodObject<Omit<{
990
1778
  name: z.ZodString;
991
1779
  label: z.ZodString;
992
1780
  description: z.ZodOptional<z.ZodString>;
993
- required: z.ZodOptional<z.ZodBoolean>;
1781
+ required: z.ZodBoolean;
994
1782
  } & {
995
1783
  type: z.ZodLiteral<CustomProfileFieldType.Date>;
996
1784
  config: z.ZodOptional<z.ZodObject<{
997
1785
  placeholder: z.ZodOptional<z.ZodString>;
998
1786
  format: z.ZodString;
1787
+ customFormat: z.ZodOptional<z.ZodString>;
999
1788
  }, "strip", z.ZodTypeAny, {
1000
1789
  format: string;
1001
1790
  placeholder?: string | undefined;
1791
+ customFormat?: string | undefined;
1002
1792
  }, {
1003
1793
  format: string;
1004
1794
  placeholder?: string | undefined;
1795
+ customFormat?: string | undefined;
1005
1796
  }>>;
1006
1797
  }, "name">, "strip", z.ZodTypeAny, {
1007
1798
  type: CustomProfileFieldType.Date;
1008
1799
  label: string;
1800
+ required: boolean;
1009
1801
  description?: string | undefined;
1010
1802
  config?: {
1011
1803
  format: string;
1012
1804
  placeholder?: string | undefined;
1805
+ customFormat?: string | undefined;
1013
1806
  } | undefined;
1014
- required?: boolean | undefined;
1015
1807
  }, {
1016
1808
  type: CustomProfileFieldType.Date;
1017
1809
  label: string;
1810
+ required: boolean;
1018
1811
  description?: string | undefined;
1019
1812
  config?: {
1020
1813
  format: string;
1021
1814
  placeholder?: string | undefined;
1815
+ customFormat?: string | undefined;
1022
1816
  } | undefined;
1023
- required?: boolean | undefined;
1024
1817
  }>, z.ZodObject<Omit<{
1025
1818
  name: z.ZodString;
1026
1819
  label: z.ZodString;
1027
1820
  description: z.ZodOptional<z.ZodString>;
1028
- required: z.ZodOptional<z.ZodBoolean>;
1821
+ required: z.ZodBoolean;
1029
1822
  } & {
1030
1823
  type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
1031
1824
  config: z.ZodObject<{
@@ -1053,6 +1846,7 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1053
1846
  }, "name">, "strip", z.ZodTypeAny, {
1054
1847
  type: CustomProfileFieldType.Checkbox;
1055
1848
  label: string;
1849
+ required: boolean;
1056
1850
  config: {
1057
1851
  options: {
1058
1852
  value: string;
@@ -1060,10 +1854,10 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1060
1854
  }[];
1061
1855
  };
1062
1856
  description?: string | undefined;
1063
- required?: boolean | undefined;
1064
1857
  }, {
1065
1858
  type: CustomProfileFieldType.Checkbox;
1066
1859
  label: string;
1860
+ required: boolean;
1067
1861
  config: {
1068
1862
  options: {
1069
1863
  value: string;
@@ -1071,12 +1865,11 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1071
1865
  }[];
1072
1866
  };
1073
1867
  description?: string | undefined;
1074
- required?: boolean | undefined;
1075
1868
  }>, z.ZodObject<Omit<{
1076
1869
  name: z.ZodString;
1077
1870
  label: z.ZodString;
1078
1871
  description: z.ZodOptional<z.ZodString>;
1079
- required: z.ZodOptional<z.ZodBoolean>;
1872
+ required: z.ZodBoolean;
1080
1873
  } & {
1081
1874
  type: z.ZodLiteral<CustomProfileFieldType.Select>;
1082
1875
  config: z.ZodObject<{
@@ -1107,6 +1900,7 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1107
1900
  }, "name">, "strip", z.ZodTypeAny, {
1108
1901
  type: CustomProfileFieldType.Select;
1109
1902
  label: string;
1903
+ required: boolean;
1110
1904
  config: {
1111
1905
  options: {
1112
1906
  value: string;
@@ -1115,10 +1909,10 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1115
1909
  placeholder?: string | undefined;
1116
1910
  };
1117
1911
  description?: string | undefined;
1118
- required?: boolean | undefined;
1119
1912
  }, {
1120
1913
  type: CustomProfileFieldType.Select;
1121
1914
  label: string;
1915
+ required: boolean;
1122
1916
  config: {
1123
1917
  options: {
1124
1918
  value: string;
@@ -1127,12 +1921,11 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1127
1921
  placeholder?: string | undefined;
1128
1922
  };
1129
1923
  description?: string | undefined;
1130
- required?: boolean | undefined;
1131
1924
  }>, z.ZodObject<Omit<{
1132
1925
  name: z.ZodString;
1133
1926
  label: z.ZodString;
1134
1927
  description: z.ZodOptional<z.ZodString>;
1135
- required: z.ZodOptional<z.ZodBoolean>;
1928
+ required: z.ZodBoolean;
1136
1929
  } & {
1137
1930
  type: z.ZodLiteral<CustomProfileFieldType.Url>;
1138
1931
  config: z.ZodOptional<z.ZodObject<{
@@ -1145,24 +1938,24 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1145
1938
  }, "name">, "strip", z.ZodTypeAny, {
1146
1939
  type: CustomProfileFieldType.Url;
1147
1940
  label: string;
1941
+ required: boolean;
1148
1942
  description?: string | undefined;
1149
1943
  config?: {
1150
1944
  placeholder?: string | undefined;
1151
1945
  } | undefined;
1152
- required?: boolean | undefined;
1153
1946
  }, {
1154
1947
  type: CustomProfileFieldType.Url;
1155
1948
  label: string;
1949
+ required: boolean;
1156
1950
  description?: string | undefined;
1157
1951
  config?: {
1158
1952
  placeholder?: string | undefined;
1159
1953
  } | undefined;
1160
- required?: boolean | undefined;
1161
1954
  }>, z.ZodObject<Omit<{
1162
1955
  name: z.ZodString;
1163
1956
  label: z.ZodString;
1164
1957
  description: z.ZodOptional<z.ZodString>;
1165
- required: z.ZodOptional<z.ZodBoolean>;
1958
+ required: z.ZodBoolean;
1166
1959
  } & {
1167
1960
  type: z.ZodLiteral<CustomProfileFieldType.Regex>;
1168
1961
  config: z.ZodObject<{
@@ -1178,123 +1971,425 @@ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<
1178
1971
  }, "name">, "strip", z.ZodTypeAny, {
1179
1972
  type: CustomProfileFieldType.Regex;
1180
1973
  label: string;
1974
+ required: boolean;
1181
1975
  config: {
1182
1976
  format: string;
1183
1977
  placeholder?: string | undefined;
1184
1978
  };
1185
1979
  description?: string | undefined;
1186
- required?: boolean | undefined;
1187
1980
  }, {
1188
1981
  type: CustomProfileFieldType.Regex;
1189
1982
  label: string;
1983
+ required: boolean;
1190
1984
  config: {
1191
1985
  format: string;
1192
1986
  placeholder?: string | undefined;
1193
1987
  };
1194
1988
  description?: string | undefined;
1195
- required?: boolean | undefined;
1196
1989
  }>, z.ZodObject<Omit<{
1197
1990
  name: z.ZodString;
1198
1991
  label: z.ZodString;
1199
1992
  description: z.ZodOptional<z.ZodString>;
1200
- required: z.ZodOptional<z.ZodBoolean>;
1993
+ required: z.ZodBoolean;
1201
1994
  } & {
1202
1995
  type: z.ZodLiteral<CustomProfileFieldType.Address>;
1203
1996
  config: z.ZodObject<{
1204
- parts: z.ZodArray<z.ZodObject<{
1205
- key: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
1997
+ parts: z.ZodArray<z.ZodObject<Omit<{
1206
1998
  enabled: z.ZodBoolean;
1999
+ name: z.ZodString;
2000
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
2001
+ label: z.ZodString;
2002
+ description: z.ZodOptional<z.ZodString>;
2003
+ required: z.ZodBoolean;
2004
+ config: z.ZodOptional<z.ZodObject<{
2005
+ placeholder: z.ZodOptional<z.ZodString>;
2006
+ minLength: z.ZodOptional<z.ZodNumber>;
2007
+ maxLength: z.ZodOptional<z.ZodNumber>;
2008
+ minValue: z.ZodOptional<z.ZodNumber>;
2009
+ maxValue: z.ZodOptional<z.ZodNumber>;
2010
+ format: z.ZodOptional<z.ZodString>;
2011
+ customFormat: z.ZodOptional<z.ZodString>;
2012
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2013
+ label: z.ZodString;
2014
+ value: z.ZodString;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ value: string;
2017
+ label: string;
2018
+ }, {
2019
+ value: string;
2020
+ label: string;
2021
+ }>, "many">>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ options?: {
2024
+ value: string;
2025
+ label: string;
2026
+ }[] | undefined;
2027
+ minLength?: number | undefined;
2028
+ maxLength?: number | undefined;
2029
+ placeholder?: string | undefined;
2030
+ minValue?: number | undefined;
2031
+ maxValue?: number | undefined;
2032
+ format?: string | undefined;
2033
+ customFormat?: string | undefined;
2034
+ }, {
2035
+ options?: {
2036
+ value: string;
2037
+ label: string;
2038
+ }[] | undefined;
2039
+ minLength?: number | undefined;
2040
+ maxLength?: number | undefined;
2041
+ placeholder?: string | undefined;
2042
+ minValue?: number | undefined;
2043
+ maxValue?: number | undefined;
2044
+ format?: string | undefined;
2045
+ customFormat?: string | undefined;
2046
+ }>>;
2047
+ }, "name"> & {
2048
+ name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>;
1207
2049
  }, "strip", z.ZodTypeAny, {
1208
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2050
+ type: CustomProfileFieldType;
2051
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1209
2052
  enabled: boolean;
2053
+ label: string;
2054
+ required: boolean;
2055
+ description?: string | undefined;
2056
+ config?: {
2057
+ options?: {
2058
+ value: string;
2059
+ label: string;
2060
+ }[] | undefined;
2061
+ minLength?: number | undefined;
2062
+ maxLength?: number | undefined;
2063
+ placeholder?: string | undefined;
2064
+ minValue?: number | undefined;
2065
+ maxValue?: number | undefined;
2066
+ format?: string | undefined;
2067
+ customFormat?: string | undefined;
2068
+ } | undefined;
1210
2069
  }, {
1211
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2070
+ type: CustomProfileFieldType;
2071
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1212
2072
  enabled: boolean;
2073
+ label: string;
2074
+ required: boolean;
2075
+ description?: string | undefined;
2076
+ config?: {
2077
+ options?: {
2078
+ value: string;
2079
+ label: string;
2080
+ }[] | undefined;
2081
+ minLength?: number | undefined;
2082
+ maxLength?: number | undefined;
2083
+ placeholder?: string | undefined;
2084
+ minValue?: number | undefined;
2085
+ maxValue?: number | undefined;
2086
+ format?: string | undefined;
2087
+ customFormat?: string | undefined;
2088
+ } | undefined;
1213
2089
  }>, "many">;
1214
2090
  }, "strip", z.ZodTypeAny, {
1215
2091
  parts: {
1216
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2092
+ type: CustomProfileFieldType;
2093
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1217
2094
  enabled: boolean;
2095
+ label: string;
2096
+ required: boolean;
2097
+ description?: string | undefined;
2098
+ config?: {
2099
+ options?: {
2100
+ value: string;
2101
+ label: string;
2102
+ }[] | undefined;
2103
+ minLength?: number | undefined;
2104
+ maxLength?: number | undefined;
2105
+ placeholder?: string | undefined;
2106
+ minValue?: number | undefined;
2107
+ maxValue?: number | undefined;
2108
+ format?: string | undefined;
2109
+ customFormat?: string | undefined;
2110
+ } | undefined;
1218
2111
  }[];
1219
2112
  }, {
1220
2113
  parts: {
1221
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2114
+ type: CustomProfileFieldType;
2115
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1222
2116
  enabled: boolean;
2117
+ label: string;
2118
+ required: boolean;
2119
+ description?: string | undefined;
2120
+ config?: {
2121
+ options?: {
2122
+ value: string;
2123
+ label: string;
2124
+ }[] | undefined;
2125
+ minLength?: number | undefined;
2126
+ maxLength?: number | undefined;
2127
+ placeholder?: string | undefined;
2128
+ minValue?: number | undefined;
2129
+ maxValue?: number | undefined;
2130
+ format?: string | undefined;
2131
+ customFormat?: string | undefined;
2132
+ } | undefined;
1223
2133
  }[];
1224
2134
  }>;
1225
2135
  }, "name">, "strip", z.ZodTypeAny, {
1226
2136
  type: CustomProfileFieldType.Address;
1227
2137
  label: string;
2138
+ required: boolean;
1228
2139
  config: {
1229
2140
  parts: {
1230
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2141
+ type: CustomProfileFieldType;
2142
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1231
2143
  enabled: boolean;
2144
+ label: string;
2145
+ required: boolean;
2146
+ description?: string | undefined;
2147
+ config?: {
2148
+ options?: {
2149
+ value: string;
2150
+ label: string;
2151
+ }[] | undefined;
2152
+ minLength?: number | undefined;
2153
+ maxLength?: number | undefined;
2154
+ placeholder?: string | undefined;
2155
+ minValue?: number | undefined;
2156
+ maxValue?: number | undefined;
2157
+ format?: string | undefined;
2158
+ customFormat?: string | undefined;
2159
+ } | undefined;
1232
2160
  }[];
1233
2161
  };
1234
2162
  description?: string | undefined;
1235
- required?: boolean | undefined;
1236
2163
  }, {
1237
2164
  type: CustomProfileFieldType.Address;
1238
2165
  label: string;
2166
+ required: boolean;
1239
2167
  config: {
1240
2168
  parts: {
1241
- key: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
2169
+ type: CustomProfileFieldType;
2170
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
1242
2171
  enabled: boolean;
2172
+ label: string;
2173
+ required: boolean;
2174
+ description?: string | undefined;
2175
+ config?: {
2176
+ options?: {
2177
+ value: string;
2178
+ label: string;
2179
+ }[] | undefined;
2180
+ minLength?: number | undefined;
2181
+ maxLength?: number | undefined;
2182
+ placeholder?: string | undefined;
2183
+ minValue?: number | undefined;
2184
+ maxValue?: number | undefined;
2185
+ format?: string | undefined;
2186
+ customFormat?: string | undefined;
2187
+ } | undefined;
1243
2188
  }[];
1244
2189
  };
1245
2190
  description?: string | undefined;
1246
- required?: boolean | undefined;
1247
2191
  }>, z.ZodObject<Omit<{
1248
2192
  name: z.ZodString;
1249
2193
  label: z.ZodString;
1250
2194
  description: z.ZodOptional<z.ZodString>;
1251
- required: z.ZodOptional<z.ZodBoolean>;
2195
+ required: z.ZodBoolean;
1252
2196
  } & {
1253
2197
  type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
1254
2198
  config: z.ZodObject<{
1255
- parts: z.ZodArray<z.ZodObject<{
1256
- key: z.ZodEnum<["familyName", "givenName", "middleName"]>;
2199
+ parts: z.ZodArray<z.ZodObject<Omit<{
1257
2200
  enabled: z.ZodBoolean;
2201
+ name: z.ZodString;
2202
+ type: z.ZodNativeEnum<typeof CustomProfileFieldType>;
2203
+ label: z.ZodString;
2204
+ description: z.ZodOptional<z.ZodString>;
2205
+ required: z.ZodBoolean;
2206
+ config: z.ZodOptional<z.ZodObject<{
2207
+ placeholder: z.ZodOptional<z.ZodString>;
2208
+ minLength: z.ZodOptional<z.ZodNumber>;
2209
+ maxLength: z.ZodOptional<z.ZodNumber>;
2210
+ minValue: z.ZodOptional<z.ZodNumber>;
2211
+ maxValue: z.ZodOptional<z.ZodNumber>;
2212
+ format: z.ZodOptional<z.ZodString>;
2213
+ customFormat: z.ZodOptional<z.ZodString>;
2214
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2215
+ label: z.ZodString;
2216
+ value: z.ZodString;
2217
+ }, "strip", z.ZodTypeAny, {
2218
+ value: string;
2219
+ label: string;
2220
+ }, {
2221
+ value: string;
2222
+ label: string;
2223
+ }>, "many">>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ options?: {
2226
+ value: string;
2227
+ label: string;
2228
+ }[] | undefined;
2229
+ minLength?: number | undefined;
2230
+ maxLength?: number | undefined;
2231
+ placeholder?: string | undefined;
2232
+ minValue?: number | undefined;
2233
+ maxValue?: number | undefined;
2234
+ format?: string | undefined;
2235
+ customFormat?: string | undefined;
2236
+ }, {
2237
+ options?: {
2238
+ value: string;
2239
+ label: string;
2240
+ }[] | undefined;
2241
+ minLength?: number | undefined;
2242
+ maxLength?: number | undefined;
2243
+ placeholder?: string | undefined;
2244
+ minValue?: number | undefined;
2245
+ maxValue?: number | undefined;
2246
+ format?: string | undefined;
2247
+ customFormat?: string | undefined;
2248
+ }>>;
2249
+ }, "name"> & {
2250
+ name: z.ZodEnum<["familyName", "givenName", "middleName"]>;
1258
2251
  }, "strip", z.ZodTypeAny, {
1259
- key: "familyName" | "givenName" | "middleName";
2252
+ type: CustomProfileFieldType;
2253
+ name: "familyName" | "givenName" | "middleName";
1260
2254
  enabled: boolean;
2255
+ label: string;
2256
+ required: boolean;
2257
+ description?: string | undefined;
2258
+ config?: {
2259
+ options?: {
2260
+ value: string;
2261
+ label: string;
2262
+ }[] | undefined;
2263
+ minLength?: number | undefined;
2264
+ maxLength?: number | undefined;
2265
+ placeholder?: string | undefined;
2266
+ minValue?: number | undefined;
2267
+ maxValue?: number | undefined;
2268
+ format?: string | undefined;
2269
+ customFormat?: string | undefined;
2270
+ } | undefined;
1261
2271
  }, {
1262
- key: "familyName" | "givenName" | "middleName";
2272
+ type: CustomProfileFieldType;
2273
+ name: "familyName" | "givenName" | "middleName";
1263
2274
  enabled: boolean;
2275
+ label: string;
2276
+ required: boolean;
2277
+ description?: string | undefined;
2278
+ config?: {
2279
+ options?: {
2280
+ value: string;
2281
+ label: string;
2282
+ }[] | undefined;
2283
+ minLength?: number | undefined;
2284
+ maxLength?: number | undefined;
2285
+ placeholder?: string | undefined;
2286
+ minValue?: number | undefined;
2287
+ maxValue?: number | undefined;
2288
+ format?: string | undefined;
2289
+ customFormat?: string | undefined;
2290
+ } | undefined;
1264
2291
  }>, "many">;
1265
2292
  }, "strip", z.ZodTypeAny, {
1266
2293
  parts: {
1267
- key: "familyName" | "givenName" | "middleName";
2294
+ type: CustomProfileFieldType;
2295
+ name: "familyName" | "givenName" | "middleName";
1268
2296
  enabled: boolean;
2297
+ label: string;
2298
+ required: boolean;
2299
+ description?: string | undefined;
2300
+ config?: {
2301
+ options?: {
2302
+ value: string;
2303
+ label: string;
2304
+ }[] | undefined;
2305
+ minLength?: number | undefined;
2306
+ maxLength?: number | undefined;
2307
+ placeholder?: string | undefined;
2308
+ minValue?: number | undefined;
2309
+ maxValue?: number | undefined;
2310
+ format?: string | undefined;
2311
+ customFormat?: string | undefined;
2312
+ } | undefined;
1269
2313
  }[];
1270
2314
  }, {
1271
2315
  parts: {
1272
- key: "familyName" | "givenName" | "middleName";
2316
+ type: CustomProfileFieldType;
2317
+ name: "familyName" | "givenName" | "middleName";
1273
2318
  enabled: boolean;
2319
+ label: string;
2320
+ required: boolean;
2321
+ description?: string | undefined;
2322
+ config?: {
2323
+ options?: {
2324
+ value: string;
2325
+ label: string;
2326
+ }[] | undefined;
2327
+ minLength?: number | undefined;
2328
+ maxLength?: number | undefined;
2329
+ placeholder?: string | undefined;
2330
+ minValue?: number | undefined;
2331
+ maxValue?: number | undefined;
2332
+ format?: string | undefined;
2333
+ customFormat?: string | undefined;
2334
+ } | undefined;
1274
2335
  }[];
1275
2336
  }>;
1276
2337
  }, "name">, "strip", z.ZodTypeAny, {
1277
2338
  type: CustomProfileFieldType.Fullname;
1278
2339
  label: string;
2340
+ required: boolean;
1279
2341
  config: {
1280
2342
  parts: {
1281
- key: "familyName" | "givenName" | "middleName";
2343
+ type: CustomProfileFieldType;
2344
+ name: "familyName" | "givenName" | "middleName";
1282
2345
  enabled: boolean;
2346
+ label: string;
2347
+ required: boolean;
2348
+ description?: string | undefined;
2349
+ config?: {
2350
+ options?: {
2351
+ value: string;
2352
+ label: string;
2353
+ }[] | undefined;
2354
+ minLength?: number | undefined;
2355
+ maxLength?: number | undefined;
2356
+ placeholder?: string | undefined;
2357
+ minValue?: number | undefined;
2358
+ maxValue?: number | undefined;
2359
+ format?: string | undefined;
2360
+ customFormat?: string | undefined;
2361
+ } | undefined;
1283
2362
  }[];
1284
2363
  };
1285
2364
  description?: string | undefined;
1286
- required?: boolean | undefined;
1287
2365
  }, {
1288
2366
  type: CustomProfileFieldType.Fullname;
1289
2367
  label: string;
2368
+ required: boolean;
1290
2369
  config: {
1291
2370
  parts: {
1292
- key: "familyName" | "givenName" | "middleName";
2371
+ type: CustomProfileFieldType;
2372
+ name: "familyName" | "givenName" | "middleName";
1293
2373
  enabled: boolean;
2374
+ label: string;
2375
+ required: boolean;
2376
+ description?: string | undefined;
2377
+ config?: {
2378
+ options?: {
2379
+ value: string;
2380
+ label: string;
2381
+ }[] | undefined;
2382
+ minLength?: number | undefined;
2383
+ maxLength?: number | undefined;
2384
+ placeholder?: string | undefined;
2385
+ minValue?: number | undefined;
2386
+ maxValue?: number | undefined;
2387
+ format?: string | undefined;
2388
+ customFormat?: string | undefined;
2389
+ } | undefined;
1294
2390
  }[];
1295
2391
  };
1296
2392
  description?: string | undefined;
1297
- required?: boolean | undefined;
1298
2393
  }>]>;
1299
2394
  export type UpdateCustomProfileFieldData = z.infer<typeof updateCustomProfileFieldDataGuard>;
1300
2395
  export declare const updateCustomProfileFieldSieOrderGuard: z.ZodObject<{
@@ -1308,3 +2403,185 @@ export declare const updateCustomProfileFieldSieOrderGuard: z.ZodObject<{
1308
2403
  sieOrder: number;
1309
2404
  }>;
1310
2405
  export type UpdateCustomProfileFieldSieOrder = z.infer<typeof updateCustomProfileFieldSieOrderGuard>;
2406
+ export declare const signInIdentifierKeyGuard: z.ZodObject<Pick<{
2407
+ tenantId: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
2408
+ id: z.ZodType<string, z.ZodTypeDef, string>;
2409
+ username: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2410
+ primaryEmail: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2411
+ primaryPhone: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2412
+ passwordEncrypted: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2413
+ passwordEncryptionMethod: z.ZodOptional<z.ZodType<import("../index.js").UsersPasswordEncryptionMethod | null, z.ZodTypeDef, import("../index.js").UsersPasswordEncryptionMethod | null>>;
2414
+ name: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2415
+ avatar: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2416
+ profile: z.ZodOptional<z.ZodType<Partial<{
2417
+ familyName: string;
2418
+ givenName: string;
2419
+ middleName: string;
2420
+ nickname: string;
2421
+ preferredUsername: string;
2422
+ profile: string;
2423
+ website: string;
2424
+ gender: string;
2425
+ birthdate: string;
2426
+ zoneinfo: string;
2427
+ locale: string;
2428
+ address: Partial<{
2429
+ formatted: string;
2430
+ streetAddress: string;
2431
+ locality: string;
2432
+ region: string;
2433
+ postalCode: string;
2434
+ country: string;
2435
+ }>;
2436
+ }>, z.ZodTypeDef, Partial<{
2437
+ familyName: string;
2438
+ givenName: string;
2439
+ middleName: string;
2440
+ nickname: string;
2441
+ preferredUsername: string;
2442
+ profile: string;
2443
+ website: string;
2444
+ gender: string;
2445
+ birthdate: string;
2446
+ zoneinfo: string;
2447
+ locale: string;
2448
+ address: Partial<{
2449
+ formatted: string;
2450
+ streetAddress: string;
2451
+ locality: string;
2452
+ region: string;
2453
+ postalCode: string;
2454
+ country: string;
2455
+ }>;
2456
+ }>>>;
2457
+ applicationId: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
2458
+ identities: z.ZodOptional<z.ZodType<Record<string, {
2459
+ userId: string;
2460
+ details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2461
+ }>, z.ZodTypeDef, Record<string, {
2462
+ userId: string;
2463
+ details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2464
+ }>>>;
2465
+ customData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>;
2466
+ logtoConfig: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>;
2467
+ mfaVerifications: z.ZodOptional<z.ZodType<({
2468
+ type: import("../foundations/index.js").MfaFactor.TOTP;
2469
+ id: string;
2470
+ key: string;
2471
+ createdAt: string;
2472
+ lastUsedAt?: string | undefined;
2473
+ } | {
2474
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2475
+ id: string;
2476
+ createdAt: string;
2477
+ credentialId: string;
2478
+ publicKey: string;
2479
+ counter: number;
2480
+ agent: string;
2481
+ name?: string | undefined;
2482
+ lastUsedAt?: string | undefined;
2483
+ transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
2484
+ } | {
2485
+ type: import("../foundations/index.js").MfaFactor.BackupCode;
2486
+ id: string;
2487
+ createdAt: string;
2488
+ codes: {
2489
+ code: string;
2490
+ usedAt?: string | undefined;
2491
+ }[];
2492
+ lastUsedAt?: string | undefined;
2493
+ } | {
2494
+ type: import("../foundations/index.js").MfaFactor.EmailVerificationCode;
2495
+ id: string;
2496
+ createdAt: string;
2497
+ lastUsedAt?: string | undefined;
2498
+ } | {
2499
+ type: import("../foundations/index.js").MfaFactor.PhoneVerificationCode;
2500
+ id: string;
2501
+ createdAt: string;
2502
+ lastUsedAt?: string | undefined;
2503
+ })[], z.ZodTypeDef, ({
2504
+ type: import("../foundations/index.js").MfaFactor.TOTP;
2505
+ id: string;
2506
+ key: string;
2507
+ createdAt: string;
2508
+ lastUsedAt?: string | undefined;
2509
+ } | {
2510
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2511
+ id: string;
2512
+ createdAt: string;
2513
+ credentialId: string;
2514
+ publicKey: string;
2515
+ counter: number;
2516
+ agent: string;
2517
+ name?: string | undefined;
2518
+ lastUsedAt?: string | undefined;
2519
+ transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
2520
+ } | {
2521
+ type: import("../foundations/index.js").MfaFactor.BackupCode;
2522
+ id: string;
2523
+ createdAt: string;
2524
+ codes: {
2525
+ code: string;
2526
+ usedAt?: string | undefined;
2527
+ }[];
2528
+ lastUsedAt?: string | undefined;
2529
+ } | {
2530
+ type: import("../foundations/index.js").MfaFactor.EmailVerificationCode;
2531
+ id: string;
2532
+ createdAt: string;
2533
+ lastUsedAt?: string | undefined;
2534
+ } | {
2535
+ type: import("../foundations/index.js").MfaFactor.PhoneVerificationCode;
2536
+ id: string;
2537
+ createdAt: string;
2538
+ lastUsedAt?: string | undefined;
2539
+ })[]>>;
2540
+ isSuspended: z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>;
2541
+ lastSignInAt: z.ZodOptional<z.ZodType<number | null, z.ZodTypeDef, number | null>>;
2542
+ createdAt: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
2543
+ updatedAt: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
2544
+ }, "username" | "primaryEmail" | "primaryPhone"> & {
2545
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2546
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2547
+ }, "strip", z.ZodTypeAny, {
2548
+ username?: string | null;
2549
+ email?: string | null | undefined;
2550
+ phone?: string | null | undefined;
2551
+ primaryEmail?: string | null;
2552
+ primaryPhone?: string | null;
2553
+ }, {
2554
+ username?: string | null;
2555
+ email?: string | null | undefined;
2556
+ phone?: string | null | undefined;
2557
+ primaryEmail?: string | null;
2558
+ primaryPhone?: string | null;
2559
+ }>;
2560
+ export declare const reservedCustomDataKeyGuard: z.ZodObject<{
2561
+ onboarding: z.ZodOptional<z.ZodString>;
2562
+ guideRequests: z.ZodOptional<z.ZodString>;
2563
+ adminConsolePreferences: z.ZodOptional<z.ZodString>;
2564
+ defaultTenantId: z.ZodOptional<z.ZodString>;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ adminConsolePreferences?: string | undefined;
2567
+ guideRequests?: string | undefined;
2568
+ defaultTenantId?: string | undefined;
2569
+ onboarding?: string | undefined;
2570
+ }, {
2571
+ adminConsolePreferences?: string | undefined;
2572
+ guideRequests?: string | undefined;
2573
+ defaultTenantId?: string | undefined;
2574
+ onboarding?: string | undefined;
2575
+ }>;
2576
+ export declare const reservedCustomDataKeys: readonly ["adminConsolePreferences", "guideRequests", "defaultTenantId", "onboarding"];
2577
+ /**
2578
+ * Disallow sign-in identifiers related field keys in custom profile fields, as this is conflicting
2579
+ * with the built-in sign-in/sign-up experience flows.
2580
+ */
2581
+ export declare const reservedSignInIdentifierKeys: readonly ["username", "email", "phone", "primaryEmail", "primaryPhone"];
2582
+ export declare enum supportedDateFormat {
2583
+ US = "MM/dd/yyyy",
2584
+ UK = "dd/MM/yyyy",
2585
+ ISO = "yyyy-MM-dd",
2586
+ Custom = "custom"
2587
+ }