@logto/schemas 1.28.0 → 1.30.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 (129) hide show
  1. package/alterations/1.29.0-1748832174-add-webauthn-related-origins.ts +20 -0
  2. package/alterations/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.ts +31 -0
  3. package/alterations/1.29.0-1749026308-add-oidc-session-extension-table.ts +41 -0
  4. package/alterations/1.29.0-1749523818-add-custom-profile-fields.ts +58 -0
  5. package/alterations/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.ts +20 -0
  6. package/alterations/1.29.0-1750663091-change-user-password-encrypted-length.ts +18 -0
  7. package/alterations/1.29.0-1750744518-add-secrets-table.ts +50 -0
  8. package/alterations/1.29.0-1750744539-add-secret-connector-relations-table.ts +109 -0
  9. package/alterations/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.ts +81 -0
  10. package/alterations/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.ts +20 -0
  11. package/alterations/1.30.0-1751255436-split-secret-connector-relatioins-table.ts +359 -0
  12. package/alterations/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.ts +20 -0
  13. package/alterations/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.ts +21 -0
  14. package/alterations/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.ts +20 -0
  15. package/alterations/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.ts +20 -0
  16. package/alterations/1.30.0-1753669579-add-organization-user-relations-foreign-key.ts +46 -0
  17. package/alterations-js/1.29.0-1748832174-add-webauthn-related-origins.js +16 -0
  18. package/alterations-js/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.js +25 -0
  19. package/alterations-js/1.29.0-1749026308-add-oidc-session-extension-table.js +33 -0
  20. package/alterations-js/1.29.0-1749523818-add-custom-profile-fields.js +52 -0
  21. package/alterations-js/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.js +16 -0
  22. package/alterations-js/1.29.0-1750663091-change-user-password-encrypted-length.js +14 -0
  23. package/alterations-js/1.29.0-1750744518-add-secrets-table.js +42 -0
  24. package/alterations-js/1.29.0-1750744539-add-secret-connector-relations-table.js +99 -0
  25. package/alterations-js/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.js +76 -0
  26. package/alterations-js/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.js +16 -0
  27. package/alterations-js/1.30.0-1751255436-split-secret-connector-relatioins-table.js +338 -0
  28. package/alterations-js/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.js +16 -0
  29. package/alterations-js/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.js +17 -0
  30. package/alterations-js/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.js +16 -0
  31. package/alterations-js/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.js +16 -0
  32. package/alterations-js/1.30.0-1753669579-add-organization-user-relations-foreign-key.js +38 -0
  33. package/lib/consts/oidc.d.ts +9 -1
  34. package/lib/consts/oidc.js +5 -0
  35. package/lib/db-entries/account-center.d.ts +4 -2
  36. package/lib/db-entries/account-center.js +5 -1
  37. package/lib/db-entries/connector.d.ts +5 -1
  38. package/lib/db-entries/connector.js +4 -0
  39. package/lib/db-entries/custom-profile-field.d.ts +32 -0
  40. package/lib/db-entries/custom-profile-field.js +58 -0
  41. package/lib/db-entries/index.d.ts +5 -0
  42. package/lib/db-entries/index.js +5 -0
  43. package/lib/db-entries/oidc-session-extension.d.ts +24 -0
  44. package/lib/db-entries/oidc-session-extension.js +42 -0
  45. package/lib/db-entries/secret-enterprise-sso-connector-relation.d.ts +28 -0
  46. package/lib/db-entries/secret-enterprise-sso-connector-relation.js +37 -0
  47. package/lib/db-entries/secret-social-connector-relation.d.ts +28 -0
  48. package/lib/db-entries/secret-social-connector-relation.js +37 -0
  49. package/lib/db-entries/secret.d.ts +44 -0
  50. package/lib/db-entries/secret.js +62 -0
  51. package/lib/db-entries/sso-connector.d.ts +5 -1
  52. package/lib/db-entries/sso-connector.js +4 -0
  53. package/lib/db-entries/user-sso-identity.d.ts +5 -1
  54. package/lib/db-entries/user-sso-identity.js +4 -0
  55. package/lib/db-entries/user.js +2 -2
  56. package/lib/foundations/jsonb-types/account-centers.d.ts +5 -0
  57. package/lib/foundations/jsonb-types/account-centers.js +2 -0
  58. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +441 -0
  59. package/lib/foundations/jsonb-types/custom-profile-fields.js +44 -0
  60. package/lib/foundations/jsonb-types/index.d.ts +2 -1
  61. package/lib/foundations/jsonb-types/index.js +2 -1
  62. package/lib/foundations/jsonb-types/secrets.d.ts +11 -0
  63. package/lib/foundations/jsonb-types/secrets.js +15 -0
  64. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +3 -1
  65. package/lib/foundations/jsonb-types/sign-in-experience.js +2 -0
  66. package/lib/foundations/jsonb-types/users.d.ts +126 -0
  67. package/lib/foundations/jsonb-types/users.js +22 -10
  68. package/lib/types/connector.d.ts +39 -0
  69. package/lib/types/connector.js +1 -0
  70. package/lib/types/consent.d.ts +44 -0
  71. package/lib/types/custom-profile-fields.d.ts +2587 -0
  72. package/lib/types/custom-profile-fields.js +159 -0
  73. package/lib/types/index.d.ts +4 -0
  74. package/lib/types/index.js +4 -0
  75. package/lib/types/interactions.d.ts +181 -1
  76. package/lib/types/interactions.js +49 -1
  77. package/lib/types/log/interaction.d.ts +2 -1
  78. package/lib/types/logto-config/index.d.ts +1139 -18
  79. package/lib/types/logto-config/jwt-customizer.d.ts +2529 -32
  80. package/lib/types/logto-config/jwt-customizer.js +55 -1
  81. package/lib/types/logto-config/oidc-provider.d.ts +6 -6
  82. package/lib/types/mfa.d.ts +10 -10
  83. package/lib/types/secrets.d.ts +436 -0
  84. package/lib/types/secrets.js +73 -0
  85. package/lib/types/sign-in-experience.d.ts +21 -3
  86. package/lib/types/sign-in-experience.js +3 -1
  87. package/lib/types/sso-connector.d.ts +28 -2
  88. package/lib/types/sso-connector.js +3 -0
  89. package/lib/types/tenant.d.ts +1 -0
  90. package/lib/types/tenant.js +1 -0
  91. package/lib/types/user-logto-config.d.ts +45 -0
  92. package/lib/types/user-logto-config.js +18 -0
  93. package/lib/types/user.d.ts +626 -0
  94. package/lib/types/user.js +17 -1
  95. package/lib/types/verification-records/backup-code-verification.d.ts +47 -0
  96. package/lib/types/verification-records/backup-code-verification.js +12 -0
  97. package/lib/types/verification-records/code-verification.d.ts +89 -0
  98. package/lib/types/verification-records/code-verification.js +22 -0
  99. package/lib/types/verification-records/enterprise-sso-verification.d.ts +213 -0
  100. package/lib/types/verification-records/enterprise-sso-verification.js +15 -0
  101. package/lib/types/verification-records/index.d.ts +16 -0
  102. package/lib/types/verification-records/index.js +16 -0
  103. package/lib/types/verification-records/new-password-identity-verification.d.ts +85 -0
  104. package/lib/types/verification-records/new-password-identity-verification.js +20 -0
  105. package/lib/types/verification-records/one-time-token-verification.d.ts +55 -0
  106. package/lib/types/verification-records/one-time-token-verification.js +13 -0
  107. package/lib/types/verification-records/password-verification.d.ts +40 -0
  108. package/lib/types/verification-records/password-verification.js +9 -0
  109. package/lib/types/verification-records/social-verification.d.ts +270 -0
  110. package/lib/types/verification-records/social-verification.js +16 -0
  111. package/lib/types/verification-records/totp-verification.d.ts +47 -0
  112. package/lib/types/verification-records/totp-verification.js +12 -0
  113. package/lib/types/verification-records/web-authn-verification.d.ts +124 -0
  114. package/lib/types/verification-records/web-authn-verification.js +17 -0
  115. package/package.json +6 -6
  116. package/tables/account_centers.sql +2 -1
  117. package/tables/connectors.sql +4 -0
  118. package/tables/custom_profile_fields.sql +31 -0
  119. package/tables/oidc_model_instances.sql +2 -0
  120. package/tables/oidc_session_extensions.sql +18 -0
  121. package/tables/organization_user_relations.sql +4 -1
  122. package/tables/secret_enterprise_sso_connector_relations.sql +60 -0
  123. package/tables/secret_social_connector_relations.sql +75 -0
  124. package/tables/secrets.sql +26 -0
  125. package/tables/sso_connectors.sql +2 -0
  126. package/tables/user_sso_identities.sql +8 -0
  127. package/tables/users.sql +3 -2
  128. /package/lib/{foundations/jsonb-types/verification-records.d.ts → types/verification-records/verification-type.d.ts} +0 -0
  129. /package/lib/{foundations/jsonb-types/verification-records.js → types/verification-records/verification-type.js} +0 -0
