authhero 0.9.0 → 0.12.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.
@@ -10,12 +10,132 @@ export type Variables = {
10
10
  connection?: string;
11
11
  body?: any;
12
12
  };
13
+ export declare const totalsSchema: z.ZodObject<{
14
+ start: z.ZodNumber;
15
+ limit: z.ZodNumber;
16
+ length: z.ZodNumber;
17
+ }, "strip", z.ZodTypeAny, {
18
+ start: number;
19
+ limit: number;
20
+ length: number;
21
+ }, {
22
+ start: number;
23
+ limit: number;
24
+ length: number;
25
+ }>;
13
26
  export interface Totals {
14
27
  start: number;
15
28
  limit: number;
16
29
  length: number;
17
30
  }
18
- declare const userSchema: z.ZodObject<{
31
+ export declare const baseUserSchema: z.ZodObject<{
32
+ email: z.ZodOptional<z.ZodString>;
33
+ username: z.ZodOptional<z.ZodString>;
34
+ given_name: z.ZodOptional<z.ZodString>;
35
+ family_name: z.ZodOptional<z.ZodString>;
36
+ nickname: z.ZodOptional<z.ZodString>;
37
+ name: z.ZodOptional<z.ZodString>;
38
+ picture: z.ZodOptional<z.ZodString>;
39
+ locale: z.ZodOptional<z.ZodString>;
40
+ linked_to: z.ZodOptional<z.ZodString>;
41
+ profileData: z.ZodOptional<z.ZodString>;
42
+ user_id: z.ZodOptional<z.ZodString>;
43
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
44
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ email?: string | undefined;
47
+ name?: string | undefined;
48
+ username?: string | undefined;
49
+ given_name?: string | undefined;
50
+ family_name?: string | undefined;
51
+ user_id?: string | undefined;
52
+ profileData?: string | undefined;
53
+ nickname?: string | undefined;
54
+ picture?: string | undefined;
55
+ locale?: string | undefined;
56
+ linked_to?: string | undefined;
57
+ app_metadata?: any;
58
+ user_metadata?: any;
59
+ }, {
60
+ email?: string | undefined;
61
+ name?: string | undefined;
62
+ username?: string | undefined;
63
+ given_name?: string | undefined;
64
+ family_name?: string | undefined;
65
+ user_id?: string | undefined;
66
+ profileData?: string | undefined;
67
+ nickname?: string | undefined;
68
+ picture?: string | undefined;
69
+ locale?: string | undefined;
70
+ linked_to?: string | undefined;
71
+ app_metadata?: any;
72
+ user_metadata?: any;
73
+ }>;
74
+ export type BaseUser = z.infer<typeof baseUserSchema>;
75
+ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
76
+ email: z.ZodOptional<z.ZodString>;
77
+ username: z.ZodOptional<z.ZodString>;
78
+ given_name: z.ZodOptional<z.ZodString>;
79
+ family_name: z.ZodOptional<z.ZodString>;
80
+ nickname: z.ZodOptional<z.ZodString>;
81
+ name: z.ZodOptional<z.ZodString>;
82
+ picture: z.ZodOptional<z.ZodString>;
83
+ locale: z.ZodOptional<z.ZodString>;
84
+ linked_to: z.ZodOptional<z.ZodString>;
85
+ profileData: z.ZodOptional<z.ZodString>;
86
+ user_id: z.ZodOptional<z.ZodString>;
87
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
88
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
89
+ }, {
90
+ email_verified: z.ZodDefault<z.ZodBoolean>;
91
+ verify_email: z.ZodOptional<z.ZodBoolean>;
92
+ last_ip: z.ZodOptional<z.ZodString>;
93
+ last_login: z.ZodOptional<z.ZodString>;
94
+ user_id: z.ZodOptional<z.ZodString>;
95
+ provider: z.ZodDefault<z.ZodString>;
96
+ connection: z.ZodDefault<z.ZodString>;
97
+ }>, "strip", z.ZodTypeAny, {
98
+ email_verified: boolean;
99
+ connection: string;
100
+ provider: string;
101
+ email?: string | undefined;
102
+ name?: string | undefined;
103
+ username?: string | undefined;
104
+ given_name?: string | undefined;
105
+ family_name?: string | undefined;
106
+ user_id?: string | undefined;
107
+ profileData?: string | undefined;
108
+ nickname?: string | undefined;
109
+ picture?: string | undefined;
110
+ locale?: string | undefined;
111
+ linked_to?: string | undefined;
112
+ app_metadata?: any;
113
+ user_metadata?: any;
114
+ verify_email?: boolean | undefined;
115
+ last_ip?: string | undefined;
116
+ last_login?: string | undefined;
117
+ }, {
118
+ email?: string | undefined;
119
+ email_verified?: boolean | undefined;
120
+ name?: string | undefined;
121
+ username?: string | undefined;
122
+ given_name?: string | undefined;
123
+ family_name?: string | undefined;
124
+ connection?: string | undefined;
125
+ user_id?: string | undefined;
126
+ provider?: string | undefined;
127
+ profileData?: string | undefined;
128
+ nickname?: string | undefined;
129
+ picture?: string | undefined;
130
+ locale?: string | undefined;
131
+ linked_to?: string | undefined;
132
+ app_metadata?: any;
133
+ user_metadata?: any;
134
+ verify_email?: boolean | undefined;
135
+ last_ip?: string | undefined;
136
+ last_login?: string | undefined;
137
+ }>;
138
+ export declare const userSchema: z.ZodObject<{
19
139
  user_id: z.ZodString;
20
140
  email: z.ZodString;
21
141
  is_social: z.ZodBoolean;
@@ -199,8 +319,316 @@ declare const userSchema: z.ZodObject<{
199
319
  }, z.ZodAny, "strip"> | undefined;
200
320
  }[] | undefined;
201
321
  }>;
