@logto/schemas 1.28.0 → 1.29.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 (93) 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-js/1.29.0-1748832174-add-webauthn-related-origins.js +16 -0
  10. package/alterations-js/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.js +25 -0
  11. package/alterations-js/1.29.0-1749026308-add-oidc-session-extension-table.js +33 -0
  12. package/alterations-js/1.29.0-1749523818-add-custom-profile-fields.js +52 -0
  13. package/alterations-js/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.js +16 -0
  14. package/alterations-js/1.29.0-1750663091-change-user-password-encrypted-length.js +14 -0
  15. package/alterations-js/1.29.0-1750744518-add-secrets-table.js +42 -0
  16. package/alterations-js/1.29.0-1750744539-add-secret-connector-relations-table.js +99 -0
  17. package/lib/db-entries/account-center.d.ts +4 -2
  18. package/lib/db-entries/account-center.js +5 -1
  19. package/lib/db-entries/custom-profile-field.d.ts +32 -0
  20. package/lib/db-entries/custom-profile-field.js +58 -0
  21. package/lib/db-entries/index.d.ts +4 -0
  22. package/lib/db-entries/index.js +4 -0
  23. package/lib/db-entries/oidc-session-extension.d.ts +24 -0
  24. package/lib/db-entries/oidc-session-extension.js +42 -0
  25. package/lib/db-entries/secret-connector-relation.d.ts +40 -0
  26. package/lib/db-entries/secret-connector-relation.js +49 -0
  27. package/lib/db-entries/secret.d.ts +44 -0
  28. package/lib/db-entries/secret.js +62 -0
  29. package/lib/db-entries/user-sso-identity.d.ts +5 -1
  30. package/lib/db-entries/user-sso-identity.js +4 -0
  31. package/lib/db-entries/user.js +2 -2
  32. package/lib/foundations/jsonb-types/account-centers.d.ts +5 -0
  33. package/lib/foundations/jsonb-types/account-centers.js +2 -0
  34. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +116 -0
  35. package/lib/foundations/jsonb-types/custom-profile-fields.js +36 -0
  36. package/lib/foundations/jsonb-types/index.d.ts +2 -1
  37. package/lib/foundations/jsonb-types/index.js +2 -1
  38. package/lib/foundations/jsonb-types/secrets.d.ts +9 -0
  39. package/lib/foundations/jsonb-types/secrets.js +10 -0
  40. package/lib/foundations/jsonb-types/users.d.ts +32 -0
  41. package/lib/foundations/jsonb-types/users.js +11 -10
  42. package/lib/types/consent.d.ts +4 -0
  43. package/lib/types/custom-profile-fields.d.ts +1310 -0
  44. package/lib/types/custom-profile-fields.js +123 -0
  45. package/lib/types/index.d.ts +2 -0
  46. package/lib/types/index.js +2 -0
  47. package/lib/types/interactions.d.ts +6 -0
  48. package/lib/types/interactions.js +1 -0
  49. package/lib/types/log/interaction.d.ts +2 -1
  50. package/lib/types/logto-config/index.d.ts +1104 -18
  51. package/lib/types/logto-config/jwt-customizer.d.ts +2396 -24
  52. package/lib/types/logto-config/jwt-customizer.js +50 -1
  53. package/lib/types/logto-config/oidc-provider.d.ts +6 -6
  54. package/lib/types/mfa.d.ts +10 -10
  55. package/lib/types/sign-in-experience.d.ts +2 -2
  56. package/lib/types/sso-connector.d.ts +23 -0
  57. package/lib/types/sso-connector.js +3 -0
  58. package/lib/types/tenant.d.ts +1 -0
  59. package/lib/types/tenant.js +1 -0
  60. package/lib/types/user.d.ts +11 -0
  61. package/lib/types/user.js +3 -0
  62. package/lib/types/verification-records/backup-code-verification.d.ts +29 -0
  63. package/lib/types/verification-records/backup-code-verification.js +9 -0
  64. package/lib/types/verification-records/code-verification.d.ts +89 -0
  65. package/lib/types/verification-records/code-verification.js +22 -0
  66. package/lib/types/verification-records/enterprise-sso-verification.d.ts +68 -0
  67. package/lib/types/verification-records/enterprise-sso-verification.js +10 -0
  68. package/lib/types/verification-records/index.d.ts +16 -0
  69. package/lib/types/verification-records/index.js +16 -0
  70. package/lib/types/verification-records/new-password-identity-verification.d.ts +54 -0
  71. package/lib/types/verification-records/new-password-identity-verification.js +16 -0
  72. package/lib/types/verification-records/one-time-token-verification.d.ts +55 -0
  73. package/lib/types/verification-records/one-time-token-verification.js +13 -0
  74. package/lib/types/verification-records/password-verification.d.ts +40 -0
  75. package/lib/types/verification-records/password-verification.js +9 -0
  76. package/lib/types/verification-records/social-verification.d.ts +106 -0
  77. package/lib/types/verification-records/social-verification.js +10 -0
  78. package/lib/types/verification-records/totp-verification.d.ts +29 -0
  79. package/lib/types/verification-records/totp-verification.js +9 -0
  80. package/lib/types/verification-records/web-authn-verification.d.ts +80 -0
  81. package/lib/types/verification-records/web-authn-verification.js +12 -0
  82. package/package.json +1 -1
  83. package/tables/account_centers.sql +1 -0
  84. package/tables/connectors.sql +2 -0
  85. package/tables/custom_profile_fields.sql +31 -0
  86. package/tables/oidc_model_instances.sql +2 -0
  87. package/tables/oidc_session_extensions.sql +18 -0
  88. package/tables/secret_connector_relations.sql +78 -0
  89. package/tables/secrets.sql +26 -0
  90. package/tables/user_sso_identities.sql +8 -0
  91. package/tables/users.sql +1 -1
  92. /package/lib/{foundations/jsonb-types/verification-records.d.ts → types/verification-records/verification-type.d.ts} +0 -0
  93. /package/lib/{foundations/jsonb-types/verification-records.js → types/verification-records/verification-type.js} +0 -0
@@ -1,6 +1,7 @@
1
1
  import { type ZodType, z } from 'zod';
2
2
  import { type Organization, type Role, type UserSsoIdentity } from '../../db-entries/index.js';
3
3
  import { type MfaFactors } from '../../foundations/index.js';
4
+ import { InteractionEvent } from '../interactions.js';
4
5
  import { GrantType } from '../oidc-config.js';
5
6
  import { type ScopeResponse } from '../scope.js';
6
7
  import { type UserInfo } from '../user.js';
@@ -110,6 +111,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
110
111
  publicKey: string;
111
112
  counter: number;
112
113
  agent: string;
114
+ name?: string | undefined;
113
115
  lastUsedAt?: string | undefined;
114
116
  transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
115
117
  } | {
@@ -135,6 +137,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
135
137
  publicKey: string;
136
138
  counter: number;
137
139
  agent: string;
140
+ name?: string | undefined;
138
141
  lastUsedAt?: string | undefined;
139
142
  transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
140
143
  } | {
@@ -161,6 +164,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
161
164
  identityId: ZodType<string, z.ZodTypeDef, string>;
162
165
  detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
163
166
  createdAt: ZodType<number, z.ZodTypeDef, number>;
167
+ updatedAt: ZodType<number, z.ZodTypeDef, number>;
164
168
  ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
165
169
  }, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
166
170
  issuer: string;
@@ -366,6 +370,558 @@ export declare const jwtCustomizerGrantContextGuard: z.ZodObject<{
366
370
  subjectTokenContext: Record<string, import("@withtyped/server/lib/types.js").Json>;
367
371
  }>;
368
372
  export type JwtCustomizerGrantContext = z.infer<typeof jwtCustomizerGrantContextGuard>;
