@logto/schemas 1.37.1 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/alterations/1.38.0-1772615848-add-oidc-model-instances-grant-id-partial-index.ts +26 -0
  2. package/alterations/1.38.0-1772619963-tune-oidc-model-instances-autovacuum.ts +28 -0
  3. package/alterations/1.38.0-1772621060-add-oidc-model-instances-grant-account-id-index.ts +26 -0
  4. package/alterations/1.39.0-1774752400-add-delete-account-url.ts +20 -0
  5. package/alterations/1.39.0-1774770686-add-account-center-custom-css.ts +20 -0
  6. package/alterations/1.39.0-1776502301-add-sign-up-profile-fields.ts +20 -0
  7. package/alterations-js/1.38.0-1772615848-add-oidc-model-instances-grant-id-partial-index.js +22 -0
  8. package/alterations-js/1.38.0-1772619963-tune-oidc-model-instances-autovacuum.js +24 -0
  9. package/alterations-js/1.38.0-1772621060-add-oidc-model-instances-grant-account-id-index.js +22 -0
  10. package/alterations-js/1.39.0-1774752400-add-delete-account-url.js +16 -0
  11. package/alterations-js/1.39.0-1774770686-add-account-center-custom-css.js +16 -0
  12. package/alterations-js/1.39.0-1776502301-add-sign-up-profile-fields.js +16 -0
  13. package/lib/consts/cookie.d.ts +1 -0
  14. package/lib/consts/cookie.js +1 -0
  15. package/lib/consts/experience.d.ts +1 -0
  16. package/lib/consts/experience.js +1 -0
  17. package/lib/consts/oidc.d.ts +3 -0
  18. package/lib/consts/oidc.js +3 -0
  19. package/lib/consts/system.d.ts +4 -0
  20. package/lib/consts/system.js +4 -0
  21. package/lib/db-entries/account-center.d.ts +9 -1
  22. package/lib/db-entries/account-center.js +8 -0
  23. package/lib/db-entries/sign-in-experience.d.ts +6 -2
  24. package/lib/db-entries/sign-in-experience.js +5 -1
  25. package/lib/foundations/jsonb-types/account-centers.d.ts +1 -0
  26. package/lib/foundations/jsonb-types/account-centers.js +8 -0
  27. package/lib/foundations/jsonb-types/oidc-module.d.ts +26 -7
  28. package/lib/foundations/jsonb-types/oidc-module.js +16 -1
  29. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +36 -6
  30. package/lib/foundations/jsonb-types/sign-in-experience.js +10 -2
  31. package/lib/seeds/application.d.ts +3 -1
  32. package/lib/seeds/application.js +26 -1
  33. package/lib/types/alteration.d.ts +5 -0
  34. package/lib/types/application.d.ts +14 -2
  35. package/lib/types/connector.d.ts +8 -0
  36. package/lib/types/consent.d.ts +11 -3
  37. package/lib/types/consent.js +2 -1
  38. package/lib/types/custom-profile-fields.d.ts +7 -13
  39. package/lib/types/custom-profile-fields.js +6 -13
  40. package/lib/types/log/interaction.d.ts +4 -2
  41. package/lib/types/log/interaction.js +2 -0
  42. package/lib/types/log/token.d.ts +5 -3
  43. package/lib/types/log/token.js +2 -0
  44. package/lib/types/logto-config/index.d.ts +331 -15
  45. package/lib/types/logto-config/index.js +28 -4
  46. package/lib/types/logto-config/index.test.d.ts +1 -0
  47. package/lib/types/logto-config/index.test.js +29 -0
  48. package/lib/types/logto-config/jwt-customizer.d.ts +787 -253
  49. package/lib/types/logto-config/jwt-customizer.js +8 -3
  50. package/lib/types/logto-config/jwt-customizer.test.js +14 -2
  51. package/lib/types/oidc-config.d.ts +2 -1
  52. package/lib/types/oidc-config.js +1 -0
  53. package/lib/types/onboarding.d.ts +93 -1
  54. package/lib/types/onboarding.js +22 -1
  55. package/lib/types/sign-in-experience.d.ts +15 -4
  56. package/lib/types/user-logto-config.d.ts +49 -0
  57. package/lib/types/user-logto-config.js +19 -0
  58. package/lib/types/user-sessions.d.ts +712 -112
  59. package/lib/types/user-sessions.js +33 -2
  60. package/lib/types/verification-records/verification-type.d.ts +1 -1
  61. package/lib/types/verification-records/verification-type.js +1 -1
  62. package/lib/types/verification-records/web-authn-verification.d.ts +11 -11
  63. package/lib/types/verification-records/web-authn-verification.js +3 -3
  64. package/lib/utils/index.d.ts +1 -0
  65. package/lib/utils/index.js +1 -0
  66. package/lib/utils/oidc-private-key.d.ts +88 -0
  67. package/lib/utils/oidc-private-key.js +163 -0
  68. package/lib/utils/oidc-private-key.test.d.ts +1 -0
  69. package/lib/utils/oidc-private-key.test.js +128 -0
  70. package/package.json +9 -8
  71. package/tables/account_centers.sql +4 -0
  72. package/tables/oidc_model_instances.sql +16 -0
  73. package/tables/sign_in_experiences.sql +2 -0
@@ -5,18 +5,22 @@ import { InteractionEvent } from '../interactions.js';
5
5
  import { GrantType } from '../oidc-config.js';
6
6
  import { type ScopeResponse } from '../scope.js';
7
7
  import { type UserInfo } from '../user.js';
8
+ import type { VerificationType } from '../verification-records/verification-type.js';
8
9
  export declare const jwtCustomizerGuard: z.ZodObject<{
9
10
  script: z.ZodString;
10
11
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
12
  contextSample: z.ZodOptional<z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>>;
13
+ blockIssuanceOnError: z.ZodOptional<z.ZodBoolean>;
12
14
  }, "strip", z.ZodTypeAny, {
13
15
  script: string;
14
16
  environmentVariables?: Record<string, string> | undefined;
15
17
  contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
18
+ blockIssuanceOnError?: boolean | undefined;
16
19
  }, {
17
20
  script: string;
18
21
  environmentVariables?: Record<string, string> | undefined;
19
22
  contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
23
+ blockIssuanceOnError?: boolean | undefined;
20
24
  }>;