@@ -77,25 +77,25 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
77
77
  }, "strict", z.ZodTypeAny, {
78
78
  grantId?: string | undefined;
79
79
  scope?: string | undefined;
80
+ sessionUid?: string | undefined;
80
81
  accountId?: string | undefined;
82
+ jti?: string | undefined;
81
83
  expiresWithSession?: boolean | undefined;
82
84
  gty?: string | undefined;
83
- sessionUid?: string | undefined;
84
85
  sid?: string | undefined;
85
86
  kind?: "AccessToken" | undefined;
86
- jti?: string | undefined;
87
87
  aud?: string | string[] | undefined;
88
88
  clientId?: string | undefined;
89
89
  }, {
90
90
  grantId?: string | undefined;
91
91
  scope?: string | undefined;
92
+ sessionUid?: string | undefined;
92
93
  accountId?: string | undefined;
94
+ jti?: string | undefined;
93
95
  expiresWithSession?: boolean | undefined;
94
96
  gty?: string | undefined;
95
- sessionUid?: string | undefined;
96
97
  sid?: string | undefined;
97
98
  kind?: "AccessToken" | undefined;
98
- jti?: string | undefined;
99
99
  aud?: string | string[] | undefined;
100
100
  clientId?: string | undefined;
101
101
  }>>;
@@ -170,6 +170,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
170
170
  identityId: ZodType<string, z.ZodTypeDef, string>;
171
171
  detail: ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
172
172
  createdAt: ZodType<number, z.ZodTypeDef, number>;
173
+ updatedAt: ZodType<number, z.ZodTypeDef, number>;
173
174
  ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
174
175
  }, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
175
176
  issuer: string;
@@ -420,6 +421,592 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
420
421
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
421
422
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
422
423
  }>>;