373
+ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
374
+ interactionEvent: z.ZodNativeEnum<typeof InteractionEvent>;
375
+ userId: z.ZodString;
376
+ verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
377
+ id: z.ZodString;
378
+ type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
379
+ identifier: z.ZodObject<{
380
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
381
+ value: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ value: string;
384
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
385
+ }, {
386
+ value: string;
387
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
388
+ }>;
389
+ verified: z.ZodBoolean;
390
+ }, "strip", z.ZodTypeAny, {
391
+ type: import("../index.js").VerificationType.Password;
392
+ id: string;
393
+ identifier: {
394
+ value: string;
395
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
396
+ };
397
+ verified: boolean;
398
+ }, {
399
+ type: import("../index.js").VerificationType.Password;
400
+ id: string;
401
+ identifier: {
402
+ value: string;
403
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
404
+ };
405
+ verified: boolean;
406
+ }>, z.ZodObject<{
407
+ id: z.ZodString;
408
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
409
+ verified: z.ZodBoolean;
410
+ } & {
411
+ type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
412
+ identifier: z.ZodObject<{
413
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
414
+ value: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ value: string;
417
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
418
+ }, {
419
+ value: string;
420
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
421
+ }>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ type: import("../index.js").VerificationType.EmailVerificationCode;
424
+ id: string;
425
+ identifier: {
426
+ value: string;
427
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
428
+ };
429
+ templateType: import("@logto/connector-kit").TemplateType;
430
+ verified: boolean;
431
+ }, {
432
+ type: import("../index.js").VerificationType.EmailVerificationCode;
433
+ id: string;
434
+ identifier: {
435
+ value: string;
436
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
437
+ };
438
+ templateType: import("@logto/connector-kit").TemplateType;
439
+ verified: boolean;
440
+ }>, z.ZodObject<{
441
+ id: z.ZodString;
442
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
443
+ verified: z.ZodBoolean;
444
+ } & {
445
+ type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
446
+ identifier: z.ZodObject<{
447
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
448
+ value: z.ZodString;
449
+ }, "strip", z.ZodTypeAny, {
450
+ value: string;
451
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
452
+ }, {
453
+ value: string;
454
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
455
+ }>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
458
+ id: string;
459
+ identifier: {
460
+ value: string;
461
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
462
+ };
463
+ templateType: import("@logto/connector-kit").TemplateType;
464
+ verified: boolean;
465
+ }, {
466
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
467
+ id: string;
468
+ identifier: {
469
+ value: string;
470
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
471
+ };
472
+ templateType: import("@logto/connector-kit").TemplateType;
473
+ verified: boolean;
474
+ }>, z.ZodObject<Omit<{
475
+ id: z.ZodString;
476
+ connectorId: z.ZodString;
477
+ type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
478
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
479
+ id: z.ZodString;
480
+ email: z.ZodOptional<z.ZodString>;
481
+ phone: z.ZodOptional<z.ZodString>;
482
+ name: z.ZodOptional<z.ZodString>;
483
+ avatar: z.ZodOptional<z.ZodString>;
484
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ id: string;
487
+ name?: string | undefined;
488
+ email?: string | undefined;
489
+ phone?: string | undefined;
490
+ avatar?: string | undefined;
491
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
492
+ }, {
493
+ id: string;
494
+ name?: string | undefined;
495
+ email?: string | undefined;
496
+ phone?: string | undefined;
497
+ avatar?: string | undefined;
498
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
499
+ }>>;
500
+ connectorSession: z.ZodOptional<z.ZodObject<{
501
+ nonce: z.ZodOptional<z.ZodString>;
502
+ redirectUri: z.ZodOptional<z.ZodString>;
503
+ connectorId: z.ZodOptional<z.ZodString>;
504
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
505
+ jti: z.ZodOptional<z.ZodString>;
506
+ state: z.ZodOptional<z.ZodString>;
507
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
508
+ nonce: z.ZodOptional<z.ZodString>;
509
+ redirectUri: z.ZodOptional<z.ZodString>;
510
+ connectorId: z.ZodOptional<z.ZodString>;
511
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
512
+ jti: z.ZodOptional<z.ZodString>;
513
+ state: z.ZodOptional<z.ZodString>;
514
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
515
+ nonce: z.ZodOptional<z.ZodString>;
516
+ redirectUri: z.ZodOptional<z.ZodString>;
517
+ connectorId: z.ZodOptional<z.ZodString>;
518
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
519
+ jti: z.ZodOptional<z.ZodString>;
520
+ state: z.ZodOptional<z.ZodString>;
521
+ }, z.ZodUnknown, "strip">>>;
522
+ }, "connectorSession">, "strip", z.ZodTypeAny, {
523
+ type: import("../index.js").VerificationType.Social;
524
+ id: string;
525
+ connectorId: string;
526
+ socialUserInfo?: {
527
+ id: string;
528
+ name?: string | undefined;
529
+ email?: string | undefined;
530
+ phone?: string | undefined;
531
+ avatar?: string | undefined;
532
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
533
+ } | undefined;
534
+ }, {
535
+ type: import("../index.js").VerificationType.Social;
536
+ id: string;
537
+ connectorId: string;
538
+ socialUserInfo?: {
539
+ id: string;
540
+ name?: string | undefined;
541
+ email?: string | undefined;
542
+ phone?: string | undefined;
543
+ avatar?: string | undefined;
544
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
545
+ } | undefined;
546
+ }>, z.ZodObject<{
547
+ id: z.ZodString;
548
+ connectorId: z.ZodString;
549
+ type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
550
+ issuer: z.ZodOptional<z.ZodString>;
551
+ } & {
552
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
553
+ id: z.ZodString;
554
+ email: z.ZodOptional<z.ZodString>;
555
+ phone: z.ZodOptional<z.ZodString>;
556
+ name: z.ZodOptional<z.ZodString>;
557
+ avatar: z.ZodOptional<z.ZodString>;
558
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
559
+ }, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
560
+ id: string;
561
+ name?: string | undefined;
562
+ email?: string | undefined;
563
+ phone?: string | undefined;
564
+ avatar?: string | undefined;
565
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
566
+ }, {
567
+ id: string;
568
+ name?: string | undefined;
569
+ email?: string | undefined;
570
+ phone?: string | undefined;
571
+ avatar?: string | undefined;
572
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
573
+ }>>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: import("../index.js").VerificationType.EnterpriseSso;
576
+ id: string;
577
+ connectorId: string;
578
+ issuer?: string | undefined;
579
+ enterpriseSsoUserInfo?: {
580
+ id: string;
581
+ name?: string | undefined;
582
+ email?: string | undefined;
583
+ phone?: string | undefined;
584
+ avatar?: string | undefined;
585
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
586
+ } | undefined;
587
+ }, {
588
+ type: import("../index.js").VerificationType.EnterpriseSso;
589
+ id: string;
590
+ connectorId: string;
591
+ issuer?: string | undefined;
592
+ enterpriseSsoUserInfo?: {
593
+ id: string;
594
+ name?: string | undefined;
595
+ email?: string | undefined;
596
+ phone?: string | undefined;
597
+ avatar?: string | undefined;
598
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
599
+ } | undefined;
600
+ }>, z.ZodObject<Omit<{
601
+ id: z.ZodString;
602
+ type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
603
+ userId: z.ZodString;
604
+ secret: z.ZodOptional<z.ZodString>;
605
+ verified: z.ZodBoolean;
606
+ }, "secret">, "strip", z.ZodTypeAny, {
607
+ type: import("../index.js").VerificationType.TOTP;
608
+ id: string;
609
+ userId: string;
610
+ verified: boolean;
611
+ }, {
612
+ type: import("../index.js").VerificationType.TOTP;
613
+ id: string;
614
+ userId: string;
615
+ verified: boolean;
616
+ }>, z.ZodObject<Omit<{
617
+ id: z.ZodString;
618
+ type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
619
+ userId: z.ZodString;
620
+ code: z.ZodOptional<z.ZodString>;
621
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
622
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
623
+ type: import("../index.js").VerificationType.BackupCode;
624
+ id: string;
625
+ userId: string;
626
+ code?: string | undefined;
627
+ }, {
628
+ type: import("../index.js").VerificationType.BackupCode;
629
+ id: string;
630
+ userId: string;
631
+ code?: string | undefined;
632
+ }>, z.ZodObject<Omit<{
633
+ id: z.ZodString;
634
+ type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
635
+ userId: z.ZodString;
636
+ verified: z.ZodBoolean;
637
+ registrationChallenge: z.ZodOptional<z.ZodString>;
638
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
639
+ registrationInfo: z.ZodOptional<z.ZodObject<{
640
+ type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
641
+ credentialId: z.ZodString;
642
+ publicKey: z.ZodString;
643
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
644
+ counter: z.ZodNumber;
645
+ agent: z.ZodString;
646
+ name: z.ZodOptional<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
649
+ credentialId: string;
650
+ publicKey: string;
651
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
652
+ counter: number;
653
+ agent: string;
654
+ name?: string | undefined;
655
+ }, {
656
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
657
+ credentialId: string;
658
+ publicKey: string;
659
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
660
+ counter: number;
661
+ agent: string;
662
+ name?: string | undefined;
663
+ }>>;
664
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
665
+ type: import("../index.js").VerificationType.WebAuthn;
666
+ id: string;
667
+ userId: string;
668
+ verified: boolean;
669
+ }, {
670
+ type: import("../index.js").VerificationType.WebAuthn;
671
+ id: string;
672
+ userId: string;
673
+ verified: boolean;
674
+ }>, z.ZodObject<{
675
+ id: z.ZodString;
676
+ type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
677
+ verified: z.ZodBoolean;
678
+ identifier: z.ZodObject<{
679
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
680
+ value: z.ZodString;
681
+ }, "strip", z.ZodTypeAny, {
682
+ value: string;
683
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
684
+ }, {
685
+ value: string;
686
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
687
+ }>;
688
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
689
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ jitOrganizationIds?: string[] | undefined;
692
+ }, {
693
+ jitOrganizationIds?: string[] | undefined;
694
+ }>>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: import("../index.js").VerificationType.OneTimeToken;
697
+ id: string;
698
+ identifier: {
699
+ value: string;
700
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
701
+ };
702
+ verified: boolean;
703
+ oneTimeTokenContext?: {
704
+ jitOrganizationIds?: string[] | undefined;
705
+ } | undefined;
706
+ }, {
707
+ type: import("../index.js").VerificationType.OneTimeToken;
708
+ id: string;
709
+ identifier: {
710
+ value: string;
711
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
712
+ };
713
+ verified: boolean;
714
+ oneTimeTokenContext?: {
715
+ jitOrganizationIds?: string[] | undefined;
716
+ } | undefined;
717
+ }>, z.ZodObject<Omit<{
718
+ id: z.ZodString;
719
+ type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
720
+ identifier: z.ZodObject<{
721
+ type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
722
+ value: z.ZodString;
723
+ }, "strip", z.ZodTypeAny, {
724
+ value: string;
725
+ type: import("../../foundations/index.js").SignInIdentifier;
726
+ }, {
727
+ value: string;
728
+ type: import("../../foundations/index.js").SignInIdentifier;
729
+ }>;
730
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
731
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
732
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
733
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
734
+ id: string;
735
+ identifier: {
736
+ value: string;
737
+ type: import("../../foundations/index.js").SignInIdentifier;
738
+ };
739
+ }, {
740
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
741
+ id: string;
742
+ identifier: {
743
+ value: string;
744
+ type: import("../../foundations/index.js").SignInIdentifier;
745
+ };
746
+ }>]>, "many">;
747
+ }, "strip", z.ZodTypeAny, {
748
+ userId: string;
749
+ interactionEvent: InteractionEvent;
750
+ verificationRecords: ({
751
+ type: import("../index.js").VerificationType.EmailVerificationCode;
752
+ id: string;
753
+ identifier: {
754
+ value: string;
755
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
756
+ };
757
+ templateType: import("@logto/connector-kit").TemplateType;
758
+ verified: boolean;
759
+ } | {
760
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
761
+ id: string;
762
+ identifier: {
763
+ value: string;
764
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
765
+ };
766
+ templateType: import("@logto/connector-kit").TemplateType;
767
+ verified: boolean;
768
+ } | {
769
+ type: import("../index.js").VerificationType.OneTimeToken;
770
+ id: string;
771
+ identifier: {
772
+ value: string;
773
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
774
+ };
775
+ verified: boolean;
776
+ oneTimeTokenContext?: {
777
+ jitOrganizationIds?: string[] | undefined;
778
+ } | undefined;
779
+ } | {
780
+ type: import("../index.js").VerificationType.Password;
781
+ id: string;
782
+ identifier: {
783
+ value: string;
784
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
785
+ };
786
+ verified: boolean;
787
+ } | {
788
+ type: import("../index.js").VerificationType.Social;
789
+ id: string;
790
+ connectorId: string;
791
+ socialUserInfo?: {
792
+ id: string;
793
+ name?: string | undefined;
794
+ email?: string | undefined;
795
+ phone?: string | undefined;
796
+ avatar?: string | undefined;
797
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
798
+ } | undefined;
799
+ } | {
800
+ type: import("../index.js").VerificationType.EnterpriseSso;
801
+ id: string;
802
+ connectorId: string;
803
+ issuer?: string | undefined;
804
+ enterpriseSsoUserInfo?: {
805
+ id: string;
806
+ name?: string | undefined;
807
+ email?: string | undefined;
808
+ phone?: string | undefined;
809
+ avatar?: string | undefined;
810
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
811
+ } | undefined;
812
+ } | {
813
+ type: import("../index.js").VerificationType.TOTP;
814
+ id: string;
815
+ userId: string;
816
+ verified: boolean;
817
+ } | {
818
+ type: import("../index.js").VerificationType.BackupCode;
819
+ id: string;
820
+ userId: string;
821
+ code?: string | undefined;
822
+ } | {
823
+ type: import("../index.js").VerificationType.WebAuthn;
824
+ id: string;
825
+ userId: string;
826
+ verified: boolean;
827
+ } | {
828
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
829
+ id: string;
830
+ identifier: {
831
+ value: string;
832
+ type: import("../../foundations/index.js").SignInIdentifier;
833
+ };
834
+ })[];
835
+ }, {
836
+ userId: string;
837
+ interactionEvent: InteractionEvent;
838
+ verificationRecords: ({
839
+ type: import("../index.js").VerificationType.EmailVerificationCode;
840
+ id: string;
841
+ identifier: {
842
+ value: string;
843
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
844
+ };
845
+ templateType: import("@logto/connector-kit").TemplateType;
846
+ verified: boolean;
847
+ } | {
848
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
849
+ id: string;
850
+ identifier: {
851
+ value: string;
852
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
853
+ };
854
+ templateType: import("@logto/connector-kit").TemplateType;
855
+ verified: boolean;
856
+ } | {
857
+ type: import("../index.js").VerificationType.OneTimeToken;
858
+ id: string;
859
+ identifier: {
860
+ value: string;
861
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
862
+ };
863
+ verified: boolean;
864
+ oneTimeTokenContext?: {
865
+ jitOrganizationIds?: string[] | undefined;
866
+ } | undefined;
867
+ } | {
868
+ type: import("../index.js").VerificationType.Password;
869
+ id: string;
870
+ identifier: {
871
+ value: string;
872
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
873
+ };
874
+ verified: boolean;
875
+ } | {
876
+ type: import("../index.js").VerificationType.Social;
877
+ id: string;
878
+ connectorId: string;
879
+ socialUserInfo?: {
880
+ id: string;
881
+ name?: string | undefined;
882
+ email?: string | undefined;
883
+ phone?: string | undefined;
884
+ avatar?: string | undefined;
885
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
886
+ } | undefined;
887
+ } | {
888
+ type: import("../index.js").VerificationType.EnterpriseSso;
889
+ id: string;
890
+ connectorId: string;
891
+ issuer?: string | undefined;
892
+ enterpriseSsoUserInfo?: {
893
+ id: string;
894
+ name?: string | undefined;
895
+ email?: string | undefined;
896
+ phone?: string | undefined;
897
+ avatar?: string | undefined;
898
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
899
+ } | undefined;
900
+ } | {
901
+ type: import("../index.js").VerificationType.TOTP;
902
+ id: string;
903
+ userId: string;
904
+ verified: boolean;
905
+ } | {
906
+ type: import("../index.js").VerificationType.BackupCode;
907
+ id: string;
908
+ userId: string;
909
+ code?: string | undefined;
910
+ } | {
911
+ type: import("../index.js").VerificationType.WebAuthn;
912
+ id: string;
913
+ userId: string;
914
+ verified: boolean;
915
+ } | {
916
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
917
+ id: string;
918
+ identifier: {
919
+ value: string;
920
+ type: import("../../foundations/index.js").SignInIdentifier;
921
+ };
922
+ })[];
923
+ }>;
924
+ export type JwtCustomizerUserInteractionContext = z.infer<typeof jwtCustomizerUserInteractionContextGuard>;
369
925
  export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
