@logto/schemas 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/alterations/1.29.0-1748832174-add-webauthn-related-origins.ts +20 -0
  2. package/alterations/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.ts +31 -0
  3. package/alterations/1.29.0-1749026308-add-oidc-session-extension-table.ts +41 -0
  4. package/alterations/1.29.0-1749523818-add-custom-profile-fields.ts +58 -0
  5. package/alterations/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.ts +20 -0
  6. package/alterations/1.29.0-1750663091-change-user-password-encrypted-length.ts +18 -0
  7. package/alterations/1.29.0-1750744518-add-secrets-table.ts +50 -0
  8. package/alterations/1.29.0-1750744539-add-secret-connector-relations-table.ts +109 -0
  9. package/alterations/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.ts +81 -0
  10. package/alterations/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.ts +20 -0
  11. package/alterations/1.30.0-1751255436-split-secret-connector-relatioins-table.ts +359 -0
  12. package/alterations/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.ts +20 -0
  13. package/alterations/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.ts +21 -0
  14. package/alterations/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.ts +20 -0
  15. package/alterations/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.ts +20 -0
  16. package/alterations/1.30.0-1753669579-add-organization-user-relations-foreign-key.ts +46 -0
  17. package/alterations-js/1.29.0-1748832174-add-webauthn-related-origins.js +16 -0
  18. package/alterations-js/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.js +25 -0
  19. package/alterations-js/1.29.0-1749026308-add-oidc-session-extension-table.js +33 -0
  20. package/alterations-js/1.29.0-1749523818-add-custom-profile-fields.js +52 -0
  21. package/alterations-js/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.js +16 -0
  22. package/alterations-js/1.29.0-1750663091-change-user-password-encrypted-length.js +14 -0
  23. package/alterations-js/1.29.0-1750744518-add-secrets-table.js +42 -0
  24. package/alterations-js/1.29.0-1750744539-add-secret-connector-relations-table.js +99 -0
  25. package/alterations-js/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.js +76 -0
  26. package/alterations-js/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.js +16 -0
  27. package/alterations-js/1.30.0-1751255436-split-secret-connector-relatioins-table.js +338 -0
  28. package/alterations-js/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.js +16 -0
  29. package/alterations-js/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.js +17 -0
  30. package/alterations-js/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.js +16 -0
  31. package/alterations-js/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.js +16 -0
  32. package/alterations-js/1.30.0-1753669579-add-organization-user-relations-foreign-key.js +38 -0
  33. package/lib/consts/oidc.d.ts +9 -1
  34. package/lib/consts/oidc.js +5 -0
  35. package/lib/db-entries/account-center.d.ts +4 -2
  36. package/lib/db-entries/account-center.js +5 -1
  37. package/lib/db-entries/connector.d.ts +5 -1
  38. package/lib/db-entries/connector.js +4 -0
  39. package/lib/db-entries/custom-profile-field.d.ts +32 -0
  40. package/lib/db-entries/custom-profile-field.js +58 -0
  41. package/lib/db-entries/index.d.ts +5 -0
  42. package/lib/db-entries/index.js +5 -0
  43. package/lib/db-entries/oidc-session-extension.d.ts +24 -0
  44. package/lib/db-entries/oidc-session-extension.js +42 -0
  45. package/lib/db-entries/secret-enterprise-sso-connector-relation.d.ts +28 -0
  46. package/lib/db-entries/secret-enterprise-sso-connector-relation.js +37 -0
  47. package/lib/db-entries/secret-social-connector-relation.d.ts +28 -0
  48. package/lib/db-entries/secret-social-connector-relation.js +37 -0
  49. package/lib/db-entries/secret.d.ts +44 -0
  50. package/lib/db-entries/secret.js +62 -0
  51. package/lib/db-entries/sso-connector.d.ts +5 -1
  52. package/lib/db-entries/sso-connector.js +4 -0
  53. package/lib/db-entries/user-sso-identity.d.ts +5 -1
  54. package/lib/db-entries/user-sso-identity.js +4 -0
  55. package/lib/db-entries/user.js +2 -2
  56. package/lib/foundations/jsonb-types/account-centers.d.ts +5 -0
  57. package/lib/foundations/jsonb-types/account-centers.js +2 -0
  58. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +441 -0
  59. package/lib/foundations/jsonb-types/custom-profile-fields.js +44 -0
  60. package/lib/foundations/jsonb-types/index.d.ts +2 -1
  61. package/lib/foundations/jsonb-types/index.js +2 -1
  62. package/lib/foundations/jsonb-types/secrets.d.ts +11 -0
  63. package/lib/foundations/jsonb-types/secrets.js +15 -0
  64. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +3 -1
  65. package/lib/foundations/jsonb-types/sign-in-experience.js +2 -0
  66. package/lib/foundations/jsonb-types/users.d.ts +126 -0
  67. package/lib/foundations/jsonb-types/users.js +22 -10
  68. package/lib/types/connector.d.ts +39 -0
  69. package/lib/types/connector.js +1 -0
  70. package/lib/types/consent.d.ts +44 -0
  71. package/lib/types/custom-profile-fields.d.ts +2587 -0
  72. package/lib/types/custom-profile-fields.js +159 -0
  73. package/lib/types/index.d.ts +4 -0
  74. package/lib/types/index.js +4 -0
  75. package/lib/types/interactions.d.ts +181 -1
  76. package/lib/types/interactions.js +49 -1
  77. package/lib/types/log/interaction.d.ts +2 -1
  78. package/lib/types/logto-config/index.d.ts +1139 -18
  79. package/lib/types/logto-config/jwt-customizer.d.ts +2529 -32
  80. package/lib/types/logto-config/jwt-customizer.js +55 -1
  81. package/lib/types/logto-config/oidc-provider.d.ts +6 -6
  82. package/lib/types/mfa.d.ts +10 -10
  83. package/lib/types/secrets.d.ts +436 -0
  84. package/lib/types/secrets.js +73 -0
  85. package/lib/types/sign-in-experience.d.ts +21 -3
  86. package/lib/types/sign-in-experience.js +3 -1
  87. package/lib/types/sso-connector.d.ts +28 -2
  88. package/lib/types/sso-connector.js +3 -0
  89. package/lib/types/tenant.d.ts +1 -0
  90. package/lib/types/tenant.js +1 -0
  91. package/lib/types/user-logto-config.d.ts +45 -0
  92. package/lib/types/user-logto-config.js +18 -0
  93. package/lib/types/user.d.ts +626 -0
  94. package/lib/types/user.js +17 -1
  95. package/lib/types/verification-records/backup-code-verification.d.ts +47 -0
  96. package/lib/types/verification-records/backup-code-verification.js +12 -0
  97. package/lib/types/verification-records/code-verification.d.ts +89 -0
  98. package/lib/types/verification-records/code-verification.js +22 -0
  99. package/lib/types/verification-records/enterprise-sso-verification.d.ts +213 -0
  100. package/lib/types/verification-records/enterprise-sso-verification.js +15 -0
  101. package/lib/types/verification-records/index.d.ts +16 -0
  102. package/lib/types/verification-records/index.js +16 -0
  103. package/lib/types/verification-records/new-password-identity-verification.d.ts +85 -0
  104. package/lib/types/verification-records/new-password-identity-verification.js +20 -0
  105. package/lib/types/verification-records/one-time-token-verification.d.ts +55 -0
  106. package/lib/types/verification-records/one-time-token-verification.js +13 -0
  107. package/lib/types/verification-records/password-verification.d.ts +40 -0
  108. package/lib/types/verification-records/password-verification.js +9 -0
  109. package/lib/types/verification-records/social-verification.d.ts +270 -0
  110. package/lib/types/verification-records/social-verification.js +16 -0
  111. package/lib/types/verification-records/totp-verification.d.ts +47 -0
  112. package/lib/types/verification-records/totp-verification.js +12 -0
  113. package/lib/types/verification-records/web-authn-verification.d.ts +124 -0
  114. package/lib/types/verification-records/web-authn-verification.js +17 -0
  115. package/package.json +6 -6
  116. package/tables/account_centers.sql +2 -1
  117. package/tables/connectors.sql +4 -0
  118. package/tables/custom_profile_fields.sql +31 -0
  119. package/tables/oidc_model_instances.sql +2 -0
  120. package/tables/oidc_session_extensions.sql +18 -0
  121. package/tables/organization_user_relations.sql +4 -1
  122. package/tables/secret_enterprise_sso_connector_relations.sql +60 -0
  123. package/tables/secret_social_connector_relations.sql +75 -0
  124. package/tables/secrets.sql +26 -0
  125. package/tables/sso_connectors.sql +2 -0
  126. package/tables/user_sso_identities.sql +8 -0
  127. package/tables/users.sql +3 -2
  128. /package/lib/{foundations/jsonb-types/verification-records.d.ts → types/verification-records/verification-type.d.ts} +0 -0
  129. /package/lib/{foundations/jsonb-types/verification-records.js → types/verification-records/verification-type.js} +0 -0