202
- export type User = z.infer<typeof userSchema>;
203
- declare const applicationInsertSchema: z.ZodObject<{
322
+ export type User = z.infer<typeof userSchema>;
323
+ export declare const auth0UserResponseSchema: z.ZodObject<{
324
+ user_id: z.ZodString;
325
+ email: z.ZodString;
326
+ is_social: z.ZodBoolean;
327
+ login_count: z.ZodNumber;
328
+ identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ connection: z.ZodString;
330
+ user_id: z.ZodString;
331
+ provider: z.ZodString;
332
+ isSocial: z.ZodBoolean;
333
+ access_token: z.ZodOptional<z.ZodString>;
334
+ access_token_secret: z.ZodOptional<z.ZodString>;
335
+ refresh_token: z.ZodOptional<z.ZodString>;
336
+ profileData: z.ZodOptional<z.ZodObject<{
337
+ email: z.ZodOptional<z.ZodString>;
338
+ email_verified: z.ZodOptional<z.ZodBoolean>;
339
+ name: z.ZodOptional<z.ZodString>;
340
+ username: z.ZodOptional<z.ZodString>;
341
+ given_name: z.ZodOptional<z.ZodString>;
342
+ phone_number: z.ZodOptional<z.ZodString>;
343
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
344
+ family_name: z.ZodOptional<z.ZodString>;
345
+ }, "strip", z.ZodAny, z.objectOutputType<{
346
+ email: z.ZodOptional<z.ZodString>;
347
+ email_verified: z.ZodOptional<z.ZodBoolean>;
348
+ name: z.ZodOptional<z.ZodString>;
349
+ username: z.ZodOptional<z.ZodString>;
350
+ given_name: z.ZodOptional<z.ZodString>;
351
+ phone_number: z.ZodOptional<z.ZodString>;
352
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
353
+ family_name: z.ZodOptional<z.ZodString>;
354
+ }, z.ZodAny, "strip">, z.objectInputType<{
355
+ email: z.ZodOptional<z.ZodString>;
356
+ email_verified: z.ZodOptional<z.ZodBoolean>;
357
+ name: z.ZodOptional<z.ZodString>;
358
+ username: z.ZodOptional<z.ZodString>;
359
+ given_name: z.ZodOptional<z.ZodString>;
360
+ phone_number: z.ZodOptional<z.ZodString>;
361
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
362
+ family_name: z.ZodOptional<z.ZodString>;
363
+ }, z.ZodAny, "strip">>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ connection: string;
366
+ user_id: string;
367
+ provider: string;
368
+ isSocial: boolean;
369
+ access_token?: string | undefined;
370
+ access_token_secret?: string | undefined;
371
+ refresh_token?: string | undefined;
372
+ profileData?: z.objectOutputType<{
373
+ email: z.ZodOptional<z.ZodString>;
374
+ email_verified: z.ZodOptional<z.ZodBoolean>;
375
+ name: z.ZodOptional<z.ZodString>;
376
+ username: z.ZodOptional<z.ZodString>;
377
+ given_name: z.ZodOptional<z.ZodString>;
378
+ phone_number: z.ZodOptional<z.ZodString>;
379
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
380
+ family_name: z.ZodOptional<z.ZodString>;
381
+ }, z.ZodAny, "strip"> | undefined;
382
+ }, {
383
+ connection: string;
384
+ user_id: string;
385
+ provider: string;
386
+ isSocial: boolean;
387
+ access_token?: string | undefined;
388
+ access_token_secret?: string | undefined;
389
+ refresh_token?: string | undefined;
390
+ profileData?: z.objectInputType<{
391
+ email: z.ZodOptional<z.ZodString>;
392
+ email_verified: z.ZodOptional<z.ZodBoolean>;
393
+ name: z.ZodOptional<z.ZodString>;
394
+ username: z.ZodOptional<z.ZodString>;
395
+ given_name: z.ZodOptional<z.ZodString>;
396
+ phone_number: z.ZodOptional<z.ZodString>;
397
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
398
+ family_name: z.ZodOptional<z.ZodString>;
399
+ }, z.ZodAny, "strip"> | undefined;
400
+ }>, "many">>;
401
+ created_at: z.ZodString;
402
+ updated_at: z.ZodString;
403
+ username: z.ZodOptional<z.ZodString>;
404
+ given_name: z.ZodOptional<z.ZodString>;
405
+ family_name: z.ZodOptional<z.ZodString>;
406
+ nickname: z.ZodOptional<z.ZodString>;
407
+ name: z.ZodOptional<z.ZodString>;
408
+ picture: z.ZodOptional<z.ZodString>;
409
+ locale: z.ZodOptional<z.ZodString>;
410
+ linked_to: z.ZodOptional<z.ZodString>;
411
+ profileData: z.ZodOptional<z.ZodString>;
412
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
413
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
414
+ email_verified: z.ZodDefault<z.ZodBoolean>;
415
+ verify_email: z.ZodOptional<z.ZodBoolean>;
416
+ last_ip: z.ZodOptional<z.ZodString>;
417
+ last_login: z.ZodOptional<z.ZodString>;
418
+ provider: z.ZodDefault<z.ZodString>;
419
+ connection: z.ZodDefault<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ created_at: string;
422
+ updated_at: string;
423
+ email: string;
424
+ email_verified: boolean;
425
+ connection: string;
426
+ user_id: string;
427
+ provider: string;
428
+ is_social: boolean;
429
+ login_count: number;
430
+ name?: string | undefined;
431
+ username?: string | undefined;
432
+ given_name?: string | undefined;
433
+ family_name?: string | undefined;
434
+ profileData?: string | undefined;
435
+ nickname?: string | undefined;
436
+ picture?: string | undefined;
437
+ locale?: string | undefined;
438
+ linked_to?: string | undefined;
439
+ app_metadata?: any;
440
+ user_metadata?: any;
441
+ verify_email?: boolean | undefined;
442
+ last_ip?: string | undefined;
443
+ last_login?: string | undefined;
444
+ identities?: {
445
+ connection: string;
446
+ user_id: string;
447
+ provider: string;
448
+ isSocial: boolean;
449
+ access_token?: string | undefined;
450
+ access_token_secret?: string | undefined;
451
+ refresh_token?: string | undefined;
452
+ profileData?: z.objectOutputType<{
453
+ email: z.ZodOptional<z.ZodString>;
454
+ email_verified: z.ZodOptional<z.ZodBoolean>;
455
+ name: z.ZodOptional<z.ZodString>;
456
+ username: z.ZodOptional<z.ZodString>;
457
+ given_name: z.ZodOptional<z.ZodString>;
458
+ phone_number: z.ZodOptional<z.ZodString>;
459
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
460
+ family_name: z.ZodOptional<z.ZodString>;
461
+ }, z.ZodAny, "strip"> | undefined;
462
+ }[] | undefined;
463
+ }, {
464
+ created_at: string;
465
+ updated_at: string;
466
+ email: string;
467
+ user_id: string;
468
+ is_social: boolean;
469
+ login_count: number;
470
+ email_verified?: boolean | undefined;
471
+ name?: string | undefined;
472
+ username?: string | undefined;
473
+ given_name?: string | undefined;
474
+ family_name?: string | undefined;
475
+ connection?: string | undefined;
476
+ provider?: string | undefined;
477
+ profileData?: string | undefined;
478
+ nickname?: string | undefined;
479
+ picture?: string | undefined;
480
+ locale?: string | undefined;
481
+ linked_to?: string | undefined;
482
+ app_metadata?: any;
483
+ user_metadata?: any;
484
+ verify_email?: boolean | undefined;
485
+ last_ip?: string | undefined;
486
+ last_login?: string | undefined;
487
+ identities?: {
488
+ connection: string;
489
+ user_id: string;
490
+ provider: string;
491
+ isSocial: boolean;
492
+ access_token?: string | undefined;
493
+ access_token_secret?: string | undefined;
494
+ refresh_token?: string | undefined;
495
+ profileData?: z.objectInputType<{
496
+ email: z.ZodOptional<z.ZodString>;
497
+ email_verified: z.ZodOptional<z.ZodBoolean>;
498
+ name: z.ZodOptional<z.ZodString>;
499
+ username: z.ZodOptional<z.ZodString>;
500
+ given_name: z.ZodOptional<z.ZodString>;
501
+ phone_number: z.ZodOptional<z.ZodString>;
502
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
503
+ family_name: z.ZodOptional<z.ZodString>;
504
+ }, z.ZodAny, "strip"> | undefined;
505
+ }[] | undefined;
506
+ }>;
507
+ export interface PostUsersBody extends BaseUser {
508
+ password?: string;
509
+ verify_email?: boolean;
510
+ username?: string;
511
+ connection?: string;
512
+ email_verified?: boolean;
513
+ }
514
+ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
515
+ email: z.ZodOptional<z.ZodString>;
516
+ username: z.ZodOptional<z.ZodString>;
517
+ given_name: z.ZodOptional<z.ZodString>;
518
+ family_name: z.ZodOptional<z.ZodString>;
519
+ nickname: z.ZodOptional<z.ZodString>;
520
+ name: z.ZodOptional<z.ZodString>;
521
+ picture: z.ZodOptional<z.ZodString>;
522
+ locale: z.ZodOptional<z.ZodString>;
523
+ linked_to: z.ZodOptional<z.ZodString>;
524
+ profileData: z.ZodOptional<z.ZodString>;
525
+ user_id: z.ZodOptional<z.ZodString>;
526
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
527
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
528
+ }, {
529
+ email: z.ZodString;
530
+ login_count: z.ZodNumber;
531
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
532
+ last_ip: z.ZodOptional<z.ZodString>;
533
+ last_login: z.ZodOptional<z.ZodString>;
534
+ user_id: z.ZodString;
535
+ }>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
536
+ email: z.ZodOptional<z.ZodString>;
537
+ username: z.ZodOptional<z.ZodString>;
538
+ given_name: z.ZodOptional<z.ZodString>;
539
+ family_name: z.ZodOptional<z.ZodString>;
540
+ nickname: z.ZodOptional<z.ZodString>;
541
+ name: z.ZodOptional<z.ZodString>;
542
+ picture: z.ZodOptional<z.ZodString>;
543
+ locale: z.ZodOptional<z.ZodString>;
544
+ linked_to: z.ZodOptional<z.ZodString>;
545
+ profileData: z.ZodOptional<z.ZodString>;
546
+ user_id: z.ZodOptional<z.ZodString>;
547
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
548
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
549
+ }, {
550
+ email: z.ZodString;
551
+ login_count: z.ZodNumber;
552
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
553
+ last_ip: z.ZodOptional<z.ZodString>;
554
+ last_login: z.ZodOptional<z.ZodString>;
555
+ user_id: z.ZodString;
556
+ }>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
557
+ email: z.ZodOptional<z.ZodString>;
558
+ username: z.ZodOptional<z.ZodString>;
559
+ given_name: z.ZodOptional<z.ZodString>;
560
+ family_name: z.ZodOptional<z.ZodString>;
561
+ nickname: z.ZodOptional<z.ZodString>;
562
+ name: z.ZodOptional<z.ZodString>;
563
+ picture: z.ZodOptional<z.ZodString>;
564
+ locale: z.ZodOptional<z.ZodString>;
565
+ linked_to: z.ZodOptional<z.ZodString>;
566
+ profileData: z.ZodOptional<z.ZodString>;
567
+ user_id: z.ZodOptional<z.ZodString>;
568
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
569
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
570
+ }, {
571
+ email: z.ZodString;
572
+ login_count: z.ZodNumber;
573
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
574
+ last_ip: z.ZodOptional<z.ZodString>;
575
+ last_login: z.ZodOptional<z.ZodString>;
576
+ user_id: z.ZodString;
577
+ }>, z.ZodAny, "strip">>;
578
+ export type UserResponse = z.infer<typeof userResponseSchema>;
579
+ export declare const samlpAddon: z.ZodObject<{
580
+ audience: z.ZodOptional<z.ZodString>;
581
+ recipient: z.ZodOptional<z.ZodString>;
582
+ createUpnClaim: z.ZodOptional<z.ZodBoolean>;
583
+ mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
584
+ passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
585
+ mapIdentities: z.ZodOptional<z.ZodBoolean>;
586
+ signatureAlgorithm: z.ZodOptional<z.ZodString>;
587
+ digestAlgorithm: z.ZodOptional<z.ZodString>;
588
+ issuer: z.ZodOptional<z.ZodString>;
589
+ destination: z.ZodOptional<z.ZodString>;
590
+ lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
591
+ signResponse: z.ZodOptional<z.ZodBoolean>;
592
+ nameIdentifierFormat: z.ZodOptional<z.ZodString>;
593
+ nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594
+ authnContextClassRef: z.ZodOptional<z.ZodString>;
595
+ mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ audience?: string | undefined;
598
+ recipient?: string | undefined;
599
+ createUpnClaim?: boolean | undefined;
600
+ mapUnknownClaimsAsIs?: boolean | undefined;
601
+ passthroughClaimsWithNoMapping?: boolean | undefined;
602
+ mapIdentities?: boolean | undefined;
603
+ signatureAlgorithm?: string | undefined;
604
+ digestAlgorithm?: string | undefined;
605
+ issuer?: string | undefined;
606
+ destination?: string | undefined;
607
+ lifetimeInSeconds?: number | undefined;
608
+ signResponse?: boolean | undefined;
609
+ nameIdentifierFormat?: string | undefined;
610
+ nameIdentifierProbes?: string[] | undefined;
611
+ authnContextClassRef?: string | undefined;
612
+ mappings?: Record<string, string> | undefined;
613
+ }, {
614
+ audience?: string | undefined;
615
+ recipient?: string | undefined;
616
+ createUpnClaim?: boolean | undefined;
617
+ mapUnknownClaimsAsIs?: boolean | undefined;
618
+ passthroughClaimsWithNoMapping?: boolean | undefined;
619
+ mapIdentities?: boolean | undefined;
620
+ signatureAlgorithm?: string | undefined;
621
+ digestAlgorithm?: string | undefined;
622
+ issuer?: string | undefined;
623
+ destination?: string | undefined;
624
+ lifetimeInSeconds?: number | undefined;
625
+ signResponse?: boolean | undefined;
626
+ nameIdentifierFormat?: string | undefined;
627
+ nameIdentifierProbes?: string[] | undefined;
628
+ authnContextClassRef?: string | undefined;
629
+ mappings?: Record<string, string> | undefined;
630
+ }>;
631
+ export declare const applicationInsertSchema: z.ZodObject<{
204
632
  id: z.ZodString;
205
633
  name: z.ZodString;
206
634
  callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
@@ -371,7 +799,7 @@ declare const applicationInsertSchema: z.ZodObject<{
371
799
  disable_sign_ups?: boolean | undefined;
372
800
  }>;
373
801
  export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
374
- declare const applicationSchema: z.ZodObject<{
802
+ export declare const applicationSchema: z.ZodObject<{
375
803
  id: z.ZodString;
376
804
  name: z.ZodString;
377
805
  callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
@@ -548,23 +976,73 @@ declare const applicationSchema: z.ZodObject<{
548
976
  disable_sign_ups?: boolean | undefined;
549
977
  }>;
550
978
  export type Application = z.infer<typeof applicationSchema>;
551
- declare enum AuthorizationResponseType {
979
+ export declare enum AuthorizationResponseType {
552
980
  TOKEN = "token",
553
981
  TOKEN_ID_TOKEN = "token id_token",
554
982
  CODE = "code"
555
983
  }
556
- declare enum AuthorizationResponseMode {
984
+ export declare enum AuthorizationResponseMode {
557
985
  QUERY = "query",
558
986
  FRAGMENT = "fragment",
559
987
  FORM_POST = "form_post",
560
988
  WEB_MESSAGE = "web_message",
561
989
  SAML_POST = "saml_post"
562
990
  }
563
- declare enum CodeChallengeMethod {
991
+ export declare enum CodeChallengeMethod {
564
992
  S265 = "S256",
565
993
  plain = "plain"
566
994
  }
567
- declare const brandingSchema: z.ZodObject<{
995
+ export declare const authParamsSchema: z.ZodObject<{
996
+ client_id: z.ZodString;
997
+ vendor_id: z.ZodOptional<z.ZodString>;
998
+ act_as: z.ZodOptional<z.ZodString>;
999
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
1000
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
1001
+ redirect_uri: z.ZodOptional<z.ZodString>;
1002
+ audience: z.ZodOptional<z.ZodString>;
1003
+ state: z.ZodOptional<z.ZodString>;
1004
+ nonce: z.ZodOptional<z.ZodString>;
1005
+ scope: z.ZodOptional<z.ZodString>;
1006
+ prompt: z.ZodOptional<z.ZodString>;
1007
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
1008
+ code_challenge: z.ZodOptional<z.ZodString>;
1009
+ username: z.ZodOptional<z.ZodString>;
1010
+ ui_locales: z.ZodOptional<z.ZodString>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ client_id: string;
1013
+ username?: string | undefined;
1014
+ audience?: string | undefined;
1015
+ vendor_id?: string | undefined;
1016
+ act_as?: string | undefined;
1017
+ response_type?: AuthorizationResponseType | undefined;
1018
+ response_mode?: AuthorizationResponseMode | undefined;
1019
+ redirect_uri?: string | undefined;
1020
+ state?: string | undefined;
1021
+ nonce?: string | undefined;
1022
+ scope?: string | undefined;
1023
+ prompt?: string | undefined;
1024
+ code_challenge_method?: CodeChallengeMethod | undefined;
1025
+ code_challenge?: string | undefined;
1026
+ ui_locales?: string | undefined;
1027
+ }, {
1028
+ client_id: string;
1029
+ username?: string | undefined;
1030
+ audience?: string | undefined;
1031
+ vendor_id?: string | undefined;
1032
+ act_as?: string | undefined;
1033
+ response_type?: AuthorizationResponseType | undefined;
1034
+ response_mode?: AuthorizationResponseMode | undefined;
1035
+ redirect_uri?: string | undefined;
1036
+ state?: string | undefined;
1037
+ nonce?: string | undefined;
1038
+ scope?: string | undefined;
1039
+ prompt?: string | undefined;
1040
+ code_challenge_method?: CodeChallengeMethod | undefined;
1041
+ code_challenge?: string | undefined;
1042
+ ui_locales?: string | undefined;
1043
+ }>;
1044
+ export type AuthParams = z.infer<typeof authParamsSchema>;
1045
+ export declare const brandingSchema: z.ZodObject<{
568
1046
  colors: z.ZodOptional<z.ZodObject<{
569
1047
  primary: z.ZodString;
570
1048
  page_background: z.ZodOptional<z.ZodObject<{
@@ -1086,7 +1564,7 @@ declare const ClientSchema: z.ZodObject<{
1086
1564
  disable_sign_ups?: boolean | undefined;
1087
1565
  }>;
1088
1566
  export type Client = z.infer<typeof ClientSchema>;
1089
- declare const codeTypeSchema: z.ZodEnum<[
1567
+ export declare const codeTypeSchema: z.ZodEnum<[
1090
1568
  "password_reset",
1091
1569
  "email_verification",
1092
1570
  "otp",
@@ -1095,7 +1573,7 @@ declare const codeTypeSchema: z.ZodEnum<[
1095
1573
  "ticket"
1096
1574
  ]>;
1097
1575
  export type CodeType = z.infer<typeof codeTypeSchema>;
1098
- declare const codeInsertSchema: z.ZodObject<{
1576
+ export declare const codeInsertSchema: z.ZodObject<{
1099
1577
  code_id: z.ZodString;
1100
1578
  login_id: z.ZodString;
1101
1579
  connection_id: z.ZodOptional<z.ZodString>;
@@ -1128,7 +1606,7 @@ declare const codeInsertSchema: z.ZodObject<{
1128
1606
  used_at?: string | undefined;
1129
1607
  }>;
1130
1608
  export type CodeInsert = z.infer<typeof codeInsertSchema>;
1131
- declare const codeSchema: z.ZodObject<{
1609
+ export declare const codeSchema: z.ZodObject<{
1132
1610
  created_at: z.ZodString;
1133
1611
  code_id: z.ZodString;
1134
1612
  login_id: z.ZodString;
@@ -1164,7 +1642,7 @@ declare const codeSchema: z.ZodObject<{
1164
1642
  used_at?: string | undefined;
1165
1643
  }>;
1166
1644
  export type Code = z.infer<typeof codeSchema>;
1167
- declare const connectionInsertSchema: z.ZodObject<{
1645
+ export declare const connectionInsertSchema: z.ZodObject<{
1168
1646
  id: z.ZodOptional<z.ZodString>;
1169
1647
  name: z.ZodString;
1170
1648
  strategy: z.ZodOptional<z.ZodEnum<[
@@ -1271,7 +1749,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1271
1749
  enabled_clients?: string[] | undefined;
1272
1750
  }>;
1273
1751
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1274
- declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1752
+ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1275
1753
  id: z.ZodString;
1276
1754
  created_at: z.ZodEffects<z.ZodString, string, string>;
1277
1755
  updated_at: z.ZodEffects<z.ZodString, string, string>;
@@ -1386,7 +1864,30 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1386
1864
  enabled_clients?: string[] | undefined;
1387
1865
  }>;
1388
1866
  export type Connection = z.infer<typeof connectionSchema>;
1389
- declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
1867
+ export declare const domainInsertSchema: z.ZodObject<{
1868
+ domain: z.ZodString;
1869
+ dkim_private_key: z.ZodOptional<z.ZodString>;
1870
+ dkim_public_key: z.ZodOptional<z.ZodString>;
1871
+ email_api_key: z.ZodOptional<z.ZodString>;
1872
+ email_service: z.ZodEnum<[
1873
+ "mailgun",
1874
+ "mailchannels"
1875
+ ]>;
1876
+ }, "strip", z.ZodTypeAny, {
1877
+ domain: string;
1878
+ email_service: "mailgun" | "mailchannels";
1879
+ dkim_private_key?: string | undefined;
1880
+ dkim_public_key?: string | undefined;
1881
+ email_api_key?: string | undefined;
1882
+ }, {
1883
+ domain: string;
1884
+ email_service: "mailgun" | "mailchannels";
1885
+ dkim_private_key?: string | undefined;
1886
+ dkim_public_key?: string | undefined;
1887
+ email_api_key?: string | undefined;
1888
+ }>;
1889
+ export type DomainInsert = z.infer<typeof domainInsertSchema>;
1890
+ export declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
1390
1891
  created_at: z.ZodString;
1391
1892
  updated_at: z.ZodString;
1392
1893
  }, {
@@ -1419,7 +1920,7 @@ declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
1419
1920
  email_api_key?: string | undefined;
1420
1921
  }>;
1421
1922
  export type Domain = z.infer<typeof domainSchema>;
1422
- declare const hookInsertSchema: z.ZodObject<{
1923
+ export declare const hookInsertSchema: z.ZodObject<{
1423
1924
  trigger_id: z.ZodEnum<[
1424
1925
  "pre-user-signup",
1425
1926
  "post-user-registration",
@@ -1446,7 +1947,7 @@ declare const hookInsertSchema: z.ZodObject<{
1446
1947
  priority?: number | undefined;
1447
1948
  }>;
1448
1949
  export type HookInsert = z.infer<typeof hookInsertSchema>;
1449
- declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1950
+ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1450
1951
  trigger_id: z.ZodEnum<[
1451
1952
  "pre-user-signup",
1452
1953
  "post-user-registration",
@@ -1481,7 +1982,287 @@ declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1481
1982
  priority?: number | undefined;
1482
1983
  }>;
1483
1984
  export type Hook = z.infer<typeof hookSchema>;
1484
- declare const loginInsertSchema: z.ZodObject<{
1985
+ export declare const profileDataSchema: z.ZodObject<{
1986
+ email: z.ZodOptional<z.ZodString>;
1987
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1988
+ name: z.ZodOptional<z.ZodString>;
1989
+ username: z.ZodOptional<z.ZodString>;
1990
+ given_name: z.ZodOptional<z.ZodString>;
1991
+ phone_number: z.ZodOptional<z.ZodString>;
1992
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1993
+ family_name: z.ZodOptional<z.ZodString>;
1994
+ }, "strip", z.ZodAny, z.objectOutputType<{
1995
+ email: z.ZodOptional<z.ZodString>;
1996
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1997
+ name: z.ZodOptional<z.ZodString>;
1998
+ username: z.ZodOptional<z.ZodString>;
1999
+ given_name: z.ZodOptional<z.ZodString>;
2000
+ phone_number: z.ZodOptional<z.ZodString>;
2001
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2002
+ family_name: z.ZodOptional<z.ZodString>;
2003
+ }, z.ZodAny, "strip">, z.objectInputType<{
2004
+ email: z.ZodOptional<z.ZodString>;
2005
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2006
+ name: z.ZodOptional<z.ZodString>;
2007
+ username: z.ZodOptional<z.ZodString>;
2008
+ given_name: z.ZodOptional<z.ZodString>;
2009
+ phone_number: z.ZodOptional<z.ZodString>;
2010
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2011
+ family_name: z.ZodOptional<z.ZodString>;
2012
+ }, z.ZodAny, "strip">>;
2013
+ export declare const identitySchema: z.ZodObject<{
2014
+ connection: z.ZodString;
2015
+ user_id: z.ZodString;
2016
+ provider: z.ZodString;
2017
+ isSocial: z.ZodBoolean;
2018
+ access_token: z.ZodOptional<z.ZodString>;
2019
+ access_token_secret: z.ZodOptional<z.ZodString>;
2020
+ refresh_token: z.ZodOptional<z.ZodString>;
2021
+ profileData: z.ZodOptional<z.ZodObject<{
2022
+ email: z.ZodOptional<z.ZodString>;
2023
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2024
+ name: z.ZodOptional<z.ZodString>;
2025
+ username: z.ZodOptional<z.ZodString>;
2026
+ given_name: z.ZodOptional<z.ZodString>;
2027
+ phone_number: z.ZodOptional<z.ZodString>;
2028
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2029
+ family_name: z.ZodOptional<z.ZodString>;
2030
+ }, "strip", z.ZodAny, z.objectOutputType<{
2031
+ email: z.ZodOptional<z.ZodString>;
2032
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2033
+ name: z.ZodOptional<z.ZodString>;
2034
+ username: z.ZodOptional<z.ZodString>;
2035
+ given_name: z.ZodOptional<z.ZodString>;
2036
+ phone_number: z.ZodOptional<z.ZodString>;
2037
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2038
+ family_name: z.ZodOptional<z.ZodString>;
2039
+ }, z.ZodAny, "strip">, z.objectInputType<{
2040
+ email: z.ZodOptional<z.ZodString>;
2041
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2042
+ name: z.ZodOptional<z.ZodString>;
2043
+ username: z.ZodOptional<z.ZodString>;
2044
+ given_name: z.ZodOptional<z.ZodString>;
2045
+ phone_number: z.ZodOptional<z.ZodString>;
2046
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2047
+ family_name: z.ZodOptional<z.ZodString>;
2048
+ }, z.ZodAny, "strip">>>;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ connection: string;
2051
+ user_id: string;
2052
+ provider: string;
2053
+ isSocial: boolean;
2054
+ access_token?: string | undefined;
2055
+ access_token_secret?: string | undefined;
2056
+ refresh_token?: string | undefined;
2057
+ profileData?: z.objectOutputType<{
2058
+ email: z.ZodOptional<z.ZodString>;
2059
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2060
+ name: z.ZodOptional<z.ZodString>;
2061
+ username: z.ZodOptional<z.ZodString>;
2062
+ given_name: z.ZodOptional<z.ZodString>;
2063
+ phone_number: z.ZodOptional<z.ZodString>;
2064
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2065
+ family_name: z.ZodOptional<z.ZodString>;
2066
+ }, z.ZodAny, "strip"> | undefined;
2067
+ }, {
2068
+ connection: string;
2069
+ user_id: string;
2070
+ provider: string;
2071
+ isSocial: boolean;
2072
+ access_token?: string | undefined;
2073
+ access_token_secret?: string | undefined;
2074
+ refresh_token?: string | undefined;
2075
+ profileData?: z.objectInputType<{
2076
+ email: z.ZodOptional<z.ZodString>;
2077
+ email_verified: z.ZodOptional<z.ZodBoolean>;
2078
+ name: z.ZodOptional<z.ZodString>;
2079
+ username: z.ZodOptional<z.ZodString>;
2080
+ given_name: z.ZodOptional<z.ZodString>;
2081
+ phone_number: z.ZodOptional<z.ZodString>;
2082
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
2083
+ family_name: z.ZodOptional<z.ZodString>;
2084
+ }, z.ZodAny, "strip"> | undefined;
2085
+ }>;
2086
+ export type Identity = z.infer<typeof identitySchema>;
2087
+ export declare const jwksSchema: z.ZodObject<{
2088
+ alg: z.ZodEnum<[
2089
+ "RS256",
2090
+ "RS384",
2091
+ "RS512",
2092
+ "ES256",
2093
+ "ES384",
2094
+ "ES512",
2095
+ "HS256",
2096
+ "HS384",
2097
+ "HS512"
2098
+ ]>;
2099
+ e: z.ZodString;
2100
+ kid: z.ZodString;
2101
+ kty: z.ZodEnum<[
2102
+ "RSA",
2103
+ "EC",
2104
+ "oct"
2105
+ ]>;
2106
+ n: z.ZodString;
2107
+ x5t: z.ZodOptional<z.ZodString>;
2108
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2109
+ use: z.ZodOptional<z.ZodEnum<[
2110
+ "sig",
2111
+ "enc"
2112
+ ]>>;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ kid: string;
2115
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2116
+ e: string;
2117
+ kty: "RSA" | "EC" | "oct";
2118
+ n: string;
2119
+ x5t?: string | undefined;
2120
+ x5c?: string[] | undefined;
2121
+ use?: "sig" | "enc" | undefined;
2122
+ }, {
2123
+ kid: string;
2124
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2125
+ e: string;
2126
+ kty: "RSA" | "EC" | "oct";
2127
+ n: string;
2128
+ x5t?: string | undefined;
2129
+ x5c?: string[] | undefined;
2130
+ use?: "sig" | "enc" | undefined;
2131
+ }>;
2132
+ export declare const jwksKeySchema: z.ZodObject<{
2133
+ keys: z.ZodArray<z.ZodObject<{
2134
+ alg: z.ZodEnum<[
2135
+ "RS256",
2136
+ "RS384",
2137
+ "RS512",
2138
+ "ES256",
2139
+ "ES384",
2140
+ "ES512",
2141
+ "HS256",
2142
+ "HS384",
2143
+ "HS512"
2144
+ ]>;
2145
+ e: z.ZodString;
2146
+ kid: z.ZodString;
2147
+ kty: z.ZodEnum<[
2148
+ "RSA",
2149
+ "EC",
2150
+ "oct"
2151
+ ]>;
2152
+ n: z.ZodString;
2153
+ x5t: z.ZodOptional<z.ZodString>;
2154
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2155
+ use: z.ZodOptional<z.ZodEnum<[
2156
+ "sig",
2157
+ "enc"
2158
+ ]>>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ kid: string;
2161
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2162
+ e: string;
2163
+ kty: "RSA" | "EC" | "oct";
2164
+ n: string;
2165
+ x5t?: string | undefined;
2166
+ x5c?: string[] | undefined;
2167
+ use?: "sig" | "enc" | undefined;
2168
+ }, {
2169
+ kid: string;
2170
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2171
+ e: string;
2172
+ kty: "RSA" | "EC" | "oct";
2173
+ n: string;
2174
+ x5t?: string | undefined;
2175
+ x5c?: string[] | undefined;
2176
+ use?: "sig" | "enc" | undefined;
2177
+ }>, "many">;
2178
+ }, "strip", z.ZodTypeAny, {
2179
+ keys: {
2180
+ kid: string;
2181
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2182
+ e: string;
2183
+ kty: "RSA" | "EC" | "oct";
2184
+ n: string;
2185
+ x5t?: string | undefined;
2186
+ x5c?: string[] | undefined;
2187
+ use?: "sig" | "enc" | undefined;
2188
+ }[];
2189
+ }, {
2190
+ keys: {
2191
+ kid: string;
2192
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
2193
+ e: string;
2194
+ kty: "RSA" | "EC" | "oct";
2195
+ n: string;
2196
+ x5t?: string | undefined;
2197
+ x5c?: string[] | undefined;
2198
+ use?: "sig" | "enc" | undefined;
2199
+ }[];
2200
+ }>;
2201
+ export declare const openIDConfigurationSchema: z.ZodObject<{
2202
+ issuer: z.ZodString;
2203
+ authorization_endpoint: z.ZodString;
2204
+ token_endpoint: z.ZodString;
2205
+ device_authorization_endpoint: z.ZodString;
2206
+ userinfo_endpoint: z.ZodString;
2207
+ mfa_challenge_endpoint: z.ZodString;
2208
+ jwks_uri: z.ZodString;
2209
+ registration_endpoint: z.ZodString;
2210
+ revocation_endpoint: z.ZodString;
2211
+ scopes_supported: z.ZodArray<z.ZodString, "many">;
2212
+ response_types_supported: z.ZodArray<z.ZodString, "many">;
2213
+ code_challenge_methods_supported: z.ZodArray<z.ZodString, "many">;
2214
+ response_modes_supported: z.ZodArray<z.ZodString, "many">;
2215
+ subject_types_supported: z.ZodArray<z.ZodString, "many">;
2216
+ id_token_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
2217
+ token_endpoint_auth_methods_supported: z.ZodArray<z.ZodString, "many">;
2218
+ claims_supported: z.ZodArray<z.ZodString, "many">;
2219
+ request_uri_parameter_supported: z.ZodBoolean;
2220
+ request_parameter_supported: z.ZodBoolean;
2221
+ token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ issuer: string;
2224
+ authorization_endpoint: string;
2225
+ token_endpoint: string;
2226
+ userinfo_endpoint: string;
2227
+ jwks_uri: string;
2228
+ device_authorization_endpoint: string;
2229
+ mfa_challenge_endpoint: string;
2230
+ registration_endpoint: string;
2231
+ revocation_endpoint: string;
2232
+ scopes_supported: string[];
2233
+ response_types_supported: string[];
2234
+ code_challenge_methods_supported: string[];
2235
+ response_modes_supported: string[];
2236
+ subject_types_supported: string[];
2237
+ id_token_signing_alg_values_supported: string[];
2238
+ token_endpoint_auth_methods_supported: string[];
2239
+ claims_supported: string[];
2240
+ request_uri_parameter_supported: boolean;
2241
+ request_parameter_supported: boolean;
2242
+ token_endpoint_auth_signing_alg_values_supported: string[];
2243
+ }, {
2244
+ issuer: string;
2245
+ authorization_endpoint: string;
2246
+ token_endpoint: string;
2247
+ userinfo_endpoint: string;
2248
+ jwks_uri: string;
2249
+ device_authorization_endpoint: string;
2250
+ mfa_challenge_endpoint: string;
2251
+ registration_endpoint: string;
2252
+ revocation_endpoint: string;
2253
+ scopes_supported: string[];
2254
+ response_types_supported: string[];
2255
+ code_challenge_methods_supported: string[];
2256
+ response_modes_supported: string[];
2257
+ subject_types_supported: string[];
2258
+ id_token_signing_alg_values_supported: string[];
2259
+ token_endpoint_auth_methods_supported: string[];
2260
+ claims_supported: string[];
2261
+ request_uri_parameter_supported: boolean;
2262
+ request_parameter_supported: boolean;
2263
+ token_endpoint_auth_signing_alg_values_supported: string[];
2264
+ }>;
2265
+ export declare const loginInsertSchema: z.ZodObject<{
1485
2266
  auth0Client: z.ZodOptional<z.ZodString>;
1486
2267
  authParams: z.ZodObject<{
1487
2268
  client_id: z.ZodString;
@@ -1581,7 +2362,7 @@ declare const loginInsertSchema: z.ZodObject<{
1581
2362
  ip?: string | undefined;
1582
2363
  }>;
1583
2364
  export type LoginInsert = z.infer<typeof loginInsertSchema>;
1584
- declare const loginSchema: z.ZodObject<{
2365
+ export declare const loginSchema: z.ZodObject<{
1585
2366
  login_id: z.ZodString;
1586
2367
  created_at: z.ZodString;
1587
2368
  updated_at: z.ZodString;
@@ -1690,7 +2471,82 @@ declare const loginSchema: z.ZodObject<{
1690
2471
  ip?: string | undefined;
1691
2472
  }>;
1692
2473
  export type Login = z.infer<typeof loginSchema>;
1693
- declare const logSchema: z.ZodObject<{
2474
+ export declare enum LogTypes {
2475
+ FAILED_SILENT_AUTH = "fsa",
2476
+ FAILED_SIGNUP = "fs",
2477
+ FAILED_LOGIN = "f",
2478
+ FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
2479
+ FAILED_CHANGE_PASSWORD = "fcp",
2480
+ FAILED_BY_CONNECTOR = "fc",
2481
+ FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu",
2482
+ FAILED_HOOK = "fh",
2483
+ FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
2484
+ SUCCESS_API_OPERATION = "sapi",
2485
+ SUCCESS_CHANGE_PASSWORD = "scp",
2486
+ SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr",
2487
+ SUCCESS_CHANGE_USERNAME = "scu",
2488
+ SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
2489
+ SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
2490
+ SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
2491
+ SUCCESS_LOGIN = "s",
2492
+ SUCCESS_LOGOUT = "slo",
2493
+ SUCCESS_SIGNUP = "ss",
2494
+ SUCCESS_SILENT_AUTH = "ssa",
2495
+ SUCCESS_VERIFICATION_EMAIL = "sv",
2496
+ SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr",
2497
+ CODE_LINK_SENT = "cls"
2498
+ }
2499
+ declare const LogType: z.ZodEnum<[
2500
+ "cls",
2501
+ "fsa",
2502
+ "fs",
2503
+ "f",
2504
+ "fc",
2505
+ "fcoa",
2506
+ "fcp",
2507
+ "fh",
2508
+ "fp",
2509
+ "fs",
2510
+ "fu",
2511
+ "s",
2512
+ "sapi",
2513
+ "scoa",
2514
+ "scp",
2515
+ "scpr",
2516
+ "scu",
2517
+ "seacft",
2518
+ "serft",
2519
+ "slo",
2520
+ "ss",
2521
+ "ssa",
2522
+ "sv",
2523
+ "svr"
2524
+ ]>;
2525
+ type LogType$1 = z.infer<typeof LogType>;
2526
+ export declare const Auth0Client: z.ZodObject<{
2527
+ name: z.ZodString;
2528
+ version: z.ZodString;
2529
+ env: z.ZodOptional<z.ZodObject<{
2530
+ node: z.ZodOptional<z.ZodString>;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ node?: string | undefined;
2533
+ }, {
2534
+ node?: string | undefined;
2535
+ }>>;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ name: string;
2538
+ version: string;
2539
+ env?: {
2540
+ node?: string | undefined;
2541
+ } | undefined;
2542
+ }, {
2543
+ name: string;
2544
+ version: string;
2545
+ env?: {
2546
+ node?: string | undefined;
2547
+ } | undefined;
2548
+ }>;
2549
+ export declare const logSchema: z.ZodObject<{
1694
2550
  type: z.ZodEnum<[
1695
2551
  "cls",
1696
2552
  "fsa",
@@ -1821,7 +2677,7 @@ export type LogsResponse = Log & {
1821
2677
  log_id: string;
1822
2678
  _id: string;
1823
2679
  };
1824
- declare const passwordInsertSchema: z.ZodObject<{
2680
+ export declare const passwordInsertSchema: z.ZodObject<{
1825
2681
  user_id: z.ZodString;
1826
2682
  password: z.ZodString;
1827
2683
  algorithm: z.ZodDefault<z.ZodEnum<[
@@ -1838,7 +2694,7 @@ declare const passwordInsertSchema: z.ZodObject<{
1838
2694
  algorithm?: "bcrypt" | "argon2id" | undefined;
1839
2695
  }>;
1840
2696
  export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
1841
- declare const passwordSchema: z.ZodObject<{
2697
+ export declare const passwordSchema: z.ZodObject<{
1842
2698
  created_at: z.ZodString;
1843
2699
  updated_at: z.ZodString;
1844
2700
  user_id: z.ZodString;
@@ -1861,7 +2717,7 @@ declare const passwordSchema: z.ZodObject<{
1861
2717
  algorithm?: "bcrypt" | "argon2id" | undefined;
1862
2718
  }>;
1863
2719
  export type Password = z.infer<typeof passwordSchema>;
1864
- declare const sessionInsertSchema: z.ZodObject<{
2720
+ export declare const sessionInsertSchema: z.ZodObject<{
1865
2721
  session_id: z.ZodString;
1866
2722
  client_id: z.ZodString;
1867
2723
  expires_at: z.ZodString;
@@ -1884,7 +2740,7 @@ declare const sessionInsertSchema: z.ZodObject<{
1884
2740
  deleted_at?: string | undefined;
1885
2741
  }>;
1886
2742
  export type SessionInsert = z.infer<typeof sessionInsertSchema>;
1887
- declare const sessionSchema: z.ZodObject<{
2743
+ export declare const sessionSchema: z.ZodObject<{
1888
2744
  session_id: z.ZodString;
1889
2745
  client_id: z.ZodString;
1890
2746
  expires_at: z.ZodString;
@@ -1910,7 +2766,7 @@ declare const sessionSchema: z.ZodObject<{
1910
2766
  deleted_at?: string | undefined;
1911
2767
  }>;
1912
2768
  export type Session = z.infer<typeof sessionSchema>;
1913
- declare const signingKeySchema: z.ZodObject<{
2769
+ export declare const signingKeySchema: z.ZodObject<{
1914
2770
  kid: z.ZodString;
1915
2771
  cert: z.ZodString;
1916
2772
  fingerprint: z.ZodString;
@@ -1951,6 +2807,77 @@ declare const signingKeySchema: z.ZodObject<{
1951
2807
  revoked_at?: string | undefined;
1952
2808
  }>;
1953
2809
  export type SigningKey = z.infer<typeof signingKeySchema>;
2810
+ export declare const tenantInsertSchema: z.ZodObject<{
2811
+ name: z.ZodString;
2812
+ audience: z.ZodString;
2813
+ sender_email: z.ZodString;
2814
+ sender_name: z.ZodString;
2815
+ support_url: z.ZodOptional<z.ZodString>;
2816
+ logo: z.ZodOptional<z.ZodString>;
2817
+ primary_color: z.ZodOptional<z.ZodString>;
2818
+ secondary_color: z.ZodOptional<z.ZodString>;
2819
+ language: z.ZodOptional<z.ZodString>;
2820
+ }, "strip", z.ZodTypeAny, {
2821
+ name: string;
2822
+ audience: string;
2823
+ sender_email: string;
2824
+ sender_name: string;
2825
+ support_url?: string | undefined;
2826
+ logo?: string | undefined;
2827
+ primary_color?: string | undefined;
2828
+ secondary_color?: string | undefined;
2829
+ language?: string | undefined;
2830
+ }, {
2831
+ name: string;
2832
+ audience: string;
2833
+ sender_email: string;
2834
+ sender_name: string;
2835
+ support_url?: string | undefined;
2836
+ logo?: string | undefined;
2837
+ primary_color?: string | undefined;
2838
+ secondary_color?: string | undefined;
2839
+ language?: string | undefined;
2840
+ }>;
2841
+ export declare const tenantSchema: z.ZodObject<{
2842
+ name: z.ZodString;
2843
+ audience: z.ZodString;
2844
+ sender_email: z.ZodString;
2845
+ sender_name: z.ZodString;
2846
+ support_url: z.ZodOptional<z.ZodString>;
2847
+ logo: z.ZodOptional<z.ZodString>;
2848
+ primary_color: z.ZodOptional<z.ZodString>;
2849
+ secondary_color: z.ZodOptional<z.ZodString>;
2850
+ language: z.ZodOptional<z.ZodString>;
2851
+ created_at: z.ZodEffects<z.ZodString, string, string>;
2852
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
2853
+ id: z.ZodString;
2854
+ }, "strip", z.ZodTypeAny, {
2855
+ created_at: string;
2856
+ updated_at: string;
2857
+ name: string;
2858
+ audience: string;
2859
+ id: string;
2860
+ sender_email: string;
2861
+ sender_name: string;
2862
+ support_url?: string | undefined;
2863
+ logo?: string | undefined;
2864
+ primary_color?: string | undefined;
2865
+ secondary_color?: string | undefined;
2866
+ language?: string | undefined;
2867
+ }, {
2868
+ created_at: string;
2869
+ updated_at: string;
2870
+ name: string;
2871
+ audience: string;
2872
+ id: string;
2873
+ sender_email: string;
2874
+ sender_name: string;
2875
+ support_url?: string | undefined;
2876
+ logo?: string | undefined;
2877
+ primary_color?: string | undefined;
2878
+ secondary_color?: string | undefined;
2879
+ language?: string | undefined;
2880
+ }>;
1954
2881
  export interface Tenant {
1955
2882
  id: string;
1956
2883
  name: string;
@@ -1965,7 +2892,440 @@ export interface Tenant {
1965
2892
  created_at: string;
1966
2893
  updated_at: string;
1967
2894
  }
1968
- declare const themeInsertSchema: z.ZodObject<{
2895
+ export declare const vendorSettingsSchema: z.ZodObject<{
2896
+ logoUrl: z.ZodString;
2897
+ loginBackgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2898
+ style: z.ZodObject<{
2899
+ primaryColor: z.ZodString;
2900
+ buttonTextColor: z.ZodString;
2901
+ primaryHoverColor: z.ZodString;
2902
+ }, "strip", z.ZodTypeAny, {
2903
+ primaryColor: string;
2904
+ buttonTextColor: string;
2905
+ primaryHoverColor: string;
2906
+ }, {
2907
+ primaryColor: string;
2908
+ buttonTextColor: string;
2909
+ primaryHoverColor: string;
2910
+ }>;
2911
+ supportEmail: z.ZodNullable<z.ZodString>;
2912
+ supportUrl: z.ZodNullable<z.ZodString>;
2913
+ name: z.ZodString;
2914
+ showGreyishBackground: z.ZodOptional<z.ZodBoolean>;
2915
+ termsAndConditionsUrl: z.ZodNullable<z.ZodString>;
2916
+ companyName: z.ZodOptional<z.ZodString>;
2917
+ checkoutHideSocial: z.ZodOptional<z.ZodBoolean>;
2918
+ siteUrl: z.ZodNullable<z.ZodString>;
2919
+ manageSubscriptionsUrl: z.ZodOptional<z.ZodString>;
2920
+ }, "strip", z.ZodTypeAny, {
2921
+ name: string;
2922
+ style: {
2923
+ primaryColor: string;
2924
+ buttonTextColor: string;
2925
+ primaryHoverColor: string;
2926
+ };
2927
+ logoUrl: string;
2928
+ supportEmail: string | null;
2929
+ supportUrl: string | null;
2930
+ termsAndConditionsUrl: string | null;
2931
+ siteUrl: string | null;
2932
+ loginBackgroundImage?: string | null | undefined;
2933
+ showGreyishBackground?: boolean | undefined;
2934
+ companyName?: string | undefined;
2935
+ checkoutHideSocial?: boolean | undefined;
2936
+ manageSubscriptionsUrl?: string | undefined;
2937
+ }, {
2938
+ name: string;
2939
+ style: {
2940
+ primaryColor: string;
2941
+ buttonTextColor: string;
2942
+ primaryHoverColor: string;
2943
+ };
2944
+ logoUrl: string;
2945
+ supportEmail: string | null;
2946
+ supportUrl: string | null;
2947
+ termsAndConditionsUrl: string | null;
2948
+ siteUrl: string | null;
2949
+ loginBackgroundImage?: string | null | undefined;
2950
+ showGreyishBackground?: boolean | undefined;
2951
+ companyName?: string | undefined;
2952
+ checkoutHideSocial?: boolean | undefined;
2953
+ manageSubscriptionsUrl?: string | undefined;
2954
+ }>;
2955
+ export type VendorSettings = z.infer<typeof vendorSettingsSchema>;
2956
+ export declare enum GrantType {
2957
+ RefreshToken = "refresh_token",
2958
+ AuthorizationCode = "authorization_code",
2959
+ ClientCredential = "client_credentials",
2960
+ Passwordless = "passwordless",
2961
+ Password = "password"
2962
+ }
2963
+ export declare const authorizationCodeGrantTypeParamsSchema: z.ZodObject<{
2964
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
2965
+ code: z.ZodString;
2966
+ client_secret: z.ZodString;
2967
+ client_id: z.ZodString;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ code: string;
2970
+ client_secret: string;
2971
+ client_id: string;
2972
+ grant_type: GrantType.AuthorizationCode;
2973
+ }, {
2974
+ code: string;
2975
+ client_secret: string;
2976
+ client_id: string;
2977
+ grant_type: GrantType;
2978
+ }>;
2979
+ export type AuthorizationCodeGrantTypeParams = z.infer<typeof authorizationCodeGrantTypeParamsSchema>;
2980
+ export declare const pkceAuthorizationCodeGrantTypeParamsSchema: z.ZodObject<{
2981
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
2982
+ code: z.ZodString;
2983
+ code_verifier: z.ZodString;
2984
+ client_id: z.ZodOptional<z.ZodString>;
2985
+ redirect_uri: z.ZodString;
2986
+ }, "strip", z.ZodTypeAny, {
2987
+ code: string;
2988
+ redirect_uri: string;
2989
+ grant_type: GrantType.AuthorizationCode;
2990
+ code_verifier: string;
2991
+ client_id?: string | undefined;
2992
+ }, {
2993
+ code: string;
2994
+ redirect_uri: string;
2995
+ grant_type: GrantType;
2996
+ code_verifier: string;
2997
+ client_id?: string | undefined;
2998
+ }>;
2999
+ export type PKCEAuthorizationCodeGrantTypeParams = z.infer<typeof pkceAuthorizationCodeGrantTypeParamsSchema>;
3000
+ export declare const clientCredentialGrantTypeParamsSchema: z.ZodObject<{
3001
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.ClientCredential, GrantType>;
3002
+ scope: z.ZodOptional<z.ZodString>;
3003
+ client_secret: z.ZodString;
3004
+ client_id: z.ZodString;
3005
+ audience: z.ZodOptional<z.ZodString>;
3006
+ }, "strip", z.ZodTypeAny, {
3007
+ client_secret: string;
3008
+ client_id: string;
3009
+ grant_type: GrantType.ClientCredential;
3010
+ audience?: string | undefined;
3011
+ scope?: string | undefined;
3012
+ }, {
3013
+ client_secret: string;
3014
+ client_id: string;
3015
+ grant_type: GrantType;
3016
+ audience?: string | undefined;
3017
+ scope?: string | undefined;
3018
+ }>;
3019
+ export type ClientCredentialsGrantTypeParams = z.infer<typeof clientCredentialGrantTypeParamsSchema>;
3020
+ declare const tokenResponseSchema: z.ZodObject<{
3021
+ access_token: z.ZodString;
3022
+ id_token: z.ZodOptional<z.ZodString>;
3023
+ scope: z.ZodOptional<z.ZodString>;
3024
+ state: z.ZodOptional<z.ZodString>;
3025
+ refresh_token: z.ZodOptional<z.ZodString>;
3026
+ token_type: z.ZodString;
3027
+ expires_in: z.ZodNumber;
3028
+ }, "strip", z.ZodTypeAny, {
3029
+ access_token: string;
3030
+ token_type: string;
3031
+ expires_in: number;
3032
+ refresh_token?: string | undefined;
3033
+ state?: string | undefined;
3034
+ scope?: string | undefined;
3035
+ id_token?: string | undefined;
3036
+ }, {
3037
+ access_token: string;
3038
+ token_type: string;
3039
+ expires_in: number;
3040
+ refresh_token?: string | undefined;
3041
+ state?: string | undefined;
3042
+ scope?: string | undefined;
3043
+ id_token?: string | undefined;
3044
+ }>;
3045
+ export type TokenResponse = z.infer<typeof tokenResponseSchema>;
3046
+ declare const codeResponseSchema: z.ZodObject<{
3047
+ code: z.ZodString;
3048
+ state: z.ZodOptional<z.ZodString>;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ code: string;
3051
+ state?: string | undefined;
3052
+ }, {
3053
+ code: string;
3054
+ state?: string | undefined;
3055
+ }>;
3056
+ export type CodeResponse = z.infer<typeof codeResponseSchema>;
3057
+ export declare const bordersSchema: z.ZodObject<{
3058
+ button_border_radius: z.ZodNumber;
3059
+ button_border_weight: z.ZodNumber;
3060
+ buttons_style: z.ZodEnum<[
3061
+ "pill"
3062
+ ]>;
3063
+ input_border_radius: z.ZodNumber;
3064
+ input_border_weight: z.ZodNumber;
3065
+ inputs_style: z.ZodEnum<[
3066
+ "pill"
3067
+ ]>;
3068
+ show_widget_shadow: z.ZodBoolean;
3069
+ widget_border_weight: z.ZodNumber;
3070
+ widget_corner_radius: z.ZodNumber;
3071
+ }, "strip", z.ZodTypeAny, {
3072
+ button_border_radius: number;
3073
+ button_border_weight: number;
3074
+ buttons_style: "pill";
3075
+ input_border_radius: number;
3076
+ input_border_weight: number;
3077
+ inputs_style: "pill";
3078
+ show_widget_shadow: boolean;
3079
+ widget_border_weight: number;
3080
+ widget_corner_radius: number;
3081
+ }, {
3082
+ button_border_radius: number;
3083
+ button_border_weight: number;
3084
+ buttons_style: "pill";
3085
+ input_border_radius: number;
3086
+ input_border_weight: number;
3087
+ inputs_style: "pill";
3088
+ show_widget_shadow: boolean;
3089
+ widget_border_weight: number;
3090
+ widget_corner_radius: number;
3091
+ }>;
3092
+ export declare const colorsSchema: z.ZodObject<{
3093
+ base_focus_color: z.ZodString;
3094
+ base_hover_color: z.ZodString;
3095
+ body_text: z.ZodString;
3096
+ captcha_widget_theme: z.ZodEnum<[
3097
+ "auto"
3098
+ ]>;
3099
+ error: z.ZodString;
3100
+ header: z.ZodString;
3101
+ icons: z.ZodString;
3102
+ input_background: z.ZodString;
3103
+ input_border: z.ZodString;
3104
+ input_filled_text: z.ZodString;
3105
+ input_labels_placeholders: z.ZodString;
3106
+ links_focused_components: z.ZodString;
3107
+ primary_button: z.ZodString;
3108
+ primary_button_label: z.ZodString;
3109
+ secondary_button_border: z.ZodString;
3110
+ secondary_button_label: z.ZodString;
3111
+ success: z.ZodString;
3112
+ widget_background: z.ZodString;
3113
+ widget_border: z.ZodString;
3114
+ }, "strip", z.ZodTypeAny, {
3115
+ base_focus_color: string;
3116
+ base_hover_color: string;
3117
+ body_text: string;
3118
+ captcha_widget_theme: "auto";
3119
+ error: string;
3120
+ header: string;
3121
+ icons: string;
3122
+ input_background: string;
3123
+ input_border: string;
3124
+ input_filled_text: string;
3125
+ input_labels_placeholders: string;
3126
+ links_focused_components: string;
3127
+ primary_button: string;
3128
+ primary_button_label: string;
3129
+ secondary_button_border: string;
3130
+ secondary_button_label: string;
3131
+ success: string;
3132
+ widget_background: string;
3133
+ widget_border: string;
3134
+ }, {
3135
+ base_focus_color: string;
3136
+ base_hover_color: string;
3137
+ body_text: string;
3138
+ captcha_widget_theme: "auto";
3139
+ error: string;
3140
+ header: string;
3141
+ icons: string;
3142
+ input_background: string;
3143
+ input_border: string;
3144
+ input_filled_text: string;
3145
+ input_labels_placeholders: string;
3146
+ links_focused_components: string;
3147
+ primary_button: string;
3148
+ primary_button_label: string;
3149
+ secondary_button_border: string;
3150
+ secondary_button_label: string;
3151
+ success: string;
3152
+ widget_background: string;
3153
+ widget_border: string;
3154
+ }>;
3155
+ export declare const fontDetailsSchema: z.ZodObject<{
3156
+ bold: z.ZodBoolean;
3157
+ size: z.ZodNumber;
3158
+ }, "strip", z.ZodTypeAny, {
3159
+ bold: boolean;
3160
+ size: number;
3161
+ }, {
3162
+ bold: boolean;
3163
+ size: number;
3164
+ }>;
3165
+ export declare const fontsSchema: z.ZodObject<{
3166
+ body_text: z.ZodObject<{
3167
+ bold: z.ZodBoolean;
3168
+ size: z.ZodNumber;
3169
+ }, "strip", z.ZodTypeAny, {
3170
+ bold: boolean;
3171
+ size: number;
3172
+ }, {
3173
+ bold: boolean;
3174
+ size: number;
3175
+ }>;
3176
+ buttons_text: z.ZodObject<{
3177
+ bold: z.ZodBoolean;
3178
+ size: z.ZodNumber;
3179
+ }, "strip", z.ZodTypeAny, {
3180
+ bold: boolean;
3181
+ size: number;
3182
+ }, {
3183
+ bold: boolean;
3184
+ size: number;
3185
+ }>;
3186
+ font_url: z.ZodString;
3187
+ input_labels: z.ZodObject<{
3188
+ bold: z.ZodBoolean;
3189
+ size: z.ZodNumber;
3190
+ }, "strip", z.ZodTypeAny, {
3191
+ bold: boolean;
3192
+ size: number;
3193
+ }, {
3194
+ bold: boolean;
3195
+ size: number;
3196
+ }>;
3197
+ links: z.ZodObject<{
3198
+ bold: z.ZodBoolean;
3199
+ size: z.ZodNumber;
3200
+ }, "strip", z.ZodTypeAny, {
3201
+ bold: boolean;
3202
+ size: number;
3203
+ }, {
3204
+ bold: boolean;
3205
+ size: number;
3206
+ }>;
3207
+ links_style: z.ZodEnum<[
3208
+ "normal"
3209
+ ]>;
3210
+ reference_text_size: z.ZodNumber;
3211
+ subtitle: z.ZodObject<{
3212
+ bold: z.ZodBoolean;
3213
+ size: z.ZodNumber;
3214
+ }, "strip", z.ZodTypeAny, {
3215
+ bold: boolean;
3216
+ size: number;
3217
+ }, {
3218
+ bold: boolean;
3219
+ size: number;
3220
+ }>;
3221
+ title: z.ZodObject<{
3222
+ bold: z.ZodBoolean;
3223
+ size: z.ZodNumber;
3224
+ }, "strip", z.ZodTypeAny, {
3225
+ bold: boolean;
3226
+ size: number;
3227
+ }, {
3228
+ bold: boolean;
3229
+ size: number;
3230
+ }>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ title: {
3233
+ bold: boolean;
3234
+ size: number;
3235
+ };
3236
+ body_text: {
3237
+ bold: boolean;
3238
+ size: number;
3239
+ };
3240
+ buttons_text: {
3241
+ bold: boolean;
3242
+ size: number;
3243
+ };
3244
+ font_url: string;
3245
+ input_labels: {
3246
+ bold: boolean;
3247
+ size: number;
3248
+ };
3249
+ links: {
3250
+ bold: boolean;
3251
+ size: number;
3252
+ };
3253
+ links_style: "normal";
3254
+ reference_text_size: number;
3255
+ subtitle: {
3256
+ bold: boolean;
3257
+ size: number;
3258
+ };
3259
+ }, {
3260
+ title: {
3261
+ bold: boolean;
3262
+ size: number;
3263
+ };
3264
+ body_text: {
3265
+ bold: boolean;
3266
+ size: number;
3267
+ };
3268
+ buttons_text: {
3269
+ bold: boolean;
3270
+ size: number;
3271
+ };
3272
+ font_url: string;
3273
+ input_labels: {
3274
+ bold: boolean;
3275
+ size: number;
3276
+ };
3277
+ links: {
3278
+ bold: boolean;
3279
+ size: number;
3280
+ };
3281
+ links_style: "normal";
3282
+ reference_text_size: number;
3283
+ subtitle: {
3284
+ bold: boolean;
3285
+ size: number;
3286
+ };
3287
+ }>;
3288
+ export declare const pageBackgroundSchema: z.ZodObject<{
3289
+ background_color: z.ZodString;
3290
+ background_image_url: z.ZodString;
3291
+ page_layout: z.ZodEnum<[
3292
+ "center"
3293
+ ]>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ background_color: string;
3296
+ background_image_url: string;
3297
+ page_layout: "center";
3298
+ }, {
3299
+ background_color: string;
3300
+ background_image_url: string;
3301
+ page_layout: "center";
3302
+ }>;
3303
+ export declare const widgetSchema: z.ZodObject<{
3304
+ header_text_alignment: z.ZodEnum<[
3305
+ "center"
3306
+ ]>;
3307
+ logo_height: z.ZodNumber;
3308
+ logo_position: z.ZodEnum<[
3309
+ "center"
3310
+ ]>;
3311
+ logo_url: z.ZodString;
3312
+ social_buttons_layout: z.ZodEnum<[
3313
+ "bottom"
3314
+ ]>;
3315
+ }, "strip", z.ZodTypeAny, {
3316
+ logo_url: string;
3317
+ header_text_alignment: "center";
3318
+ logo_height: number;
3319
+ logo_position: "center";
3320
+ social_buttons_layout: "bottom";
3321
+ }, {
3322
+ logo_url: string;
3323
+ header_text_alignment: "center";
3324
+ logo_height: number;
3325
+ logo_position: "center";
3326
+ social_buttons_layout: "bottom";
3327
+ }>;
3328
+ export declare const themeInsertSchema: z.ZodObject<{
1969
3329
  borders: z.ZodObject<{
1970
3330
  button_border_radius: z.ZodNumber;
1971
3331
  button_border_weight: z.ZodNumber;
@@ -2380,7 +3740,7 @@ declare const themeInsertSchema: z.ZodObject<{
2380
3740
  };
2381
3741
  }>;
2382
3742
  export type ThemeInsert = z.infer<typeof themeInsertSchema>;
2383
- declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3743
+ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2384
3744
  borders: z.ZodObject<{
2385
3745
  button_border_radius: z.ZodNumber;
2386
3746
  button_border_weight: z.ZodNumber;
@@ -2799,7 +4159,7 @@ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2799
4159
  themeId: string;
2800
4160
  }>;
2801
4161
  export type Theme = z.infer<typeof themeSchema>;
2802
- declare const promptSettingSchema: z.ZodObject<{
4162
+ export declare const promptSettingSchema: z.ZodObject<{
2803
4163
  universal_login_experience: z.ZodDefault<z.ZodEnum<[
2804
4164
  "new",
2805
4165
  "classic"
@@ -2836,6 +4196,10 @@ export interface Ticket {
2836
4196
  expires_at: Date;
2837
4197
  used_at?: Date;
2838
4198
  }
4199
+ export declare function parseUserId(user_id: string): {
4200
+ connection: string;
4201
+ id: string;
4202
+ };
2839
4203
  export interface ListParams {
2840
4204
  page: number;
2841
4205
  per_page: number;
@@ -3014,7 +4378,7 @@ export interface AuthHeroConfig {
3014
4378
  issuer: string;
3015
4379
  }
3016
4380
  export declare function init(config: AuthHeroConfig): {
3017
- rootApp: OpenAPIHono<{
4381
+ app: OpenAPIHono<{
3018
4382
  Bindings: Bindings;
3019
4383
  }, {}, "/">;
3020
4384
  managementApp: OpenAPIHono<{
@@ -3063,11 +4427,11 @@ export declare function init(config: AuthHeroConfig): {
3063
4427
  $get: {
3064
4428
  input: {
3065
4429
  query: {
3066
- sort?: string | string[] | undefined;
3067
- page?: string | string[] | undefined;
3068
- per_page?: string | string[] | undefined;
3069
- include_totals?: string | string[] | undefined;
3070
- q?: string | string[] | undefined;
4430
+ sort?: string | undefined;
4431
+ page?: string | undefined;
4432
+ per_page?: string | undefined;
4433
+ include_totals?: string | undefined;
4434
+ q?: string | undefined;
3071
4435
  };
3072
4436
  } & {
3073
4437
  header: {
@@ -3321,11 +4685,11 @@ export declare function init(config: AuthHeroConfig): {
3321
4685
  $get: {
3322
4686
  input: {
3323
4687
  query: {
3324
- sort?: string | string[] | undefined;
3325
- page?: string | string[] | undefined;
3326
- per_page?: string | string[] | undefined;
3327
- include_totals?: string | string[] | undefined;
3328
- q?: string | string[] | undefined;
4688
+ sort?: string | undefined;
4689
+ page?: string | undefined;
4690
+ per_page?: string | undefined;
4691
+ include_totals?: string | undefined;
4692
+ q?: string | undefined;
3329
4693
  };
3330
4694
  } & {
3331
4695
  header: {
@@ -3498,11 +4862,11 @@ export declare function init(config: AuthHeroConfig): {
3498
4862
  $get: {
3499
4863
  input: {
3500
4864
  query: {
3501
- sort?: string | string[] | undefined;
3502
- page?: string | string[] | undefined;
3503
- per_page?: string | string[] | undefined;
3504
- include_totals?: string | string[] | undefined;
3505
- q?: string | string[] | undefined;
4865
+ sort?: string | undefined;
4866
+ page?: string | undefined;
4867
+ per_page?: string | undefined;
4868
+ include_totals?: string | undefined;
4869
+ q?: string | undefined;
3506
4870
  };
3507
4871
  } & {
3508
4872
  header: {
@@ -3625,11 +4989,11 @@ export declare function init(config: AuthHeroConfig): {
3625
4989
  $get: {
3626
4990
  input: {
3627
4991
  query: {
3628
- sort?: string | string[] | undefined;
3629
- page?: string | string[] | undefined;
3630
- per_page?: string | string[] | undefined;
3631
- include_totals?: string | string[] | undefined;
3632
- q?: string | string[] | undefined;
4992
+ sort?: string | undefined;
4993
+ page?: string | undefined;
4994
+ per_page?: string | undefined;
4995
+ include_totals?: string | undefined;
4996
+ q?: string | undefined;
3633
4997
  };
3634
4998
  };
3635
4999
  output: {};
@@ -3714,11 +5078,11 @@ export declare function init(config: AuthHeroConfig): {
3714
5078
  $get: {
3715
5079
  input: {
3716
5080
  query: {
3717
- sort?: string | string[] | undefined;
3718
- page?: string | string[] | undefined;
3719
- per_page?: string | string[] | undefined;
3720
- include_totals?: string | string[] | undefined;
3721
- q?: string | string[] | undefined;
5081
+ sort?: string | undefined;
5082
+ page?: string | undefined;
5083
+ per_page?: string | undefined;
5084
+ include_totals?: string | undefined;
5085
+ q?: string | undefined;
3722
5086
  };
3723
5087
  } & {
3724
5088
  header: {
@@ -4045,7 +5409,7 @@ export declare function init(config: AuthHeroConfig): {
4045
5409
  $get: {
4046
5410
  input: {
4047
5411
  query: {
4048
- email: string | string[];
5412
+ email: string;
4049
5413
  };
4050
5414
  } & {
4051
5415
  header: {
@@ -4148,11 +5512,11 @@ export declare function init(config: AuthHeroConfig): {
4148
5512
  $get: {
4149
5513
  input: {
4150
5514
  query: {
4151
- sort?: string | string[] | undefined;
4152
- page?: string | string[] | undefined;
4153
- per_page?: string | string[] | undefined;
4154
- include_totals?: string | string[] | undefined;
4155
- q?: string | string[] | undefined;
5515
+ sort?: string | undefined;
5516
+ page?: string | undefined;
5517
+ per_page?: string | undefined;
5518
+ include_totals?: string | undefined;
5519
+ q?: string | undefined;
4156
5520
  };
4157
5521
  } & {
4158
5522
  header: {
@@ -4556,11 +5920,11 @@ export declare function init(config: AuthHeroConfig): {
4556
5920
  };
4557
5921
  } & {
4558
5922
  query: {
4559
- sort?: string | string[] | undefined;
4560
- page?: string | string[] | undefined;
4561
- per_page?: string | string[] | undefined;
4562
- include_totals?: string | string[] | undefined;
4563
- q?: string | string[] | undefined;
5923
+ sort?: string | undefined;
5924
+ page?: string | undefined;
5925
+ per_page?: string | undefined;
5926
+ include_totals?: string | undefined;
5927
+ q?: string | undefined;
4564
5928
  };
4565
5929
  } & {
4566
5930
  header: {
@@ -4708,4 +6072,8 @@ export declare function init(config: AuthHeroConfig): {
4708
6072
  }, "/.well-known">, "/">;
4709
6073
  };
4710
6074
 
6075
+ export {
6076
+ LogType$1 as LogType,
6077
+ };
6078
+
4711
6079
  export {};