370
926
  script: z.ZodString;
371
927
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -385,25 +941,25 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
385
941
  }, "strict", z.ZodTypeAny, {
386
942
  grantId?: string | undefined;
387
943
  scope?: string | undefined;
944
+ sessionUid?: string | undefined;
388
945
  accountId?: string | undefined;
946
+ jti?: string | undefined;
389
947
  expiresWithSession?: boolean | undefined;
390
948
  gty?: string | undefined;
391
- sessionUid?: string | undefined;
392
949
  sid?: string | undefined;
393
950
  kind?: "AccessToken" | undefined;
394
- jti?: string | undefined;
395
951
  aud?: string | string[] | undefined;
396
952
  clientId?: string | undefined;
397
953
  }, {
398
954
  grantId?: string | undefined;
399
955
  scope?: string | undefined;
956
+ sessionUid?: string | undefined;
400
957
  accountId?: string | undefined;
958
+ jti?: string | undefined;
401
959
  expiresWithSession?: boolean | undefined;
402
960
  gty?: string | undefined;
403
- sessionUid?: string | undefined;
404
961
  sid?: string | undefined;
405
962
  kind?: "AccessToken" | undefined;
406
- jti?: string | undefined;
407
963
  aud?: string | string[] | undefined;
408
964
  clientId?: string | undefined;
409
965
  }>>;
@@ -478,6 +1034,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
478
1034
  identityId: ZodType<string, z.ZodTypeDef, string>;
479
1035
  detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
480
1036
  createdAt: ZodType<number, z.ZodTypeDef, number>;
1037
+ updatedAt: ZodType<number, z.ZodTypeDef, number>;
481
1038
  ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
482
1039
  }, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
483
1040
  issuer: string;
@@ -728,6 +1285,557 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
728
1285
  type?: GrantType.TokenExchange | undefined;
729
1286
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
730
1287
  }>>;
