authhero 9.37.0 → 9.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/assets/u/widget/{p-ce8560f6.entry.js → p-32247347.entry.js} +1 -1
  4. package/dist/assets/u/widget/p-3f908508.entry.js +1 -0
  5. package/dist/assets/u/widget/p-Wx4M-olY.js +2 -0
  6. package/dist/authhero.cjs +110 -89
  7. package/dist/authhero.d.ts +551 -440
  8. package/dist/authhero.mjs +12680 -11723
  9. package/dist/{mfa-DuNbh_YF.js → mfa-DBhvi2B5.js} +1 -1
  10. package/dist/{mfa-BpHxTir1.mjs → mfa-DnCary4g.mjs} +17 -17
  11. package/dist/{mfa-attempts-DDgCBTDW.mjs → mfa-attempts-BK-gWrgJ.mjs} +5034 -5001
  12. package/dist/mfa-attempts-C5kobAHS.js +275 -0
  13. package/dist/{passkey-enrollment-D6ZZmelw.js → passkey-enrollment-CmKahPq7.js} +1 -1
  14. package/dist/tsconfig.types.tsbuildinfo +1 -1
  15. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  16. package/dist/types/helpers/default-destinations.d.ts +14 -0
  17. package/dist/types/helpers/firehose-client.d.ts +29 -0
  18. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +21 -1
  19. package/dist/types/helpers/prompt-partials.d.ts +1 -1
  20. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  21. package/dist/types/helpers/run-outbox-relay.d.ts +9 -2
  22. package/dist/types/index.d.ts +543 -439
  23. package/dist/types/routes/auth-api/device.d.ts +8 -8
  24. package/dist/types/routes/auth-api/index.d.ts +36 -36
  25. package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
  26. package/dist/types/routes/auth-api/token.d.ts +10 -10
  27. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  28. package/dist/types/routes/management-api/actions.d.ts +9 -9
  29. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  30. package/dist/types/routes/management-api/branding-preview.d.ts +9 -1
  31. package/dist/types/routes/management-api/branding.d.ts +105 -1
  32. package/dist/types/routes/management-api/client-registration-tokens.d.ts +3 -3
  33. package/dist/types/routes/management-api/clients.d.ts +8 -8
  34. package/dist/types/routes/management-api/connections.d.ts +1 -1
  35. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  36. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  37. package/dist/types/routes/management-api/emails.d.ts +2 -2
  38. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  39. package/dist/types/routes/management-api/forms.d.ts +144 -144
  40. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  41. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  42. package/dist/types/routes/management-api/hooks.d.ts +4 -4
  43. package/dist/types/routes/management-api/index.d.ts +492 -388
  44. package/dist/types/routes/management-api/keys.d.ts +8 -8
  45. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  46. package/dist/types/routes/management-api/logs.d.ts +4 -4
  47. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  48. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  49. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  50. package/dist/types/routes/management-api/roles.d.ts +1 -1
  51. package/dist/types/routes/management-api/rollouts.d.ts +6 -6
  52. package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
  53. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  54. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  55. package/dist/types/routes/management-api/tenants.d.ts +36 -36
  56. package/dist/types/routes/management-api/themes.d.ts +69 -0
  57. package/dist/types/routes/management-api/users.d.ts +16 -16
  58. package/dist/types/routes/universal-login/common.d.ts +54 -2
  59. package/dist/types/routes/universal-login/dark-theme.d.ts +25 -0
  60. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  61. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  62. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  63. package/dist/types/routes/universal-login/index.d.ts +6 -6
  64. package/dist/types/routes/universal-login/legal-links.d.ts +18 -0
  65. package/dist/types/routes/universal-login/screen-prompt-map.d.ts +31 -0
  66. package/dist/types/routes/universal-login/screens/login-partials.d.ts +9 -1
  67. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  68. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  69. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  70. package/dist/types/routes/universal-login/u2-widget-page.d.ts +6 -1
  71. package/dist/types/routes/universal-login/universal-login-template.d.ts +1 -0
  72. package/dist/types/state-machines/login-session.d.ts +1 -1
  73. package/package.json +7 -6
  74. package/dist/assets/u/widget/p-FUW5zvoZ.js +0 -2
  75. package/dist/assets/u/widget/p-c6ec4c36.entry.js +0 -1
  76. package/dist/mfa-attempts-D5U1FCSY.js +0 -275