424
+ interaction: z.ZodOptional<z.ZodObject<{
425
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("../interactions.js").InteractionEvent>>;
426
+ userId: z.ZodOptional<z.ZodString>;
427
+ verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
428
+ id: z.ZodString;
429
+ type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
430
+ identifier: z.ZodObject<{
431
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../index.js").AdditionalIdentifier>]>;
432
+ value: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ value: string;
435
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
436
+ }, {
437
+ value: string;
438
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
439
+ }>;
440
+ verified: z.ZodBoolean;
441
+ }, "strip", z.ZodTypeAny, {
442
+ type: import("../index.js").VerificationType.Password;
443
+ id: string;
444
+ identifier: {
445
+ value: string;
446
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
447
+ };
448
+ verified: boolean;
449
+ }, {
450
+ type: import("../index.js").VerificationType.Password;
451
+ id: string;
452
+ identifier: {
453
+ value: string;
454
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
455
+ };
456
+ verified: boolean;
457
+ }>, z.ZodObject<{
458
+ id: z.ZodString;
459
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
460
+ verified: z.ZodBoolean;
461
+ } & {
462
+ type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
463
+ identifier: z.ZodObject<{
464
+ type: z.ZodLiteral<import("../../index.js").SignInIdentifier.Email>;
465
+ value: z.ZodString;
466
+ }, "strip", z.ZodTypeAny, {
467
+ value: string;
468
+ type: import("../../index.js").SignInIdentifier.Email;
469
+ }, {
470
+ value: string;
471
+ type: import("../../index.js").SignInIdentifier.Email;
472
+ }>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: import("../index.js").VerificationType.EmailVerificationCode;
475
+ id: string;
476
+ identifier: {
477
+ value: string;
478
+ type: import("../../index.js").SignInIdentifier.Email;
479
+ };
480
+ templateType: import("@logto/connector-kit").TemplateType;
481
+ verified: boolean;
482
+ }, {
483
+ type: import("../index.js").VerificationType.EmailVerificationCode;
484
+ id: string;
485
+ identifier: {
486
+ value: string;
487
+ type: import("../../index.js").SignInIdentifier.Email;
488
+ };
489
+ templateType: import("@logto/connector-kit").TemplateType;
490
+ verified: boolean;
491
+ }>, z.ZodObject<{
492
+ id: z.ZodString;
493
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
494
+ verified: z.ZodBoolean;
495
+ } & {
496
+ type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
497
+ identifier: z.ZodObject<{
498
+ type: z.ZodLiteral<import("../../index.js").SignInIdentifier.Phone>;
499
+ value: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ value: string;
502
+ type: import("../../index.js").SignInIdentifier.Phone;
503
+ }, {
504
+ value: string;
505
+ type: import("../../index.js").SignInIdentifier.Phone;
506
+ }>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
509
+ id: string;
510
+ identifier: {
511
+ value: string;
512
+ type: import("../../index.js").SignInIdentifier.Phone;
513
+ };
514
+ templateType: import("@logto/connector-kit").TemplateType;
515
+ verified: boolean;
516
+ }, {
517
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
518
+ id: string;
519
+ identifier: {
520
+ value: string;
521
+ type: import("../../index.js").SignInIdentifier.Phone;
522
+ };
523
+ templateType: import("@logto/connector-kit").TemplateType;
524
+ verified: boolean;
525
+ }>, z.ZodObject<Omit<{
526
+ id: z.ZodString;
527
+ connectorId: z.ZodString;
528
+ type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
529
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
530
+ id: z.ZodString;
531
+ email: z.ZodOptional<z.ZodString>;
532
+ phone: z.ZodOptional<z.ZodString>;
533
+ name: z.ZodOptional<z.ZodString>;
534
+ avatar: z.ZodOptional<z.ZodString>;
535
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server").Json, z.ZodTypeDef, import("@withtyped/server").Json>>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ id: string;
538
+ name?: string | undefined;
539
+ email?: string | undefined;
540
+ phone?: string | undefined;
541
+ avatar?: string | undefined;
542
+ rawData?: import("@withtyped/server").Json | undefined;
543
+ }, {
544
+ id: string;
545
+ name?: string | undefined;
546
+ email?: string | undefined;
547
+ phone?: string | undefined;
548
+ avatar?: string | undefined;
549
+ rawData?: import("@withtyped/server").Json | undefined;
550
+ }>>;
551
+ encryptedTokenSet: z.ZodOptional<z.ZodObject<{
552
+ encryptedTokenSetBase64: z.ZodString;
553
+ metadata: z.ZodObject<{
554
+ scope: z.ZodOptional<z.ZodString>;
555
+ expiresAt: z.ZodOptional<z.ZodNumber>;
556
+ tokenType: z.ZodOptional<z.ZodString>;
557
+ hasRefreshToken: z.ZodBoolean;
558
+ }, "strip", z.ZodTypeAny, {
559
+ hasRefreshToken: boolean;
560
+ scope?: string | undefined;
561
+ expiresAt?: number | undefined;
562
+ tokenType?: string | undefined;
563
+ }, {
564
+ hasRefreshToken: boolean;
565
+ scope?: string | undefined;
566
+ expiresAt?: number | undefined;
567
+ tokenType?: string | undefined;
568
+ }>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ metadata: {
571
+ hasRefreshToken: boolean;
572
+ scope?: string | undefined;
573
+ expiresAt?: number | undefined;
574
+ tokenType?: string | undefined;
575
+ };
576
+ encryptedTokenSetBase64: string;
577
+ }, {
578
+ metadata: {
579
+ hasRefreshToken: boolean;
580
+ scope?: string | undefined;
581
+ expiresAt?: number | undefined;
582
+ tokenType?: string | undefined;
583
+ };
584
+ encryptedTokenSetBase64: string;
585
+ }>>;
586
+ connectorSession: z.ZodOptional<z.ZodObject<{
587
+ nonce: z.ZodOptional<z.ZodString>;
588
+ redirectUri: z.ZodOptional<z.ZodString>;
589
+ connectorId: z.ZodOptional<z.ZodString>;
590
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
591
+ jti: z.ZodOptional<z.ZodString>;
592
+ state: z.ZodOptional<z.ZodString>;
593
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
594
+ nonce: z.ZodOptional<z.ZodString>;
595
+ redirectUri: z.ZodOptional<z.ZodString>;
596
+ connectorId: z.ZodOptional<z.ZodString>;
597
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
598
+ jti: z.ZodOptional<z.ZodString>;
599
+ state: z.ZodOptional<z.ZodString>;
600
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
601
+ nonce: z.ZodOptional<z.ZodString>;
602
+ redirectUri: z.ZodOptional<z.ZodString>;
603
+ connectorId: z.ZodOptional<z.ZodString>;
604
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
605
+ jti: z.ZodOptional<z.ZodString>;
606
+ state: z.ZodOptional<z.ZodString>;
607
+ }, z.ZodUnknown, "strip">>>;
608
+ }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
609
+ type: import("../index.js").VerificationType.Social;
610
+ id: string;
611
+ connectorId: string;
612
+ socialUserInfo?: {
613
+ id: string;
614
+ name?: string | undefined;
615
+ email?: string | undefined;
616
+ phone?: string | undefined;
617
+ avatar?: string | undefined;
618
+ rawData?: import("@withtyped/server").Json | undefined;
619
+ } | undefined;
620
+ }, {
621
+ type: import("../index.js").VerificationType.Social;
622
+ id: string;
623
+ connectorId: string;
624
+ socialUserInfo?: {
625
+ id: string;
626
+ name?: string | undefined;
627
+ email?: string | undefined;
628
+ phone?: string | undefined;
629
+ avatar?: string | undefined;
630
+ rawData?: import("@withtyped/server").Json | undefined;
631
+ } | undefined;
632
+ }>, z.ZodObject<{
633
+ type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
634
+ id: z.ZodString;
635
+ issuer: z.ZodOptional<z.ZodString>;
636
+ connectorId: z.ZodString;
637
+ } & {
638
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
639
+ id: z.ZodString;
640
+ email: z.ZodOptional<z.ZodString>;
641
+ phone: z.ZodOptional<z.ZodString>;
642
+ name: z.ZodOptional<z.ZodString>;
643
+ avatar: z.ZodOptional<z.ZodString>;
644
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server").Json, z.ZodTypeDef, import("@withtyped/server").Json>>;
645
+ }, "strip", ZodType<import("@withtyped/server").Json, z.ZodTypeDef, import("@withtyped/server").Json>, {
646
+ id: string;
647
+ name?: string | undefined;
648
+ email?: string | undefined;
649
+ phone?: string | undefined;
650
+ avatar?: string | undefined;
651
+ rawData?: import("@withtyped/server").Json | undefined;
652
+ }, {
653
+ id: string;
654
+ name?: string | undefined;
655
+ email?: string | undefined;
656
+ phone?: string | undefined;
657
+ avatar?: string | undefined;
658
+ rawData?: import("@withtyped/server").Json | undefined;
659
+ }>>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ type: import("../index.js").VerificationType.EnterpriseSso;
662
+ id: string;
663
+ connectorId: string;
664
+ issuer?: string | undefined;
665
+ enterpriseSsoUserInfo?: {
666
+ id: string;
667
+ name?: string | undefined;
668
+ email?: string | undefined;
669
+ phone?: string | undefined;
670
+ avatar?: string | undefined;
671
+ rawData?: import("@withtyped/server").Json | undefined;
672
+ } | undefined;
673
+ }, {
674
+ type: import("../index.js").VerificationType.EnterpriseSso;
675
+ id: string;
676
+ connectorId: string;
677
+ issuer?: string | undefined;
678
+ enterpriseSsoUserInfo?: {
679
+ id: string;
680
+ name?: string | undefined;
681
+ email?: string | undefined;
682
+ phone?: string | undefined;
683
+ avatar?: string | undefined;
684
+ rawData?: import("@withtyped/server").Json | undefined;
685
+ } | undefined;
686
+ }>, z.ZodObject<Omit<{
687
+ id: z.ZodString;
688
+ type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
689
+ userId: z.ZodString;
690
+ secret: z.ZodOptional<z.ZodString>;
691
+ verified: z.ZodBoolean;
692
+ }, "secret">, "strip", z.ZodTypeAny, {
693
+ type: import("../index.js").VerificationType.TOTP;
694
+ id: string;
695
+ userId: string;
696
+ verified: boolean;
697
+ }, {
698
+ type: import("../index.js").VerificationType.TOTP;
699
+ id: string;
700
+ userId: string;
701
+ verified: boolean;
702
+ }>, z.ZodObject<Omit<{
703
+ id: z.ZodString;
704
+ type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
705
+ userId: z.ZodString;
706
+ code: z.ZodOptional<z.ZodString>;
707
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
708
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
709
+ type: import("../index.js").VerificationType.BackupCode;
710
+ id: string;
711
+ userId: string;
712
+ code?: string | undefined;
713
+ }, {
714
+ type: import("../index.js").VerificationType.BackupCode;
715
+ id: string;
716
+ userId: string;
717
+ code?: string | undefined;
718
+ }>, z.ZodObject<Omit<{
719
+ id: z.ZodString;
720
+ type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
721
+ userId: z.ZodString;
722
+ verified: z.ZodBoolean;
723
+ registrationChallenge: z.ZodOptional<z.ZodString>;
724
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
725
+ registrationInfo: z.ZodOptional<z.ZodObject<{
726
+ type: z.ZodLiteral<import("../../index.js").MfaFactor.WebAuthn>;
727
+ credentialId: z.ZodString;
728
+ publicKey: z.ZodString;
729
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
730
+ counter: z.ZodNumber;
731
+ agent: z.ZodString;
732
+ name: z.ZodOptional<z.ZodString>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ type: import("../../index.js").MfaFactor.WebAuthn;
735
+ credentialId: string;
736
+ publicKey: string;
737
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
738
+ counter: number;
739
+ agent: string;
740
+ name?: string | undefined;
741
+ }, {
742
+ type: import("../../index.js").MfaFactor.WebAuthn;
743
+ credentialId: string;
744
+ publicKey: string;
745
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
746
+ counter: number;
747
+ agent: string;
748
+ name?: string | undefined;
749
+ }>>;
750
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
751
+ type: import("../index.js").VerificationType.WebAuthn;
752
+ id: string;
753
+ userId: string;
754
+ verified: boolean;
755
+ }, {
756
+ type: import("../index.js").VerificationType.WebAuthn;
757
+ id: string;
758
+ userId: string;
759
+ verified: boolean;
760
+ }>, z.ZodObject<{
761
+ id: z.ZodString;
762
+ type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
763
+ verified: z.ZodBoolean;
764
+ identifier: z.ZodObject<{
765
+ type: z.ZodLiteral<import("../../index.js").SignInIdentifier.Email>;
766
+ value: z.ZodString;
767
+ }, "strip", z.ZodTypeAny, {
768
+ value: string;
769
+ type: import("../../index.js").SignInIdentifier.Email;
770
+ }, {
771
+ value: string;
772
+ type: import("../../index.js").SignInIdentifier.Email;
773
+ }>;
774
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
775
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ jitOrganizationIds?: string[] | undefined;
778
+ }, {
779
+ jitOrganizationIds?: string[] | undefined;
780
+ }>>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ type: import("../index.js").VerificationType.OneTimeToken;
783
+ id: string;
784
+ identifier: {
785
+ value: string;
786
+ type: import("../../index.js").SignInIdentifier.Email;
787
+ };
788
+ verified: boolean;
789
+ oneTimeTokenContext?: {
790
+ jitOrganizationIds?: string[] | undefined;
791
+ } | undefined;
792
+ }, {
793
+ type: import("../index.js").VerificationType.OneTimeToken;
794
+ id: string;
795
+ identifier: {
796
+ value: string;
797
+ type: import("../../index.js").SignInIdentifier.Email;
798
+ };
799
+ verified: boolean;
800
+ oneTimeTokenContext?: {
801
+ jitOrganizationIds?: string[] | undefined;
802
+ } | undefined;
803
+ }>, z.ZodObject<Omit<{
804
+ id: z.ZodString;
805
+ type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
806
+ identifier: z.ZodObject<{
807
+ type: z.ZodNativeEnum<typeof import("../../index.js").SignInIdentifier>;
808
+ value: z.ZodString;
809
+ }, "strip", z.ZodTypeAny, {
810
+ value: string;
811
+ type: import("../../index.js").SignInIdentifier;
812
+ }, {
813
+ value: string;
814
+ type: import("../../index.js").SignInIdentifier;
815
+ }>;
816
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
817
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../index.js").UsersPasswordEncryptionMethod.Argon2i>>;
818
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
819
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
820
+ id: string;
821
+ identifier: {
822
+ value: string;
823
+ type: import("../../index.js").SignInIdentifier;
824
+ };
825
+ }, {
826
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
827
+ id: string;
828
+ identifier: {
829
+ value: string;
830
+ type: import("../../index.js").SignInIdentifier;
831
+ };
832
+ }>]>, "many">>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ userId?: string | undefined;
835
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
836
+ verificationRecords?: ({
837
+ type: import("../index.js").VerificationType.BackupCode;
838
+ id: string;
839
+ userId: string;
840
+ code?: string | undefined;
841
+ } | {
842
+ type: import("../index.js").VerificationType.EmailVerificationCode;
843
+ id: string;
844
+ identifier: {
845
+ value: string;
846
+ type: import("../../index.js").SignInIdentifier.Email;
847
+ };
848
+ templateType: import("@logto/connector-kit").TemplateType;
849
+ verified: boolean;
850
+ } | {
851
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
852
+ id: string;
853
+ identifier: {
854
+ value: string;
855
+ type: import("../../index.js").SignInIdentifier.Phone;
856
+ };
857
+ templateType: import("@logto/connector-kit").TemplateType;
858
+ verified: boolean;
859
+ } | {
860
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
861
+ id: string;
862
+ identifier: {
863
+ value: string;
864
+ type: import("../../index.js").SignInIdentifier;
865
+ };
866
+ } | {
867
+ type: import("../index.js").VerificationType.OneTimeToken;
868
+ id: string;
869
+ identifier: {
870
+ value: string;
871
+ type: import("../../index.js").SignInIdentifier.Email;
872
+ };
873
+ verified: boolean;
874
+ oneTimeTokenContext?: {
875
+ jitOrganizationIds?: string[] | undefined;
876
+ } | undefined;
877
+ } | {
878
+ type: import("../index.js").VerificationType.Password;
879
+ id: string;
880
+ identifier: {
881
+ value: string;
882
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
883
+ };
884
+ verified: boolean;
885
+ } | {
886
+ type: import("../index.js").VerificationType.Social;
887
+ id: string;
888
+ connectorId: string;
889
+ socialUserInfo?: {
890
+ id: string;
891
+ name?: string | undefined;
892
+ email?: string | undefined;
893
+ phone?: string | undefined;
894
+ avatar?: string | undefined;
895
+ rawData?: import("@withtyped/server").Json | undefined;
896
+ } | undefined;
897
+ } | {
898
+ type: import("../index.js").VerificationType.TOTP;
899
+ id: string;
900
+ userId: string;
901
+ verified: boolean;
902
+ } | {
903
+ type: import("../index.js").VerificationType.WebAuthn;
904
+ id: string;
905
+ userId: string;
906
+ verified: boolean;
907
+ } | {
908
+ type: import("../index.js").VerificationType.EnterpriseSso;
909
+ id: string;
910
+ connectorId: string;
911
+ issuer?: string | undefined;
912
+ enterpriseSsoUserInfo?: {
913
+ id: string;
914
+ name?: string | undefined;
915
+ email?: string | undefined;
916
+ phone?: string | undefined;
917
+ avatar?: string | undefined;
918
+ rawData?: import("@withtyped/server").Json | undefined;
919
+ } | undefined;
920
+ })[] | undefined;
921
+ }, {
922
+ userId?: string | undefined;
923
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
924
+ verificationRecords?: ({
925
+ type: import("../index.js").VerificationType.BackupCode;
926
+ id: string;
927
+ userId: string;
928
+ code?: string | undefined;
929
+ } | {
930
+ type: import("../index.js").VerificationType.EmailVerificationCode;
931
+ id: string;
932
+ identifier: {
933
+ value: string;
934
+ type: import("../../index.js").SignInIdentifier.Email;
935
+ };
936
+ templateType: import("@logto/connector-kit").TemplateType;
937
+ verified: boolean;
938
+ } | {
939
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
940
+ id: string;
941
+ identifier: {
942
+ value: string;
943
+ type: import("../../index.js").SignInIdentifier.Phone;
944
+ };
945
+ templateType: import("@logto/connector-kit").TemplateType;
946
+ verified: boolean;
947
+ } | {
948
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
949
+ id: string;
950
+ identifier: {
951
+ value: string;
952
+ type: import("../../index.js").SignInIdentifier;
953
+ };
954
+ } | {
955
+ type: import("../index.js").VerificationType.OneTimeToken;
956
+ id: string;
957
+ identifier: {
958
+ value: string;
959
+ type: import("../../index.js").SignInIdentifier.Email;
960
+ };
961
+ verified: boolean;
962
+ oneTimeTokenContext?: {
963
+ jitOrganizationIds?: string[] | undefined;
964
+ } | undefined;
965
+ } | {
966
+ type: import("../index.js").VerificationType.Password;
967
+ id: string;
968
+ identifier: {
969
+ value: string;
970
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
971
+ };
972
+ verified: boolean;
973
+ } | {
974
+ type: import("../index.js").VerificationType.Social;
975
+ id: string;
976
+ connectorId: string;
977
+ socialUserInfo?: {
978
+ id: string;
979
+ name?: string | undefined;
980
+ email?: string | undefined;
981
+ phone?: string | undefined;
982
+ avatar?: string | undefined;
983
+ rawData?: import("@withtyped/server").Json | undefined;
984
+ } | undefined;
985
+ } | {
986
+ type: import("../index.js").VerificationType.TOTP;
987
+ id: string;
988
+ userId: string;
989
+ verified: boolean;
990
+ } | {
991
+ type: import("../index.js").VerificationType.WebAuthn;
992
+ id: string;
993
+ userId: string;
994
+ verified: boolean;
995
+ } | {
996
+ type: import("../index.js").VerificationType.EnterpriseSso;
997
+ id: string;
998
+ connectorId: string;
999
+ issuer?: string | undefined;
1000
+ enterpriseSsoUserInfo?: {
1001
+ id: string;
1002
+ name?: string | undefined;
1003
+ email?: string | undefined;
1004
+ phone?: string | undefined;
1005
+ avatar?: string | undefined;
1006
+ rawData?: import("@withtyped/server").Json | undefined;
1007
+ } | undefined;
1008
+ })[] | undefined;
1009
+ }>>;
423
1010
  }, "strip", z.ZodTypeAny, {
424
1011
  user: {
425
1012
  name?: string | null | undefined;
@@ -493,6 +1080,95 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
493
1080
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
494
1081
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
495
1082
  } | undefined;
1083
+ interaction?: {
1084
+ userId?: string | undefined;
1085
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1086
+ verificationRecords?: ({
1087
+ type: import("../index.js").VerificationType.BackupCode;
1088
+ id: string;
1089
+ userId: string;
1090
+ code?: string | undefined;
1091
+ } | {
1092
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1093
+ id: string;
1094
+ identifier: {
1095
+ value: string;
1096
+ type: import("../../index.js").SignInIdentifier.Email;
1097
+ };
1098
+ templateType: import("@logto/connector-kit").TemplateType;
1099
+ verified: boolean;
1100
+ } | {
1101
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1102
+ id: string;
1103
+ identifier: {
1104
+ value: string;
1105
+ type: import("../../index.js").SignInIdentifier.Phone;
1106
+ };
1107
+ templateType: import("@logto/connector-kit").TemplateType;
1108
+ verified: boolean;
1109
+ } | {
1110
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1111
+ id: string;
1112
+ identifier: {
1113
+ value: string;
1114
+ type: import("../../index.js").SignInIdentifier;
1115
+ };
1116
+ } | {
1117
+ type: import("../index.js").VerificationType.OneTimeToken;
1118
+ id: string;
1119
+ identifier: {
1120
+ value: string;
1121
+ type: import("../../index.js").SignInIdentifier.Email;
1122
+ };
1123
+ verified: boolean;
1124
+ oneTimeTokenContext?: {
1125
+ jitOrganizationIds?: string[] | undefined;
1126
+ } | undefined;
1127
+ } | {
1128
+ type: import("../index.js").VerificationType.Password;
1129
+ id: string;
1130
+ identifier: {
1131
+ value: string;
1132
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
1133
+ };
1134
+ verified: boolean;
1135
+ } | {
1136
+ type: import("../index.js").VerificationType.Social;
1137
+ id: string;
1138
+ connectorId: string;
1139
+ socialUserInfo?: {
1140
+ id: string;
1141
+ name?: string | undefined;
1142
+ email?: string | undefined;
1143
+ phone?: string | undefined;
1144
+ avatar?: string | undefined;
1145
+ rawData?: import("@withtyped/server").Json | undefined;
1146
+ } | undefined;
1147
+ } | {
1148
+ type: import("../index.js").VerificationType.TOTP;
1149
+ id: string;
1150
+ userId: string;
1151
+ verified: boolean;
1152
+ } | {
1153
+ type: import("../index.js").VerificationType.WebAuthn;
1154
+ id: string;
1155
+ userId: string;
1156
+ verified: boolean;
1157
+ } | {
1158
+ type: import("../index.js").VerificationType.EnterpriseSso;
1159
+ id: string;
1160
+ connectorId: string;
1161
+ issuer?: string | undefined;
1162
+ enterpriseSsoUserInfo?: {
1163
+ id: string;
1164
+ name?: string | undefined;
1165
+ email?: string | undefined;
1166
+ phone?: string | undefined;
1167
+ avatar?: string | undefined;
1168
+ rawData?: import("@withtyped/server").Json | undefined;
1169
+ } | undefined;
1170
+ })[] | undefined;
1171
+ } | undefined;
496
1172
  }, {
497
1173
  user: {
498
1174
  name?: string | null | undefined;
@@ -566,6 +1242,95 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
566
1242
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
567
1243
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
568
1244
  } | undefined;
1245
+ interaction?: {
1246
+ userId?: string | undefined;
1247
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1248
+ verificationRecords?: ({
1249
+ type: import("../index.js").VerificationType.BackupCode;
1250
+ id: string;
1251
+ userId: string;
1252
+ code?: string | undefined;
1253
+ } | {
1254
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1255
+ id: string;
1256
+ identifier: {
1257
+ value: string;
1258
+ type: import("../../index.js").SignInIdentifier.Email;
1259
+ };
1260
+ templateType: import("@logto/connector-kit").TemplateType;
1261
+ verified: boolean;
1262
+ } | {
1263
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1264
+ id: string;
1265
+ identifier: {
1266
+ value: string;
1267
+ type: import("../../index.js").SignInIdentifier.Phone;
1268
+ };
1269
+ templateType: import("@logto/connector-kit").TemplateType;
1270
+ verified: boolean;
1271
+ } | {
1272
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1273
+ id: string;
1274
+ identifier: {
1275
+ value: string;
1276
+ type: import("../../index.js").SignInIdentifier;
1277
+ };
1278
+ } | {
1279
+ type: import("../index.js").VerificationType.OneTimeToken;
1280
+ id: string;
1281
+ identifier: {
1282
+ value: string;
1283
+ type: import("../../index.js").SignInIdentifier.Email;
1284
+ };
1285
+ verified: boolean;
1286
+ oneTimeTokenContext?: {
1287
+ jitOrganizationIds?: string[] | undefined;
1288
+ } | undefined;
1289
+ } | {
1290
+ type: import("../index.js").VerificationType.Password;
1291
+ id: string;
1292
+ identifier: {
1293
+ value: string;
1294
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
1295
+ };
1296
+ verified: boolean;
1297
+ } | {
1298
+ type: import("../index.js").VerificationType.Social;
1299
+ id: string;
1300
+ connectorId: string;
1301
+ socialUserInfo?: {
1302
+ id: string;
1303
+ name?: string | undefined;
1304
+ email?: string | undefined;
1305
+ phone?: string | undefined;
1306
+ avatar?: string | undefined;
1307
+ rawData?: import("@withtyped/server").Json | undefined;
1308
+ } | undefined;
1309
+ } | {
1310
+ type: import("../index.js").VerificationType.TOTP;
1311
+ id: string;
1312
+ userId: string;
1313
+ verified: boolean;
1314
+ } | {
1315
+ type: import("../index.js").VerificationType.WebAuthn;
1316
+ id: string;
1317
+ userId: string;
1318
+ verified: boolean;
1319
+ } | {
1320
+ type: import("../index.js").VerificationType.EnterpriseSso;
1321
+ id: string;
1322
+ connectorId: string;
1323
+ issuer?: string | undefined;
1324
+ enterpriseSsoUserInfo?: {
1325
+ id: string;
1326
+ name?: string | undefined;
1327
+ email?: string | undefined;
1328
+ phone?: string | undefined;
1329
+ avatar?: string | undefined;
1330
+ rawData?: import("@withtyped/server").Json | undefined;
1331
+ } | undefined;
1332
+ })[] | undefined;
1333
+ } | undefined;
569
1334
  }>>;