21
25
  export declare enum LogtoJwtTokenKeyType {
22
26
  AccessToken = "access-token",
@@ -387,7 +391,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
387
391
  userId: z.ZodString;
388
392
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
389
393
  id: z.ZodString;
390
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
394
+ type: z.ZodLiteral<VerificationType.Password>;
391
395
  identifier: z.ZodObject<{
392
396
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
393
397
  value: z.ZodString;
@@ -400,7 +404,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
400
404
  }>;
401
405
  verified: z.ZodBoolean;
402
406
  }, "strip", z.ZodTypeAny, {
403
- type: import("../index.js").VerificationType.Password;
407
+ type: VerificationType.Password;
404
408
  id: string;
405
409
  identifier: {
406
410
  value: string;
@@ -408,7 +412,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
408
412
  };
409
413
  verified: boolean;
410
414
  }, {
411
- type: import("../index.js").VerificationType.Password;
415
+ type: VerificationType.Password;
412
416
  id: string;
413
417
  identifier: {
414
418
  value: string;
@@ -420,7 +424,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
420
424
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
421
425
  verified: z.ZodBoolean;
422
426
  } & {
423
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
427
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
424
428
  identifier: z.ZodObject<{
425
429
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
426
430
  value: z.ZodString;
@@ -432,7 +436,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
432
436
  type: import("../../foundations/index.js").SignInIdentifier.Email;
433
437
  }>;
434
438
  }, "strip", z.ZodTypeAny, {
435
- type: import("../index.js").VerificationType.EmailVerificationCode;
439
+ type: VerificationType.EmailVerificationCode;
436
440
  id: string;
437
441
  identifier: {
438
442
  value: string;
@@ -441,7 +445,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
441
445
  templateType: import("@logto/connector-kit").TemplateType;
442
446
  verified: boolean;
443
447
  }, {
444
- type: import("../index.js").VerificationType.EmailVerificationCode;
448
+ type: VerificationType.EmailVerificationCode;
445
449
  id: string;
446
450
  identifier: {
447
451
  value: string;
@@ -454,7 +458,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
454
458
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
455
459
  verified: z.ZodBoolean;
456
460
  } & {
457
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
461
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
458
462
  identifier: z.ZodObject<{
459
463
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
460
464
  value: z.ZodString;
@@ -466,7 +470,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
466
470
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
467
471
  }>;
468
472
  }, "strip", z.ZodTypeAny, {
469
- type: import("../index.js").VerificationType.PhoneVerificationCode;
473
+ type: VerificationType.PhoneVerificationCode;
470
474
  id: string;
471
475
  identifier: {
472
476
  value: string;
@@ -475,7 +479,75 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
475
479
  templateType: import("@logto/connector-kit").TemplateType;
476
480
  verified: boolean;
477
481
  }, {
478
- type: import("../index.js").VerificationType.PhoneVerificationCode;
482
+ type: VerificationType.PhoneVerificationCode;
483
+ id: string;
484
+ identifier: {
485
+ value: string;
486
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
487
+ };
488
+ templateType: import("@logto/connector-kit").TemplateType;
489
+ verified: boolean;
490
+ }>, z.ZodObject<{
491
+ id: z.ZodString;
492
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
493
+ verified: z.ZodBoolean;
494
+ } & {
495
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
496
+ identifier: z.ZodObject<{
497
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
498
+ value: z.ZodString;
499
+ }, "strip", z.ZodTypeAny, {
500
+ value: string;
501
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
502
+ }, {
503
+ value: string;
504
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
505
+ }>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ type: VerificationType.MfaEmailVerificationCode;
508
+ id: string;
509
+ identifier: {
510
+ value: string;
511
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
512
+ };
513
+ templateType: import("@logto/connector-kit").TemplateType;
514
+ verified: boolean;
515
+ }, {
516
+ type: VerificationType.MfaEmailVerificationCode;
517
+ id: string;
518
+ identifier: {
519
+ value: string;
520
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
521
+ };
522
+ templateType: import("@logto/connector-kit").TemplateType;
523
+ verified: boolean;
524
+ }>, z.ZodObject<{
525
+ id: z.ZodString;
526
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
527
+ verified: z.ZodBoolean;
528
+ } & {
529
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
530
+ identifier: z.ZodObject<{
531
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
532
+ value: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ value: string;
535
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
536
+ }, {
537
+ value: string;
538
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
539
+ }>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ type: VerificationType.MfaPhoneVerificationCode;
542
+ id: string;
543
+ identifier: {
544
+ value: string;
545
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
546
+ };
547
+ templateType: import("@logto/connector-kit").TemplateType;
548
+ verified: boolean;
549
+ }, {
550
+ type: VerificationType.MfaPhoneVerificationCode;
479
551
  id: string;
480
552
  identifier: {
481
553
  value: string;
@@ -486,7 +558,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
486
558
  }>, z.ZodObject<Omit<{
487
559
  id: z.ZodString;
488
560
  connectorId: z.ZodString;
489
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
561
+ type: z.ZodLiteral<VerificationType.Social>;
490
562
  socialUserInfo: z.ZodOptional<z.ZodObject<{
491
563
  id: z.ZodString;
492
564
  email: z.ZodOptional<z.ZodString>;
@@ -567,7 +639,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
567
639
  state: z.ZodOptional<z.ZodString>;
568
640
  }, z.ZodUnknown, "strip">>>;
569
641
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
570
- type: import("../index.js").VerificationType.Social;
642
+ type: VerificationType.Social;
571
643
  id: string;
572
644
  connectorId: string;
573
645
  socialUserInfo?: {
@@ -579,7 +651,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
579
651
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
580
652
  } | undefined;
581
653
  }, {
582
- type: import("../index.js").VerificationType.Social;
654
+ type: VerificationType.Social;
583
655
  id: string;
584
656
  connectorId: string;
585
657
  socialUserInfo?: {
@@ -591,7 +663,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
591
663
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
592
664
  } | undefined;
593
665
  }>, z.ZodObject<{
594
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
666
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
595
667
  id: z.ZodString;
596
668
  issuer: z.ZodOptional<z.ZodString>;
597
669
  connectorId: z.ZodString;
@@ -619,7 +691,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
619
691
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
620
692
  }>>;
621
693
  }, "strip", z.ZodTypeAny, {
622
- type: import("../index.js").VerificationType.EnterpriseSso;
694
+ type: VerificationType.EnterpriseSso;
623
695
  id: string;
624
696
  connectorId: string;
625
697
  issuer?: string | undefined;
@@ -632,7 +704,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
632
704
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
633
705
  } | undefined;
634
706
  }, {
635
- type: import("../index.js").VerificationType.EnterpriseSso;
707
+ type: VerificationType.EnterpriseSso;
636
708
  id: string;
637
709
  connectorId: string;
638
710
  issuer?: string | undefined;
@@ -646,33 +718,33 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
646
718
  } | undefined;
647
719
  }>, z.ZodObject<Omit<{
648
720
  id: z.ZodString;
649
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
721
+ type: z.ZodLiteral<VerificationType.TOTP>;
650
722
  userId: z.ZodString;
651
723
  secret: z.ZodOptional<z.ZodString>;
652
724
  verified: z.ZodBoolean;
653
725
  }, "secret">, "strip", z.ZodTypeAny, {
654
- type: import("../index.js").VerificationType.TOTP;
726
+ type: VerificationType.TOTP;
655
727
  id: string;
656
728
  userId: string;
657
729
  verified: boolean;
658
730
  }, {
659
- type: import("../index.js").VerificationType.TOTP;
731
+ type: VerificationType.TOTP;
660
732
  id: string;
661
733
  userId: string;
662
734
  verified: boolean;
663
735
  }>, z.ZodObject<Omit<{
664
736
  id: z.ZodString;
665
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
737
+ type: z.ZodLiteral<VerificationType.BackupCode>;
666
738
  userId: z.ZodString;
667
739
  code: z.ZodOptional<z.ZodString>;
668
740
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
741
  }, "backupCodes">, "strip", z.ZodTypeAny, {
670
- type: import("../index.js").VerificationType.BackupCode;
742
+ type: VerificationType.BackupCode;
671
743
  id: string;
672
744
  userId: string;
673
745
  code?: string | undefined;
674
746
  }, {
675
- type: import("../index.js").VerificationType.BackupCode;
747
+ type: VerificationType.BackupCode;
676
748
  id: string;
677
749
  userId: string;
678
750
  code?: string | undefined;
@@ -711,16 +783,16 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
711
783
  name?: string | undefined;
712
784
  }>>;
713
785
  } & {
714
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
786
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
715
787
  userId: z.ZodString;
716
788
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
717
- type: import("../index.js").VerificationType.WebAuthn;
789
+ type: VerificationType.WebAuthn;
718
790
  id: string;
719
791
  userId: string;
720
792
  verified: boolean;
721
793
  registrationRpId?: string | undefined;
722
794
  }, {
723
- type: import("../index.js").VerificationType.WebAuthn;
795
+ type: VerificationType.WebAuthn;
724
796
  id: string;
725
797
  userId: string;
726
798
  verified: boolean;
@@ -760,24 +832,24 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
760
832
  name?: string | undefined;
761
833
  }>>;
762
834
  } & {
763
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
835
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
764
836
  userId: z.ZodOptional<z.ZodString>;
765
837
  authenticationRpId: z.ZodOptional<z.ZodString>;
766
838
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
767
- type: import("../index.js").VerificationType.SignInWebAuthn;
839
+ type: VerificationType.SignInPasskey;
768
840
  id: string;
769
841
  verified: boolean;
770
842
  userId?: string | undefined;
771
843
  registrationRpId?: string | undefined;
772
844
  }, {
773
- type: import("../index.js").VerificationType.SignInWebAuthn;
845
+ type: VerificationType.SignInPasskey;
774
846
  id: string;
775
847
  verified: boolean;
776
848
  userId?: string | undefined;
777
849
  registrationRpId?: string | undefined;
778
850
  }>, z.ZodObject<{
779
851
  id: z.ZodString;
780
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
852
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
781
853
  verified: z.ZodBoolean;
782
854
  identifier: z.ZodObject<{
783
855
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -797,7 +869,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
797
869
  jitOrganizationIds?: string[] | undefined;
798
870
  }>>;
799
871
  }, "strip", z.ZodTypeAny, {
800
- type: import("../index.js").VerificationType.OneTimeToken;
872
+ type: VerificationType.OneTimeToken;
801
873
  id: string;
802
874
  identifier: {
803
875
  value: string;
@@ -808,7 +880,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
808
880
  jitOrganizationIds?: string[] | undefined;
809
881
  } | undefined;
810
882
  }, {
811
- type: import("../index.js").VerificationType.OneTimeToken;
883
+ type: VerificationType.OneTimeToken;
812
884
  id: string;
813
885
  identifier: {
814
886
  value: string;
@@ -820,7 +892,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
820
892
  } | undefined;
821
893
  }>, z.ZodObject<Omit<{
822
894
  id: z.ZodString;
823
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
895
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
824
896
  identifier: z.ZodObject<{
825
897
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
826
898
  value: z.ZodString;
@@ -834,14 +906,14 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
834
906
  passwordEncrypted: z.ZodOptional<z.ZodString>;
835
907
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
836
908
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
837
- type: import("../index.js").VerificationType.NewPasswordIdentity;
909
+ type: VerificationType.NewPasswordIdentity;
838
910
  id: string;
839
911
  identifier: {
840
912
  value: string;
841
913
  type: import("../../foundations/index.js").SignInIdentifier;
842
914
  };
843
915
  }, {
844
- type: import("../index.js").VerificationType.NewPasswordIdentity;
916
+ type: VerificationType.NewPasswordIdentity;
845
917
  id: string;
846
918
  identifier: {
847
919
  value: string;
@@ -853,12 +925,30 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
853
925
  userId: string;
854
926
  interactionEvent: InteractionEvent;
855
927
  verificationRecords: ({
856
- type: import("../index.js").VerificationType.BackupCode;
928
+ type: VerificationType.BackupCode;
857
929
  id: string;
858
930
  userId: string;
859
931
  code?: string | undefined;
860
932
  } | {
861
- type: import("../index.js").VerificationType.EmailVerificationCode;
933
+ type: VerificationType.EmailVerificationCode;
934
+ id: string;
935
+ identifier: {
936
+ value: string;
937
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
938
+ };
939
+ templateType: import("@logto/connector-kit").TemplateType;
940
+ verified: boolean;
941
+ } | {
942
+ type: VerificationType.PhoneVerificationCode;
943
+ id: string;
944
+ identifier: {
945
+ value: string;
946
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
947
+ };
948
+ templateType: import("@logto/connector-kit").TemplateType;
949
+ verified: boolean;
950
+ } | {
951
+ type: VerificationType.MfaEmailVerificationCode;
862
952
  id: string;
863
953
  identifier: {
864
954
  value: string;
@@ -867,7 +957,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
867
957
  templateType: import("@logto/connector-kit").TemplateType;
868
958
  verified: boolean;
869
959
  } | {
870
- type: import("../index.js").VerificationType.PhoneVerificationCode;
960
+ type: VerificationType.MfaPhoneVerificationCode;
871
961
  id: string;
872
962
  identifier: {
873
963
  value: string;
@@ -876,14 +966,14 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
876
966
  templateType: import("@logto/connector-kit").TemplateType;
877
967
  verified: boolean;
878
968
  } | {
879
- type: import("../index.js").VerificationType.NewPasswordIdentity;
969
+ type: VerificationType.NewPasswordIdentity;
880
970
  id: string;
881
971
  identifier: {
882
972
  value: string;
883
973
  type: import("../../foundations/index.js").SignInIdentifier;
884
974
  };
885
975
  } | {
886
- type: import("../index.js").VerificationType.OneTimeToken;
976
+ type: VerificationType.OneTimeToken;
887
977
  id: string;
888
978
  identifier: {
889
979
  value: string;
@@ -894,7 +984,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
894
984
  jitOrganizationIds?: string[] | undefined;
895
985
  } | undefined;
896
986
  } | {
897
- type: import("../index.js").VerificationType.Password;
987
+ type: VerificationType.Password;
898
988
  id: string;
899
989
  identifier: {
900
990
  value: string;
@@ -902,7 +992,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
902
992
  };
903
993
  verified: boolean;
904
994
  } | {
905
- type: import("../index.js").VerificationType.Social;
995
+ type: VerificationType.Social;
906
996
  id: string;
907
997
  connectorId: string;
908
998
  socialUserInfo?: {
@@ -914,12 +1004,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
914
1004
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
915
1005
  } | undefined;
916
1006
  } | {
917
- type: import("../index.js").VerificationType.TOTP;
1007
+ type: VerificationType.TOTP;
918
1008
  id: string;
919
1009
  userId: string;
920
1010
  verified: boolean;
921
1011
  } | {
922
- type: import("../index.js").VerificationType.EnterpriseSso;
1012
+ type: VerificationType.EnterpriseSso;
923
1013
  id: string;
924
1014
  connectorId: string;
925
1015
  issuer?: string | undefined;
@@ -932,13 +1022,13 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
932
1022
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
933
1023
  } | undefined;
934
1024
  } | {
935
- type: import("../index.js").VerificationType.WebAuthn;
1025
+ type: VerificationType.WebAuthn;
936
1026
  id: string;
937
1027
  userId: string;
938
1028
  verified: boolean;
939
1029
  registrationRpId?: string | undefined;
940
1030
  } | {
941
- type: import("../index.js").VerificationType.SignInWebAuthn;
1031
+ type: VerificationType.SignInPasskey;
942
1032
  id: string;
943
1033
  verified: boolean;
944
1034
  userId?: string | undefined;
@@ -949,12 +1039,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
949
1039
  userId: string;
950
1040
  interactionEvent: InteractionEvent;
951
1041
  verificationRecords: ({
952
- type: import("../index.js").VerificationType.BackupCode;
1042
+ type: VerificationType.BackupCode;
953
1043
  id: string;
954
1044
  userId: string;
955
1045
  code?: string | undefined;
956
1046
  } | {
957
- type: import("../index.js").VerificationType.EmailVerificationCode;
1047
+ type: VerificationType.EmailVerificationCode;
958
1048
  id: string;
959
1049
  identifier: {
960
1050
  value: string;
@@ -963,7 +1053,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
963
1053
  templateType: import("@logto/connector-kit").TemplateType;
964
1054
  verified: boolean;
965
1055
  } | {
966
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1056
+ type: VerificationType.PhoneVerificationCode;
967
1057
  id: string;
968
1058
  identifier: {
969
1059
  value: string;
@@ -972,14 +1062,32 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
972
1062
  templateType: import("@logto/connector-kit").TemplateType;
973
1063
  verified: boolean;
974
1064
  } | {
975
- type: import("../index.js").VerificationType.NewPasswordIdentity;
1065
+ type: VerificationType.MfaEmailVerificationCode;
1066
+ id: string;
1067
+ identifier: {
1068
+ value: string;
1069
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1070
+ };
1071
+ templateType: import("@logto/connector-kit").TemplateType;
1072
+ verified: boolean;
1073
+ } | {
1074
+ type: VerificationType.MfaPhoneVerificationCode;
1075
+ id: string;
1076
+ identifier: {
1077
+ value: string;
1078
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1079
+ };
1080
+ templateType: import("@logto/connector-kit").TemplateType;
1081
+ verified: boolean;
1082
+ } | {
1083
+ type: VerificationType.NewPasswordIdentity;
976
1084
  id: string;
977
1085
  identifier: {
978
1086
  value: string;
979
1087
  type: import("../../foundations/index.js").SignInIdentifier;
980
1088
  };
981
1089
  } | {
982
- type: import("../index.js").VerificationType.OneTimeToken;
1090
+ type: VerificationType.OneTimeToken;
983
1091
  id: string;
984
1092
  identifier: {
985
1093
  value: string;
@@ -990,7 +1098,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
990
1098
  jitOrganizationIds?: string[] | undefined;
991
1099
  } | undefined;
992
1100
  } | {
993
- type: import("../index.js").VerificationType.Password;
1101
+ type: VerificationType.Password;
994
1102
  id: string;
995
1103
  identifier: {
996
1104
  value: string;
@@ -998,7 +1106,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
998
1106
  };
999
1107
  verified: boolean;
1000
1108
  } | {
1001
- type: import("../index.js").VerificationType.Social;
1109
+ type: VerificationType.Social;
1002
1110
  id: string;
1003
1111
  connectorId: string;
1004
1112
  socialUserInfo?: {
@@ -1010,12 +1118,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1010
1118
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1011
1119
  } | undefined;
1012
1120
  } | {
1013
- type: import("../index.js").VerificationType.TOTP;
1121
+ type: VerificationType.TOTP;
1014
1122
  id: string;
1015
1123
  userId: string;
1016
1124
  verified: boolean;
1017
1125
  } | {
1018
- type: import("../index.js").VerificationType.EnterpriseSso;
1126
+ type: VerificationType.EnterpriseSso;
1019
1127
  id: string;
1020
1128
  connectorId: string;
1021
1129
  issuer?: string | undefined;
@@ -1028,13 +1136,13 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1028
1136
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1029
1137
  } | undefined;
1030
1138
  } | {
1031
- type: import("../index.js").VerificationType.WebAuthn;
1139
+ type: VerificationType.WebAuthn;
1032
1140
  id: string;
1033
1141
  userId: string;
1034
1142
  verified: boolean;
1035
1143
  registrationRpId?: string | undefined;
1036
1144
  } | {
1037
- type: import("../index.js").VerificationType.SignInWebAuthn;
1145
+ type: VerificationType.SignInPasskey;
1038
1146
  id: string;
1039
1147
  verified: boolean;
1040
1148
  userId?: string | undefined;
@@ -1061,6 +1169,8 @@ export declare const jwtCustomizerApplicationContextGuard: z.ZodObject<Omit<{
1061
1169
  alwaysIssueRefreshToken?: boolean | undefined;
1062
1170
  rotateRefreshToken?: boolean | undefined;
1063
1171
  allowTokenExchange?: boolean | undefined;
1172
+ isDeviceFlow?: boolean | undefined;
1173
+ maxAllowedGrants?: number | undefined;
1064
1174
  }, z.ZodTypeDef, {
1065
1175
  corsAllowedOrigins?: string[] | undefined;
1066
1176
  idTokenTtl?: number | undefined;
@@ -1070,6 +1180,8 @@ export declare const jwtCustomizerApplicationContextGuard: z.ZodObject<Omit<{
1070
1180
  alwaysIssueRefreshToken?: boolean | undefined;
1071
1181
  rotateRefreshToken?: boolean | undefined;
1072
1182
  allowTokenExchange?: boolean | undefined;
1183
+ isDeviceFlow?: boolean | undefined;
1184
+ maxAllowedGrants?: number | undefined;
1073
1185
  }>;
1074
1186
  protectedAppMetadata: ZodType<{
1075
1187
  host: string;
@@ -1159,6 +1271,7 @@ export declare const jwtCustomizerApplicationContextGuard: z.ZodObject<Omit<{
1159
1271
  export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1160
1272
  script: z.ZodString;
1161
1273
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1274
+ blockIssuanceOnError: z.ZodOptional<z.ZodBoolean>;
1162
1275
  } & {
1163
1276
  tokenSample: z.ZodOptional<z.ZodObject<{
1164
1277
  accountId: z.ZodOptional<z.ZodString>;
@@ -1534,7 +1647,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1534
1647
  userId: z.ZodOptional<z.ZodString>;
1535
1648
  verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1536
1649
  id: z.ZodString;
1537
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
1650
+ type: z.ZodLiteral<VerificationType.Password>;
1538
1651
  identifier: z.ZodObject<{
1539
1652
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
1540
1653
  value: z.ZodString;
@@ -1547,7 +1660,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1547
1660
  }>;
1548
1661
  verified: z.ZodBoolean;
1549
1662
  }, "strip", z.ZodTypeAny, {
1550
- type: import("../index.js").VerificationType.Password;
1663
+ type: VerificationType.Password;
1551
1664
  id: string;
1552
1665
  identifier: {
1553
1666
  value: string;
@@ -1555,7 +1668,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1555
1668
  };
1556
1669
  verified: boolean;
1557
1670
  }, {
1558
- type: import("../index.js").VerificationType.Password;
1671
+ type: VerificationType.Password;
1559
1672
  id: string;
1560
1673
  identifier: {
1561
1674
  value: string;
@@ -1567,7 +1680,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1567
1680
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1568
1681
  verified: z.ZodBoolean;
1569
1682
  } & {
1570
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
1683
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
1571
1684
  identifier: z.ZodObject<{
1572
1685
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1573
1686
  value: z.ZodString;
@@ -1579,7 +1692,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1579
1692
  type: import("../../foundations/index.js").SignInIdentifier.Email;
1580
1693
  }>;
1581
1694
  }, "strip", z.ZodTypeAny, {
1582
- type: import("../index.js").VerificationType.EmailVerificationCode;
1695
+ type: VerificationType.EmailVerificationCode;
1583
1696
  id: string;
1584
1697
  identifier: {
1585
1698
  value: string;
@@ -1588,7 +1701,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1588
1701
  templateType: import("@logto/connector-kit").TemplateType;
1589
1702
  verified: boolean;
1590
1703
  }, {
1591
- type: import("../index.js").VerificationType.EmailVerificationCode;
1704
+ type: VerificationType.EmailVerificationCode;
1592
1705
  id: string;
1593
1706
  identifier: {
1594
1707
  value: string;
@@ -1601,7 +1714,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1601
1714
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1602
1715
  verified: z.ZodBoolean;
1603
1716
  } & {
1604
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
1717
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
1605
1718
  identifier: z.ZodObject<{
1606
1719
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
1607
1720
  value: z.ZodString;
@@ -1613,7 +1726,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1613
1726
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
1614
1727
  }>;
1615
1728
  }, "strip", z.ZodTypeAny, {
1616
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1729
+ type: VerificationType.PhoneVerificationCode;
1617
1730
  id: string;
1618
1731
  identifier: {
1619
1732
  value: string;
@@ -1622,7 +1735,75 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1622
1735
  templateType: import("@logto/connector-kit").TemplateType;
1623
1736
  verified: boolean;
1624
1737
  }, {
1625
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1738
+ type: VerificationType.PhoneVerificationCode;
1739
+ id: string;
1740
+ identifier: {
1741
+ value: string;
1742
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1743
+ };
1744
+ templateType: import("@logto/connector-kit").TemplateType;
1745
+ verified: boolean;
1746
+ }>, z.ZodObject<{
1747
+ id: z.ZodString;
1748
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1749
+ verified: z.ZodBoolean;
1750
+ } & {
1751
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
1752
+ identifier: z.ZodObject<{
1753
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1754
+ value: z.ZodString;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ value: string;
1757
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1758
+ }, {
1759
+ value: string;
1760
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1761
+ }>;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ type: VerificationType.MfaEmailVerificationCode;
1764
+ id: string;
1765
+ identifier: {
1766
+ value: string;
1767
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1768
+ };
1769
+ templateType: import("@logto/connector-kit").TemplateType;
1770
+ verified: boolean;
1771
+ }, {
1772
+ type: VerificationType.MfaEmailVerificationCode;
1773
+ id: string;
1774
+ identifier: {
1775
+ value: string;
1776
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1777
+ };
1778
+ templateType: import("@logto/connector-kit").TemplateType;
1779
+ verified: boolean;
1780
+ }>, z.ZodObject<{
1781
+ id: z.ZodString;
1782
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1783
+ verified: z.ZodBoolean;
1784
+ } & {
1785
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
1786
+ identifier: z.ZodObject<{
1787
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
1788
+ value: z.ZodString;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ value: string;
1791
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1792
+ }, {
1793
+ value: string;
1794
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1795
+ }>;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ type: VerificationType.MfaPhoneVerificationCode;
1798
+ id: string;
1799
+ identifier: {
1800
+ value: string;
1801
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1802
+ };
1803
+ templateType: import("@logto/connector-kit").TemplateType;
1804
+ verified: boolean;
1805
+ }, {
1806
+ type: VerificationType.MfaPhoneVerificationCode;
1626
1807
  id: string;
1627
1808
  identifier: {
1628
1809
  value: string;
@@ -1633,7 +1814,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1633
1814
  }>, z.ZodObject<Omit<{
1634
1815
  id: z.ZodString;
1635
1816
  connectorId: z.ZodString;
1636
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
1817
+ type: z.ZodLiteral<VerificationType.Social>;
1637
1818
  socialUserInfo: z.ZodOptional<z.ZodObject<{
1638
1819
  id: z.ZodString;
1639
1820
  email: z.ZodOptional<z.ZodString>;
@@ -1714,7 +1895,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1714
1895
  state: z.ZodOptional<z.ZodString>;
1715
1896
  }, z.ZodUnknown, "strip">>>;
1716
1897
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
1717
- type: import("../index.js").VerificationType.Social;
1898
+ type: VerificationType.Social;
1718
1899
  id: string;
1719
1900
  connectorId: string;
1720
1901
  socialUserInfo?: {
@@ -1726,7 +1907,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1726
1907
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1727
1908
  } | undefined;
1728
1909
  }, {
1729
- type: import("../index.js").VerificationType.Social;
1910
+ type: VerificationType.Social;
1730
1911
  id: string;
1731
1912
  connectorId: string;
1732
1913
  socialUserInfo?: {
@@ -1738,7 +1919,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1738
1919
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1739
1920
  } | undefined;
1740
1921
  }>, z.ZodObject<{
1741
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
1922
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
1742
1923
  id: z.ZodString;
1743
1924
  issuer: z.ZodOptional<z.ZodString>;
1744
1925
  connectorId: z.ZodString;
@@ -1766,7 +1947,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1766
1947
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1767
1948
  }>>;
1768
1949
  }, "strip", z.ZodTypeAny, {
1769
- type: import("../index.js").VerificationType.EnterpriseSso;
1950
+ type: VerificationType.EnterpriseSso;
1770
1951
  id: string;
1771
1952
  connectorId: string;
1772
1953
  issuer?: string | undefined;
@@ -1779,7 +1960,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1779
1960
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1780
1961
  } | undefined;
1781
1962
  }, {
1782
- type: import("../index.js").VerificationType.EnterpriseSso;
1963
+ type: VerificationType.EnterpriseSso;
1783
1964
  id: string;
1784
1965
  connectorId: string;
1785
1966
  issuer?: string | undefined;
@@ -1793,33 +1974,33 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1793
1974
  } | undefined;
1794
1975
  }>, z.ZodObject<Omit<{
1795
1976
  id: z.ZodString;
1796
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
1977
+ type: z.ZodLiteral<VerificationType.TOTP>;
1797
1978
  userId: z.ZodString;
1798
1979
  secret: z.ZodOptional<z.ZodString>;
1799
1980
  verified: z.ZodBoolean;
1800
1981
  }, "secret">, "strip", z.ZodTypeAny, {
1801
- type: import("../index.js").VerificationType.TOTP;
1982
+ type: VerificationType.TOTP;
1802
1983
  id: string;
1803
1984
  userId: string;
1804
1985
  verified: boolean;
1805
1986
  }, {
1806
- type: import("../index.js").VerificationType.TOTP;
1987
+ type: VerificationType.TOTP;
1807
1988
  id: string;
1808
1989
  userId: string;
1809
1990
  verified: boolean;
1810
1991
  }>, z.ZodObject<Omit<{
1811
1992
  id: z.ZodString;
1812
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
1993
+ type: z.ZodLiteral<VerificationType.BackupCode>;
1813
1994
  userId: z.ZodString;
1814
1995
  code: z.ZodOptional<z.ZodString>;
1815
1996
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1816
1997
  }, "backupCodes">, "strip", z.ZodTypeAny, {
1817
- type: import("../index.js").VerificationType.BackupCode;
1998
+ type: VerificationType.BackupCode;
1818
1999
  id: string;
1819
2000
  userId: string;
1820
2001
  code?: string | undefined;
1821
2002
  }, {
1822
- type: import("../index.js").VerificationType.BackupCode;
2003
+ type: VerificationType.BackupCode;
1823
2004
  id: string;
1824
2005
  userId: string;
1825
2006
  code?: string | undefined;
@@ -1858,16 +2039,16 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1858
2039
  name?: string | undefined;
1859
2040
  }>>;
1860
2041
  } & {
1861
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
2042
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
1862
2043
  userId: z.ZodString;
1863
2044
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
1864
- type: import("../index.js").VerificationType.WebAuthn;
2045
+ type: VerificationType.WebAuthn;
1865
2046
  id: string;
1866
2047
  userId: string;
1867
2048
  verified: boolean;
1868
2049
  registrationRpId?: string | undefined;
1869
2050
  }, {
1870
- type: import("../index.js").VerificationType.WebAuthn;
2051
+ type: VerificationType.WebAuthn;
1871
2052
  id: string;
1872
2053
  userId: string;
1873
2054
  verified: boolean;
@@ -1907,24 +2088,24 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1907
2088
  name?: string | undefined;
1908
2089
  }>>;
1909
2090
  } & {
1910
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
2091
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
1911
2092
  userId: z.ZodOptional<z.ZodString>;
1912
2093
  authenticationRpId: z.ZodOptional<z.ZodString>;
1913
2094
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
1914
- type: import("../index.js").VerificationType.SignInWebAuthn;
2095
+ type: VerificationType.SignInPasskey;
1915
2096
  id: string;
1916
2097
  verified: boolean;
1917
2098
  userId?: string | undefined;
1918
2099
  registrationRpId?: string | undefined;
1919
2100
  }, {
1920
- type: import("../index.js").VerificationType.SignInWebAuthn;
2101
+ type: VerificationType.SignInPasskey;
1921
2102
  id: string;
1922
2103
  verified: boolean;
1923
2104
  userId?: string | undefined;
1924
2105
  registrationRpId?: string | undefined;
1925
2106
  }>, z.ZodObject<{
1926
2107
  id: z.ZodString;
1927
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
2108
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
1928
2109
  verified: z.ZodBoolean;
1929
2110
  identifier: z.ZodObject<{
1930
2111
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -1944,7 +2125,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1944
2125
  jitOrganizationIds?: string[] | undefined;
1945
2126
  }>>;
1946
2127
  }, "strip", z.ZodTypeAny, {
1947
- type: import("../index.js").VerificationType.OneTimeToken;
2128
+ type: VerificationType.OneTimeToken;
1948
2129
  id: string;
1949
2130
  identifier: {
1950
2131
  value: string;
@@ -1955,7 +2136,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1955
2136
  jitOrganizationIds?: string[] | undefined;
1956
2137
  } | undefined;
1957
2138
  }, {
1958
- type: import("../index.js").VerificationType.OneTimeToken;
2139
+ type: VerificationType.OneTimeToken;
1959
2140
  id: string;
1960
2141
  identifier: {
1961
2142
  value: string;
@@ -1967,7 +2148,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1967
2148
  } | undefined;
1968
2149
  }>, z.ZodObject<Omit<{
1969
2150
  id: z.ZodString;
1970
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
2151
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
1971
2152
  identifier: z.ZodObject<{
1972
2153
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
1973
2154
  value: z.ZodString;
@@ -1981,14 +2162,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1981
2162
  passwordEncrypted: z.ZodOptional<z.ZodString>;
1982
2163
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
1983
2164
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
1984
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2165
+ type: VerificationType.NewPasswordIdentity;
1985
2166
  id: string;
1986
2167
  identifier: {
1987
2168
  value: string;
1988
2169
  type: import("../../foundations/index.js").SignInIdentifier;
1989
2170
  };
1990
2171
  }, {
1991
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2172
+ type: VerificationType.NewPasswordIdentity;
1992
2173
  id: string;
1993
2174
  identifier: {
1994
2175
  value: string;
@@ -2000,12 +2181,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2000
2181
  userId?: string | undefined;
2001
2182
  interactionEvent?: InteractionEvent | undefined;
2002
2183
  verificationRecords?: ({
2003
- type: import("../index.js").VerificationType.BackupCode;
2184
+ type: VerificationType.BackupCode;
2004
2185
  id: string;
2005
2186
  userId: string;
2006
2187
  code?: string | undefined;
2007
2188
  } | {
2008
- type: import("../index.js").VerificationType.EmailVerificationCode;
2189
+ type: VerificationType.EmailVerificationCode;
2190
+ id: string;
2191
+ identifier: {
2192
+ value: string;
2193
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2194
+ };
2195
+ templateType: import("@logto/connector-kit").TemplateType;
2196
+ verified: boolean;
2197
+ } | {
2198
+ type: VerificationType.PhoneVerificationCode;
2199
+ id: string;
2200
+ identifier: {
2201
+ value: string;
2202
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2203
+ };
2204
+ templateType: import("@logto/connector-kit").TemplateType;
2205
+ verified: boolean;
2206
+ } | {
2207
+ type: VerificationType.MfaEmailVerificationCode;
2009
2208
  id: string;
2010
2209
  identifier: {
2011
2210
  value: string;
@@ -2014,7 +2213,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2014
2213
  templateType: import("@logto/connector-kit").TemplateType;
2015
2214
  verified: boolean;
2016
2215
  } | {
2017
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2216
+ type: VerificationType.MfaPhoneVerificationCode;
2018
2217
  id: string;
2019
2218
  identifier: {
2020
2219
  value: string;
@@ -2023,14 +2222,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2023
2222
  templateType: import("@logto/connector-kit").TemplateType;
2024
2223
  verified: boolean;
2025
2224
  } | {
2026
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2225
+ type: VerificationType.NewPasswordIdentity;
2027
2226
  id: string;
2028
2227
  identifier: {
2029
2228
  value: string;
2030
2229
  type: import("../../foundations/index.js").SignInIdentifier;
2031
2230
  };
2032
2231
  } | {
2033
- type: import("../index.js").VerificationType.OneTimeToken;
2232
+ type: VerificationType.OneTimeToken;
2034
2233
  id: string;
2035
2234
  identifier: {
2036
2235
  value: string;
@@ -2041,7 +2240,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2041
2240
  jitOrganizationIds?: string[] | undefined;
2042
2241
  } | undefined;
2043
2242
  } | {
2044
- type: import("../index.js").VerificationType.Password;
2243
+ type: VerificationType.Password;
2045
2244
  id: string;
2046
2245
  identifier: {
2047
2246
  value: string;
@@ -2049,7 +2248,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2049
2248
  };
2050
2249
  verified: boolean;
2051
2250
  } | {
2052
- type: import("../index.js").VerificationType.Social;
2251
+ type: VerificationType.Social;
2053
2252
  id: string;
2054
2253
  connectorId: string;
2055
2254
  socialUserInfo?: {
@@ -2061,12 +2260,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2061
2260
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2062
2261
  } | undefined;
2063
2262
  } | {
2064
- type: import("../index.js").VerificationType.TOTP;
2263
+ type: VerificationType.TOTP;
2065
2264
  id: string;
2066
2265
  userId: string;
2067
2266
  verified: boolean;
2068
2267
  } | {
2069
- type: import("../index.js").VerificationType.EnterpriseSso;
2268
+ type: VerificationType.EnterpriseSso;
2070
2269
  id: string;
2071
2270
  connectorId: string;
2072
2271
  issuer?: string | undefined;
@@ -2079,13 +2278,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2079
2278
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2080
2279
  } | undefined;
2081
2280
  } | {
2082
- type: import("../index.js").VerificationType.WebAuthn;
2281
+ type: VerificationType.WebAuthn;
2083
2282
  id: string;
2084
2283
  userId: string;
2085
2284
  verified: boolean;
2086
2285
  registrationRpId?: string | undefined;
2087
2286
  } | {
2088
- type: import("../index.js").VerificationType.SignInWebAuthn;
2287
+ type: VerificationType.SignInPasskey;
2089
2288
  id: string;
2090
2289
  verified: boolean;
2091
2290
  userId?: string | undefined;
@@ -2096,12 +2295,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2096
2295
  userId?: string | undefined;
2097
2296
  interactionEvent?: InteractionEvent | undefined;
2098
2297
  verificationRecords?: ({
2099
- type: import("../index.js").VerificationType.BackupCode;
2298
+ type: VerificationType.BackupCode;
2100
2299
  id: string;
2101
2300
  userId: string;
2102
2301
  code?: string | undefined;
2103
2302
  } | {
2104
- type: import("../index.js").VerificationType.EmailVerificationCode;
2303
+ type: VerificationType.EmailVerificationCode;
2105
2304
  id: string;
2106
2305
  identifier: {
2107
2306
  value: string;
@@ -2110,7 +2309,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2110
2309
  templateType: import("@logto/connector-kit").TemplateType;
2111
2310
  verified: boolean;
2112
2311
  } | {
2113
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2312
+ type: VerificationType.PhoneVerificationCode;
2114
2313
  id: string;
2115
2314
  identifier: {
2116
2315
  value: string;
@@ -2119,14 +2318,32 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2119
2318
  templateType: import("@logto/connector-kit").TemplateType;
2120
2319
  verified: boolean;
2121
2320
  } | {
2122
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2321
+ type: VerificationType.MfaEmailVerificationCode;
2322
+ id: string;
2323
+ identifier: {
2324
+ value: string;
2325
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2326
+ };
2327
+ templateType: import("@logto/connector-kit").TemplateType;
2328
+ verified: boolean;
2329
+ } | {
2330
+ type: VerificationType.MfaPhoneVerificationCode;
2331
+ id: string;
2332
+ identifier: {
2333
+ value: string;
2334
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2335
+ };
2336
+ templateType: import("@logto/connector-kit").TemplateType;
2337
+ verified: boolean;
2338
+ } | {
2339
+ type: VerificationType.NewPasswordIdentity;
2123
2340
  id: string;
2124
2341
  identifier: {
2125
2342
  value: string;
2126
2343
  type: import("../../foundations/index.js").SignInIdentifier;
2127
2344
  };
2128
2345
  } | {
2129
- type: import("../index.js").VerificationType.OneTimeToken;
2346
+ type: VerificationType.OneTimeToken;
2130
2347
  id: string;
2131
2348
  identifier: {
2132
2349
  value: string;
@@ -2137,7 +2354,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2137
2354
  jitOrganizationIds?: string[] | undefined;
2138
2355
  } | undefined;
2139
2356
  } | {
2140
- type: import("../index.js").VerificationType.Password;
2357
+ type: VerificationType.Password;
2141
2358
  id: string;
2142
2359
  identifier: {
2143
2360
  value: string;
@@ -2145,7 +2362,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2145
2362
  };
2146
2363
  verified: boolean;
2147
2364
  } | {
2148
- type: import("../index.js").VerificationType.Social;
2365
+ type: VerificationType.Social;
2149
2366
  id: string;
2150
2367
  connectorId: string;
2151
2368
  socialUserInfo?: {
@@ -2157,12 +2374,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2157
2374
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2158
2375
  } | undefined;
2159
2376
  } | {
2160
- type: import("../index.js").VerificationType.TOTP;
2377
+ type: VerificationType.TOTP;
2161
2378
  id: string;
2162
2379
  userId: string;
2163
2380
  verified: boolean;
2164
2381
  } | {
2165
- type: import("../index.js").VerificationType.EnterpriseSso;
2382
+ type: VerificationType.EnterpriseSso;
2166
2383
  id: string;
2167
2384
  connectorId: string;
2168
2385
  issuer?: string | undefined;
@@ -2175,13 +2392,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2175
2392
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2176
2393
  } | undefined;
2177
2394
  } | {
2178
- type: import("../index.js").VerificationType.WebAuthn;
2395
+ type: VerificationType.WebAuthn;
2179
2396
  id: string;
2180
2397
  userId: string;
2181
2398
  verified: boolean;
2182
2399
  registrationRpId?: string | undefined;
2183
2400
  } | {
2184
- type: import("../index.js").VerificationType.SignInWebAuthn;
2401
+ type: VerificationType.SignInPasskey;
2185
2402
  id: string;
2186
2403
  verified: boolean;
2187
2404
  userId?: string | undefined;
@@ -2207,6 +2424,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2207
2424
  alwaysIssueRefreshToken?: boolean | undefined;
2208
2425
  rotateRefreshToken?: boolean | undefined;
2209
2426
  allowTokenExchange?: boolean | undefined;
2427
+ isDeviceFlow?: boolean | undefined;
2428
+ maxAllowedGrants?: number | undefined;
2210
2429
  }, z.ZodTypeDef, {
2211
2430
  corsAllowedOrigins?: string[] | undefined;
2212
2431
  idTokenTtl?: number | undefined;
@@ -2216,6 +2435,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2216
2435
  alwaysIssueRefreshToken?: boolean | undefined;
2217
2436
  rotateRefreshToken?: boolean | undefined;
2218
2437
  allowTokenExchange?: boolean | undefined;
2438
+ isDeviceFlow?: boolean | undefined;
2439
+ maxAllowedGrants?: number | undefined;
2219
2440
  }>>;
2220
2441
  protectedAppMetadata: z.ZodOptional<ZodType<{
2221
2442
  host: string;
@@ -2293,6 +2514,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2293
2514
  alwaysIssueRefreshToken?: boolean | undefined;
2294
2515
  rotateRefreshToken?: boolean | undefined;
2295
2516
  allowTokenExchange?: boolean | undefined;
2517
+ isDeviceFlow?: boolean | undefined;
2518
+ maxAllowedGrants?: number | undefined;
2296
2519
  } | undefined;
2297
2520
  protectedAppMetadata?: {
2298
2521
  host: string;
@@ -2342,6 +2565,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2342
2565
  alwaysIssueRefreshToken?: boolean | undefined;
2343
2566
  rotateRefreshToken?: boolean | undefined;
2344
2567
  allowTokenExchange?: boolean | undefined;
2568
+ isDeviceFlow?: boolean | undefined;
2569
+ maxAllowedGrants?: number | undefined;
2345
2570
  } | undefined;
2346
2571
  protectedAppMetadata?: {
2347
2572
  host: string;
@@ -2461,6 +2686,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2461
2686
  alwaysIssueRefreshToken?: boolean | undefined;
2462
2687
  rotateRefreshToken?: boolean | undefined;
2463
2688
  allowTokenExchange?: boolean | undefined;
2689
+ isDeviceFlow?: boolean | undefined;
2690
+ maxAllowedGrants?: number | undefined;
2464
2691
  } | undefined;
2465
2692
  protectedAppMetadata?: {
2466
2693
  host: string;
@@ -2501,12 +2728,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2501
2728
  userId?: string | undefined;
2502
2729
  interactionEvent?: InteractionEvent | undefined;
2503
2730
  verificationRecords?: ({
2504
- type: import("../index.js").VerificationType.BackupCode;
2731
+ type: VerificationType.BackupCode;
2505
2732
  id: string;
2506
2733
  userId: string;
2507
2734
  code?: string | undefined;
2508
2735
  } | {
2509
- type: import("../index.js").VerificationType.EmailVerificationCode;
2736
+ type: VerificationType.EmailVerificationCode;
2510
2737
  id: string;
2511
2738
  identifier: {
2512
2739
  value: string;
@@ -2515,7 +2742,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2515
2742
  templateType: import("@logto/connector-kit").TemplateType;
2516
2743
  verified: boolean;
2517
2744
  } | {
2518
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2745
+ type: VerificationType.PhoneVerificationCode;
2519
2746
  id: string;
2520
2747
  identifier: {
2521
2748
  value: string;
@@ -2524,14 +2751,32 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2524
2751
  templateType: import("@logto/connector-kit").TemplateType;
2525
2752
  verified: boolean;
2526
2753
  } | {
2527
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2754
+ type: VerificationType.MfaEmailVerificationCode;
2755
+ id: string;
2756
+ identifier: {
2757
+ value: string;
2758
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2759
+ };
2760
+ templateType: import("@logto/connector-kit").TemplateType;
2761
+ verified: boolean;
2762
+ } | {
2763
+ type: VerificationType.MfaPhoneVerificationCode;
2764
+ id: string;
2765
+ identifier: {
2766
+ value: string;
2767
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2768
+ };
2769
+ templateType: import("@logto/connector-kit").TemplateType;
2770
+ verified: boolean;
2771
+ } | {
2772
+ type: VerificationType.NewPasswordIdentity;
2528
2773
  id: string;
2529
2774
  identifier: {
2530
2775
  value: string;
2531
2776
  type: import("../../foundations/index.js").SignInIdentifier;
2532
2777
  };
2533
2778
  } | {
2534
- type: import("../index.js").VerificationType.OneTimeToken;
2779
+ type: VerificationType.OneTimeToken;
2535
2780
  id: string;
2536
2781
  identifier: {
2537
2782
  value: string;
@@ -2542,7 +2787,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2542
2787
  jitOrganizationIds?: string[] | undefined;
2543
2788
  } | undefined;
2544
2789
  } | {
2545
- type: import("../index.js").VerificationType.Password;
2790
+ type: VerificationType.Password;
2546
2791
  id: string;
2547
2792
  identifier: {
2548
2793
  value: string;
@@ -2550,7 +2795,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2550
2795
  };
2551
2796
  verified: boolean;
2552
2797
  } | {
2553
- type: import("../index.js").VerificationType.Social;
2798
+ type: VerificationType.Social;
2554
2799
  id: string;
2555
2800
  connectorId: string;
2556
2801
  socialUserInfo?: {
@@ -2562,12 +2807,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2562
2807
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2563
2808
  } | undefined;
2564
2809
  } | {
2565
- type: import("../index.js").VerificationType.TOTP;
2810
+ type: VerificationType.TOTP;
2566
2811
  id: string;
2567
2812
  userId: string;
2568
2813
  verified: boolean;
2569
2814
  } | {
2570
- type: import("../index.js").VerificationType.EnterpriseSso;
2815
+ type: VerificationType.EnterpriseSso;
2571
2816
  id: string;
2572
2817
  connectorId: string;
2573
2818
  issuer?: string | undefined;
@@ -2580,13 +2825,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2580
2825
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2581
2826
  } | undefined;
2582
2827
  } | {
2583
- type: import("../index.js").VerificationType.WebAuthn;
2828
+ type: VerificationType.WebAuthn;
2584
2829
  id: string;
2585
2830
  userId: string;
2586
2831
  verified: boolean;
2587
2832
  registrationRpId?: string | undefined;
2588
2833
  } | {
2589
- type: import("../index.js").VerificationType.SignInWebAuthn;
2834
+ type: VerificationType.SignInPasskey;
2590
2835
  id: string;
2591
2836
  verified: boolean;
2592
2837
  userId?: string | undefined;
@@ -2681,6 +2926,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2681
2926
  alwaysIssueRefreshToken?: boolean | undefined;
2682
2927
  rotateRefreshToken?: boolean | undefined;
2683
2928
  allowTokenExchange?: boolean | undefined;
2929
+ isDeviceFlow?: boolean | undefined;
2930
+ maxAllowedGrants?: number | undefined;
2684
2931
  } | undefined;
2685
2932
  protectedAppMetadata?: {
2686
2933
  host: string;
@@ -2721,12 +2968,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2721
2968
  userId?: string | undefined;
2722
2969
  interactionEvent?: InteractionEvent | undefined;
2723
2970
  verificationRecords?: ({
2724
- type: import("../index.js").VerificationType.BackupCode;
2971
+ type: VerificationType.BackupCode;
2725
2972
  id: string;
2726
2973
  userId: string;
2727
2974
  code?: string | undefined;
2728
2975
  } | {
2729
- type: import("../index.js").VerificationType.EmailVerificationCode;
2976
+ type: VerificationType.EmailVerificationCode;
2977
+ id: string;
2978
+ identifier: {
2979
+ value: string;
2980
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2981
+ };
2982
+ templateType: import("@logto/connector-kit").TemplateType;
2983
+ verified: boolean;
2984
+ } | {
2985
+ type: VerificationType.PhoneVerificationCode;
2986
+ id: string;
2987
+ identifier: {
2988
+ value: string;
2989
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2990
+ };
2991
+ templateType: import("@logto/connector-kit").TemplateType;
2992
+ verified: boolean;
2993
+ } | {
2994
+ type: VerificationType.MfaEmailVerificationCode;
2730
2995
  id: string;
2731
2996
  identifier: {
2732
2997
  value: string;
@@ -2735,7 +3000,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2735
3000
  templateType: import("@logto/connector-kit").TemplateType;
2736
3001
  verified: boolean;
2737
3002
  } | {
2738
- type: import("../index.js").VerificationType.PhoneVerificationCode;
3003
+ type: VerificationType.MfaPhoneVerificationCode;
2739
3004
  id: string;
2740
3005
  identifier: {
2741
3006
  value: string;
@@ -2744,14 +3009,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2744
3009
  templateType: import("@logto/connector-kit").TemplateType;
2745
3010
  verified: boolean;
2746
3011
  } | {
2747
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3012
+ type: VerificationType.NewPasswordIdentity;
2748
3013
  id: string;
2749
3014
  identifier: {
2750
3015
  value: string;
2751
3016
  type: import("../../foundations/index.js").SignInIdentifier;
2752
3017
  };
2753
3018
  } | {
2754
- type: import("../index.js").VerificationType.OneTimeToken;
3019
+ type: VerificationType.OneTimeToken;
2755
3020
  id: string;
2756
3021
  identifier: {
2757
3022
  value: string;
@@ -2762,7 +3027,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2762
3027
  jitOrganizationIds?: string[] | undefined;
2763
3028
  } | undefined;
2764
3029
  } | {
2765
- type: import("../index.js").VerificationType.Password;
3030
+ type: VerificationType.Password;
2766
3031
  id: string;
2767
3032
  identifier: {
2768
3033
  value: string;
@@ -2770,7 +3035,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2770
3035
  };
2771
3036
  verified: boolean;
2772
3037
  } | {
2773
- type: import("../index.js").VerificationType.Social;
3038
+ type: VerificationType.Social;
2774
3039
  id: string;
2775
3040
  connectorId: string;
2776
3041
  socialUserInfo?: {
@@ -2782,12 +3047,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2782
3047
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2783
3048
  } | undefined;
2784
3049
  } | {
2785
- type: import("../index.js").VerificationType.TOTP;
3050
+ type: VerificationType.TOTP;
2786
3051
  id: string;
2787
3052
  userId: string;
2788
3053
  verified: boolean;
2789
3054
  } | {
2790
- type: import("../index.js").VerificationType.EnterpriseSso;
3055
+ type: VerificationType.EnterpriseSso;
2791
3056
  id: string;
2792
3057
  connectorId: string;
2793
3058
  issuer?: string | undefined;
@@ -2800,13 +3065,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2800
3065
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2801
3066
  } | undefined;
2802
3067
  } | {
2803
- type: import("../index.js").VerificationType.WebAuthn;
3068
+ type: VerificationType.WebAuthn;
2804
3069
  id: string;
2805
3070
  userId: string;
2806
3071
  verified: boolean;
2807
3072
  registrationRpId?: string | undefined;
2808
3073
  } | {
2809
- type: import("../index.js").VerificationType.SignInWebAuthn;
3074
+ type: VerificationType.SignInPasskey;
2810
3075
  id: string;
2811
3076
  verified: boolean;
2812
3077
  userId?: string | undefined;
@@ -2905,6 +3170,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2905
3170
  alwaysIssueRefreshToken?: boolean | undefined;
2906
3171
  rotateRefreshToken?: boolean | undefined;
2907
3172
  allowTokenExchange?: boolean | undefined;
3173
+ isDeviceFlow?: boolean | undefined;
3174
+ maxAllowedGrants?: number | undefined;
2908
3175
  } | undefined;
2909
3176
  protectedAppMetadata?: {
2910
3177
  host: string;
@@ -2945,12 +3212,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2945
3212
  userId?: string | undefined;
2946
3213
  interactionEvent?: InteractionEvent | undefined;
2947
3214
  verificationRecords?: ({
2948
- type: import("../index.js").VerificationType.BackupCode;
3215
+ type: VerificationType.BackupCode;
2949
3216
  id: string;
2950
3217
  userId: string;
2951
3218
  code?: string | undefined;
2952
3219
  } | {
2953
- type: import("../index.js").VerificationType.EmailVerificationCode;
3220
+ type: VerificationType.EmailVerificationCode;
3221
+ id: string;
3222
+ identifier: {
3223
+ value: string;
3224
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3225
+ };
3226
+ templateType: import("@logto/connector-kit").TemplateType;
3227
+ verified: boolean;
3228
+ } | {
3229
+ type: VerificationType.PhoneVerificationCode;
3230
+ id: string;
3231
+ identifier: {
3232
+ value: string;
3233
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3234
+ };
3235
+ templateType: import("@logto/connector-kit").TemplateType;
3236
+ verified: boolean;
3237
+ } | {
3238
+ type: VerificationType.MfaEmailVerificationCode;
2954
3239
  id: string;
2955
3240
  identifier: {
2956
3241
  value: string;
@@ -2959,7 +3244,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2959
3244
  templateType: import("@logto/connector-kit").TemplateType;
2960
3245
  verified: boolean;
2961
3246
  } | {
2962
- type: import("../index.js").VerificationType.PhoneVerificationCode;
3247
+ type: VerificationType.MfaPhoneVerificationCode;
2963
3248
  id: string;
2964
3249
  identifier: {
2965
3250
  value: string;
@@ -2968,14 +3253,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2968
3253
  templateType: import("@logto/connector-kit").TemplateType;
2969
3254
  verified: boolean;
2970
3255
  } | {
2971
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3256
+ type: VerificationType.NewPasswordIdentity;
2972
3257
  id: string;
2973
3258
  identifier: {
2974
3259
  value: string;
2975
3260
  type: import("../../foundations/index.js").SignInIdentifier;
2976
3261
  };
2977
3262
  } | {
2978
- type: import("../index.js").VerificationType.OneTimeToken;
3263
+ type: VerificationType.OneTimeToken;
2979
3264
  id: string;
2980
3265
  identifier: {
2981
3266
  value: string;
@@ -2986,7 +3271,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2986
3271
  jitOrganizationIds?: string[] | undefined;
2987
3272
  } | undefined;
2988
3273
  } | {
2989
- type: import("../index.js").VerificationType.Password;
3274
+ type: VerificationType.Password;
2990
3275
  id: string;
2991
3276
  identifier: {
2992
3277
  value: string;
@@ -2994,7 +3279,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2994
3279
  };
2995
3280
  verified: boolean;
2996
3281
  } | {
2997
- type: import("../index.js").VerificationType.Social;
3282
+ type: VerificationType.Social;
2998
3283
  id: string;
2999
3284
  connectorId: string;
3000
3285
  socialUserInfo?: {
@@ -3006,12 +3291,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3006
3291
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3007
3292
  } | undefined;
3008
3293
  } | {
3009
- type: import("../index.js").VerificationType.TOTP;
3294
+ type: VerificationType.TOTP;
3010
3295
  id: string;
3011
3296
  userId: string;
3012
3297
  verified: boolean;
3013
3298
  } | {
3014
- type: import("../index.js").VerificationType.EnterpriseSso;
3299
+ type: VerificationType.EnterpriseSso;
3015
3300
  id: string;
3016
3301
  connectorId: string;
3017
3302
  issuer?: string | undefined;
@@ -3024,13 +3309,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3024
3309
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3025
3310
  } | undefined;
3026
3311
  } | {
3027
- type: import("../index.js").VerificationType.WebAuthn;
3312
+ type: VerificationType.WebAuthn;
3028
3313
  id: string;
3029
3314
  userId: string;
3030
3315
  verified: boolean;
3031
3316
  registrationRpId?: string | undefined;
3032
3317
  } | {
3033
- type: import("../index.js").VerificationType.SignInWebAuthn;
3318
+ type: VerificationType.SignInPasskey;
3034
3319
  id: string;
3035
3320
  verified: boolean;
3036
3321
  userId?: string | undefined;
@@ -3039,6 +3324,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3039
3324
  signInContext?: Record<string, string> | undefined;
3040
3325
  } | undefined;
3041
3326
  } | undefined;
3327
+ blockIssuanceOnError?: boolean | undefined;
3042
3328
  tokenSample?: {
3043
3329
  grantId?: string | undefined;
3044
3330
  sid?: string | undefined;
@@ -3142,6 +3428,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3142
3428
  alwaysIssueRefreshToken?: boolean | undefined;
3143
3429
  rotateRefreshToken?: boolean | undefined;
3144
3430
  allowTokenExchange?: boolean | undefined;
3431
+ isDeviceFlow?: boolean | undefined;
3432
+ maxAllowedGrants?: number | undefined;
3145
3433
  } | undefined;
3146
3434
  protectedAppMetadata?: {
3147
3435
  host: string;
@@ -3182,12 +3470,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3182
3470
  userId?: string | undefined;
3183
3471
  interactionEvent?: InteractionEvent | undefined;
3184
3472
  verificationRecords?: ({
3185
- type: import("../index.js").VerificationType.BackupCode;
3473
+ type: VerificationType.BackupCode;
3186
3474
  id: string;
3187
3475
  userId: string;
3188
3476
  code?: string | undefined;
3189
3477
  } | {
3190
- type: import("../index.js").VerificationType.EmailVerificationCode;
3478
+ type: VerificationType.EmailVerificationCode;
3479
+ id: string;
3480
+ identifier: {
3481
+ value: string;
3482
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3483
+ };
3484
+ templateType: import("@logto/connector-kit").TemplateType;
3485
+ verified: boolean;
3486
+ } | {
3487
+ type: VerificationType.PhoneVerificationCode;
3488
+ id: string;
3489
+ identifier: {
3490
+ value: string;
3491
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3492
+ };
3493
+ templateType: import("@logto/connector-kit").TemplateType;
3494
+ verified: boolean;
3495
+ } | {
3496
+ type: VerificationType.MfaEmailVerificationCode;
3191
3497
  id: string;
3192
3498
  identifier: {
3193
3499
  value: string;
@@ -3196,7 +3502,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3196
3502
  templateType: import("@logto/connector-kit").TemplateType;
3197
3503
  verified: boolean;
3198
3504
  } | {
3199
- type: import("../index.js").VerificationType.PhoneVerificationCode;
3505
+ type: VerificationType.MfaPhoneVerificationCode;
3200
3506
  id: string;
3201
3507
  identifier: {
3202
3508
  value: string;
@@ -3205,14 +3511,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3205
3511
  templateType: import("@logto/connector-kit").TemplateType;
3206
3512
  verified: boolean;
3207
3513
  } | {
3208
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3514
+ type: VerificationType.NewPasswordIdentity;
3209
3515
  id: string;
3210
3516
  identifier: {
3211
3517
  value: string;
3212
3518
  type: import("../../foundations/index.js").SignInIdentifier;
3213
3519
  };
3214
3520
  } | {
3215
- type: import("../index.js").VerificationType.OneTimeToken;
3521
+ type: VerificationType.OneTimeToken;
3216
3522
  id: string;
3217
3523
  identifier: {
3218
3524
  value: string;
@@ -3223,7 +3529,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3223
3529
  jitOrganizationIds?: string[] | undefined;
3224
3530
  } | undefined;
3225
3531
  } | {
3226
- type: import("../index.js").VerificationType.Password;
3532
+ type: VerificationType.Password;
3227
3533
  id: string;
3228
3534
  identifier: {
3229
3535
  value: string;
@@ -3231,7 +3537,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3231
3537
  };
3232
3538
  verified: boolean;
3233
3539
  } | {
3234
- type: import("../index.js").VerificationType.Social;
3540
+ type: VerificationType.Social;
3235
3541
  id: string;
3236
3542
  connectorId: string;
3237
3543
  socialUserInfo?: {
@@ -3243,12 +3549,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3243
3549
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3244
3550
  } | undefined;
3245
3551
  } | {
3246
- type: import("../index.js").VerificationType.TOTP;
3552
+ type: VerificationType.TOTP;
3247
3553
  id: string;
3248
3554
  userId: string;
3249
3555
  verified: boolean;
3250
3556
  } | {
3251
- type: import("../index.js").VerificationType.EnterpriseSso;
3557
+ type: VerificationType.EnterpriseSso;
3252
3558
  id: string;
3253
3559
  connectorId: string;
3254
3560
  issuer?: string | undefined;
@@ -3261,13 +3567,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3261
3567
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3262
3568
  } | undefined;
3263
3569
  } | {
3264
- type: import("../index.js").VerificationType.WebAuthn;
3570
+ type: VerificationType.WebAuthn;
3265
3571
  id: string;
3266
3572
  userId: string;
3267
3573
  verified: boolean;
3268
3574
  registrationRpId?: string | undefined;
3269
3575
  } | {
3270
- type: import("../index.js").VerificationType.SignInWebAuthn;
3576
+ type: VerificationType.SignInPasskey;
3271
3577
  id: string;
3272
3578
  verified: boolean;
3273
3579
  userId?: string | undefined;
@@ -3276,6 +3582,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3276
3582
  signInContext?: Record<string, string> | undefined;
3277
3583
  } | undefined;
3278
3584
  } | undefined;
3585
+ blockIssuanceOnError?: boolean | undefined;
3279
3586
  tokenSample?: {
3280
3587
  grantId?: string | undefined;
3281
3588
  sid?: string | undefined;
@@ -3294,6 +3601,7 @@ export type AccessTokenJwtCustomizer = z.infer<typeof accessTokenJwtCustomizerGu
3294
3601
  export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3295
3602
  script: z.ZodString;
3296
3603
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3604
+ blockIssuanceOnError: z.ZodOptional<z.ZodBoolean>;
3297
3605
  } & {
3298
3606
  tokenSample: z.ZodOptional<z.ZodObject<{
3299
3607
  kind: z.ZodOptional<z.ZodLiteral<"ClientCredentials">>;
@@ -3333,6 +3641,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3333
3641
  alwaysIssueRefreshToken?: boolean | undefined;
3334
3642
  rotateRefreshToken?: boolean | undefined;
3335
3643
  allowTokenExchange?: boolean | undefined;
3644
+ isDeviceFlow?: boolean | undefined;
3645
+ maxAllowedGrants?: number | undefined;
3336
3646
  }, z.ZodTypeDef, {
3337
3647
  corsAllowedOrigins?: string[] | undefined;
3338
3648
  idTokenTtl?: number | undefined;
@@ -3342,6 +3652,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3342
3652
  alwaysIssueRefreshToken?: boolean | undefined;
3343
3653
  rotateRefreshToken?: boolean | undefined;
3344
3654
  allowTokenExchange?: boolean | undefined;
3655
+ isDeviceFlow?: boolean | undefined;
3656
+ maxAllowedGrants?: number | undefined;
3345
3657
  }>>;
3346
3658
  protectedAppMetadata: z.ZodOptional<ZodType<{
3347
3659
  host: string;
@@ -3419,6 +3731,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3419
3731
  alwaysIssueRefreshToken?: boolean | undefined;
3420
3732
  rotateRefreshToken?: boolean | undefined;
3421
3733
  allowTokenExchange?: boolean | undefined;
3734
+ isDeviceFlow?: boolean | undefined;
3735
+ maxAllowedGrants?: number | undefined;
3422
3736
  } | undefined;
3423
3737
  protectedAppMetadata?: {
3424
3738
  host: string;
@@ -3468,6 +3782,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3468
3782
  alwaysIssueRefreshToken?: boolean | undefined;
3469
3783
  rotateRefreshToken?: boolean | undefined;
3470
3784
  allowTokenExchange?: boolean | undefined;
3785
+ isDeviceFlow?: boolean | undefined;
3786
+ maxAllowedGrants?: number | undefined;
3471
3787
  } | undefined;
3472
3788
  protectedAppMetadata?: {
3473
3789
  host: string;
@@ -3519,6 +3835,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3519
3835
  alwaysIssueRefreshToken?: boolean | undefined;
3520
3836
  rotateRefreshToken?: boolean | undefined;
3521
3837
  allowTokenExchange?: boolean | undefined;
3838
+ isDeviceFlow?: boolean | undefined;
3839
+ maxAllowedGrants?: number | undefined;
3522
3840
  } | undefined;
3523
3841
  protectedAppMetadata?: {
3524
3842
  host: string;
@@ -3570,6 +3888,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3570
3888
  alwaysIssueRefreshToken?: boolean | undefined;
3571
3889
  rotateRefreshToken?: boolean | undefined;
3572
3890
  allowTokenExchange?: boolean | undefined;
3891
+ isDeviceFlow?: boolean | undefined;
3892
+ maxAllowedGrants?: number | undefined;
3573
3893
  } | undefined;
3574
3894
  protectedAppMetadata?: {
3575
3895
  host: string;
@@ -3625,6 +3945,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3625
3945
  alwaysIssueRefreshToken?: boolean | undefined;
3626
3946
  rotateRefreshToken?: boolean | undefined;
3627
3947
  allowTokenExchange?: boolean | undefined;
3948
+ isDeviceFlow?: boolean | undefined;
3949
+ maxAllowedGrants?: number | undefined;
3628
3950
  } | undefined;
3629
3951
  protectedAppMetadata?: {
3630
3952
  host: string;
@@ -3658,6 +3980,7 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3658
3980
  isThirdParty?: boolean | undefined;
3659
3981
  } | undefined;
3660
3982
  } | undefined;
3983
+ blockIssuanceOnError?: boolean | undefined;
3661
3984
  tokenSample?: {
3662
3985
  jti?: string | undefined;
3663
3986
  kind?: "ClientCredentials" | undefined;
@@ -3687,6 +4010,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3687
4010
  alwaysIssueRefreshToken?: boolean | undefined;
3688
4011
  rotateRefreshToken?: boolean | undefined;
3689
4012
  allowTokenExchange?: boolean | undefined;
4013
+ isDeviceFlow?: boolean | undefined;
4014
+ maxAllowedGrants?: number | undefined;
3690
4015
  } | undefined;
3691
4016
  protectedAppMetadata?: {
3692
4017
  host: string;
@@ -3720,6 +4045,7 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3720
4045
  isThirdParty?: boolean | undefined;
3721
4046
  } | undefined;
3722
4047
  } | undefined;
4048
+ blockIssuanceOnError?: boolean | undefined;
3723
4049
  tokenSample?: {
3724
4050
  jti?: string | undefined;
3725
4051
  kind?: "ClientCredentials" | undefined;
@@ -4111,7 +4437,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4111
4437
  userId: z.ZodOptional<z.ZodString>;
4112
4438
  verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4113
4439
  id: z.ZodString;
4114
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
4440
+ type: z.ZodLiteral<VerificationType.Password>;
4115
4441
  identifier: z.ZodObject<{
4116
4442
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
4117
4443
  value: z.ZodString;
@@ -4124,7 +4450,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4124
4450
  }>;
4125
4451
  verified: z.ZodBoolean;
4126
4452
  }, "strip", z.ZodTypeAny, {
4127
- type: import("../index.js").VerificationType.Password;
4453
+ type: VerificationType.Password;
4128
4454
  id: string;
4129
4455
  identifier: {
4130
4456
  value: string;
@@ -4132,7 +4458,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4132
4458
  };
4133
4459
  verified: boolean;
4134
4460
  }, {
4135
- type: import("../index.js").VerificationType.Password;
4461
+ type: VerificationType.Password;
4136
4462
  id: string;
4137
4463
  identifier: {
4138
4464
  value: string;
@@ -4144,7 +4470,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4144
4470
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4145
4471
  verified: z.ZodBoolean;
4146
4472
  } & {
4147
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
4473
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
4148
4474
  identifier: z.ZodObject<{
4149
4475
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
4150
4476
  value: z.ZodString;
@@ -4156,7 +4482,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4156
4482
  type: import("../../foundations/index.js").SignInIdentifier.Email;
4157
4483
  }>;
4158
4484
  }, "strip", z.ZodTypeAny, {
4159
- type: import("../index.js").VerificationType.EmailVerificationCode;
4485
+ type: VerificationType.EmailVerificationCode;
4160
4486
  id: string;
4161
4487
  identifier: {
4162
4488
  value: string;
@@ -4165,7 +4491,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4165
4491
  templateType: import("@logto/connector-kit").TemplateType;
4166
4492
  verified: boolean;
4167
4493
  }, {
4168
- type: import("../index.js").VerificationType.EmailVerificationCode;
4494
+ type: VerificationType.EmailVerificationCode;
4169
4495
  id: string;
4170
4496
  identifier: {
4171
4497
  value: string;
@@ -4178,7 +4504,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4178
4504
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4179
4505
  verified: z.ZodBoolean;
4180
4506
  } & {
4181
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
4507
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
4182
4508
  identifier: z.ZodObject<{
4183
4509
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
4184
4510
  value: z.ZodString;
@@ -4190,7 +4516,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4190
4516
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
4191
4517
  }>;
4192
4518
  }, "strip", z.ZodTypeAny, {
4193
- type: import("../index.js").VerificationType.PhoneVerificationCode;
4519
+ type: VerificationType.PhoneVerificationCode;
4194
4520
  id: string;
4195
4521
  identifier: {
4196
4522
  value: string;
@@ -4199,7 +4525,75 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4199
4525
  templateType: import("@logto/connector-kit").TemplateType;
4200
4526
  verified: boolean;
4201
4527
  }, {
4202
- type: import("../index.js").VerificationType.PhoneVerificationCode;
4528
+ type: VerificationType.PhoneVerificationCode;
4529
+ id: string;
4530
+ identifier: {
4531
+ value: string;
4532
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4533
+ };
4534
+ templateType: import("@logto/connector-kit").TemplateType;
4535
+ verified: boolean;
4536
+ }>, z.ZodObject<{
4537
+ id: z.ZodString;
4538
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4539
+ verified: z.ZodBoolean;
4540
+ } & {
4541
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
4542
+ identifier: z.ZodObject<{
4543
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
4544
+ value: z.ZodString;
4545
+ }, "strip", z.ZodTypeAny, {
4546
+ value: string;
4547
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4548
+ }, {
4549
+ value: string;
4550
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4551
+ }>;
4552
+ }, "strip", z.ZodTypeAny, {
4553
+ type: VerificationType.MfaEmailVerificationCode;
4554
+ id: string;
4555
+ identifier: {
4556
+ value: string;
4557
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4558
+ };
4559
+ templateType: import("@logto/connector-kit").TemplateType;
4560
+ verified: boolean;
4561
+ }, {
4562
+ type: VerificationType.MfaEmailVerificationCode;
4563
+ id: string;
4564
+ identifier: {
4565
+ value: string;
4566
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4567
+ };
4568
+ templateType: import("@logto/connector-kit").TemplateType;
4569
+ verified: boolean;
4570
+ }>, z.ZodObject<{
4571
+ id: z.ZodString;
4572
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4573
+ verified: z.ZodBoolean;
4574
+ } & {
4575
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
4576
+ identifier: z.ZodObject<{
4577
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
4578
+ value: z.ZodString;
4579
+ }, "strip", z.ZodTypeAny, {
4580
+ value: string;
4581
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4582
+ }, {
4583
+ value: string;
4584
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4585
+ }>;
4586
+ }, "strip", z.ZodTypeAny, {
4587
+ type: VerificationType.MfaPhoneVerificationCode;
4588
+ id: string;
4589
+ identifier: {
4590
+ value: string;
4591
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4592
+ };
4593
+ templateType: import("@logto/connector-kit").TemplateType;
4594
+ verified: boolean;
4595
+ }, {
4596
+ type: VerificationType.MfaPhoneVerificationCode;
4203
4597
  id: string;
4204
4598
  identifier: {
4205
4599
  value: string;
@@ -4210,7 +4604,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4210
4604
  }>, z.ZodObject<Omit<{
4211
4605
  id: z.ZodString;
4212
4606
  connectorId: z.ZodString;
4213
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
4607
+ type: z.ZodLiteral<VerificationType.Social>;
4214
4608
  socialUserInfo: z.ZodOptional<z.ZodObject<{
4215
4609
  id: z.ZodString;
4216
4610
  email: z.ZodOptional<z.ZodString>;
@@ -4291,7 +4685,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4291
4685
  state: z.ZodOptional<z.ZodString>;
4292
4686
  }, z.ZodUnknown, "strip">>>;
4293
4687
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
4294
- type: import("../index.js").VerificationType.Social;
4688
+ type: VerificationType.Social;
4295
4689
  id: string;
4296
4690
  connectorId: string;
4297
4691
  socialUserInfo?: {
@@ -4303,7 +4697,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4303
4697
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4304
4698
  } | undefined;
4305
4699
  }, {
4306
- type: import("../index.js").VerificationType.Social;
4700
+ type: VerificationType.Social;
4307
4701
  id: string;
4308
4702
  connectorId: string;
4309
4703
  socialUserInfo?: {
@@ -4315,7 +4709,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4315
4709
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4316
4710
  } | undefined;
4317
4711
  }>, z.ZodObject<{
4318
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
4712
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
4319
4713
  id: z.ZodString;
4320
4714
  issuer: z.ZodOptional<z.ZodString>;
4321
4715
  connectorId: z.ZodString;
@@ -4343,7 +4737,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4343
4737
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4344
4738
  }>>;
4345
4739
  }, "strip", z.ZodTypeAny, {
4346
- type: import("../index.js").VerificationType.EnterpriseSso;
4740
+ type: VerificationType.EnterpriseSso;
4347
4741
  id: string;
4348
4742
  connectorId: string;
4349
4743
  issuer?: string | undefined;
@@ -4356,7 +4750,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4356
4750
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4357
4751
  } | undefined;
4358
4752
  }, {
4359
- type: import("../index.js").VerificationType.EnterpriseSso;
4753
+ type: VerificationType.EnterpriseSso;
4360
4754
  id: string;
4361
4755
  connectorId: string;
4362
4756
  issuer?: string | undefined;
@@ -4370,33 +4764,33 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4370
4764
  } | undefined;
4371
4765
  }>, z.ZodObject<Omit<{
4372
4766
  id: z.ZodString;
4373
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
4767
+ type: z.ZodLiteral<VerificationType.TOTP>;
4374
4768
  userId: z.ZodString;
4375
4769
  secret: z.ZodOptional<z.ZodString>;
4376
4770
  verified: z.ZodBoolean;
4377
4771
  }, "secret">, "strip", z.ZodTypeAny, {
4378
- type: import("../index.js").VerificationType.TOTP;
4772
+ type: VerificationType.TOTP;
4379
4773
  id: string;
4380
4774
  userId: string;
4381
4775
  verified: boolean;
4382
4776
  }, {
4383
- type: import("../index.js").VerificationType.TOTP;
4777
+ type: VerificationType.TOTP;
4384
4778
  id: string;
4385
4779
  userId: string;
4386
4780
  verified: boolean;
4387
4781
  }>, z.ZodObject<Omit<{
4388
4782
  id: z.ZodString;
4389
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
4783
+ type: z.ZodLiteral<VerificationType.BackupCode>;
4390
4784
  userId: z.ZodString;
4391
4785
  code: z.ZodOptional<z.ZodString>;
4392
4786
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4393
4787
  }, "backupCodes">, "strip", z.ZodTypeAny, {
4394
- type: import("../index.js").VerificationType.BackupCode;
4788
+ type: VerificationType.BackupCode;
4395
4789
  id: string;
4396
4790
  userId: string;
4397
4791
  code?: string | undefined;
4398
4792
  }, {
4399
- type: import("../index.js").VerificationType.BackupCode;
4793
+ type: VerificationType.BackupCode;
4400
4794
  id: string;
4401
4795
  userId: string;
4402
4796
  code?: string | undefined;
@@ -4435,16 +4829,16 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4435
4829
  name?: string | undefined;
4436
4830
  }>>;
4437
4831
  } & {
4438
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
4832
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
4439
4833
  userId: z.ZodString;
4440
4834
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
4441
- type: import("../index.js").VerificationType.WebAuthn;
4835
+ type: VerificationType.WebAuthn;
4442
4836
  id: string;
4443
4837
  userId: string;
4444
4838
  verified: boolean;
4445
4839
  registrationRpId?: string | undefined;
4446
4840
  }, {
4447
- type: import("../index.js").VerificationType.WebAuthn;
4841
+ type: VerificationType.WebAuthn;
4448
4842
  id: string;
4449
4843
  userId: string;
4450
4844
  verified: boolean;
@@ -4484,24 +4878,24 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4484
4878
  name?: string | undefined;
4485
4879
  }>>;
4486
4880
  } & {
4487
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
4881
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
4488
4882
  userId: z.ZodOptional<z.ZodString>;
4489
4883
  authenticationRpId: z.ZodOptional<z.ZodString>;
4490
4884
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
4491
- type: import("../index.js").VerificationType.SignInWebAuthn;
4885
+ type: VerificationType.SignInPasskey;
4492
4886
  id: string;
4493
4887
  verified: boolean;
4494
4888
  userId?: string | undefined;
4495
4889
  registrationRpId?: string | undefined;
4496
4890
  }, {
4497
- type: import("../index.js").VerificationType.SignInWebAuthn;
4891
+ type: VerificationType.SignInPasskey;
4498
4892
  id: string;
4499
4893
  verified: boolean;
4500
4894
  userId?: string | undefined;
4501
4895
  registrationRpId?: string | undefined;
4502
4896
  }>, z.ZodObject<{
4503
4897
  id: z.ZodString;
4504
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
4898
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
4505
4899
  verified: z.ZodBoolean;
4506
4900
  identifier: z.ZodObject<{
4507
4901
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -4521,7 +4915,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4521
4915
  jitOrganizationIds?: string[] | undefined;
4522
4916
  }>>;
4523
4917
  }, "strip", z.ZodTypeAny, {
4524
- type: import("../index.js").VerificationType.OneTimeToken;
4918
+ type: VerificationType.OneTimeToken;
4525
4919
  id: string;
4526
4920
  identifier: {
4527
4921
  value: string;
@@ -4532,7 +4926,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4532
4926
  jitOrganizationIds?: string[] | undefined;
4533
4927
  } | undefined;
4534
4928
  }, {
4535
- type: import("../index.js").VerificationType.OneTimeToken;
4929
+ type: VerificationType.OneTimeToken;
4536
4930
  id: string;
4537
4931
  identifier: {
4538
4932
  value: string;
@@ -4544,7 +4938,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4544
4938
  } | undefined;
4545
4939
  }>, z.ZodObject<Omit<{
4546
4940
  id: z.ZodString;
4547
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
4941
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
4548
4942
  identifier: z.ZodObject<{
4549
4943
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
4550
4944
  value: z.ZodString;
@@ -4558,14 +4952,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4558
4952
  passwordEncrypted: z.ZodOptional<z.ZodString>;
4559
4953
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
4560
4954
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
4561
- type: import("../index.js").VerificationType.NewPasswordIdentity;
4955
+ type: VerificationType.NewPasswordIdentity;
4562
4956
  id: string;
4563
4957
  identifier: {
4564
4958
  value: string;
4565
4959
  type: import("../../foundations/index.js").SignInIdentifier;
4566
4960
  };
4567
4961
  }, {
4568
- type: import("../index.js").VerificationType.NewPasswordIdentity;
4962
+ type: VerificationType.NewPasswordIdentity;
4569
4963
  id: string;
4570
4964
  identifier: {
4571
4965
  value: string;
@@ -4577,12 +4971,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4577
4971
  userId?: string | undefined;
4578
4972
  interactionEvent?: InteractionEvent | undefined;
4579
4973
  verificationRecords?: ({
4580
- type: import("../index.js").VerificationType.BackupCode;
4974
+ type: VerificationType.BackupCode;
4581
4975
  id: string;
4582
4976
  userId: string;
4583
4977
  code?: string | undefined;
4584
4978
  } | {
4585
- type: import("../index.js").VerificationType.EmailVerificationCode;
4979
+ type: VerificationType.EmailVerificationCode;
4980
+ id: string;
4981
+ identifier: {
4982
+ value: string;
4983
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4984
+ };
4985
+ templateType: import("@logto/connector-kit").TemplateType;
4986
+ verified: boolean;
4987
+ } | {
4988
+ type: VerificationType.PhoneVerificationCode;
4989
+ id: string;
4990
+ identifier: {
4991
+ value: string;
4992
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4993
+ };
4994
+ templateType: import("@logto/connector-kit").TemplateType;
4995
+ verified: boolean;
4996
+ } | {
4997
+ type: VerificationType.MfaEmailVerificationCode;
4586
4998
  id: string;
4587
4999
  identifier: {
4588
5000
  value: string;
@@ -4591,7 +5003,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4591
5003
  templateType: import("@logto/connector-kit").TemplateType;
4592
5004
  verified: boolean;
4593
5005
  } | {
4594
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5006
+ type: VerificationType.MfaPhoneVerificationCode;
4595
5007
  id: string;
4596
5008
  identifier: {
4597
5009
  value: string;
@@ -4600,14 +5012,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4600
5012
  templateType: import("@logto/connector-kit").TemplateType;
4601
5013
  verified: boolean;
4602
5014
  } | {
4603
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5015
+ type: VerificationType.NewPasswordIdentity;
4604
5016
  id: string;
4605
5017
  identifier: {
4606
5018
  value: string;
4607
5019
  type: import("../../foundations/index.js").SignInIdentifier;
4608
5020
  };
4609
5021
  } | {
4610
- type: import("../index.js").VerificationType.OneTimeToken;
5022
+ type: VerificationType.OneTimeToken;
4611
5023
  id: string;
4612
5024
  identifier: {
4613
5025
  value: string;
@@ -4618,7 +5030,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4618
5030
  jitOrganizationIds?: string[] | undefined;
4619
5031
  } | undefined;
4620
5032
  } | {
4621
- type: import("../index.js").VerificationType.Password;
5033
+ type: VerificationType.Password;
4622
5034
  id: string;
4623
5035
  identifier: {
4624
5036
  value: string;
@@ -4626,7 +5038,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4626
5038
  };
4627
5039
  verified: boolean;
4628
5040
  } | {
4629
- type: import("../index.js").VerificationType.Social;
5041
+ type: VerificationType.Social;
4630
5042
  id: string;
4631
5043
  connectorId: string;
4632
5044
  socialUserInfo?: {
@@ -4638,12 +5050,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4638
5050
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4639
5051
  } | undefined;
4640
5052
  } | {
4641
- type: import("../index.js").VerificationType.TOTP;
5053
+ type: VerificationType.TOTP;
4642
5054
  id: string;
4643
5055
  userId: string;
4644
5056
  verified: boolean;
4645
5057
  } | {
4646
- type: import("../index.js").VerificationType.EnterpriseSso;
5058
+ type: VerificationType.EnterpriseSso;
4647
5059
  id: string;
4648
5060
  connectorId: string;
4649
5061
  issuer?: string | undefined;
@@ -4656,13 +5068,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4656
5068
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4657
5069
  } | undefined;
4658
5070
  } | {
4659
- type: import("../index.js").VerificationType.WebAuthn;
5071
+ type: VerificationType.WebAuthn;
4660
5072
  id: string;
4661
5073
  userId: string;
4662
5074
  verified: boolean;
4663
5075
  registrationRpId?: string | undefined;
4664
5076
  } | {
4665
- type: import("../index.js").VerificationType.SignInWebAuthn;
5077
+ type: VerificationType.SignInPasskey;
4666
5078
  id: string;
4667
5079
  verified: boolean;
4668
5080
  userId?: string | undefined;
@@ -4673,12 +5085,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4673
5085
  userId?: string | undefined;
4674
5086
  interactionEvent?: InteractionEvent | undefined;
4675
5087
  verificationRecords?: ({
4676
- type: import("../index.js").VerificationType.BackupCode;
5088
+ type: VerificationType.BackupCode;
4677
5089
  id: string;
4678
5090
  userId: string;
4679
5091
  code?: string | undefined;
4680
5092
  } | {
4681
- type: import("../index.js").VerificationType.EmailVerificationCode;
5093
+ type: VerificationType.EmailVerificationCode;
4682
5094
  id: string;
4683
5095
  identifier: {
4684
5096
  value: string;
@@ -4687,7 +5099,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4687
5099
  templateType: import("@logto/connector-kit").TemplateType;
4688
5100
  verified: boolean;
4689
5101
  } | {
4690
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5102
+ type: VerificationType.PhoneVerificationCode;
4691
5103
  id: string;
4692
5104
  identifier: {
4693
5105
  value: string;
@@ -4696,14 +5108,32 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4696
5108
  templateType: import("@logto/connector-kit").TemplateType;
4697
5109
  verified: boolean;
4698
5110
  } | {
4699
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5111
+ type: VerificationType.MfaEmailVerificationCode;
5112
+ id: string;
5113
+ identifier: {
5114
+ value: string;
5115
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5116
+ };
5117
+ templateType: import("@logto/connector-kit").TemplateType;
5118
+ verified: boolean;
5119
+ } | {
5120
+ type: VerificationType.MfaPhoneVerificationCode;
5121
+ id: string;
5122
+ identifier: {
5123
+ value: string;
5124
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5125
+ };
5126
+ templateType: import("@logto/connector-kit").TemplateType;
5127
+ verified: boolean;
5128
+ } | {
5129
+ type: VerificationType.NewPasswordIdentity;
4700
5130
  id: string;
4701
5131
  identifier: {
4702
5132
  value: string;
4703
5133
  type: import("../../foundations/index.js").SignInIdentifier;
4704
5134
  };
4705
5135
  } | {
4706
- type: import("../index.js").VerificationType.OneTimeToken;
5136
+ type: VerificationType.OneTimeToken;
4707
5137
  id: string;
4708
5138
  identifier: {
4709
5139
  value: string;
@@ -4714,7 +5144,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4714
5144
  jitOrganizationIds?: string[] | undefined;
4715
5145
  } | undefined;
4716
5146
  } | {
4717
- type: import("../index.js").VerificationType.Password;
5147
+ type: VerificationType.Password;
4718
5148
  id: string;
4719
5149
  identifier: {
4720
5150
  value: string;
@@ -4722,7 +5152,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4722
5152
  };
4723
5153
  verified: boolean;
4724
5154
  } | {
4725
- type: import("../index.js").VerificationType.Social;
5155
+ type: VerificationType.Social;
4726
5156
  id: string;
4727
5157
  connectorId: string;
4728
5158
  socialUserInfo?: {
@@ -4734,12 +5164,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4734
5164
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4735
5165
  } | undefined;
4736
5166
  } | {
4737
- type: import("../index.js").VerificationType.TOTP;
5167
+ type: VerificationType.TOTP;
4738
5168
  id: string;
4739
5169
  userId: string;
4740
5170
  verified: boolean;
4741
5171
  } | {
4742
- type: import("../index.js").VerificationType.EnterpriseSso;
5172
+ type: VerificationType.EnterpriseSso;
4743
5173
  id: string;
4744
5174
  connectorId: string;
4745
5175
  issuer?: string | undefined;
@@ -4752,13 +5182,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4752
5182
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4753
5183
  } | undefined;
4754
5184
  } | {
4755
- type: import("../index.js").VerificationType.WebAuthn;
5185
+ type: VerificationType.WebAuthn;
4756
5186
  id: string;
4757
5187
  userId: string;
4758
5188
  verified: boolean;
4759
5189
  registrationRpId?: string | undefined;
4760
5190
  } | {
4761
- type: import("../index.js").VerificationType.SignInWebAuthn;
5191
+ type: VerificationType.SignInPasskey;
4762
5192
  id: string;
4763
5193
  verified: boolean;
4764
5194
  userId?: string | undefined;
@@ -4784,6 +5214,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4784
5214
  alwaysIssueRefreshToken?: boolean | undefined;
4785
5215
  rotateRefreshToken?: boolean | undefined;
4786
5216
  allowTokenExchange?: boolean | undefined;
5217
+ isDeviceFlow?: boolean | undefined;
5218
+ maxAllowedGrants?: number | undefined;
4787
5219
  }, z.ZodTypeDef, {
4788
5220
  corsAllowedOrigins?: string[] | undefined;
4789
5221
  idTokenTtl?: number | undefined;
@@ -4793,6 +5225,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4793
5225
  alwaysIssueRefreshToken?: boolean | undefined;
4794
5226
  rotateRefreshToken?: boolean | undefined;
4795
5227
  allowTokenExchange?: boolean | undefined;
5228
+ isDeviceFlow?: boolean | undefined;
5229
+ maxAllowedGrants?: number | undefined;
4796
5230
  }>>;
4797
5231
  protectedAppMetadata: z.ZodOptional<ZodType<{
4798
5232
  host: string;
@@ -4870,6 +5304,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4870
5304
  alwaysIssueRefreshToken?: boolean | undefined;
4871
5305
  rotateRefreshToken?: boolean | undefined;
4872
5306
  allowTokenExchange?: boolean | undefined;
5307
+ isDeviceFlow?: boolean | undefined;
5308
+ maxAllowedGrants?: number | undefined;
4873
5309
  } | undefined;
4874
5310
  protectedAppMetadata?: {
4875
5311
  host: string;
@@ -4919,6 +5355,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4919
5355
  alwaysIssueRefreshToken?: boolean | undefined;
4920
5356
  rotateRefreshToken?: boolean | undefined;
4921
5357
  allowTokenExchange?: boolean | undefined;
5358
+ isDeviceFlow?: boolean | undefined;
5359
+ maxAllowedGrants?: number | undefined;
4922
5360
  } | undefined;
4923
5361
  protectedAppMetadata?: {
4924
5362
  host: string;
@@ -5038,6 +5476,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5038
5476
  alwaysIssueRefreshToken?: boolean | undefined;
5039
5477
  rotateRefreshToken?: boolean | undefined;
5040
5478
  allowTokenExchange?: boolean | undefined;
5479
+ isDeviceFlow?: boolean | undefined;
5480
+ maxAllowedGrants?: number | undefined;
5041
5481
  } | undefined;
5042
5482
  protectedAppMetadata?: {
5043
5483
  host: string;
@@ -5078,12 +5518,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5078
5518
  userId?: string | undefined;
5079
5519
  interactionEvent?: InteractionEvent | undefined;
5080
5520
  verificationRecords?: ({
5081
- type: import("../index.js").VerificationType.BackupCode;
5521
+ type: VerificationType.BackupCode;
5082
5522
  id: string;
5083
5523
  userId: string;
5084
5524
  code?: string | undefined;
5085
5525
  } | {
5086
- type: import("../index.js").VerificationType.EmailVerificationCode;
5526
+ type: VerificationType.EmailVerificationCode;
5527
+ id: string;
5528
+ identifier: {
5529
+ value: string;
5530
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5531
+ };
5532
+ templateType: import("@logto/connector-kit").TemplateType;
5533
+ verified: boolean;
5534
+ } | {
5535
+ type: VerificationType.PhoneVerificationCode;
5536
+ id: string;
5537
+ identifier: {
5538
+ value: string;
5539
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5540
+ };
5541
+ templateType: import("@logto/connector-kit").TemplateType;
5542
+ verified: boolean;
5543
+ } | {
5544
+ type: VerificationType.MfaEmailVerificationCode;
5087
5545
  id: string;
5088
5546
  identifier: {
5089
5547
  value: string;
@@ -5092,7 +5550,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5092
5550
  templateType: import("@logto/connector-kit").TemplateType;
5093
5551
  verified: boolean;
5094
5552
  } | {
5095
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5553
+ type: VerificationType.MfaPhoneVerificationCode;
5096
5554
  id: string;
5097
5555
  identifier: {
5098
5556
  value: string;
@@ -5101,14 +5559,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5101
5559
  templateType: import("@logto/connector-kit").TemplateType;
5102
5560
  verified: boolean;
5103
5561
  } | {
5104
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5562
+ type: VerificationType.NewPasswordIdentity;
5105
5563
  id: string;
5106
5564
  identifier: {
5107
5565
  value: string;
5108
5566
  type: import("../../foundations/index.js").SignInIdentifier;
5109
5567
  };
5110
5568
  } | {
5111
- type: import("../index.js").VerificationType.OneTimeToken;
5569
+ type: VerificationType.OneTimeToken;
5112
5570
  id: string;
5113
5571
  identifier: {
5114
5572
  value: string;
@@ -5119,7 +5577,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5119
5577
  jitOrganizationIds?: string[] | undefined;
5120
5578
  } | undefined;
5121
5579
  } | {
5122
- type: import("../index.js").VerificationType.Password;
5580
+ type: VerificationType.Password;
5123
5581
  id: string;
5124
5582
  identifier: {
5125
5583
  value: string;
@@ -5127,7 +5585,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5127
5585
  };
5128
5586
  verified: boolean;
5129
5587
  } | {
5130
- type: import("../index.js").VerificationType.Social;
5588
+ type: VerificationType.Social;
5131
5589
  id: string;
5132
5590
  connectorId: string;
5133
5591
  socialUserInfo?: {
@@ -5139,12 +5597,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5139
5597
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5140
5598
  } | undefined;
5141
5599
  } | {
5142
- type: import("../index.js").VerificationType.TOTP;
5600
+ type: VerificationType.TOTP;
5143
5601
  id: string;
5144
5602
  userId: string;
5145
5603
  verified: boolean;
5146
5604
  } | {
5147
- type: import("../index.js").VerificationType.EnterpriseSso;
5605
+ type: VerificationType.EnterpriseSso;
5148
5606
  id: string;
5149
5607
  connectorId: string;
5150
5608
  issuer?: string | undefined;
@@ -5157,13 +5615,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5157
5615
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5158
5616
  } | undefined;
5159
5617
  } | {
5160
- type: import("../index.js").VerificationType.WebAuthn;
5618
+ type: VerificationType.WebAuthn;
5161
5619
  id: string;
5162
5620
  userId: string;
5163
5621
  verified: boolean;
5164
5622
  registrationRpId?: string | undefined;
5165
5623
  } | {
5166
- type: import("../index.js").VerificationType.SignInWebAuthn;
5624
+ type: VerificationType.SignInPasskey;
5167
5625
  id: string;
5168
5626
  verified: boolean;
5169
5627
  userId?: string | undefined;
@@ -5258,6 +5716,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5258
5716
  alwaysIssueRefreshToken?: boolean | undefined;
5259
5717
  rotateRefreshToken?: boolean | undefined;
5260
5718
  allowTokenExchange?: boolean | undefined;
5719
+ isDeviceFlow?: boolean | undefined;
5720
+ maxAllowedGrants?: number | undefined;
5261
5721
  } | undefined;
5262
5722
  protectedAppMetadata?: {
5263
5723
  host: string;
@@ -5298,12 +5758,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5298
5758
  userId?: string | undefined;
5299
5759
  interactionEvent?: InteractionEvent | undefined;
5300
5760
  verificationRecords?: ({
5301
- type: import("../index.js").VerificationType.BackupCode;
5761
+ type: VerificationType.BackupCode;
5302
5762
  id: string;
5303
5763
  userId: string;
5304
5764
  code?: string | undefined;
5305
5765
  } | {
5306
- type: import("../index.js").VerificationType.EmailVerificationCode;
5766
+ type: VerificationType.EmailVerificationCode;
5767
+ id: string;
5768
+ identifier: {
5769
+ value: string;
5770
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5771
+ };
5772
+ templateType: import("@logto/connector-kit").TemplateType;
5773
+ verified: boolean;
5774
+ } | {
5775
+ type: VerificationType.PhoneVerificationCode;
5776
+ id: string;
5777
+ identifier: {
5778
+ value: string;
5779
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5780
+ };
5781
+ templateType: import("@logto/connector-kit").TemplateType;
5782
+ verified: boolean;
5783
+ } | {
5784
+ type: VerificationType.MfaEmailVerificationCode;
5307
5785
  id: string;
5308
5786
  identifier: {
5309
5787
  value: string;
@@ -5312,7 +5790,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5312
5790
  templateType: import("@logto/connector-kit").TemplateType;
5313
5791
  verified: boolean;
5314
5792
  } | {
5315
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5793
+ type: VerificationType.MfaPhoneVerificationCode;
5316
5794
  id: string;
5317
5795
  identifier: {
5318
5796
  value: string;
@@ -5321,14 +5799,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5321
5799
  templateType: import("@logto/connector-kit").TemplateType;
5322
5800
  verified: boolean;
5323
5801
  } | {
5324
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5802
+ type: VerificationType.NewPasswordIdentity;
5325
5803
  id: string;
5326
5804
  identifier: {
5327
5805
  value: string;
5328
5806
  type: import("../../foundations/index.js").SignInIdentifier;
5329
5807
  };
5330
5808
  } | {
5331
- type: import("../index.js").VerificationType.OneTimeToken;
5809
+ type: VerificationType.OneTimeToken;
5332
5810
  id: string;
5333
5811
  identifier: {
5334
5812
  value: string;
@@ -5339,7 +5817,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5339
5817
  jitOrganizationIds?: string[] | undefined;
5340
5818
  } | undefined;
5341
5819
  } | {
5342
- type: import("../index.js").VerificationType.Password;
5820
+ type: VerificationType.Password;
5343
5821
  id: string;
5344
5822
  identifier: {
5345
5823
  value: string;
@@ -5347,7 +5825,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5347
5825
  };
5348
5826
  verified: boolean;
5349
5827
  } | {
5350
- type: import("../index.js").VerificationType.Social;
5828
+ type: VerificationType.Social;
5351
5829
  id: string;
5352
5830
  connectorId: string;
5353
5831
  socialUserInfo?: {
@@ -5359,12 +5837,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5359
5837
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5360
5838
  } | undefined;
5361
5839
  } | {
5362
- type: import("../index.js").VerificationType.TOTP;
5840
+ type: VerificationType.TOTP;
5363
5841
  id: string;
5364
5842
  userId: string;
5365
5843
  verified: boolean;
5366
5844
  } | {
5367
- type: import("../index.js").VerificationType.EnterpriseSso;
5845
+ type: VerificationType.EnterpriseSso;
5368
5846
  id: string;
5369
5847
  connectorId: string;
5370
5848
  issuer?: string | undefined;
@@ -5377,13 +5855,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5377
5855
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5378
5856
  } | undefined;
5379
5857
  } | {
5380
- type: import("../index.js").VerificationType.WebAuthn;
5858
+ type: VerificationType.WebAuthn;
5381
5859
  id: string;
5382
5860
  userId: string;
5383
5861
  verified: boolean;
5384
5862
  registrationRpId?: string | undefined;
5385
5863
  } | {
5386
- type: import("../index.js").VerificationType.SignInWebAuthn;
5864
+ type: VerificationType.SignInPasskey;
5387
5865
  id: string;
5388
5866
  verified: boolean;
5389
5867
  userId?: string | undefined;
@@ -5496,6 +5974,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5496
5974
  alwaysIssueRefreshToken?: boolean | undefined;
5497
5975
  rotateRefreshToken?: boolean | undefined;
5498
5976
  allowTokenExchange?: boolean | undefined;
5977
+ isDeviceFlow?: boolean | undefined;
5978
+ maxAllowedGrants?: number | undefined;
5499
5979
  } | undefined;
5500
5980
  protectedAppMetadata?: {
5501
5981
  host: string;
@@ -5536,12 +6016,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5536
6016
  userId?: string | undefined;
5537
6017
  interactionEvent?: InteractionEvent | undefined;
5538
6018
  verificationRecords?: ({
5539
- type: import("../index.js").VerificationType.BackupCode;
6019
+ type: VerificationType.BackupCode;
5540
6020
  id: string;
5541
6021
  userId: string;
5542
6022
  code?: string | undefined;
5543
6023
  } | {
5544
- type: import("../index.js").VerificationType.EmailVerificationCode;
6024
+ type: VerificationType.EmailVerificationCode;
5545
6025
  id: string;
5546
6026
  identifier: {
5547
6027
  value: string;
@@ -5550,7 +6030,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5550
6030
  templateType: import("@logto/connector-kit").TemplateType;
5551
6031
  verified: boolean;
5552
6032
  } | {
5553
- type: import("../index.js").VerificationType.PhoneVerificationCode;
6033
+ type: VerificationType.PhoneVerificationCode;
5554
6034
  id: string;
5555
6035
  identifier: {
5556
6036
  value: string;
@@ -5559,14 +6039,32 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5559
6039
  templateType: import("@logto/connector-kit").TemplateType;
5560
6040
  verified: boolean;
5561
6041
  } | {
5562
- type: import("../index.js").VerificationType.NewPasswordIdentity;
6042
+ type: VerificationType.MfaEmailVerificationCode;
6043
+ id: string;
6044
+ identifier: {
6045
+ value: string;
6046
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
6047
+ };
6048
+ templateType: import("@logto/connector-kit").TemplateType;
6049
+ verified: boolean;
6050
+ } | {
6051
+ type: VerificationType.MfaPhoneVerificationCode;
6052
+ id: string;
6053
+ identifier: {
6054
+ value: string;
6055
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
6056
+ };
6057
+ templateType: import("@logto/connector-kit").TemplateType;
6058
+ verified: boolean;
6059
+ } | {
6060
+ type: VerificationType.NewPasswordIdentity;
5563
6061
  id: string;
5564
6062
  identifier: {
5565
6063
  value: string;
5566
6064
  type: import("../../foundations/index.js").SignInIdentifier;
5567
6065
  };
5568
6066
  } | {
5569
- type: import("../index.js").VerificationType.OneTimeToken;
6067
+ type: VerificationType.OneTimeToken;
5570
6068
  id: string;
5571
6069
  identifier: {
5572
6070
  value: string;
@@ -5577,7 +6075,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5577
6075
  jitOrganizationIds?: string[] | undefined;
5578
6076
  } | undefined;
5579
6077
  } | {
5580
- type: import("../index.js").VerificationType.Password;
6078
+ type: VerificationType.Password;
5581
6079
  id: string;
5582
6080
  identifier: {
5583
6081
  value: string;
@@ -5585,7 +6083,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5585
6083
  };
5586
6084
  verified: boolean;
5587
6085
  } | {
5588
- type: import("../index.js").VerificationType.Social;
6086
+ type: VerificationType.Social;
5589
6087
  id: string;
5590
6088
  connectorId: string;
5591
6089
  socialUserInfo?: {
@@ -5597,12 +6095,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5597
6095
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5598
6096
  } | undefined;
5599
6097
  } | {
5600
- type: import("../index.js").VerificationType.TOTP;
6098
+ type: VerificationType.TOTP;
5601
6099
  id: string;
5602
6100
  userId: string;
5603
6101
  verified: boolean;
5604
6102
  } | {
5605
- type: import("../index.js").VerificationType.EnterpriseSso;
6103
+ type: VerificationType.EnterpriseSso;
5606
6104
  id: string;
5607
6105
  connectorId: string;
5608
6106
  issuer?: string | undefined;
@@ -5615,13 +6113,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5615
6113
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5616
6114
  } | undefined;
5617
6115
  } | {
5618
- type: import("../index.js").VerificationType.WebAuthn;
6116
+ type: VerificationType.WebAuthn;
5619
6117
  id: string;
5620
6118
  userId: string;
5621
6119
  verified: boolean;
5622
6120
  registrationRpId?: string | undefined;
5623
6121
  } | {
5624
- type: import("../index.js").VerificationType.SignInWebAuthn;
6122
+ type: VerificationType.SignInPasskey;
5625
6123
  id: string;
5626
6124
  verified: boolean;
5627
6125
  userId?: string | undefined;
@@ -5734,6 +6232,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5734
6232
  alwaysIssueRefreshToken?: boolean | undefined;
5735
6233
  rotateRefreshToken?: boolean | undefined;
5736
6234
  allowTokenExchange?: boolean | undefined;
6235
+ isDeviceFlow?: boolean | undefined;
6236
+ maxAllowedGrants?: number | undefined;
5737
6237
  } | undefined;
5738
6238
  protectedAppMetadata?: {
5739
6239
  host: string;
@@ -5774,12 +6274,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5774
6274
  userId?: string | undefined;
5775
6275
  interactionEvent?: InteractionEvent | undefined;
5776
6276
  verificationRecords?: ({
5777
- type: import("../index.js").VerificationType.BackupCode;
6277
+ type: VerificationType.BackupCode;
5778
6278
  id: string;
5779
6279
  userId: string;
5780
6280
  code?: string | undefined;
5781
6281
  } | {
5782
- type: import("../index.js").VerificationType.EmailVerificationCode;
6282
+ type: VerificationType.EmailVerificationCode;
6283
+ id: string;
6284
+ identifier: {
6285
+ value: string;
6286
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
6287
+ };
6288
+ templateType: import("@logto/connector-kit").TemplateType;
6289
+ verified: boolean;
6290
+ } | {
6291
+ type: VerificationType.PhoneVerificationCode;
6292
+ id: string;
6293
+ identifier: {
6294
+ value: string;
6295
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
6296
+ };
6297
+ templateType: import("@logto/connector-kit").TemplateType;
6298
+ verified: boolean;
6299
+ } | {
6300
+ type: VerificationType.MfaEmailVerificationCode;
5783
6301
  id: string;
5784
6302
  identifier: {
5785
6303
  value: string;
@@ -5788,7 +6306,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5788
6306
  templateType: import("@logto/connector-kit").TemplateType;
5789
6307
  verified: boolean;
5790
6308
  } | {
5791
- type: import("../index.js").VerificationType.PhoneVerificationCode;
6309
+ type: VerificationType.MfaPhoneVerificationCode;
5792
6310
  id: string;
5793
6311
  identifier: {
5794
6312
  value: string;
@@ -5797,14 +6315,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5797
6315
  templateType: import("@logto/connector-kit").TemplateType;
5798
6316
  verified: boolean;
5799
6317
  } | {
5800
- type: import("../index.js").VerificationType.NewPasswordIdentity;
6318
+ type: VerificationType.NewPasswordIdentity;
5801
6319
  id: string;
5802
6320
  identifier: {
5803
6321
  value: string;
5804
6322
  type: import("../../foundations/index.js").SignInIdentifier;
5805
6323
  };
5806
6324
  } | {
5807
- type: import("../index.js").VerificationType.OneTimeToken;
6325
+ type: VerificationType.OneTimeToken;
5808
6326
  id: string;
5809
6327
  identifier: {
5810
6328
  value: string;
@@ -5815,7 +6333,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5815
6333
  jitOrganizationIds?: string[] | undefined;
5816
6334
  } | undefined;
5817
6335
  } | {
5818
- type: import("../index.js").VerificationType.Password;
6336
+ type: VerificationType.Password;
5819
6337
  id: string;
5820
6338
  identifier: {
5821
6339
  value: string;
@@ -5823,7 +6341,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5823
6341
  };
5824
6342
  verified: boolean;
5825
6343
  } | {
5826
- type: import("../index.js").VerificationType.Social;
6344
+ type: VerificationType.Social;
5827
6345
  id: string;
5828
6346
  connectorId: string;
5829
6347
  socialUserInfo?: {
@@ -5835,12 +6353,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5835
6353
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5836
6354
  } | undefined;
5837
6355
  } | {
5838
- type: import("../index.js").VerificationType.TOTP;
6356
+ type: VerificationType.TOTP;
5839
6357
  id: string;
5840
6358
  userId: string;
5841
6359
  verified: boolean;
5842
6360
  } | {
5843
- type: import("../index.js").VerificationType.EnterpriseSso;
6361
+ type: VerificationType.EnterpriseSso;
5844
6362
  id: string;
5845
6363
  connectorId: string;
5846
6364
  issuer?: string | undefined;
@@ -5853,13 +6371,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5853
6371
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5854
6372
  } | undefined;
5855
6373
  } | {
5856
- type: import("../index.js").VerificationType.WebAuthn;
6374
+ type: VerificationType.WebAuthn;
5857
6375
  id: string;
5858
6376
  userId: string;
5859
6377
  verified: boolean;
5860
6378
  registrationRpId?: string | undefined;
5861
6379
  } | {
5862
- type: import("../index.js").VerificationType.SignInWebAuthn;
6380
+ type: VerificationType.SignInPasskey;
5863
6381
  id: string;
5864
6382
  verified: boolean;
5865
6383
  userId?: string | undefined;
@@ -5910,6 +6428,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5910
6428
  alwaysIssueRefreshToken?: boolean | undefined;
5911
6429
  rotateRefreshToken?: boolean | undefined;
5912
6430
  allowTokenExchange?: boolean | undefined;
6431
+ isDeviceFlow?: boolean | undefined;
6432
+ maxAllowedGrants?: number | undefined;
5913
6433
  }, z.ZodTypeDef, {
5914
6434
  corsAllowedOrigins?: string[] | undefined;
5915
6435
  idTokenTtl?: number | undefined;
@@ -5919,6 +6439,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5919
6439
  alwaysIssueRefreshToken?: boolean | undefined;
5920
6440
  rotateRefreshToken?: boolean | undefined;
5921
6441
  allowTokenExchange?: boolean | undefined;
6442
+ isDeviceFlow?: boolean | undefined;
6443
+ maxAllowedGrants?: number | undefined;
5922
6444
  }>>;
5923
6445
  protectedAppMetadata: z.ZodOptional<ZodType<{
5924
6446
  host: string;
@@ -5996,6 +6518,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5996
6518
  alwaysIssueRefreshToken?: boolean | undefined;
5997
6519
  rotateRefreshToken?: boolean | undefined;
5998
6520
  allowTokenExchange?: boolean | undefined;
6521
+ isDeviceFlow?: boolean | undefined;
6522
+ maxAllowedGrants?: number | undefined;
5999
6523
  } | undefined;
6000
6524
  protectedAppMetadata?: {
6001
6525
  host: string;
@@ -6045,6 +6569,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6045
6569
  alwaysIssueRefreshToken?: boolean | undefined;
6046
6570
  rotateRefreshToken?: boolean | undefined;
6047
6571
  allowTokenExchange?: boolean | undefined;
6572
+ isDeviceFlow?: boolean | undefined;
6573
+ maxAllowedGrants?: number | undefined;
6048
6574
  } | undefined;
6049
6575
  protectedAppMetadata?: {
6050
6576
  host: string;
@@ -6096,6 +6622,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6096
6622
  alwaysIssueRefreshToken?: boolean | undefined;
6097
6623
  rotateRefreshToken?: boolean | undefined;
6098
6624
  allowTokenExchange?: boolean | undefined;
6625
+ isDeviceFlow?: boolean | undefined;
6626
+ maxAllowedGrants?: number | undefined;
6099
6627
  } | undefined;
6100
6628
  protectedAppMetadata?: {
6101
6629
  host: string;
@@ -6147,6 +6675,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6147
6675
  alwaysIssueRefreshToken?: boolean | undefined;
6148
6676
  rotateRefreshToken?: boolean | undefined;
6149
6677
  allowTokenExchange?: boolean | undefined;
6678
+ isDeviceFlow?: boolean | undefined;
6679
+ maxAllowedGrants?: number | undefined;
6150
6680
  } | undefined;
6151
6681
  protectedAppMetadata?: {
6152
6682
  host: string;
@@ -6210,6 +6740,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6210
6740
  alwaysIssueRefreshToken?: boolean | undefined;
6211
6741
  rotateRefreshToken?: boolean | undefined;
6212
6742
  allowTokenExchange?: boolean | undefined;
6743
+ isDeviceFlow?: boolean | undefined;
6744
+ maxAllowedGrants?: number | undefined;
6213
6745
  } | undefined;
6214
6746
  protectedAppMetadata?: {
6215
6747
  host: string;
@@ -6273,6 +6805,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6273
6805
  alwaysIssueRefreshToken?: boolean | undefined;
6274
6806
  rotateRefreshToken?: boolean | undefined;
6275
6807
  allowTokenExchange?: boolean | undefined;
6808
+ isDeviceFlow?: boolean | undefined;
6809
+ maxAllowedGrants?: number | undefined;
6276
6810
  } | undefined;
6277
6811
  protectedAppMetadata?: {
6278
6812
  host: string;