@@ -0,0 +1,2587 @@
1
+ import { z } from 'zod';
2
+ import { CustomProfileFieldType, type UserProfile } from '../foundations/index.js';
3
+ export type BaseProfileField = {
4
+ name: string;
5
+ label?: string;
6
+ description?: string;
7
+ type: CustomProfileFieldType;
8
+ required: boolean;
9
+ };
10
+ export type TextProfileField = BaseProfileField & {
11
+ type: CustomProfileFieldType.Text;
12
+ config?: {
13
+ placeholder?: string;
14
+ minLength?: number;
15
+ maxLength?: number;
16
+ };
17
+ };
18
+ export declare const textProfileFieldGuard: z.ZodObject<{
19
+ name: z.ZodString;
20
+ label: z.ZodString;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ required: z.ZodBoolean;
23
+ } & {
24
+ type: z.ZodLiteral<CustomProfileFieldType.Text>;
25
+ config: z.ZodOptional<z.ZodObject<{
26
+ placeholder: z.ZodOptional<z.ZodString>;
27
+ minLength: z.ZodOptional<z.ZodNumber>;
28
+ maxLength: z.ZodOptional<z.ZodNumber>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ minLength?: number | undefined;
31
+ maxLength?: number | undefined;
32
+ placeholder?: string | undefined;
33
+ }, {
34
+ minLength?: number | undefined;
35
+ maxLength?: number | undefined;
36
+ placeholder?: string | undefined;
37
+ }>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: CustomProfileFieldType.Text;
40
+ name: string;
41
+ label: string;
42
+ required: boolean;
43
+ description?: string | undefined;
44
+ config?: {
45
+ minLength?: number | undefined;
46
+ maxLength?: number | undefined;
47
+ placeholder?: string | undefined;
48
+ } | undefined;
49
+ }, {
50
+ type: CustomProfileFieldType.Text;
51
+ name: string;
52
+ label: string;
53
+ required: boolean;
54
+ description?: string | undefined;
55
+ config?: {
56
+ minLength?: number | undefined;
57
+ maxLength?: number | undefined;
58
+ placeholder?: string | undefined;
59
+ } | undefined;
60
+ }>;
61
+ export type NumberProfileField = BaseProfileField & {
62
+ type: CustomProfileFieldType.Number;
63
+ config?: {
64
+ placeholder?: string;
65
+ minValue?: number;
66
+ maxValue?: number;
67
+ };
68
+ };
69
+ export declare const numberProfileFieldGuard: z.ZodObject<{
70
+ name: z.ZodString;
71
+ label: z.ZodString;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ required: z.ZodBoolean;
74
+ } & {
75
+ type: z.ZodLiteral<CustomProfileFieldType.Number>;
76
+ config: z.ZodOptional<z.ZodObject<{
77
+ placeholder: z.ZodOptional<z.ZodString>;
78
+ minValue: z.ZodOptional<z.ZodNumber>;
79
+ maxValue: z.ZodOptional<z.ZodNumber>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ placeholder?: string | undefined;
82
+ minValue?: number | undefined;
83
+ maxValue?: number | undefined;
84
+ }, {
85
+ placeholder?: string | undefined;
86
+ minValue?: number | undefined;
87
+ maxValue?: number | undefined;
88
+ }>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: CustomProfileFieldType.Number;
91
+ name: string;
92
+ label: string;
93
+ required: boolean;
94
+ description?: string | undefined;
95
+ config?: {
96
+ placeholder?: string | undefined;
97
+ minValue?: number | undefined;
98
+ maxValue?: number | undefined;
99
+ } | undefined;
100
+ }, {
101
+ type: CustomProfileFieldType.Number;
102
+ name: string;
103
+ label: string;
104
+ required: boolean;
105
+ description?: string | undefined;
106
+ config?: {
107
+ placeholder?: string | undefined;
108
+ minValue?: number | undefined;
109
+ maxValue?: number | undefined;
110
+ } | undefined;
111
+ }>;
112
+ export type DateProfileField = BaseProfileField & {
113
+ type: CustomProfileFieldType.Date;
114
+ config?: {
115
+ placeholder?: string;
116
+ format: string;
117
+ customFormat?: string;
118
+ };
119
+ };
120
+ export declare const dateProfileFieldGuard: z.ZodObject<{
121
+ name: z.ZodString;
122
+ label: z.ZodString;
123
+ description: z.ZodOptional<z.ZodString>;
124
+ required: z.ZodBoolean;
125
+ } & {
126
+ type: z.ZodLiteral<CustomProfileFieldType.Date>;
127
+ config: z.ZodOptional<z.ZodObject<{
128
+ placeholder: z.ZodOptional<z.ZodString>;
129
+ format: z.ZodString;
130
+ customFormat: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ format: string;
133
+ placeholder?: string | undefined;
134
+ customFormat?: string | undefined;
135
+ }, {
136
+ format: string;
137
+ placeholder?: string | undefined;
138
+ customFormat?: string | undefined;
139
+ }>>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: CustomProfileFieldType.Date;
142
+ name: string;
143
+ label: string;
144
+ required: boolean;
145
+ description?: string | undefined;
146
+ config?: {
147
+ format: string;
148
+ placeholder?: string | undefined;
149
+ customFormat?: string | undefined;
150
+ } | undefined;
151
+ }, {
152
+ type: CustomProfileFieldType.Date;
153
+ name: string;
154
+ label: string;
155
+ required: boolean;
156
+ description?: string | undefined;
157
+ config?: {
158
+ format: string;
159
+ placeholder?: string | undefined;
160
+ customFormat?: string | undefined;
161
+ } | undefined;
162
+ }>;
163
+ export type CheckboxProfileField = BaseProfileField & {
164
+ type: CustomProfileFieldType.Checkbox;
165
+ config: {
166
+ options: Array<{
167
+ label: string;
168
+ value: string;
169
+ }>;
170
+ };
171
+ };
172
+ export declare const checkboxProfileFieldGuard: z.ZodObject<{
173
+ name: z.ZodString;
174
+ label: z.ZodString;
175
+ description: z.ZodOptional<z.ZodString>;
176
+ required: z.ZodBoolean;
177
+ } & {
178
+ type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
179
+ config: z.ZodObject<{
180
+ options: z.ZodArray<z.ZodObject<{
181
+ label: z.ZodString;
182
+ value: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ value: string;
185
+ label: string;
186
+ }, {
187
+ value: string;
188
+ label: string;
189
+ }>, "many">;
190
+ }, "strip", z.ZodTypeAny, {
191
+ options: {
192
+ value: string;
193
+ label: string;
194
+ }[];
195
+ }, {
196
+ options: {
197
+ value: string;
198
+ label: string;
199
+ }[];
200
+ }>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ type: CustomProfileFieldType.Checkbox;
203
+ name: string;
204
+ label: string;
205
+ required: boolean;
206
+ config: {
207
+ options: {
208
+ value: string;
209
+ label: string;
210
+ }[];
211
+ };
212
+ description?: string | undefined;
213
+ }, {
214
+ type: CustomProfileFieldType.Checkbox;
215
+ name: string;
216
+ label: string;
217
+ required: boolean;
218
+ config: {
219
+ options: {
220
+ value: string;
221
+ label: string;
222
+ }[];
223
+ };
224
+ description?: string | undefined;
225
+ }>;
226
+ export type SelectProfileField = BaseProfileField & {
227
+ type: CustomProfileFieldType.Select;
228
+ config: {
229
+ placeholder?: string;
230
+ options: Array<{
231
+ label: string;
232
+ value: string;
233
+ }>;
234
+ };
235
+ };
236
+ export declare const selectProfileFieldGuard: z.ZodObject<{
237
+ name: z.ZodString;
238
+ label: z.ZodString;
239
+ description: z.ZodOptional<z.ZodString>;
240
+ required: z.ZodBoolean;
241
+ } & {
242
+ type: z.ZodLiteral<CustomProfileFieldType.Select>;
243
+ config: z.ZodObject<{
244
+ placeholder: z.ZodOptional<z.ZodString>;
245
+ options: z.ZodArray<z.ZodObject<{
246
+ label: z.ZodString;
247
+ value: z.ZodString;
248
+ }, "strip", z.ZodTypeAny, {
249
+ value: string;
250
+ label: string;
251
+ }, {
252
+ value: string;
253
+ label: string;
254
+ }>, "many">;
255
+ }, "strip", z.ZodTypeAny, {
256
+ options: {
257
+ value: string;
258
+ label: string;
259
+ }[];
260
+ placeholder?: string | undefined;
261
+ }, {
262
+ options: {
263
+ value: string;
264
+ label: string;
265
+ }[];
266
+ placeholder?: string | undefined;
267
+ }>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: CustomProfileFieldType.Select;
270
+ name: string;
271
+ label: string;
272
+ required: boolean;
273
+ config: {
274
+ options: {
275
+ value: string;
276
+ label: string;
277
+ }[];
278
+ placeholder?: string | undefined;
279
+ };
280
+ description?: string | undefined;
281
+ }, {
282
+ type: CustomProfileFieldType.Select;
283
+ name: string;
284
+ label: string;
285
+ required: boolean;
286
+ config: {
287
+ options: {
288
+ value: string;
289
+ label: string;
290
+ }[];
291
+ placeholder?: string | undefined;
292
+ };
293
+ description?: string | undefined;
294
+ }>;
295
+ export type UrlProfileField = BaseProfileField & {
296
+ type: CustomProfileFieldType.Url;
297
+ config?: {
298
+ placeholder?: string;
299
+ };
300
+ };
301
+ export declare const urlProfileFieldGuard: z.ZodObject<{
302
+ name: z.ZodString;
303
+ label: z.ZodString;
304
+ description: z.ZodOptional<z.ZodString>;
305
+ required: z.ZodBoolean;
306
+ } & {
307
+ type: z.ZodLiteral<CustomProfileFieldType.Url>;
308
+ config: z.ZodOptional<z.ZodObject<{
309
+ placeholder: z.ZodOptional<z.ZodString>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ placeholder?: string | undefined;
312
+ }, {
313
+ placeholder?: string | undefined;
314
+ }>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ type: CustomProfileFieldType.Url;
317
+ name: string;
318
+ label: string;
319
+ required: boolean;
320
+ description?: string | undefined;
321
+ config?: {
322
+ placeholder?: string | undefined;
323
+ } | undefined;
324
+ }, {
325
+ type: CustomProfileFieldType.Url;
326
+ name: string;
327
+ label: string;
328
+ required: boolean;
329
+ description?: string | undefined;
330
+ config?: {
331
+ placeholder?: string | undefined;
332
+ } | undefined;
333
+ }>;
334
+ export type RegexProfileField = BaseProfileField & {
335
+ type: CustomProfileFieldType.Regex;
336
+ config: {
337
+ placeholder?: string;
338
+ format: string;
339
+ };
340
+ };
341
+ export declare const regexProfileFieldGuard: z.ZodObject<{
342
+ name: z.ZodString;
343
+ label: z.ZodString;
344
+ description: z.ZodOptional<z.ZodString>;
345
+ required: z.ZodBoolean;
346
+ } & {
347
+ type: z.ZodLiteral<CustomProfileFieldType.Regex>;
348
+ config: z.ZodObject<{
349
+ placeholder: z.ZodOptional<z.ZodString>;
350
+ format: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ format: string;
353
+ placeholder?: string | undefined;
354
+ }, {
355
+ format: string;
356
+ placeholder?: string | undefined;
357
+ }>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ type: CustomProfileFieldType.Regex;
360
+ name: string;
361
+ label: string;
362
+ required: boolean;
363
+ config: {
364
+ format: string;
365
+ placeholder?: string | undefined;
366
+ };
367
+ description?: string | undefined;
368
+ }, {
369
+ type: CustomProfileFieldType.Regex;
370
+ name: string;
371
+ label: string;
372
+ required: boolean;
373
+ config: {
374
+ format: string;
375
+ placeholder?: string | undefined;
376
+ };
377
+ description?: string | undefined;
378
+ }>;
379
+ export type AddressProfileField = BaseProfileField & {
380
+ type: CustomProfileFieldType.Address;
381
+ config: {
382
+ parts: Array<{
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
+ };
402
+ }>;
403
+ };
404
+ };
405
+ export declare const addressProfileFieldGuard: z.ZodObject<{
406
+ name: z.ZodString;
407
+ label: z.ZodString;
408
+ description: z.ZodOptional<z.ZodString>;
409
+ required: z.ZodBoolean;
410
+ } & {
411
+ type: z.ZodLiteral<CustomProfileFieldType.Address>;
412
+ config: z.ZodObject<{
413
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: CustomProfileFieldType;
467
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
485
+ }, {
486
+ type: CustomProfileFieldType;
487
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
505
+ }>, "many">;
506
+ }, "strip", z.ZodTypeAny, {
507
+ parts: {
508
+ type: CustomProfileFieldType;
509
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
527
+ }[];
528
+ }, {
529
+ parts: {
530
+ type: CustomProfileFieldType;
531
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
549
+ }[];
550
+ }>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ type: CustomProfileFieldType.Address;
553
+ name: string;
554
+ label: string;
555
+ required: boolean;
556
+ config: {
557
+ parts: {
558
+ type: CustomProfileFieldType;
559
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
577
+ }[];
578
+ };
579
+ description?: string | undefined;
580
+ }, {
581
+ type: CustomProfileFieldType.Address;
582
+ name: string;
583
+ label: string;
584
+ required: boolean;
585
+ config: {
586
+ parts: {
587
+ type: CustomProfileFieldType;
588
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
606
+ }[];
607
+ };
608
+ description?: string | undefined;
609
+ }>;
610
+ export type FullnameProfileField = BaseProfileField & {
611
+ type: CustomProfileFieldType.Fullname;
612
+ config: {
613
+ parts: Array<{
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
+ };
633
+ }>;
634
+ };
635
+ };
636
+ export declare const fullnameKeys: ["familyName", "givenName", "middleName"];
637
+ export declare const fullnameProfileFieldGuard: z.ZodObject<{
638
+ name: z.ZodString;
639
+ label: z.ZodString;
640
+ description: z.ZodOptional<z.ZodString>;
641
+ required: z.ZodBoolean;
642
+ } & {
643
+ type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
644
+ config: z.ZodObject<{
645
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: CustomProfileFieldType;
699
+ name: "familyName" | "givenName" | "middleName";
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;
717
+ }, {
718
+ type: CustomProfileFieldType;
719
+ name: "familyName" | "givenName" | "middleName";
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;
737
+ }>, "many">;
738
+ }, "strip", z.ZodTypeAny, {
739
+ parts: {
740
+ type: CustomProfileFieldType;
741
+ name: "familyName" | "givenName" | "middleName";
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;
759
+ }[];
760
+ }, {
761
+ parts: {
762
+ type: CustomProfileFieldType;
763
+ name: "familyName" | "givenName" | "middleName";
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;
781
+ }[];
782
+ }>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ type: CustomProfileFieldType.Fullname;
785
+ name: string;
786
+ label: string;
787
+ required: boolean;
788
+ config: {
789
+ parts: {
790
+ type: CustomProfileFieldType;
791
+ name: "familyName" | "givenName" | "middleName";
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;
809
+ }[];
810
+ };
811
+ description?: string | undefined;
812
+ }, {
813
+ type: CustomProfileFieldType.Fullname;
814
+ name: string;
815
+ label: string;
816
+ required: boolean;
817
+ config: {
818
+ parts: {
819
+ type: CustomProfileFieldType;
820
+ name: "familyName" | "givenName" | "middleName";
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;
838
+ }[];
839
+ };
840
+ description?: string | undefined;
841
+ }>;
842
+ export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
843
+ name: z.ZodString;
844
+ label: z.ZodString;
845
+ description: z.ZodOptional<z.ZodString>;
846
+ required: z.ZodBoolean;
847
+ } & {
848
+ type: z.ZodLiteral<CustomProfileFieldType.Text>;
849
+ config: z.ZodOptional<z.ZodObject<{
850
+ placeholder: z.ZodOptional<z.ZodString>;
851
+ minLength: z.ZodOptional<z.ZodNumber>;
852
+ maxLength: z.ZodOptional<z.ZodNumber>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ minLength?: number | undefined;
855
+ maxLength?: number | undefined;
856
+ placeholder?: string | undefined;
857
+ }, {
858
+ minLength?: number | undefined;
859
+ maxLength?: number | undefined;
860
+ placeholder?: string | undefined;
861
+ }>>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ type: CustomProfileFieldType.Text;
864
+ name: string;
865
+ label: string;
866
+ required: boolean;
867
+ description?: string | undefined;
868
+ config?: {
869
+ minLength?: number | undefined;
870
+ maxLength?: number | undefined;
871
+ placeholder?: string | undefined;
872
+ } | undefined;
873
+ }, {
874
+ type: CustomProfileFieldType.Text;
875
+ name: string;
876
+ label: string;
877
+ required: boolean;
878
+ description?: string | undefined;
879
+ config?: {
880
+ minLength?: number | undefined;
881
+ maxLength?: number | undefined;
882
+ placeholder?: string | undefined;
883
+ } | undefined;
884
+ }>, z.ZodObject<{
885
+ name: z.ZodString;
886
+ label: z.ZodString;
887
+ description: z.ZodOptional<z.ZodString>;
888
+ required: z.ZodBoolean;
889
+ } & {
890
+ type: z.ZodLiteral<CustomProfileFieldType.Number>;
891
+ config: z.ZodOptional<z.ZodObject<{
892
+ placeholder: z.ZodOptional<z.ZodString>;
893
+ minValue: z.ZodOptional<z.ZodNumber>;
894
+ maxValue: z.ZodOptional<z.ZodNumber>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ placeholder?: string | undefined;
897
+ minValue?: number | undefined;
898
+ maxValue?: number | undefined;
899
+ }, {
900
+ placeholder?: string | undefined;
901
+ minValue?: number | undefined;
902
+ maxValue?: number | undefined;
903
+ }>>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ type: CustomProfileFieldType.Number;
906
+ name: string;
907
+ label: string;
908
+ required: boolean;
909
+ description?: string | undefined;
910
+ config?: {
911
+ placeholder?: string | undefined;
912
+ minValue?: number | undefined;
913
+ maxValue?: number | undefined;
914
+ } | undefined;
915
+ }, {
916
+ type: CustomProfileFieldType.Number;
917
+ name: string;
918
+ label: string;
919
+ required: boolean;
920
+ description?: string | undefined;
921
+ config?: {
922
+ placeholder?: string | undefined;
923
+ minValue?: number | undefined;
924
+ maxValue?: number | undefined;
925
+ } | undefined;
926
+ }>, z.ZodObject<{
927
+ name: z.ZodString;
928
+ label: z.ZodString;
929
+ description: z.ZodOptional<z.ZodString>;
930
+ required: z.ZodBoolean;
931
+ } & {
932
+ type: z.ZodLiteral<CustomProfileFieldType.Date>;
933
+ config: z.ZodOptional<z.ZodObject<{
934
+ placeholder: z.ZodOptional<z.ZodString>;
935
+ format: z.ZodString;
936
+ customFormat: z.ZodOptional<z.ZodString>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ format: string;
939
+ placeholder?: string | undefined;
940
+ customFormat?: string | undefined;
941
+ }, {
942
+ format: string;
943
+ placeholder?: string | undefined;
944
+ customFormat?: string | undefined;
945
+ }>>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ type: CustomProfileFieldType.Date;
948
+ name: string;
949
+ label: string;
950
+ required: boolean;
951
+ description?: string | undefined;
952
+ config?: {
953
+ format: string;
954
+ placeholder?: string | undefined;
955
+ customFormat?: string | undefined;
956
+ } | undefined;
957
+ }, {
958
+ type: CustomProfileFieldType.Date;
959
+ name: string;
960
+ label: string;
961
+ required: boolean;
962
+ description?: string | undefined;
963
+ config?: {
964
+ format: string;
965
+ placeholder?: string | undefined;
966
+ customFormat?: string | undefined;
967
+ } | undefined;
968
+ }>, z.ZodObject<{
969
+ name: z.ZodString;
970
+ label: z.ZodString;
971
+ description: z.ZodOptional<z.ZodString>;
972
+ required: z.ZodBoolean;
973
+ } & {
974
+ type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
975
+ config: z.ZodObject<{
976
+ options: z.ZodArray<z.ZodObject<{
977
+ label: z.ZodString;
978
+ value: z.ZodString;
979
+ }, "strip", z.ZodTypeAny, {
980
+ value: string;
981
+ label: string;
982
+ }, {
983
+ value: string;
984
+ label: string;
985
+ }>, "many">;
986
+ }, "strip", z.ZodTypeAny, {
987
+ options: {
988
+ value: string;
989
+ label: string;
990
+ }[];
991
+ }, {
992
+ options: {
993
+ value: string;
994
+ label: string;
995
+ }[];
996
+ }>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ type: CustomProfileFieldType.Checkbox;
999
+ name: string;
1000
+ label: string;
1001
+ required: boolean;
1002
+ config: {
1003
+ options: {
1004
+ value: string;
1005
+ label: string;
1006
+ }[];
1007
+ };
1008
+ description?: string | undefined;
1009
+ }, {
1010
+ type: CustomProfileFieldType.Checkbox;
1011
+ name: string;
1012
+ label: string;
1013
+ required: boolean;
1014
+ config: {
1015
+ options: {
1016
+ value: string;
1017
+ label: string;
1018
+ }[];
1019
+ };
1020
+ description?: string | undefined;
1021
+ }>, z.ZodObject<{
1022
+ name: z.ZodString;
1023
+ label: z.ZodString;
1024
+ description: z.ZodOptional<z.ZodString>;
1025
+ required: z.ZodBoolean;
1026
+ } & {
1027
+ type: z.ZodLiteral<CustomProfileFieldType.Select>;
1028
+ config: z.ZodObject<{
1029
+ placeholder: z.ZodOptional<z.ZodString>;
1030
+ options: z.ZodArray<z.ZodObject<{
1031
+ label: z.ZodString;
1032
+ value: z.ZodString;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ value: string;
1035
+ label: string;
1036
+ }, {
1037
+ value: string;
1038
+ label: string;
1039
+ }>, "many">;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ options: {
1042
+ value: string;
1043
+ label: string;
1044
+ }[];
1045
+ placeholder?: string | undefined;
1046
+ }, {
1047
+ options: {
1048
+ value: string;
1049
+ label: string;
1050
+ }[];
1051
+ placeholder?: string | undefined;
1052
+ }>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ type: CustomProfileFieldType.Select;
1055
+ name: string;
1056
+ label: string;
1057
+ required: boolean;
1058
+ config: {
1059
+ options: {
1060
+ value: string;
1061
+ label: string;
1062
+ }[];
1063
+ placeholder?: string | undefined;
1064
+ };
1065
+ description?: string | undefined;
1066
+ }, {
1067
+ type: CustomProfileFieldType.Select;
1068
+ name: string;
1069
+ label: string;
1070
+ required: boolean;
1071
+ config: {
1072
+ options: {
1073
+ value: string;
1074
+ label: string;
1075
+ }[];
1076
+ placeholder?: string | undefined;
1077
+ };
1078
+ description?: string | undefined;
1079
+ }>, z.ZodObject<{
1080
+ name: z.ZodString;
1081
+ label: z.ZodString;
1082
+ description: z.ZodOptional<z.ZodString>;
1083
+ required: z.ZodBoolean;
1084
+ } & {
1085
+ type: z.ZodLiteral<CustomProfileFieldType.Url>;
1086
+ config: z.ZodOptional<z.ZodObject<{
1087
+ placeholder: z.ZodOptional<z.ZodString>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ placeholder?: string | undefined;
1090
+ }, {
1091
+ placeholder?: string | undefined;
1092
+ }>>;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ type: CustomProfileFieldType.Url;
1095
+ name: string;
1096
+ label: string;
1097
+ required: boolean;
1098
+ description?: string | undefined;
1099
+ config?: {
1100
+ placeholder?: string | undefined;
1101
+ } | undefined;
1102
+ }, {
1103
+ type: CustomProfileFieldType.Url;
1104
+ name: string;
1105
+ label: string;
1106
+ required: boolean;
1107
+ description?: string | undefined;
1108
+ config?: {
1109
+ placeholder?: string | undefined;
1110
+ } | undefined;
1111
+ }>, z.ZodObject<{
1112
+ name: z.ZodString;
1113
+ label: z.ZodString;
1114
+ description: z.ZodOptional<z.ZodString>;
1115
+ required: z.ZodBoolean;
1116
+ } & {
1117
+ type: z.ZodLiteral<CustomProfileFieldType.Regex>;
1118
+ config: z.ZodObject<{
1119
+ placeholder: z.ZodOptional<z.ZodString>;
1120
+ format: z.ZodString;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ format: string;
1123
+ placeholder?: string | undefined;
1124
+ }, {
1125
+ format: string;
1126
+ placeholder?: string | undefined;
1127
+ }>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ type: CustomProfileFieldType.Regex;
1130
+ name: string;
1131
+ label: string;
1132
+ required: boolean;
1133
+ config: {
1134
+ format: string;
1135
+ placeholder?: string | undefined;
1136
+ };
1137
+ description?: string | undefined;
1138
+ }, {
1139
+ type: CustomProfileFieldType.Regex;
1140
+ name: string;
1141
+ label: string;
1142
+ required: boolean;
1143
+ config: {
1144
+ format: string;
1145
+ placeholder?: string | undefined;
1146
+ };
1147
+ description?: string | undefined;
1148
+ }>, z.ZodObject<{
1149
+ name: z.ZodString;
1150
+ label: z.ZodString;
1151
+ description: z.ZodOptional<z.ZodString>;
1152
+ required: z.ZodBoolean;
1153
+ } & {
1154
+ type: z.ZodLiteral<CustomProfileFieldType.Address>;
1155
+ config: z.ZodObject<{
1156
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ type: CustomProfileFieldType;
1210
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1228
+ }, {
1229
+ type: CustomProfileFieldType;
1230
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1248
+ }>, "many">;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ parts: {
1251
+ type: CustomProfileFieldType;
1252
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1270
+ }[];
1271
+ }, {
1272
+ parts: {
1273
+ type: CustomProfileFieldType;
1274
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1292
+ }[];
1293
+ }>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: CustomProfileFieldType.Address;
1296
+ name: string;
1297
+ label: string;
1298
+ required: boolean;
1299
+ config: {
1300
+ parts: {
1301
+ type: CustomProfileFieldType;
1302
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1320
+ }[];
1321
+ };
1322
+ description?: string | undefined;
1323
+ }, {
1324
+ type: CustomProfileFieldType.Address;
1325
+ name: string;
1326
+ label: string;
1327
+ required: boolean;
1328
+ config: {
1329
+ parts: {
1330
+ type: CustomProfileFieldType;
1331
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
1349
+ }[];
1350
+ };
1351
+ description?: string | undefined;
1352
+ }>, z.ZodObject<{
1353
+ name: z.ZodString;
1354
+ label: z.ZodString;
1355
+ description: z.ZodOptional<z.ZodString>;
1356
+ required: z.ZodBoolean;
1357
+ } & {
1358
+ type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
1359
+ config: z.ZodObject<{
1360
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: CustomProfileFieldType;
1414
+ name: "familyName" | "givenName" | "middleName";
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;
1432
+ }, {
1433
+ type: CustomProfileFieldType;
1434
+ name: "familyName" | "givenName" | "middleName";
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;
1452
+ }>, "many">;
1453
+ }, "strip", z.ZodTypeAny, {
1454
+ parts: {
1455
+ type: CustomProfileFieldType;
1456
+ name: "familyName" | "givenName" | "middleName";
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;
1474
+ }[];
1475
+ }, {
1476
+ parts: {
1477
+ type: CustomProfileFieldType;
1478
+ name: "familyName" | "givenName" | "middleName";
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;
1496
+ }[];
1497
+ }>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ type: CustomProfileFieldType.Fullname;
1500
+ name: string;
1501
+ label: string;
1502
+ required: boolean;
1503
+ config: {
1504
+ parts: {
1505
+ type: CustomProfileFieldType;
1506
+ name: "familyName" | "givenName" | "middleName";
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;
1524
+ }[];
1525
+ };
1526
+ description?: string | undefined;
1527
+ }, {
1528
+ type: CustomProfileFieldType.Fullname;
1529
+ name: string;
1530
+ label: string;
1531
+ required: boolean;
1532
+ config: {
1533
+ parts: {
1534
+ type: CustomProfileFieldType;
1535
+ name: "familyName" | "givenName" | "middleName";
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;
1553
+ }[];
1554
+ };
1555
+ description?: string | undefined;
1556
+ }>]>;
1557
+ export type CustomProfileFieldUnion = TextProfileField | NumberProfileField | DateProfileField | CheckboxProfileField | SelectProfileField | UrlProfileField | RegexProfileField | AddressProfileField | FullnameProfileField;
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"];
1697
+ export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
1698
+ name: z.ZodString;
1699
+ label: z.ZodString;
1700
+ description: z.ZodOptional<z.ZodString>;
1701
+ required: z.ZodBoolean;
1702
+ } & {
1703
+ type: z.ZodLiteral<CustomProfileFieldType.Text>;
1704
+ config: z.ZodOptional<z.ZodObject<{
1705
+ placeholder: z.ZodOptional<z.ZodString>;
1706
+ minLength: z.ZodOptional<z.ZodNumber>;
1707
+ maxLength: z.ZodOptional<z.ZodNumber>;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ minLength?: number | undefined;
1710
+ maxLength?: number | undefined;
1711
+ placeholder?: string | undefined;
1712
+ }, {
1713
+ minLength?: number | undefined;
1714
+ maxLength?: number | undefined;
1715
+ placeholder?: string | undefined;
1716
+ }>>;
1717
+ }, "name">, "strip", z.ZodTypeAny, {
1718
+ type: CustomProfileFieldType.Text;
1719
+ label: string;
1720
+ required: boolean;
1721
+ description?: string | undefined;
1722
+ config?: {
1723
+ minLength?: number | undefined;
1724
+ maxLength?: number | undefined;
1725
+ placeholder?: string | undefined;
1726
+ } | undefined;
1727
+ }, {
1728
+ type: CustomProfileFieldType.Text;
1729
+ label: string;
1730
+ required: boolean;
1731
+ description?: string | undefined;
1732
+ config?: {
1733
+ minLength?: number | undefined;
1734
+ maxLength?: number | undefined;
1735
+ placeholder?: string | undefined;
1736
+ } | undefined;
1737
+ }>, z.ZodObject<Omit<{
1738
+ name: z.ZodString;
1739
+ label: z.ZodString;
1740
+ description: z.ZodOptional<z.ZodString>;
1741
+ required: z.ZodBoolean;
1742
+ } & {
1743
+ type: z.ZodLiteral<CustomProfileFieldType.Number>;
1744
+ config: z.ZodOptional<z.ZodObject<{
1745
+ placeholder: z.ZodOptional<z.ZodString>;
1746
+ minValue: z.ZodOptional<z.ZodNumber>;
1747
+ maxValue: z.ZodOptional<z.ZodNumber>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ placeholder?: string | undefined;
1750
+ minValue?: number | undefined;
1751
+ maxValue?: number | undefined;
1752
+ }, {
1753
+ placeholder?: string | undefined;
1754
+ minValue?: number | undefined;
1755
+ maxValue?: number | undefined;
1756
+ }>>;
1757
+ }, "name">, "strip", z.ZodTypeAny, {
1758
+ type: CustomProfileFieldType.Number;
1759
+ label: string;
1760
+ required: boolean;
1761
+ description?: string | undefined;
1762
+ config?: {
1763
+ placeholder?: string | undefined;
1764
+ minValue?: number | undefined;
1765
+ maxValue?: number | undefined;
1766
+ } | undefined;
1767
+ }, {
1768
+ type: CustomProfileFieldType.Number;
1769
+ label: string;
1770
+ required: boolean;
1771
+ description?: string | undefined;
1772
+ config?: {
1773
+ placeholder?: string | undefined;
1774
+ minValue?: number | undefined;
1775
+ maxValue?: number | undefined;
1776
+ } | undefined;
1777
+ }>, z.ZodObject<Omit<{
1778
+ name: z.ZodString;
1779
+ label: z.ZodString;
1780
+ description: z.ZodOptional<z.ZodString>;
1781
+ required: z.ZodBoolean;
1782
+ } & {
1783
+ type: z.ZodLiteral<CustomProfileFieldType.Date>;
1784
+ config: z.ZodOptional<z.ZodObject<{
1785
+ placeholder: z.ZodOptional<z.ZodString>;
1786
+ format: z.ZodString;
1787
+ customFormat: z.ZodOptional<z.ZodString>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ format: string;
1790
+ placeholder?: string | undefined;
1791
+ customFormat?: string | undefined;
1792
+ }, {
1793
+ format: string;
1794
+ placeholder?: string | undefined;
1795
+ customFormat?: string | undefined;
1796
+ }>>;
1797
+ }, "name">, "strip", z.ZodTypeAny, {
1798
+ type: CustomProfileFieldType.Date;
1799
+ label: string;
1800
+ required: boolean;
1801
+ description?: string | undefined;
1802
+ config?: {
1803
+ format: string;
1804
+ placeholder?: string | undefined;
1805
+ customFormat?: string | undefined;
1806
+ } | undefined;
1807
+ }, {
1808
+ type: CustomProfileFieldType.Date;
1809
+ label: string;
1810
+ required: boolean;
1811
+ description?: string | undefined;
1812
+ config?: {
1813
+ format: string;
1814
+ placeholder?: string | undefined;
1815
+ customFormat?: string | undefined;
1816
+ } | undefined;
1817
+ }>, z.ZodObject<Omit<{
1818
+ name: z.ZodString;
1819
+ label: z.ZodString;
1820
+ description: z.ZodOptional<z.ZodString>;
1821
+ required: z.ZodBoolean;
1822
+ } & {
1823
+ type: z.ZodLiteral<CustomProfileFieldType.Checkbox>;
1824
+ config: z.ZodObject<{
1825
+ options: z.ZodArray<z.ZodObject<{
1826
+ label: z.ZodString;
1827
+ value: z.ZodString;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ value: string;
1830
+ label: string;
1831
+ }, {
1832
+ value: string;
1833
+ label: string;
1834
+ }>, "many">;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ options: {
1837
+ value: string;
1838
+ label: string;
1839
+ }[];
1840
+ }, {
1841
+ options: {
1842
+ value: string;
1843
+ label: string;
1844
+ }[];
1845
+ }>;
1846
+ }, "name">, "strip", z.ZodTypeAny, {
1847
+ type: CustomProfileFieldType.Checkbox;
1848
+ label: string;
1849
+ required: boolean;
1850
+ config: {
1851
+ options: {
1852
+ value: string;
1853
+ label: string;
1854
+ }[];
1855
+ };
1856
+ description?: string | undefined;
1857
+ }, {
1858
+ type: CustomProfileFieldType.Checkbox;
1859
+ label: string;
1860
+ required: boolean;
1861
+ config: {
1862
+ options: {
1863
+ value: string;
1864
+ label: string;
1865
+ }[];
1866
+ };
1867
+ description?: string | undefined;
1868
+ }>, z.ZodObject<Omit<{
1869
+ name: z.ZodString;
1870
+ label: z.ZodString;
1871
+ description: z.ZodOptional<z.ZodString>;
1872
+ required: z.ZodBoolean;
1873
+ } & {
1874
+ type: z.ZodLiteral<CustomProfileFieldType.Select>;
1875
+ config: z.ZodObject<{
1876
+ placeholder: z.ZodOptional<z.ZodString>;
1877
+ options: z.ZodArray<z.ZodObject<{
1878
+ label: z.ZodString;
1879
+ value: z.ZodString;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ value: string;
1882
+ label: string;
1883
+ }, {
1884
+ value: string;
1885
+ label: string;
1886
+ }>, "many">;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ options: {
1889
+ value: string;
1890
+ label: string;
1891
+ }[];
1892
+ placeholder?: string | undefined;
1893
+ }, {
1894
+ options: {
1895
+ value: string;
1896
+ label: string;
1897
+ }[];
1898
+ placeholder?: string | undefined;
1899
+ }>;
1900
+ }, "name">, "strip", z.ZodTypeAny, {
1901
+ type: CustomProfileFieldType.Select;
1902
+ label: string;
1903
+ required: boolean;
1904
+ config: {
1905
+ options: {
1906
+ value: string;
1907
+ label: string;
1908
+ }[];
1909
+ placeholder?: string | undefined;
1910
+ };
1911
+ description?: string | undefined;
1912
+ }, {
1913
+ type: CustomProfileFieldType.Select;
1914
+ label: string;
1915
+ required: boolean;
1916
+ config: {
1917
+ options: {
1918
+ value: string;
1919
+ label: string;
1920
+ }[];
1921
+ placeholder?: string | undefined;
1922
+ };
1923
+ description?: string | undefined;
1924
+ }>, z.ZodObject<Omit<{
1925
+ name: z.ZodString;
1926
+ label: z.ZodString;
1927
+ description: z.ZodOptional<z.ZodString>;
1928
+ required: z.ZodBoolean;
1929
+ } & {
1930
+ type: z.ZodLiteral<CustomProfileFieldType.Url>;
1931
+ config: z.ZodOptional<z.ZodObject<{
1932
+ placeholder: z.ZodOptional<z.ZodString>;
1933
+ }, "strip", z.ZodTypeAny, {
1934
+ placeholder?: string | undefined;
1935
+ }, {
1936
+ placeholder?: string | undefined;
1937
+ }>>;
1938
+ }, "name">, "strip", z.ZodTypeAny, {
1939
+ type: CustomProfileFieldType.Url;
1940
+ label: string;
1941
+ required: boolean;
1942
+ description?: string | undefined;
1943
+ config?: {
1944
+ placeholder?: string | undefined;
1945
+ } | undefined;
1946
+ }, {
1947
+ type: CustomProfileFieldType.Url;
1948
+ label: string;
1949
+ required: boolean;
1950
+ description?: string | undefined;
1951
+ config?: {
1952
+ placeholder?: string | undefined;
1953
+ } | undefined;
1954
+ }>, z.ZodObject<Omit<{
1955
+ name: z.ZodString;
1956
+ label: z.ZodString;
1957
+ description: z.ZodOptional<z.ZodString>;
1958
+ required: z.ZodBoolean;
1959
+ } & {
1960
+ type: z.ZodLiteral<CustomProfileFieldType.Regex>;
1961
+ config: z.ZodObject<{
1962
+ placeholder: z.ZodOptional<z.ZodString>;
1963
+ format: z.ZodString;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ format: string;
1966
+ placeholder?: string | undefined;
1967
+ }, {
1968
+ format: string;
1969
+ placeholder?: string | undefined;
1970
+ }>;
1971
+ }, "name">, "strip", z.ZodTypeAny, {
1972
+ type: CustomProfileFieldType.Regex;
1973
+ label: string;
1974
+ required: boolean;
1975
+ config: {
1976
+ format: string;
1977
+ placeholder?: string | undefined;
1978
+ };
1979
+ description?: string | undefined;
1980
+ }, {
1981
+ type: CustomProfileFieldType.Regex;
1982
+ label: string;
1983
+ required: boolean;
1984
+ config: {
1985
+ format: string;
1986
+ placeholder?: string | undefined;
1987
+ };
1988
+ description?: string | undefined;
1989
+ }>, z.ZodObject<Omit<{
1990
+ name: z.ZodString;
1991
+ label: z.ZodString;
1992
+ description: z.ZodOptional<z.ZodString>;
1993
+ required: z.ZodBoolean;
1994
+ } & {
1995
+ type: z.ZodLiteral<CustomProfileFieldType.Address>;
1996
+ config: z.ZodObject<{
1997
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ type: CustomProfileFieldType;
2051
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2069
+ }, {
2070
+ type: CustomProfileFieldType;
2071
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2089
+ }>, "many">;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ parts: {
2092
+ type: CustomProfileFieldType;
2093
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2111
+ }[];
2112
+ }, {
2113
+ parts: {
2114
+ type: CustomProfileFieldType;
2115
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2133
+ }[];
2134
+ }>;
2135
+ }, "name">, "strip", z.ZodTypeAny, {
2136
+ type: CustomProfileFieldType.Address;
2137
+ label: string;
2138
+ required: boolean;
2139
+ config: {
2140
+ parts: {
2141
+ type: CustomProfileFieldType;
2142
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2160
+ }[];
2161
+ };
2162
+ description?: string | undefined;
2163
+ }, {
2164
+ type: CustomProfileFieldType.Address;
2165
+ label: string;
2166
+ required: boolean;
2167
+ config: {
2168
+ parts: {
2169
+ type: CustomProfileFieldType;
2170
+ name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country";
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;
2188
+ }[];
2189
+ };
2190
+ description?: string | undefined;
2191
+ }>, z.ZodObject<Omit<{
2192
+ name: z.ZodString;
2193
+ label: z.ZodString;
2194
+ description: z.ZodOptional<z.ZodString>;
2195
+ required: z.ZodBoolean;
2196
+ } & {
2197
+ type: z.ZodLiteral<CustomProfileFieldType.Fullname>;
2198
+ config: z.ZodObject<{
2199
+ parts: z.ZodArray<z.ZodObject<Omit<{
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"]>;
2251
+ }, "strip", z.ZodTypeAny, {
2252
+ type: CustomProfileFieldType;
2253
+ name: "familyName" | "givenName" | "middleName";
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;
2271
+ }, {
2272
+ type: CustomProfileFieldType;
2273
+ name: "familyName" | "givenName" | "middleName";
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;
2291
+ }>, "many">;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ parts: {
2294
+ type: CustomProfileFieldType;
2295
+ name: "familyName" | "givenName" | "middleName";
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;
2313
+ }[];
2314
+ }, {
2315
+ parts: {
2316
+ type: CustomProfileFieldType;
2317
+ name: "familyName" | "givenName" | "middleName";
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;
2335
+ }[];
2336
+ }>;
2337
+ }, "name">, "strip", z.ZodTypeAny, {
2338
+ type: CustomProfileFieldType.Fullname;
2339
+ label: string;
2340
+ required: boolean;
2341
+ config: {
2342
+ parts: {
2343
+ type: CustomProfileFieldType;
2344
+ name: "familyName" | "givenName" | "middleName";
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;
2362
+ }[];
2363
+ };
2364
+ description?: string | undefined;
2365
+ }, {
2366
+ type: CustomProfileFieldType.Fullname;
2367
+ label: string;
2368
+ required: boolean;
2369
+ config: {
2370
+ parts: {
2371
+ type: CustomProfileFieldType;
2372
+ name: "familyName" | "givenName" | "middleName";
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;
2390
+ }[];
2391
+ };
2392
+ description?: string | undefined;
2393
+ }>]>;
2394
+ export type UpdateCustomProfileFieldData = z.infer<typeof updateCustomProfileFieldDataGuard>;
2395
+ export declare const updateCustomProfileFieldSieOrderGuard: z.ZodObject<{
2396
+ name: z.ZodString;
2397
+ sieOrder: z.ZodNumber;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ name: string;
2400
+ sieOrder: number;
2401
+ }, {
2402
+ name: string;
2403
+ sieOrder: number;
2404
+ }>;
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
+ }