570
1335
  }, "strict", z.ZodTypeAny, {
571
1336
  script: string;
@@ -643,17 +1408,106 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
643
1408
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
644
1409
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
645
1410
  } | undefined;
1411
+ interaction?: {
1412
+ userId?: string | undefined;
1413
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1414
+ verificationRecords?: ({
1415
+ type: import("../index.js").VerificationType.BackupCode;
1416
+ id: string;
1417
+ userId: string;
1418
+ code?: string | undefined;
1419
+ } | {
1420
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1421
+ id: string;
1422
+ identifier: {
1423
+ value: string;
1424
+ type: import("../../index.js").SignInIdentifier.Email;
1425
+ };
1426
+ templateType: import("@logto/connector-kit").TemplateType;
1427
+ verified: boolean;
1428
+ } | {
1429
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1430
+ id: string;
1431
+ identifier: {
1432
+ value: string;
1433
+ type: import("../../index.js").SignInIdentifier.Phone;
1434
+ };
1435
+ templateType: import("@logto/connector-kit").TemplateType;
1436
+ verified: boolean;
1437
+ } | {
1438
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1439
+ id: string;
1440
+ identifier: {
1441
+ value: string;
1442
+ type: import("../../index.js").SignInIdentifier;
1443
+ };
1444
+ } | {
1445
+ type: import("../index.js").VerificationType.OneTimeToken;
1446
+ id: string;
1447
+ identifier: {
1448
+ value: string;
1449
+ type: import("../../index.js").SignInIdentifier.Email;
1450
+ };
1451
+ verified: boolean;
1452
+ oneTimeTokenContext?: {
1453
+ jitOrganizationIds?: string[] | undefined;
1454
+ } | undefined;
1455
+ } | {
1456
+ type: import("../index.js").VerificationType.Password;
1457
+ id: string;
1458
+ identifier: {
1459
+ value: string;
1460
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
1461
+ };
1462
+ verified: boolean;
1463
+ } | {
1464
+ type: import("../index.js").VerificationType.Social;
1465
+ id: string;
1466
+ connectorId: string;
1467
+ socialUserInfo?: {
1468
+ id: string;
1469
+ name?: string | undefined;
1470
+ email?: string | undefined;
1471
+ phone?: string | undefined;
1472
+ avatar?: string | undefined;
1473
+ rawData?: import("@withtyped/server").Json | undefined;
1474
+ } | undefined;
1475
+ } | {
1476
+ type: import("../index.js").VerificationType.TOTP;
1477
+ id: string;
1478
+ userId: string;
1479
+ verified: boolean;
1480
+ } | {
1481
+ type: import("../index.js").VerificationType.WebAuthn;
1482
+ id: string;
1483
+ userId: string;
1484
+ verified: boolean;
1485
+ } | {
1486
+ type: import("../index.js").VerificationType.EnterpriseSso;
1487
+ id: string;
1488
+ connectorId: string;
1489
+ issuer?: string | undefined;
1490
+ enterpriseSsoUserInfo?: {
1491
+ id: string;
1492
+ name?: string | undefined;
1493
+ email?: string | undefined;
1494
+ phone?: string | undefined;
1495
+ avatar?: string | undefined;
1496
+ rawData?: import("@withtyped/server").Json | undefined;
1497
+ } | undefined;
1498
+ })[] | undefined;
1499
+ } | undefined;
646
1500
  } | undefined;
