@kya-os/consent 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/constants/auth-modes.d.ts +54 -0
  2. package/dist/constants/auth-modes.d.ts.map +1 -0
  3. package/dist/constants/auth-modes.js +128 -0
  4. package/dist/constants/auth-modes.js.map +1 -0
  5. package/dist/constants/colors.d.ts +38 -0
  6. package/dist/constants/colors.d.ts.map +1 -0
  7. package/dist/constants/colors.js +40 -0
  8. package/dist/constants/colors.js.map +1 -0
  9. package/dist/constants/defaults.d.ts +112 -0
  10. package/dist/constants/defaults.d.ts.map +1 -0
  11. package/dist/constants/defaults.js +146 -0
  12. package/dist/constants/defaults.js.map +1 -0
  13. package/dist/constants/index.d.ts +11 -0
  14. package/dist/constants/index.d.ts.map +1 -0
  15. package/dist/constants/index.js +37 -0
  16. package/dist/constants/index.js.map +1 -0
  17. package/dist/index.d.ts +16 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +39 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/resolution/index.d.ts +12 -0
  22. package/dist/resolution/index.d.ts.map +1 -0
  23. package/dist/resolution/index.js +28 -0
  24. package/dist/resolution/index.js.map +1 -0
  25. package/dist/resolution/resolve-branding.d.ts +70 -0
  26. package/dist/resolution/resolve-branding.d.ts.map +1 -0
  27. package/dist/resolution/resolve-branding.js +159 -0
  28. package/dist/resolution/resolve-branding.js.map +1 -0
  29. package/dist/resolution/resolve-config.d.ts +81 -0
  30. package/dist/resolution/resolve-config.d.ts.map +1 -0
  31. package/dist/resolution/resolve-config.js +254 -0
  32. package/dist/resolution/resolve-config.js.map +1 -0
  33. package/dist/resolution/resolve-copy.d.ts +53 -0
  34. package/dist/resolution/resolve-copy.d.ts.map +1 -0
  35. package/dist/resolution/resolve-copy.js +136 -0
  36. package/dist/resolution/resolve-copy.js.map +1 -0
  37. package/dist/schemas/api.schemas.d.ts +984 -0
  38. package/dist/schemas/api.schemas.d.ts.map +1 -0
  39. package/dist/schemas/api.schemas.js +153 -0
  40. package/dist/schemas/api.schemas.js.map +1 -0
  41. package/dist/schemas/branding.schemas.d.ts +100 -0
  42. package/dist/schemas/branding.schemas.d.ts.map +1 -0
  43. package/dist/schemas/branding.schemas.js +57 -0
  44. package/dist/schemas/branding.schemas.js.map +1 -0
  45. package/dist/schemas/config.schemas.d.ts +1182 -0
  46. package/dist/schemas/config.schemas.d.ts.map +1 -0
  47. package/dist/schemas/config.schemas.js +147 -0
  48. package/dist/schemas/config.schemas.js.map +1 -0
  49. package/dist/schemas/index.d.ts +13 -0
  50. package/dist/schemas/index.d.ts.map +1 -0
  51. package/dist/schemas/index.js +29 -0
  52. package/dist/schemas/index.js.map +1 -0
  53. package/dist/schemas/modes.schemas.d.ts +406 -0
  54. package/dist/schemas/modes.schemas.d.ts.map +1 -0
  55. package/dist/schemas/modes.schemas.js +107 -0
  56. package/dist/schemas/modes.schemas.js.map +1 -0
  57. package/dist/security/escape.d.ts +114 -0
  58. package/dist/security/escape.d.ts.map +1 -0
  59. package/dist/security/escape.js +202 -0
  60. package/dist/security/escape.js.map +1 -0
  61. package/dist/security/index.d.ts +10 -0
  62. package/dist/security/index.d.ts.map +1 -0
  63. package/dist/security/index.js +26 -0
  64. package/dist/security/index.js.map +1 -0
  65. package/dist/security/validators.d.ts +98 -0
  66. package/dist/security/validators.d.ts.map +1 -0
  67. package/dist/security/validators.js +210 -0
  68. package/dist/security/validators.js.map +1 -0
  69. package/dist/styles/css-variables.d.ts +78 -0
  70. package/dist/styles/css-variables.d.ts.map +1 -0
  71. package/dist/styles/css-variables.js +129 -0
  72. package/dist/styles/css-variables.js.map +1 -0
  73. package/dist/styles/index.d.ts +12 -0
  74. package/dist/styles/index.d.ts.map +1 -0
  75. package/dist/styles/index.js +28 -0
  76. package/dist/styles/index.js.map +1 -0
  77. package/dist/styles/stylesheet.d.ts +57 -0
  78. package/dist/styles/stylesheet.d.ts.map +1 -0
  79. package/dist/styles/stylesheet.js +204 -0
  80. package/dist/styles/stylesheet.js.map +1 -0
  81. package/dist/styles/tokens.d.ts +141 -0
  82. package/dist/styles/tokens.d.ts.map +1 -0
  83. package/dist/styles/tokens.js +183 -0
  84. package/dist/styles/tokens.js.map +1 -0
  85. package/dist/templates/base/base-template.d.ts +81 -0
  86. package/dist/templates/base/base-template.d.ts.map +1 -0
  87. package/dist/templates/base/base-template.js +282 -0
  88. package/dist/templates/base/base-template.js.map +1 -0
  89. package/dist/templates/base/components.d.ts +120 -0
  90. package/dist/templates/base/components.d.ts.map +1 -0
  91. package/dist/templates/base/components.js +295 -0
  92. package/dist/templates/base/components.js.map +1 -0
  93. package/dist/templates/base/index.d.ts +8 -0
  94. package/dist/templates/base/index.d.ts.map +1 -0
  95. package/dist/templates/base/index.js +26 -0
  96. package/dist/templates/base/index.js.map +1 -0
  97. package/dist/templates/index.d.ts +18 -0
  98. package/dist/templates/index.d.ts.map +1 -0
  99. package/dist/templates/index.js +34 -0
  100. package/dist/templates/index.js.map +1 -0
  101. package/dist/templates/modes/consent-only.template.d.ts +36 -0
  102. package/dist/templates/modes/consent-only.template.d.ts.map +1 -0
  103. package/dist/templates/modes/consent-only.template.js +74 -0
  104. package/dist/templates/modes/consent-only.template.js.map +1 -0
  105. package/dist/templates/modes/credentials.template.d.ts +65 -0
  106. package/dist/templates/modes/credentials.template.d.ts.map +1 -0
  107. package/dist/templates/modes/credentials.template.js +414 -0
  108. package/dist/templates/modes/credentials.template.js.map +1 -0
  109. package/dist/templates/modes/index.d.ts +14 -0
  110. package/dist/templates/modes/index.d.ts.map +1 -0
  111. package/dist/templates/modes/index.js +24 -0
  112. package/dist/templates/modes/index.js.map +1 -0
  113. package/dist/templates/modes/magic-link.template.d.ts +33 -0
  114. package/dist/templates/modes/magic-link.template.d.ts.map +1 -0
  115. package/dist/templates/modes/magic-link.template.js +196 -0
  116. package/dist/templates/modes/magic-link.template.js.map +1 -0
  117. package/dist/templates/modes/oauth.template.d.ts +40 -0
  118. package/dist/templates/modes/oauth.template.d.ts.map +1 -0
  119. package/dist/templates/modes/oauth.template.js +153 -0
  120. package/dist/templates/modes/oauth.template.js.map +1 -0
  121. package/dist/templates/modes/otp.template.d.ts +35 -0
  122. package/dist/templates/modes/otp.template.d.ts.map +1 -0
  123. package/dist/templates/modes/otp.template.js +316 -0
  124. package/dist/templates/modes/otp.template.js.map +1 -0
  125. package/dist/templates/modes/success.template.d.ts +41 -0
  126. package/dist/templates/modes/success.template.d.ts.map +1 -0
  127. package/dist/templates/modes/success.template.js +140 -0
  128. package/dist/templates/modes/success.template.js.map +1 -0
  129. package/dist/templates/registry.d.ts +62 -0
  130. package/dist/templates/registry.d.ts.map +1 -0
  131. package/dist/templates/registry.js +135 -0
  132. package/dist/templates/registry.js.map +1 -0
  133. package/dist/types/api.types.d.ts +134 -0
  134. package/dist/types/api.types.d.ts.map +1 -0
  135. package/dist/types/api.types.js +10 -0
  136. package/dist/types/api.types.js.map +1 -0
  137. package/dist/types/branding.types.d.ts +53 -0
  138. package/dist/types/branding.types.d.ts.map +1 -0
  139. package/dist/types/branding.types.js +10 -0
  140. package/dist/types/branding.types.js.map +1 -0
  141. package/dist/types/config.types.d.ts +201 -0
  142. package/dist/types/config.types.d.ts.map +1 -0
  143. package/dist/types/config.types.js +10 -0
  144. package/dist/types/config.types.js.map +1 -0
  145. package/dist/types/copy.types.d.ts +109 -0
  146. package/dist/types/copy.types.d.ts.map +1 -0
  147. package/dist/types/copy.types.js +10 -0
  148. package/dist/types/copy.types.js.map +1 -0
  149. package/dist/types/index.d.ts +15 -0
  150. package/dist/types/index.d.ts.map +1 -0
  151. package/dist/types/index.js +31 -0
  152. package/dist/types/index.js.map +1 -0
  153. package/dist/types/modes.types.d.ts +197 -0
  154. package/dist/types/modes.types.d.ts.map +1 -0
  155. package/dist/types/modes.types.js +35 -0
  156. package/dist/types/modes.types.js.map +1 -0
  157. package/dist/types/page.types.d.ts +120 -0
  158. package/dist/types/page.types.d.ts.map +1 -0
  159. package/dist/types/page.types.js +10 -0
  160. package/dist/types/page.types.js.map +1 -0
  161. package/package.json +83 -0