@@ -12,7 +12,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
12
12
  client_secret?: string | undefined;
13
13
  scope?: string | undefined;
14
14
  audience?: string | undefined;
15
- include_qr_code?: boolean | "false" | "true" | undefined;
15
+ include_qr_code?: boolean | "true" | "false" | undefined;
16
16
  };
17
17
  } & {
18
18
  json: {
@@ -20,7 +20,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
20
20
  client_secret?: string | undefined;
21
21
  scope?: string | undefined;
22
22
  audience?: string | undefined;
23
- include_qr_code?: boolean | "false" | "true" | undefined;
23
+ include_qr_code?: boolean | "true" | "false" | undefined;
24
24
  };
25
25
  };
26
26
  output: {
@@ -41,7 +41,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
41
41
  client_secret?: string | undefined;
42
42
  scope?: string | undefined;
43
43
  audience?: string | undefined;
44
- include_qr_code?: boolean | "false" | "true" | undefined;
44
+ include_qr_code?: boolean | "true" | "false" | undefined;
45
45
  };
46
46
  } & {
47
47
  json: {
@@ -49,7 +49,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
49
49
  client_secret?: string | undefined;
50
50
  scope?: string | undefined;
51
51
  audience?: string | undefined;
52
- include_qr_code?: boolean | "false" | "true" | undefined;
52
+ include_qr_code?: boolean | "true" | "false" | undefined;
53
53
  };
54
54
  };
55
55
  output: {
@@ -65,7 +65,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
65
65
  client_secret?: string | undefined;
66
66
  scope?: string | undefined;
67
67
  audience?: string | undefined;
68
- include_qr_code?: boolean | "false" | "true" | undefined;
68
+ include_qr_code?: boolean | "true" | "false" | undefined;
69
69
  };
70
70
  } & {
71
71
  json: {
@@ -73,7 +73,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
73
73
  client_secret?: string | undefined;
74
74
  scope?: string | undefined;
75
75
  audience?: string | undefined;
76
- include_qr_code?: boolean | "false" | "true" | undefined;
76
+ include_qr_code?: boolean | "true" | "false" | undefined;
77
77
  };
78
78
  };
79
79
  output: {
@@ -89,7 +89,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
89
89
  client_secret?: string | undefined;
90
90
  scope?: string | undefined;
91
91
  audience?: string | undefined;
92
- include_qr_code?: boolean | "false" | "true" | undefined;
92
+ include_qr_code?: boolean | "true" | "false" | undefined;
93
93
  };
94
94
  } & {
95
95
  json: {
@@ -97,7 +97,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
97
97
  client_secret?: string | undefined;
98
98
  scope?: string | undefined;
99
99
  audience?: string | undefined;
100
- include_qr_code?: boolean | "false" | "true" | undefined;
100
+ include_qr_code?: boolean | "true" | "false" | undefined;
101
101
  };
102
102
  };