647
1501
  tokenSample?: {
648
1502
  grantId?: string | undefined;
649
1503
  scope?: string | undefined;
1504
+ sessionUid?: string | undefined;
650
1505
  accountId?: string | undefined;
1506
+ jti?: string | undefined;
651
1507
  expiresWithSession?: boolean | undefined;
652
1508
  gty?: string | undefined;
653
- sessionUid?: string | undefined;
654
1509
  sid?: string | undefined;
655
1510
  kind?: "AccessToken" | undefined;
656
- jti?: string | undefined;
657
1511
  aud?: string | string[] | undefined;
658
1512
  clientId?: string | undefined;
659
1513
  } | undefined;
@@ -733,17 +1587,106 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
733
1587
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
734
1588
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
735
1589
  } | undefined;
1590
+ interaction?: {
1591
+ userId?: string | undefined;
1592
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1593
+ verificationRecords?: ({
1594
+ type: import("../index.js").VerificationType.BackupCode;
1595
+ id: string;
1596
+ userId: string;
1597
+ code?: string | undefined;
1598
+ } | {
1599
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1600
+ id: string;
1601
+ identifier: {
1602
+ value: string;
1603
+ type: import("../../index.js").SignInIdentifier.Email;
1604
+ };
1605
+ templateType: import("@logto/connector-kit").TemplateType;
1606
+ verified: boolean;
1607
+ } | {
1608
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1609
+ id: string;
1610
+ identifier: {
1611
+ value: string;
1612
+ type: import("../../index.js").SignInIdentifier.Phone;
1613
+ };
1614
+ templateType: import("@logto/connector-kit").TemplateType;
1615
+ verified: boolean;
1616
+ } | {
1617
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1618
+ id: string;
1619
+ identifier: {
1620
+ value: string;
1621
+ type: import("../../index.js").SignInIdentifier;
1622
+ };
1623
+ } | {
1624
+ type: import("../index.js").VerificationType.OneTimeToken;
1625
+ id: string;
1626
+ identifier: {
1627
+ value: string;
1628
+ type: import("../../index.js").SignInIdentifier.Email;
1629
+ };
1630
+ verified: boolean;
1631
+ oneTimeTokenContext?: {
1632
+ jitOrganizationIds?: string[] | undefined;
1633
+ } | undefined;
1634
+ } | {
1635
+ type: import("../index.js").VerificationType.Password;
1636
+ id: string;
1637
+ identifier: {
1638
+ value: string;
1639
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
1640
+ };
1641
+ verified: boolean;
1642
+ } | {
1643
+ type: import("../index.js").VerificationType.Social;
1644
+ id: string;
1645
+ connectorId: string;
1646
+ socialUserInfo?: {
1647
+ id: string;
1648
+ name?: string | undefined;
1649
+ email?: string | undefined;
1650
+ phone?: string | undefined;
1651
+ avatar?: string | undefined;
1652
+ rawData?: import("@withtyped/server").Json | undefined;
1653
+ } | undefined;
1654
+ } | {
1655
+ type: import("../index.js").VerificationType.TOTP;
1656
+ id: string;
1657
+ userId: string;
1658
+ verified: boolean;
1659
+ } | {
1660
+ type: import("../index.js").VerificationType.WebAuthn;
1661
+ id: string;
1662
+ userId: string;
1663
+ verified: boolean;
1664
+ } | {
1665
+ type: import("../index.js").VerificationType.EnterpriseSso;
1666
+ id: string;
1667
+ connectorId: string;
1668
+ issuer?: string | undefined;
1669
+ enterpriseSsoUserInfo?: {
1670
+ id: string;
1671
+ name?: string | undefined;
1672
+ email?: string | undefined;
1673
+ phone?: string | undefined;
1674
+ avatar?: string | undefined;
1675
+ rawData?: import("@withtyped/server").Json | undefined;
1676
+ } | undefined;
1677
+ })[] | undefined;
1678
+ } | undefined;
736
1679
  } | undefined;