@@ -0,0 +1,1182 @@
1
+ /**
2
+ * Consent Configuration Schemas
3
+ *
4
+ * Zod validation schemas for consent configuration.
5
+ *
6
+ * @module @kya-os/consent/schemas/config
7
+ */
8
+ import { z } from "zod";
9
+ import { ConsentBrandingSchema } from "./branding.schemas";
10
+ /**
11
+ * Consent UI Schema
12
+ */
13
+ export declare const ConsentUISchema: z.ZodObject<{
14
+ title: z.ZodOptional<z.ZodString>;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ expirationText: z.ZodOptional<z.ZodString>;
17
+ cancelButtonText: z.ZodOptional<z.ZodString>;
18
+ submitButtonText: z.ZodOptional<z.ZodString>;
19
+ permissionsHeader: z.ZodOptional<z.ZodString>;
20
+ autoClose: z.ZodOptional<z.ZodBoolean>;
21
+ popupEnabled: z.ZodOptional<z.ZodBoolean>;
22
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ title?: string | undefined;
25
+ description?: string | undefined;
26
+ expirationText?: string | undefined;
27
+ cancelButtonText?: string | undefined;
28
+ submitButtonText?: string | undefined;
29
+ permissionsHeader?: string | undefined;
30
+ autoClose?: boolean | undefined;
31
+ popupEnabled?: boolean | undefined;
32
+ theme?: "light" | "dark" | "auto" | undefined;
33
+ }, {
34
+ title?: string | undefined;
35
+ description?: string | undefined;
36
+ expirationText?: string | undefined;
37
+ cancelButtonText?: string | undefined;
38
+ submitButtonText?: string | undefined;
39
+ permissionsHeader?: string | undefined;
40
+ autoClose?: boolean | undefined;
41
+ popupEnabled?: boolean | undefined;
42
+ theme?: "light" | "dark" | "auto" | undefined;
43
+ }>;
44
+ export type ConsentUISchemaType = z.infer<typeof ConsentUISchema>;
45
+ /**
46
+ * Consent Terms Schema
47
+ */
48
+ export declare const ConsentTermsSchema: z.ZodObject<{
49
+ text: z.ZodOptional<z.ZodString>;
50
+ url: z.ZodOptional<z.ZodString>;
51
+ version: z.ZodOptional<z.ZodString>;
52
+ required: z.ZodOptional<z.ZodBoolean>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ text?: string | undefined;
55
+ url?: string | undefined;
56
+ version?: string | undefined;
57
+ required?: boolean | undefined;
58
+ }, {
59
+ text?: string | undefined;
60
+ url?: string | undefined;
61
+ version?: string | undefined;
62
+ required?: boolean | undefined;
63
+ }>;
64
+ export type ConsentTermsSchemaType = z.infer<typeof ConsentTermsSchema>;
65
+ /**
66
+ * Consent Success Schema
67
+ */
68
+ export declare const ConsentSuccessSchema: z.ZodObject<{
69
+ title: z.ZodOptional<z.ZodString>;
70
+ description: z.ZodOptional<z.ZodString>;
71
+ showCredential: z.ZodOptional<z.ZodBoolean>;
72
+ redirectUrl: z.ZodOptional<z.ZodString>;
73
+ redirectDelay: z.ZodOptional<z.ZodNumber>;
74
+ continueButtonText: z.ZodOptional<z.ZodString>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ title?: string | undefined;
77
+ description?: string | undefined;
78
+ showCredential?: boolean | undefined;
79
+ redirectUrl?: string | undefined;
80
+ redirectDelay?: number | undefined;
81
+ continueButtonText?: string | undefined;
82
+ }, {
83
+ title?: string | undefined;
84
+ description?: string | undefined;
85
+ showCredential?: boolean | undefined;
86
+ redirectUrl?: string | undefined;
87
+ redirectDelay?: number | undefined;
88
+ continueButtonText?: string | undefined;
89
+ }>;
90
+ export type ConsentSuccessSchemaType = z.infer<typeof ConsentSuccessSchema>;
91
+ /**
92
+ * Custom Field Option Schema
93
+ */
94
+ export declare const ConsentCustomFieldOptionSchema: z.ZodObject<{
95
+ value: z.ZodString;
96
+ label: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ value: string;
99
+ label: string;
100
+ }, {
101
+ value: string;
102
+ label: string;
103
+ }>;
104
+ /**
105
+ * Custom Field Schema
106
+ */
107
+ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
108
+ name: z.ZodString;
109
+ label: z.ZodString;
110
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
111
+ required: z.ZodBoolean;
112
+ placeholder: z.ZodOptional<z.ZodString>;
113
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ value: z.ZodString;
115
+ label: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ value: string;
118
+ label: string;
119
+ }, {
120
+ value: string;
121
+ label: string;
122
+ }>, "many">>;
123
+ pattern: z.ZodOptional<z.ZodString>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
126
+ required: boolean;
127
+ label: string;
128
+ name: string;
129
+ options?: {
130
+ value: string;
131
+ label: string;
132
+ }[] | undefined;
133
+ placeholder?: string | undefined;
134
+ pattern?: string | undefined;
135
+ }, {
136
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
137
+ required: boolean;
138
+ label: string;
139
+ name: string;
140
+ options?: {
141
+ value: string;
142
+ label: string;
143
+ }[] | undefined;
144
+ placeholder?: string | undefined;
145
+ pattern?: string | undefined;
146
+ }>, {
147
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
148
+ required: boolean;
149
+ label: string;
150
+ name: string;
151
+ options?: {
152
+ value: string;
153
+ label: string;
154
+ }[] | undefined;
155
+ placeholder?: string | undefined;
156
+ pattern?: string | undefined;
157
+ }, {
158
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
159
+ required: boolean;
160
+ label: string;
161
+ name: string;
162
+ options?: {
163
+ value: string;
164
+ label: string;
165
+ }[] | undefined;
166
+ placeholder?: string | undefined;
167
+ pattern?: string | undefined;
168
+ }>;
169
+ export type ConsentCustomFieldSchemaType = z.infer<typeof ConsentCustomFieldSchema>;
170
+ /**
171
+ * Consent Metadata Schema
172
+ */
173
+ export declare const ConsentMetadataSchema: z.ZodObject<{
174
+ version: z.ZodOptional<z.ZodNumber>;
175
+ updatedAt: z.ZodOptional<z.ZodString>;
176
+ cacheVersion: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ version?: number | undefined;
179
+ updatedAt?: string | undefined;
180
+ cacheVersion?: string | undefined;
181
+ }, {
182
+ version?: number | undefined;
183
+ updatedAt?: string | undefined;
184
+ cacheVersion?: string | undefined;
185
+ }>;
186
+ export type ConsentMetadataSchemaType = z.infer<typeof ConsentMetadataSchema>;
187
+ /**
188
+ * Consent Config Schema
189
+ *
190
+ * Complete consent configuration schema.
191
+ */
192
+ export declare const ConsentConfigSchema: z.ZodObject<{
193
+ branding: z.ZodOptional<z.ZodObject<{
194
+ primaryColor: z.ZodOptional<z.ZodString>;
195
+ secondaryColor: z.ZodOptional<z.ZodString>;
196
+ logoUrl: z.ZodOptional<z.ZodString>;
197
+ companyName: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ primaryColor?: string | undefined;
200
+ secondaryColor?: string | undefined;
201
+ logoUrl?: string | undefined;
202
+ companyName?: string | undefined;
203
+ }, {
204
+ primaryColor?: string | undefined;
205
+ secondaryColor?: string | undefined;
206
+ logoUrl?: string | undefined;
207
+ companyName?: string | undefined;
208
+ }>>;
209
+ ui: z.ZodOptional<z.ZodObject<{
210
+ title: z.ZodOptional<z.ZodString>;
211
+ description: z.ZodOptional<z.ZodString>;
212
+ expirationText: z.ZodOptional<z.ZodString>;
213
+ cancelButtonText: z.ZodOptional<z.ZodString>;
214
+ submitButtonText: z.ZodOptional<z.ZodString>;
215
+ permissionsHeader: z.ZodOptional<z.ZodString>;
216
+ autoClose: z.ZodOptional<z.ZodBoolean>;
217
+ popupEnabled: z.ZodOptional<z.ZodBoolean>;
218
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ title?: string | undefined;
221
+ description?: string | undefined;
222
+ expirationText?: string | undefined;
223
+ cancelButtonText?: string | undefined;
224
+ submitButtonText?: string | undefined;
225
+ permissionsHeader?: string | undefined;
226
+ autoClose?: boolean | undefined;
227
+ popupEnabled?: boolean | undefined;
228
+ theme?: "light" | "dark" | "auto" | undefined;
229
+ }, {
230
+ title?: string | undefined;
231
+ description?: string | undefined;
232
+ expirationText?: string | undefined;
233
+ cancelButtonText?: string | undefined;
234
+ submitButtonText?: string | undefined;
235
+ permissionsHeader?: string | undefined;
236
+ autoClose?: boolean | undefined;
237
+ popupEnabled?: boolean | undefined;
238
+ theme?: "light" | "dark" | "auto" | undefined;
239
+ }>>;
240
+ terms: z.ZodOptional<z.ZodObject<{
241
+ text: z.ZodOptional<z.ZodString>;
242
+ url: z.ZodOptional<z.ZodString>;
243
+ version: z.ZodOptional<z.ZodString>;
244
+ required: z.ZodOptional<z.ZodBoolean>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ text?: string | undefined;
247
+ url?: string | undefined;
248
+ version?: string | undefined;
249
+ required?: boolean | undefined;
250
+ }, {
251
+ text?: string | undefined;
252
+ url?: string | undefined;
253
+ version?: string | undefined;
254
+ required?: boolean | undefined;
255
+ }>>;
256
+ success: z.ZodOptional<z.ZodObject<{
257
+ title: z.ZodOptional<z.ZodString>;
258
+ description: z.ZodOptional<z.ZodString>;
259
+ showCredential: z.ZodOptional<z.ZodBoolean>;
260
+ redirectUrl: z.ZodOptional<z.ZodString>;
261
+ redirectDelay: z.ZodOptional<z.ZodNumber>;
262
+ continueButtonText: z.ZodOptional<z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ title?: string | undefined;
265
+ description?: string | undefined;
266
+ showCredential?: boolean | undefined;
267
+ redirectUrl?: string | undefined;
268
+ redirectDelay?: number | undefined;
269
+ continueButtonText?: string | undefined;
270
+ }, {
271
+ title?: string | undefined;
272
+ description?: string | undefined;
273
+ showCredential?: boolean | undefined;
274
+ redirectUrl?: string | undefined;
275
+ redirectDelay?: number | undefined;
276
+ continueButtonText?: string | undefined;
277
+ }>>;
278
+ customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
279
+ name: z.ZodString;
280
+ label: z.ZodString;
281
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
282
+ required: z.ZodBoolean;
283
+ placeholder: z.ZodOptional<z.ZodString>;
284
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
+ value: z.ZodString;
286
+ label: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ value: string;
289
+ label: string;
290
+ }, {
291
+ value: string;
292
+ label: string;
293
+ }>, "many">>;
294
+ pattern: z.ZodOptional<z.ZodString>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
297
+ required: boolean;
298
+ label: string;
299
+ name: string;
300
+ options?: {
301
+ value: string;
302
+ label: string;
303
+ }[] | undefined;
304
+ placeholder?: string | undefined;
305
+ pattern?: string | undefined;
306
+ }, {
307
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
308
+ required: boolean;
309
+ label: string;
310
+ name: string;
311
+ options?: {
312
+ value: string;
313
+ label: string;
314
+ }[] | undefined;
315
+ placeholder?: string | undefined;
316
+ pattern?: string | undefined;
317
+ }>, {
318
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
319
+ required: boolean;
320
+ label: string;
321
+ name: string;
322
+ options?: {
323
+ value: string;
324
+ label: string;
325
+ }[] | undefined;
326
+ placeholder?: string | undefined;
327
+ pattern?: string | undefined;
328
+ }, {
329
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
330
+ required: boolean;
331
+ label: string;
332
+ name: string;
333
+ options?: {
334
+ value: string;
335
+ label: string;
336
+ }[] | undefined;
337
+ placeholder?: string | undefined;
338
+ pattern?: string | undefined;
339
+ }>, "many">>;
340
+ credentials: z.ZodOptional<z.ZodObject<{
341
+ usernameLabel: z.ZodOptional<z.ZodString>;
342
+ usernamePlaceholder: z.ZodOptional<z.ZodString>;
343
+ passwordLabel: z.ZodOptional<z.ZodString>;
344
+ passwordPlaceholder: z.ZodOptional<z.ZodString>;
345
+ showRememberMe: z.ZodOptional<z.ZodBoolean>;
346
+ showForgotPassword: z.ZodOptional<z.ZodBoolean>;
347
+ forgotPasswordUrl: z.ZodOptional<z.ZodString>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ usernameLabel?: string | undefined;
350
+ usernamePlaceholder?: string | undefined;
351
+ passwordLabel?: string | undefined;
352
+ passwordPlaceholder?: string | undefined;
353
+ showRememberMe?: boolean | undefined;
354
+ showForgotPassword?: boolean | undefined;
355
+ forgotPasswordUrl?: string | undefined;
356
+ }, {
357
+ usernameLabel?: string | undefined;
358
+ usernamePlaceholder?: string | undefined;
359
+ passwordLabel?: string | undefined;
360
+ passwordPlaceholder?: string | undefined;
361
+ showRememberMe?: boolean | undefined;
362
+ showForgotPassword?: boolean | undefined;
363
+ forgotPasswordUrl?: string | undefined;
364
+ }>>;
365
+ oauth: z.ZodOptional<z.ZodObject<{
366
+ providerId: z.ZodOptional<z.ZodString>;
367
+ providerName: z.ZodOptional<z.ZodString>;
368
+ buttonText: z.ZodOptional<z.ZodString>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ providerId?: string | undefined;
371
+ providerName?: string | undefined;
372
+ buttonText?: string | undefined;
373
+ }, {
374
+ providerId?: string | undefined;
375
+ providerName?: string | undefined;
376
+ buttonText?: string | undefined;
377
+ }>>;
378
+ magicLink: z.ZodOptional<z.ZodObject<{
379
+ enabled: z.ZodOptional<z.ZodBoolean>;
380
+ emailLabel: z.ZodOptional<z.ZodString>;
381
+ emailPlaceholder: z.ZodOptional<z.ZodString>;
382
+ buttonText: z.ZodOptional<z.ZodString>;
383
+ resendCooldown: z.ZodOptional<z.ZodNumber>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ buttonText?: string | undefined;
386
+ enabled?: boolean | undefined;
387
+ emailLabel?: string | undefined;
388
+ emailPlaceholder?: string | undefined;
389
+ resendCooldown?: number | undefined;
390
+ }, {
391
+ buttonText?: string | undefined;
392
+ enabled?: boolean | undefined;
393
+ emailLabel?: string | undefined;
394
+ emailPlaceholder?: string | undefined;
395
+ resendCooldown?: number | undefined;
396
+ }>>;
397
+ otp: z.ZodOptional<z.ZodObject<{
398
+ enabled: z.ZodOptional<z.ZodBoolean>;
399
+ phoneLabel: z.ZodOptional<z.ZodString>;
400
+ phonePlaceholder: z.ZodOptional<z.ZodString>;
401
+ instructions: z.ZodOptional<z.ZodString>;
402
+ digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
403
+ resendCooldown: z.ZodOptional<z.ZodNumber>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ enabled?: boolean | undefined;
406
+ resendCooldown?: number | undefined;
407
+ phoneLabel?: string | undefined;
408
+ phonePlaceholder?: string | undefined;
409
+ instructions?: string | undefined;
410
+ digits?: 8 | 4 | 6 | undefined;
411
+ }, {
412
+ enabled?: boolean | undefined;
413
+ resendCooldown?: number | undefined;
414
+ phoneLabel?: string | undefined;
415
+ phonePlaceholder?: string | undefined;
416
+ instructions?: string | undefined;
417
+ digits?: 8 | 4 | 6 | undefined;
418
+ }>>;
419
+ qrCode: z.ZodOptional<z.ZodObject<{
420
+ enabled: z.ZodOptional<z.ZodBoolean>;
421
+ instructions: z.ZodOptional<z.ZodString>;
422
+ size: z.ZodOptional<z.ZodNumber>;
423
+ showManualEntry: z.ZodOptional<z.ZodBoolean>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ enabled?: boolean | undefined;
426
+ instructions?: string | undefined;
427
+ size?: number | undefined;
428
+ showManualEntry?: boolean | undefined;
429
+ }, {
430
+ enabled?: boolean | undefined;
431
+ instructions?: string | undefined;
432
+ size?: number | undefined;
433
+ showManualEntry?: boolean | undefined;
434
+ }>>;
435
+ passkey: z.ZodOptional<z.ZodObject<{
436
+ enabled: z.ZodOptional<z.ZodBoolean>;
437
+ instructions: z.ZodOptional<z.ZodString>;
438
+ buttonText: z.ZodOptional<z.ZodString>;
439
+ showCompatibilityInfo: z.ZodOptional<z.ZodBoolean>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ buttonText?: string | undefined;
442
+ enabled?: boolean | undefined;
443
+ instructions?: string | undefined;
444
+ showCompatibilityInfo?: boolean | undefined;
445
+ }, {
446
+ buttonText?: string | undefined;
447
+ enabled?: boolean | undefined;
448
+ instructions?: string | undefined;
449
+ showCompatibilityInfo?: boolean | undefined;
450
+ }>>;
451
+ idv: z.ZodOptional<z.ZodObject<{
452
+ enabled: z.ZodOptional<z.ZodBoolean>;
453
+ providerName: z.ZodOptional<z.ZodString>;
454
+ verificationType: z.ZodOptional<z.ZodEnum<["document", "selfie", "both"]>>;
455
+ instructions: z.ZodOptional<z.ZodString>;
456
+ estimatedTime: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ providerName?: string | undefined;
459
+ enabled?: boolean | undefined;
460
+ instructions?: string | undefined;
461
+ verificationType?: "document" | "selfie" | "both" | undefined;
462
+ estimatedTime?: string | undefined;
463
+ }, {
464
+ providerName?: string | undefined;
465
+ enabled?: boolean | undefined;
466
+ instructions?: string | undefined;
467
+ verificationType?: "document" | "selfie" | "both" | undefined;
468
+ estimatedTime?: string | undefined;
469
+ }>>;
470
+ expirationDays: z.ZodOptional<z.ZodNumber>;
471
+ metadata: z.ZodOptional<z.ZodObject<{
472
+ version: z.ZodOptional<z.ZodNumber>;
473
+ updatedAt: z.ZodOptional<z.ZodString>;
474
+ cacheVersion: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ version?: number | undefined;
477
+ updatedAt?: string | undefined;
478
+ cacheVersion?: string | undefined;
479
+ }, {
480
+ version?: number | undefined;
481
+ updatedAt?: string | undefined;
482
+ cacheVersion?: string | undefined;
483
+ }>>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ credentials?: {
486
+ usernameLabel?: string | undefined;
487
+ usernamePlaceholder?: string | undefined;
488
+ passwordLabel?: string | undefined;
489
+ passwordPlaceholder?: string | undefined;
490
+ showRememberMe?: boolean | undefined;
491
+ showForgotPassword?: boolean | undefined;
492
+ forgotPasswordUrl?: string | undefined;
493
+ } | undefined;
494
+ oauth?: {
495
+ providerId?: string | undefined;
496
+ providerName?: string | undefined;
497
+ buttonText?: string | undefined;
498
+ } | undefined;
499
+ otp?: {
500
+ enabled?: boolean | undefined;
501
+ resendCooldown?: number | undefined;
502
+ phoneLabel?: string | undefined;
503
+ phonePlaceholder?: string | undefined;
504
+ instructions?: string | undefined;
505
+ digits?: 8 | 4 | 6 | undefined;
506
+ } | undefined;
507
+ passkey?: {
508
+ buttonText?: string | undefined;
509
+ enabled?: boolean | undefined;
510
+ instructions?: string | undefined;
511
+ showCompatibilityInfo?: boolean | undefined;
512
+ } | undefined;
513
+ idv?: {
514
+ providerName?: string | undefined;
515
+ enabled?: boolean | undefined;
516
+ instructions?: string | undefined;
517
+ verificationType?: "document" | "selfie" | "both" | undefined;
518
+ estimatedTime?: string | undefined;
519
+ } | undefined;
520
+ magicLink?: {
521
+ buttonText?: string | undefined;
522
+ enabled?: boolean | undefined;
523
+ emailLabel?: string | undefined;
524
+ emailPlaceholder?: string | undefined;
525
+ resendCooldown?: number | undefined;
526
+ } | undefined;
527
+ qrCode?: {
528
+ enabled?: boolean | undefined;
529
+ instructions?: string | undefined;
530
+ size?: number | undefined;
531
+ showManualEntry?: boolean | undefined;
532
+ } | undefined;
533
+ branding?: {
534
+ primaryColor?: string | undefined;
535
+ secondaryColor?: string | undefined;
536
+ logoUrl?: string | undefined;
537
+ companyName?: string | undefined;
538
+ } | undefined;
539
+ ui?: {
540
+ title?: string | undefined;
541
+ description?: string | undefined;
542
+ expirationText?: string | undefined;
543
+ cancelButtonText?: string | undefined;
544
+ submitButtonText?: string | undefined;
545
+ permissionsHeader?: string | undefined;
546
+ autoClose?: boolean | undefined;
547
+ popupEnabled?: boolean | undefined;
548
+ theme?: "light" | "dark" | "auto" | undefined;
549
+ } | undefined;
550
+ terms?: {
551
+ text?: string | undefined;
552
+ url?: string | undefined;
553
+ version?: string | undefined;
554
+ required?: boolean | undefined;
555
+ } | undefined;
556
+ success?: {
557
+ title?: string | undefined;
558
+ description?: string | undefined;
559
+ showCredential?: boolean | undefined;
560
+ redirectUrl?: string | undefined;
561
+ redirectDelay?: number | undefined;
562
+ continueButtonText?: string | undefined;
563
+ } | undefined;
564
+ customFields?: {
565
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
566
+ required: boolean;
567
+ label: string;
568
+ name: string;
569
+ options?: {
570
+ value: string;
571
+ label: string;
572
+ }[] | undefined;
573
+ placeholder?: string | undefined;
574
+ pattern?: string | undefined;
575
+ }[] | undefined;
576
+ expirationDays?: number | undefined;
577
+ metadata?: {
578
+ version?: number | undefined;
579
+ updatedAt?: string | undefined;
580
+ cacheVersion?: string | undefined;
581
+ } | undefined;
582
+ }, {
583
+ credentials?: {
584
+ usernameLabel?: string | undefined;
585
+ usernamePlaceholder?: string | undefined;
586
+ passwordLabel?: string | undefined;
587
+ passwordPlaceholder?: string | undefined;
588
+ showRememberMe?: boolean | undefined;
589
+ showForgotPassword?: boolean | undefined;
590
+ forgotPasswordUrl?: string | undefined;
591
+ } | undefined;
592
+ oauth?: {
593
+ providerId?: string | undefined;
594
+ providerName?: string | undefined;
595
+ buttonText?: string | undefined;
596
+ } | undefined;
597
+ otp?: {
598
+ enabled?: boolean | undefined;
599
+ resendCooldown?: number | undefined;
600
+ phoneLabel?: string | undefined;
601
+ phonePlaceholder?: string | undefined;
602
+ instructions?: string | undefined;
603
+ digits?: 8 | 4 | 6 | undefined;
604
+ } | undefined;
605
+ passkey?: {
606
+ buttonText?: string | undefined;
607
+ enabled?: boolean | undefined;
608
+ instructions?: string | undefined;
609
+ showCompatibilityInfo?: boolean | undefined;
610
+ } | undefined;
611
+ idv?: {
612
+ providerName?: string | undefined;
613
+ enabled?: boolean | undefined;
614
+ instructions?: string | undefined;
615
+ verificationType?: "document" | "selfie" | "both" | undefined;
616
+ estimatedTime?: string | undefined;
617
+ } | undefined;
618
+ magicLink?: {
619
+ buttonText?: string | undefined;
620
+ enabled?: boolean | undefined;
621
+ emailLabel?: string | undefined;
622
+ emailPlaceholder?: string | undefined;
623
+ resendCooldown?: number | undefined;
624
+ } | undefined;
625
+ qrCode?: {
626
+ enabled?: boolean | undefined;
627
+ instructions?: string | undefined;
628
+ size?: number | undefined;
629
+ showManualEntry?: boolean | undefined;
630
+ } | undefined;
631
+ branding?: {
632
+ primaryColor?: string | undefined;
633
+ secondaryColor?: string | undefined;
634
+ logoUrl?: string | undefined;
635
+ companyName?: string | undefined;
636
+ } | undefined;
637
+ ui?: {
638
+ title?: string | undefined;
639
+ description?: string | undefined;
640
+ expirationText?: string | undefined;
641
+ cancelButtonText?: string | undefined;
642
+ submitButtonText?: string | undefined;
643
+ permissionsHeader?: string | undefined;
644
+ autoClose?: boolean | undefined;
645
+ popupEnabled?: boolean | undefined;
646
+ theme?: "light" | "dark" | "auto" | undefined;
647
+ } | undefined;
648
+ terms?: {
649
+ text?: string | undefined;
650
+ url?: string | undefined;
651
+ version?: string | undefined;
652
+ required?: boolean | undefined;
653
+ } | undefined;
654
+ success?: {
655
+ title?: string | undefined;
656
+ description?: string | undefined;
657
+ showCredential?: boolean | undefined;
658
+ redirectUrl?: string | undefined;
659
+ redirectDelay?: number | undefined;
660
+ continueButtonText?: string | undefined;
661
+ } | undefined;
662
+ customFields?: {
663
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
664
+ required: boolean;
665
+ label: string;
666
+ name: string;
667
+ options?: {
668
+ value: string;
669
+ label: string;
670
+ }[] | undefined;
671
+ placeholder?: string | undefined;
672
+ pattern?: string | undefined;
673
+ }[] | undefined;
674
+ expirationDays?: number | undefined;
675
+ metadata?: {
676
+ version?: number | undefined;
677
+ updatedAt?: string | undefined;
678
+ cacheVersion?: string | undefined;
679
+ } | undefined;
680
+ }>;
681
+ export type ConsentConfigSchemaType = z.infer<typeof ConsentConfigSchema>;
682
+ /**
683
+ * Consent Config with Metadata Schema
684
+ */
685
+ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
686
+ branding: z.ZodOptional<z.ZodObject<{
687
+ primaryColor: z.ZodOptional<z.ZodString>;
688
+ secondaryColor: z.ZodOptional<z.ZodString>;
689
+ logoUrl: z.ZodOptional<z.ZodString>;
690
+ companyName: z.ZodOptional<z.ZodString>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ primaryColor?: string | undefined;
693
+ secondaryColor?: string | undefined;
694
+ logoUrl?: string | undefined;
695
+ companyName?: string | undefined;
696
+ }, {
697
+ primaryColor?: string | undefined;
698
+ secondaryColor?: string | undefined;
699
+ logoUrl?: string | undefined;
700
+ companyName?: string | undefined;
701
+ }>>;
702
+ ui: z.ZodOptional<z.ZodObject<{
703
+ title: z.ZodOptional<z.ZodString>;
704
+ description: z.ZodOptional<z.ZodString>;
705
+ expirationText: z.ZodOptional<z.ZodString>;
706
+ cancelButtonText: z.ZodOptional<z.ZodString>;
707
+ submitButtonText: z.ZodOptional<z.ZodString>;
708
+ permissionsHeader: z.ZodOptional<z.ZodString>;
709
+ autoClose: z.ZodOptional<z.ZodBoolean>;
710
+ popupEnabled: z.ZodOptional<z.ZodBoolean>;
711
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ title?: string | undefined;
714
+ description?: string | undefined;
715
+ expirationText?: string | undefined;
716
+ cancelButtonText?: string | undefined;
717
+ submitButtonText?: string | undefined;
718
+ permissionsHeader?: string | undefined;
719
+ autoClose?: boolean | undefined;
720
+ popupEnabled?: boolean | undefined;
721
+ theme?: "light" | "dark" | "auto" | undefined;
722
+ }, {
723
+ title?: string | undefined;
724
+ description?: string | undefined;
725
+ expirationText?: string | undefined;
726
+ cancelButtonText?: string | undefined;
727
+ submitButtonText?: string | undefined;
728
+ permissionsHeader?: string | undefined;
729
+ autoClose?: boolean | undefined;
730
+ popupEnabled?: boolean | undefined;
731
+ theme?: "light" | "dark" | "auto" | undefined;
732
+ }>>;
733
+ terms: z.ZodOptional<z.ZodObject<{
734
+ text: z.ZodOptional<z.ZodString>;
735
+ url: z.ZodOptional<z.ZodString>;
736
+ version: z.ZodOptional<z.ZodString>;
737
+ required: z.ZodOptional<z.ZodBoolean>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ text?: string | undefined;
740
+ url?: string | undefined;
741
+ version?: string | undefined;
742
+ required?: boolean | undefined;
743
+ }, {
744
+ text?: string | undefined;
745
+ url?: string | undefined;
746
+ version?: string | undefined;
747
+ required?: boolean | undefined;
748
+ }>>;
749
+ success: z.ZodOptional<z.ZodObject<{
750
+ title: z.ZodOptional<z.ZodString>;
751
+ description: z.ZodOptional<z.ZodString>;
752
+ showCredential: z.ZodOptional<z.ZodBoolean>;
753
+ redirectUrl: z.ZodOptional<z.ZodString>;
754
+ redirectDelay: z.ZodOptional<z.ZodNumber>;
755
+ continueButtonText: z.ZodOptional<z.ZodString>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ title?: string | undefined;
758
+ description?: string | undefined;
759
+ showCredential?: boolean | undefined;
760
+ redirectUrl?: string | undefined;
761
+ redirectDelay?: number | undefined;
762
+ continueButtonText?: string | undefined;
763
+ }, {
764
+ title?: string | undefined;
765
+ description?: string | undefined;
766
+ showCredential?: boolean | undefined;
767
+ redirectUrl?: string | undefined;
768
+ redirectDelay?: number | undefined;
769
+ continueButtonText?: string | undefined;
770
+ }>>;
771
+ customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
772
+ name: z.ZodString;
773
+ label: z.ZodString;
774
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
775
+ required: z.ZodBoolean;
776
+ placeholder: z.ZodOptional<z.ZodString>;
777
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
778
+ value: z.ZodString;
779
+ label: z.ZodString;
780
+ }, "strip", z.ZodTypeAny, {
781
+ value: string;
782
+ label: string;
783
+ }, {
784
+ value: string;
785
+ label: string;
786
+ }>, "many">>;
787
+ pattern: z.ZodOptional<z.ZodString>;
788
+ }, "strip", z.ZodTypeAny, {
789
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
790
+ required: boolean;
791
+ label: string;
792
+ name: string;
793
+ options?: {
794
+ value: string;
795
+ label: string;
796
+ }[] | undefined;
797
+ placeholder?: string | undefined;
798
+ pattern?: string | undefined;
799
+ }, {
800
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
801
+ required: boolean;
802
+ label: string;
803
+ name: string;
804
+ options?: {
805
+ value: string;
806
+ label: string;
807
+ }[] | undefined;
808
+ placeholder?: string | undefined;
809
+ pattern?: string | undefined;
810
+ }>, {
811
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
812
+ required: boolean;
813
+ label: string;
814
+ name: string;
815
+ options?: {
816
+ value: string;
817
+ label: string;
818
+ }[] | undefined;
819
+ placeholder?: string | undefined;
820
+ pattern?: string | undefined;
821
+ }, {
822
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
823
+ required: boolean;
824
+ label: string;
825
+ name: string;
826
+ options?: {
827
+ value: string;
828
+ label: string;
829
+ }[] | undefined;
830
+ placeholder?: string | undefined;
831
+ pattern?: string | undefined;
832
+ }>, "many">>;
833
+ credentials: z.ZodOptional<z.ZodObject<{
834
+ usernameLabel: z.ZodOptional<z.ZodString>;
835
+ usernamePlaceholder: z.ZodOptional<z.ZodString>;
836
+ passwordLabel: z.ZodOptional<z.ZodString>;
837
+ passwordPlaceholder: z.ZodOptional<z.ZodString>;
838
+ showRememberMe: z.ZodOptional<z.ZodBoolean>;
839
+ showForgotPassword: z.ZodOptional<z.ZodBoolean>;
840
+ forgotPasswordUrl: z.ZodOptional<z.ZodString>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ usernameLabel?: string | undefined;
843
+ usernamePlaceholder?: string | undefined;
844
+ passwordLabel?: string | undefined;
845
+ passwordPlaceholder?: string | undefined;
846
+ showRememberMe?: boolean | undefined;
847
+ showForgotPassword?: boolean | undefined;
848
+ forgotPasswordUrl?: string | undefined;
849
+ }, {
850
+ usernameLabel?: string | undefined;
851
+ usernamePlaceholder?: string | undefined;
852
+ passwordLabel?: string | undefined;
853
+ passwordPlaceholder?: string | undefined;
854
+ showRememberMe?: boolean | undefined;
855
+ showForgotPassword?: boolean | undefined;
856
+ forgotPasswordUrl?: string | undefined;
857
+ }>>;
858
+ oauth: z.ZodOptional<z.ZodObject<{
859
+ providerId: z.ZodOptional<z.ZodString>;
860
+ providerName: z.ZodOptional<z.ZodString>;
861
+ buttonText: z.ZodOptional<z.ZodString>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ providerId?: string | undefined;
864
+ providerName?: string | undefined;
865
+ buttonText?: string | undefined;
866
+ }, {
867
+ providerId?: string | undefined;
868
+ providerName?: string | undefined;
869
+ buttonText?: string | undefined;
870
+ }>>;
871
+ magicLink: z.ZodOptional<z.ZodObject<{
872
+ enabled: z.ZodOptional<z.ZodBoolean>;
873
+ emailLabel: z.ZodOptional<z.ZodString>;
874
+ emailPlaceholder: z.ZodOptional<z.ZodString>;
875
+ buttonText: z.ZodOptional<z.ZodString>;
876
+ resendCooldown: z.ZodOptional<z.ZodNumber>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ buttonText?: string | undefined;
879
+ enabled?: boolean | undefined;
880
+ emailLabel?: string | undefined;
881
+ emailPlaceholder?: string | undefined;
882
+ resendCooldown?: number | undefined;
883
+ }, {
884
+ buttonText?: string | undefined;
885
+ enabled?: boolean | undefined;
886
+ emailLabel?: string | undefined;
887
+ emailPlaceholder?: string | undefined;
888
+ resendCooldown?: number | undefined;
889
+ }>>;
890
+ otp: z.ZodOptional<z.ZodObject<{
891
+ enabled: z.ZodOptional<z.ZodBoolean>;
892
+ phoneLabel: z.ZodOptional<z.ZodString>;
893
+ phonePlaceholder: z.ZodOptional<z.ZodString>;
894
+ instructions: z.ZodOptional<z.ZodString>;
895
+ digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
896
+ resendCooldown: z.ZodOptional<z.ZodNumber>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ enabled?: boolean | undefined;
899
+ resendCooldown?: number | undefined;
900
+ phoneLabel?: string | undefined;
901
+ phonePlaceholder?: string | undefined;
902
+ instructions?: string | undefined;
903
+ digits?: 8 | 4 | 6 | undefined;
904
+ }, {
905
+ enabled?: boolean | undefined;
906
+ resendCooldown?: number | undefined;
907
+ phoneLabel?: string | undefined;
908
+ phonePlaceholder?: string | undefined;
909
+ instructions?: string | undefined;
910
+ digits?: 8 | 4 | 6 | undefined;
911
+ }>>;
912
+ qrCode: z.ZodOptional<z.ZodObject<{
913
+ enabled: z.ZodOptional<z.ZodBoolean>;
914
+ instructions: z.ZodOptional<z.ZodString>;
915
+ size: z.ZodOptional<z.ZodNumber>;
916
+ showManualEntry: z.ZodOptional<z.ZodBoolean>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ enabled?: boolean | undefined;
919
+ instructions?: string | undefined;
920
+ size?: number | undefined;
921
+ showManualEntry?: boolean | undefined;
922
+ }, {
923
+ enabled?: boolean | undefined;
924
+ instructions?: string | undefined;
925
+ size?: number | undefined;
926
+ showManualEntry?: boolean | undefined;
927
+ }>>;
928
+ passkey: z.ZodOptional<z.ZodObject<{
929
+ enabled: z.ZodOptional<z.ZodBoolean>;
930
+ instructions: z.ZodOptional<z.ZodString>;
931
+ buttonText: z.ZodOptional<z.ZodString>;
932
+ showCompatibilityInfo: z.ZodOptional<z.ZodBoolean>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ buttonText?: string | undefined;
935
+ enabled?: boolean | undefined;
936
+ instructions?: string | undefined;
937
+ showCompatibilityInfo?: boolean | undefined;
938
+ }, {
939
+ buttonText?: string | undefined;
940
+ enabled?: boolean | undefined;
941
+ instructions?: string | undefined;
942
+ showCompatibilityInfo?: boolean | undefined;
943
+ }>>;
944
+ idv: z.ZodOptional<z.ZodObject<{
945
+ enabled: z.ZodOptional<z.ZodBoolean>;
946
+ providerName: z.ZodOptional<z.ZodString>;
947
+ verificationType: z.ZodOptional<z.ZodEnum<["document", "selfie", "both"]>>;
948
+ instructions: z.ZodOptional<z.ZodString>;
949
+ estimatedTime: z.ZodOptional<z.ZodString>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ providerName?: string | undefined;
952
+ enabled?: boolean | undefined;
953
+ instructions?: string | undefined;
954
+ verificationType?: "document" | "selfie" | "both" | undefined;
955
+ estimatedTime?: string | undefined;
956
+ }, {
957
+ providerName?: string | undefined;
958
+ enabled?: boolean | undefined;
959
+ instructions?: string | undefined;
960
+ verificationType?: "document" | "selfie" | "both" | undefined;
961
+ estimatedTime?: string | undefined;
962
+ }>>;
963
+ expirationDays: z.ZodOptional<z.ZodNumber>;
964
+ } & {
965
+ metadata: z.ZodOptional<z.ZodObject<{
966
+ version: z.ZodOptional<z.ZodNumber>;
967
+ updatedAt: z.ZodOptional<z.ZodString>;
968
+ cacheVersion: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ version?: number | undefined;
971
+ updatedAt?: string | undefined;
972
+ cacheVersion?: string | undefined;
973
+ }, {
974
+ version?: number | undefined;
975
+ updatedAt?: string | undefined;
976
+ cacheVersion?: string | undefined;
977
+ }>>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ credentials?: {
980
+ usernameLabel?: string | undefined;
981
+ usernamePlaceholder?: string | undefined;
982
+ passwordLabel?: string | undefined;
983
+ passwordPlaceholder?: string | undefined;
984
+ showRememberMe?: boolean | undefined;
985
+ showForgotPassword?: boolean | undefined;
986
+ forgotPasswordUrl?: string | undefined;
987
+ } | undefined;
988
+ oauth?: {
989
+ providerId?: string | undefined;
990
+ providerName?: string | undefined;
991
+ buttonText?: string | undefined;
992
+ } | undefined;
993
+ otp?: {
994
+ enabled?: boolean | undefined;
995
+ resendCooldown?: number | undefined;
996
+ phoneLabel?: string | undefined;
997
+ phonePlaceholder?: string | undefined;
998
+ instructions?: string | undefined;
999
+ digits?: 8 | 4 | 6 | undefined;
1000
+ } | undefined;
1001
+ passkey?: {
1002
+ buttonText?: string | undefined;
1003
+ enabled?: boolean | undefined;
1004
+ instructions?: string | undefined;
1005
+ showCompatibilityInfo?: boolean | undefined;
1006
+ } | undefined;
1007
+ idv?: {
1008
+ providerName?: string | undefined;
1009
+ enabled?: boolean | undefined;
1010
+ instructions?: string | undefined;
1011
+ verificationType?: "document" | "selfie" | "both" | undefined;
1012
+ estimatedTime?: string | undefined;
1013
+ } | undefined;
1014
+ magicLink?: {
1015
+ buttonText?: string | undefined;
1016
+ enabled?: boolean | undefined;
1017
+ emailLabel?: string | undefined;
1018
+ emailPlaceholder?: string | undefined;
1019
+ resendCooldown?: number | undefined;
1020
+ } | undefined;
1021
+ qrCode?: {
1022
+ enabled?: boolean | undefined;
1023
+ instructions?: string | undefined;
1024
+ size?: number | undefined;
1025
+ showManualEntry?: boolean | undefined;
1026
+ } | undefined;
1027
+ branding?: {
1028
+ primaryColor?: string | undefined;
1029
+ secondaryColor?: string | undefined;
1030
+ logoUrl?: string | undefined;
1031
+ companyName?: string | undefined;
1032
+ } | undefined;
1033
+ ui?: {
1034
+ title?: string | undefined;
1035
+ description?: string | undefined;
1036
+ expirationText?: string | undefined;
1037
+ cancelButtonText?: string | undefined;
1038
+ submitButtonText?: string | undefined;
1039
+ permissionsHeader?: string | undefined;
1040
+ autoClose?: boolean | undefined;
1041
+ popupEnabled?: boolean | undefined;
1042
+ theme?: "light" | "dark" | "auto" | undefined;
1043
+ } | undefined;
1044
+ terms?: {
1045
+ text?: string | undefined;
1046
+ url?: string | undefined;
1047
+ version?: string | undefined;
1048
+ required?: boolean | undefined;
1049
+ } | undefined;
1050
+ success?: {
1051
+ title?: string | undefined;
1052
+ description?: string | undefined;
1053
+ showCredential?: boolean | undefined;
1054
+ redirectUrl?: string | undefined;
1055
+ redirectDelay?: number | undefined;
1056
+ continueButtonText?: string | undefined;
1057
+ } | undefined;
1058
+ customFields?: {
1059
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1060
+ required: boolean;
1061
+ label: string;
1062
+ name: string;
1063
+ options?: {
1064
+ value: string;
1065
+ label: string;
1066
+ }[] | undefined;
1067
+ placeholder?: string | undefined;
1068
+ pattern?: string | undefined;
1069
+ }[] | undefined;
1070
+ expirationDays?: number | undefined;
1071
+ metadata?: {
1072
+ version?: number | undefined;
1073
+ updatedAt?: string | undefined;
1074
+ cacheVersion?: string | undefined;
1075
+ } | undefined;
1076
+ }, {
1077
+ credentials?: {
1078
+ usernameLabel?: string | undefined;
1079
+ usernamePlaceholder?: string | undefined;
1080
+ passwordLabel?: string | undefined;
1081
+ passwordPlaceholder?: string | undefined;
1082
+ showRememberMe?: boolean | undefined;
1083
+ showForgotPassword?: boolean | undefined;
1084
+ forgotPasswordUrl?: string | undefined;
1085
+ } | undefined;
1086
+ oauth?: {
1087
+ providerId?: string | undefined;
1088
+ providerName?: string | undefined;
1089
+ buttonText?: string | undefined;
1090
+ } | undefined;
1091
+ otp?: {
1092
+ enabled?: boolean | undefined;
1093
+ resendCooldown?: number | undefined;
1094
+ phoneLabel?: string | undefined;
1095
+ phonePlaceholder?: string | undefined;
1096
+ instructions?: string | undefined;
1097
+ digits?: 8 | 4 | 6 | undefined;
1098
+ } | undefined;
1099
+ passkey?: {
1100
+ buttonText?: string | undefined;
1101
+ enabled?: boolean | undefined;
1102
+ instructions?: string | undefined;
1103
+ showCompatibilityInfo?: boolean | undefined;
1104
+ } | undefined;
1105
+ idv?: {
1106
+ providerName?: string | undefined;
1107
+ enabled?: boolean | undefined;
1108
+ instructions?: string | undefined;
1109
+ verificationType?: "document" | "selfie" | "both" | undefined;
1110
+ estimatedTime?: string | undefined;
1111
+ } | undefined;
1112
+ magicLink?: {
1113
+ buttonText?: string | undefined;
1114
+ enabled?: boolean | undefined;
1115
+ emailLabel?: string | undefined;
1116
+ emailPlaceholder?: string | undefined;
1117
+ resendCooldown?: number | undefined;
1118
+ } | undefined;
1119
+ qrCode?: {
1120
+ enabled?: boolean | undefined;
1121
+ instructions?: string | undefined;
1122
+ size?: number | undefined;
1123
+ showManualEntry?: boolean | undefined;
1124
+ } | undefined;
1125
+ branding?: {
1126
+ primaryColor?: string | undefined;
1127
+ secondaryColor?: string | undefined;
1128
+ logoUrl?: string | undefined;
1129
+ companyName?: string | undefined;
1130
+ } | undefined;
1131
+ ui?: {
1132
+ title?: string | undefined;
1133
+ description?: string | undefined;
1134
+ expirationText?: string | undefined;
1135
+ cancelButtonText?: string | undefined;
1136
+ submitButtonText?: string | undefined;
1137
+ permissionsHeader?: string | undefined;
1138
+ autoClose?: boolean | undefined;
1139
+ popupEnabled?: boolean | undefined;
1140
+ theme?: "light" | "dark" | "auto" | undefined;
1141
+ } | undefined;
1142
+ terms?: {
1143
+ text?: string | undefined;
1144
+ url?: string | undefined;
1145
+ version?: string | undefined;
1146
+ required?: boolean | undefined;
1147
+ } | undefined;
1148
+ success?: {
1149
+ title?: string | undefined;
1150
+ description?: string | undefined;
1151
+ showCredential?: boolean | undefined;
1152
+ redirectUrl?: string | undefined;
1153
+ redirectDelay?: number | undefined;
1154
+ continueButtonText?: string | undefined;
1155
+ } | undefined;
1156
+ customFields?: {
1157
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1158
+ required: boolean;
1159
+ label: string;
1160
+ name: string;
1161
+ options?: {
1162
+ value: string;
1163
+ label: string;
1164
+ }[] | undefined;
1165
+ placeholder?: string | undefined;
1166
+ pattern?: string | undefined;
1167
+ }[] | undefined;
1168
+ expirationDays?: number | undefined;
1169
+ metadata?: {
1170
+ version?: number | undefined;
1171
+ updatedAt?: string | undefined;
1172
+ cacheVersion?: string | undefined;
1173
+ } | undefined;
1174
+ }>;
1175
+ export type ConsentConfigWithMetaSchemaType = z.infer<typeof ConsentConfigWithMetaSchema>;
1176
+ /**
1177
+ * Validation helper functions
1178
+ */
1179
+ export declare function validateConsentConfig(config: unknown): z.SafeParseReturnType<unknown, ConsentConfigSchemaType>;
1180
+ export declare function validateConsentBranding(branding: unknown): z.SafeParseReturnType<unknown, z.infer<typeof ConsentBrandingSchema>>;
1181
+ export declare function validateCustomField(field: unknown): z.SafeParseReturnType<unknown, ConsentCustomFieldSchemaType>;
1182
+ //# sourceMappingURL=config.schemas.d.ts.map