1288
+ interaction: z.ZodOptional<z.ZodObject<{
1289
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
1290
+ userId: z.ZodOptional<z.ZodString>;
1291
+ verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1292
+ id: z.ZodString;
1293
+ type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
1294
+ identifier: z.ZodObject<{
1295
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
1296
+ value: z.ZodString;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ value: string;
1299
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1300
+ }, {
1301
+ value: string;
1302
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1303
+ }>;
1304
+ verified: z.ZodBoolean;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ type: import("../index.js").VerificationType.Password;
1307
+ id: string;
1308
+ identifier: {
1309
+ value: string;
1310
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1311
+ };
1312
+ verified: boolean;
1313
+ }, {
1314
+ type: import("../index.js").VerificationType.Password;
1315
+ id: string;
1316
+ identifier: {
1317
+ value: string;
1318
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1319
+ };
1320
+ verified: boolean;
1321
+ }>, z.ZodObject<{
1322
+ id: z.ZodString;
1323
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1324
+ verified: z.ZodBoolean;
1325
+ } & {
1326
+ type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
1327
+ identifier: z.ZodObject<{
1328
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1329
+ value: z.ZodString;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ value: string;
1332
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1333
+ }, {
1334
+ value: string;
1335
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1336
+ }>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1339
+ id: string;
1340
+ identifier: {
1341
+ value: string;
1342
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1343
+ };
1344
+ templateType: import("@logto/connector-kit").TemplateType;
1345
+ verified: boolean;
1346
+ }, {
1347
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1348
+ id: string;
1349
+ identifier: {
1350
+ value: string;
1351
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1352
+ };
1353
+ templateType: import("@logto/connector-kit").TemplateType;
1354
+ verified: boolean;
1355
+ }>, z.ZodObject<{
1356
+ id: z.ZodString;
1357
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1358
+ verified: z.ZodBoolean;
1359
+ } & {
1360
+ type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
1361
+ identifier: z.ZodObject<{
1362
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
1363
+ value: z.ZodString;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ value: string;
1366
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1367
+ }, {
1368
+ value: string;
1369
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1370
+ }>;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1373
+ id: string;
1374
+ identifier: {
1375
+ value: string;
1376
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1377
+ };
1378
+ templateType: import("@logto/connector-kit").TemplateType;
1379
+ verified: boolean;
1380
+ }, {
1381
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1382
+ id: string;
1383
+ identifier: {
1384
+ value: string;
1385
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1386
+ };
1387
+ templateType: import("@logto/connector-kit").TemplateType;
1388
+ verified: boolean;
1389
+ }>, z.ZodObject<Omit<{
1390
+ id: z.ZodString;
1391
+ connectorId: z.ZodString;
1392
+ type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
1393
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
1394
+ id: z.ZodString;
1395
+ email: z.ZodOptional<z.ZodString>;
1396
+ phone: z.ZodOptional<z.ZodString>;
1397
+ name: z.ZodOptional<z.ZodString>;
1398
+ avatar: z.ZodOptional<z.ZodString>;
1399
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ id: string;
1402
+ name?: string | undefined;
1403
+ email?: string | undefined;
1404
+ phone?: string | undefined;
1405
+ avatar?: string | undefined;
1406
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1407
+ }, {
1408
+ id: string;
1409
+ name?: string | undefined;
1410
+ email?: string | undefined;
1411
+ phone?: string | undefined;
1412
+ avatar?: string | undefined;
1413
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1414
+ }>>;
1415
+ connectorSession: z.ZodOptional<z.ZodObject<{
1416
+ nonce: z.ZodOptional<z.ZodString>;
1417
+ redirectUri: z.ZodOptional<z.ZodString>;
1418
+ connectorId: z.ZodOptional<z.ZodString>;
1419
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1420
+ jti: z.ZodOptional<z.ZodString>;
1421
+ state: z.ZodOptional<z.ZodString>;
1422
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1423
+ nonce: z.ZodOptional<z.ZodString>;
1424
+ redirectUri: z.ZodOptional<z.ZodString>;
1425
+ connectorId: z.ZodOptional<z.ZodString>;
1426
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1427
+ jti: z.ZodOptional<z.ZodString>;
1428
+ state: z.ZodOptional<z.ZodString>;
1429
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1430
+ nonce: z.ZodOptional<z.ZodString>;
1431
+ redirectUri: z.ZodOptional<z.ZodString>;
1432
+ connectorId: z.ZodOptional<z.ZodString>;
1433
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1434
+ jti: z.ZodOptional<z.ZodString>;
1435
+ state: z.ZodOptional<z.ZodString>;
1436
+ }, z.ZodUnknown, "strip">>>;
1437
+ }, "connectorSession">, "strip", z.ZodTypeAny, {
1438
+ type: import("../index.js").VerificationType.Social;
1439
+ id: string;
1440
+ connectorId: string;
1441
+ socialUserInfo?: {
1442
+ id: string;
1443
+ name?: string | undefined;
1444
+ email?: string | undefined;
1445
+ phone?: string | undefined;
1446
+ avatar?: string | undefined;
1447
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1448
+ } | undefined;
1449
+ }, {
1450
+ type: import("../index.js").VerificationType.Social;
1451
+ id: string;
1452
+ connectorId: string;
1453
+ socialUserInfo?: {
1454
+ id: string;
1455
+ name?: string | undefined;
1456
+ email?: string | undefined;
1457
+ phone?: string | undefined;
1458
+ avatar?: string | undefined;
1459
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1460
+ } | undefined;
1461
+ }>, z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ connectorId: z.ZodString;
1464
+ type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
1465
+ issuer: z.ZodOptional<z.ZodString>;
1466
+ } & {
1467
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
1468
+ id: z.ZodString;
1469
+ email: z.ZodOptional<z.ZodString>;
1470
+ phone: z.ZodOptional<z.ZodString>;
1471
+ name: z.ZodOptional<z.ZodString>;
1472
+ avatar: z.ZodOptional<z.ZodString>;
1473
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1474
+ }, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
1475
+ id: string;
1476
+ name?: string | undefined;
1477
+ email?: string | undefined;
1478
+ phone?: string | undefined;
1479
+ avatar?: string | undefined;
1480
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1481
+ }, {
1482
+ id: string;
1483
+ name?: string | undefined;
1484
+ email?: string | undefined;
1485
+ phone?: string | undefined;
1486
+ avatar?: string | undefined;
1487
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1488
+ }>>;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ type: import("../index.js").VerificationType.EnterpriseSso;
1491
+ id: string;
1492
+ connectorId: string;
1493
+ issuer?: string | undefined;
1494
+ enterpriseSsoUserInfo?: {
1495
+ id: string;
1496
+ name?: string | undefined;
1497
+ email?: string | undefined;
1498
+ phone?: string | undefined;
1499
+ avatar?: string | undefined;
1500
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1501
+ } | undefined;
1502
+ }, {
1503
+ type: import("../index.js").VerificationType.EnterpriseSso;
1504
+ id: string;
1505
+ connectorId: string;
1506
+ issuer?: string | undefined;
1507
+ enterpriseSsoUserInfo?: {
1508
+ id: string;
1509
+ name?: string | undefined;
1510
+ email?: string | undefined;
1511
+ phone?: string | undefined;
1512
+ avatar?: string | undefined;
1513
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1514
+ } | undefined;
1515
+ }>, z.ZodObject<Omit<{
1516
+ id: z.ZodString;
1517
+ type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
1518
+ userId: z.ZodString;
1519
+ secret: z.ZodOptional<z.ZodString>;
1520
+ verified: z.ZodBoolean;
1521
+ }, "secret">, "strip", z.ZodTypeAny, {
1522
+ type: import("../index.js").VerificationType.TOTP;
1523
+ id: string;
1524
+ userId: string;
1525
+ verified: boolean;
1526
+ }, {
1527
+ type: import("../index.js").VerificationType.TOTP;
1528
+ id: string;
1529
+ userId: string;
1530
+ verified: boolean;
1531
+ }>, z.ZodObject<Omit<{
1532
+ id: z.ZodString;
1533
+ type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
1534
+ userId: z.ZodString;
1535
+ code: z.ZodOptional<z.ZodString>;
1536
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1537
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
1538
+ type: import("../index.js").VerificationType.BackupCode;
1539
+ id: string;
1540
+ userId: string;
1541
+ code?: string | undefined;
1542
+ }, {
1543
+ type: import("../index.js").VerificationType.BackupCode;
1544
+ id: string;
1545
+ userId: string;
1546
+ code?: string | undefined;
1547
+ }>, z.ZodObject<Omit<{
1548
+ id: z.ZodString;
1549
+ type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
1550
+ userId: z.ZodString;
1551
+ verified: z.ZodBoolean;
1552
+ registrationChallenge: z.ZodOptional<z.ZodString>;
1553
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
1554
+ registrationInfo: z.ZodOptional<z.ZodObject<{
1555
+ type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
1556
+ credentialId: z.ZodString;
1557
+ publicKey: z.ZodString;
1558
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
1559
+ counter: z.ZodNumber;
1560
+ agent: z.ZodString;
1561
+ name: z.ZodOptional<z.ZodString>;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
1564
+ credentialId: string;
1565
+ publicKey: string;
1566
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1567
+ counter: number;
1568
+ agent: string;
1569
+ name?: string | undefined;
1570
+ }, {
1571
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
1572
+ credentialId: string;
1573
+ publicKey: string;
1574
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1575
+ counter: number;
1576
+ agent: string;
1577
+ name?: string | undefined;
1578
+ }>>;
1579
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
1580
+ type: import("../index.js").VerificationType.WebAuthn;
1581
+ id: string;
1582
+ userId: string;
1583
+ verified: boolean;
1584
+ }, {
1585
+ type: import("../index.js").VerificationType.WebAuthn;
1586
+ id: string;
1587
+ userId: string;
1588
+ verified: boolean;
1589
+ }>, z.ZodObject<{
1590
+ id: z.ZodString;
1591
+ type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
1592
+ verified: z.ZodBoolean;
1593
+ identifier: z.ZodObject<{
1594
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
1595
+ value: z.ZodString;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ value: string;
1598
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1599
+ }, {
1600
+ value: string;
1601
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1602
+ }>;
1603
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
1604
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ jitOrganizationIds?: string[] | undefined;
1607
+ }, {
1608
+ jitOrganizationIds?: string[] | undefined;
1609
+ }>>;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ type: import("../index.js").VerificationType.OneTimeToken;
1612
+ id: string;
1613
+ identifier: {
1614
+ value: string;
1615
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1616
+ };
1617
+ verified: boolean;
1618
+ oneTimeTokenContext?: {
1619
+ jitOrganizationIds?: string[] | undefined;
1620
+ } | undefined;
1621
+ }, {
1622
+ type: import("../index.js").VerificationType.OneTimeToken;
1623
+ id: string;
1624
+ identifier: {
1625
+ value: string;
1626
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1627
+ };
1628
+ verified: boolean;
1629
+ oneTimeTokenContext?: {
1630
+ jitOrganizationIds?: string[] | undefined;
1631
+ } | undefined;
1632
+ }>, z.ZodObject<Omit<{
1633
+ id: z.ZodString;
1634
+ type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
1635
+ identifier: z.ZodObject<{
1636
+ type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
1637
+ value: z.ZodString;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ value: string;
1640
+ type: import("../../foundations/index.js").SignInIdentifier;
1641
+ }, {
1642
+ value: string;
1643
+ type: import("../../foundations/index.js").SignInIdentifier;
1644
+ }>;
1645
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
1646
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
1647
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
1648
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1649
+ id: string;
1650
+ identifier: {
1651
+ value: string;
1652
+ type: import("../../foundations/index.js").SignInIdentifier;
1653
+ };
1654
+ }, {
1655
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1656
+ id: string;
1657
+ identifier: {
1658
+ value: string;
1659
+ type: import("../../foundations/index.js").SignInIdentifier;
1660
+ };
1661
+ }>]>, "many">>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ userId?: string | undefined;
1664
+ interactionEvent?: InteractionEvent | undefined;
1665
+ verificationRecords?: ({
1666
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1667
+ id: string;
1668
+ identifier: {
1669
+ value: string;
1670
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1671
+ };
1672
+ templateType: import("@logto/connector-kit").TemplateType;
1673
+ verified: boolean;
1674
+ } | {
1675
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1676
+ id: string;
1677
+ identifier: {
1678
+ value: string;
1679
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1680
+ };
1681
+ templateType: import("@logto/connector-kit").TemplateType;
1682
+ verified: boolean;
1683
+ } | {
1684
+ type: import("../index.js").VerificationType.OneTimeToken;
1685
+ id: string;
1686
+ identifier: {
1687
+ value: string;
1688
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1689
+ };
1690
+ verified: boolean;
1691
+ oneTimeTokenContext?: {
1692
+ jitOrganizationIds?: string[] | undefined;
1693
+ } | undefined;
1694
+ } | {
1695
+ type: import("../index.js").VerificationType.Password;
1696
+ id: string;
1697
+ identifier: {
1698
+ value: string;
1699
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1700
+ };
1701
+ verified: boolean;
1702
+ } | {
1703
+ type: import("../index.js").VerificationType.Social;
1704
+ id: string;
1705
+ connectorId: string;
1706
+ socialUserInfo?: {
1707
+ id: string;
1708
+ name?: string | undefined;
1709
+ email?: string | undefined;
1710
+ phone?: string | undefined;
1711
+ avatar?: string | undefined;
1712
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1713
+ } | undefined;
1714
+ } | {
1715
+ type: import("../index.js").VerificationType.EnterpriseSso;
1716
+ id: string;
1717
+ connectorId: string;
1718
+ issuer?: string | undefined;
1719
+ enterpriseSsoUserInfo?: {
1720
+ id: string;
1721
+ name?: string | undefined;
1722
+ email?: string | undefined;
1723
+ phone?: string | undefined;
1724
+ avatar?: string | undefined;
1725
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1726
+ } | undefined;
1727
+ } | {
1728
+ type: import("../index.js").VerificationType.TOTP;
1729
+ id: string;
1730
+ userId: string;
1731
+ verified: boolean;
1732
+ } | {
1733
+ type: import("../index.js").VerificationType.BackupCode;
1734
+ id: string;
1735
+ userId: string;
1736
+ code?: string | undefined;
1737
+ } | {
1738
+ type: import("../index.js").VerificationType.WebAuthn;
1739
+ id: string;
1740
+ userId: string;
1741
+ verified: boolean;
1742
+ } | {
1743
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1744
+ id: string;
1745
+ identifier: {
1746
+ value: string;
1747
+ type: import("../../foundations/index.js").SignInIdentifier;
1748
+ };
1749
+ })[] | undefined;
1750
+ }, {
1751
+ userId?: string | undefined;
1752
+ interactionEvent?: InteractionEvent | undefined;
1753
+ verificationRecords?: ({
1754
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1755
+ id: string;
1756
+ identifier: {
1757
+ value: string;
1758
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1759
+ };
1760
+ templateType: import("@logto/connector-kit").TemplateType;
1761
+ verified: boolean;
1762
+ } | {
1763
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1764
+ id: string;
1765
+ identifier: {
1766
+ value: string;
1767
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1768
+ };
1769
+ templateType: import("@logto/connector-kit").TemplateType;
1770
+ verified: boolean;
1771
+ } | {
1772
+ type: import("../index.js").VerificationType.OneTimeToken;
1773
+ id: string;
1774
+ identifier: {
1775
+ value: string;
1776
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1777
+ };
1778
+ verified: boolean;
1779
+ oneTimeTokenContext?: {
1780
+ jitOrganizationIds?: string[] | undefined;
1781
+ } | undefined;
1782
+ } | {
1783
+ type: import("../index.js").VerificationType.Password;
1784
+ id: string;
1785
+ identifier: {
1786
+ value: string;
1787
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1788
+ };
1789
+ verified: boolean;
1790
+ } | {
1791
+ type: import("../index.js").VerificationType.Social;
1792
+ id: string;
1793
+ connectorId: string;
1794
+ socialUserInfo?: {
1795
+ id: string;
1796
+ name?: string | undefined;
1797
+ email?: string | undefined;
1798
+ phone?: string | undefined;
1799
+ avatar?: string | undefined;
1800
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1801
+ } | undefined;
1802
+ } | {
1803
+ type: import("../index.js").VerificationType.EnterpriseSso;
1804
+ id: string;
1805
+ connectorId: string;
1806
+ issuer?: string | undefined;
1807
+ enterpriseSsoUserInfo?: {
1808
+ id: string;
1809
+ name?: string | undefined;
1810
+ email?: string | undefined;
1811
+ phone?: string | undefined;
1812
+ avatar?: string | undefined;
1813
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1814
+ } | undefined;
1815
+ } | {
1816
+ type: import("../index.js").VerificationType.TOTP;
1817
+ id: string;
1818
+ userId: string;
1819
+ verified: boolean;
1820
+ } | {
1821
+ type: import("../index.js").VerificationType.BackupCode;
1822
+ id: string;
1823
+ userId: string;
1824
+ code?: string | undefined;
1825
+ } | {
1826
+ type: import("../index.js").VerificationType.WebAuthn;
1827
+ id: string;
1828
+ userId: string;
1829
+ verified: boolean;
1830
+ } | {
1831
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1832
+ id: string;
1833
+ identifier: {
1834
+ value: string;
1835
+ type: import("../../foundations/index.js").SignInIdentifier;
1836
+ };
1837
+ })[] | undefined;
1838
+ }>>;
731
1839
  }, "strip", z.ZodTypeAny, {
732
1840
  user: {
733
1841
  name?: string | null | undefined;
@@ -801,6 +1909,95 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
801
1909
  type?: GrantType.TokenExchange | undefined;
802
1910
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
803
1911
  } | undefined;
1912
+ interaction?: {
1913
+ userId?: string | undefined;
1914
+ interactionEvent?: InteractionEvent | undefined;
1915
+ verificationRecords?: ({
1916
+ type: import("../index.js").VerificationType.EmailVerificationCode;
1917
+ id: string;
1918
+ identifier: {
1919
+ value: string;
1920
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1921
+ };
1922
+ templateType: import("@logto/connector-kit").TemplateType;
1923
+ verified: boolean;
1924
+ } | {
1925
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
1926
+ id: string;
1927
+ identifier: {
1928
+ value: string;
1929
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
1930
+ };
1931
+ templateType: import("@logto/connector-kit").TemplateType;
1932
+ verified: boolean;
1933
+ } | {
1934
+ type: import("../index.js").VerificationType.OneTimeToken;
1935
+ id: string;
1936
+ identifier: {
1937
+ value: string;
1938
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
1939
+ };
1940
+ verified: boolean;
1941
+ oneTimeTokenContext?: {
1942
+ jitOrganizationIds?: string[] | undefined;
1943
+ } | undefined;
1944
+ } | {
1945
+ type: import("../index.js").VerificationType.Password;
1946
+ id: string;
1947
+ identifier: {
1948
+ value: string;
1949
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
1950
+ };
1951
+ verified: boolean;
1952
+ } | {
1953
+ type: import("../index.js").VerificationType.Social;
1954
+ id: string;
1955
+ connectorId: string;
1956
+ socialUserInfo?: {
1957
+ id: string;
1958
+ name?: string | undefined;
1959
+ email?: string | undefined;
1960
+ phone?: string | undefined;
1961
+ avatar?: string | undefined;
1962
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1963
+ } | undefined;
1964
+ } | {
1965
+ type: import("../index.js").VerificationType.EnterpriseSso;
1966
+ id: string;
1967
+ connectorId: string;
1968
+ issuer?: string | undefined;
1969
+ enterpriseSsoUserInfo?: {
1970
+ id: string;
1971
+ name?: string | undefined;
1972
+ email?: string | undefined;
1973
+ phone?: string | undefined;
1974
+ avatar?: string | undefined;
1975
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1976
+ } | undefined;
1977
+ } | {
1978
+ type: import("../index.js").VerificationType.TOTP;
1979
+ id: string;
1980
+ userId: string;
1981
+ verified: boolean;
1982
+ } | {
1983
+ type: import("../index.js").VerificationType.BackupCode;
1984
+ id: string;
1985
+ userId: string;
1986
+ code?: string | undefined;
1987
+ } | {
1988
+ type: import("../index.js").VerificationType.WebAuthn;
1989
+ id: string;
1990
+ userId: string;
1991
+ verified: boolean;
1992
+ } | {
1993
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
1994
+ id: string;
1995
+ identifier: {
1996
+ value: string;
1997
+ type: import("../../foundations/index.js").SignInIdentifier;
1998
+ };
1999
+ })[] | undefined;
2000
+ } | undefined;
804
2001
  }, {
805
2002
  user: {
806
2003
  name?: string | null | undefined;
@@ -874,6 +2071,95 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
874
2071
  type?: GrantType.TokenExchange | undefined;
875
2072
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
876
2073
  } | undefined;
2074
+ interaction?: {
2075
+ userId?: string | undefined;
2076
+ interactionEvent?: InteractionEvent | undefined;
2077
+ verificationRecords?: ({
2078
+ type: import("../index.js").VerificationType.EmailVerificationCode;
2079
+ id: string;
2080
+ identifier: {
2081
+ value: string;
2082
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2083
+ };
2084
+ templateType: import("@logto/connector-kit").TemplateType;
2085
+ verified: boolean;
2086
+ } | {
2087
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
2088
+ id: string;
2089
+ identifier: {
2090
+ value: string;
2091
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2092
+ };
2093
+ templateType: import("@logto/connector-kit").TemplateType;
2094
+ verified: boolean;
2095
+ } | {
2096
+ type: import("../index.js").VerificationType.OneTimeToken;
2097
+ id: string;
2098
+ identifier: {
2099
+ value: string;
2100
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2101
+ };
2102
+ verified: boolean;
2103
+ oneTimeTokenContext?: {
2104
+ jitOrganizationIds?: string[] | undefined;
2105
+ } | undefined;
2106
+ } | {
2107
+ type: import("../index.js").VerificationType.Password;
2108
+ id: string;
2109
+ identifier: {
2110
+ value: string;
2111
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2112
+ };
2113
+ verified: boolean;
2114
+ } | {
2115
+ type: import("../index.js").VerificationType.Social;
2116
+ id: string;
2117
+ connectorId: string;
2118
+ socialUserInfo?: {
2119
+ id: string;
2120
+ name?: string | undefined;
2121
+ email?: string | undefined;
2122
+ phone?: string | undefined;
2123
+ avatar?: string | undefined;
2124
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2125
+ } | undefined;
2126
+ } | {
2127
+ type: import("../index.js").VerificationType.EnterpriseSso;
2128
+ id: string;
2129
+ connectorId: string;
2130
+ issuer?: string | undefined;
2131
+ enterpriseSsoUserInfo?: {
2132
+ id: string;
2133
+ name?: string | undefined;
2134
+ email?: string | undefined;
2135
+ phone?: string | undefined;
2136
+ avatar?: string | undefined;
2137
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2138
+ } | undefined;
2139
+ } | {
2140
+ type: import("../index.js").VerificationType.TOTP;
2141
+ id: string;
2142
+ userId: string;
2143
+ verified: boolean;
2144
+ } | {
2145
+ type: import("../index.js").VerificationType.BackupCode;
2146
+ id: string;
2147
+ userId: string;
2148
+ code?: string | undefined;
2149
+ } | {
2150
+ type: import("../index.js").VerificationType.WebAuthn;
2151
+ id: string;
2152
+ userId: string;
2153
+ verified: boolean;
2154
+ } | {
2155
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
2156
+ id: string;
2157
+ identifier: {
2158
+ value: string;
2159
+ type: import("../../foundations/index.js").SignInIdentifier;
2160
+ };
2161
+ })[] | undefined;
2162
+ } | undefined;
877
2163
  }>>;
