@logto/schemas 1.37.1 → 1.38.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 (45) 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-js/1.38.0-1772615848-add-oidc-model-instances-grant-id-partial-index.js +22 -0
  5. package/alterations-js/1.38.0-1772619963-tune-oidc-model-instances-autovacuum.js +24 -0
  6. package/alterations-js/1.38.0-1772621060-add-oidc-model-instances-grant-account-id-index.js +22 -0
  7. package/lib/consts/cookie.d.ts +1 -0
  8. package/lib/consts/cookie.js +1 -0
  9. package/lib/consts/experience.d.ts +1 -0
  10. package/lib/consts/experience.js +1 -0
  11. package/lib/consts/oidc.d.ts +3 -0
  12. package/lib/consts/oidc.js +3 -0
  13. package/lib/consts/system.d.ts +4 -0
  14. package/lib/consts/system.js +4 -0
  15. package/lib/foundations/jsonb-types/oidc-module.d.ts +26 -7
  16. package/lib/foundations/jsonb-types/oidc-module.js +16 -1
  17. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +10 -6
  18. package/lib/foundations/jsonb-types/sign-in-experience.js +6 -2
  19. package/lib/seeds/application.d.ts +3 -1
  20. package/lib/seeds/application.js +26 -1
  21. package/lib/types/application.d.ts +12 -0
  22. package/lib/types/connector.d.ts +8 -0
  23. package/lib/types/consent.d.ts +11 -3
  24. package/lib/types/consent.js +2 -1
  25. package/lib/types/log/interaction.d.ts +4 -2
  26. package/lib/types/log/interaction.js +2 -0
  27. package/lib/types/log/token.d.ts +5 -3
  28. package/lib/types/log/token.js +2 -0
  29. package/lib/types/logto-config/index.d.ts +276 -13
  30. package/lib/types/logto-config/index.js +6 -0
  31. package/lib/types/logto-config/jwt-customizer.d.ts +778 -253
  32. package/lib/types/logto-config/jwt-customizer.js +7 -3
  33. package/lib/types/oidc-config.d.ts +2 -1
  34. package/lib/types/oidc-config.js +1 -0
  35. package/lib/types/sign-in-experience.d.ts +6 -2
  36. package/lib/types/user-logto-config.d.ts +38 -0
  37. package/lib/types/user-logto-config.js +13 -0
  38. package/lib/types/user-sessions.d.ts +712 -112
  39. package/lib/types/user-sessions.js +33 -2
  40. package/lib/types/verification-records/verification-type.d.ts +1 -1
  41. package/lib/types/verification-records/verification-type.js +1 -1
  42. package/lib/types/verification-records/web-authn-verification.d.ts +11 -11
  43. package/lib/types/verification-records/web-authn-verification.js +3 -3
  44. package/package.json +8 -7
  45. package/tables/oidc_model_instances.sql +16 -0
@@ -5,6 +5,7 @@ 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>>;
@@ -387,7 +388,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
387
388
  userId: z.ZodString;
388
389
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
389
390
  id: z.ZodString;
390
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
391
+ type: z.ZodLiteral<VerificationType.Password>;
391
392
  identifier: z.ZodObject<{
392
393
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
393
394
  value: z.ZodString;
@@ -400,7 +401,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
400
401
  }>;
401
402
  verified: z.ZodBoolean;
