authhero 9.36.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 (92) 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 +165 -141
  7. package/dist/authhero.d.ts +633 -331
  8. package/dist/authhero.mjs +19149 -16716
  9. package/dist/{mfa-DPwn1ajo.js → mfa-DBhvi2B5.js} +1 -1
  10. package/dist/{mfa-B044FRjD.mjs → mfa-DnCary4g.mjs} +19 -19
  11. package/dist/{mfa-attempts-DGOLb2oh.mjs → mfa-attempts-BK-gWrgJ.mjs} +5161 -5045
  12. package/dist/mfa-attempts-C5kobAHS.js +275 -0
  13. package/dist/{passkey-enrollment-BDboqoaP.js → passkey-enrollment-CmKahPq7.js} +1 -1
  14. package/dist/tsconfig.types.tsbuildinfo +1 -1
  15. package/dist/types/authentication-flows/email-verification.d.ts +1 -1
  16. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  17. package/dist/types/generated/locale-types.d.ts +87 -0
  18. package/dist/types/helpers/anchor-client.d.ts +16 -0
  19. package/dist/types/helpers/database-connection-scope.d.ts +48 -18
  20. package/dist/types/helpers/dcr/audience-policy.d.ts +13 -0
  21. package/dist/types/helpers/dcr/client-registration.d.ts +81 -0
  22. package/dist/types/helpers/dcr/constraint-enforcement.d.ts +1 -0
  23. package/dist/types/helpers/dcr/metadata-mapping.d.ts +18 -1
  24. package/dist/types/helpers/dcr/mint-iat.d.ts +4 -1
  25. package/dist/types/helpers/dcr/mint-token.d.ts +4 -0
  26. package/dist/types/helpers/dcr/presets.d.ts +34 -0
  27. package/dist/types/helpers/dcr/uri-policy.d.ts +34 -0
  28. package/dist/types/helpers/default-destinations.d.ts +14 -0
  29. package/dist/types/helpers/firehose-client.d.ts +29 -0
  30. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +21 -1
  31. package/dist/types/helpers/password-connection.d.ts +3 -1
  32. package/dist/types/helpers/prompt-partials.d.ts +1 -1
  33. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  34. package/dist/types/helpers/run-outbox-relay.d.ts +9 -2
  35. package/dist/types/helpers/self-service-tickets.d.ts +34 -0
  36. package/dist/types/helpers/users.d.ts +17 -2
  37. package/dist/types/index.d.ts +565 -271
  38. package/dist/types/routes/auth-api/authenticate.d.ts +1 -1
  39. package/dist/types/routes/auth-api/dbconnections.d.ts +2 -2
  40. package/dist/types/routes/auth-api/index.d.ts +38 -23
  41. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  42. package/dist/types/routes/auth-api/register/index.d.ts +15 -0
  43. package/dist/types/routes/auth-api/token.d.ts +10 -10
  44. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  45. package/dist/types/routes/management-api/actions.d.ts +9 -9
  46. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  47. package/dist/types/routes/management-api/branding-preview.d.ts +9 -1
  48. package/dist/types/routes/management-api/branding.d.ts +105 -1
  49. package/dist/types/routes/management-api/client-registration-tokens.d.ts +149 -0
  50. package/dist/types/routes/management-api/clients.d.ts +8 -8
  51. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  52. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  53. package/dist/types/routes/management-api/emails.d.ts +2 -2
  54. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  55. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  56. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  57. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  58. package/dist/types/routes/management-api/hooks.d.ts +4 -4
  59. package/dist/types/routes/management-api/index.d.ts +482 -233
  60. package/dist/types/routes/management-api/keys.d.ts +4 -4
  61. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  62. package/dist/types/routes/management-api/logs.d.ts +4 -4
  63. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  64. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  65. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  66. package/dist/types/routes/management-api/roles.d.ts +1 -1
  67. package/dist/types/routes/management-api/self-service-profiles.d.ts +7 -7
  68. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  69. package/dist/types/routes/management-api/tenants.d.ts +29 -29
  70. package/dist/types/routes/management-api/themes.d.ts +69 -0
  71. package/dist/types/routes/management-api/users.d.ts +16 -16
  72. package/dist/types/routes/universal-login/common.d.ts +52 -0
  73. package/dist/types/routes/universal-login/dark-theme.d.ts +25 -0
  74. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  75. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  76. package/dist/types/routes/universal-login/index.d.ts +4 -4
  77. package/dist/types/routes/universal-login/legal-links.d.ts +18 -0
  78. package/dist/types/routes/universal-login/screen-prompt-map.d.ts +31 -0
  79. package/dist/types/routes/universal-login/screens/connect-authz.d.ts +9 -0
  80. package/dist/types/routes/universal-login/screens/login-partials.d.ts +9 -1
  81. package/dist/types/routes/universal-login/screens/self-service-app.d.ts +46 -0
  82. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  83. package/dist/types/routes/universal-login/u2-index.d.ts +35 -5
  84. package/dist/types/routes/universal-login/u2-routes.d.ts +35 -5
  85. package/dist/types/routes/universal-login/u2-widget-page.d.ts +6 -1
  86. package/dist/types/routes/universal-login/universal-login-template.d.ts +1 -0
  87. package/dist/types/state-machines/login-session.d.ts +19 -1
  88. package/dist/types/types/Bindings.d.ts +2 -0
  89. package/package.json +7 -6
  90. package/dist/assets/u/widget/p-FUW5zvoZ.js +0 -2
  91. package/dist/assets/u/widget/p-c6ec4c36.entry.js +0 -1
  92. package/dist/mfa-attempts-BiU_pMOV.js +0 -275