878
2164
  }, "strict", z.ZodTypeAny, {
879
2165
  script: string;
@@ -951,17 +2237,106 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
951
2237
  type?: GrantType.TokenExchange | undefined;
952
2238
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
953
2239
  } | undefined;
2240
+ interaction?: {
2241
+ userId?: string | undefined;
2242
+ interactionEvent?: InteractionEvent | undefined;
2243
+ verificationRecords?: ({
2244
+ type: import("../index.js").VerificationType.EmailVerificationCode;
2245
+ id: string;
2246
+ identifier: {
2247
+ value: string;
2248
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2249
+ };
2250
+ templateType: import("@logto/connector-kit").TemplateType;
2251
+ verified: boolean;
2252
+ } | {
2253
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
2254
+ id: string;
2255
+ identifier: {
2256
+ value: string;
2257
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2258
+ };
2259
+ templateType: import("@logto/connector-kit").TemplateType;
2260
+ verified: boolean;
2261
+ } | {
2262
+ type: import("../index.js").VerificationType.OneTimeToken;
2263
+ id: string;
2264
+ identifier: {
2265
+ value: string;
2266
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2267
+ };
2268
+ verified: boolean;
2269
+ oneTimeTokenContext?: {
2270
+ jitOrganizationIds?: string[] | undefined;
2271
+ } | undefined;
2272
+ } | {
2273
+ type: import("../index.js").VerificationType.Password;
2274
+ id: string;
2275
+ identifier: {
2276
+ value: string;
2277
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2278
+ };
2279
+ verified: boolean;
2280
+ } | {
2281
+ type: import("../index.js").VerificationType.Social;
2282
+ id: string;
2283
+ connectorId: string;
2284
+ socialUserInfo?: {
2285
+ id: string;
2286
+ name?: string | undefined;
2287
+ email?: string | undefined;
2288
+ phone?: string | undefined;
2289
+ avatar?: string | undefined;
2290
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2291
+ } | undefined;
2292
+ } | {
2293
+ type: import("../index.js").VerificationType.EnterpriseSso;
2294
+ id: string;
2295
+ connectorId: string;
2296
+ issuer?: string | undefined;
2297
+ enterpriseSsoUserInfo?: {
2298
+ id: string;
2299
+ name?: string | undefined;
2300
+ email?: string | undefined;
2301
+ phone?: string | undefined;
2302
+ avatar?: string | undefined;
2303
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2304
+ } | undefined;
2305
+ } | {
2306
+ type: import("../index.js").VerificationType.TOTP;
2307
+ id: string;
2308
+ userId: string;
2309
+ verified: boolean;
2310
+ } | {
2311
+ type: import("../index.js").VerificationType.BackupCode;
2312
+ id: string;
2313
+ userId: string;
2314
+ code?: string | undefined;
2315
+ } | {
2316
+ type: import("../index.js").VerificationType.WebAuthn;
2317
+ id: string;
2318
+ userId: string;
2319
+ verified: boolean;
2320
+ } | {
2321
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
2322
+ id: string;
2323
+ identifier: {
2324
+ value: string;
2325
+ type: import("../../foundations/index.js").SignInIdentifier;
2326
+ };
2327
+ })[] | undefined;
2328
+ } | undefined;
954
2329
  } | undefined;
955
2330
  tokenSample?: {
956
2331
  grantId?: string | undefined;
957
2332
  scope?: string | undefined;
2333
+ sessionUid?: string | undefined;
958
2334
  accountId?: string | undefined;
2335
+ jti?: string | undefined;
959
2336
  expiresWithSession?: boolean | undefined;
960
2337
  gty?: string | undefined;
961
- sessionUid?: string | undefined;
962
2338
  sid?: string | undefined;
963
2339
  kind?: "AccessToken" | undefined;
964
- jti?: string | undefined;
965
2340
  aud?: string | string[] | undefined;
966
2341
  clientId?: string | undefined;
967
2342
  } | undefined;
@@ -1041,17 +2416,106 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1041
2416
  type?: GrantType.TokenExchange | undefined;
1042
2417
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1043
2418
  } | undefined;
2419
+ interaction?: {
2420
+ userId?: string | undefined;
2421
+ interactionEvent?: InteractionEvent | undefined;
2422
+ verificationRecords?: ({
2423
+ type: import("../index.js").VerificationType.EmailVerificationCode;
2424
+ id: string;
2425
+ identifier: {
2426
+ value: string;
2427
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2428
+ };
2429
+ templateType: import("@logto/connector-kit").TemplateType;
2430
+ verified: boolean;
2431
+ } | {
2432
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
2433
+ id: string;
2434
+ identifier: {
2435
+ value: string;
2436
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
2437
+ };
2438
+ templateType: import("@logto/connector-kit").TemplateType;
2439
+ verified: boolean;
2440
+ } | {
2441
+ type: import("../index.js").VerificationType.OneTimeToken;
2442
+ id: string;
2443
+ identifier: {
2444
+ value: string;
2445
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2446
+ };
2447
+ verified: boolean;
2448
+ oneTimeTokenContext?: {
2449
+ jitOrganizationIds?: string[] | undefined;
2450
+ } | undefined;
2451
+ } | {
2452
+ type: import("../index.js").VerificationType.Password;
2453
+ id: string;
2454
+ identifier: {
2455
+ value: string;
2456
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2457
+ };
2458
+ verified: boolean;
2459
+ } | {
2460
+ type: import("../index.js").VerificationType.Social;
2461
+ id: string;
2462
+ connectorId: string;
2463
+ socialUserInfo?: {
2464
+ id: string;
2465
+ name?: string | undefined;
2466
+ email?: string | undefined;
2467
+ phone?: string | undefined;
2468
+ avatar?: string | undefined;
2469
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2470
+ } | undefined;
2471
+ } | {
2472
+ type: import("../index.js").VerificationType.EnterpriseSso;
2473
+ id: string;
2474
+ connectorId: string;
2475
+ issuer?: string | undefined;
2476
+ enterpriseSsoUserInfo?: {
2477
+ id: string;
2478
+ name?: string | undefined;
2479
+ email?: string | undefined;
2480
+ phone?: string | undefined;
2481
+ avatar?: string | undefined;
2482
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2483
+ } | undefined;
2484
+ } | {
2485
+ type: import("../index.js").VerificationType.TOTP;
2486
+ id: string;
2487
+ userId: string;
2488
+ verified: boolean;
2489
+ } | {
2490
+ type: import("../index.js").VerificationType.BackupCode;
2491
+ id: string;
2492
+ userId: string;
2493
+ code?: string | undefined;
2494
+ } | {
2495
+ type: import("../index.js").VerificationType.WebAuthn;
2496
+ id: string;
2497
+ userId: string;
2498
+ verified: boolean;
2499
+ } | {
2500
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
2501
+ id: string;
2502
+ identifier: {
2503
+ value: string;
2504
+ type: import("../../foundations/index.js").SignInIdentifier;
2505
+ };
2506
+ })[] | undefined;
2507
+ } | undefined;
1044
2508
  } | undefined;
1045
2509
  tokenSample?: {
1046
2510
  grantId?: string | undefined;
1047
2511
  scope?: string | undefined;
2512
+ sessionUid?: string | undefined;
1048
2513
  accountId?: string | undefined;
2514
+ jti?: string | undefined;
1049
2515
  expiresWithSession?: boolean | undefined;
1050
2516
  gty?: string | undefined;
1051
- sessionUid?: string | undefined;
1052
2517
  sid?: string | undefined;
1053
2518
  kind?: "AccessToken" | undefined;
1054
- jti?: string | undefined;
1055
2519
  aud?: string | string[] | undefined;
1056
2520
  clientId?: string | undefined;
1057
2521
  } | undefined;
@@ -1070,14 +2534,14 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
1070
2534
  clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1071
2535
  }, "strict", z.ZodTypeAny, {
1072
2536
  scope?: string | undefined;
1073
- kind?: "ClientCredentials" | undefined;
1074
2537
  jti?: string | undefined;
2538
+ kind?: "ClientCredentials" | undefined;
1075
2539
  aud?: string | string[] | undefined;
1076
2540
  clientId?: string | undefined;
1077
2541
  }, {
1078
2542
  scope?: string | undefined;
1079
- kind?: "ClientCredentials" | undefined;
1080
2543
  jti?: string | undefined;
2544
+ kind?: "ClientCredentials" | undefined;
1081
2545
  aud?: string | string[] | undefined;
1082
2546
  clientId?: string | undefined;
1083
2547
  }>>;
@@ -1087,8 +2551,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
1087
2551
  contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1088
2552
  tokenSample?: {
1089
2553
  scope?: string | undefined;
1090
- kind?: "ClientCredentials" | undefined;
1091
2554
  jti?: string | undefined;
2555
+ kind?: "ClientCredentials" | undefined;
1092
2556
  aud?: string | string[] | undefined;
1093
2557
  clientId?: string | undefined;
1094
2558
  } | undefined;
@@ -1098,8 +2562,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
1098
2562
  contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1099
2563
  tokenSample?: {
1100
2564
  scope?: string | undefined;
1101
- kind?: "ClientCredentials" | undefined;
1102
2565
  jti?: string | undefined;
2566
+ kind?: "ClientCredentials" | undefined;
1103
2567
  aud?: string | string[] | undefined;
1104
2568
  clientId?: string | undefined;
1105
2569
  } | undefined;