737
1680
  tokenSample?: {
738
1681
  grantId?: string | undefined;
739
1682
  scope?: string | undefined;
1683
+ sessionUid?: string | undefined;
740
1684
  accountId?: string | undefined;
1685
+ jti?: string | undefined;
741
1686
  expiresWithSession?: boolean | undefined;
742
1687
  gty?: string | undefined;
743
- sessionUid?: string | undefined;
744
1688
  sid?: string | undefined;
745
1689
  kind?: "AccessToken" | undefined;
746
- jti?: string | undefined;
747
1690
  aud?: string | string[] | undefined;
748
1691
  clientId?: string | undefined;
749
1692
  } | undefined;
@@ -825,17 +1768,106 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
825
1768
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
826
1769
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
827
1770
  } | undefined;
1771
+ interaction?: {
1772
+ userId?: string | undefined;
1773
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1774
+ verificationRecords?: ({
1775
+ type: import("../index.js").VerificationType.BackupCode;
1776
+ id: string;
1777
+ userId: string;
1778
+ code?: string | undefined;
1779
+ } | {
1780
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1781
+ id: string;
1782
+ identifier: {
1783
+ value: string;
1784
+ type: import("../../index.js").SignInIdentifier.Email;
1785
+ };
1786
+ templateType: import("@logto/connector-kit").TemplateType;
1787
+ verified: boolean;
1788
+ } | {
1789
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1790
+ id: string;
1791
+ identifier: {
1792
+ value: string;
1793
+ type: import("../../index.js").SignInIdentifier.Phone;
1794
+ };
1795
+ templateType: import("@logto/connector-kit").TemplateType;
1796
+ verified: boolean;
1797
+ } | {
1798
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1799
+ id: string;
1800
+ identifier: {
1801
+ value: string;
1802
+ type: import("../../index.js").SignInIdentifier;
1803
+ };
1804
+ } | {
1805
+ type: import("../index.js").VerificationType.OneTimeToken;
1806
+ id: string;
1807
+ identifier: {
1808
+ value: string;
1809
+ type: import("../../index.js").SignInIdentifier.Email;
1810
+ };
1811
+ verified: boolean;
1812
+ oneTimeTokenContext?: {
1813
+ jitOrganizationIds?: string[] | undefined;
1814
+ } | undefined;
1815
+ } | {
1816
+ type: import("../index.js").VerificationType.Password;
1817
+ id: string;
1818
+ identifier: {
1819
+ value: string;
1820
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
1821
+ };
1822
+ verified: boolean;
1823
+ } | {
1824
+ type: import("../index.js").VerificationType.Social;
1825
+ id: string;
1826
+ connectorId: string;
1827
+ socialUserInfo?: {
1828
+ id: string;
1829
+ name?: string | undefined;
1830
+ email?: string | undefined;
1831
+ phone?: string | undefined;
1832
+ avatar?: string | undefined;
1833
+ rawData?: import("@withtyped/server").Json | undefined;
1834
+ } | undefined;
1835
+ } | {
1836
+ type: import("../index.js").VerificationType.TOTP;
1837
+ id: string;
1838
+ userId: string;
1839
+ verified: boolean;
1840
+ } | {
1841
+ type: import("../index.js").VerificationType.WebAuthn;
1842
+ id: string;
1843
+ userId: string;
1844
+ verified: boolean;
1845
+ } | {
1846
+ type: import("../index.js").VerificationType.EnterpriseSso;
1847
+ id: string;
1848
+ connectorId: string;
1849
+ issuer?: string | undefined;
1850
+ enterpriseSsoUserInfo?: {
1851
+ id: string;
1852
+ name?: string | undefined;
1853
+ email?: string | undefined;
1854
+ phone?: string | undefined;
1855
+ avatar?: string | undefined;
1856
+ rawData?: import("@withtyped/server").Json | undefined;
1857
+ } | undefined;
1858
+ })[] | undefined;
1859
+ } | undefined;
828
1860
  } | undefined;