@@ -19,7 +19,7 @@ export declare const authenticateRoutes: OpenAPIHono<{
19
19
  client_id: string;
20
20
  username: string;
21
21
  password: string;
22
- realm: "Username-Password-Authentication";
22
+ realm: string;
23
23
  scope?: string | undefined;
24
24
  };
25
25
  };
@@ -9,7 +9,7 @@ export declare const dbConnectionRoutes: OpenAPIHono<{
9
9
  input: {
10
10
  json: {
11
11
  client_id: string;
12
- connection: "Username-Password-Authentication";
12
+ connection: string;
13
13
  email: string;
14
14
  password: string;
15
15
  };
@@ -31,7 +31,7 @@ export declare const dbConnectionRoutes: OpenAPIHono<{
31
31
  input: {
32
32
  json: {
33
33
  client_id: string;
34
- connection: "Username-Password-Authentication";
34
+ connection: string;
35
35
  email: string;
36
36
  };
37
37
  };
@@ -309,6 +309,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
309
309
  client_id?: string | undefined;
310
310
  client_secret?: string | undefined;
311
311
  audience?: string | undefined;
312
+ application_type?: "native" | "web" | undefined;
313
+ post_logout_redirect_uris?: string[] | undefined;
314
+ web_origins?: string[] | undefined;
312
315
  };
313
316
  };
314
317
  output: {
@@ -332,6 +335,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
332
335
  jwks_uri?: string | undefined;
333
336
  software_id?: string | undefined;
334
337
  software_version?: string | undefined;
338
+ application_type?: "native" | "web" | undefined;
339
+ post_logout_redirect_uris?: string[] | undefined;
340
+ web_origins?: string[] | undefined;
335
341
  };
336
342
  outputFormat: "json";
337
343
  status: 201;
@@ -366,6 +372,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
366
372
  jwks_uri?: string | undefined;
367
373
  software_id?: string | undefined;
368
374
  software_version?: string | undefined;
375
+ application_type?: "native" | "web" | undefined;
376
+ post_logout_redirect_uris?: string[] | undefined;
377
+ web_origins?: string[] | undefined;
369
378
  };
370
379
  outputFormat: "json";
371
380
  status: 200;
@@ -398,6 +407,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
398
407
  client_id?: string | undefined;
399
408
  client_secret?: string | undefined;
400
409
  audience?: string | undefined;
410
+ application_type?: "native" | "web" | undefined;
411
+ post_logout_redirect_uris?: string[] | undefined;
412
+ web_origins?: string[] | undefined;
401
413
  };
402
414
  };
403
415
  output: {
@@ -421,6 +433,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
421
433
  jwks_uri?: string | undefined;
422
434
  software_id?: string | undefined;
423
435
  software_version?: string | undefined;
436
+ application_type?: "native" | "web" | undefined;
437
+ post_logout_redirect_uris?: string[] | undefined;
438
+ web_origins?: string[] | undefined;
424
439
  };
425
440
  outputFormat: "json";
426
441
  status: 200;
@@ -728,7 +743,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
728
743
  client_id: string;
729
744
  username: string;
730
745
  password: string;
731
- realm: "Username-Password-Authentication";
746
+ realm: string;
732
747
  scope?: string | undefined;
733
748
  };
734
749
  };
@@ -747,18 +762,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
747
762
  email: string;
748
763
  send: "code" | "link";