103
103
  output: {
@@ -762,23 +762,23 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
762
762
  email: string;
763
763
  send: "code" | "link";
764
764
  authParams: {
765
- username?: string | undefined;
766
- connection?: string | undefined;
767
765
  scope?: string | undefined;
768
766
  state?: string | undefined;
767
+ username?: string | undefined;
768
+ connection?: string | undefined;
769
769
  audience?: string | undefined;
770
- redirect_uri?: string | undefined;
771
- organization?: string | undefined;
770
+ act_as?: string | undefined;
772
771
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
773
772
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
774
- prompt?: string | undefined;
775
- vendor_id?: string | undefined;
773
+ redirect_uri?: string | undefined;
774
+ organization?: string | undefined;
776
775
  nonce?: string | undefined;
777
- max_age?: number | undefined;
778
- acr_values?: string | undefined;
776
+ prompt?: string | undefined;
779
777
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
780
778
  code_challenge?: string | undefined;
781
779
  ui_locales?: string | undefined;
780
+ max_age?: number | undefined;
781
+ acr_values?: string | undefined;
782
782
  claims?: {
783
783
  userinfo?: Record<string, {
784
784
  essential?: boolean | undefined;
@@ -791,7 +791,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
791
791
  values?: unknown[] | undefined;
792
792
  } | null> | undefined;
793
793
  } | undefined;
794
- act_as?: string | undefined;
794
+ vendor_id?: string | undefined;
795
795
  };
796
796
  } | {
797
797
  client_id: string;
@@ -799,23 +799,23 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
799
799
  phone_number: string;
800
800
  send: "code" | "link";
801
801
  authParams: {
802
- username?: string | undefined;
803
- connection?: string | undefined;
804
802
  scope?: string | undefined;
805
803
  state?: string | undefined;
804
+ username?: string | undefined;
805
+ connection?: string | undefined;
806
806
  audience?: string | undefined;
807
- redirect_uri?: string | undefined;
808
- organization?: string | undefined;
807
+ act_as?: string | undefined;
809
808
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
810
809
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
811
- prompt?: string | undefined;
812
- vendor_id?: string | undefined;
810
+ redirect_uri?: string | undefined;
811
+ organization?: string | undefined;
813
812
  nonce?: string | undefined;
814
- max_age?: number | undefined;
815
- acr_values?: string | undefined;
813
+ prompt?: string | undefined;
816
814
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
817
815
  code_challenge?: string | undefined;
818
816
  ui_locales?: string | undefined;
817
+ max_age?: number | undefined;
818
+ acr_values?: string | undefined;
819
819
  claims?: {
820
820
  userinfo?: Record<string, {
821
821
  essential?: boolean | undefined;
@@ -828,7 +828,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
828
828
  values?: unknown[] | undefined;
829
829
  } | null> | undefined;
830
830
  } | undefined;
831
- act_as?: string | undefined;
831
+ vendor_id?: string | undefined;
832
832
  };
833
833
  };
834
834
  };
@@ -1038,7 +1038,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1038
1038
  client_secret?: string | undefined;
1039
1039
  scope?: string | undefined;
1040
1040
  audience?: string | undefined;
1041
- include_qr_code?: boolean | "false" | "true" | undefined;
1041
+ include_qr_code?: boolean | "true" | "false" | undefined;
1042
1042
  };
1043
1043
  } & {
1044
1044
  json: {
@@ -1046,7 +1046,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1046
1046
  client_secret?: string | undefined;
1047
1047
  scope?: string | undefined;
1048
1048
  audience?: string | undefined;
1049
- include_qr_code?: boolean | "false" | "true" | undefined;
1049
+ include_qr_code?: boolean | "true" | "false" | undefined;
1050
1050
  };
1051
1051
  };
1052
1052
  output: {
@@ -1067,7 +1067,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1067
1067
  client_secret?: string | undefined;
1068
1068
  scope?: string | undefined;
1069
1069
  audience?: string | undefined;
1070
- include_qr_code?: boolean | "false" | "true" | undefined;
1070
+ include_qr_code?: boolean | "true" | "false" | undefined;
1071
1071
  };
1072
1072
  } & {
1073
1073
  json: {
@@ -1075,7 +1075,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1075
1075
  client_secret?: string | undefined;
1076
1076
  scope?: string | undefined;
1077
1077
  audience?: string | undefined;
1078
- include_qr_code?: boolean | "false" | "true" | undefined;
1078
+ include_qr_code?: boolean | "true" | "false" | undefined;
1079
1079
  };
1080
1080
  };
1081
1081
  output: {
@@ -1091,7 +1091,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1091
1091
  client_secret?: string | undefined;
1092
1092
  scope?: string | undefined;
1093
1093
  audience?: string | undefined;
1094
- include_qr_code?: boolean | "false" | "true" | undefined;
1094
+ include_qr_code?: boolean | "true" | "false" | undefined;
1095
1095
  };