402
403
  }, "strip", z.ZodTypeAny, {
403
- type: import("../index.js").VerificationType.Password;
404
+ type: VerificationType.Password;
404
405
  id: string;
405
406
  identifier: {
406
407
  value: string;
@@ -408,7 +409,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
408
409
  };
409
410
  verified: boolean;
410
411
  }, {
411
- type: import("../index.js").VerificationType.Password;
412
+ type: VerificationType.Password;
412
413
  id: string;
413
414
  identifier: {
414
415
  value: string;
@@ -420,7 +421,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
420
421
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
421
422
  verified: z.ZodBoolean;
422
423
  } & {
423
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
424
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
424
425
  identifier: z.ZodObject<{
425
426
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
426
427
  value: z.ZodString;
@@ -432,7 +433,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
432
433
  type: import("../../foundations/index.js").SignInIdentifier.Email;
433
434
  }>;
434
435
  }, "strip", z.ZodTypeAny, {
435
- type: import("../index.js").VerificationType.EmailVerificationCode;
436
+ type: VerificationType.EmailVerificationCode;
436
437
  id: string;
437
438
  identifier: {
438
439
  value: string;
@@ -441,7 +442,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
441
442
  templateType: import("@logto/connector-kit").TemplateType;
442
443
  verified: boolean;
443
444
  }, {
444
- type: import("../index.js").VerificationType.EmailVerificationCode;
445
+ type: VerificationType.EmailVerificationCode;
445
446
  id: string;
446
447
  identifier: {
447
448
  value: string;
@@ -454,7 +455,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
454
455
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
455
456
  verified: z.ZodBoolean;
456
457
  } & {
457
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
458
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
458
459
  identifier: z.ZodObject<{
459
460
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
460
461
  value: z.ZodString;
@@ -466,7 +467,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
466
467
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
467
468
  }>;
468
469
  }, "strip", z.ZodTypeAny, {
469
- type: import("../index.js").VerificationType.PhoneVerificationCode;
470
+ type: VerificationType.PhoneVerificationCode;
470
471
  id: string;
471
472
  identifier: {
472
473
  value: string;
@@ -475,7 +476,75 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
475
476
  templateType: import("@logto/connector-kit").TemplateType;
476
477
  verified: boolean;
477
478
  }, {
478
- type: import("../index.js").VerificationType.PhoneVerificationCode;
479
+ type: VerificationType.PhoneVerificationCode;
480
+ id: string;
481
+ identifier: {
482
+ value: string;
483
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
484
+ };
485
+ templateType: import("@logto/connector-kit").TemplateType;
486
+ verified: boolean;
487
+ }>, z.ZodObject<{
488
+ id: z.ZodString;
489
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
490
+ verified: z.ZodBoolean;
491
+ } & {
492
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
493
+ identifier: z.ZodObject<{
494
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
495
+ value: z.ZodString;
496
+ }, "strip", z.ZodTypeAny, {
497
+ value: string;
498
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
499
+ }, {
500
+ value: string;
501
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
502
+ }>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ type: VerificationType.MfaEmailVerificationCode;
505
+ id: string;
506
+ identifier: {
507
+ value: string;
508
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
509
+ };
510
+ templateType: import("@logto/connector-kit").TemplateType;
511
+ verified: boolean;
512
+ }, {
513
+ type: VerificationType.MfaEmailVerificationCode;
514
+ id: string;
515
+ identifier: {
516
+ value: string;
517
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
518
+ };
519
+ templateType: import("@logto/connector-kit").TemplateType;
520
+ verified: boolean;
521
+ }>, z.ZodObject<{
522
+ id: z.ZodString;
523
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
524
+ verified: z.ZodBoolean;
525
+ } & {
526
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
527
+ identifier: z.ZodObject<{
528
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
529
+ value: z.ZodString;
530
+ }, "strip", z.ZodTypeAny, {
531
+ value: string;
532
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
533
+ }, {
534
+ value: string;
535
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
536
+ }>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ type: VerificationType.MfaPhoneVerificationCode;
539
+ id: string;
540
+ identifier: {
541
+ value: string;
542
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
543
+ };
544
+ templateType: import("@logto/connector-kit").TemplateType;
545
+ verified: boolean;
546
+ }, {
547
+ type: VerificationType.MfaPhoneVerificationCode;
479
548
  id: string;
480
549
  identifier: {
481
550
  value: string;
@@ -486,7 +555,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
486
555
  }>, z.ZodObject<Omit<{
487
556
  id: z.ZodString;
488
557
  connectorId: z.ZodString;
489
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
558
+ type: z.ZodLiteral<VerificationType.Social>;
490
559
  socialUserInfo: z.ZodOptional<z.ZodObject<{
491
560
  id: z.ZodString;
492
561
  email: z.ZodOptional<z.ZodString>;
@@ -567,7 +636,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
567
636
  state: z.ZodOptional<z.ZodString>;
568
637
  }, z.ZodUnknown, "strip">>>;
569
638
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
570
- type: import("../index.js").VerificationType.Social;
639
+ type: VerificationType.Social;
571
640
  id: string;
572
641
  connectorId: string;
573
642
  socialUserInfo?: {
@@ -579,7 +648,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
579
648
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
580
649
  } | undefined;
581
650
  }, {
582
- type: import("../index.js").VerificationType.Social;
651
+ type: VerificationType.Social;
583
652
  id: string;
584
653
  connectorId: string;
585
654
  socialUserInfo?: {
@@ -591,7 +660,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
591
660
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
592
661
  } | undefined;
593
662
  }>, z.ZodObject<{
594
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
663
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
595
664
  id: z.ZodString;
596
665
  issuer: z.ZodOptional<z.ZodString>;
597
666
  connectorId: z.ZodString;
@@ -619,7 +688,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
619
688
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
620
689
  }>>;
621
690
  }, "strip", z.ZodTypeAny, {
622
- type: import("../index.js").VerificationType.EnterpriseSso;
691
+ type: VerificationType.EnterpriseSso;
623
692
  id: string;
624
693
  connectorId: string;
625
694
  issuer?: string | undefined;
@@ -632,7 +701,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
632
701
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
633
702
  } | undefined;
634
703
  }, {
635
- type: import("../index.js").VerificationType.EnterpriseSso;
704
+ type: VerificationType.EnterpriseSso;
636
705
  id: string;
637
706
  connectorId: string;
638
707
  issuer?: string | undefined;
@@ -646,33 +715,33 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
646
715
  } | undefined;
647
716
  }>, z.ZodObject<Omit<{
648
717
  id: z.ZodString;
649
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
718
+ type: z.ZodLiteral<VerificationType.TOTP>;
650
719
  userId: z.ZodString;
651
720
  secret: z.ZodOptional<z.ZodString>;
652
721
  verified: z.ZodBoolean;
653
722
  }, "secret">, "strip", z.ZodTypeAny, {
654
- type: import("../index.js").VerificationType.TOTP;
723
+ type: VerificationType.TOTP;
655
724
  id: string;
656
725
  userId: string;
657
726
  verified: boolean;
658
727
  }, {
659
- type: import("../index.js").VerificationType.TOTP;
728
+ type: VerificationType.TOTP;
660
729
  id: string;
661
730
  userId: string;
662
731
  verified: boolean;
663
732
  }>, z.ZodObject<Omit<{
664
733
  id: z.ZodString;
665
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
734
+ type: z.ZodLiteral<VerificationType.BackupCode>;
666
735
  userId: z.ZodString;
667
736
  code: z.ZodOptional<z.ZodString>;
668
737
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
738
  }, "backupCodes">, "strip", z.ZodTypeAny, {
670
- type: import("../index.js").VerificationType.BackupCode;
739
+ type: VerificationType.BackupCode;
671
740
  id: string;
672
741
  userId: string;
673
742
  code?: string | undefined;
674
743
  }, {
675
- type: import("../index.js").VerificationType.BackupCode;
744
+ type: VerificationType.BackupCode;
676
745
  id: string;
677
746
  userId: string;
678
747
  code?: string | undefined;
@@ -711,16 +780,16 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
711
780
  name?: string | undefined;
712
781
  }>>;
713
782
  } & {
714
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
783
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
715
784
  userId: z.ZodString;
716
785
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
717
- type: import("../index.js").VerificationType.WebAuthn;
786
+ type: VerificationType.WebAuthn;
718
787
  id: string;
719
788
  userId: string;
720
789
  verified: boolean;
721
790
  registrationRpId?: string | undefined;
722
791
  }, {
723
- type: import("../index.js").VerificationType.WebAuthn;
792
+ type: VerificationType.WebAuthn;
724
793
  id: string;
725
794
  userId: string;
726
795
  verified: boolean;
@@ -760,24 +829,24 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
760
829
  name?: string | undefined;
761
830
  }>>;
762
831
  } & {
763
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
832
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
764
833
  userId: z.ZodOptional<z.ZodString>;
765
834
  authenticationRpId: z.ZodOptional<z.ZodString>;
766
835
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
767
- type: import("../index.js").VerificationType.SignInWebAuthn;
836
+ type: VerificationType.SignInPasskey;
768
837
  id: string;
769
838
  verified: boolean;
770
839
  userId?: string | undefined;
771
840
  registrationRpId?: string | undefined;
772
841
  }, {
773
- type: import("../index.js").VerificationType.SignInWebAuthn;
842
+ type: VerificationType.SignInPasskey;
774
843
  id: string;
775
844
  verified: boolean;
776
845
  userId?: string | undefined;
777
846
  registrationRpId?: string | undefined;
778
847
  }>, z.ZodObject<{
779
848
  id: z.ZodString;
780
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
849
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
781
850
  verified: z.ZodBoolean;
782
851
  identifier: z.ZodObject<{
783
852
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -797,7 +866,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
797
866
  jitOrganizationIds?: string[] | undefined;
798
867
  }>>;
799
868
  }, "strip", z.ZodTypeAny, {
800
- type: import("../index.js").VerificationType.OneTimeToken;
869
+ type: VerificationType.OneTimeToken;
801
870
  id: string;
802
871
  identifier: {
803
872
  value: string;
@@ -808,7 +877,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
808
877
  jitOrganizationIds?: string[] | undefined;
809
878
  } | undefined;
810
879
  }, {
811
- type: import("../index.js").VerificationType.OneTimeToken;
880
+ type: VerificationType.OneTimeToken;
812
881
  id: string;
813
882
  identifier: {
814
883
  value: string;
@@ -820,7 +889,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
820
889
  } | undefined;
821
890
  }>, z.ZodObject<Omit<{
822
891
  id: z.ZodString;
823
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
892
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
824
893
  identifier: z.ZodObject<{
825
894
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
826
895
  value: z.ZodString;
@@ -834,14 +903,14 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
834
903
  passwordEncrypted: z.ZodOptional<z.ZodString>;
835
904
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
836
905
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
837
- type: import("../index.js").VerificationType.NewPasswordIdentity;
906
+ type: VerificationType.NewPasswordIdentity;
838
907
  id: string;
839
908
  identifier: {
840
909
  value: string;
841
910
  type: import("../../foundations/index.js").SignInIdentifier;
842
911
  };
843
912
  }, {
844
- type: import("../index.js").VerificationType.NewPasswordIdentity;
913
+ type: VerificationType.NewPasswordIdentity;
845
914
  id: string;
846
915
  identifier: {
847
916
  value: string;
@@ -853,12 +922,30 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
853
922
  userId: string;
854
923
  interactionEvent: InteractionEvent;
855
924
  verificationRecords: ({
856
- type: import("../index.js").VerificationType.BackupCode;
925
+ type: VerificationType.BackupCode;
857
926
  id: string;
858
927
  userId: string;
859
928
  code?: string | undefined;
860
929
  } | {
861
- type: import("../index.js").VerificationType.EmailVerificationCode;
930
+ type: VerificationType.EmailVerificationCode;
931
+ id: string;
932
+ identifier: {
933
+ value: string;
934
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
935
+ };
936
+ templateType: import("@logto/connector-kit").TemplateType;
937
+ verified: boolean;
938
+ } | {
939
+ type: VerificationType.PhoneVerificationCode;
940
+ id: string;
941
+ identifier: {
942
+ value: string;
943
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
944
+ };
945
+ templateType: import("@logto/connector-kit").TemplateType;
946
+ verified: boolean;
947
+ } | {
948
+ type: VerificationType.MfaEmailVerificationCode;
862
949
  id: string;
863
950
  identifier: {
864
951
  value: string;
@@ -867,7 +954,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
867
954
  templateType: import("@logto/connector-kit").TemplateType;
868
955
  verified: boolean;
869
956
  } | {
870
- type: import("../index.js").VerificationType.PhoneVerificationCode;
957
+ type: VerificationType.MfaPhoneVerificationCode;
871
958
  id: string;
872
959
  identifier: {
873
960
  value: string;
@@ -876,14 +963,14 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
876
963
  templateType: import("@logto/connector-kit").TemplateType;
877
964
  verified: boolean;
878
965
  } | {
879
- type: import("../index.js").VerificationType.NewPasswordIdentity;
966
+ type: VerificationType.NewPasswordIdentity;
880
967
  id: string;
881
968
  identifier: {
882
969
  value: string;
883
970
  type: import("../../foundations/index.js").SignInIdentifier;
884
971
  };
885
972
  } | {
886
- type: import("../index.js").VerificationType.OneTimeToken;
973
+ type: VerificationType.OneTimeToken;
887
974
  id: string;
888
975
  identifier: {
889
976
  value: string;
@@ -894,7 +981,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
894
981
  jitOrganizationIds?: string[] | undefined;
895
982
  } | undefined;
896
983
  } | {
897
- type: import("../index.js").VerificationType.Password;
984
+ type: VerificationType.Password;
898
985
  id: string;
899
986
  identifier: {
900
987
  value: string;
@@ -902,7 +989,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
902
989
  };
903
990
  verified: boolean;
904
991
  } | {
905
- type: import("../index.js").VerificationType.Social;
992
+ type: VerificationType.Social;
906
993
  id: string;
907
994
  connectorId: string;
908
995
  socialUserInfo?: {
@@ -914,12 +1001,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
914
1001
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
915
1002
  } | undefined;
916
1003
  } | {
917
- type: import("../index.js").VerificationType.TOTP;
1004
+ type: VerificationType.TOTP;
918
1005
  id: string;
919
1006
  userId: string;
920
1007
  verified: boolean;
921
1008
  } | {
922
- type: import("../index.js").VerificationType.EnterpriseSso;
1009
+ type: VerificationType.EnterpriseSso;
923
1010
  id: string;
924
1011
  connectorId: string;
925
1012
  issuer?: string | undefined;
@@ -932,13 +1019,13 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
932
1019
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
933
1020
  } | undefined;
934
1021
  } | {
935
- type: import("../index.js").VerificationType.WebAuthn;
1022
+ type: VerificationType.WebAuthn;
936
1023
  id: string;
937
1024
  userId: string;
938
1025
  verified: boolean;
939
1026
  registrationRpId?: string | undefined;
940
1027
  } | {
941
- type: import("../index.js").VerificationType.SignInWebAuthn;
1028
+ type: VerificationType.SignInPasskey;
942
1029
  id: string;
943
1030
  verified: boolean;
944
1031
  userId?: string | undefined;
@@ -949,12 +1036,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
949
1036
  userId: string;
950
1037
  interactionEvent: InteractionEvent;
951
1038
  verificationRecords: ({
952
- type: import("../index.js").VerificationType.BackupCode;
1039
+ type: VerificationType.BackupCode;
953
1040
  id: string;
954
1041
  userId: string;
955
1042
  code?: string | undefined;
956
1043
  } | {
957
- type: import("../index.js").VerificationType.EmailVerificationCode;
1044
+ type: VerificationType.EmailVerificationCode;
958
1045
  id: string;
959
1046
  identifier: {
960
1047
  value: string;
@@ -963,7 +1050,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
963
1050
  templateType: import("@logto/connector-kit").TemplateType;
964
1051
  verified: boolean;
965
1052
  } | {
966
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1053
+ type: VerificationType.PhoneVerificationCode;
967
1054
  id: string;
968
1055
  identifier: {
969
1056
  value: string;
@@ -972,14 +1059,32 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
972
1059
  templateType: import("@logto/connector-kit").TemplateType;
973
1060
  verified: boolean;
974
1061
  } | {
975
- type: import("../index.js").VerificationType.NewPasswordIdentity;
1062
+ type: VerificationType.MfaEmailVerificationCode;
1063
+ id: string;
1064
+ identifier: {
1065
+ value: string;
1066
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1067
+ };
1068
+ templateType: import("@logto/connector-kit").TemplateType;
1069
+ verified: boolean;
1070
+ } | {
1071
+ type: VerificationType.MfaPhoneVerificationCode;
1072
+ id: string;
1073
+ identifier: {
1074
+ value: string;
1075
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1076
+ };
1077
+ templateType: import("@logto/connector-kit").TemplateType;
1078
+ verified: boolean;
1079
+ } | {
1080
+ type: VerificationType.NewPasswordIdentity;
976
1081
  id: string;
977
1082
  identifier: {
978
1083
  value: string;
979
1084
  type: import("../../foundations/index.js").SignInIdentifier;
980
1085
  };
981
1086
  } | {
982
- type: import("../index.js").VerificationType.OneTimeToken;
1087
+ type: VerificationType.OneTimeToken;
983
1088
  id: string;
984
1089
  identifier: {
985
1090
  value: string;
@@ -990,7 +1095,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
990
1095
  jitOrganizationIds?: string[] | undefined;
991
1096
  } | undefined;
992
1097
  } | {
993
- type: import("../index.js").VerificationType.Password;
1098
+ type: VerificationType.Password;
994
1099
  id: string;
995
1100
  identifier: {
996
1101
  value: string;
@@ -998,7 +1103,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
998
1103
  };
999
1104
  verified: boolean;
1000
1105
  } | {
1001
- type: import("../index.js").VerificationType.Social;
1106
+ type: VerificationType.Social;
1002
1107
  id: string;
1003
1108
  connectorId: string;
1004
1109
  socialUserInfo?: {
@@ -1010,12 +1115,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1010
1115
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1011
1116
  } | undefined;
1012
1117
  } | {
1013
- type: import("../index.js").VerificationType.TOTP;
1118
+ type: VerificationType.TOTP;
1014
1119
  id: string;
1015
1120
  userId: string;
1016
1121
  verified: boolean;
1017
1122
  } | {
1018
- type: import("../index.js").VerificationType.EnterpriseSso;
1123
+ type: VerificationType.EnterpriseSso;
1019
1124
  id: string;
1020
1125
  connectorId: string;
1021
1126
  issuer?: string | undefined;
@@ -1028,13 +1133,13 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1028
1133
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1029
1134
  } | undefined;
1030
1135
  } | {
1031
- type: import("../index.js").VerificationType.WebAuthn;
1136
+ type: VerificationType.WebAuthn;
1032
1137
  id: string;
1033
1138
  userId: string;
1034
1139
  verified: boolean;
1035
1140
  registrationRpId?: string | undefined;
1036
1141
  } | {
1037
- type: import("../index.js").VerificationType.SignInWebAuthn;
1142
+ type: VerificationType.SignInPasskey;
1038
1143
  id: string;
1039
1144
  verified: boolean;
1040
1145
  userId?: string | undefined;
@@ -1061,6 +1166,8 @@ export declare const jwtCustomizerApplicationContextGuard: z.ZodObject<Omit<{
1061
1166
  alwaysIssueRefreshToken?: boolean | undefined;
1062
1167
  rotateRefreshToken?: boolean | undefined;
1063
1168
  allowTokenExchange?: boolean | undefined;
1169
+ isDeviceFlow?: boolean | undefined;
1170
+ maxAllowedGrants?: number | undefined;
1064
1171
  }, z.ZodTypeDef, {
1065
1172
  corsAllowedOrigins?: string[] | undefined;
1066
1173
  idTokenTtl?: number | undefined;
@@ -1070,6 +1177,8 @@ export declare const jwtCustomizerApplicationContextGuard: z.ZodObject<Omit<{
1070
1177
  alwaysIssueRefreshToken?: boolean | undefined;
1071
1178
  rotateRefreshToken?: boolean | undefined;
1072
1179
  allowTokenExchange?: boolean | undefined;
1180
+ isDeviceFlow?: boolean | undefined;
1181
+ maxAllowedGrants?: number | undefined;
1073
1182
  }>;
1074
1183
  protectedAppMetadata: ZodType<{
1075
1184
  host: string;
@@ -1534,7 +1643,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1534
1643
  userId: z.ZodOptional<z.ZodString>;
1535
1644
  verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1536
1645
  id: z.ZodString;
1537
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
1646
+ type: z.ZodLiteral<VerificationType.Password>;
1538
1647
  identifier: z.ZodObject<{
1539
1648
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
1540
1649
  value: z.ZodString;
@@ -1547,7 +1656,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1547
1656
  }>;
1548
1657
  verified: z.ZodBoolean;
1549
1658
  }, "strip", z.ZodTypeAny, {
1550
- type: import("../index.js").VerificationType.Password;
1659
+ type: VerificationType.Password;
1551
1660
  id: string;
1552
1661
  identifier: {
1553
1662
  value: string;
@@ -1555,7 +1664,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1555
1664
  };
1556
1665
  verified: boolean;
1557
1666
  }, {
1558
- type: import("../index.js").VerificationType.Password;
1667
+ type: VerificationType.Password;
1559
1668
  id: string;
1560
1669
  identifier: {
1561
1670
  value: string;
@@ -1567,7 +1676,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1567
1676
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1568
1677
  verified: z.ZodBoolean;
1569
1678
  } & {
1570
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
1679
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
1571
1680
  identifier: z.ZodObject<{
1572
1681
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1573
1682
  value: z.ZodString;
@@ -1579,7 +1688,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1579
1688
  type: import("../../foundations/index.js").SignInIdentifier.Email;
1580
1689
  }>;
1581
1690
  }, "strip", z.ZodTypeAny, {
1582
- type: import("../index.js").VerificationType.EmailVerificationCode;
1691
+ type: VerificationType.EmailVerificationCode;
1583
1692
  id: string;
1584
1693
  identifier: {
1585
1694
  value: string;
@@ -1588,7 +1697,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1588
1697
  templateType: import("@logto/connector-kit").TemplateType;
1589
1698
  verified: boolean;
1590
1699
  }, {
1591
- type: import("../index.js").VerificationType.EmailVerificationCode;
1700
+ type: VerificationType.EmailVerificationCode;
1592
1701
  id: string;
1593
1702
  identifier: {
1594
1703
  value: string;
@@ -1601,7 +1710,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1601
1710
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1602
1711
  verified: z.ZodBoolean;
1603
1712
  } & {
1604
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
1713
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
1605
1714
  identifier: z.ZodObject<{
1606
1715
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
1607
1716
  value: z.ZodString;
@@ -1613,7 +1722,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1613
1722
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
1614
1723
  }>;
1615
1724
  }, "strip", z.ZodTypeAny, {
1616
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1725
+ type: VerificationType.PhoneVerificationCode;
1617
1726
  id: string;
1618
1727
  identifier: {
1619
1728
  value: string;
@@ -1622,7 +1731,75 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1622
1731
  templateType: import("@logto/connector-kit").TemplateType;
1623
1732
  verified: boolean;
1624
1733
  }, {
1625
- type: import("../index.js").VerificationType.PhoneVerificationCode;
1734
+ type: VerificationType.PhoneVerificationCode;
1735
+ id: string;
1736
+ identifier: {
1737
+ value: string;
1738
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1739
+ };
1740
+ templateType: import("@logto/connector-kit").TemplateType;
1741
+ verified: boolean;
1742
+ }>, z.ZodObject<{
1743
+ id: z.ZodString;
1744
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1745
+ verified: z.ZodBoolean;
1746
+ } & {
1747
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
1748
+ identifier: z.ZodObject<{
1749
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1750
+ value: z.ZodString;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ value: string;
1753
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1754
+ }, {
1755
+ value: string;
1756
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1757
+ }>;
1758
+ }, "strip", z.ZodTypeAny, {
1759
+ type: VerificationType.MfaEmailVerificationCode;
1760
+ id: string;
1761
+ identifier: {
1762
+ value: string;
1763
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1764
+ };
1765
+ templateType: import("@logto/connector-kit").TemplateType;
1766
+ verified: boolean;
1767
+ }, {
1768
+ type: VerificationType.MfaEmailVerificationCode;
1769
+ id: string;
1770
+ identifier: {
1771
+ value: string;
1772
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1773
+ };
1774
+ templateType: import("@logto/connector-kit").TemplateType;
1775
+ verified: boolean;
1776
+ }>, z.ZodObject<{
1777
+ id: z.ZodString;
1778
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1779
+ verified: z.ZodBoolean;
1780
+ } & {
1781
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
1782
+ identifier: z.ZodObject<{
1783
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
1784
+ value: z.ZodString;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ value: string;
1787
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1788
+ }, {
1789
+ value: string;
1790
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1791
+ }>;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ type: VerificationType.MfaPhoneVerificationCode;
1794
+ id: string;
1795
+ identifier: {
1796
+ value: string;
1797
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1798
+ };
1799
+ templateType: import("@logto/connector-kit").TemplateType;
1800
+ verified: boolean;
1801
+ }, {
1802
+ type: VerificationType.MfaPhoneVerificationCode;
1626
1803
  id: string;
1627
1804
  identifier: {
1628
1805
  value: string;
@@ -1633,7 +1810,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1633
1810
  }>, z.ZodObject<Omit<{
1634
1811
  id: z.ZodString;
1635
1812
  connectorId: z.ZodString;
1636
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
1813
+ type: z.ZodLiteral<VerificationType.Social>;
1637
1814
  socialUserInfo: z.ZodOptional<z.ZodObject<{
1638
1815
  id: z.ZodString;
1639
1816
  email: z.ZodOptional<z.ZodString>;
@@ -1714,7 +1891,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1714
1891
  state: z.ZodOptional<z.ZodString>;
1715
1892
  }, z.ZodUnknown, "strip">>>;
1716
1893
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
1717
- type: import("../index.js").VerificationType.Social;
1894
+ type: VerificationType.Social;
1718
1895
  id: string;
1719
1896
  connectorId: string;
1720
1897
  socialUserInfo?: {
@@ -1726,7 +1903,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1726
1903
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1727
1904
  } | undefined;
1728
1905
  }, {
1729
- type: import("../index.js").VerificationType.Social;
1906
+ type: VerificationType.Social;
1730
1907
  id: string;
1731
1908
  connectorId: string;
1732
1909
  socialUserInfo?: {
@@ -1738,7 +1915,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1738
1915
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1739
1916
  } | undefined;
1740
1917
  }>, z.ZodObject<{
1741
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
1918
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
1742
1919
  id: z.ZodString;
1743
1920
  issuer: z.ZodOptional<z.ZodString>;
1744
1921
  connectorId: z.ZodString;
@@ -1766,7 +1943,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1766
1943
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1767
1944
  }>>;
1768
1945
  }, "strip", z.ZodTypeAny, {
1769
- type: import("../index.js").VerificationType.EnterpriseSso;
1946
+ type: VerificationType.EnterpriseSso;
1770
1947
  id: string;
1771
1948
  connectorId: string;
1772
1949
  issuer?: string | undefined;
@@ -1779,7 +1956,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1779
1956
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1780
1957
  } | undefined;
1781
1958
  }, {
1782
- type: import("../index.js").VerificationType.EnterpriseSso;
1959
+ type: VerificationType.EnterpriseSso;
1783
1960
  id: string;
1784
1961
  connectorId: string;
1785
1962
  issuer?: string | undefined;
@@ -1793,33 +1970,33 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1793
1970
  } | undefined;
1794
1971
  }>, z.ZodObject<Omit<{
1795
1972
  id: z.ZodString;
1796
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
1973
+ type: z.ZodLiteral<VerificationType.TOTP>;
1797
1974
  userId: z.ZodString;
1798
1975
  secret: z.ZodOptional<z.ZodString>;
1799
1976
  verified: z.ZodBoolean;
1800
1977
  }, "secret">, "strip", z.ZodTypeAny, {
1801
- type: import("../index.js").VerificationType.TOTP;
1978
+ type: VerificationType.TOTP;
1802
1979
  id: string;
1803
1980
  userId: string;
1804
1981
  verified: boolean;
1805
1982
  }, {
1806
- type: import("../index.js").VerificationType.TOTP;
1983
+ type: VerificationType.TOTP;
1807
1984
  id: string;
1808
1985
  userId: string;
1809
1986
  verified: boolean;
1810
1987
  }>, z.ZodObject<Omit<{
1811
1988
  id: z.ZodString;
1812
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
1989
+ type: z.ZodLiteral<VerificationType.BackupCode>;
1813
1990
  userId: z.ZodString;
1814
1991
  code: z.ZodOptional<z.ZodString>;
1815
1992
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1816
1993
  }, "backupCodes">, "strip", z.ZodTypeAny, {
1817
- type: import("../index.js").VerificationType.BackupCode;
1994
+ type: VerificationType.BackupCode;
1818
1995
  id: string;
1819
1996
  userId: string;
1820
1997
  code?: string | undefined;
1821
1998
  }, {
1822
- type: import("../index.js").VerificationType.BackupCode;
1999
+ type: VerificationType.BackupCode;
1823
2000
  id: string;
1824
2001
  userId: string;
1825
2002
  code?: string | undefined;
@@ -1858,16 +2035,16 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1858
2035
  name?: string | undefined;
1859
2036
  }>>;
1860
2037
  } & {
1861
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
2038
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
1862
2039
  userId: z.ZodString;
1863
2040
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
1864
- type: import("../index.js").VerificationType.WebAuthn;
2041
+ type: VerificationType.WebAuthn;
1865
2042
  id: string;
1866
2043
  userId: string;
1867
2044
  verified: boolean;
1868
2045
  registrationRpId?: string | undefined;
1869
2046
  }, {
1870
- type: import("../index.js").VerificationType.WebAuthn;
2047
+ type: VerificationType.WebAuthn;
1871
2048
  id: string;
1872
2049
  userId: string;
1873
2050
  verified: boolean;
@@ -1907,24 +2084,24 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1907
2084
  name?: string | undefined;
1908
2085
  }>>;
1909
2086
  } & {
1910
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
2087
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
1911
2088
  userId: z.ZodOptional<z.ZodString>;
1912
2089
  authenticationRpId: z.ZodOptional<z.ZodString>;
1913
2090
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
1914
- type: import("../index.js").VerificationType.SignInWebAuthn;
2091
+ type: VerificationType.SignInPasskey;
1915
2092
  id: string;
1916
2093
  verified: boolean;
1917
2094
  userId?: string | undefined;
1918
2095
  registrationRpId?: string | undefined;
1919
2096
  }, {
1920
- type: import("../index.js").VerificationType.SignInWebAuthn;
2097
+ type: VerificationType.SignInPasskey;
1921
2098
  id: string;
1922
2099
  verified: boolean;
1923
2100
  userId?: string | undefined;
1924
2101
  registrationRpId?: string | undefined;
1925
2102
  }>, z.ZodObject<{
1926
2103
  id: z.ZodString;
1927
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
2104
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
1928
2105
  verified: z.ZodBoolean;
1929
2106
  identifier: z.ZodObject<{
1930
2107
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -1944,7 +2121,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1944
2121
  jitOrganizationIds?: string[] | undefined;
1945
2122
  }>>;
1946
2123
  }, "strip", z.ZodTypeAny, {
1947
- type: import("../index.js").VerificationType.OneTimeToken;
2124
+ type: VerificationType.OneTimeToken;
1948
2125
  id: string;
1949
2126
  identifier: {
1950
2127
  value: string;
@@ -1955,7 +2132,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1955
2132
  jitOrganizationIds?: string[] | undefined;
1956
2133
  } | undefined;
1957
2134
  }, {
1958
- type: import("../index.js").VerificationType.OneTimeToken;
2135
+ type: VerificationType.OneTimeToken;
1959
2136
  id: string;
1960
2137
  identifier: {
1961
2138
  value: string;
@@ -1967,7 +2144,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1967
2144
  } | undefined;
1968
2145
  }>, z.ZodObject<Omit<{
1969
2146
  id: z.ZodString;
1970
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
2147
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
1971
2148
  identifier: z.ZodObject<{
1972
2149
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
1973
2150
  value: z.ZodString;
@@ -1981,14 +2158,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1981
2158
  passwordEncrypted: z.ZodOptional<z.ZodString>;
1982
2159
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
1983
2160
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
1984
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2161
+ type: VerificationType.NewPasswordIdentity;
1985
2162
  id: string;
1986
2163
  identifier: {
1987
2164
  value: string;
1988
2165
  type: import("../../foundations/index.js").SignInIdentifier;
1989
2166
  };
1990
2167
  }, {
1991
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2168
+ type: VerificationType.NewPasswordIdentity;
1992
2169
  id: string;
1993
2170
  identifier: {
1994
2171
  value: string;
@@ -2000,12 +2177,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2000
2177
  userId?: string | undefined;
2001
2178
  interactionEvent?: InteractionEvent | undefined;
2002
2179
  verificationRecords?: ({
2003
- type: import("../index.js").VerificationType.BackupCode;
2180
+ type: VerificationType.BackupCode;
2004
2181
  id: string;
2005
2182
  userId: string;
2006
2183
  code?: string | undefined;
2007
2184
  } | {
2008
- type: import("../index.js").VerificationType.EmailVerificationCode;
2185
+ type: VerificationType.EmailVerificationCode;
2186
+ id: string;
2187
+ identifier: {
2188
+ value: string;
2189
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2190
+ };
2191
+ templateType: import("@logto/connector-kit").TemplateType;
2192
+ verified: boolean;
2193
+ } | {
2194
+ type: VerificationType.PhoneVerificationCode;
2195
+ id: string;
2196
+ identifier: {
2197
+ value: string;
2198
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2199
+ };
2200
+ templateType: import("@logto/connector-kit").TemplateType;
2201
+ verified: boolean;
2202
+ } | {
2203
+ type: VerificationType.MfaEmailVerificationCode;
2009
2204
  id: string;
2010
2205
  identifier: {
2011
2206
  value: string;
@@ -2014,7 +2209,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2014
2209
  templateType: import("@logto/connector-kit").TemplateType;
2015
2210
  verified: boolean;
2016
2211
  } | {
2017
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2212
+ type: VerificationType.MfaPhoneVerificationCode;
2018
2213
  id: string;
2019
2214
  identifier: {
2020
2215
  value: string;
@@ -2023,14 +2218,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2023
2218
  templateType: import("@logto/connector-kit").TemplateType;
2024
2219
  verified: boolean;
2025
2220
  } | {
2026
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2221
+ type: VerificationType.NewPasswordIdentity;
2027
2222
  id: string;
2028
2223
  identifier: {
2029
2224
  value: string;
2030
2225
  type: import("../../foundations/index.js").SignInIdentifier;
2031
2226
  };
2032
2227
  } | {
2033
- type: import("../index.js").VerificationType.OneTimeToken;
2228
+ type: VerificationType.OneTimeToken;
2034
2229
  id: string;
2035
2230
  identifier: {
2036
2231
  value: string;
@@ -2041,7 +2236,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2041
2236
  jitOrganizationIds?: string[] | undefined;
2042
2237
  } | undefined;
2043
2238
  } | {
2044
- type: import("../index.js").VerificationType.Password;
2239
+ type: VerificationType.Password;
2045
2240
  id: string;
2046
2241
  identifier: {
2047
2242
  value: string;
@@ -2049,7 +2244,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2049
2244
  };
2050
2245
  verified: boolean;
2051
2246
  } | {
2052
- type: import("../index.js").VerificationType.Social;
2247
+ type: VerificationType.Social;
2053
2248
  id: string;
2054
2249
  connectorId: string;
2055
2250
  socialUserInfo?: {
@@ -2061,12 +2256,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2061
2256
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2062
2257
  } | undefined;
2063
2258
  } | {
2064
- type: import("../index.js").VerificationType.TOTP;
2259
+ type: VerificationType.TOTP;
2065
2260
  id: string;
2066
2261
  userId: string;
2067
2262
  verified: boolean;
2068
2263
  } | {
2069
- type: import("../index.js").VerificationType.EnterpriseSso;
2264
+ type: VerificationType.EnterpriseSso;
2070
2265
  id: string;
2071
2266
  connectorId: string;
2072
2267
  issuer?: string | undefined;
@@ -2079,13 +2274,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2079
2274
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2080
2275
  } | undefined;
2081
2276
  } | {
2082
- type: import("../index.js").VerificationType.WebAuthn;
2277
+ type: VerificationType.WebAuthn;
2083
2278
  id: string;
2084
2279
  userId: string;
2085
2280
  verified: boolean;
2086
2281
  registrationRpId?: string | undefined;
2087
2282
  } | {
2088
- type: import("../index.js").VerificationType.SignInWebAuthn;
2283
+ type: VerificationType.SignInPasskey;
2089
2284
  id: string;
2090
2285
  verified: boolean;
2091
2286
  userId?: string | undefined;
@@ -2096,12 +2291,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2096
2291
  userId?: string | undefined;
2097
2292
  interactionEvent?: InteractionEvent | undefined;
2098
2293
  verificationRecords?: ({
2099
- type: import("../index.js").VerificationType.BackupCode;
2294
+ type: VerificationType.BackupCode;
2100
2295
  id: string;
2101
2296
  userId: string;
2102
2297
  code?: string | undefined;
2103
2298
  } | {
2104
- type: import("../index.js").VerificationType.EmailVerificationCode;
2299
+ type: VerificationType.EmailVerificationCode;
2105
2300
  id: string;
2106
2301
  identifier: {
2107
2302
  value: string;
@@ -2110,7 +2305,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2110
2305
  templateType: import("@logto/connector-kit").TemplateType;
2111
2306
  verified: boolean;
2112
2307
  } | {
2113
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2308
+ type: VerificationType.PhoneVerificationCode;
2114
2309
  id: string;
2115
2310
  identifier: {
2116
2311
  value: string;
@@ -2119,14 +2314,32 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2119
2314
  templateType: import("@logto/connector-kit").TemplateType;
2120
2315
  verified: boolean;
2121
2316
  } | {
2122
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2317
+ type: VerificationType.MfaEmailVerificationCode;
2318
+ id: string;
2319
+ identifier: {
2320
+ value: string;
2321
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2322
+ };
2323
+ templateType: import("@logto/connector-kit").TemplateType;
2324
+ verified: boolean;
2325
+ } | {
2326
+ type: VerificationType.MfaPhoneVerificationCode;
2327
+ id: string;
2328
+ identifier: {
2329
+ value: string;
2330
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2331
+ };
2332
+ templateType: import("@logto/connector-kit").TemplateType;
2333
+ verified: boolean;
2334
+ } | {
2335
+ type: VerificationType.NewPasswordIdentity;
2123
2336
  id: string;
2124
2337
  identifier: {
2125
2338
  value: string;
2126
2339
  type: import("../../foundations/index.js").SignInIdentifier;
2127
2340
  };
2128
2341
  } | {
2129
- type: import("../index.js").VerificationType.OneTimeToken;
2342
+ type: VerificationType.OneTimeToken;
2130
2343
  id: string;
2131
2344
  identifier: {
2132
2345
  value: string;
@@ -2137,7 +2350,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2137
2350
  jitOrganizationIds?: string[] | undefined;
2138
2351
  } | undefined;
2139
2352
  } | {
2140
- type: import("../index.js").VerificationType.Password;
2353
+ type: VerificationType.Password;
2141
2354
  id: string;
2142
2355
  identifier: {
2143
2356
  value: string;
@@ -2145,7 +2358,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2145
2358
  };
2146
2359
  verified: boolean;
2147
2360
  } | {
2148
- type: import("../index.js").VerificationType.Social;
2361
+ type: VerificationType.Social;
2149
2362
  id: string;
2150
2363
  connectorId: string;
2151
2364
  socialUserInfo?: {
@@ -2157,12 +2370,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2157
2370
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2158
2371
  } | undefined;
2159
2372
  } | {
2160
- type: import("../index.js").VerificationType.TOTP;
2373
+ type: VerificationType.TOTP;
2161
2374
  id: string;
2162
2375
  userId: string;
2163
2376
  verified: boolean;
2164
2377
  } | {
2165
- type: import("../index.js").VerificationType.EnterpriseSso;
2378
+ type: VerificationType.EnterpriseSso;
2166
2379
  id: string;
2167
2380
  connectorId: string;
2168
2381
  issuer?: string | undefined;
@@ -2175,13 +2388,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2175
2388
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2176
2389
  } | undefined;
2177
2390
  } | {
2178
- type: import("../index.js").VerificationType.WebAuthn;
2391
+ type: VerificationType.WebAuthn;
2179
2392
  id: string;
2180
2393
  userId: string;
2181
2394
  verified: boolean;
2182
2395
  registrationRpId?: string | undefined;
2183
2396
  } | {
2184
- type: import("../index.js").VerificationType.SignInWebAuthn;
2397
+ type: VerificationType.SignInPasskey;
2185
2398
  id: string;
2186
2399
  verified: boolean;
2187
2400
  userId?: string | undefined;
@@ -2207,6 +2420,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2207
2420
  alwaysIssueRefreshToken?: boolean | undefined;
2208
2421
  rotateRefreshToken?: boolean | undefined;
2209
2422
  allowTokenExchange?: boolean | undefined;
2423
+ isDeviceFlow?: boolean | undefined;
2424
+ maxAllowedGrants?: number | undefined;
2210
2425
  }, z.ZodTypeDef, {
2211
2426
  corsAllowedOrigins?: string[] | undefined;
2212
2427
  idTokenTtl?: number | undefined;
@@ -2216,6 +2431,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2216
2431
  alwaysIssueRefreshToken?: boolean | undefined;
2217
2432
  rotateRefreshToken?: boolean | undefined;
2218
2433
  allowTokenExchange?: boolean | undefined;
2434
+ isDeviceFlow?: boolean | undefined;
2435
+ maxAllowedGrants?: number | undefined;
2219
2436
  }>>;
2220
2437
  protectedAppMetadata: z.ZodOptional<ZodType<{
2221
2438
  host: string;
@@ -2293,6 +2510,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2293
2510
  alwaysIssueRefreshToken?: boolean | undefined;
2294
2511
  rotateRefreshToken?: boolean | undefined;
2295
2512
  allowTokenExchange?: boolean | undefined;
2513
+ isDeviceFlow?: boolean | undefined;
2514
+ maxAllowedGrants?: number | undefined;
2296
2515
  } | undefined;
2297
2516
  protectedAppMetadata?: {
2298
2517
  host: string;
@@ -2342,6 +2561,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2342
2561
  alwaysIssueRefreshToken?: boolean | undefined;
2343
2562
  rotateRefreshToken?: boolean | undefined;
2344
2563
  allowTokenExchange?: boolean | undefined;
2564
+ isDeviceFlow?: boolean | undefined;
2565
+ maxAllowedGrants?: number | undefined;
2345
2566
  } | undefined;
2346
2567
  protectedAppMetadata?: {
2347
2568
  host: string;
@@ -2461,6 +2682,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2461
2682
  alwaysIssueRefreshToken?: boolean | undefined;
2462
2683
  rotateRefreshToken?: boolean | undefined;
2463
2684
  allowTokenExchange?: boolean | undefined;
2685
+ isDeviceFlow?: boolean | undefined;
2686
+ maxAllowedGrants?: number | undefined;
2464
2687
  } | undefined;
2465
2688
  protectedAppMetadata?: {
2466
2689
  host: string;
@@ -2501,12 +2724,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2501
2724
  userId?: string | undefined;
2502
2725
  interactionEvent?: InteractionEvent | undefined;
2503
2726
  verificationRecords?: ({
2504
- type: import("../index.js").VerificationType.BackupCode;
2727
+ type: VerificationType.BackupCode;
2505
2728
  id: string;
2506
2729
  userId: string;
2507
2730
  code?: string | undefined;
2508
2731
  } | {
2509
- type: import("../index.js").VerificationType.EmailVerificationCode;
2732
+ type: VerificationType.EmailVerificationCode;
2510
2733
  id: string;
2511
2734
  identifier: {
2512
2735
  value: string;
@@ -2515,7 +2738,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2515
2738
  templateType: import("@logto/connector-kit").TemplateType;
2516
2739
  verified: boolean;
2517
2740
  } | {
2518
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2741
+ type: VerificationType.PhoneVerificationCode;
2519
2742
  id: string;
2520
2743
  identifier: {
2521
2744
  value: string;
@@ -2524,14 +2747,32 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2524
2747
  templateType: import("@logto/connector-kit").TemplateType;
2525
2748
  verified: boolean;
2526
2749
  } | {
2527
- type: import("../index.js").VerificationType.NewPasswordIdentity;
2750
+ type: VerificationType.MfaEmailVerificationCode;
2751
+ id: string;
2752
+ identifier: {
2753
+ value: string;
2754
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2755
+ };
2756
+ templateType: import("@logto/connector-kit").TemplateType;
2757
+ verified: boolean;
2758
+ } | {
2759
+ type: VerificationType.MfaPhoneVerificationCode;
2760
+ id: string;
2761
+ identifier: {
2762
+ value: string;
2763
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2764
+ };
2765
+ templateType: import("@logto/connector-kit").TemplateType;
2766
+ verified: boolean;
2767
+ } | {
2768
+ type: VerificationType.NewPasswordIdentity;
2528
2769
  id: string;
2529
2770
  identifier: {
2530
2771
  value: string;
2531
2772
  type: import("../../foundations/index.js").SignInIdentifier;
2532
2773
  };
2533
2774
  } | {
2534
- type: import("../index.js").VerificationType.OneTimeToken;
2775
+ type: VerificationType.OneTimeToken;
2535
2776
  id: string;
2536
2777
  identifier: {
2537
2778
  value: string;
@@ -2542,7 +2783,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2542
2783
  jitOrganizationIds?: string[] | undefined;
2543
2784
  } | undefined;
2544
2785
  } | {
2545
- type: import("../index.js").VerificationType.Password;
2786
+ type: VerificationType.Password;
2546
2787
  id: string;
2547
2788
  identifier: {
2548
2789
  value: string;
@@ -2550,7 +2791,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2550
2791
  };
2551
2792
  verified: boolean;
2552
2793
  } | {
2553
- type: import("../index.js").VerificationType.Social;
2794
+ type: VerificationType.Social;
2554
2795
  id: string;
2555
2796
  connectorId: string;
2556
2797
  socialUserInfo?: {
@@ -2562,12 +2803,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2562
2803
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2563
2804
  } | undefined;
2564
2805
  } | {
2565
- type: import("../index.js").VerificationType.TOTP;
2806
+ type: VerificationType.TOTP;
2566
2807
  id: string;
2567
2808
  userId: string;
2568
2809
  verified: boolean;
2569
2810
  } | {
2570
- type: import("../index.js").VerificationType.EnterpriseSso;
2811
+ type: VerificationType.EnterpriseSso;
2571
2812
  id: string;
2572
2813
  connectorId: string;
2573
2814
  issuer?: string | undefined;
@@ -2580,13 +2821,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2580
2821
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2581
2822
  } | undefined;
2582
2823
  } | {
2583
- type: import("../index.js").VerificationType.WebAuthn;
2824
+ type: VerificationType.WebAuthn;
2584
2825
  id: string;
2585
2826
  userId: string;
2586
2827
  verified: boolean;
2587
2828
  registrationRpId?: string | undefined;
2588
2829
  } | {
2589
- type: import("../index.js").VerificationType.SignInWebAuthn;
2830
+ type: VerificationType.SignInPasskey;
2590
2831
  id: string;
2591
2832
  verified: boolean;
2592
2833
  userId?: string | undefined;
@@ -2681,6 +2922,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2681
2922
  alwaysIssueRefreshToken?: boolean | undefined;
2682
2923
  rotateRefreshToken?: boolean | undefined;
2683
2924
  allowTokenExchange?: boolean | undefined;
2925
+ isDeviceFlow?: boolean | undefined;
2926
+ maxAllowedGrants?: number | undefined;
2684
2927
  } | undefined;
2685
2928
  protectedAppMetadata?: {
2686
2929
  host: string;
@@ -2721,12 +2964,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2721
2964
  userId?: string | undefined;
2722
2965
  interactionEvent?: InteractionEvent | undefined;
2723
2966
  verificationRecords?: ({
2724
- type: import("../index.js").VerificationType.BackupCode;
2967
+ type: VerificationType.BackupCode;
2725
2968
  id: string;
2726
2969
  userId: string;
2727
2970
  code?: string | undefined;
2728
2971
  } | {
2729
- type: import("../index.js").VerificationType.EmailVerificationCode;
2972
+ type: VerificationType.EmailVerificationCode;
2973
+ id: string;
2974
+ identifier: {
2975
+ value: string;
2976
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2977
+ };
2978
+ templateType: import("@logto/connector-kit").TemplateType;
2979
+ verified: boolean;
2980
+ } | {
2981
+ type: VerificationType.PhoneVerificationCode;
2982
+ id: string;
2983
+ identifier: {
2984
+ value: string;
2985
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2986
+ };
2987
+ templateType: import("@logto/connector-kit").TemplateType;
2988
+ verified: boolean;
2989
+ } | {
2990
+ type: VerificationType.MfaEmailVerificationCode;
2730
2991
  id: string;
2731
2992
  identifier: {
2732
2993
  value: string;
@@ -2735,7 +2996,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2735
2996
  templateType: import("@logto/connector-kit").TemplateType;
2736
2997
  verified: boolean;
2737
2998
  } | {
2738
- type: import("../index.js").VerificationType.PhoneVerificationCode;
2999
+ type: VerificationType.MfaPhoneVerificationCode;
2739
3000
  id: string;
2740
3001
  identifier: {
2741
3002
  value: string;
@@ -2744,14 +3005,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2744
3005
  templateType: import("@logto/connector-kit").TemplateType;
2745
3006
  verified: boolean;
2746
3007
  } | {
2747
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3008
+ type: VerificationType.NewPasswordIdentity;
2748
3009
  id: string;
2749
3010
  identifier: {
2750
3011
  value: string;
2751
3012
  type: import("../../foundations/index.js").SignInIdentifier;
2752
3013
  };
2753
3014
  } | {
2754
- type: import("../index.js").VerificationType.OneTimeToken;
3015
+ type: VerificationType.OneTimeToken;
2755
3016
  id: string;
2756
3017
  identifier: {
2757
3018
  value: string;
@@ -2762,7 +3023,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2762
3023
  jitOrganizationIds?: string[] | undefined;
2763
3024
  } | undefined;
2764
3025
  } | {
2765
- type: import("../index.js").VerificationType.Password;
3026
+ type: VerificationType.Password;
2766
3027
  id: string;
2767
3028
  identifier: {
2768
3029
  value: string;
@@ -2770,7 +3031,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2770
3031
  };
2771
3032
  verified: boolean;
2772
3033
  } | {
2773
- type: import("../index.js").VerificationType.Social;
3034
+ type: VerificationType.Social;
2774
3035
  id: string;
2775
3036
  connectorId: string;
2776
3037
  socialUserInfo?: {
@@ -2782,12 +3043,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2782
3043
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2783
3044
  } | undefined;
2784
3045
  } | {
2785
- type: import("../index.js").VerificationType.TOTP;
3046
+ type: VerificationType.TOTP;
2786
3047
  id: string;
2787
3048
  userId: string;
2788
3049
  verified: boolean;
2789
3050
  } | {
2790
- type: import("../index.js").VerificationType.EnterpriseSso;
3051
+ type: VerificationType.EnterpriseSso;
2791
3052
  id: string;
2792
3053
  connectorId: string;
2793
3054
  issuer?: string | undefined;
@@ -2800,13 +3061,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2800
3061
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2801
3062
  } | undefined;
2802
3063
  } | {
2803
- type: import("../index.js").VerificationType.WebAuthn;
3064
+ type: VerificationType.WebAuthn;
2804
3065
  id: string;
2805
3066
  userId: string;
2806
3067
  verified: boolean;
2807
3068
  registrationRpId?: string | undefined;
2808
3069
  } | {
2809
- type: import("../index.js").VerificationType.SignInWebAuthn;
3070
+ type: VerificationType.SignInPasskey;
2810
3071
  id: string;
2811
3072
  verified: boolean;
2812
3073
  userId?: string | undefined;
@@ -2905,6 +3166,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2905
3166
  alwaysIssueRefreshToken?: boolean | undefined;
2906
3167
  rotateRefreshToken?: boolean | undefined;
2907
3168
  allowTokenExchange?: boolean | undefined;
3169
+ isDeviceFlow?: boolean | undefined;
3170
+ maxAllowedGrants?: number | undefined;
2908
3171
  } | undefined;
2909
3172
  protectedAppMetadata?: {
2910
3173
  host: string;
@@ -2945,12 +3208,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2945
3208
  userId?: string | undefined;
2946
3209
  interactionEvent?: InteractionEvent | undefined;
2947
3210
  verificationRecords?: ({
2948
- type: import("../index.js").VerificationType.BackupCode;
3211
+ type: VerificationType.BackupCode;
2949
3212
  id: string;
2950
3213
  userId: string;
2951
3214
  code?: string | undefined;
2952
3215
  } | {
2953
- type: import("../index.js").VerificationType.EmailVerificationCode;
3216
+ type: VerificationType.EmailVerificationCode;
3217
+ id: string;
3218
+ identifier: {
3219
+ value: string;
3220
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3221
+ };
3222
+ templateType: import("@logto/connector-kit").TemplateType;
3223
+ verified: boolean;
3224
+ } | {
3225
+ type: VerificationType.PhoneVerificationCode;
3226
+ id: string;
3227
+ identifier: {
3228
+ value: string;
3229
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3230
+ };
3231
+ templateType: import("@logto/connector-kit").TemplateType;
3232
+ verified: boolean;
3233
+ } | {
3234
+ type: VerificationType.MfaEmailVerificationCode;
2954
3235
  id: string;
2955
3236
  identifier: {
2956
3237
  value: string;
@@ -2959,7 +3240,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2959
3240
  templateType: import("@logto/connector-kit").TemplateType;
2960
3241
  verified: boolean;
2961
3242
  } | {
2962
- type: import("../index.js").VerificationType.PhoneVerificationCode;
3243
+ type: VerificationType.MfaPhoneVerificationCode;
2963
3244
  id: string;
2964
3245
  identifier: {
2965
3246
  value: string;
@@ -2968,14 +3249,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2968
3249
  templateType: import("@logto/connector-kit").TemplateType;
2969
3250
  verified: boolean;
2970
3251
  } | {
2971
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3252
+ type: VerificationType.NewPasswordIdentity;
2972
3253
  id: string;
2973
3254
  identifier: {
2974
3255
  value: string;
2975
3256
  type: import("../../foundations/index.js").SignInIdentifier;
2976
3257
  };
2977
3258
  } | {
2978
- type: import("../index.js").VerificationType.OneTimeToken;
3259
+ type: VerificationType.OneTimeToken;
2979
3260
  id: string;
2980
3261
  identifier: {
2981
3262
  value: string;
@@ -2986,7 +3267,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2986
3267
  jitOrganizationIds?: string[] | undefined;
2987
3268
  } | undefined;
2988
3269
  } | {
2989
- type: import("../index.js").VerificationType.Password;
3270
+ type: VerificationType.Password;
2990
3271
  id: string;
2991
3272
  identifier: {
2992
3273
  value: string;
@@ -2994,7 +3275,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2994
3275
  };
2995
3276
  verified: boolean;
2996
3277
  } | {
2997
- type: import("../index.js").VerificationType.Social;
3278
+ type: VerificationType.Social;
2998
3279
  id: string;
2999
3280
  connectorId: string;
3000
3281
  socialUserInfo?: {
@@ -3006,12 +3287,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3006
3287
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3007
3288
  } | undefined;
3008
3289
  } | {
3009
- type: import("../index.js").VerificationType.TOTP;
3290
+ type: VerificationType.TOTP;
3010
3291
  id: string;
3011
3292
  userId: string;
3012
3293
  verified: boolean;
3013
3294
  } | {
3014
- type: import("../index.js").VerificationType.EnterpriseSso;
3295
+ type: VerificationType.EnterpriseSso;
3015
3296
  id: string;
3016
3297
  connectorId: string;
3017
3298
  issuer?: string | undefined;
@@ -3024,13 +3305,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3024
3305
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3025
3306
  } | undefined;
3026
3307
  } | {
3027
- type: import("../index.js").VerificationType.WebAuthn;
3308
+ type: VerificationType.WebAuthn;
3028
3309
  id: string;
3029
3310
  userId: string;
3030
3311
  verified: boolean;
3031
3312
  registrationRpId?: string | undefined;
3032
3313
  } | {
3033
- type: import("../index.js").VerificationType.SignInWebAuthn;
3314
+ type: VerificationType.SignInPasskey;
3034
3315
  id: string;
3035
3316
  verified: boolean;
3036
3317
  userId?: string | undefined;
@@ -3142,6 +3423,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3142
3423
  alwaysIssueRefreshToken?: boolean | undefined;
3143
3424
  rotateRefreshToken?: boolean | undefined;
3144
3425
  allowTokenExchange?: boolean | undefined;
3426
+ isDeviceFlow?: boolean | undefined;
3427
+ maxAllowedGrants?: number | undefined;
3145
3428
  } | undefined;
3146
3429
  protectedAppMetadata?: {
3147
3430
  host: string;
@@ -3182,12 +3465,30 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3182
3465
  userId?: string | undefined;
3183
3466
  interactionEvent?: InteractionEvent | undefined;
3184
3467
  verificationRecords?: ({
3185
- type: import("../index.js").VerificationType.BackupCode;
3468
+ type: VerificationType.BackupCode;
3186
3469
  id: string;
3187
3470
  userId: string;
3188
3471
  code?: string | undefined;
3189
3472
  } | {
3190
- type: import("../index.js").VerificationType.EmailVerificationCode;
3473
+ type: VerificationType.EmailVerificationCode;
3474
+ id: string;
3475
+ identifier: {
3476
+ value: string;
3477
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3478
+ };
3479
+ templateType: import("@logto/connector-kit").TemplateType;
3480
+ verified: boolean;
3481
+ } | {
3482
+ type: VerificationType.PhoneVerificationCode;
3483
+ id: string;
3484
+ identifier: {
3485
+ value: string;
3486
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3487
+ };
3488
+ templateType: import("@logto/connector-kit").TemplateType;
3489
+ verified: boolean;
3490
+ } | {
3491
+ type: VerificationType.MfaEmailVerificationCode;
3191
3492
  id: string;
3192
3493
  identifier: {
3193
3494
  value: string;
@@ -3196,7 +3497,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3196
3497
  templateType: import("@logto/connector-kit").TemplateType;
3197
3498
  verified: boolean;
3198
3499
  } | {
3199
- type: import("../index.js").VerificationType.PhoneVerificationCode;
3500
+ type: VerificationType.MfaPhoneVerificationCode;
3200
3501
  id: string;
3201
3502
  identifier: {
3202
3503
  value: string;
@@ -3205,14 +3506,14 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3205
3506
  templateType: import("@logto/connector-kit").TemplateType;
3206
3507
  verified: boolean;
3207
3508
  } | {
3208
- type: import("../index.js").VerificationType.NewPasswordIdentity;
3509
+ type: VerificationType.NewPasswordIdentity;
3209
3510
  id: string;
3210
3511
  identifier: {
3211
3512
  value: string;
3212
3513
  type: import("../../foundations/index.js").SignInIdentifier;
3213
3514
  };
3214
3515
  } | {
3215
- type: import("../index.js").VerificationType.OneTimeToken;
3516
+ type: VerificationType.OneTimeToken;
3216
3517
  id: string;
3217
3518
  identifier: {
3218
3519
  value: string;
@@ -3223,7 +3524,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3223
3524
  jitOrganizationIds?: string[] | undefined;
3224
3525
  } | undefined;
3225
3526
  } | {
3226
- type: import("../index.js").VerificationType.Password;
3527
+ type: VerificationType.Password;
3227
3528
  id: string;
3228
3529
  identifier: {
3229
3530
  value: string;
@@ -3231,7 +3532,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3231
3532
  };
3232
3533
  verified: boolean;
3233
3534
  } | {
3234
- type: import("../index.js").VerificationType.Social;
3535
+ type: VerificationType.Social;
3235
3536
  id: string;
3236
3537
  connectorId: string;
3237
3538
  socialUserInfo?: {
@@ -3243,12 +3544,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3243
3544
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3244
3545
  } | undefined;
3245
3546
  } | {
3246
- type: import("../index.js").VerificationType.TOTP;
3547
+ type: VerificationType.TOTP;
3247
3548
  id: string;
3248
3549
  userId: string;
3249
3550
  verified: boolean;
3250
3551
  } | {
3251
- type: import("../index.js").VerificationType.EnterpriseSso;
3552
+ type: VerificationType.EnterpriseSso;
3252
3553
  id: string;
3253
3554
  connectorId: string;
3254
3555
  issuer?: string | undefined;
@@ -3261,13 +3562,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3261
3562
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3262
3563
  } | undefined;
3263
3564
  } | {
3264
- type: import("../index.js").VerificationType.WebAuthn;
3565
+ type: VerificationType.WebAuthn;
3265
3566
  id: string;
3266
3567
  userId: string;
3267
3568
  verified: boolean;
3268
3569
  registrationRpId?: string | undefined;
3269
3570
  } | {
3270
- type: import("../index.js").VerificationType.SignInWebAuthn;
3571
+ type: VerificationType.SignInPasskey;
3271
3572
  id: string;
3272
3573
  verified: boolean;
3273
3574
  userId?: string | undefined;
@@ -3333,6 +3634,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3333
3634
  alwaysIssueRefreshToken?: boolean | undefined;
3334
3635
  rotateRefreshToken?: boolean | undefined;
3335
3636
  allowTokenExchange?: boolean | undefined;
3637
+ isDeviceFlow?: boolean | undefined;
3638
+ maxAllowedGrants?: number | undefined;
3336
3639
  }, z.ZodTypeDef, {
3337
3640
  corsAllowedOrigins?: string[] | undefined;
3338
3641
  idTokenTtl?: number | undefined;
@@ -3342,6 +3645,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3342
3645
  alwaysIssueRefreshToken?: boolean | undefined;
3343
3646
  rotateRefreshToken?: boolean | undefined;
3344
3647
  allowTokenExchange?: boolean | undefined;
3648
+ isDeviceFlow?: boolean | undefined;
3649
+ maxAllowedGrants?: number | undefined;
3345
3650
  }>>;
3346
3651
  protectedAppMetadata: z.ZodOptional<ZodType<{
3347
3652
  host: string;
@@ -3419,6 +3724,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3419
3724
  alwaysIssueRefreshToken?: boolean | undefined;
3420
3725
  rotateRefreshToken?: boolean | undefined;
3421
3726
  allowTokenExchange?: boolean | undefined;
3727
+ isDeviceFlow?: boolean | undefined;
3728
+ maxAllowedGrants?: number | undefined;
3422
3729
  } | undefined;
3423
3730
  protectedAppMetadata?: {
3424
3731
  host: string;
@@ -3468,6 +3775,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3468
3775
  alwaysIssueRefreshToken?: boolean | undefined;
3469
3776
  rotateRefreshToken?: boolean | undefined;
3470
3777
  allowTokenExchange?: boolean | undefined;
3778
+ isDeviceFlow?: boolean | undefined;
3779
+ maxAllowedGrants?: number | undefined;
3471
3780
  } | undefined;
3472
3781
  protectedAppMetadata?: {
3473
3782
  host: string;
@@ -3519,6 +3828,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3519
3828
  alwaysIssueRefreshToken?: boolean | undefined;
3520
3829
  rotateRefreshToken?: boolean | undefined;
3521
3830
  allowTokenExchange?: boolean | undefined;
3831
+ isDeviceFlow?: boolean | undefined;
3832
+ maxAllowedGrants?: number | undefined;
3522
3833
  } | undefined;
3523
3834
  protectedAppMetadata?: {
3524
3835
  host: string;
@@ -3570,6 +3881,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3570
3881
  alwaysIssueRefreshToken?: boolean | undefined;
3571
3882
  rotateRefreshToken?: boolean | undefined;
3572
3883
  allowTokenExchange?: boolean | undefined;
3884
+ isDeviceFlow?: boolean | undefined;
3885
+ maxAllowedGrants?: number | undefined;
3573
3886
  } | undefined;
3574
3887
  protectedAppMetadata?: {
3575
3888
  host: string;
@@ -3625,6 +3938,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3625
3938
  alwaysIssueRefreshToken?: boolean | undefined;
3626
3939
  rotateRefreshToken?: boolean | undefined;
3627
3940
  allowTokenExchange?: boolean | undefined;
3941
+ isDeviceFlow?: boolean | undefined;
3942
+ maxAllowedGrants?: number | undefined;
3628
3943
  } | undefined;
3629
3944
  protectedAppMetadata?: {
3630
3945
  host: string;
@@ -3687,6 +4002,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
3687
4002
  alwaysIssueRefreshToken?: boolean | undefined;
3688
4003
  rotateRefreshToken?: boolean | undefined;
3689
4004
  allowTokenExchange?: boolean | undefined;
4005
+ isDeviceFlow?: boolean | undefined;
4006
+ maxAllowedGrants?: number | undefined;
3690
4007
  } | undefined;
3691
4008
  protectedAppMetadata?: {
3692
4009
  host: string;
@@ -4111,7 +4428,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4111
4428
  userId: z.ZodOptional<z.ZodString>;
4112
4429
  verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4113
4430
  id: z.ZodString;
4114
- type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
4431
+ type: z.ZodLiteral<VerificationType.Password>;
4115
4432
  identifier: z.ZodObject<{
4116
4433
  type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
4117
4434
  value: z.ZodString;
@@ -4124,7 +4441,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4124
4441
  }>;
4125
4442
  verified: z.ZodBoolean;
4126
4443
  }, "strip", z.ZodTypeAny, {
4127
- type: import("../index.js").VerificationType.Password;
4444
+ type: VerificationType.Password;
4128
4445
  id: string;
4129
4446
  identifier: {
4130
4447
  value: string;
@@ -4132,7 +4449,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4132
4449
  };
4133
4450
  verified: boolean;
4134
4451
  }, {
4135
- type: import("../index.js").VerificationType.Password;
4452
+ type: VerificationType.Password;
4136
4453
  id: string;
4137
4454
  identifier: {
4138
4455
  value: string;
@@ -4144,7 +4461,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4144
4461
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4145
4462
  verified: z.ZodBoolean;
4146
4463
  } & {
4147
- type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
4464
+ type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
4148
4465
  identifier: z.ZodObject<{
4149
4466
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
4150
4467
  value: z.ZodString;
@@ -4156,7 +4473,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4156
4473
  type: import("../../foundations/index.js").SignInIdentifier.Email;
4157
4474
  }>;
4158
4475
  }, "strip", z.ZodTypeAny, {
4159
- type: import("../index.js").VerificationType.EmailVerificationCode;
4476
+ type: VerificationType.EmailVerificationCode;
4160
4477
  id: string;
4161
4478
  identifier: {
4162
4479
  value: string;
@@ -4165,7 +4482,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4165
4482
  templateType: import("@logto/connector-kit").TemplateType;
4166
4483
  verified: boolean;
4167
4484
  }, {
4168
- type: import("../index.js").VerificationType.EmailVerificationCode;
4485
+ type: VerificationType.EmailVerificationCode;
4169
4486
  id: string;
4170
4487
  identifier: {
4171
4488
  value: string;
@@ -4178,7 +4495,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4178
4495
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4179
4496
  verified: z.ZodBoolean;
4180
4497
  } & {
4181
- type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
4498
+ type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
4182
4499
  identifier: z.ZodObject<{
4183
4500
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
4184
4501
  value: z.ZodString;
@@ -4190,7 +4507,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4190
4507
  type: import("../../foundations/index.js").SignInIdentifier.Phone;
4191
4508
  }>;
4192
4509
  }, "strip", z.ZodTypeAny, {
4193
- type: import("../index.js").VerificationType.PhoneVerificationCode;
4510
+ type: VerificationType.PhoneVerificationCode;
4194
4511
  id: string;
4195
4512
  identifier: {
4196
4513
  value: string;
@@ -4199,7 +4516,75 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4199
4516
  templateType: import("@logto/connector-kit").TemplateType;
4200
4517
  verified: boolean;
4201
4518
  }, {
4202
- type: import("../index.js").VerificationType.PhoneVerificationCode;
4519
+ type: VerificationType.PhoneVerificationCode;
4520
+ id: string;
4521
+ identifier: {
4522
+ value: string;
4523
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4524
+ };
4525
+ templateType: import("@logto/connector-kit").TemplateType;
4526
+ verified: boolean;
4527
+ }>, z.ZodObject<{
4528
+ id: z.ZodString;
4529
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4530
+ verified: z.ZodBoolean;
4531
+ } & {
4532
+ type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
4533
+ identifier: z.ZodObject<{
4534
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
4535
+ value: z.ZodString;
4536
+ }, "strip", z.ZodTypeAny, {
4537
+ value: string;
4538
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4539
+ }, {
4540
+ value: string;
4541
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4542
+ }>;
4543
+ }, "strip", z.ZodTypeAny, {
4544
+ type: VerificationType.MfaEmailVerificationCode;
4545
+ id: string;
4546
+ identifier: {
4547
+ value: string;
4548
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4549
+ };
4550
+ templateType: import("@logto/connector-kit").TemplateType;
4551
+ verified: boolean;
4552
+ }, {
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
+ }>, z.ZodObject<{
4562
+ id: z.ZodString;
4563
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4564
+ verified: z.ZodBoolean;
4565
+ } & {
4566
+ type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
4567
+ identifier: z.ZodObject<{
4568
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
4569
+ value: z.ZodString;
4570
+ }, "strip", z.ZodTypeAny, {
4571
+ value: string;
4572
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4573
+ }, {
4574
+ value: string;
4575
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4576
+ }>;
4577
+ }, "strip", z.ZodTypeAny, {
4578
+ type: VerificationType.MfaPhoneVerificationCode;
4579
+ id: string;
4580
+ identifier: {
4581
+ value: string;
4582
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4583
+ };
4584
+ templateType: import("@logto/connector-kit").TemplateType;
4585
+ verified: boolean;
4586
+ }, {
4587
+ type: VerificationType.MfaPhoneVerificationCode;
4203
4588
  id: string;
4204
4589
  identifier: {
4205
4590
  value: string;
@@ -4210,7 +4595,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4210
4595
  }>, z.ZodObject<Omit<{
4211
4596
  id: z.ZodString;
4212
4597
  connectorId: z.ZodString;
4213
- type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
4598
+ type: z.ZodLiteral<VerificationType.Social>;
4214
4599
  socialUserInfo: z.ZodOptional<z.ZodObject<{
4215
4600
  id: z.ZodString;
4216
4601
  email: z.ZodOptional<z.ZodString>;
@@ -4291,7 +4676,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4291
4676
  state: z.ZodOptional<z.ZodString>;
4292
4677
  }, z.ZodUnknown, "strip">>>;
4293
4678
  }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
4294
- type: import("../index.js").VerificationType.Social;
4679
+ type: VerificationType.Social;
4295
4680
  id: string;
4296
4681
  connectorId: string;
4297
4682
  socialUserInfo?: {
@@ -4303,7 +4688,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4303
4688
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4304
4689
  } | undefined;
4305
4690
  }, {
4306
- type: import("../index.js").VerificationType.Social;
4691
+ type: VerificationType.Social;
4307
4692
  id: string;
4308
4693
  connectorId: string;
4309
4694
  socialUserInfo?: {
@@ -4315,7 +4700,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4315
4700
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4316
4701
  } | undefined;
4317
4702
  }>, z.ZodObject<{
4318
- type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
4703
+ type: z.ZodLiteral<VerificationType.EnterpriseSso>;
4319
4704
  id: z.ZodString;
4320
4705
  issuer: z.ZodOptional<z.ZodString>;
4321
4706
  connectorId: z.ZodString;
@@ -4343,7 +4728,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4343
4728
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4344
4729
  }>>;
4345
4730
  }, "strip", z.ZodTypeAny, {
4346
- type: import("../index.js").VerificationType.EnterpriseSso;
4731
+ type: VerificationType.EnterpriseSso;
4347
4732
  id: string;
4348
4733
  connectorId: string;
4349
4734
  issuer?: string | undefined;
@@ -4356,7 +4741,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4356
4741
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4357
4742
  } | undefined;
4358
4743
  }, {
4359
- type: import("../index.js").VerificationType.EnterpriseSso;
4744
+ type: VerificationType.EnterpriseSso;
4360
4745
  id: string;
4361
4746
  connectorId: string;
4362
4747
  issuer?: string | undefined;
@@ -4370,33 +4755,33 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4370
4755
  } | undefined;
4371
4756
  }>, z.ZodObject<Omit<{
4372
4757
  id: z.ZodString;
4373
- type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
4758
+ type: z.ZodLiteral<VerificationType.TOTP>;
4374
4759
  userId: z.ZodString;
4375
4760
  secret: z.ZodOptional<z.ZodString>;
4376
4761
  verified: z.ZodBoolean;
4377
4762
  }, "secret">, "strip", z.ZodTypeAny, {
4378
- type: import("../index.js").VerificationType.TOTP;
4763
+ type: VerificationType.TOTP;
4379
4764
  id: string;
4380
4765
  userId: string;
4381
4766
  verified: boolean;
4382
4767
  }, {
4383
- type: import("../index.js").VerificationType.TOTP;
4768
+ type: VerificationType.TOTP;
4384
4769
  id: string;
4385
4770
  userId: string;
4386
4771
  verified: boolean;
4387
4772
  }>, z.ZodObject<Omit<{
4388
4773
  id: z.ZodString;
4389
- type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
4774
+ type: z.ZodLiteral<VerificationType.BackupCode>;
4390
4775
  userId: z.ZodString;
4391
4776
  code: z.ZodOptional<z.ZodString>;
4392
4777
  backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4393
4778
  }, "backupCodes">, "strip", z.ZodTypeAny, {
4394
- type: import("../index.js").VerificationType.BackupCode;
4779
+ type: VerificationType.BackupCode;
4395
4780
  id: string;
4396
4781
  userId: string;
4397
4782
  code?: string | undefined;
4398
4783
  }, {
4399
- type: import("../index.js").VerificationType.BackupCode;
4784
+ type: VerificationType.BackupCode;
4400
4785
  id: string;
4401
4786
  userId: string;
4402
4787
  code?: string | undefined;
@@ -4435,16 +4820,16 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4435
4820
  name?: string | undefined;
4436
4821
  }>>;
4437
4822
  } & {
4438
- type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
4823
+ type: z.ZodLiteral<VerificationType.WebAuthn>;
4439
4824
  userId: z.ZodString;
4440
4825
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
4441
- type: import("../index.js").VerificationType.WebAuthn;
4826
+ type: VerificationType.WebAuthn;
4442
4827
  id: string;
4443
4828
  userId: string;
4444
4829
  verified: boolean;
4445
4830
  registrationRpId?: string | undefined;
4446
4831
  }, {
4447
- type: import("../index.js").VerificationType.WebAuthn;
4832
+ type: VerificationType.WebAuthn;
4448
4833
  id: string;
4449
4834
  userId: string;
4450
4835
  verified: boolean;
@@ -4484,24 +4869,24 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4484
4869
  name?: string | undefined;
4485
4870
  }>>;
4486
4871
  } & {
4487
- type: z.ZodLiteral<import("../index.js").VerificationType.SignInWebAuthn>;
4872
+ type: z.ZodLiteral<VerificationType.SignInPasskey>;
4488
4873
  userId: z.ZodOptional<z.ZodString>;
4489
4874
  authenticationRpId: z.ZodOptional<z.ZodString>;
4490
4875
  }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
4491
- type: import("../index.js").VerificationType.SignInWebAuthn;
4876
+ type: VerificationType.SignInPasskey;
4492
4877
  id: string;
4493
4878
  verified: boolean;
4494
4879
  userId?: string | undefined;
4495
4880
  registrationRpId?: string | undefined;
4496
4881
  }, {
4497
- type: import("../index.js").VerificationType.SignInWebAuthn;
4882
+ type: VerificationType.SignInPasskey;
4498
4883
  id: string;
4499
4884
  verified: boolean;
4500
4885
  userId?: string | undefined;
4501
4886
  registrationRpId?: string | undefined;
4502
4887
  }>, z.ZodObject<{
4503
4888
  id: z.ZodString;
4504
- type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
4889
+ type: z.ZodLiteral<VerificationType.OneTimeToken>;
4505
4890
  verified: z.ZodBoolean;
4506
4891
  identifier: z.ZodObject<{
4507
4892
  type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
@@ -4521,7 +4906,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4521
4906
  jitOrganizationIds?: string[] | undefined;
4522
4907
  }>>;
4523
4908
  }, "strip", z.ZodTypeAny, {
4524
- type: import("../index.js").VerificationType.OneTimeToken;
4909
+ type: VerificationType.OneTimeToken;
4525
4910
  id: string;
4526
4911
  identifier: {
4527
4912
  value: string;
@@ -4532,7 +4917,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4532
4917
  jitOrganizationIds?: string[] | undefined;
4533
4918
  } | undefined;
4534
4919
  }, {
4535
- type: import("../index.js").VerificationType.OneTimeToken;
4920
+ type: VerificationType.OneTimeToken;
4536
4921
  id: string;
4537
4922
  identifier: {
4538
4923
  value: string;
@@ -4544,7 +4929,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4544
4929
  } | undefined;
4545
4930
  }>, z.ZodObject<Omit<{
4546
4931
  id: z.ZodString;
4547
- type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
4932
+ type: z.ZodLiteral<VerificationType.NewPasswordIdentity>;
4548
4933
  identifier: z.ZodObject<{
4549
4934
  type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
4550
4935
  value: z.ZodString;
@@ -4558,14 +4943,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4558
4943
  passwordEncrypted: z.ZodOptional<z.ZodString>;
4559
4944
  passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
4560
4945
  }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
4561
- type: import("../index.js").VerificationType.NewPasswordIdentity;
4946
+ type: VerificationType.NewPasswordIdentity;
4562
4947
  id: string;
4563
4948
  identifier: {
4564
4949
  value: string;
4565
4950
  type: import("../../foundations/index.js").SignInIdentifier;
4566
4951
  };
4567
4952
  }, {
4568
- type: import("../index.js").VerificationType.NewPasswordIdentity;
4953
+ type: VerificationType.NewPasswordIdentity;
4569
4954
  id: string;
4570
4955
  identifier: {
4571
4956
  value: string;
@@ -4577,12 +4962,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4577
4962
  userId?: string | undefined;
4578
4963
  interactionEvent?: InteractionEvent | undefined;
4579
4964
  verificationRecords?: ({
4580
- type: import("../index.js").VerificationType.BackupCode;
4965
+ type: VerificationType.BackupCode;
4581
4966
  id: string;
4582
4967
  userId: string;
4583
4968
  code?: string | undefined;
4584
4969
  } | {
4585
- type: import("../index.js").VerificationType.EmailVerificationCode;
4970
+ type: VerificationType.EmailVerificationCode;
4971
+ id: string;
4972
+ identifier: {
4973
+ value: string;
4974
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4975
+ };
4976
+ templateType: import("@logto/connector-kit").TemplateType;
4977
+ verified: boolean;
4978
+ } | {
4979
+ type: VerificationType.PhoneVerificationCode;
4980
+ id: string;
4981
+ identifier: {
4982
+ value: string;
4983
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4984
+ };
4985
+ templateType: import("@logto/connector-kit").TemplateType;
4986
+ verified: boolean;
4987
+ } | {
4988
+ type: VerificationType.MfaEmailVerificationCode;
4586
4989
  id: string;
4587
4990
  identifier: {
4588
4991
  value: string;
@@ -4591,7 +4994,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4591
4994
  templateType: import("@logto/connector-kit").TemplateType;
4592
4995
  verified: boolean;
4593
4996
  } | {
4594
- type: import("../index.js").VerificationType.PhoneVerificationCode;
4997
+ type: VerificationType.MfaPhoneVerificationCode;
4595
4998
  id: string;
4596
4999
  identifier: {
4597
5000
  value: string;
@@ -4600,14 +5003,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4600
5003
  templateType: import("@logto/connector-kit").TemplateType;
4601
5004
  verified: boolean;
4602
5005
  } | {
4603
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5006
+ type: VerificationType.NewPasswordIdentity;
4604
5007
  id: string;
4605
5008
  identifier: {
4606
5009
  value: string;
4607
5010
  type: import("../../foundations/index.js").SignInIdentifier;
4608
5011
  };
4609
5012
  } | {
4610
- type: import("../index.js").VerificationType.OneTimeToken;
5013
+ type: VerificationType.OneTimeToken;
4611
5014
  id: string;
4612
5015
  identifier: {
4613
5016
  value: string;
@@ -4618,7 +5021,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4618
5021
  jitOrganizationIds?: string[] | undefined;
4619
5022
  } | undefined;
4620
5023
  } | {
4621
- type: import("../index.js").VerificationType.Password;
5024
+ type: VerificationType.Password;
4622
5025
  id: string;
4623
5026
  identifier: {
4624
5027
  value: string;
@@ -4626,7 +5029,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4626
5029
  };
4627
5030
  verified: boolean;
4628
5031
  } | {
4629
- type: import("../index.js").VerificationType.Social;
5032
+ type: VerificationType.Social;
4630
5033
  id: string;
4631
5034
  connectorId: string;
4632
5035
  socialUserInfo?: {
@@ -4638,12 +5041,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4638
5041
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4639
5042
  } | undefined;
4640
5043
  } | {
4641
- type: import("../index.js").VerificationType.TOTP;
5044
+ type: VerificationType.TOTP;
4642
5045
  id: string;
4643
5046
  userId: string;
4644
5047
  verified: boolean;
4645
5048
  } | {
4646
- type: import("../index.js").VerificationType.EnterpriseSso;
5049
+ type: VerificationType.EnterpriseSso;
4647
5050
  id: string;
4648
5051
  connectorId: string;
4649
5052
  issuer?: string | undefined;
@@ -4656,13 +5059,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4656
5059
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4657
5060
  } | undefined;
4658
5061
  } | {
4659
- type: import("../index.js").VerificationType.WebAuthn;
5062
+ type: VerificationType.WebAuthn;
4660
5063
  id: string;
4661
5064
  userId: string;
4662
5065
  verified: boolean;
4663
5066
  registrationRpId?: string | undefined;
4664
5067
  } | {
4665
- type: import("../index.js").VerificationType.SignInWebAuthn;
5068
+ type: VerificationType.SignInPasskey;
4666
5069
  id: string;
4667
5070
  verified: boolean;
4668
5071
  userId?: string | undefined;
@@ -4673,12 +5076,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4673
5076
  userId?: string | undefined;
4674
5077
  interactionEvent?: InteractionEvent | undefined;
4675
5078
  verificationRecords?: ({
4676
- type: import("../index.js").VerificationType.BackupCode;
5079
+ type: VerificationType.BackupCode;
4677
5080
  id: string;
4678
5081
  userId: string;
4679
5082
  code?: string | undefined;
4680
5083
  } | {
4681
- type: import("../index.js").VerificationType.EmailVerificationCode;
5084
+ type: VerificationType.EmailVerificationCode;
4682
5085
  id: string;
4683
5086
  identifier: {
4684
5087
  value: string;
@@ -4687,7 +5090,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4687
5090
  templateType: import("@logto/connector-kit").TemplateType;
4688
5091
  verified: boolean;
4689
5092
  } | {
4690
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5093
+ type: VerificationType.PhoneVerificationCode;
4691
5094
  id: string;
4692
5095
  identifier: {
4693
5096
  value: string;
@@ -4696,14 +5099,32 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4696
5099
  templateType: import("@logto/connector-kit").TemplateType;
4697
5100
  verified: boolean;
4698
5101
  } | {
4699
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5102
+ type: VerificationType.MfaEmailVerificationCode;
5103
+ id: string;
5104
+ identifier: {
5105
+ value: string;
5106
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5107
+ };
5108
+ templateType: import("@logto/connector-kit").TemplateType;
5109
+ verified: boolean;
5110
+ } | {
5111
+ type: VerificationType.MfaPhoneVerificationCode;
5112
+ id: string;
5113
+ identifier: {
5114
+ value: string;
5115
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5116
+ };
5117
+ templateType: import("@logto/connector-kit").TemplateType;
5118
+ verified: boolean;
5119
+ } | {
5120
+ type: VerificationType.NewPasswordIdentity;
4700
5121
  id: string;
4701
5122
  identifier: {
4702
5123
  value: string;
4703
5124
  type: import("../../foundations/index.js").SignInIdentifier;
4704
5125
  };
4705
5126
  } | {
4706
- type: import("../index.js").VerificationType.OneTimeToken;
5127
+ type: VerificationType.OneTimeToken;
4707
5128
  id: string;
4708
5129
  identifier: {
4709
5130
  value: string;
@@ -4714,7 +5135,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4714
5135
  jitOrganizationIds?: string[] | undefined;
4715
5136
  } | undefined;
4716
5137
  } | {
4717
- type: import("../index.js").VerificationType.Password;
5138
+ type: VerificationType.Password;
4718
5139
  id: string;
4719
5140
  identifier: {
4720
5141
  value: string;
@@ -4722,7 +5143,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4722
5143
  };
4723
5144
  verified: boolean;
4724
5145
  } | {
4725
- type: import("../index.js").VerificationType.Social;
5146
+ type: VerificationType.Social;
4726
5147
  id: string;
4727
5148
  connectorId: string;
4728
5149
  socialUserInfo?: {
@@ -4734,12 +5155,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4734
5155
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4735
5156
  } | undefined;
4736
5157
  } | {
4737
- type: import("../index.js").VerificationType.TOTP;
5158
+ type: VerificationType.TOTP;
4738
5159
  id: string;
4739
5160
  userId: string;
4740
5161
  verified: boolean;
4741
5162
  } | {
4742
- type: import("../index.js").VerificationType.EnterpriseSso;
5163
+ type: VerificationType.EnterpriseSso;
4743
5164
  id: string;
4744
5165
  connectorId: string;
4745
5166
  issuer?: string | undefined;
@@ -4752,13 +5173,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4752
5173
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4753
5174
  } | undefined;
4754
5175
  } | {
4755
- type: import("../index.js").VerificationType.WebAuthn;
5176
+ type: VerificationType.WebAuthn;
4756
5177
  id: string;
4757
5178
  userId: string;
4758
5179
  verified: boolean;
4759
5180
  registrationRpId?: string | undefined;
4760
5181
  } | {
4761
- type: import("../index.js").VerificationType.SignInWebAuthn;
5182
+ type: VerificationType.SignInPasskey;
4762
5183
  id: string;
4763
5184
  verified: boolean;
4764
5185
  userId?: string | undefined;
@@ -4784,6 +5205,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4784
5205
  alwaysIssueRefreshToken?: boolean | undefined;
4785
5206
  rotateRefreshToken?: boolean | undefined;
4786
5207
  allowTokenExchange?: boolean | undefined;
5208
+ isDeviceFlow?: boolean | undefined;
5209
+ maxAllowedGrants?: number | undefined;
4787
5210
  }, z.ZodTypeDef, {
4788
5211
  corsAllowedOrigins?: string[] | undefined;
4789
5212
  idTokenTtl?: number | undefined;
@@ -4793,6 +5216,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4793
5216
  alwaysIssueRefreshToken?: boolean | undefined;
4794
5217
  rotateRefreshToken?: boolean | undefined;
4795
5218
  allowTokenExchange?: boolean | undefined;
5219
+ isDeviceFlow?: boolean | undefined;
5220
+ maxAllowedGrants?: number | undefined;
4796
5221
  }>>;
4797
5222
  protectedAppMetadata: z.ZodOptional<ZodType<{
4798
5223
  host: string;
@@ -4870,6 +5295,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4870
5295
  alwaysIssueRefreshToken?: boolean | undefined;
4871
5296
  rotateRefreshToken?: boolean | undefined;
4872
5297
  allowTokenExchange?: boolean | undefined;
5298
+ isDeviceFlow?: boolean | undefined;
5299
+ maxAllowedGrants?: number | undefined;
4873
5300
  } | undefined;
4874
5301
  protectedAppMetadata?: {
4875
5302
  host: string;
@@ -4919,6 +5346,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4919
5346
  alwaysIssueRefreshToken?: boolean | undefined;
4920
5347
  rotateRefreshToken?: boolean | undefined;
4921
5348
  allowTokenExchange?: boolean | undefined;
5349
+ isDeviceFlow?: boolean | undefined;
5350
+ maxAllowedGrants?: number | undefined;
4922
5351
  } | undefined;
4923
5352
  protectedAppMetadata?: {
4924
5353
  host: string;
@@ -5038,6 +5467,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5038
5467
  alwaysIssueRefreshToken?: boolean | undefined;
5039
5468
  rotateRefreshToken?: boolean | undefined;
5040
5469
  allowTokenExchange?: boolean | undefined;
5470
+ isDeviceFlow?: boolean | undefined;
5471
+ maxAllowedGrants?: number | undefined;
5041
5472
  } | undefined;
5042
5473
  protectedAppMetadata?: {
5043
5474
  host: string;
@@ -5078,12 +5509,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5078
5509
  userId?: string | undefined;
5079
5510
  interactionEvent?: InteractionEvent | undefined;
5080
5511
  verificationRecords?: ({
5081
- type: import("../index.js").VerificationType.BackupCode;
5512
+ type: VerificationType.BackupCode;
5082
5513
  id: string;
5083
5514
  userId: string;
5084
5515
  code?: string | undefined;
5085
5516
  } | {
5086
- type: import("../index.js").VerificationType.EmailVerificationCode;
5517
+ type: VerificationType.EmailVerificationCode;
5518
+ id: string;
5519
+ identifier: {
5520
+ value: string;
5521
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5522
+ };
5523
+ templateType: import("@logto/connector-kit").TemplateType;
5524
+ verified: boolean;
5525
+ } | {
5526
+ type: VerificationType.PhoneVerificationCode;
5527
+ id: string;
5528
+ identifier: {
5529
+ value: string;
5530
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5531
+ };
5532
+ templateType: import("@logto/connector-kit").TemplateType;
5533
+ verified: boolean;
5534
+ } | {
5535
+ type: VerificationType.MfaEmailVerificationCode;
5087
5536
  id: string;
5088
5537
  identifier: {
5089
5538
  value: string;
@@ -5092,7 +5541,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5092
5541
  templateType: import("@logto/connector-kit").TemplateType;
5093
5542
  verified: boolean;
5094
5543
  } | {
5095
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5544
+ type: VerificationType.MfaPhoneVerificationCode;
5096
5545
  id: string;
5097
5546
  identifier: {
5098
5547
  value: string;
@@ -5101,14 +5550,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5101
5550
  templateType: import("@logto/connector-kit").TemplateType;
5102
5551
  verified: boolean;
5103
5552
  } | {
5104
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5553
+ type: VerificationType.NewPasswordIdentity;
5105
5554
  id: string;
5106
5555
  identifier: {
5107
5556
  value: string;
5108
5557
  type: import("../../foundations/index.js").SignInIdentifier;
5109
5558
  };
5110
5559
  } | {
5111
- type: import("../index.js").VerificationType.OneTimeToken;
5560
+ type: VerificationType.OneTimeToken;
5112
5561
  id: string;
5113
5562
  identifier: {
5114
5563
  value: string;
@@ -5119,7 +5568,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5119
5568
  jitOrganizationIds?: string[] | undefined;
5120
5569
  } | undefined;
5121
5570
  } | {
5122
- type: import("../index.js").VerificationType.Password;
5571
+ type: VerificationType.Password;
5123
5572
  id: string;
5124
5573
  identifier: {
5125
5574
  value: string;
@@ -5127,7 +5576,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5127
5576
  };
5128
5577
  verified: boolean;
5129
5578
  } | {
5130
- type: import("../index.js").VerificationType.Social;
5579
+ type: VerificationType.Social;
5131
5580
  id: string;
5132
5581
  connectorId: string;
5133
5582
  socialUserInfo?: {
@@ -5139,12 +5588,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5139
5588
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5140
5589
  } | undefined;
5141
5590
  } | {
5142
- type: import("../index.js").VerificationType.TOTP;
5591
+ type: VerificationType.TOTP;
5143
5592
  id: string;
5144
5593
  userId: string;
5145
5594
  verified: boolean;
5146
5595
  } | {
5147
- type: import("../index.js").VerificationType.EnterpriseSso;
5596
+ type: VerificationType.EnterpriseSso;
5148
5597
  id: string;
5149
5598
  connectorId: string;
5150
5599
  issuer?: string | undefined;
@@ -5157,13 +5606,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5157
5606
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5158
5607
  } | undefined;
5159
5608
  } | {
5160
- type: import("../index.js").VerificationType.WebAuthn;
5609
+ type: VerificationType.WebAuthn;
5161
5610
  id: string;
5162
5611
  userId: string;
5163
5612
  verified: boolean;
5164
5613
  registrationRpId?: string | undefined;
5165
5614
  } | {
5166
- type: import("../index.js").VerificationType.SignInWebAuthn;
5615
+ type: VerificationType.SignInPasskey;
5167
5616
  id: string;
5168
5617
  verified: boolean;
5169
5618
  userId?: string | undefined;
@@ -5258,6 +5707,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5258
5707
  alwaysIssueRefreshToken?: boolean | undefined;
5259
5708
  rotateRefreshToken?: boolean | undefined;
5260
5709
  allowTokenExchange?: boolean | undefined;
5710
+ isDeviceFlow?: boolean | undefined;
5711
+ maxAllowedGrants?: number | undefined;
5261
5712
  } | undefined;
5262
5713
  protectedAppMetadata?: {
5263
5714
  host: string;
@@ -5298,12 +5749,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5298
5749
  userId?: string | undefined;
5299
5750
  interactionEvent?: InteractionEvent | undefined;
5300
5751
  verificationRecords?: ({
5301
- type: import("../index.js").VerificationType.BackupCode;
5752
+ type: VerificationType.BackupCode;
5302
5753
  id: string;
5303
5754
  userId: string;
5304
5755
  code?: string | undefined;
5305
5756
  } | {
5306
- type: import("../index.js").VerificationType.EmailVerificationCode;
5757
+ type: VerificationType.EmailVerificationCode;
5758
+ id: string;
5759
+ identifier: {
5760
+ value: string;
5761
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
5762
+ };
5763
+ templateType: import("@logto/connector-kit").TemplateType;
5764
+ verified: boolean;
5765
+ } | {
5766
+ type: VerificationType.PhoneVerificationCode;
5767
+ id: string;
5768
+ identifier: {
5769
+ value: string;
5770
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
5771
+ };
5772
+ templateType: import("@logto/connector-kit").TemplateType;
5773
+ verified: boolean;
5774
+ } | {
5775
+ type: VerificationType.MfaEmailVerificationCode;
5307
5776
  id: string;
5308
5777
  identifier: {
5309
5778
  value: string;
@@ -5312,7 +5781,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5312
5781
  templateType: import("@logto/connector-kit").TemplateType;
5313
5782
  verified: boolean;
5314
5783
  } | {
5315
- type: import("../index.js").VerificationType.PhoneVerificationCode;
5784
+ type: VerificationType.MfaPhoneVerificationCode;
5316
5785
  id: string;
5317
5786
  identifier: {
5318
5787
  value: string;
@@ -5321,14 +5790,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5321
5790
  templateType: import("@logto/connector-kit").TemplateType;
5322
5791
  verified: boolean;
5323
5792
  } | {
5324
- type: import("../index.js").VerificationType.NewPasswordIdentity;
5793
+ type: VerificationType.NewPasswordIdentity;
5325
5794
  id: string;
5326
5795
  identifier: {
5327
5796
  value: string;
5328
5797
  type: import("../../foundations/index.js").SignInIdentifier;
5329
5798
  };
5330
5799
  } | {
5331
- type: import("../index.js").VerificationType.OneTimeToken;
5800
+ type: VerificationType.OneTimeToken;
5332
5801
  id: string;
5333
5802
  identifier: {
5334
5803
  value: string;
@@ -5339,7 +5808,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5339
5808
  jitOrganizationIds?: string[] | undefined;
5340
5809
  } | undefined;
5341
5810
  } | {
5342
- type: import("../index.js").VerificationType.Password;
5811
+ type: VerificationType.Password;
5343
5812
  id: string;
5344
5813
  identifier: {
5345
5814
  value: string;
@@ -5347,7 +5816,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5347
5816
  };
5348
5817
  verified: boolean;
5349
5818
  } | {
5350
- type: import("../index.js").VerificationType.Social;
5819
+ type: VerificationType.Social;
5351
5820
  id: string;
5352
5821
  connectorId: string;
5353
5822
  socialUserInfo?: {
@@ -5359,12 +5828,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5359
5828
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5360
5829
  } | undefined;
5361
5830
  } | {
5362
- type: import("../index.js").VerificationType.TOTP;
5831
+ type: VerificationType.TOTP;
5363
5832
  id: string;
5364
5833
  userId: string;
5365
5834
  verified: boolean;
5366
5835
  } | {
5367
- type: import("../index.js").VerificationType.EnterpriseSso;
5836
+ type: VerificationType.EnterpriseSso;
5368
5837
  id: string;
5369
5838
  connectorId: string;
5370
5839
  issuer?: string | undefined;
@@ -5377,13 +5846,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5377
5846
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5378
5847
  } | undefined;
5379
5848
  } | {
5380
- type: import("../index.js").VerificationType.WebAuthn;
5849
+ type: VerificationType.WebAuthn;
5381
5850
  id: string;
5382
5851
  userId: string;
5383
5852
  verified: boolean;
5384
5853
  registrationRpId?: string | undefined;
5385
5854
  } | {
5386
- type: import("../index.js").VerificationType.SignInWebAuthn;
5855
+ type: VerificationType.SignInPasskey;
5387
5856
  id: string;
5388
5857
  verified: boolean;
5389
5858
  userId?: string | undefined;
@@ -5496,6 +5965,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5496
5965
  alwaysIssueRefreshToken?: boolean | undefined;
5497
5966
  rotateRefreshToken?: boolean | undefined;
5498
5967
  allowTokenExchange?: boolean | undefined;
5968
+ isDeviceFlow?: boolean | undefined;
5969
+ maxAllowedGrants?: number | undefined;
5499
5970
  } | undefined;
5500
5971
  protectedAppMetadata?: {
5501
5972
  host: string;
@@ -5536,12 +6007,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5536
6007
  userId?: string | undefined;
5537
6008
  interactionEvent?: InteractionEvent | undefined;
5538
6009
  verificationRecords?: ({
5539
- type: import("../index.js").VerificationType.BackupCode;
6010
+ type: VerificationType.BackupCode;
5540
6011
  id: string;
5541
6012
  userId: string;
5542
6013
  code?: string | undefined;
5543
6014
  } | {
5544
- type: import("../index.js").VerificationType.EmailVerificationCode;
6015
+ type: VerificationType.EmailVerificationCode;
5545
6016
  id: string;
5546
6017
  identifier: {
5547
6018
  value: string;
@@ -5550,7 +6021,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5550
6021
  templateType: import("@logto/connector-kit").TemplateType;
5551
6022
  verified: boolean;
5552
6023
  } | {
5553
- type: import("../index.js").VerificationType.PhoneVerificationCode;
6024
+ type: VerificationType.PhoneVerificationCode;
5554
6025
  id: string;
5555
6026
  identifier: {
5556
6027
  value: string;
@@ -5559,14 +6030,32 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5559
6030
  templateType: import("@logto/connector-kit").TemplateType;
5560
6031
  verified: boolean;
5561
6032
  } | {
5562
- type: import("../index.js").VerificationType.NewPasswordIdentity;
6033
+ type: VerificationType.MfaEmailVerificationCode;
6034
+ id: string;
6035
+ identifier: {
6036
+ value: string;
6037
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
6038
+ };
6039
+ templateType: import("@logto/connector-kit").TemplateType;
6040
+ verified: boolean;
6041
+ } | {
6042
+ type: VerificationType.MfaPhoneVerificationCode;
6043
+ id: string;
6044
+ identifier: {
6045
+ value: string;
6046
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
6047
+ };
6048
+ templateType: import("@logto/connector-kit").TemplateType;
6049
+ verified: boolean;
6050
+ } | {
6051
+ type: VerificationType.NewPasswordIdentity;
5563
6052
  id: string;
5564
6053
  identifier: {
5565
6054
  value: string;
5566
6055
  type: import("../../foundations/index.js").SignInIdentifier;
5567
6056
  };
5568
6057
  } | {
5569
- type: import("../index.js").VerificationType.OneTimeToken;
6058
+ type: VerificationType.OneTimeToken;
5570
6059
  id: string;
5571
6060
  identifier: {
5572
6061
  value: string;
@@ -5577,7 +6066,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5577
6066
  jitOrganizationIds?: string[] | undefined;
5578
6067
  } | undefined;
5579
6068
  } | {
5580
- type: import("../index.js").VerificationType.Password;
6069
+ type: VerificationType.Password;
5581
6070
  id: string;
5582
6071
  identifier: {
5583
6072
  value: string;
@@ -5585,7 +6074,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5585
6074
  };
5586
6075
  verified: boolean;
5587
6076
  } | {
5588
- type: import("../index.js").VerificationType.Social;
6077
+ type: VerificationType.Social;
5589
6078
  id: string;
5590
6079
  connectorId: string;
5591
6080
  socialUserInfo?: {
@@ -5597,12 +6086,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5597
6086
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5598
6087
  } | undefined;
5599
6088
  } | {
5600
- type: import("../index.js").VerificationType.TOTP;
6089
+ type: VerificationType.TOTP;
5601
6090
  id: string;
5602
6091
  userId: string;
5603
6092
  verified: boolean;
5604
6093
  } | {
5605
- type: import("../index.js").VerificationType.EnterpriseSso;
6094
+ type: VerificationType.EnterpriseSso;
5606
6095
  id: string;
5607
6096
  connectorId: string;
5608
6097
  issuer?: string | undefined;
@@ -5615,13 +6104,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5615
6104
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5616
6105
  } | undefined;
5617
6106
  } | {
5618
- type: import("../index.js").VerificationType.WebAuthn;
6107
+ type: VerificationType.WebAuthn;
5619
6108
  id: string;
5620
6109
  userId: string;
5621
6110
  verified: boolean;
5622
6111
  registrationRpId?: string | undefined;
5623
6112
  } | {
5624
- type: import("../index.js").VerificationType.SignInWebAuthn;
6113
+ type: VerificationType.SignInPasskey;
5625
6114
  id: string;
5626
6115
  verified: boolean;
5627
6116
  userId?: string | undefined;
@@ -5734,6 +6223,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5734
6223
  alwaysIssueRefreshToken?: boolean | undefined;
5735
6224
  rotateRefreshToken?: boolean | undefined;
5736
6225
  allowTokenExchange?: boolean | undefined;
6226
+ isDeviceFlow?: boolean | undefined;
6227
+ maxAllowedGrants?: number | undefined;
5737
6228
  } | undefined;
5738
6229
  protectedAppMetadata?: {
5739
6230
  host: string;
@@ -5774,12 +6265,30 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5774
6265
  userId?: string | undefined;
5775
6266
  interactionEvent?: InteractionEvent | undefined;
5776
6267
  verificationRecords?: ({
5777
- type: import("../index.js").VerificationType.BackupCode;
6268
+ type: VerificationType.BackupCode;
5778
6269
  id: string;
5779
6270
  userId: string;
5780
6271
  code?: string | undefined;
5781
6272
  } | {
5782
- type: import("../index.js").VerificationType.EmailVerificationCode;
6273
+ type: VerificationType.EmailVerificationCode;
6274
+ id: string;
6275
+ identifier: {
6276
+ value: string;
6277
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
6278
+ };
6279
+ templateType: import("@logto/connector-kit").TemplateType;
6280
+ verified: boolean;
6281
+ } | {
6282
+ type: VerificationType.PhoneVerificationCode;
6283
+ id: string;
6284
+ identifier: {
6285
+ value: string;
6286
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
6287
+ };
6288
+ templateType: import("@logto/connector-kit").TemplateType;
6289
+ verified: boolean;
6290
+ } | {
6291
+ type: VerificationType.MfaEmailVerificationCode;
5783
6292
  id: string;
5784
6293
  identifier: {
5785
6294
  value: string;
@@ -5788,7 +6297,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5788
6297
  templateType: import("@logto/connector-kit").TemplateType;
5789
6298
  verified: boolean;
5790
6299
  } | {
5791
- type: import("../index.js").VerificationType.PhoneVerificationCode;
6300
+ type: VerificationType.MfaPhoneVerificationCode;
5792
6301
  id: string;
5793
6302
  identifier: {
5794
6303
  value: string;
@@ -5797,14 +6306,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5797
6306
  templateType: import("@logto/connector-kit").TemplateType;
5798
6307
  verified: boolean;
5799
6308
  } | {
5800
- type: import("../index.js").VerificationType.NewPasswordIdentity;
6309
+ type: VerificationType.NewPasswordIdentity;
5801
6310
  id: string;
5802
6311
  identifier: {
5803
6312
  value: string;
5804
6313
  type: import("../../foundations/index.js").SignInIdentifier;
5805
6314
  };
5806
6315
  } | {
5807
- type: import("../index.js").VerificationType.OneTimeToken;
6316
+ type: VerificationType.OneTimeToken;
5808
6317
  id: string;
5809
6318
  identifier: {
5810
6319
  value: string;
@@ -5815,7 +6324,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5815
6324
  jitOrganizationIds?: string[] | undefined;
5816
6325
  } | undefined;
5817
6326
  } | {
5818
- type: import("../index.js").VerificationType.Password;
6327
+ type: VerificationType.Password;
5819
6328
  id: string;
5820
6329
  identifier: {
5821
6330
  value: string;
@@ -5823,7 +6332,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5823
6332
  };
5824
6333
  verified: boolean;
5825
6334
  } | {
5826
- type: import("../index.js").VerificationType.Social;
6335
+ type: VerificationType.Social;
5827
6336
  id: string;
5828
6337
  connectorId: string;
5829
6338
  socialUserInfo?: {
@@ -5835,12 +6344,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5835
6344
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5836
6345
  } | undefined;
5837
6346
  } | {
5838
- type: import("../index.js").VerificationType.TOTP;
6347
+ type: VerificationType.TOTP;
5839
6348
  id: string;
5840
6349
  userId: string;
5841
6350
  verified: boolean;
5842
6351
  } | {
5843
- type: import("../index.js").VerificationType.EnterpriseSso;
6352
+ type: VerificationType.EnterpriseSso;
5844
6353
  id: string;
5845
6354
  connectorId: string;
5846
6355
  issuer?: string | undefined;
@@ -5853,13 +6362,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5853
6362
  rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
5854
6363
  } | undefined;
5855
6364
  } | {
5856
- type: import("../index.js").VerificationType.WebAuthn;
6365
+ type: VerificationType.WebAuthn;
5857
6366
  id: string;
5858
6367
  userId: string;
5859
6368
  verified: boolean;
5860
6369
  registrationRpId?: string | undefined;
5861
6370
  } | {
5862
- type: import("../index.js").VerificationType.SignInWebAuthn;
6371
+ type: VerificationType.SignInPasskey;
5863
6372
  id: string;
5864
6373
  verified: boolean;
5865
6374
  userId?: string | undefined;
@@ -5910,6 +6419,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5910
6419
  alwaysIssueRefreshToken?: boolean | undefined;
5911
6420
  rotateRefreshToken?: boolean | undefined;
5912
6421
  allowTokenExchange?: boolean | undefined;
6422
+ isDeviceFlow?: boolean | undefined;
6423
+ maxAllowedGrants?: number | undefined;
5913
6424
  }, z.ZodTypeDef, {
5914
6425
  corsAllowedOrigins?: string[] | undefined;
5915
6426
  idTokenTtl?: number | undefined;
@@ -5919,6 +6430,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5919
6430
  alwaysIssueRefreshToken?: boolean | undefined;
5920
6431
  rotateRefreshToken?: boolean | undefined;
5921
6432
  allowTokenExchange?: boolean | undefined;
6433
+ isDeviceFlow?: boolean | undefined;
6434
+ maxAllowedGrants?: number | undefined;
5922
6435
  }>>;
5923
6436
  protectedAppMetadata: z.ZodOptional<ZodType<{
5924
6437
  host: string;
@@ -5996,6 +6509,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5996
6509
  alwaysIssueRefreshToken?: boolean | undefined;
5997
6510
  rotateRefreshToken?: boolean | undefined;
5998
6511
  allowTokenExchange?: boolean | undefined;
6512
+ isDeviceFlow?: boolean | undefined;
6513
+ maxAllowedGrants?: number | undefined;
5999
6514
  } | undefined;
6000
6515
  protectedAppMetadata?: {
6001
6516
  host: string;
@@ -6045,6 +6560,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6045
6560
  alwaysIssueRefreshToken?: boolean | undefined;
6046
6561
  rotateRefreshToken?: boolean | undefined;
6047
6562
  allowTokenExchange?: boolean | undefined;
6563
+ isDeviceFlow?: boolean | undefined;
6564
+ maxAllowedGrants?: number | undefined;
6048
6565
  } | undefined;
6049
6566
  protectedAppMetadata?: {
6050
6567
  host: string;
@@ -6096,6 +6613,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6096
6613
  alwaysIssueRefreshToken?: boolean | undefined;
6097
6614
  rotateRefreshToken?: boolean | undefined;
6098
6615
  allowTokenExchange?: boolean | undefined;
6616
+ isDeviceFlow?: boolean | undefined;
6617
+ maxAllowedGrants?: number | undefined;
6099
6618
  } | undefined;
6100
6619
  protectedAppMetadata?: {
6101
6620
  host: string;
@@ -6147,6 +6666,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6147
6666
  alwaysIssueRefreshToken?: boolean | undefined;
6148
6667
  rotateRefreshToken?: boolean | undefined;
6149
6668
  allowTokenExchange?: boolean | undefined;
6669
+ isDeviceFlow?: boolean | undefined;
6670
+ maxAllowedGrants?: number | undefined;
6150
6671
  } | undefined;
6151
6672
  protectedAppMetadata?: {
6152
6673
  host: string;
@@ -6210,6 +6731,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6210
6731
  alwaysIssueRefreshToken?: boolean | undefined;
6211
6732
  rotateRefreshToken?: boolean | undefined;
6212
6733
  allowTokenExchange?: boolean | undefined;
6734
+ isDeviceFlow?: boolean | undefined;
6735
+ maxAllowedGrants?: number | undefined;
6213
6736
  } | undefined;
6214
6737
  protectedAppMetadata?: {
6215
6738
  host: string;
@@ -6273,6 +6796,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6273
6796
  alwaysIssueRefreshToken?: boolean | undefined;
6274
6797
  rotateRefreshToken?: boolean | undefined;
6275
6798
  allowTokenExchange?: boolean | undefined;
6799
+ isDeviceFlow?: boolean | undefined;
6800
+ maxAllowedGrants?: number | undefined;
6276
6801
  } | undefined;
6277
6802
  protectedAppMetadata?: {
6278
6803
  host: string;