749
764
  authParams: {
750
- username?: string | undefined;
751
- connection?: string | undefined;
752
765
  scope?: string | undefined;
753
766
  state?: string | undefined;
767
+ username?: string | undefined;
768
+ connection?: string | undefined;
754
769
  audience?: string | undefined;
755
- redirect_uri?: string | undefined;
770
+ act_as?: string | undefined;
756
771
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
757
772
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
773
+ redirect_uri?: string | undefined;
758
774
  organization?: string | undefined;
759
- prompt?: string | undefined;
760
- act_as?: string | undefined;
761
775
  nonce?: string | undefined;
776
+ prompt?: string | undefined;
762
777
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
763
778
  code_challenge?: string | undefined;
764
779
  ui_locales?: string | undefined;
@@ -784,18 +799,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
784
799
  phone_number: string;
785
800
  send: "code" | "link";
786
801
  authParams: {
787
- username?: string | undefined;
788
- connection?: string | undefined;
789
802
  scope?: string | undefined;
790
803
  state?: string | undefined;
804
+ username?: string | undefined;
805
+ connection?: string | undefined;
791
806
  audience?: string | undefined;
792
- redirect_uri?: string | undefined;
807
+ act_as?: string | undefined;
793
808
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
794
809
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
810
+ redirect_uri?: string | undefined;
795
811
  organization?: string | undefined;
796
- prompt?: string | undefined;
797
- act_as?: string | undefined;
798
812
  nonce?: string | undefined;
813
+ prompt?: string | undefined;
799
814
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
800
815
  code_challenge?: string | undefined;
801
816
  ui_locales?: string | undefined;
@@ -892,7 +907,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
892
907
  input: {
893
908
  json: {
894
909
  client_id: string;
895
- connection: "Username-Password-Authentication";
910
+ connection: string;
896
911
  email: string;
897
912
  password: string;
898
913
  };
@@ -914,7 +929,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
914
929
  input: {
915
930
  json: {
916
931
  client_id: string;
917
- connection: "Username-Password-Authentication";
932
+ connection: string;
918
933
  email: string;
919
934
  };
920
935
  };
@@ -1164,7 +1179,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1164
1179
  client_id: string;
1165
1180
  username: string;
1166
1181
  otp: string;
1167
- realm: "email" | "sms";
1182
+ realm: "sms" | "email";
1168
1183
  scope?: string | undefined;
1169
1184
  audience?: string | undefined;
1170
1185
  } | {
@@ -1232,7 +1247,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1232
1247
  client_id: string;
1233
1248
  username: string;
1234
1249
  otp: string;
1235
- realm: "email" | "sms";
1250
+ realm: "sms" | "email";
1236
1251
  scope?: string | undefined;
1237
1252
  audience?: string | undefined;
1238
1253
  } | {
@@ -1305,7 +1320,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1305
1320
  client_id: string;
1306
1321
  username: string;
1307
1322
  otp: string;
1308
- realm: "email" | "sms";
1323
+ realm: "sms" | "email";
1309
1324
  scope?: string | undefined;
1310
1325
  audience?: string | undefined;
1311
1326
  } | {
@@ -1373,7 +1388,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1373
1388
  client_id: string;
1374
1389
  username: string;
1375
1390
  otp: string;
1376
- realm: "email" | "sms";
1391
+ realm: "sms" | "email";
1377
1392
  scope?: string | undefined;
1378
1393
  audience?: string | undefined;
1379
1394
  } | {
@@ -1455,7 +1470,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1455
1470
  client_id: string;
1456
1471
  username: string;
1457
1472
  otp: string;
1458
- realm: "email" | "sms";
1473
+ realm: "sms" | "email";
1459
1474
  scope?: string | undefined;
1460
1475
  audience?: string | undefined;
1461
1476
  } | {
@@ -1523,7 +1538,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1523
1538
  client_id: string;
1524
1539
  username: string;
1525
1540
  otp: string;
1526
- realm: "email" | "sms";
1541
+ realm: "sms" | "email";
1527
1542
  scope?: string | undefined;
1528
1543
  audience?: string | undefined;
1529
1544
  } | {
@@ -1599,7 +1614,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1599
1614
  client_id: string;
1600
1615
  username: string;
1601
1616
  otp: string;
1602
- realm: "email" | "sms";
1617
+ realm: "sms" | "email";
1603
1618
  scope?: string | undefined;
1604
1619
  audience?: string | undefined;
1605
1620
  } | {
@@ -1667,7 +1682,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1667
1682
  client_id: string;
1668
1683
  username: string;
1669
1684
  otp: string;
1670
- realm: "email" | "sms";
1685
+ realm: "sms" | "email";
1671
1686
  scope?: string | undefined;
1672
1687
  audience?: string | undefined;
1673
1688
  } | {
@@ -1743,7 +1758,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1743
1758
  client_id: string;
1744
1759
  username: string;
1745
1760
  otp: string;
1746
- realm: "email" | "sms";
1761
+ realm: "sms" | "email";
1747
1762
  scope?: string | undefined;
1748
1763
  audience?: string | undefined;
1749
1764
  } | {
@@ -1811,7 +1826,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1811
1826
  client_id: string;
1812
1827
  username: string;
1813
1828
  otp: string;
1814
- realm: "email" | "sms";
1829
+ realm: "sms" | "email";
1815
1830
  scope?: string | undefined;
1816
1831
  audience?: string | undefined;
1817
1832
  } | {
@@ -14,18 +14,18 @@ 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;
22
+ act_as?: string | undefined;
23
23
  response_type?: AuthorizationResponseType | undefined;
24
24
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
25
+ redirect_uri?: string | undefined;
25
26
  organization?: string | undefined;
26
- prompt?: string | undefined;
27
- act_as?: string | undefined;
28
27
  nonce?: string | undefined;
28
+ prompt?: string | undefined;
29
29
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
30
30
  code_challenge?: string | undefined;
31
31
  ui_locales?: string | undefined;
@@ -51,18 +51,18 @@ 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;
59
+ act_as?: string | undefined;
60
60
  response_type?: AuthorizationResponseType | undefined;
61
61
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
62
+ redirect_uri?: string | undefined;
62
63
  organization?: string | undefined;
63
- prompt?: string | undefined;
64
- act_as?: string | undefined;
65
64
  nonce?: string | undefined;
65
+ prompt?: string | undefined;
66
66
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
67
67
  code_challenge?: string | undefined;
68
68
  ui_locales?: string | undefined;
@@ -26,6 +26,9 @@ export declare const registerRoutes: OpenAPIHono<{
26
26
  client_id?: string | undefined;
27
27
  client_secret?: string | undefined;
28
28
  audience?: string | undefined;
29
+ application_type?: "native" | "web" | undefined;
30
+ post_logout_redirect_uris?: string[] | undefined;
31
+ web_origins?: string[] | undefined;
29
32
  };
30
33
  };
31
34
  output: {
@@ -49,6 +52,9 @@ export declare const registerRoutes: OpenAPIHono<{
49
52
  jwks_uri?: string | undefined;
50
53
  software_id?: string | undefined;
51
54
  software_version?: string | undefined;
55
+ application_type?: "native" | "web" | undefined;
56
+ post_logout_redirect_uris?: string[] | undefined;
57
+ web_origins?: string[] | undefined;
52
58
  };
53
59
  outputFormat: "json";
54
60
  status: 201;
@@ -83,6 +89,9 @@ export declare const registerRoutes: OpenAPIHono<{
83
89
  jwks_uri?: string | undefined;
84
90
  software_id?: string | undefined;
85
91
  software_version?: string | undefined;
92
+ application_type?: "native" | "web" | undefined;
93
+ post_logout_redirect_uris?: string[] | undefined;
94
+ web_origins?: string[] | undefined;
86
95
  };
87
96
  outputFormat: "json";
88
97
  status: 200;
@@ -115,6 +124,9 @@ export declare const registerRoutes: OpenAPIHono<{
115
124
  client_id?: string | undefined;
116
125
  client_secret?: string | undefined;
117
126
  audience?: string | undefined;
127
+ application_type?: "native" | "web" | undefined;
128
+ post_logout_redirect_uris?: string[] | undefined;
129
+ web_origins?: string[] | undefined;
118
130
  };
119
131
  };
120
132
  output: {
@@ -138,6 +150,9 @@ export declare const registerRoutes: OpenAPIHono<{
138
150
  jwks_uri?: string | undefined;
139
151
  software_id?: string | undefined;
140
152
  software_version?: string | undefined;
153
+ application_type?: "native" | "web" | undefined;
154
+ post_logout_redirect_uris?: string[] | undefined;
155
+ web_origins?: string[] | undefined;
141
156
  };
142
157
  outputFormat: "json";
143
158
  status: 200;
@@ -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: "unspecified" | "pending" | "final" | "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: "error" | "log" | "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: "error" | "log" | "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: "push" | "email" | "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