1096
1096
  } & {
1097
1097
  json: {
@@ -1099,7 +1099,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1099
1099
  client_secret?: string | undefined;
1100
1100
  scope?: string | undefined;
1101
1101
  audience?: string | undefined;
1102
- include_qr_code?: boolean | "false" | "true" | undefined;
1102
+ include_qr_code?: boolean | "true" | "false" | undefined;
1103
1103
  };
1104
1104
  };
1105
1105
  output: {
@@ -1115,7 +1115,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1115
1115
  client_secret?: string | undefined;
1116
1116
  scope?: string | undefined;
1117
1117
  audience?: string | undefined;
1118
- include_qr_code?: boolean | "false" | "true" | undefined;
1118
+ include_qr_code?: boolean | "true" | "false" | undefined;
1119
1119
  };
1120
1120
  } & {
1121
1121
  json: {
@@ -1123,7 +1123,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1123
1123
  client_secret?: string | undefined;
1124
1124
  scope?: string | undefined;
1125
1125
  audience?: string | undefined;
1126
- include_qr_code?: boolean | "false" | "true" | undefined;
1126
+ include_qr_code?: boolean | "true" | "false" | undefined;
1127
1127
  };
1128
1128
  };
1129
1129
  output: {
@@ -1179,7 +1179,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1179
1179
  client_id: string;
1180
1180
  username: string;
1181
1181
  otp: string;
1182
- realm: "email" | "sms";
1182
+ realm: "sms" | "email";
1183
1183
  scope?: string | undefined;
1184
1184
  audience?: string | undefined;
1185
1185
  } | {
@@ -1247,7 +1247,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1247
1247
  client_id: string;
1248
1248
  username: string;
1249
1249
  otp: string;
1250
- realm: "email" | "sms";
1250
+ realm: "sms" | "email";
1251
1251
  scope?: string | undefined;
1252
1252
  audience?: string | undefined;
1253
1253
  } | {
@@ -1320,7 +1320,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1320
1320
  client_id: string;
1321
1321
  username: string;
1322
1322
  otp: string;
1323
- realm: "email" | "sms";
1323
+ realm: "sms" | "email";
1324
1324
  scope?: string | undefined;
1325
1325
  audience?: string | undefined;
1326
1326
  } | {
@@ -1388,7 +1388,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1388
1388
  client_id: string;
1389
1389
  username: string;
1390
1390
  otp: string;
1391
- realm: "email" | "sms";
1391
+ realm: "sms" | "email";
1392
1392
  scope?: string | undefined;
1393
1393
  audience?: string | undefined;
1394
1394
  } | {
@@ -1470,7 +1470,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1470
1470
  client_id: string;
1471
1471
  username: string;
1472
1472
  otp: string;
1473
- realm: "email" | "sms";
1473
+ realm: "sms" | "email";
1474
1474
  scope?: string | undefined;
1475
1475
  audience?: string | undefined;
1476
1476
  } | {
@@ -1538,7 +1538,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1538
1538
  client_id: string;
1539
1539
  username: string;
1540
1540
  otp: string;
1541
- realm: "email" | "sms";
1541
+ realm: "sms" | "email";
1542
1542
  scope?: string | undefined;
1543
1543
  audience?: string | undefined;
1544
1544
  } | {
@@ -1614,7 +1614,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1614
1614
  client_id: string;
1615
1615
  username: string;
1616
1616
  otp: string;
1617
- realm: "email" | "sms";
1617
+ realm: "sms" | "email";
1618
1618
  scope?: string | undefined;
1619
1619
  audience?: string | undefined;
1620
1620
  } | {
@@ -1682,7 +1682,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1682
1682
  client_id: string;
1683
1683
  username: string;
1684
1684
  otp: string;
1685
- realm: "email" | "sms";
1685
+ realm: "sms" | "email";
1686
1686
  scope?: string | undefined;
1687
1687
  audience?: string | undefined;
1688
1688
  } | {
@@ -1758,7 +1758,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1758
1758
  client_id: string;
1759
1759
  username: string;
1760
1760
  otp: string;
1761
- realm: "email" | "sms";
1761
+ realm: "sms" | "email";
1762
1762
  scope?: string | undefined;
1763
1763
  audience?: string | undefined;
1764
1764
  } | {
@@ -1826,7 +1826,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1826
1826
  client_id: string;
1827
1827
  username: string;
1828
1828
  otp: string;
1829
- realm: "email" | "sms";
1829
+ realm: "sms" | "email";
1830
1830
  scope?: string | undefined;
1831
1831
  audience?: string | undefined;
1832
1832
  } | {
@@ -14,23 +14,23 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- username?: string | undefined;
18
- connection?: string | undefined;
19
17
  scope?: string | undefined;
20
18
  state?: string | undefined;
19
+ username?: string | undefined;
20
+ connection?: string | undefined;
21
21
  audience?: string | undefined;
22
- redirect_uri?: string | undefined;
23
- organization?: string | undefined;
22
+ act_as?: string | undefined;
24
23
  response_type?: AuthorizationResponseType | undefined;
25
24
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
26
- prompt?: string | undefined;
27
- vendor_id?: string | undefined;
25
+ redirect_uri?: string | undefined;
26
+ organization?: string | undefined;
28
27
  nonce?: string | undefined;
29
- max_age?: number | undefined;
30
- acr_values?: string | undefined;
28
+ prompt?: string | undefined;
31
29
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
32
30
  code_challenge?: string | undefined;
33
31
  ui_locales?: string | undefined;
32
+ max_age?: number | undefined;
33
+ acr_values?: string | undefined;
34
34
  claims?: {
35
35
  userinfo?: Record<string, {
36
36
  essential?: boolean | undefined;
@@ -43,7 +43,7 @@ export declare const passwordlessRoutes: OpenAPIHono<{
43
43
  values?: unknown[] | undefined;
44
44
  } | null> | undefined;
45
45
  } | undefined;
46
- act_as?: string | undefined;
46
+ vendor_id?: string | undefined;
47
47
  };
48
48
  } | {
49
49
  client_id: string;
@@ -51,23 +51,23 @@ export declare const passwordlessRoutes: OpenAPIHono<{
51
51
  phone_number: string;
52
52
  send: "code" | "link";
53
53
  authParams: {
54
- username?: string | undefined;
55
- connection?: string | undefined;
56
54
  scope?: string | undefined;
57
55
  state?: string | undefined;
56
+ username?: string | undefined;
57
+ connection?: string | undefined;
58
58
  audience?: string | undefined;
59
- redirect_uri?: string | undefined;
60
- organization?: string | undefined;
59
+ act_as?: string | undefined;
61
60
  response_type?: AuthorizationResponseType | undefined;
62
61
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
63
- prompt?: string | undefined;
64
- vendor_id?: string | undefined;
62
+ redirect_uri?: string | undefined;
63
+ organization?: string | undefined;
65
64
  nonce?: string | undefined;
66
- max_age?: number | undefined;
67
- acr_values?: string | undefined;
65
+ prompt?: string | undefined;
68
66
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
69
67
  code_challenge?: string | undefined;
70
68
  ui_locales?: string | undefined;
69
+ max_age?: number | undefined;
70
+ acr_values?: string | undefined;
71
71
  claims?: {
72
72
  userinfo?: Record<string, {
73
73
  essential?: boolean | undefined;
@@ -80,7 +80,7 @@ export declare const passwordlessRoutes: OpenAPIHono<{
80
80
  values?: unknown[] | undefined;
81
81
  } | null> | undefined;
82
82
  } | undefined;
83
- act_as?: string | undefined;
83
+ vendor_id?: string | undefined;
84
84
  };
85
85
  };
86
86
  };
@@ -48,7 +48,7 @@ export declare const tokenRoutes: OpenAPIHono<{
48
48
  client_id: string;
49
49
  username: string;
50
50
  otp: string;
51
- realm: "email" | "sms";
51
+ realm: "sms" | "email";
52
52
  scope?: string | undefined;
53
53
  audience?: string | undefined;
54
54
  } | {
@@ -116,7 +116,7 @@ export declare const tokenRoutes: OpenAPIHono<{
116
116
  client_id: string;
117
117
  username: string;
118
118
  otp: string;
119
- realm: "email" | "sms";
119
+ realm: "sms" | "email";
120
120
  scope?: string | undefined;
121
121
  audience?: string | undefined;
122
122
  } | {
@@ -189,7 +189,7 @@ export declare const tokenRoutes: OpenAPIHono<{
189
189
  client_id: string;
190
190
  username: string;
191
191
  otp: string;
192
- realm: "email" | "sms";
192
+ realm: "sms" | "email";
193
193
  scope?: string | undefined;
194
194
  audience?: string | undefined;
195
195
  } | {
@@ -257,7 +257,7 @@ export declare const tokenRoutes: OpenAPIHono<{
257
257
  client_id: string;
258
258
  username: string;
259
259
  otp: string;
260
- realm: "email" | "sms";
260
+ realm: "sms" | "email";
261
261
  scope?: string | undefined;
262
262
  audience?: string | undefined;
263
263
  } | {
@@ -339,7 +339,7 @@ export declare const tokenRoutes: OpenAPIHono<{
339
339
  client_id: string;
340
340
  username: string;
341
341
  otp: string;
342
- realm: "email" | "sms";
342
+ realm: "sms" | "email";
343
343
  scope?: string | undefined;
344
344
  audience?: string | undefined;
345
345
  } | {
@@ -407,7 +407,7 @@ export declare const tokenRoutes: OpenAPIHono<{
407
407
  client_id: string;
408
408
  username: string;
409
409
  otp: string;
410
- realm: "email" | "sms";
410
+ realm: "sms" | "email";
411
411
  scope?: string | undefined;
412
412
  audience?: string | undefined;
413
413
  } | {
@@ -483,7 +483,7 @@ export declare const tokenRoutes: OpenAPIHono<{
483
483
  client_id: string;
484
484
  username: string;
485
485
  otp: string;
486
- realm: "email" | "sms";
486
+ realm: "sms" | "email";
487
487
  scope?: string | undefined;
488
488
  audience?: string | undefined;
489
489
  } | {
@@ -551,7 +551,7 @@ export declare const tokenRoutes: OpenAPIHono<{
551
551
  client_id: string;
552
552
  username: string;
553
553
  otp: string;
554
- realm: "email" | "sms";
554
+ realm: "sms" | "email";
555
555
  scope?: string | undefined;
556
556
  audience?: string | undefined;
557
557
  } | {
@@ -627,7 +627,7 @@ export declare const tokenRoutes: OpenAPIHono<{
627
627
  client_id: string;
628
628
  username: string;
629
629
  otp: string;
630
- realm: "email" | "sms";
630
+ realm: "sms" | "email";
631
631
  scope?: string | undefined;
632
632
  audience?: string | undefined;
633
633
  } | {
@@ -695,7 +695,7 @@ export declare const tokenRoutes: OpenAPIHono<{
695
695
  client_id: string;
696
696
  username: string;
697
697
  otp: string;
698
- realm: "email" | "sms";
698
+ realm: "sms" | "email";
699
699
  scope?: string | undefined;
700
700
  audience?: string | undefined;
701
701
  } | {
@@ -31,7 +31,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
31
31
  output: {
32
32
  id: string;
33
33
  trigger_id: string;
34
- status: "final" | "pending" | "unspecified" | "partial" | "canceled" | "suspended";
34
+ status: "pending" | "unspecified" | "final" | "partial" | "canceled" | "suspended";
35
35
  results: {
36
36
  action_name: string;
37
37
  error: {
@@ -78,7 +78,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
78
78
  logs: {
79
79
  action_name: string;
80
80
  lines: {
81
- level: "log" | "error" | "info" | "warn" | "debug";
81
+ level: "error" | "info" | "log" | "warn" | "debug";
82
82
  message: string;
83
83
  }[];
84
84
  }[];
@@ -412,7 +412,7 @@ export declare const actionsRoutes: OpenAPIHono<{
412
412
  };
413
413
  output: {};
414
414
  outputFormat: string;
415
- status: 400;
415
+ status: 404;
416
416
  } | {
417
417
  input: {
418
418
  param: {
@@ -448,7 +448,7 @@ export declare const actionsRoutes: OpenAPIHono<{
448
448
  };
449
449
  output: {};
450
450
  outputFormat: string;
451
- status: 404;
451
+ status: 400;
452
452
  } | {
453
453
  input: {
454
454
  param: {
@@ -527,7 +527,7 @@ export declare const actionsRoutes: OpenAPIHono<{
527
527
  };
528
528
  output: {};
529
529
  outputFormat: string;
530
- status: 200;
530
+ status: 404;
531
531
  } | {
532
532
  input: {
533
533
  param: {
@@ -540,7 +540,7 @@ export declare const actionsRoutes: OpenAPIHono<{
540
540
  };
541
541
  output: {};
542
542
  outputFormat: string;
543
- status: 404;
543
+ status: 200;
544
544
  } | {
545
545
  input: {
546
546
  param: {
@@ -570,7 +570,7 @@ export declare const actionsRoutes: OpenAPIHono<{
570
570
  };
571
571
  output: {};
572
572
  outputFormat: string;
573
- status: 400;
573
+ status: 404;
574
574
  } | {
575
575
  input: {
576
576
  param: {
@@ -583,7 +583,7 @@ export declare const actionsRoutes: OpenAPIHono<{
583
583
  };
584
584
  output: {};
585
585
  outputFormat: string;
586
- status: 404;
586
+ status: 400;
587
587
  } | {
588
588
  input: {
589
589
  param: {
@@ -801,7 +801,7 @@ export declare const actionsRoutes: OpenAPIHono<{
801
801
  };
802
802
  output: {};
803
803
  outputFormat: string;
804
- status: 400;
804
+ status: 404;
805
805
  } | {
806
806
  input: {
807
807
  param: {
@@ -815,7 +815,7 @@ export declare const actionsRoutes: OpenAPIHono<{
815
815
  };
816
816
  output: {};
817
817
  outputFormat: string;
818
- status: 404;
818
+ status: 400;
819
819
  } | {
820
820
  input: {
821
821
  param: {
@@ -919,7 +919,7 @@ export declare const actionsRoutes: OpenAPIHono<{
919
919
  args: import("hono/utils/types").JSONValue[];
920
920
  }[];
921
921
  logs: {
922
- level: "log" | "error" | "info" | "warn" | "debug";
922
+ level: "error" | "info" | "log" | "warn" | "debug";
923
923
  message: string;
924
924
  }[];
925
925
  error?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "push" | "passkey" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
40
+ type: "email" | "passkey" | "phone" | "push" | "webauthn-roaming" | "webauthn-platform" | "totp";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -6,7 +6,7 @@
6
6
  * without a real login session. They intentionally use inert `#` actions and
7
7
  * links — the preview is for visual layout, not interaction.
8
8
  */
9
- export declare const PREVIEW_SCREEN_IDS: readonly ["login", "identifier", "password", "signup"];
9
+ export declare const PREVIEW_SCREEN_IDS: readonly ["login", "identifier", "password", "signup", "otp", "mfa", "consent", "error"];
10
10
  export type PreviewScreenId = (typeof PREVIEW_SCREEN_IDS)[number];
11
11
  interface PreviewComponent {
12
12
  id: string;
@@ -18,6 +18,10 @@ interface PreviewComponent {
18
18
  required?: boolean;
19
19
  sensitive?: boolean;
20
20
  order: number;
21
+ messages?: Array<{
22
+ text: string;
23
+ type: "error" | "success";
24
+ }>;
21
25
  }
22
26
  interface PreviewScreen {
23
27
  name: string;
@@ -32,6 +36,10 @@ interface PreviewScreen {
32
36
  linkText?: string;
33
37
  href: string;
34
38
  }>;
39
+ messages?: Array<{
40
+ text: string;
41
+ type: "error" | "success";
42
+ }>;
35
43
  }
36
44
  /**
37
45
  * Build a sample screen object for the given preview screen id. Falls back to