authhero 0.2.3 → 0.2.5

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.
@@ -0,0 +1,2684 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { OpenAPIHono, z } from '@hono/zod-openapi';
4
+
5
+ export interface Totals {
6
+ start: number;
7
+ limit: number;
8
+ length: number;
9
+ }
10
+ declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
11
+ email: z.ZodOptional<z.ZodString>;
12
+ username: z.ZodOptional<z.ZodString>;
13
+ given_name: z.ZodOptional<z.ZodString>;
14
+ family_name: z.ZodOptional<z.ZodString>;
15
+ nickname: z.ZodOptional<z.ZodString>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ picture: z.ZodOptional<z.ZodString>;
18
+ locale: z.ZodOptional<z.ZodString>;
19
+ linked_to: z.ZodOptional<z.ZodString>;
20
+ profileData: z.ZodOptional<z.ZodString>;
21
+ user_id: z.ZodOptional<z.ZodString>;
22
+ }, {
23
+ email_verified: z.ZodDefault<z.ZodBoolean>;
24
+ verify_email: z.ZodOptional<z.ZodBoolean>;
25
+ last_ip: z.ZodOptional<z.ZodString>;
26
+ last_login: z.ZodOptional<z.ZodString>;
27
+ user_id: z.ZodOptional<z.ZodString>;
28
+ provider: z.ZodDefault<z.ZodString>;
29
+ connection: z.ZodDefault<z.ZodString>;
30
+ }>, {
31
+ created_at: z.ZodString;
32
+ updated_at: z.ZodString;
33
+ }>, {
34
+ user_id: z.ZodString;
35
+ email: z.ZodString;
36
+ is_social: z.ZodBoolean;
37
+ login_count: z.ZodNumber;
38
+ identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ connection: z.ZodString;
40
+ user_id: z.ZodString;
41
+ provider: z.ZodString;
42
+ isSocial: z.ZodBoolean;
43
+ access_token: z.ZodOptional<z.ZodString>;
44
+ access_token_secret: z.ZodOptional<z.ZodString>;
45
+ refresh_token: z.ZodOptional<z.ZodString>;
46
+ profileData: z.ZodOptional<z.ZodObject<{
47
+ email: z.ZodOptional<z.ZodString>;
48
+ email_verified: z.ZodOptional<z.ZodBoolean>;
49
+ name: z.ZodOptional<z.ZodString>;
50
+ username: z.ZodOptional<z.ZodString>;
51
+ given_name: z.ZodOptional<z.ZodString>;
52
+ phone_number: z.ZodOptional<z.ZodString>;
53
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
54
+ family_name: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodAny, z.objectOutputType<{
56
+ email: z.ZodOptional<z.ZodString>;
57
+ email_verified: z.ZodOptional<z.ZodBoolean>;
58
+ name: z.ZodOptional<z.ZodString>;
59
+ username: z.ZodOptional<z.ZodString>;
60
+ given_name: z.ZodOptional<z.ZodString>;
61
+ phone_number: z.ZodOptional<z.ZodString>;
62
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
63
+ family_name: z.ZodOptional<z.ZodString>;
64
+ }, z.ZodAny, "strip">, z.objectInputType<{
65
+ email: z.ZodOptional<z.ZodString>;
66
+ email_verified: z.ZodOptional<z.ZodBoolean>;
67
+ name: z.ZodOptional<z.ZodString>;
68
+ username: z.ZodOptional<z.ZodString>;
69
+ given_name: z.ZodOptional<z.ZodString>;
70
+ phone_number: z.ZodOptional<z.ZodString>;
71
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
72
+ family_name: z.ZodOptional<z.ZodString>;
73
+ }, z.ZodAny, "strip">>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ connection: string;
76
+ user_id: string;
77
+ provider: string;
78
+ isSocial: boolean;
79
+ access_token?: string | undefined;
80
+ access_token_secret?: string | undefined;
81
+ refresh_token?: string | undefined;
82
+ profileData?: z.objectOutputType<{
83
+ email: z.ZodOptional<z.ZodString>;
84
+ email_verified: z.ZodOptional<z.ZodBoolean>;
85
+ name: z.ZodOptional<z.ZodString>;
86
+ username: z.ZodOptional<z.ZodString>;
87
+ given_name: z.ZodOptional<z.ZodString>;
88
+ phone_number: z.ZodOptional<z.ZodString>;
89
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
90
+ family_name: z.ZodOptional<z.ZodString>;
91
+ }, z.ZodAny, "strip"> | undefined;
92
+ }, {
93
+ connection: string;
94
+ user_id: string;
95
+ provider: string;
96
+ isSocial: boolean;
97
+ access_token?: string | undefined;
98
+ access_token_secret?: string | undefined;
99
+ refresh_token?: string | undefined;
100
+ profileData?: z.objectInputType<{
101
+ email: z.ZodOptional<z.ZodString>;
102
+ email_verified: z.ZodOptional<z.ZodBoolean>;
103
+ name: z.ZodOptional<z.ZodString>;
104
+ username: z.ZodOptional<z.ZodString>;
105
+ given_name: z.ZodOptional<z.ZodString>;
106
+ phone_number: z.ZodOptional<z.ZodString>;
107
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
108
+ family_name: z.ZodOptional<z.ZodString>;
109
+ }, z.ZodAny, "strip"> | undefined;
110
+ }>, "many">>;
111
+ }>, "strip", z.ZodTypeAny, {
112
+ created_at: string;
113
+ updated_at: string;
114
+ email: string;
115
+ email_verified: boolean;
116
+ connection: string;
117
+ user_id: string;
118
+ provider: string;
119
+ is_social: boolean;
120
+ login_count: number;
121
+ name?: string | undefined;
122
+ username?: string | undefined;
123
+ given_name?: string | undefined;
124
+ family_name?: string | undefined;
125
+ profileData?: string | undefined;
126
+ nickname?: string | undefined;
127
+ picture?: string | undefined;
128
+ locale?: string | undefined;
129
+ linked_to?: string | undefined;
130
+ verify_email?: boolean | undefined;
131
+ last_ip?: string | undefined;
132
+ last_login?: string | undefined;
133
+ identities?: {
134
+ connection: string;
135
+ user_id: string;
136
+ provider: string;
137
+ isSocial: boolean;
138
+ access_token?: string | undefined;
139
+ access_token_secret?: string | undefined;
140
+ refresh_token?: string | undefined;
141
+ profileData?: z.objectOutputType<{
142
+ email: z.ZodOptional<z.ZodString>;
143
+ email_verified: z.ZodOptional<z.ZodBoolean>;
144
+ name: z.ZodOptional<z.ZodString>;
145
+ username: z.ZodOptional<z.ZodString>;
146
+ given_name: z.ZodOptional<z.ZodString>;
147
+ phone_number: z.ZodOptional<z.ZodString>;
148
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
149
+ family_name: z.ZodOptional<z.ZodString>;
150
+ }, z.ZodAny, "strip"> | undefined;
151
+ }[] | undefined;
152
+ }, {
153
+ created_at: string;
154
+ updated_at: string;
155
+ email: string;
156
+ user_id: string;
157
+ is_social: boolean;
158
+ login_count: number;
159
+ email_verified?: boolean | undefined;
160
+ name?: string | undefined;
161
+ username?: string | undefined;
162
+ given_name?: string | undefined;
163
+ family_name?: string | undefined;
164
+ connection?: string | undefined;
165
+ provider?: string | undefined;
166
+ profileData?: string | undefined;
167
+ nickname?: string | undefined;
168
+ picture?: string | undefined;
169
+ locale?: string | undefined;
170
+ linked_to?: string | undefined;
171
+ verify_email?: boolean | undefined;
172
+ last_ip?: string | undefined;
173
+ last_login?: string | undefined;
174
+ identities?: {
175
+ connection: string;
176
+ user_id: string;
177
+ provider: string;
178
+ isSocial: boolean;
179
+ access_token?: string | undefined;
180
+ access_token_secret?: string | undefined;
181
+ refresh_token?: string | undefined;
182
+ profileData?: z.objectInputType<{
183
+ email: z.ZodOptional<z.ZodString>;
184
+ email_verified: z.ZodOptional<z.ZodBoolean>;
185
+ name: z.ZodOptional<z.ZodString>;
186
+ username: z.ZodOptional<z.ZodString>;
187
+ given_name: z.ZodOptional<z.ZodString>;
188
+ phone_number: z.ZodOptional<z.ZodString>;
189
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
190
+ family_name: z.ZodOptional<z.ZodString>;
191
+ }, z.ZodAny, "strip"> | undefined;
192
+ }[] | undefined;
193
+ }>;
194
+ export type User = z.infer<typeof userSchema>;
195
+ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
196
+ created_at: z.ZodEffects<z.ZodString, string, string>;
197
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
198
+ }, {
199
+ id: z.ZodString;
200
+ name: z.ZodString;
201
+ allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
202
+ allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
203
+ allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
204
+ email_validation: z.ZodDefault<z.ZodEnum<[
205
+ "enabled",
206
+ "disabled",
207
+ "enforced"
208
+ ]>>;
209
+ client_secret: z.ZodDefault<z.ZodString>;
210
+ disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
211
+ }>, "strip", z.ZodTypeAny, {
212
+ created_at: string;
213
+ updated_at: string;
214
+ name: string;
215
+ id: string;
216
+ allowed_web_origins: string;
217
+ allowed_callback_urls: string;
218
+ allowed_logout_urls: string;
219
+ email_validation: "enabled" | "disabled" | "enforced";
220
+ client_secret: string;
221
+ disable_sign_ups: boolean;
222
+ }, {
223
+ created_at: string;
224
+ updated_at: string;
225
+ name: string;
226
+ id: string;
227
+ allowed_web_origins?: string | undefined;
228
+ allowed_callback_urls?: string | undefined;
229
+ allowed_logout_urls?: string | undefined;
230
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
231
+ client_secret?: string | undefined;
232
+ disable_sign_ups?: boolean | undefined;
233
+ }>;
234
+ export type Application = z.infer<typeof applicationSchema>;
235
+ declare enum AuthorizationResponseType {
236
+ TOKEN = "token",
237
+ TOKEN_ID_TOKEN = "token id_token",
238
+ CODE = "code"
239
+ }
240
+ declare enum AuthorizationResponseMode {
241
+ QUERY = "query",
242
+ FRAGMENT = "fragment",
243
+ FORM_POST = "form_post",
244
+ WEB_MESSAGE = "web_message"
245
+ }
246
+ declare enum CodeChallengeMethod {
247
+ S265 = "S256",
248
+ plain = "plain"
249
+ }
250
+ declare const brandingSchema: z.ZodObject<{
251
+ colors: z.ZodOptional<z.ZodObject<{
252
+ primary: z.ZodString;
253
+ page_background: z.ZodOptional<z.ZodObject<{
254
+ type: z.ZodOptional<z.ZodString>;
255
+ start: z.ZodOptional<z.ZodString>;
256
+ end: z.ZodOptional<z.ZodString>;
257
+ angle_deg: z.ZodOptional<z.ZodNumber>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ start?: string | undefined;
260
+ type?: string | undefined;
261
+ end?: string | undefined;
262
+ angle_deg?: number | undefined;
263
+ }, {
264
+ start?: string | undefined;
265
+ type?: string | undefined;
266
+ end?: string | undefined;
267
+ angle_deg?: number | undefined;
268
+ }>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ primary: string;
271
+ page_background?: {
272
+ start?: string | undefined;
273
+ type?: string | undefined;
274
+ end?: string | undefined;
275
+ angle_deg?: number | undefined;
276
+ } | undefined;
277
+ }, {
278
+ primary: string;
279
+ page_background?: {
280
+ start?: string | undefined;
281
+ type?: string | undefined;
282
+ end?: string | undefined;
283
+ angle_deg?: number | undefined;
284
+ } | undefined;
285
+ }>>;
286
+ logo_url: z.ZodOptional<z.ZodString>;
287
+ favicon_url: z.ZodOptional<z.ZodString>;
288
+ font: z.ZodOptional<z.ZodObject<{
289
+ url: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ url: string;
292
+ }, {
293
+ url: string;
294
+ }>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ colors?: {
297
+ primary: string;
298
+ page_background?: {
299
+ start?: string | undefined;
300
+ type?: string | undefined;
301
+ end?: string | undefined;
302
+ angle_deg?: number | undefined;
303
+ } | undefined;
304
+ } | undefined;
305
+ logo_url?: string | undefined;
306
+ favicon_url?: string | undefined;
307
+ font?: {
308
+ url: string;
309
+ } | undefined;
310
+ }, {
311
+ colors?: {
312
+ primary: string;
313
+ page_background?: {
314
+ start?: string | undefined;
315
+ type?: string | undefined;
316
+ end?: string | undefined;
317
+ angle_deg?: number | undefined;
318
+ } | undefined;
319
+ } | undefined;
320
+ logo_url?: string | undefined;
321
+ favicon_url?: string | undefined;
322
+ font?: {
323
+ url: string;
324
+ } | undefined;
325
+ }>;
326
+ export type Branding = z.infer<typeof brandingSchema>;
327
+ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
328
+ id: z.ZodString;
329
+ name: z.ZodString;
330
+ domains: z.ZodArray<z.ZodObject<{
331
+ domain: z.ZodString;
332
+ dkim_private_key: z.ZodOptional<z.ZodString>;
333
+ dkim_public_key: z.ZodOptional<z.ZodString>;
334
+ email_api_key: z.ZodOptional<z.ZodString>;
335
+ email_service: z.ZodOptional<z.ZodUnion<[
336
+ z.ZodLiteral<"mailgun">,
337
+ z.ZodLiteral<"mailchannels">
338
+ ]>>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ domain: string;
341
+ dkim_private_key?: string | undefined;
342
+ dkim_public_key?: string | undefined;
343
+ email_api_key?: string | undefined;
344
+ email_service?: "mailgun" | "mailchannels" | undefined;
345
+ }, {
346
+ domain: string;
347
+ dkim_private_key?: string | undefined;
348
+ dkim_public_key?: string | undefined;
349
+ email_api_key?: string | undefined;
350
+ email_service?: "mailgun" | "mailchannels" | undefined;
351
+ }>, "many">;
352
+ allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
353
+ allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
354
+ allowed_web_origins: z.ZodArray<z.ZodString, "many">;
355
+ email_validation: z.ZodUnion<[
356
+ z.ZodLiteral<"enabled">,
357
+ z.ZodLiteral<"disabled">,
358
+ z.ZodLiteral<"enforced">
359
+ ]>;
360
+ tenant_id: z.ZodString;
361
+ client_secret: z.ZodString;
362
+ disable_sign_ups: z.ZodBoolean;
363
+ tenant: z.ZodObject<{
364
+ name: z.ZodString;
365
+ audience: z.ZodOptional<z.ZodString>;
366
+ logo: z.ZodOptional<z.ZodString>;
367
+ primary_color: z.ZodOptional<z.ZodString>;
368
+ secondary_color: z.ZodOptional<z.ZodString>;
369
+ sender_email: z.ZodString;
370
+ sender_name: z.ZodString;
371
+ support_url: z.ZodOptional<z.ZodString>;
372
+ language: z.ZodOptional<z.ZodString>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ name: string;
375
+ sender_email: string;
376
+ sender_name: string;
377
+ audience?: string | undefined;
378
+ logo?: string | undefined;
379
+ primary_color?: string | undefined;
380
+ secondary_color?: string | undefined;
381
+ support_url?: string | undefined;
382
+ language?: string | undefined;
383
+ }, {
384
+ name: string;
385
+ sender_email: string;
386
+ sender_name: string;
387
+ audience?: string | undefined;
388
+ logo?: string | undefined;
389
+ primary_color?: string | undefined;
390
+ secondary_color?: string | undefined;
391
+ support_url?: string | undefined;
392
+ language?: string | undefined;
393
+ }>;
394
+ }, {
395
+ connections: z.ZodArray<z.ZodObject<{
396
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
397
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
398
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
399
+ name: z.ZodOptional<z.ZodString>;
400
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
401
+ client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
402
+ authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
403
+ response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
404
+ response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
405
+ private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
406
+ kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
407
+ team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
408
+ token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
409
+ token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
410
+ userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
411
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ created_at?: string | undefined;
414
+ updated_at?: string | undefined;
415
+ name?: string | undefined;
416
+ id?: string | undefined;
417
+ client_secret?: string | undefined;
418
+ client_id?: string | undefined;
419
+ response_type?: AuthorizationResponseType | undefined;
420
+ response_mode?: AuthorizationResponseMode | undefined;
421
+ scope?: string | undefined;
422
+ authorization_endpoint?: string | undefined;
423
+ private_key?: string | undefined;
424
+ kid?: string | undefined;
425
+ team_id?: string | undefined;
426
+ token_endpoint?: string | undefined;
427
+ token_exchange_basic_auth?: boolean | undefined;
428
+ userinfo_endpoint?: string | undefined;
429
+ }, {
430
+ created_at?: string | undefined;
431
+ updated_at?: string | undefined;
432
+ name?: string | undefined;
433
+ id?: string | undefined;
434
+ client_secret?: string | undefined;
435
+ client_id?: string | undefined;
436
+ response_type?: AuthorizationResponseType | undefined;
437
+ response_mode?: AuthorizationResponseMode | undefined;
438
+ scope?: string | undefined;
439
+ authorization_endpoint?: string | undefined;
440
+ private_key?: string | undefined;
441
+ kid?: string | undefined;
442
+ team_id?: string | undefined;
443
+ token_endpoint?: string | undefined;
444
+ token_exchange_basic_auth?: boolean | undefined;
445
+ userinfo_endpoint?: string | undefined;
446
+ }>, "many">;
447
+ }>, "strip", z.ZodTypeAny, {
448
+ name: string;
449
+ id: string;
450
+ allowed_web_origins: string[];
451
+ allowed_callback_urls: string[];
452
+ allowed_logout_urls: string[];
453
+ email_validation: "enabled" | "disabled" | "enforced";
454
+ client_secret: string;
455
+ disable_sign_ups: boolean;
456
+ domains: {
457
+ domain: string;
458
+ dkim_private_key?: string | undefined;
459
+ dkim_public_key?: string | undefined;
460
+ email_api_key?: string | undefined;
461
+ email_service?: "mailgun" | "mailchannels" | undefined;
462
+ }[];
463
+ tenant_id: string;
464
+ tenant: {
465
+ name: string;
466
+ sender_email: string;
467
+ sender_name: string;
468
+ audience?: string | undefined;
469
+ logo?: string | undefined;
470
+ primary_color?: string | undefined;
471
+ secondary_color?: string | undefined;
472
+ support_url?: string | undefined;
473
+ language?: string | undefined;
474
+ };
475
+ connections: {
476
+ created_at?: string | undefined;
477
+ updated_at?: string | undefined;
478
+ name?: string | undefined;
479
+ id?: string | undefined;
480
+ client_secret?: string | undefined;
481
+ client_id?: string | undefined;
482
+ response_type?: AuthorizationResponseType | undefined;
483
+ response_mode?: AuthorizationResponseMode | undefined;
484
+ scope?: string | undefined;
485
+ authorization_endpoint?: string | undefined;
486
+ private_key?: string | undefined;
487
+ kid?: string | undefined;
488
+ team_id?: string | undefined;
489
+ token_endpoint?: string | undefined;
490
+ token_exchange_basic_auth?: boolean | undefined;
491
+ userinfo_endpoint?: string | undefined;
492
+ }[];
493
+ }, {
494
+ name: string;
495
+ id: string;
496
+ allowed_web_origins: string[];
497
+ allowed_callback_urls: string[];
498
+ allowed_logout_urls: string[];
499
+ email_validation: "enabled" | "disabled" | "enforced";
500
+ client_secret: string;
501
+ disable_sign_ups: boolean;
502
+ domains: {
503
+ domain: string;
504
+ dkim_private_key?: string | undefined;
505
+ dkim_public_key?: string | undefined;
506
+ email_api_key?: string | undefined;
507
+ email_service?: "mailgun" | "mailchannels" | undefined;
508
+ }[];
509
+ tenant_id: string;
510
+ tenant: {
511
+ name: string;
512
+ sender_email: string;
513
+ sender_name: string;
514
+ audience?: string | undefined;
515
+ logo?: string | undefined;
516
+ primary_color?: string | undefined;
517
+ secondary_color?: string | undefined;
518
+ support_url?: string | undefined;
519
+ language?: string | undefined;
520
+ };
521
+ connections: {
522
+ created_at?: string | undefined;
523
+ updated_at?: string | undefined;
524
+ name?: string | undefined;
525
+ id?: string | undefined;
526
+ client_secret?: string | undefined;
527
+ client_id?: string | undefined;
528
+ response_type?: AuthorizationResponseType | undefined;
529
+ response_mode?: AuthorizationResponseMode | undefined;
530
+ scope?: string | undefined;
531
+ authorization_endpoint?: string | undefined;
532
+ private_key?: string | undefined;
533
+ kid?: string | undefined;
534
+ team_id?: string | undefined;
535
+ token_endpoint?: string | undefined;
536
+ token_exchange_basic_auth?: boolean | undefined;
537
+ userinfo_endpoint?: string | undefined;
538
+ }[];
539
+ }>;
540
+ export type PartialClient = z.infer<typeof PartialClientSchema>;
541
+ declare const codeTypeSchema: z.ZodEnum<[
542
+ "password_reset",
543
+ "email_verification",
544
+ "otp",
545
+ "oauth2",
546
+ "oauth2_state",
547
+ "ticket"
548
+ ]>;
549
+ export type CodeType = z.infer<typeof codeTypeSchema>;
550
+ declare const codeSchema: z.ZodObject<{
551
+ created_at: z.ZodString;
552
+ code_id: z.ZodString;
553
+ login_id: z.ZodString;
554
+ code_type: z.ZodEnum<[
555
+ "password_reset",
556
+ "email_verification",
557
+ "otp",
558
+ "oauth2",
559
+ "oauth2_state",
560
+ "ticket"
561
+ ]>;
562
+ expires_at: z.ZodString;
563
+ used_at: z.ZodOptional<z.ZodString>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ created_at: string;
566
+ code_id: string;
567
+ login_id: string;
568
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
569
+ expires_at: string;
570
+ used_at?: string | undefined;
571
+ }, {
572
+ created_at: string;
573
+ code_id: string;
574
+ login_id: string;
575
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
576
+ expires_at: string;
577
+ used_at?: string | undefined;
578
+ }>;
579
+ export type Code = z.infer<typeof codeSchema>;
580
+ declare const connectionInsertSchema: z.ZodObject<{
581
+ id: z.ZodOptional<z.ZodString>;
582
+ name: z.ZodString;
583
+ client_id: z.ZodOptional<z.ZodString>;
584
+ client_secret: z.ZodOptional<z.ZodString>;
585
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
586
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
587
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
588
+ private_key: z.ZodOptional<z.ZodString>;
589
+ kid: z.ZodOptional<z.ZodString>;
590
+ team_id: z.ZodOptional<z.ZodString>;
591
+ token_endpoint: z.ZodOptional<z.ZodString>;
592
+ token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
593
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
594
+ scope: z.ZodOptional<z.ZodString>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ name: string;
597
+ id?: string | undefined;
598
+ client_secret?: string | undefined;
599
+ client_id?: string | undefined;
600
+ response_type?: AuthorizationResponseType | undefined;
601
+ response_mode?: AuthorizationResponseMode | undefined;
602
+ scope?: string | undefined;
603
+ authorization_endpoint?: string | undefined;
604
+ private_key?: string | undefined;
605
+ kid?: string | undefined;
606
+ team_id?: string | undefined;
607
+ token_endpoint?: string | undefined;
608
+ token_exchange_basic_auth?: boolean | undefined;
609
+ userinfo_endpoint?: string | undefined;
610
+ }, {
611
+ name: string;
612
+ id?: string | undefined;
613
+ client_secret?: string | undefined;
614
+ client_id?: string | undefined;
615
+ response_type?: AuthorizationResponseType | undefined;
616
+ response_mode?: AuthorizationResponseMode | undefined;
617
+ scope?: string | undefined;
618
+ authorization_endpoint?: string | undefined;
619
+ private_key?: string | undefined;
620
+ kid?: string | undefined;
621
+ team_id?: string | undefined;
622
+ token_endpoint?: string | undefined;
623
+ token_exchange_basic_auth?: boolean | undefined;
624
+ userinfo_endpoint?: string | undefined;
625
+ }>;
626
+ export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
627
+ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
628
+ id: z.ZodString;
629
+ created_at: z.ZodEffects<z.ZodString, string, string>;
630
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
631
+ }, {
632
+ id: z.ZodOptional<z.ZodString>;
633
+ name: z.ZodString;
634
+ client_id: z.ZodOptional<z.ZodString>;
635
+ client_secret: z.ZodOptional<z.ZodString>;
636
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
637
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
638
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
639
+ private_key: z.ZodOptional<z.ZodString>;
640
+ kid: z.ZodOptional<z.ZodString>;
641
+ team_id: z.ZodOptional<z.ZodString>;
642
+ token_endpoint: z.ZodOptional<z.ZodString>;
643
+ token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
644
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
645
+ scope: z.ZodOptional<z.ZodString>;
646
+ }>, "strip", z.ZodTypeAny, {
647
+ created_at: string;
648
+ updated_at: string;
649
+ name: string;
650
+ id?: string | undefined;
651
+ client_secret?: string | undefined;
652
+ client_id?: string | undefined;
653
+ response_type?: AuthorizationResponseType | undefined;
654
+ response_mode?: AuthorizationResponseMode | undefined;
655
+ scope?: string | undefined;
656
+ authorization_endpoint?: string | undefined;
657
+ private_key?: string | undefined;
658
+ kid?: string | undefined;
659
+ team_id?: string | undefined;
660
+ token_endpoint?: string | undefined;
661
+ token_exchange_basic_auth?: boolean | undefined;
662
+ userinfo_endpoint?: string | undefined;
663
+ }, {
664
+ created_at: string;
665
+ updated_at: string;
666
+ name: string;
667
+ id?: string | undefined;
668
+ client_secret?: string | undefined;
669
+ client_id?: string | undefined;
670
+ response_type?: AuthorizationResponseType | undefined;
671
+ response_mode?: AuthorizationResponseMode | undefined;
672
+ scope?: string | undefined;
673
+ authorization_endpoint?: string | undefined;
674
+ private_key?: string | undefined;
675
+ kid?: string | undefined;
676
+ team_id?: string | undefined;
677
+ token_endpoint?: string | undefined;
678
+ token_exchange_basic_auth?: boolean | undefined;
679
+ userinfo_endpoint?: string | undefined;
680
+ }>;
681
+ export type Connection = z.infer<typeof connectionSchema>;
682
+ declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
683
+ created_at: z.ZodString;
684
+ updated_at: z.ZodString;
685
+ }, {
686
+ id: z.ZodString;
687
+ domain: z.ZodString;
688
+ dkim_private_key: z.ZodOptional<z.ZodString>;
689
+ dkim_public_key: z.ZodOptional<z.ZodString>;
690
+ email_api_key: z.ZodOptional<z.ZodString>;
691
+ email_service: z.ZodEnum<[
692
+ "mailgun",
693
+ "mailchannels"
694
+ ]>;
695
+ }>, "strip", z.ZodTypeAny, {
696
+ created_at: string;
697
+ updated_at: string;
698
+ id: string;
699
+ domain: string;
700
+ email_service: "mailgun" | "mailchannels";
701
+ dkim_private_key?: string | undefined;
702
+ dkim_public_key?: string | undefined;
703
+ email_api_key?: string | undefined;
704
+ }, {
705
+ created_at: string;
706
+ updated_at: string;
707
+ id: string;
708
+ domain: string;
709
+ email_service: "mailgun" | "mailchannels";
710
+ dkim_private_key?: string | undefined;
711
+ dkim_public_key?: string | undefined;
712
+ email_api_key?: string | undefined;
713
+ }>;
714
+ export type Domain = z.infer<typeof domainSchema>;
715
+ declare const hookInsertSchema: z.ZodObject<{
716
+ trigger_id: z.ZodEnum<[
717
+ "post-user-registration",
718
+ "post-user-login"
719
+ ]>;
720
+ enabled: z.ZodDefault<z.ZodBoolean>;
721
+ url: z.ZodString;
722
+ hook_id: z.ZodOptional<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ enabled: boolean;
725
+ url: string;
726
+ trigger_id: "post-user-registration" | "post-user-login";
727
+ hook_id?: string | undefined;
728
+ }, {
729
+ url: string;
730
+ trigger_id: "post-user-registration" | "post-user-login";
731
+ enabled?: boolean | undefined;
732
+ hook_id?: string | undefined;
733
+ }>;
734
+ export type HookInsert = z.infer<typeof hookInsertSchema>;
735
+ declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
736
+ trigger_id: z.ZodEnum<[
737
+ "post-user-registration",
738
+ "post-user-login"
739
+ ]>;
740
+ enabled: z.ZodDefault<z.ZodBoolean>;
741
+ url: z.ZodString;
742
+ hook_id: z.ZodOptional<z.ZodString>;
743
+ }, {
744
+ hook_id: z.ZodString;
745
+ created_at: z.ZodString;
746
+ updated_at: z.ZodString;
747
+ }>, "strip", z.ZodTypeAny, {
748
+ created_at: string;
749
+ updated_at: string;
750
+ enabled: boolean;
751
+ url: string;
752
+ trigger_id: "post-user-registration" | "post-user-login";
753
+ hook_id: string;
754
+ }, {
755
+ created_at: string;
756
+ updated_at: string;
757
+ url: string;
758
+ trigger_id: "post-user-registration" | "post-user-login";
759
+ hook_id: string;
760
+ enabled?: boolean | undefined;
761
+ }>;
762
+ export type Hook = z.infer<typeof hookSchema>;
763
+ declare const loginInsertSchema: z.ZodObject<{
764
+ auth0Client: z.ZodOptional<z.ZodString>;
765
+ authParams: z.ZodObject<{
766
+ client_id: z.ZodString;
767
+ vendor_id: z.ZodOptional<z.ZodString>;
768
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
769
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
770
+ redirect_uri: z.ZodOptional<z.ZodString>;
771
+ audience: z.ZodOptional<z.ZodString>;
772
+ state: z.ZodOptional<z.ZodString>;
773
+ nonce: z.ZodOptional<z.ZodString>;
774
+ scope: z.ZodOptional<z.ZodString>;
775
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
776
+ code_challenge: z.ZodOptional<z.ZodString>;
777
+ username: z.ZodOptional<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ client_id: string;
780
+ username?: string | undefined;
781
+ vendor_id?: string | undefined;
782
+ response_type?: AuthorizationResponseType | undefined;
783
+ response_mode?: AuthorizationResponseMode | undefined;
784
+ redirect_uri?: string | undefined;
785
+ audience?: string | undefined;
786
+ state?: string | undefined;
787
+ nonce?: string | undefined;
788
+ scope?: string | undefined;
789
+ code_challenge_method?: CodeChallengeMethod | undefined;
790
+ code_challenge?: string | undefined;
791
+ }, {
792
+ client_id: string;
793
+ username?: string | undefined;
794
+ vendor_id?: string | undefined;
795
+ response_type?: AuthorizationResponseType | undefined;
796
+ response_mode?: AuthorizationResponseMode | undefined;
797
+ redirect_uri?: string | undefined;
798
+ audience?: string | undefined;
799
+ state?: string | undefined;
800
+ nonce?: string | undefined;
801
+ scope?: string | undefined;
802
+ code_challenge_method?: CodeChallengeMethod | undefined;
803
+ code_challenge?: string | undefined;
804
+ }>;
805
+ expires_at: z.ZodString;
806
+ deleted_at: z.ZodOptional<z.ZodString>;
807
+ ip: z.ZodOptional<z.ZodString>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ expires_at: string;
810
+ authParams: {
811
+ client_id: string;
812
+ username?: string | undefined;
813
+ vendor_id?: string | undefined;
814
+ response_type?: AuthorizationResponseType | undefined;
815
+ response_mode?: AuthorizationResponseMode | undefined;
816
+ redirect_uri?: string | undefined;
817
+ audience?: string | undefined;
818
+ state?: string | undefined;
819
+ nonce?: string | undefined;
820
+ scope?: string | undefined;
821
+ code_challenge_method?: CodeChallengeMethod | undefined;
822
+ code_challenge?: string | undefined;
823
+ };
824
+ auth0Client?: string | undefined;
825
+ deleted_at?: string | undefined;
826
+ ip?: string | undefined;
827
+ }, {
828
+ expires_at: string;
829
+ authParams: {
830
+ client_id: string;
831
+ username?: string | undefined;
832
+ vendor_id?: string | undefined;
833
+ response_type?: AuthorizationResponseType | undefined;
834
+ response_mode?: AuthorizationResponseMode | undefined;
835
+ redirect_uri?: string | undefined;
836
+ audience?: string | undefined;
837
+ state?: string | undefined;
838
+ nonce?: string | undefined;
839
+ scope?: string | undefined;
840
+ code_challenge_method?: CodeChallengeMethod | undefined;
841
+ code_challenge?: string | undefined;
842
+ };
843
+ auth0Client?: string | undefined;
844
+ deleted_at?: string | undefined;
845
+ ip?: string | undefined;
846
+ }>;
847
+ export type LoginInsert = z.infer<typeof loginInsertSchema>;
848
+ declare const loginSchema: z.ZodObject<{
849
+ login_id: z.ZodString;
850
+ created_at: z.ZodString;
851
+ updated_at: z.ZodString;
852
+ auth0Client: z.ZodOptional<z.ZodString>;
853
+ authParams: z.ZodObject<{
854
+ client_id: z.ZodString;
855
+ vendor_id: z.ZodOptional<z.ZodString>;
856
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
857
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
858
+ redirect_uri: z.ZodOptional<z.ZodString>;
859
+ audience: z.ZodOptional<z.ZodString>;
860
+ state: z.ZodOptional<z.ZodString>;
861
+ nonce: z.ZodOptional<z.ZodString>;
862
+ scope: z.ZodOptional<z.ZodString>;
863
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
864
+ code_challenge: z.ZodOptional<z.ZodString>;
865
+ username: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ client_id: string;
868
+ username?: string | undefined;
869
+ vendor_id?: string | undefined;
870
+ response_type?: AuthorizationResponseType | undefined;
871
+ response_mode?: AuthorizationResponseMode | undefined;
872
+ redirect_uri?: string | undefined;
873
+ audience?: string | undefined;
874
+ state?: string | undefined;
875
+ nonce?: string | undefined;
876
+ scope?: string | undefined;
877
+ code_challenge_method?: CodeChallengeMethod | undefined;
878
+ code_challenge?: string | undefined;
879
+ }, {
880
+ client_id: string;
881
+ username?: string | undefined;
882
+ vendor_id?: string | undefined;
883
+ response_type?: AuthorizationResponseType | undefined;
884
+ response_mode?: AuthorizationResponseMode | undefined;
885
+ redirect_uri?: string | undefined;
886
+ audience?: string | undefined;
887
+ state?: string | undefined;
888
+ nonce?: string | undefined;
889
+ scope?: string | undefined;
890
+ code_challenge_method?: CodeChallengeMethod | undefined;
891
+ code_challenge?: string | undefined;
892
+ }>;
893
+ expires_at: z.ZodString;
894
+ deleted_at: z.ZodOptional<z.ZodString>;
895
+ ip: z.ZodOptional<z.ZodString>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ created_at: string;
898
+ updated_at: string;
899
+ login_id: string;
900
+ expires_at: string;
901
+ authParams: {
902
+ client_id: string;
903
+ username?: string | undefined;
904
+ vendor_id?: string | undefined;
905
+ response_type?: AuthorizationResponseType | undefined;
906
+ response_mode?: AuthorizationResponseMode | undefined;
907
+ redirect_uri?: string | undefined;
908
+ audience?: string | undefined;
909
+ state?: string | undefined;
910
+ nonce?: string | undefined;
911
+ scope?: string | undefined;
912
+ code_challenge_method?: CodeChallengeMethod | undefined;
913
+ code_challenge?: string | undefined;
914
+ };
915
+ auth0Client?: string | undefined;
916
+ deleted_at?: string | undefined;
917
+ ip?: string | undefined;
918
+ }, {
919
+ created_at: string;
920
+ updated_at: string;
921
+ login_id: string;
922
+ expires_at: string;
923
+ authParams: {
924
+ client_id: string;
925
+ username?: string | undefined;
926
+ vendor_id?: string | undefined;
927
+ response_type?: AuthorizationResponseType | undefined;
928
+ response_mode?: AuthorizationResponseMode | undefined;
929
+ redirect_uri?: string | undefined;
930
+ audience?: string | undefined;
931
+ state?: string | undefined;
932
+ nonce?: string | undefined;
933
+ scope?: string | undefined;
934
+ code_challenge_method?: CodeChallengeMethod | undefined;
935
+ code_challenge?: string | undefined;
936
+ };
937
+ auth0Client?: string | undefined;
938
+ deleted_at?: string | undefined;
939
+ ip?: string | undefined;
940
+ }>;
941
+ export type Login = z.infer<typeof loginSchema>;
942
+ declare const logSchema: z.ZodObject<{
943
+ type: z.ZodEnum<[
944
+ "sapi",
945
+ "ssa",
946
+ "fsa",
947
+ "ss",
948
+ "ssa",
949
+ "fs",
950
+ "s",
951
+ "f",
952
+ "fp",
953
+ "slo",
954
+ "scoa",
955
+ "fcoa",
956
+ "seccft",
957
+ "cls",
958
+ "seacft",
959
+ "serft"
960
+ ]>;
961
+ date: z.ZodString;
962
+ description: z.ZodOptional<z.ZodString>;
963
+ log_id: z.ZodOptional<z.ZodString>;
964
+ _id: z.ZodOptional<z.ZodString>;
965
+ ip: z.ZodString;
966
+ user_agent: z.ZodString;
967
+ details: z.ZodOptional<z.ZodAny>;
968
+ isMobile: z.ZodBoolean;
969
+ user_id: z.ZodOptional<z.ZodString>;
970
+ user_name: z.ZodOptional<z.ZodString>;
971
+ connection: z.ZodOptional<z.ZodString>;
972
+ connection_id: z.ZodOptional<z.ZodString>;
973
+ client_id: z.ZodOptional<z.ZodString>;
974
+ client_name: z.ZodOptional<z.ZodString>;
975
+ audience: z.ZodOptional<z.ZodString>;
976
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
977
+ strategy: z.ZodOptional<z.ZodString>;
978
+ strategy_type: z.ZodOptional<z.ZodString>;
979
+ hostname: z.ZodOptional<z.ZodString>;
980
+ auth0_client: z.ZodOptional<z.ZodObject<{
981
+ name: z.ZodString;
982
+ version: z.ZodString;
983
+ env: z.ZodOptional<z.ZodObject<{
984
+ node: z.ZodOptional<z.ZodString>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ node?: string | undefined;
987
+ }, {
988
+ node?: string | undefined;
989
+ }>>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ name: string;
992
+ version: string;
993
+ env?: {
994
+ node?: string | undefined;
995
+ } | undefined;
996
+ }, {
997
+ name: string;
998
+ version: string;
999
+ env?: {
1000
+ node?: string | undefined;
1001
+ } | undefined;
1002
+ }>>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1005
+ date: string;
1006
+ ip: string;
1007
+ user_agent: string;
1008
+ isMobile: boolean;
1009
+ description?: string | undefined;
1010
+ connection?: string | undefined;
1011
+ user_id?: string | undefined;
1012
+ client_id?: string | undefined;
1013
+ audience?: string | undefined;
1014
+ scope?: string[] | undefined;
1015
+ log_id?: string | undefined;
1016
+ _id?: string | undefined;
1017
+ details?: any;
1018
+ user_name?: string | undefined;
1019
+ connection_id?: string | undefined;
1020
+ client_name?: string | undefined;
1021
+ strategy?: string | undefined;
1022
+ strategy_type?: string | undefined;
1023
+ hostname?: string | undefined;
1024
+ auth0_client?: {
1025
+ name: string;
1026
+ version: string;
1027
+ env?: {
1028
+ node?: string | undefined;
1029
+ } | undefined;
1030
+ } | undefined;
1031
+ }, {
1032
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1033
+ date: string;
1034
+ ip: string;
1035
+ user_agent: string;
1036
+ isMobile: boolean;
1037
+ description?: string | undefined;
1038
+ connection?: string | undefined;
1039
+ user_id?: string | undefined;
1040
+ client_id?: string | undefined;
1041
+ audience?: string | undefined;
1042
+ scope?: string[] | undefined;
1043
+ log_id?: string | undefined;
1044
+ _id?: string | undefined;
1045
+ details?: any;
1046
+ user_name?: string | undefined;
1047
+ connection_id?: string | undefined;
1048
+ client_name?: string | undefined;
1049
+ strategy?: string | undefined;
1050
+ strategy_type?: string | undefined;
1051
+ hostname?: string | undefined;
1052
+ auth0_client?: {
1053
+ name: string;
1054
+ version: string;
1055
+ env?: {
1056
+ node?: string | undefined;
1057
+ } | undefined;
1058
+ } | undefined;
1059
+ }>;
1060
+ export type Log = z.infer<typeof logSchema>;
1061
+ export type LogsResponse = Log & {
1062
+ log_id: string;
1063
+ _id: string;
1064
+ };
1065
+ declare const passwordInsertSchema: z.ZodObject<{
1066
+ user_id: z.ZodString;
1067
+ password: z.ZodString;
1068
+ algorithm: z.ZodDefault<z.ZodEnum<[
1069
+ "bcrypt",
1070
+ "argon2id"
1071
+ ]>>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ password: string;
1074
+ user_id: string;
1075
+ algorithm: "bcrypt" | "argon2id";
1076
+ }, {
1077
+ password: string;
1078
+ user_id: string;
1079
+ algorithm?: "bcrypt" | "argon2id" | undefined;
1080
+ }>;
1081
+ export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
1082
+ declare const passwordSchema: z.ZodObject<{
1083
+ created_at: z.ZodString;
1084
+ updated_at: z.ZodString;
1085
+ user_id: z.ZodString;
1086
+ password: z.ZodString;
1087
+ algorithm: z.ZodDefault<z.ZodEnum<[
1088
+ "bcrypt",
1089
+ "argon2id"
1090
+ ]>>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ password: string;
1093
+ created_at: string;
1094
+ updated_at: string;
1095
+ user_id: string;
1096
+ algorithm: "bcrypt" | "argon2id";
1097
+ }, {
1098
+ password: string;
1099
+ created_at: string;
1100
+ updated_at: string;
1101
+ user_id: string;
1102
+ algorithm?: "bcrypt" | "argon2id" | undefined;
1103
+ }>;
1104
+ export type Password = z.infer<typeof passwordSchema>;
1105
+ declare const sessionInsertSchema: z.ZodObject<{
1106
+ session_id: z.ZodString;
1107
+ client_id: z.ZodString;
1108
+ expires_at: z.ZodString;
1109
+ used_at: z.ZodString;
1110
+ deleted_at: z.ZodOptional<z.ZodString>;
1111
+ user_id: z.ZodString;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ user_id: string;
1114
+ client_id: string;
1115
+ expires_at: string;
1116
+ used_at: string;
1117
+ session_id: string;
1118
+ deleted_at?: string | undefined;
1119
+ }, {
1120
+ user_id: string;
1121
+ client_id: string;
1122
+ expires_at: string;
1123
+ used_at: string;
1124
+ session_id: string;
1125
+ deleted_at?: string | undefined;
1126
+ }>;
1127
+ export type SessionInsert = z.infer<typeof sessionInsertSchema>;
1128
+ declare const sessionSchema: z.ZodObject<{
1129
+ session_id: z.ZodString;
1130
+ client_id: z.ZodString;
1131
+ expires_at: z.ZodString;
1132
+ used_at: z.ZodString;
1133
+ deleted_at: z.ZodOptional<z.ZodString>;
1134
+ user_id: z.ZodString;
1135
+ created_at: z.ZodString;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ created_at: string;
1138
+ user_id: string;
1139
+ client_id: string;
1140
+ expires_at: string;
1141
+ used_at: string;
1142
+ session_id: string;
1143
+ deleted_at?: string | undefined;
1144
+ }, {
1145
+ created_at: string;
1146
+ user_id: string;
1147
+ client_id: string;
1148
+ expires_at: string;
1149
+ used_at: string;
1150
+ session_id: string;
1151
+ deleted_at?: string | undefined;
1152
+ }>;
1153
+ export type Session = z.infer<typeof sessionSchema>;
1154
+ export interface Certificate {
1155
+ private_key: string;
1156
+ public_key: string;
1157
+ kid: string;
1158
+ created_at: string;
1159
+ revoked_at?: string;
1160
+ }
1161
+ export interface Tenant {
1162
+ id: string;
1163
+ name: string;
1164
+ audience: string;
1165
+ sender_email: string;
1166
+ sender_name: string;
1167
+ support_url?: string;
1168
+ logo?: string;
1169
+ primary_color?: string;
1170
+ secondary_color?: string;
1171
+ language?: string;
1172
+ created_at: string;
1173
+ updated_at: string;
1174
+ }
1175
+ declare const themeInsertSchema: z.ZodObject<{
1176
+ borders: z.ZodObject<{
1177
+ button_border_radius: z.ZodNumber;
1178
+ button_border_weight: z.ZodNumber;
1179
+ buttons_style: z.ZodEnum<[
1180
+ "pill"
1181
+ ]>;
1182
+ input_border_radius: z.ZodNumber;
1183
+ input_border_weight: z.ZodNumber;
1184
+ inputs_style: z.ZodEnum<[
1185
+ "pill"
1186
+ ]>;
1187
+ show_widget_shadow: z.ZodBoolean;
1188
+ widget_border_weight: z.ZodNumber;
1189
+ widget_corner_radius: z.ZodNumber;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ button_border_radius: number;
1192
+ button_border_weight: number;
1193
+ buttons_style: "pill";
1194
+ input_border_radius: number;
1195
+ input_border_weight: number;
1196
+ inputs_style: "pill";
1197
+ show_widget_shadow: boolean;
1198
+ widget_border_weight: number;
1199
+ widget_corner_radius: number;
1200
+ }, {
1201
+ button_border_radius: number;
1202
+ button_border_weight: number;
1203
+ buttons_style: "pill";
1204
+ input_border_radius: number;
1205
+ input_border_weight: number;
1206
+ inputs_style: "pill";
1207
+ show_widget_shadow: boolean;
1208
+ widget_border_weight: number;
1209
+ widget_corner_radius: number;
1210
+ }>;
1211
+ colors: z.ZodObject<{
1212
+ base_focus_color: z.ZodString;
1213
+ base_hover_color: z.ZodString;
1214
+ body_text: z.ZodString;
1215
+ captcha_widget_theme: z.ZodEnum<[
1216
+ "auto"
1217
+ ]>;
1218
+ error: z.ZodString;
1219
+ header: z.ZodString;
1220
+ icons: z.ZodString;
1221
+ input_background: z.ZodString;
1222
+ input_border: z.ZodString;
1223
+ input_filled_text: z.ZodString;
1224
+ input_labels_placeholders: z.ZodString;
1225
+ links_focused_components: z.ZodString;
1226
+ primary_button: z.ZodString;
1227
+ primary_button_label: z.ZodString;
1228
+ secondary_button_border: z.ZodString;
1229
+ secondary_button_label: z.ZodString;
1230
+ success: z.ZodString;
1231
+ widget_background: z.ZodString;
1232
+ widget_border: z.ZodString;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ base_focus_color: string;
1235
+ base_hover_color: string;
1236
+ body_text: string;
1237
+ captcha_widget_theme: "auto";
1238
+ error: string;
1239
+ header: string;
1240
+ icons: string;
1241
+ input_background: string;
1242
+ input_border: string;
1243
+ input_filled_text: string;
1244
+ input_labels_placeholders: string;
1245
+ links_focused_components: string;
1246
+ primary_button: string;
1247
+ primary_button_label: string;
1248
+ secondary_button_border: string;
1249
+ secondary_button_label: string;
1250
+ success: string;
1251
+ widget_background: string;
1252
+ widget_border: string;
1253
+ }, {
1254
+ base_focus_color: string;
1255
+ base_hover_color: string;
1256
+ body_text: string;
1257
+ captcha_widget_theme: "auto";
1258
+ error: string;
1259
+ header: string;
1260
+ icons: string;
1261
+ input_background: string;
1262
+ input_border: string;
1263
+ input_filled_text: string;
1264
+ input_labels_placeholders: string;
1265
+ links_focused_components: string;
1266
+ primary_button: string;
1267
+ primary_button_label: string;
1268
+ secondary_button_border: string;
1269
+ secondary_button_label: string;
1270
+ success: string;
1271
+ widget_background: string;
1272
+ widget_border: string;
1273
+ }>;
1274
+ displayName: z.ZodString;
1275
+ fonts: z.ZodObject<{
1276
+ body_text: z.ZodObject<{
1277
+ bold: z.ZodBoolean;
1278
+ size: z.ZodNumber;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ bold: boolean;
1281
+ size: number;
1282
+ }, {
1283
+ bold: boolean;
1284
+ size: number;
1285
+ }>;
1286
+ buttons_text: z.ZodObject<{
1287
+ bold: z.ZodBoolean;
1288
+ size: z.ZodNumber;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ bold: boolean;
1291
+ size: number;
1292
+ }, {
1293
+ bold: boolean;
1294
+ size: number;
1295
+ }>;
1296
+ font_url: z.ZodString;
1297
+ input_labels: z.ZodObject<{
1298
+ bold: z.ZodBoolean;
1299
+ size: z.ZodNumber;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ bold: boolean;
1302
+ size: number;
1303
+ }, {
1304
+ bold: boolean;
1305
+ size: number;
1306
+ }>;
1307
+ links: z.ZodObject<{
1308
+ bold: z.ZodBoolean;
1309
+ size: z.ZodNumber;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ bold: boolean;
1312
+ size: number;
1313
+ }, {
1314
+ bold: boolean;
1315
+ size: number;
1316
+ }>;
1317
+ links_style: z.ZodEnum<[
1318
+ "normal"
1319
+ ]>;
1320
+ reference_text_size: z.ZodNumber;
1321
+ subtitle: z.ZodObject<{
1322
+ bold: z.ZodBoolean;
1323
+ size: z.ZodNumber;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ bold: boolean;
1326
+ size: number;
1327
+ }, {
1328
+ bold: boolean;
1329
+ size: number;
1330
+ }>;
1331
+ title: z.ZodObject<{
1332
+ bold: z.ZodBoolean;
1333
+ size: z.ZodNumber;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ bold: boolean;
1336
+ size: number;
1337
+ }, {
1338
+ bold: boolean;
1339
+ size: number;
1340
+ }>;
1341
+ }, "strip", z.ZodTypeAny, {
1342
+ title: {
1343
+ bold: boolean;
1344
+ size: number;
1345
+ };
1346
+ body_text: {
1347
+ bold: boolean;
1348
+ size: number;
1349
+ };
1350
+ buttons_text: {
1351
+ bold: boolean;
1352
+ size: number;
1353
+ };
1354
+ font_url: string;
1355
+ input_labels: {
1356
+ bold: boolean;
1357
+ size: number;
1358
+ };
1359
+ links: {
1360
+ bold: boolean;
1361
+ size: number;
1362
+ };
1363
+ links_style: "normal";
1364
+ reference_text_size: number;
1365
+ subtitle: {
1366
+ bold: boolean;
1367
+ size: number;
1368
+ };
1369
+ }, {
1370
+ title: {
1371
+ bold: boolean;
1372
+ size: number;
1373
+ };
1374
+ body_text: {
1375
+ bold: boolean;
1376
+ size: number;
1377
+ };
1378
+ buttons_text: {
1379
+ bold: boolean;
1380
+ size: number;
1381
+ };
1382
+ font_url: string;
1383
+ input_labels: {
1384
+ bold: boolean;
1385
+ size: number;
1386
+ };
1387
+ links: {
1388
+ bold: boolean;
1389
+ size: number;
1390
+ };
1391
+ links_style: "normal";
1392
+ reference_text_size: number;
1393
+ subtitle: {
1394
+ bold: boolean;
1395
+ size: number;
1396
+ };
1397
+ }>;
1398
+ page_background: z.ZodObject<{
1399
+ background_color: z.ZodString;
1400
+ background_image_url: z.ZodString;
1401
+ page_layout: z.ZodEnum<[
1402
+ "center"
1403
+ ]>;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ background_color: string;
1406
+ background_image_url: string;
1407
+ page_layout: "center";
1408
+ }, {
1409
+ background_color: string;
1410
+ background_image_url: string;
1411
+ page_layout: "center";
1412
+ }>;
1413
+ widget: z.ZodObject<{
1414
+ header_text_alignment: z.ZodEnum<[
1415
+ "center"
1416
+ ]>;
1417
+ logo_height: z.ZodNumber;
1418
+ logo_position: z.ZodEnum<[
1419
+ "center"
1420
+ ]>;
1421
+ logo_url: z.ZodString;
1422
+ social_buttons_layout: z.ZodEnum<[
1423
+ "bottom"
1424
+ ]>;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ logo_url: string;
1427
+ header_text_alignment: "center";
1428
+ logo_height: number;
1429
+ logo_position: "center";
1430
+ social_buttons_layout: "bottom";
1431
+ }, {
1432
+ logo_url: string;
1433
+ header_text_alignment: "center";
1434
+ logo_height: number;
1435
+ logo_position: "center";
1436
+ social_buttons_layout: "bottom";
1437
+ }>;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ page_background: {
1440
+ background_color: string;
1441
+ background_image_url: string;
1442
+ page_layout: "center";
1443
+ };
1444
+ colors: {
1445
+ base_focus_color: string;
1446
+ base_hover_color: string;
1447
+ body_text: string;
1448
+ captcha_widget_theme: "auto";
1449
+ error: string;
1450
+ header: string;
1451
+ icons: string;
1452
+ input_background: string;
1453
+ input_border: string;
1454
+ input_filled_text: string;
1455
+ input_labels_placeholders: string;
1456
+ links_focused_components: string;
1457
+ primary_button: string;
1458
+ primary_button_label: string;
1459
+ secondary_button_border: string;
1460
+ secondary_button_label: string;
1461
+ success: string;
1462
+ widget_background: string;
1463
+ widget_border: string;
1464
+ };
1465
+ borders: {
1466
+ button_border_radius: number;
1467
+ button_border_weight: number;
1468
+ buttons_style: "pill";
1469
+ input_border_radius: number;
1470
+ input_border_weight: number;
1471
+ inputs_style: "pill";
1472
+ show_widget_shadow: boolean;
1473
+ widget_border_weight: number;
1474
+ widget_corner_radius: number;
1475
+ };
1476
+ displayName: string;
1477
+ fonts: {
1478
+ title: {
1479
+ bold: boolean;
1480
+ size: number;
1481
+ };
1482
+ body_text: {
1483
+ bold: boolean;
1484
+ size: number;
1485
+ };
1486
+ buttons_text: {
1487
+ bold: boolean;
1488
+ size: number;
1489
+ };
1490
+ font_url: string;
1491
+ input_labels: {
1492
+ bold: boolean;
1493
+ size: number;
1494
+ };
1495
+ links: {
1496
+ bold: boolean;
1497
+ size: number;
1498
+ };
1499
+ links_style: "normal";
1500
+ reference_text_size: number;
1501
+ subtitle: {
1502
+ bold: boolean;
1503
+ size: number;
1504
+ };
1505
+ };
1506
+ widget: {
1507
+ logo_url: string;
1508
+ header_text_alignment: "center";
1509
+ logo_height: number;
1510
+ logo_position: "center";
1511
+ social_buttons_layout: "bottom";
1512
+ };
1513
+ }, {
1514
+ page_background: {
1515
+ background_color: string;
1516
+ background_image_url: string;
1517
+ page_layout: "center";
1518
+ };
1519
+ colors: {
1520
+ base_focus_color: string;
1521
+ base_hover_color: string;
1522
+ body_text: string;
1523
+ captcha_widget_theme: "auto";
1524
+ error: string;
1525
+ header: string;
1526
+ icons: string;
1527
+ input_background: string;
1528
+ input_border: string;
1529
+ input_filled_text: string;
1530
+ input_labels_placeholders: string;
1531
+ links_focused_components: string;
1532
+ primary_button: string;
1533
+ primary_button_label: string;
1534
+ secondary_button_border: string;
1535
+ secondary_button_label: string;
1536
+ success: string;
1537
+ widget_background: string;
1538
+ widget_border: string;
1539
+ };
1540
+ borders: {
1541
+ button_border_radius: number;
1542
+ button_border_weight: number;
1543
+ buttons_style: "pill";
1544
+ input_border_radius: number;
1545
+ input_border_weight: number;
1546
+ inputs_style: "pill";
1547
+ show_widget_shadow: boolean;
1548
+ widget_border_weight: number;
1549
+ widget_corner_radius: number;
1550
+ };
1551
+ displayName: string;
1552
+ fonts: {
1553
+ title: {
1554
+ bold: boolean;
1555
+ size: number;
1556
+ };
1557
+ body_text: {
1558
+ bold: boolean;
1559
+ size: number;
1560
+ };
1561
+ buttons_text: {
1562
+ bold: boolean;
1563
+ size: number;
1564
+ };
1565
+ font_url: string;
1566
+ input_labels: {
1567
+ bold: boolean;
1568
+ size: number;
1569
+ };
1570
+ links: {
1571
+ bold: boolean;
1572
+ size: number;
1573
+ };
1574
+ links_style: "normal";
1575
+ reference_text_size: number;
1576
+ subtitle: {
1577
+ bold: boolean;
1578
+ size: number;
1579
+ };
1580
+ };
1581
+ widget: {
1582
+ logo_url: string;
1583
+ header_text_alignment: "center";
1584
+ logo_height: number;
1585
+ logo_position: "center";
1586
+ social_buttons_layout: "bottom";
1587
+ };
1588
+ }>;
1589
+ export type ThemeInsert = z.infer<typeof themeInsertSchema>;
1590
+ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1591
+ borders: z.ZodObject<{
1592
+ button_border_radius: z.ZodNumber;
1593
+ button_border_weight: z.ZodNumber;
1594
+ buttons_style: z.ZodEnum<[
1595
+ "pill"
1596
+ ]>;
1597
+ input_border_radius: z.ZodNumber;
1598
+ input_border_weight: z.ZodNumber;
1599
+ inputs_style: z.ZodEnum<[
1600
+ "pill"
1601
+ ]>;
1602
+ show_widget_shadow: z.ZodBoolean;
1603
+ widget_border_weight: z.ZodNumber;
1604
+ widget_corner_radius: z.ZodNumber;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ button_border_radius: number;
1607
+ button_border_weight: number;
1608
+ buttons_style: "pill";
1609
+ input_border_radius: number;
1610
+ input_border_weight: number;
1611
+ inputs_style: "pill";
1612
+ show_widget_shadow: boolean;
1613
+ widget_border_weight: number;
1614
+ widget_corner_radius: number;
1615
+ }, {
1616
+ button_border_radius: number;
1617
+ button_border_weight: number;
1618
+ buttons_style: "pill";
1619
+ input_border_radius: number;
1620
+ input_border_weight: number;
1621
+ inputs_style: "pill";
1622
+ show_widget_shadow: boolean;
1623
+ widget_border_weight: number;
1624
+ widget_corner_radius: number;
1625
+ }>;
1626
+ colors: z.ZodObject<{
1627
+ base_focus_color: z.ZodString;
1628
+ base_hover_color: z.ZodString;
1629
+ body_text: z.ZodString;
1630
+ captcha_widget_theme: z.ZodEnum<[
1631
+ "auto"
1632
+ ]>;
1633
+ error: z.ZodString;
1634
+ header: z.ZodString;
1635
+ icons: z.ZodString;
1636
+ input_background: z.ZodString;
1637
+ input_border: z.ZodString;
1638
+ input_filled_text: z.ZodString;
1639
+ input_labels_placeholders: z.ZodString;
1640
+ links_focused_components: z.ZodString;
1641
+ primary_button: z.ZodString;
1642
+ primary_button_label: z.ZodString;
1643
+ secondary_button_border: z.ZodString;
1644
+ secondary_button_label: z.ZodString;
1645
+ success: z.ZodString;
1646
+ widget_background: z.ZodString;
1647
+ widget_border: z.ZodString;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ base_focus_color: string;
1650
+ base_hover_color: string;
1651
+ body_text: string;
1652
+ captcha_widget_theme: "auto";
1653
+ error: string;
1654
+ header: string;
1655
+ icons: string;
1656
+ input_background: string;
1657
+ input_border: string;
1658
+ input_filled_text: string;
1659
+ input_labels_placeholders: string;
1660
+ links_focused_components: string;
1661
+ primary_button: string;
1662
+ primary_button_label: string;
1663
+ secondary_button_border: string;
1664
+ secondary_button_label: string;
1665
+ success: string;
1666
+ widget_background: string;
1667
+ widget_border: string;
1668
+ }, {
1669
+ base_focus_color: string;
1670
+ base_hover_color: string;
1671
+ body_text: string;
1672
+ captcha_widget_theme: "auto";
1673
+ error: string;
1674
+ header: string;
1675
+ icons: string;
1676
+ input_background: string;
1677
+ input_border: string;
1678
+ input_filled_text: string;
1679
+ input_labels_placeholders: string;
1680
+ links_focused_components: string;
1681
+ primary_button: string;
1682
+ primary_button_label: string;
1683
+ secondary_button_border: string;
1684
+ secondary_button_label: string;
1685
+ success: string;
1686
+ widget_background: string;
1687
+ widget_border: string;
1688
+ }>;
1689
+ displayName: z.ZodString;
1690
+ fonts: z.ZodObject<{
1691
+ body_text: z.ZodObject<{
1692
+ bold: z.ZodBoolean;
1693
+ size: z.ZodNumber;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ bold: boolean;
1696
+ size: number;
1697
+ }, {
1698
+ bold: boolean;
1699
+ size: number;
1700
+ }>;
1701
+ buttons_text: z.ZodObject<{
1702
+ bold: z.ZodBoolean;
1703
+ size: z.ZodNumber;
1704
+ }, "strip", z.ZodTypeAny, {
1705
+ bold: boolean;
1706
+ size: number;
1707
+ }, {
1708
+ bold: boolean;
1709
+ size: number;
1710
+ }>;
1711
+ font_url: z.ZodString;
1712
+ input_labels: z.ZodObject<{
1713
+ bold: z.ZodBoolean;
1714
+ size: z.ZodNumber;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ bold: boolean;
1717
+ size: number;
1718
+ }, {
1719
+ bold: boolean;
1720
+ size: number;
1721
+ }>;
1722
+ links: z.ZodObject<{
1723
+ bold: z.ZodBoolean;
1724
+ size: z.ZodNumber;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ bold: boolean;
1727
+ size: number;
1728
+ }, {
1729
+ bold: boolean;
1730
+ size: number;
1731
+ }>;
1732
+ links_style: z.ZodEnum<[
1733
+ "normal"
1734
+ ]>;
1735
+ reference_text_size: z.ZodNumber;
1736
+ subtitle: z.ZodObject<{
1737
+ bold: z.ZodBoolean;
1738
+ size: z.ZodNumber;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ bold: boolean;
1741
+ size: number;
1742
+ }, {
1743
+ bold: boolean;
1744
+ size: number;
1745
+ }>;
1746
+ title: z.ZodObject<{
1747
+ bold: z.ZodBoolean;
1748
+ size: z.ZodNumber;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ bold: boolean;
1751
+ size: number;
1752
+ }, {
1753
+ bold: boolean;
1754
+ size: number;
1755
+ }>;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ title: {
1758
+ bold: boolean;
1759
+ size: number;
1760
+ };
1761
+ body_text: {
1762
+ bold: boolean;
1763
+ size: number;
1764
+ };
1765
+ buttons_text: {
1766
+ bold: boolean;
1767
+ size: number;
1768
+ };
1769
+ font_url: string;
1770
+ input_labels: {
1771
+ bold: boolean;
1772
+ size: number;
1773
+ };
1774
+ links: {
1775
+ bold: boolean;
1776
+ size: number;
1777
+ };
1778
+ links_style: "normal";
1779
+ reference_text_size: number;
1780
+ subtitle: {
1781
+ bold: boolean;
1782
+ size: number;
1783
+ };
1784
+ }, {
1785
+ title: {
1786
+ bold: boolean;
1787
+ size: number;
1788
+ };
1789
+ body_text: {
1790
+ bold: boolean;
1791
+ size: number;
1792
+ };
1793
+ buttons_text: {
1794
+ bold: boolean;
1795
+ size: number;
1796
+ };
1797
+ font_url: string;
1798
+ input_labels: {
1799
+ bold: boolean;
1800
+ size: number;
1801
+ };
1802
+ links: {
1803
+ bold: boolean;
1804
+ size: number;
1805
+ };
1806
+ links_style: "normal";
1807
+ reference_text_size: number;
1808
+ subtitle: {
1809
+ bold: boolean;
1810
+ size: number;
1811
+ };
1812
+ }>;
1813
+ page_background: z.ZodObject<{
1814
+ background_color: z.ZodString;
1815
+ background_image_url: z.ZodString;
1816
+ page_layout: z.ZodEnum<[
1817
+ "center"
1818
+ ]>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ background_color: string;
1821
+ background_image_url: string;
1822
+ page_layout: "center";
1823
+ }, {
1824
+ background_color: string;
1825
+ background_image_url: string;
1826
+ page_layout: "center";
1827
+ }>;
1828
+ widget: z.ZodObject<{
1829
+ header_text_alignment: z.ZodEnum<[
1830
+ "center"
1831
+ ]>;
1832
+ logo_height: z.ZodNumber;
1833
+ logo_position: z.ZodEnum<[
1834
+ "center"
1835
+ ]>;
1836
+ logo_url: z.ZodString;
1837
+ social_buttons_layout: z.ZodEnum<[
1838
+ "bottom"
1839
+ ]>;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ logo_url: string;
1842
+ header_text_alignment: "center";
1843
+ logo_height: number;
1844
+ logo_position: "center";
1845
+ social_buttons_layout: "bottom";
1846
+ }, {
1847
+ logo_url: string;
1848
+ header_text_alignment: "center";
1849
+ logo_height: number;
1850
+ logo_position: "center";
1851
+ social_buttons_layout: "bottom";
1852
+ }>;
1853
+ }, {
1854
+ themeId: z.ZodString;
1855
+ }>, "strip", z.ZodTypeAny, {
1856
+ page_background: {
1857
+ background_color: string;
1858
+ background_image_url: string;
1859
+ page_layout: "center";
1860
+ };
1861
+ colors: {
1862
+ base_focus_color: string;
1863
+ base_hover_color: string;
1864
+ body_text: string;
1865
+ captcha_widget_theme: "auto";
1866
+ error: string;
1867
+ header: string;
1868
+ icons: string;
1869
+ input_background: string;
1870
+ input_border: string;
1871
+ input_filled_text: string;
1872
+ input_labels_placeholders: string;
1873
+ links_focused_components: string;
1874
+ primary_button: string;
1875
+ primary_button_label: string;
1876
+ secondary_button_border: string;
1877
+ secondary_button_label: string;
1878
+ success: string;
1879
+ widget_background: string;
1880
+ widget_border: string;
1881
+ };
1882
+ borders: {
1883
+ button_border_radius: number;
1884
+ button_border_weight: number;
1885
+ buttons_style: "pill";
1886
+ input_border_radius: number;
1887
+ input_border_weight: number;
1888
+ inputs_style: "pill";
1889
+ show_widget_shadow: boolean;
1890
+ widget_border_weight: number;
1891
+ widget_corner_radius: number;
1892
+ };
1893
+ displayName: string;
1894
+ fonts: {
1895
+ title: {
1896
+ bold: boolean;
1897
+ size: number;
1898
+ };
1899
+ body_text: {
1900
+ bold: boolean;
1901
+ size: number;
1902
+ };
1903
+ buttons_text: {
1904
+ bold: boolean;
1905
+ size: number;
1906
+ };
1907
+ font_url: string;
1908
+ input_labels: {
1909
+ bold: boolean;
1910
+ size: number;
1911
+ };
1912
+ links: {
1913
+ bold: boolean;
1914
+ size: number;
1915
+ };
1916
+ links_style: "normal";
1917
+ reference_text_size: number;
1918
+ subtitle: {
1919
+ bold: boolean;
1920
+ size: number;
1921
+ };
1922
+ };
1923
+ widget: {
1924
+ logo_url: string;
1925
+ header_text_alignment: "center";
1926
+ logo_height: number;
1927
+ logo_position: "center";
1928
+ social_buttons_layout: "bottom";
1929
+ };
1930
+ themeId: string;
1931
+ }, {
1932
+ page_background: {
1933
+ background_color: string;
1934
+ background_image_url: string;
1935
+ page_layout: "center";
1936
+ };
1937
+ colors: {
1938
+ base_focus_color: string;
1939
+ base_hover_color: string;
1940
+ body_text: string;
1941
+ captcha_widget_theme: "auto";
1942
+ error: string;
1943
+ header: string;
1944
+ icons: string;
1945
+ input_background: string;
1946
+ input_border: string;
1947
+ input_filled_text: string;
1948
+ input_labels_placeholders: string;
1949
+ links_focused_components: string;
1950
+ primary_button: string;
1951
+ primary_button_label: string;
1952
+ secondary_button_border: string;
1953
+ secondary_button_label: string;
1954
+ success: string;
1955
+ widget_background: string;
1956
+ widget_border: string;
1957
+ };
1958
+ borders: {
1959
+ button_border_radius: number;
1960
+ button_border_weight: number;
1961
+ buttons_style: "pill";
1962
+ input_border_radius: number;
1963
+ input_border_weight: number;
1964
+ inputs_style: "pill";
1965
+ show_widget_shadow: boolean;
1966
+ widget_border_weight: number;
1967
+ widget_corner_radius: number;
1968
+ };
1969
+ displayName: string;
1970
+ fonts: {
1971
+ title: {
1972
+ bold: boolean;
1973
+ size: number;
1974
+ };
1975
+ body_text: {
1976
+ bold: boolean;
1977
+ size: number;
1978
+ };
1979
+ buttons_text: {
1980
+ bold: boolean;
1981
+ size: number;
1982
+ };
1983
+ font_url: string;
1984
+ input_labels: {
1985
+ bold: boolean;
1986
+ size: number;
1987
+ };
1988
+ links: {
1989
+ bold: boolean;
1990
+ size: number;
1991
+ };
1992
+ links_style: "normal";
1993
+ reference_text_size: number;
1994
+ subtitle: {
1995
+ bold: boolean;
1996
+ size: number;
1997
+ };
1998
+ };
1999
+ widget: {
2000
+ logo_url: string;
2001
+ header_text_alignment: "center";
2002
+ logo_height: number;
2003
+ logo_position: "center";
2004
+ social_buttons_layout: "bottom";
2005
+ };
2006
+ themeId: string;
2007
+ }>;
2008
+ export type Theme = z.infer<typeof themeSchema>;
2009
+ export interface Ticket {
2010
+ id: string;
2011
+ tenant_id: string;
2012
+ client_id: string;
2013
+ email: string;
2014
+ authParams?: {
2015
+ nonce?: string;
2016
+ state?: string;
2017
+ scope?: string;
2018
+ response_type?: AuthorizationResponseType;
2019
+ response_mode?: AuthorizationResponseMode;
2020
+ redirect_uri?: string;
2021
+ };
2022
+ created_at: Date;
2023
+ expires_at: Date;
2024
+ used_at?: Date;
2025
+ }
2026
+ declare const universalLoginSessionInsertSchema: z.ZodObject<{
2027
+ id: z.ZodString;
2028
+ expires_at: z.ZodString;
2029
+ auth0Client: z.ZodOptional<z.ZodString>;
2030
+ authParams: z.ZodObject<{
2031
+ client_id: z.ZodString;
2032
+ vendor_id: z.ZodOptional<z.ZodString>;
2033
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2034
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2035
+ redirect_uri: z.ZodOptional<z.ZodString>;
2036
+ audience: z.ZodOptional<z.ZodString>;
2037
+ state: z.ZodOptional<z.ZodString>;
2038
+ nonce: z.ZodOptional<z.ZodString>;
2039
+ scope: z.ZodOptional<z.ZodString>;
2040
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2041
+ code_challenge: z.ZodOptional<z.ZodString>;
2042
+ username: z.ZodOptional<z.ZodString>;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ client_id: string;
2045
+ username?: string | undefined;
2046
+ vendor_id?: string | undefined;
2047
+ response_type?: AuthorizationResponseType | undefined;
2048
+ response_mode?: AuthorizationResponseMode | undefined;
2049
+ redirect_uri?: string | undefined;
2050
+ audience?: string | undefined;
2051
+ state?: string | undefined;
2052
+ nonce?: string | undefined;
2053
+ scope?: string | undefined;
2054
+ code_challenge_method?: CodeChallengeMethod | undefined;
2055
+ code_challenge?: string | undefined;
2056
+ }, {
2057
+ client_id: string;
2058
+ username?: string | undefined;
2059
+ vendor_id?: string | undefined;
2060
+ response_type?: AuthorizationResponseType | undefined;
2061
+ response_mode?: AuthorizationResponseMode | undefined;
2062
+ redirect_uri?: string | undefined;
2063
+ audience?: string | undefined;
2064
+ state?: string | undefined;
2065
+ nonce?: string | undefined;
2066
+ scope?: string | undefined;
2067
+ code_challenge_method?: CodeChallengeMethod | undefined;
2068
+ code_challenge?: string | undefined;
2069
+ }>;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ id: string;
2072
+ expires_at: string;
2073
+ authParams: {
2074
+ client_id: string;
2075
+ username?: string | undefined;
2076
+ vendor_id?: string | undefined;
2077
+ response_type?: AuthorizationResponseType | undefined;
2078
+ response_mode?: AuthorizationResponseMode | undefined;
2079
+ redirect_uri?: string | undefined;
2080
+ audience?: string | undefined;
2081
+ state?: string | undefined;
2082
+ nonce?: string | undefined;
2083
+ scope?: string | undefined;
2084
+ code_challenge_method?: CodeChallengeMethod | undefined;
2085
+ code_challenge?: string | undefined;
2086
+ };
2087
+ auth0Client?: string | undefined;
2088
+ }, {
2089
+ id: string;
2090
+ expires_at: string;
2091
+ authParams: {
2092
+ client_id: string;
2093
+ username?: string | undefined;
2094
+ vendor_id?: string | undefined;
2095
+ response_type?: AuthorizationResponseType | undefined;
2096
+ response_mode?: AuthorizationResponseMode | undefined;
2097
+ redirect_uri?: string | undefined;
2098
+ audience?: string | undefined;
2099
+ state?: string | undefined;
2100
+ nonce?: string | undefined;
2101
+ scope?: string | undefined;
2102
+ code_challenge_method?: CodeChallengeMethod | undefined;
2103
+ code_challenge?: string | undefined;
2104
+ };
2105
+ auth0Client?: string | undefined;
2106
+ }>;
2107
+ export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
2108
+ declare const universalLoginSessionSchema: z.ZodObject<{
2109
+ created_at: z.ZodString;
2110
+ updated_at: z.ZodString;
2111
+ id: z.ZodString;
2112
+ expires_at: z.ZodString;
2113
+ auth0Client: z.ZodOptional<z.ZodString>;
2114
+ authParams: z.ZodObject<{
2115
+ client_id: z.ZodString;
2116
+ vendor_id: z.ZodOptional<z.ZodString>;
2117
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2118
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2119
+ redirect_uri: z.ZodOptional<z.ZodString>;
2120
+ audience: z.ZodOptional<z.ZodString>;
2121
+ state: z.ZodOptional<z.ZodString>;
2122
+ nonce: z.ZodOptional<z.ZodString>;
2123
+ scope: z.ZodOptional<z.ZodString>;
2124
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2125
+ code_challenge: z.ZodOptional<z.ZodString>;
2126
+ username: z.ZodOptional<z.ZodString>;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ client_id: string;
2129
+ username?: string | undefined;
2130
+ vendor_id?: string | undefined;
2131
+ response_type?: AuthorizationResponseType | undefined;
2132
+ response_mode?: AuthorizationResponseMode | undefined;
2133
+ redirect_uri?: string | undefined;
2134
+ audience?: string | undefined;
2135
+ state?: string | undefined;
2136
+ nonce?: string | undefined;
2137
+ scope?: string | undefined;
2138
+ code_challenge_method?: CodeChallengeMethod | undefined;
2139
+ code_challenge?: string | undefined;
2140
+ }, {
2141
+ client_id: string;
2142
+ username?: string | undefined;
2143
+ vendor_id?: string | undefined;
2144
+ response_type?: AuthorizationResponseType | undefined;
2145
+ response_mode?: AuthorizationResponseMode | undefined;
2146
+ redirect_uri?: string | undefined;
2147
+ audience?: string | undefined;
2148
+ state?: string | undefined;
2149
+ nonce?: string | undefined;
2150
+ scope?: string | undefined;
2151
+ code_challenge_method?: CodeChallengeMethod | undefined;
2152
+ code_challenge?: string | undefined;
2153
+ }>;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ created_at: string;
2156
+ updated_at: string;
2157
+ id: string;
2158
+ expires_at: string;
2159
+ authParams: {
2160
+ client_id: string;
2161
+ username?: string | undefined;
2162
+ vendor_id?: string | undefined;
2163
+ response_type?: AuthorizationResponseType | undefined;
2164
+ response_mode?: AuthorizationResponseMode | undefined;
2165
+ redirect_uri?: string | undefined;
2166
+ audience?: string | undefined;
2167
+ state?: string | undefined;
2168
+ nonce?: string | undefined;
2169
+ scope?: string | undefined;
2170
+ code_challenge_method?: CodeChallengeMethod | undefined;
2171
+ code_challenge?: string | undefined;
2172
+ };
2173
+ auth0Client?: string | undefined;
2174
+ }, {
2175
+ created_at: string;
2176
+ updated_at: string;
2177
+ id: string;
2178
+ expires_at: string;
2179
+ authParams: {
2180
+ client_id: string;
2181
+ username?: string | undefined;
2182
+ vendor_id?: string | undefined;
2183
+ response_type?: AuthorizationResponseType | undefined;
2184
+ response_mode?: AuthorizationResponseMode | undefined;
2185
+ redirect_uri?: string | undefined;
2186
+ audience?: string | undefined;
2187
+ state?: string | undefined;
2188
+ nonce?: string | undefined;
2189
+ scope?: string | undefined;
2190
+ code_challenge_method?: CodeChallengeMethod | undefined;
2191
+ code_challenge?: string | undefined;
2192
+ };
2193
+ auth0Client?: string | undefined;
2194
+ }>;
2195
+ export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
2196
+ declare const otpInsertSchema: z.ZodObject<{
2197
+ id: z.ZodString;
2198
+ email: z.ZodString;
2199
+ code: z.ZodString;
2200
+ ip: z.ZodOptional<z.ZodString>;
2201
+ send: z.ZodEnum<[
2202
+ "code",
2203
+ "link"
2204
+ ]>;
2205
+ authParams: z.ZodObject<{
2206
+ client_id: z.ZodString;
2207
+ vendor_id: z.ZodOptional<z.ZodString>;
2208
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2209
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2210
+ redirect_uri: z.ZodOptional<z.ZodString>;
2211
+ audience: z.ZodOptional<z.ZodString>;
2212
+ state: z.ZodOptional<z.ZodString>;
2213
+ nonce: z.ZodOptional<z.ZodString>;
2214
+ scope: z.ZodOptional<z.ZodString>;
2215
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2216
+ code_challenge: z.ZodOptional<z.ZodString>;
2217
+ username: z.ZodOptional<z.ZodString>;
2218
+ }, "strip", z.ZodTypeAny, {
2219
+ client_id: string;
2220
+ username?: string | undefined;
2221
+ vendor_id?: string | undefined;
2222
+ response_type?: AuthorizationResponseType | undefined;
2223
+ response_mode?: AuthorizationResponseMode | undefined;
2224
+ redirect_uri?: string | undefined;
2225
+ audience?: string | undefined;
2226
+ state?: string | undefined;
2227
+ nonce?: string | undefined;
2228
+ scope?: string | undefined;
2229
+ code_challenge_method?: CodeChallengeMethod | undefined;
2230
+ code_challenge?: string | undefined;
2231
+ }, {
2232
+ client_id: string;
2233
+ username?: string | undefined;
2234
+ vendor_id?: string | undefined;
2235
+ response_type?: AuthorizationResponseType | undefined;
2236
+ response_mode?: AuthorizationResponseMode | undefined;
2237
+ redirect_uri?: string | undefined;
2238
+ audience?: string | undefined;
2239
+ state?: string | undefined;
2240
+ nonce?: string | undefined;
2241
+ scope?: string | undefined;
2242
+ code_challenge_method?: CodeChallengeMethod | undefined;
2243
+ code_challenge?: string | undefined;
2244
+ }>;
2245
+ expires_at: z.ZodString;
2246
+ used_at: z.ZodOptional<z.ZodString>;
2247
+ user_id: z.ZodOptional<z.ZodString>;
2248
+ }, "strip", z.ZodTypeAny, {
2249
+ code: string;
2250
+ email: string;
2251
+ id: string;
2252
+ expires_at: string;
2253
+ authParams: {
2254
+ client_id: string;
2255
+ username?: string | undefined;
2256
+ vendor_id?: string | undefined;
2257
+ response_type?: AuthorizationResponseType | undefined;
2258
+ response_mode?: AuthorizationResponseMode | undefined;
2259
+ redirect_uri?: string | undefined;
2260
+ audience?: string | undefined;
2261
+ state?: string | undefined;
2262
+ nonce?: string | undefined;
2263
+ scope?: string | undefined;
2264
+ code_challenge_method?: CodeChallengeMethod | undefined;
2265
+ code_challenge?: string | undefined;
2266
+ };
2267
+ send: "code" | "link";
2268
+ user_id?: string | undefined;
2269
+ used_at?: string | undefined;
2270
+ ip?: string | undefined;
2271
+ }, {
2272
+ code: string;
2273
+ email: string;
2274
+ id: string;
2275
+ expires_at: string;
2276
+ authParams: {
2277
+ client_id: string;
2278
+ username?: string | undefined;
2279
+ vendor_id?: string | undefined;
2280
+ response_type?: AuthorizationResponseType | undefined;
2281
+ response_mode?: AuthorizationResponseMode | undefined;
2282
+ redirect_uri?: string | undefined;
2283
+ audience?: string | undefined;
2284
+ state?: string | undefined;
2285
+ nonce?: string | undefined;
2286
+ scope?: string | undefined;
2287
+ code_challenge_method?: CodeChallengeMethod | undefined;
2288
+ code_challenge?: string | undefined;
2289
+ };
2290
+ send: "code" | "link";
2291
+ user_id?: string | undefined;
2292
+ used_at?: string | undefined;
2293
+ ip?: string | undefined;
2294
+ }>;
2295
+ export type OTPInsert = z.infer<typeof otpInsertSchema>;
2296
+ declare const otpSchema: z.ZodObject<{
2297
+ id: z.ZodString;
2298
+ email: z.ZodString;
2299
+ code: z.ZodString;
2300
+ ip: z.ZodOptional<z.ZodString>;
2301
+ send: z.ZodEnum<[
2302
+ "code",
2303
+ "link"
2304
+ ]>;
2305
+ authParams: z.ZodObject<{
2306
+ client_id: z.ZodString;
2307
+ vendor_id: z.ZodOptional<z.ZodString>;
2308
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2309
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2310
+ redirect_uri: z.ZodOptional<z.ZodString>;
2311
+ audience: z.ZodOptional<z.ZodString>;
2312
+ state: z.ZodOptional<z.ZodString>;
2313
+ nonce: z.ZodOptional<z.ZodString>;
2314
+ scope: z.ZodOptional<z.ZodString>;
2315
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2316
+ code_challenge: z.ZodOptional<z.ZodString>;
2317
+ username: z.ZodOptional<z.ZodString>;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ client_id: string;
2320
+ username?: string | undefined;
2321
+ vendor_id?: string | undefined;
2322
+ response_type?: AuthorizationResponseType | undefined;
2323
+ response_mode?: AuthorizationResponseMode | undefined;
2324
+ redirect_uri?: string | undefined;
2325
+ audience?: string | undefined;
2326
+ state?: string | undefined;
2327
+ nonce?: string | undefined;
2328
+ scope?: string | undefined;
2329
+ code_challenge_method?: CodeChallengeMethod | undefined;
2330
+ code_challenge?: string | undefined;
2331
+ }, {
2332
+ client_id: string;
2333
+ username?: string | undefined;
2334
+ vendor_id?: string | undefined;
2335
+ response_type?: AuthorizationResponseType | undefined;
2336
+ response_mode?: AuthorizationResponseMode | undefined;
2337
+ redirect_uri?: string | undefined;
2338
+ audience?: string | undefined;
2339
+ state?: string | undefined;
2340
+ nonce?: string | undefined;
2341
+ scope?: string | undefined;
2342
+ code_challenge_method?: CodeChallengeMethod | undefined;
2343
+ code_challenge?: string | undefined;
2344
+ }>;
2345
+ expires_at: z.ZodString;
2346
+ used_at: z.ZodOptional<z.ZodString>;
2347
+ user_id: z.ZodOptional<z.ZodString>;
2348
+ created_at: z.ZodString;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ code: string;
2351
+ created_at: string;
2352
+ email: string;
2353
+ id: string;
2354
+ expires_at: string;
2355
+ authParams: {
2356
+ client_id: string;
2357
+ username?: string | undefined;
2358
+ vendor_id?: string | undefined;
2359
+ response_type?: AuthorizationResponseType | undefined;
2360
+ response_mode?: AuthorizationResponseMode | undefined;
2361
+ redirect_uri?: string | undefined;
2362
+ audience?: string | undefined;
2363
+ state?: string | undefined;
2364
+ nonce?: string | undefined;
2365
+ scope?: string | undefined;
2366
+ code_challenge_method?: CodeChallengeMethod | undefined;
2367
+ code_challenge?: string | undefined;
2368
+ };
2369
+ send: "code" | "link";
2370
+ user_id?: string | undefined;
2371
+ used_at?: string | undefined;
2372
+ ip?: string | undefined;
2373
+ }, {
2374
+ code: string;
2375
+ created_at: string;
2376
+ email: string;
2377
+ id: string;
2378
+ expires_at: string;
2379
+ authParams: {
2380
+ client_id: string;
2381
+ username?: string | undefined;
2382
+ vendor_id?: string | undefined;
2383
+ response_type?: AuthorizationResponseType | undefined;
2384
+ response_mode?: AuthorizationResponseMode | undefined;
2385
+ redirect_uri?: string | undefined;
2386
+ audience?: string | undefined;
2387
+ state?: string | undefined;
2388
+ nonce?: string | undefined;
2389
+ scope?: string | undefined;
2390
+ code_challenge_method?: CodeChallengeMethod | undefined;
2391
+ code_challenge?: string | undefined;
2392
+ };
2393
+ send: "code" | "link";
2394
+ user_id?: string | undefined;
2395
+ used_at?: string | undefined;
2396
+ ip?: string | undefined;
2397
+ }>;
2398
+ export type OTP = z.infer<typeof otpSchema>;
2399
+ declare const authenticationCodeSchema: z.ZodObject<{
2400
+ created_at: z.ZodString;
2401
+ authParams: z.ZodObject<{
2402
+ client_id: z.ZodString;
2403
+ vendor_id: z.ZodOptional<z.ZodString>;
2404
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2405
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2406
+ redirect_uri: z.ZodOptional<z.ZodString>;
2407
+ audience: z.ZodOptional<z.ZodString>;
2408
+ state: z.ZodOptional<z.ZodString>;
2409
+ nonce: z.ZodOptional<z.ZodString>;
2410
+ scope: z.ZodOptional<z.ZodString>;
2411
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2412
+ code_challenge: z.ZodOptional<z.ZodString>;
2413
+ username: z.ZodOptional<z.ZodString>;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ client_id: string;
2416
+ username?: string | undefined;
2417
+ vendor_id?: string | undefined;
2418
+ response_type?: AuthorizationResponseType | undefined;
2419
+ response_mode?: AuthorizationResponseMode | undefined;
2420
+ redirect_uri?: string | undefined;
2421
+ audience?: string | undefined;
2422
+ state?: string | undefined;
2423
+ nonce?: string | undefined;
2424
+ scope?: string | undefined;
2425
+ code_challenge_method?: CodeChallengeMethod | undefined;
2426
+ code_challenge?: string | undefined;
2427
+ }, {
2428
+ client_id: string;
2429
+ username?: string | undefined;
2430
+ vendor_id?: string | undefined;
2431
+ response_type?: AuthorizationResponseType | undefined;
2432
+ response_mode?: AuthorizationResponseMode | undefined;
2433
+ redirect_uri?: string | undefined;
2434
+ audience?: string | undefined;
2435
+ state?: string | undefined;
2436
+ nonce?: string | undefined;
2437
+ scope?: string | undefined;
2438
+ code_challenge_method?: CodeChallengeMethod | undefined;
2439
+ code_challenge?: string | undefined;
2440
+ }>;
2441
+ code: z.ZodString;
2442
+ user_id: z.ZodString;
2443
+ expires_at: z.ZodString;
2444
+ used_at: z.ZodOptional<z.ZodString>;
2445
+ }, "strip", z.ZodTypeAny, {
2446
+ code: string;
2447
+ created_at: string;
2448
+ user_id: string;
2449
+ expires_at: string;
2450
+ authParams: {
2451
+ client_id: string;
2452
+ username?: string | undefined;
2453
+ vendor_id?: string | undefined;
2454
+ response_type?: AuthorizationResponseType | undefined;
2455
+ response_mode?: AuthorizationResponseMode | undefined;
2456
+ redirect_uri?: string | undefined;
2457
+ audience?: string | undefined;
2458
+ state?: string | undefined;
2459
+ nonce?: string | undefined;
2460
+ scope?: string | undefined;
2461
+ code_challenge_method?: CodeChallengeMethod | undefined;
2462
+ code_challenge?: string | undefined;
2463
+ };
2464
+ used_at?: string | undefined;
2465
+ }, {
2466
+ code: string;
2467
+ created_at: string;
2468
+ user_id: string;
2469
+ expires_at: string;
2470
+ authParams: {
2471
+ client_id: string;
2472
+ username?: string | undefined;
2473
+ vendor_id?: string | undefined;
2474
+ response_type?: AuthorizationResponseType | undefined;
2475
+ response_mode?: AuthorizationResponseMode | undefined;
2476
+ redirect_uri?: string | undefined;
2477
+ audience?: string | undefined;
2478
+ state?: string | undefined;
2479
+ nonce?: string | undefined;
2480
+ scope?: string | undefined;
2481
+ code_challenge_method?: CodeChallengeMethod | undefined;
2482
+ code_challenge?: string | undefined;
2483
+ };
2484
+ used_at?: string | undefined;
2485
+ }>;
2486
+ export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
2487
+ export interface ListParams {
2488
+ page: number;
2489
+ per_page: number;
2490
+ include_totals: boolean;
2491
+ q?: string;
2492
+ sort?: {
2493
+ sort_by: string;
2494
+ sort_order: "asc" | "desc";
2495
+ };
2496
+ }
2497
+ export interface ListCodesResponse extends Totals {
2498
+ codes: Code[];
2499
+ }
2500
+ export interface CodesAdapter {
2501
+ create: (tenant_id: string, authCode: Code) => Promise<Code>;
2502
+ get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
2503
+ list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
2504
+ remove: (tenant_id: string, code: string) => Promise<boolean>;
2505
+ }
2506
+ export interface OTPAdapter {
2507
+ create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
2508
+ list: (tenant_id: string, email: string) => Promise<OTP[]>;
2509
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
2510
+ }
2511
+ export interface PasswordsAdapter {
2512
+ create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
2513
+ update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
2514
+ get: (tenant_id: string, user_id: string) => Promise<Password>;
2515
+ }
2516
+ export interface ListSesssionsResponse extends Totals {
2517
+ sessions: Session[];
2518
+ }
2519
+ export interface SessionsAdapter {
2520
+ create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
2521
+ get: (tenant_id: string, id: string) => Promise<Session | null>;
2522
+ list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
2523
+ update: (tenant_id: string, id: string, session: {
2524
+ used_at: string;
2525
+ }) => Promise<boolean>;
2526
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
2527
+ }
2528
+ export interface CreateTenantParams {
2529
+ name: string;
2530
+ audience: string;
2531
+ sender_name: string;
2532
+ sender_email: string;
2533
+ id?: string;
2534
+ }
2535
+ export interface TenantsDataAdapter {
2536
+ create(params: CreateTenantParams): Promise<Tenant>;
2537
+ get(id: string): Promise<Tenant | null>;
2538
+ list(params: ListParams): Promise<{
2539
+ tenants: Tenant[];
2540
+ totals?: Totals;
2541
+ }>;
2542
+ update(id: string, tenant: Partial<Tenant>): Promise<void>;
2543
+ remove(tenantId: string): Promise<boolean>;
2544
+ }
2545
+ export interface TicketsAdapter {
2546
+ create: (ticket: Ticket) => Promise<void>;
2547
+ get: (tenant_id: string, id: string) => Promise<Ticket | null>;
2548
+ remove: (tenant_id: string, id: string) => Promise<void>;
2549
+ }
2550
+ export interface ListUsersResponse extends Totals {
2551
+ users: User[];
2552
+ }
2553
+ export interface UserDataAdapter {
2554
+ get(tenant_id: string, id: string): Promise<User | null>;
2555
+ create(tenantId: string, user: User): Promise<User>;
2556
+ remove(tenantId: string, id: string): Promise<boolean>;
2557
+ list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
2558
+ update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
2559
+ unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
2560
+ }
2561
+ export interface ListLogsResponse extends Totals {
2562
+ logs: LogsResponse[];
2563
+ }
2564
+ export interface LogsDataAdapter {
2565
+ create(tenantId: string, params: Log): Promise<Log>;
2566
+ list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
2567
+ get(tenantId: string, logId: string): Promise<LogsResponse | null>;
2568
+ }
2569
+ export interface CreateApplicationParams {
2570
+ name: string;
2571
+ allowed_web_origins: string;
2572
+ allowed_callback_urls: string;
2573
+ allowed_logout_urls: string;
2574
+ email_validation: "enabled" | "disabled" | "enforced";
2575
+ client_secret: string;
2576
+ id: string;
2577
+ disable_sign_ups: boolean;
2578
+ }
2579
+ export interface ApplicationsAdapter {
2580
+ create(tenant_id: string, params: CreateApplicationParams): Promise<Application>;
2581
+ get(tenant_id: string, id: string): Promise<Application | null>;
2582
+ remove(tenant_id: string, id: string): Promise<boolean>;
2583
+ list(tenant_id: string, params: ListParams): Promise<{
2584
+ applications: Application[];
2585
+ totals?: Totals;
2586
+ }>;
2587
+ update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
2588
+ }
2589
+ export interface UniversalLoginSessionsAdapter {
2590
+ create: (tenant_id: string, session: UniversalLoginSessionInsert) => Promise<UniversalLoginSession>;
2591
+ update: (tenant_id: string, id: string, session: UniversalLoginSession) => Promise<boolean>;
2592
+ get: (id: string) => Promise<UniversalLoginSession | null>;
2593
+ }
2594
+ export interface ListConnectionsResponse extends Totals {
2595
+ connections: Connection[];
2596
+ }
2597
+ export interface ConnectionsAdapter {
2598
+ create(tenant_id: string, params: ConnectionInsert): Promise<Connection>;
2599
+ remove(tenant_id: string, connection_id: string): Promise<boolean>;
2600
+ get(tenant_id: string, connection_id: string): Promise<Connection | null>;
2601
+ update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
2602
+ list(tenant_id: string, params: ListParams): Promise<ListConnectionsResponse>;
2603
+ }
2604
+ export interface ListDomainsResponse extends Totals {
2605
+ domains: Domain[];
2606
+ }
2607
+ export interface DomainsAdapter {
2608
+ create(tenant_id: string, params: Domain): Promise<Domain>;
2609
+ list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
2610
+ }
2611
+ export interface KeysAdapter {
2612
+ create: (key: Certificate) => Promise<void>;
2613
+ list: () => Promise<Certificate[]>;
2614
+ revoke: (kid: string, revoke_at: Date) => Promise<boolean>;
2615
+ }
2616
+ export interface BrandingAdapter {
2617
+ set: (tenant_id: string, authCode: Branding) => Promise<void>;
2618
+ get: (tenant_id: string) => Promise<Branding | null>;
2619
+ }
2620
+ export interface AuthenticationCodesAdapter {
2621
+ create: (tenant_id: string, authCode: AuthenticationCode) => Promise<void>;
2622
+ get: (tenant_id: string, code: string) => Promise<AuthenticationCode>;
2623
+ }
2624
+ export interface ListHooksResponse extends Totals {
2625
+ hooks: Hook[];
2626
+ }
2627
+ export interface HooksAdapter {
2628
+ create: (tenant_id: string, hook: HookInsert) => Promise<Hook>;
2629
+ remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
2630
+ get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
2631
+ update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
2632
+ list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
2633
+ }
2634
+ export interface ClientsAdapter {
2635
+ get: (id: string) => Promise<PartialClient | null>;
2636
+ }
2637
+ export interface ThemesAdapter {
2638
+ create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
2639
+ remove: (tenant_id: string, themeId: string) => Promise<boolean>;
2640
+ get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
2641
+ update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
2642
+ }
2643
+ export interface LoginsAdapter {
2644
+ create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
2645
+ update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
2646
+ get: (tenant_id: string, login_id: string) => Promise<Login | null>;
2647
+ remove: (tenant_id: string, login_id: string) => Promise<boolean>;
2648
+ }
2649
+ export interface DataAdapters {
2650
+ applications: ApplicationsAdapter;
2651
+ authenticationCodes: AuthenticationCodesAdapter;
2652
+ branding: BrandingAdapter;
2653
+ clients: ClientsAdapter;
2654
+ codes: CodesAdapter;
2655
+ connections: ConnectionsAdapter;
2656
+ domains: DomainsAdapter;
2657
+ hooks: HooksAdapter;
2658
+ keys: KeysAdapter;
2659
+ logins: LoginsAdapter;
2660
+ logs: LogsDataAdapter;
2661
+ OTP: OTPAdapter;
2662
+ passwords: PasswordsAdapter;
2663
+ sessions: SessionsAdapter;
2664
+ tenants: TenantsDataAdapter;
2665
+ themes: ThemesAdapter;
2666
+ tickets: TicketsAdapter;
2667
+ universalLoginSessions: UniversalLoginSessionsAdapter;
2668
+ users: UserDataAdapter;
2669
+ }
2670
+ export type Bindings = {
2671
+ ISSUER: string;
2672
+ ENVIRONMENT: string;
2673
+ AUTH_URL: string;
2674
+ data: DataAdapters;
2675
+ JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
2676
+ };
2677
+ export interface AuthHeroConfig {
2678
+ dataAdapter: DataAdapters;
2679
+ }
2680
+ export declare function init(options: AuthHeroConfig): OpenAPIHono<{
2681
+ Bindings: Bindings;
2682
+ }, {}, "/">;
2683
+
2684
+ export {};