@@ -1128,25 +2592,25 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1128
2592
  }, "strict", z.ZodTypeAny, {
1129
2593
  grantId?: string | undefined;
1130
2594
  scope?: string | undefined;
2595
+ sessionUid?: string | undefined;
1131
2596
  accountId?: string | undefined;
2597
+ jti?: string | undefined;
1132
2598
  expiresWithSession?: boolean | undefined;
1133
2599
  gty?: string | undefined;
1134
- sessionUid?: string | undefined;
1135
2600
  sid?: string | undefined;
1136
2601
  kind?: "AccessToken" | undefined;
1137
- jti?: string | undefined;
1138
2602
  aud?: string | string[] | undefined;
1139
2603
  clientId?: string | undefined;
1140
2604
  }, {
1141
2605
  grantId?: string | undefined;
1142
2606
  scope?: string | undefined;
2607
+ sessionUid?: string | undefined;
1143
2608
  accountId?: string | undefined;
2609
+ jti?: string | undefined;
1144
2610
  expiresWithSession?: boolean | undefined;
1145
2611
  gty?: string | undefined;
1146
- sessionUid?: string | undefined;
1147
2612
  sid?: string | undefined;
1148
2613
  kind?: "AccessToken" | undefined;
1149
- jti?: string | undefined;
1150
2614
  aud?: string | string[] | undefined;
1151
2615
  clientId?: string | undefined;
1152
2616
  }>;
@@ -1221,6 +2685,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1221
2685
  identityId: ZodType<string, z.ZodTypeDef, string>;
1222
2686
  detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
1223
2687
  createdAt: ZodType<number, z.ZodTypeDef, number>;
2688
+ updatedAt: ZodType<number, z.ZodTypeDef, number>;
1224
2689
  ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
1225
2690
  }, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
1226
2691
  issuer: string;
@@ -1471,6 +2936,557 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1471
2936
  type?: GrantType.TokenExchange | undefined;
1472
2937
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1473
2938
  }>>;