829
1861
  tokenSample?: {
830
1862
  grantId?: string | undefined;
831
1863
  scope?: string | undefined;
1864
+ sessionUid?: string | undefined;
832
1865
  accountId?: string | undefined;
1866
+ jti?: string | undefined;
833
1867
  expiresWithSession?: boolean | undefined;
834
1868
  gty?: string | undefined;
835
- sessionUid?: string | undefined;
836
1869
  sid?: string | undefined;
837
1870
  kind?: "AccessToken" | undefined;
838
- jti?: string | undefined;
839
1871
  aud?: string | string[] | undefined;
840
1872
  clientId?: string | undefined;
841
1873
  } | undefined;
@@ -918,17 +1950,106 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
918
1950
  type?: import("../oidc-config.js").GrantType.TokenExchange | undefined;
919
1951
  subjectTokenContext?: Record<string, import("@withtyped/server").Json> | undefined;
920
1952
  } | undefined;
1953
+ interaction?: {
1954
+ userId?: string | undefined;
1955
+ interactionEvent?: import("../interactions.js").InteractionEvent | undefined;
1956
+ verificationRecords?: ({
1957
+ type: import("../index.js").VerificationType.BackupCode;
1958
+ id: string;
1959
+ userId: string;
1960
+ code?: string | undefined;
1961
+ } | {
1962
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1963
+ id: string;
1964
+ identifier: {
1965
+ value: string;
1966
+ type: import("../../index.js").SignInIdentifier.Email;
1967
+ };
1968
+ templateType: import("@logto/connector-kit").TemplateType;
1969
+ verified: boolean;
1970
+ } | {
1971
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1972
+ id: string;
1973
+ identifier: {
1974
+ value: string;
1975
+ type: import("../../index.js").SignInIdentifier.Phone;
1976
+ };
1977
+ templateType: import("@logto/connector-kit").TemplateType;
1978
+ verified: boolean;
1979
+ } | {
1980
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1981
+ id: string;
1982
+ identifier: {
1983
+ value: string;
1984
+ type: import("../../index.js").SignInIdentifier;
1985
+ };
1986
+ } | {
1987
+ type: import("../index.js").VerificationType.OneTimeToken;
1988
+ id: string;
1989
+ identifier: {
1990
+ value: string;
1991
+ type: import("../../index.js").SignInIdentifier.Email;
1992
+ };
1993
+ verified: boolean;
1994
+ oneTimeTokenContext?: {
1995
+ jitOrganizationIds?: string[] | undefined;
1996
+ } | undefined;
1997
+ } | {
1998
+ type: import("../index.js").VerificationType.Password;
1999
+ id: string;
2000
+ identifier: {
2001
+ value: string;
2002
+ type: import("../../index.js").SignInIdentifier | import("../../index.js").AdditionalIdentifier;
2003
+ };
2004
+ verified: boolean;
2005
+ } | {
2006
+ type: import("../index.js").VerificationType.Social;
2007
+ id: string;
2008
+ connectorId: string;
2009
+ socialUserInfo?: {
2010
+ id: string;
2011
+ name?: string | undefined;
2012
+ email?: string | undefined;
2013
+ phone?: string | undefined;
2014
+ avatar?: string | undefined;
2015
+ rawData?: import("@withtyped/server").Json | undefined;
2016
+ } | undefined;
2017
+ } | {
2018
+ type: import("../index.js").VerificationType.TOTP;
2019
+ id: string;
2020
+ userId: string;
2021
+ verified: boolean;
2022
+ } | {
2023
+ type: import("../index.js").VerificationType.WebAuthn;
2024
+ id: string;
2025
+ userId: string;
2026
+ verified: boolean;
2027
+ } | {
2028
+ type: import("../index.js").VerificationType.EnterpriseSso;
2029
+ id: string;
2030
+ connectorId: string;
2031
+ issuer?: string | undefined;
2032
+ enterpriseSsoUserInfo?: {
2033
+ id: string;
2034
+ name?: string | undefined;
2035
+ email?: string | undefined;
2036
+ phone?: string | undefined;
2037
+ avatar?: string | undefined;
2038
+ rawData?: import("@withtyped/server").Json | undefined;
2039
+ } | undefined;
2040
+ })[] | undefined;
2041
+ } | undefined;
921
2042
  } | undefined;