2939
+ interaction: z.ZodOptional<z.ZodObject<{
2940
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
2941
+ userId: z.ZodOptional<z.ZodString>;
2942
+ verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2943
+ id: z.ZodString;
2944
+ type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
2945
+ identifier: z.ZodObject<{
2946
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
2947
+ value: z.ZodString;
2948
+ }, "strip", z.ZodTypeAny, {
2949
+ value: string;
2950
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2951
+ }, {
2952
+ value: string;
2953
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2954
+ }>;
2955
+ verified: z.ZodBoolean;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ type: import("../index.js").VerificationType.Password;
2958
+ id: string;
2959
+ identifier: {
2960
+ value: string;
2961
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2962
+ };
2963
+ verified: boolean;
2964
+ }, {
2965
+ type: import("../index.js").VerificationType.Password;
2966
+ id: string;
2967
+ identifier: {
2968
+ value: string;
2969
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
2970
+ };
2971
+ verified: boolean;
2972
+ }>, z.ZodObject<{
2973
+ id: z.ZodString;
2974
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
2975
+ verified: z.ZodBoolean;
2976
+ } & {
2977
+ type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
2978
+ identifier: z.ZodObject<{
2979
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
2980
+ value: z.ZodString;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ value: string;
2983
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2984
+ }, {
2985
+ value: string;
2986
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2987
+ }>;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ type: import("../index.js").VerificationType.EmailVerificationCode;
2990
+ id: string;
2991
+ identifier: {
2992
+ value: string;
2993
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
2994
+ };
2995
+ templateType: import("@logto/connector-kit").TemplateType;
2996
+ verified: boolean;
2997
+ }, {
2998
+ type: import("../index.js").VerificationType.EmailVerificationCode;
2999
+ id: string;
3000
+ identifier: {
3001
+ value: string;
3002
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3003
+ };
3004
+ templateType: import("@logto/connector-kit").TemplateType;
3005
+ verified: boolean;
3006
+ }>, z.ZodObject<{
3007
+ id: z.ZodString;
3008
+ templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
3009
+ verified: z.ZodBoolean;
3010
+ } & {
3011
+ type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
3012
+ identifier: z.ZodObject<{
3013
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
3014
+ value: z.ZodString;
3015
+ }, "strip", z.ZodTypeAny, {
3016
+ value: string;
3017
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3018
+ }, {
3019
+ value: string;
3020
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3021
+ }>;
3022
+ }, "strip", z.ZodTypeAny, {
3023
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3024
+ id: string;
3025
+ identifier: {
3026
+ value: string;
3027
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3028
+ };
3029
+ templateType: import("@logto/connector-kit").TemplateType;
3030
+ verified: boolean;
3031
+ }, {
3032
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3033
+ id: string;
3034
+ identifier: {
3035
+ value: string;
3036
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3037
+ };
3038
+ templateType: import("@logto/connector-kit").TemplateType;
3039
+ verified: boolean;
3040
+ }>, z.ZodObject<Omit<{
3041
+ id: z.ZodString;
3042
+ connectorId: z.ZodString;
3043
+ type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
3044
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
3045
+ id: z.ZodString;
3046
+ email: z.ZodOptional<z.ZodString>;
3047
+ phone: z.ZodOptional<z.ZodString>;
3048
+ name: z.ZodOptional<z.ZodString>;
3049
+ avatar: z.ZodOptional<z.ZodString>;
3050
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
3051
+ }, "strip", z.ZodTypeAny, {
3052
+ id: string;
3053
+ name?: string | undefined;
3054
+ email?: string | undefined;
3055
+ phone?: string | undefined;
3056
+ avatar?: string | undefined;
3057
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3058
+ }, {
3059
+ id: string;
3060
+ name?: string | undefined;
3061
+ email?: string | undefined;
3062
+ phone?: string | undefined;
3063
+ avatar?: string | undefined;
3064
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3065
+ }>>;
3066
+ connectorSession: z.ZodOptional<z.ZodObject<{
3067
+ nonce: z.ZodOptional<z.ZodString>;
3068
+ redirectUri: z.ZodOptional<z.ZodString>;
3069
+ connectorId: z.ZodOptional<z.ZodString>;
3070
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
3071
+ jti: z.ZodOptional<z.ZodString>;
3072
+ state: z.ZodOptional<z.ZodString>;
3073
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3074
+ nonce: z.ZodOptional<z.ZodString>;
3075
+ redirectUri: z.ZodOptional<z.ZodString>;
3076
+ connectorId: z.ZodOptional<z.ZodString>;
3077
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
3078
+ jti: z.ZodOptional<z.ZodString>;
3079
+ state: z.ZodOptional<z.ZodString>;
3080
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3081
+ nonce: z.ZodOptional<z.ZodString>;
3082
+ redirectUri: z.ZodOptional<z.ZodString>;
3083
+ connectorId: z.ZodOptional<z.ZodString>;
3084
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
3085
+ jti: z.ZodOptional<z.ZodString>;
3086
+ state: z.ZodOptional<z.ZodString>;
3087
+ }, z.ZodUnknown, "strip">>>;
3088
+ }, "connectorSession">, "strip", z.ZodTypeAny, {
3089
+ type: import("../index.js").VerificationType.Social;
3090
+ id: string;
3091
+ connectorId: string;
3092
+ socialUserInfo?: {
3093
+ id: string;
3094
+ name?: string | undefined;
3095
+ email?: string | undefined;
3096
+ phone?: string | undefined;
3097
+ avatar?: string | undefined;
3098
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3099
+ } | undefined;
3100
+ }, {
3101
+ type: import("../index.js").VerificationType.Social;
3102
+ id: string;
3103
+ connectorId: string;
3104
+ socialUserInfo?: {
3105
+ id: string;
3106
+ name?: string | undefined;
3107
+ email?: string | undefined;
3108
+ phone?: string | undefined;
3109
+ avatar?: string | undefined;
3110
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3111
+ } | undefined;
3112
+ }>, z.ZodObject<{
3113
+ id: z.ZodString;
3114
+ connectorId: z.ZodString;
3115
+ type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
3116
+ issuer: z.ZodOptional<z.ZodString>;
3117
+ } & {
3118
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
3119
+ id: z.ZodString;
3120
+ email: z.ZodOptional<z.ZodString>;
3121
+ phone: z.ZodOptional<z.ZodString>;
3122
+ name: z.ZodOptional<z.ZodString>;
3123
+ avatar: z.ZodOptional<z.ZodString>;
3124
+ rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
3125
+ }, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
3126
+ id: string;
3127
+ name?: string | undefined;
3128
+ email?: string | undefined;
3129
+ phone?: string | undefined;
3130
+ avatar?: string | undefined;
3131
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3132
+ }, {
3133
+ id: string;
3134
+ name?: string | undefined;
3135
+ email?: string | undefined;
3136
+ phone?: string | undefined;
3137
+ avatar?: string | undefined;
3138
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3139
+ }>>;
3140
+ }, "strip", z.ZodTypeAny, {
3141
+ type: import("../index.js").VerificationType.EnterpriseSso;
3142
+ id: string;
3143
+ connectorId: string;
3144
+ issuer?: string | undefined;
3145
+ enterpriseSsoUserInfo?: {
3146
+ id: string;
3147
+ name?: string | undefined;
3148
+ email?: string | undefined;
3149
+ phone?: string | undefined;
3150
+ avatar?: string | undefined;
3151
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3152
+ } | undefined;
3153
+ }, {
3154
+ type: import("../index.js").VerificationType.EnterpriseSso;
3155
+ id: string;
3156
+ connectorId: string;
3157
+ issuer?: string | undefined;
3158
+ enterpriseSsoUserInfo?: {
3159
+ id: string;
3160
+ name?: string | undefined;
3161
+ email?: string | undefined;
3162
+ phone?: string | undefined;
3163
+ avatar?: string | undefined;
3164
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3165
+ } | undefined;
3166
+ }>, z.ZodObject<Omit<{
3167
+ id: z.ZodString;
3168
+ type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
3169
+ userId: z.ZodString;
3170
+ secret: z.ZodOptional<z.ZodString>;
3171
+ verified: z.ZodBoolean;
3172
+ }, "secret">, "strip", z.ZodTypeAny, {
3173
+ type: import("../index.js").VerificationType.TOTP;
3174
+ id: string;
3175
+ userId: string;
3176
+ verified: boolean;
3177
+ }, {
3178
+ type: import("../index.js").VerificationType.TOTP;
3179
+ id: string;
3180
+ userId: string;
3181
+ verified: boolean;
3182
+ }>, z.ZodObject<Omit<{
3183
+ id: z.ZodString;
3184
+ type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
3185
+ userId: z.ZodString;
3186
+ code: z.ZodOptional<z.ZodString>;
3187
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3188
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
3189
+ type: import("../index.js").VerificationType.BackupCode;
3190
+ id: string;
3191
+ userId: string;
3192
+ code?: string | undefined;
3193
+ }, {
3194
+ type: import("../index.js").VerificationType.BackupCode;
3195
+ id: string;
3196
+ userId: string;
3197
+ code?: string | undefined;
3198
+ }>, z.ZodObject<Omit<{
3199
+ id: z.ZodString;
3200
+ type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
3201
+ userId: z.ZodString;
3202
+ verified: z.ZodBoolean;
3203
+ registrationChallenge: z.ZodOptional<z.ZodString>;
3204
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
3205
+ registrationInfo: z.ZodOptional<z.ZodObject<{
3206
+ type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
3207
+ credentialId: z.ZodString;
3208
+ publicKey: z.ZodString;
3209
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
3210
+ counter: z.ZodNumber;
3211
+ agent: z.ZodString;
3212
+ name: z.ZodOptional<z.ZodString>;
3213
+ }, "strip", z.ZodTypeAny, {
3214
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
3215
+ credentialId: string;
3216
+ publicKey: string;
3217
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
3218
+ counter: number;
3219
+ agent: string;
3220
+ name?: string | undefined;
3221
+ }, {
3222
+ type: import("../../foundations/index.js").MfaFactor.WebAuthn;
3223
+ credentialId: string;
3224
+ publicKey: string;
3225
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
3226
+ counter: number;
3227
+ agent: string;
3228
+ name?: string | undefined;
3229
+ }>>;
3230
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
3231
+ type: import("../index.js").VerificationType.WebAuthn;
3232
+ id: string;
3233
+ userId: string;
3234
+ verified: boolean;
3235
+ }, {
3236
+ type: import("../index.js").VerificationType.WebAuthn;
3237
+ id: string;
3238
+ userId: string;
3239
+ verified: boolean;
3240
+ }>, z.ZodObject<{
3241
+ id: z.ZodString;
3242
+ type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
3243
+ verified: z.ZodBoolean;
3244
+ identifier: z.ZodObject<{
3245
+ type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
3246
+ value: z.ZodString;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ value: string;
3249
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3250
+ }, {
3251
+ value: string;
3252
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3253
+ }>;
3254
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
3255
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ jitOrganizationIds?: string[] | undefined;
3258
+ }, {
3259
+ jitOrganizationIds?: string[] | undefined;
3260
+ }>>;
3261
+ }, "strip", z.ZodTypeAny, {
3262
+ type: import("../index.js").VerificationType.OneTimeToken;
3263
+ id: string;
3264
+ identifier: {
3265
+ value: string;
3266
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3267
+ };
3268
+ verified: boolean;
3269
+ oneTimeTokenContext?: {
3270
+ jitOrganizationIds?: string[] | undefined;
3271
+ } | undefined;
3272
+ }, {
3273
+ type: import("../index.js").VerificationType.OneTimeToken;
3274
+ id: string;
3275
+ identifier: {
3276
+ value: string;
3277
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3278
+ };
3279
+ verified: boolean;
3280
+ oneTimeTokenContext?: {
3281
+ jitOrganizationIds?: string[] | undefined;
3282
+ } | undefined;
3283
+ }>, z.ZodObject<Omit<{
3284
+ id: z.ZodString;
3285
+ type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
3286
+ identifier: z.ZodObject<{
3287
+ type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
3288
+ value: z.ZodString;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ value: string;
3291
+ type: import("../../foundations/index.js").SignInIdentifier;
3292
+ }, {
3293
+ value: string;
3294
+ type: import("../../foundations/index.js").SignInIdentifier;
3295
+ }>;
3296
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
3297
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
3298
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
3299
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3300
+ id: string;
3301
+ identifier: {
3302
+ value: string;
3303
+ type: import("../../foundations/index.js").SignInIdentifier;
3304
+ };
3305
+ }, {
3306
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3307
+ id: string;
3308
+ identifier: {
3309
+ value: string;
3310
+ type: import("../../foundations/index.js").SignInIdentifier;
3311
+ };
3312
+ }>]>, "many">>;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ userId?: string | undefined;
3315
+ interactionEvent?: InteractionEvent | undefined;
3316
+ verificationRecords?: ({
3317
+ type: import("../index.js").VerificationType.EmailVerificationCode;
3318
+ id: string;
3319
+ identifier: {
3320
+ value: string;
3321
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3322
+ };
3323
+ templateType: import("@logto/connector-kit").TemplateType;
3324
+ verified: boolean;
3325
+ } | {
3326
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3327
+ id: string;
3328
+ identifier: {
3329
+ value: string;
3330
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3331
+ };
3332
+ templateType: import("@logto/connector-kit").TemplateType;
3333
+ verified: boolean;
3334
+ } | {
3335
+ type: import("../index.js").VerificationType.OneTimeToken;
3336
+ id: string;
3337
+ identifier: {
3338
+ value: string;
3339
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3340
+ };
3341
+ verified: boolean;
3342
+ oneTimeTokenContext?: {
3343
+ jitOrganizationIds?: string[] | undefined;
3344
+ } | undefined;
3345
+ } | {
3346
+ type: import("../index.js").VerificationType.Password;
3347
+ id: string;
3348
+ identifier: {
3349
+ value: string;
3350
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
3351
+ };
3352
+ verified: boolean;
3353
+ } | {
3354
+ type: import("../index.js").VerificationType.Social;
3355
+ id: string;
3356
+ connectorId: string;
3357
+ socialUserInfo?: {
3358
+ id: string;
3359
+ name?: string | undefined;
3360
+ email?: string | undefined;
3361
+ phone?: string | undefined;
3362
+ avatar?: string | undefined;
3363
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3364
+ } | undefined;
3365
+ } | {
3366
+ type: import("../index.js").VerificationType.EnterpriseSso;
3367
+ id: string;
3368
+ connectorId: string;
3369
+ issuer?: string | undefined;
3370
+ enterpriseSsoUserInfo?: {
3371
+ id: string;
3372
+ name?: string | undefined;
3373
+ email?: string | undefined;
3374
+ phone?: string | undefined;
3375
+ avatar?: string | undefined;
3376
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3377
+ } | undefined;
3378
+ } | {
3379
+ type: import("../index.js").VerificationType.TOTP;
3380
+ id: string;
3381
+ userId: string;
3382
+ verified: boolean;
3383
+ } | {
3384
+ type: import("../index.js").VerificationType.BackupCode;
3385
+ id: string;
3386
+ userId: string;
3387
+ code?: string | undefined;
3388
+ } | {
3389
+ type: import("../index.js").VerificationType.WebAuthn;
3390
+ id: string;
3391
+ userId: string;
3392
+ verified: boolean;
3393
+ } | {
3394
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3395
+ id: string;
3396
+ identifier: {
3397
+ value: string;
3398
+ type: import("../../foundations/index.js").SignInIdentifier;
3399
+ };
3400
+ })[] | undefined;
3401
+ }, {
3402
+ userId?: string | undefined;
3403
+ interactionEvent?: InteractionEvent | undefined;
3404
+ verificationRecords?: ({
3405
+ type: import("../index.js").VerificationType.EmailVerificationCode;
3406
+ id: string;
3407
+ identifier: {
3408
+ value: string;
3409
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3410
+ };
3411
+ templateType: import("@logto/connector-kit").TemplateType;
3412
+ verified: boolean;
3413
+ } | {
3414
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3415
+ id: string;
3416
+ identifier: {
3417
+ value: string;
3418
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3419
+ };
3420
+ templateType: import("@logto/connector-kit").TemplateType;
3421
+ verified: boolean;
3422
+ } | {
3423
+ type: import("../index.js").VerificationType.OneTimeToken;
3424
+ id: string;
3425
+ identifier: {
3426
+ value: string;
3427
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3428
+ };
3429
+ verified: boolean;
3430
+ oneTimeTokenContext?: {
3431
+ jitOrganizationIds?: string[] | undefined;
3432
+ } | undefined;
3433
+ } | {
3434
+ type: import("../index.js").VerificationType.Password;
3435
+ id: string;
3436
+ identifier: {
3437
+ value: string;
3438
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
3439
+ };
3440
+ verified: boolean;
3441
+ } | {
3442
+ type: import("../index.js").VerificationType.Social;
3443
+ id: string;
3444
+ connectorId: string;
3445
+ socialUserInfo?: {
3446
+ id: string;
3447
+ name?: string | undefined;
3448
+ email?: string | undefined;
3449
+ phone?: string | undefined;
3450
+ avatar?: string | undefined;
3451
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3452
+ } | undefined;
3453
+ } | {
3454
+ type: import("../index.js").VerificationType.EnterpriseSso;
3455
+ id: string;
3456
+ connectorId: string;
3457
+ issuer?: string | undefined;
3458
+ enterpriseSsoUserInfo?: {
3459
+ id: string;
3460
+ name?: string | undefined;
3461
+ email?: string | undefined;
3462
+ phone?: string | undefined;
3463
+ avatar?: string | undefined;
3464
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3465
+ } | undefined;
3466
+ } | {
3467
+ type: import("../index.js").VerificationType.TOTP;
3468
+ id: string;
3469
+ userId: string;
3470
+ verified: boolean;
3471
+ } | {
3472
+ type: import("../index.js").VerificationType.BackupCode;
3473
+ id: string;
3474
+ userId: string;
3475
+ code?: string | undefined;
3476
+ } | {
3477
+ type: import("../index.js").VerificationType.WebAuthn;
3478
+ id: string;
3479
+ userId: string;
3480
+ verified: boolean;
3481
+ } | {
3482
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3483
+ id: string;
3484
+ identifier: {
3485
+ value: string;
3486
+ type: import("../../foundations/index.js").SignInIdentifier;
3487
+ };
3488
+ })[] | undefined;
3489
+ }>>;
1474
3490
  }, "strip", z.ZodTypeAny, {
1475
3491
  user: {
1476
3492
  name?: string | null | undefined;
@@ -1544,6 +3560,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1544
3560
  type?: GrantType.TokenExchange | undefined;
1545
3561
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1546
3562
  } | undefined;
3563
+ interaction?: {
3564
+ userId?: string | undefined;
3565
+ interactionEvent?: InteractionEvent | undefined;
3566
+ verificationRecords?: ({
3567
+ type: import("../index.js").VerificationType.EmailVerificationCode;
3568
+ id: string;
3569
+ identifier: {
3570
+ value: string;
3571
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3572
+ };
3573
+ templateType: import("@logto/connector-kit").TemplateType;
3574
+ verified: boolean;
3575
+ } | {
3576
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3577
+ id: string;
3578
+ identifier: {
3579
+ value: string;
3580
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3581
+ };
3582
+ templateType: import("@logto/connector-kit").TemplateType;
3583
+ verified: boolean;
3584
+ } | {
3585
+ type: import("../index.js").VerificationType.OneTimeToken;
3586
+ id: string;
3587
+ identifier: {
3588
+ value: string;
3589
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3590
+ };
3591
+ verified: boolean;
3592
+ oneTimeTokenContext?: {
3593
+ jitOrganizationIds?: string[] | undefined;
3594
+ } | undefined;
3595
+ } | {
3596
+ type: import("../index.js").VerificationType.Password;
3597
+ id: string;
3598
+ identifier: {
3599
+ value: string;
3600
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
3601
+ };
3602
+ verified: boolean;
3603
+ } | {
3604
+ type: import("../index.js").VerificationType.Social;
3605
+ id: string;
3606
+ connectorId: string;
3607
+ socialUserInfo?: {
3608
+ id: string;
3609
+ name?: string | undefined;
3610
+ email?: string | undefined;
3611
+ phone?: string | undefined;
3612
+ avatar?: string | undefined;
3613
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3614
+ } | undefined;
3615
+ } | {
3616
+ type: import("../index.js").VerificationType.EnterpriseSso;
3617
+ id: string;
3618
+ connectorId: string;
3619
+ issuer?: string | undefined;
3620
+ enterpriseSsoUserInfo?: {
3621
+ id: string;
3622
+ name?: string | undefined;
3623
+ email?: string | undefined;
3624
+ phone?: string | undefined;
3625
+ avatar?: string | undefined;
3626
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3627
+ } | undefined;
3628
+ } | {
3629
+ type: import("../index.js").VerificationType.TOTP;
3630
+ id: string;
3631
+ userId: string;
3632
+ verified: boolean;
3633
+ } | {
3634
+ type: import("../index.js").VerificationType.BackupCode;
3635
+ id: string;
3636
+ userId: string;
3637
+ code?: string | undefined;
3638
+ } | {
3639
+ type: import("../index.js").VerificationType.WebAuthn;
3640
+ id: string;
3641
+ userId: string;
3642
+ verified: boolean;
3643
+ } | {
3644
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3645
+ id: string;
3646
+ identifier: {
3647
+ value: string;
3648
+ type: import("../../foundations/index.js").SignInIdentifier;
3649
+ };
3650
+ })[] | undefined;
3651
+ } | undefined;
1547
3652
  }, {
1548
3653
  user: {
1549
3654
  name?: string | null | undefined;
@@ -1617,6 +3722,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1617
3722
  type?: GrantType.TokenExchange | undefined;
1618
3723
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1619
3724
  } | undefined;
3725
+ interaction?: {
3726
+ userId?: string | undefined;
3727
+ interactionEvent?: InteractionEvent | undefined;
3728
+ verificationRecords?: ({
3729
+ type: import("../index.js").VerificationType.EmailVerificationCode;
3730
+ id: string;
3731
+ identifier: {
3732
+ value: string;
3733
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3734
+ };
3735
+ templateType: import("@logto/connector-kit").TemplateType;
3736
+ verified: boolean;
3737
+ } | {
3738
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3739
+ id: string;
3740
+ identifier: {
3741
+ value: string;
3742
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3743
+ };
3744
+ templateType: import("@logto/connector-kit").TemplateType;
3745
+ verified: boolean;
3746
+ } | {
3747
+ type: import("../index.js").VerificationType.OneTimeToken;
3748
+ id: string;
3749
+ identifier: {
3750
+ value: string;
3751
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3752
+ };
3753
+ verified: boolean;
3754
+ oneTimeTokenContext?: {
3755
+ jitOrganizationIds?: string[] | undefined;
3756
+ } | undefined;
3757
+ } | {
3758
+ type: import("../index.js").VerificationType.Password;
3759
+ id: string;
3760
+ identifier: {
3761
+ value: string;
3762
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
3763
+ };
3764
+ verified: boolean;
3765
+ } | {
3766
+ type: import("../index.js").VerificationType.Social;
3767
+ id: string;
3768
+ connectorId: string;
3769
+ socialUserInfo?: {
3770
+ id: string;
3771
+ name?: string | undefined;
3772
+ email?: string | undefined;
3773
+ phone?: string | undefined;
3774
+ avatar?: string | undefined;
3775
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3776
+ } | undefined;
3777
+ } | {
3778
+ type: import("../index.js").VerificationType.EnterpriseSso;
3779
+ id: string;
3780
+ connectorId: string;
3781
+ issuer?: string | undefined;
3782
+ enterpriseSsoUserInfo?: {
3783
+ id: string;
3784
+ name?: string | undefined;
3785
+ email?: string | undefined;
3786
+ phone?: string | undefined;
3787
+ avatar?: string | undefined;
3788
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3789
+ } | undefined;
3790
+ } | {
3791
+ type: import("../index.js").VerificationType.TOTP;
3792
+ id: string;
3793
+ userId: string;
3794
+ verified: boolean;
3795
+ } | {
3796
+ type: import("../index.js").VerificationType.BackupCode;
3797
+ id: string;
3798
+ userId: string;
3799
+ code?: string | undefined;
3800
+ } | {
3801
+ type: import("../index.js").VerificationType.WebAuthn;
3802
+ id: string;
3803
+ userId: string;
3804
+ verified: boolean;
3805
+ } | {
3806
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3807
+ id: string;
3808
+ identifier: {
3809
+ value: string;
3810
+ type: import("../../foundations/index.js").SignInIdentifier;
3811
+ };
3812
+ })[] | undefined;
3813
+ } | undefined;
1620
3814
  }>;