922
2043
  tokenSample?: {
923
2044
  grantId?: string | undefined;
924
2045
  scope?: string | undefined;
2046
+ sessionUid?: string | undefined;
925
2047
  accountId?: string | undefined;
2048
+ jti?: string | undefined;
926
2049
  expiresWithSession?: boolean | undefined;
927
2050
  gty?: string | undefined;
928
- sessionUid?: string | undefined;
929
2051
  sid?: string | undefined;
930
2052
  kind?: "AccessToken" | undefined;
931
- jti?: string | undefined;
932
2053
  aud?: string | string[] | undefined;
933
2054
  clientId?: string | undefined;
934
2055
  } | undefined;
@@ -949,14 +2070,14 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
949
2070
  clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
950
2071
  }, "strict", z.ZodTypeAny, {
951
2072
  scope?: string | undefined;
952
- kind?: "ClientCredentials" | undefined;
953
2073
  jti?: string | undefined;
2074
+ kind?: "ClientCredentials" | undefined;
954
2075
  aud?: string | string[] | undefined;
955
2076
  clientId?: string | undefined;
956
2077
  }, {
957
2078
  scope?: string | undefined;
958
- kind?: "ClientCredentials" | undefined;
959
2079
  jti?: string | undefined;
2080
+ kind?: "ClientCredentials" | undefined;
960
2081
  aud?: string | string[] | undefined;
961
2082
  clientId?: string | undefined;
962
2083
  }>>;
@@ -966,8 +2087,8 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
966
2087
  contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
967
2088
  tokenSample?: {
968
2089
  scope?: string | undefined;
969
- kind?: "ClientCredentials" | undefined;
970
2090
  jti?: string | undefined;
2091
+ kind?: "ClientCredentials" | undefined;
971
2092
  aud?: string | string[] | undefined;
972
2093
  clientId?: string | undefined;
973
2094
  } | undefined;
@@ -977,8 +2098,8 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
977
2098
  contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
978
2099
  tokenSample?: {
979
2100
  scope?: string | undefined;
980
- kind?: "ClientCredentials" | undefined;
981
2101
  jti?: string | undefined;
2102
+ kind?: "ClientCredentials" | undefined;
982
2103
  aud?: string | string[] | undefined;
983
2104
  clientId?: string | undefined;
984
2105
  } | undefined;
@@ -990,8 +2111,8 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
990
2111
  contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
991
2112
  tokenSample?: {
992
2113
  scope?: string | undefined;
993
- kind?: "ClientCredentials" | undefined;
994
2114
  jti?: string | undefined;
2115
+ kind?: "ClientCredentials" | undefined;
995
2116
  aud?: string | string[] | undefined;
996
2117
  clientId?: string | undefined;
997
2118
  } | undefined;
@@ -1004,8 +2125,8 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1004
2125
  contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
1005
2126
  tokenSample?: {
1006
2127
  scope?: string | undefined;
1007
- kind?: "ClientCredentials" | undefined;
1008
2128
  jti?: string | undefined;
2129
+ kind?: "ClientCredentials" | undefined;
1009
2130
  aud?: string | string[] | undefined;
1010
2131
  clientId?: string | undefined;
1011
2132
  } | undefined;