1621
3815
  script: z.ZodString;
1622
3816
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1625,13 +3819,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1625
3819
  token: {
1626
3820
  grantId?: string | undefined;
1627
3821
  scope?: string | undefined;
3822
+ sessionUid?: string | undefined;
1628
3823
  accountId?: string | undefined;
3824
+ jti?: string | undefined;
1629
3825
  expiresWithSession?: boolean | undefined;
1630
3826
  gty?: string | undefined;
1631
- sessionUid?: string | undefined;
1632
3827
  sid?: string | undefined;
1633
3828
  kind?: "AccessToken" | undefined;
1634
- jti?: string | undefined;
1635
3829
  aud?: string | string[] | undefined;
1636
3830
  clientId?: string | undefined;
1637
3831
  };
@@ -1708,6 +3902,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1708
3902
  type?: GrantType.TokenExchange | undefined;
1709
3903
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1710
3904
  } | undefined;
3905
+ interaction?: {
3906
+ userId?: string | undefined;
3907
+ interactionEvent?: InteractionEvent | undefined;
3908
+ verificationRecords?: ({
3909
+ type: import("../index.js").VerificationType.EmailVerificationCode;
3910
+ id: string;
3911
+ identifier: {
3912
+ value: string;
3913
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3914
+ };
3915
+ templateType: import("@logto/connector-kit").TemplateType;
3916
+ verified: boolean;
3917
+ } | {
3918
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
3919
+ id: string;
3920
+ identifier: {
3921
+ value: string;
3922
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
3923
+ };
3924
+ templateType: import("@logto/connector-kit").TemplateType;
3925
+ verified: boolean;
3926
+ } | {
3927
+ type: import("../index.js").VerificationType.OneTimeToken;
3928
+ id: string;
3929
+ identifier: {
3930
+ value: string;
3931
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
3932
+ };
3933
+ verified: boolean;
3934
+ oneTimeTokenContext?: {
3935
+ jitOrganizationIds?: string[] | undefined;
3936
+ } | undefined;
3937
+ } | {
3938
+ type: import("../index.js").VerificationType.Password;
3939
+ id: string;
3940
+ identifier: {
3941
+ value: string;
3942
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
3943
+ };
3944
+ verified: boolean;
3945
+ } | {
3946
+ type: import("../index.js").VerificationType.Social;
3947
+ id: string;
3948
+ connectorId: string;
3949
+ socialUserInfo?: {
3950
+ id: string;
3951
+ name?: string | undefined;
3952
+ email?: string | undefined;
3953
+ phone?: string | undefined;
3954
+ avatar?: string | undefined;
3955
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3956
+ } | undefined;
3957
+ } | {
3958
+ type: import("../index.js").VerificationType.EnterpriseSso;
3959
+ id: string;
3960
+ connectorId: string;
3961
+ issuer?: string | undefined;
3962
+ enterpriseSsoUserInfo?: {
3963
+ id: string;
3964
+ name?: string | undefined;
3965
+ email?: string | undefined;
3966
+ phone?: string | undefined;
3967
+ avatar?: string | undefined;
3968
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3969
+ } | undefined;
3970
+ } | {
3971
+ type: import("../index.js").VerificationType.TOTP;
3972
+ id: string;
3973
+ userId: string;
3974
+ verified: boolean;
3975
+ } | {
3976
+ type: import("../index.js").VerificationType.BackupCode;
3977
+ id: string;
3978
+ userId: string;
3979
+ code?: string | undefined;
3980
+ } | {
3981
+ type: import("../index.js").VerificationType.WebAuthn;
3982
+ id: string;
3983
+ userId: string;
3984
+ verified: boolean;
3985
+ } | {
3986
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
3987
+ id: string;
3988
+ identifier: {
3989
+ value: string;
3990
+ type: import("../../foundations/index.js").SignInIdentifier;
3991
+ };
3992
+ })[] | undefined;
3993
+ } | undefined;
1711
3994
  };
1712
3995
  script: string;
1713
3996
  tokenType: LogtoJwtTokenKeyType.AccessToken;
@@ -1716,13 +3999,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1716
3999
  token: {
1717
4000
  grantId?: string | undefined;
1718
4001
  scope?: string | undefined;
4002
+ sessionUid?: string | undefined;
1719
4003
  accountId?: string | undefined;
4004
+ jti?: string | undefined;
1720
4005
  expiresWithSession?: boolean | undefined;
1721
4006
  gty?: string | undefined;
1722
- sessionUid?: string | undefined;
1723
4007
  sid?: string | undefined;
1724
4008
  kind?: "AccessToken" | undefined;
1725
- jti?: string | undefined;
1726
4009
  aud?: string | string[] | undefined;
1727
4010
  clientId?: string | undefined;
1728
4011
  };
@@ -1799,6 +4082,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1799
4082
  type?: GrantType.TokenExchange | undefined;
1800
4083
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1801
4084
  } | undefined;
4085
+ interaction?: {
4086
+ userId?: string | undefined;
4087
+ interactionEvent?: InteractionEvent | undefined;
4088
+ verificationRecords?: ({
4089
+ type: import("../index.js").VerificationType.EmailVerificationCode;
4090
+ id: string;
4091
+ identifier: {
4092
+ value: string;
4093
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4094
+ };
4095
+ templateType: import("@logto/connector-kit").TemplateType;
4096
+ verified: boolean;
4097
+ } | {
4098
+ type: import("../index.js").VerificationType.PhoneVerificationCode;
4099
+ id: string;
4100
+ identifier: {
4101
+ value: string;
4102
+ type: import("../../foundations/index.js").SignInIdentifier.Phone;
4103
+ };
4104
+ templateType: import("@logto/connector-kit").TemplateType;
4105
+ verified: boolean;
4106
+ } | {
4107
+ type: import("../index.js").VerificationType.OneTimeToken;
4108
+ id: string;
4109
+ identifier: {
4110
+ value: string;
4111
+ type: import("../../foundations/index.js").SignInIdentifier.Email;
4112
+ };
4113
+ verified: boolean;
4114
+ oneTimeTokenContext?: {
4115
+ jitOrganizationIds?: string[] | undefined;
4116
+ } | undefined;
4117
+ } | {
4118
+ type: import("../index.js").VerificationType.Password;
4119
+ id: string;
4120
+ identifier: {
4121
+ value: string;
4122
+ type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
4123
+ };
4124
+ verified: boolean;
4125
+ } | {
4126
+ type: import("../index.js").VerificationType.Social;
4127
+ id: string;
4128
+ connectorId: string;
4129
+ socialUserInfo?: {
4130
+ id: string;
4131
+ name?: string | undefined;
4132
+ email?: string | undefined;
4133
+ phone?: string | undefined;
4134
+ avatar?: string | undefined;
4135
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4136
+ } | undefined;
4137
+ } | {
4138
+ type: import("../index.js").VerificationType.EnterpriseSso;
4139
+ id: string;
4140
+ connectorId: string;
4141
+ issuer?: string | undefined;
4142
+ enterpriseSsoUserInfo?: {
4143
+ id: string;
4144
+ name?: string | undefined;
4145
+ email?: string | undefined;
4146
+ phone?: string | undefined;
4147
+ avatar?: string | undefined;
4148
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
4149
+ } | undefined;
4150
+ } | {
4151
+ type: import("../index.js").VerificationType.TOTP;
4152
+ id: string;
4153
+ userId: string;
4154
+ verified: boolean;
4155
+ } | {
4156
+ type: import("../index.js").VerificationType.BackupCode;
4157
+ id: string;
4158
+ userId: string;
4159
+ code?: string | undefined;
4160
+ } | {
4161
+ type: import("../index.js").VerificationType.WebAuthn;
4162
+ id: string;
4163
+ userId: string;
4164
+ verified: boolean;
4165
+ } | {
4166
+ type: import("../index.js").VerificationType.NewPasswordIdentity;
4167
+ id: string;
4168
+ identifier: {
4169
+ value: string;
4170
+ type: import("../../foundations/index.js").SignInIdentifier;
4171
+ };
4172
+ })[] | undefined;
4173
+ } | undefined;
1802
4174
  };
1803
4175
  script: string;
1804
4176
  tokenType: LogtoJwtTokenKeyType.AccessToken;
@@ -1812,14 +4184,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1812
4184
  clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1813
4185
  }, "strict", z.ZodTypeAny, {
1814
4186
  scope?: string | undefined;
1815
- kind?: "ClientCredentials" | undefined;
1816
4187
  jti?: string | undefined;
4188
+ kind?: "ClientCredentials" | undefined;
1817
4189
  aud?: string | string[] | undefined;
1818
4190
  clientId?: string | undefined;
1819
4191
  }, {
1820
4192
  scope?: string | undefined;
1821
- kind?: "ClientCredentials" | undefined;
1822
4193
  jti?: string | undefined;
4194
+ kind?: "ClientCredentials" | undefined;
1823
4195
  aud?: string | string[] | undefined;
1824
4196
  clientId?: string | undefined;
1825
4197
  }>;
@@ -1829,8 +4201,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1829
4201
  }, "strip", z.ZodTypeAny, {
1830
4202
  token: {
1831
4203
  scope?: string | undefined;
1832
- kind?: "ClientCredentials" | undefined;
1833
4204
  jti?: string | undefined;
4205
+ kind?: "ClientCredentials" | undefined;
1834
4206
  aud?: string | string[] | undefined;
1835
4207
  clientId?: string | undefined;
1836
4208
  };
@@ -1840,8 +4212,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1840
4212
  }, {
1841
4213
  token: {
1842
4214
  scope?: string | undefined;
1843
- kind?: "ClientCredentials" | undefined;
1844
4215
  jti?: string | undefined;
4216
+ kind?: "ClientCredentials" | undefined;
1845
4217
  aud?: string | string[] | undefined;
1846
4218
  clientId?: string | undefined;
1847
4219
  };