authhero 9.8.0 → 9.9.1

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 (36) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +543 -344
  3. package/dist/authhero.d.ts +158 -138
  4. package/dist/authhero.mjs +12631 -12103
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/grant-tokens.d.ts +16 -0
  7. package/dist/types/authentication-flows/passwordless.d.ts +26 -3
  8. package/dist/types/helpers/refresh-token-lifetime.d.ts +103 -0
  9. package/dist/types/helpers/revoke-session-refresh-tokens.d.ts +33 -0
  10. package/dist/types/hooks/addDataHooks.d.ts +4 -3
  11. package/dist/types/index.d.ts +158 -138
  12. package/dist/types/routes/auth-api/index.d.ts +59 -39
  13. package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
  14. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  15. package/dist/types/routes/auth-api/token.d.ts +44 -24
  16. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  17. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  18. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  19. package/dist/types/routes/management-api/forms.d.ts +126 -126
  20. package/dist/types/routes/management-api/index.d.ts +69 -69
  21. package/dist/types/routes/management-api/keys.d.ts +16 -16
  22. package/dist/types/routes/management-api/logs.d.ts +4 -4
  23. package/dist/types/routes/management-api/organizations.d.ts +2 -2
  24. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  25. package/dist/types/routes/management-api/roles.d.ts +1 -1
  26. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  27. package/dist/types/routes/management-api/tenants.d.ts +2 -2
  28. package/dist/types/routes/management-api/users.d.ts +17 -17
  29. package/dist/types/routes/universal-login/info-code-exchange.d.ts +27 -0
  30. package/dist/types/routes/universal-login/token-info-page.d.ts +26 -0
  31. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  32. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  33. package/dist/types/state-machines/login-session.d.ts +1 -1
  34. package/dist/types/utils/email.d.ts +21 -9
  35. package/dist/types/utils/jwks.d.ts +2 -2
  36. package/package.json +8 -8
@@ -447,7 +447,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
447
447
  client_id: string;
448
448
  redirect_url?: string | undefined;
449
449
  login_hint?: string | undefined;
450
- screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
450
+ screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
451
451
  };
452
452
  };
453
453
  output: {};
@@ -459,7 +459,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
459
459
  client_id: string;
460
460
  redirect_url?: string | undefined;
461
461
  login_hint?: string | undefined;
462
- screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
462
+ screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
463
463
  };
464
464
  };
465
465
  output: {
@@ -737,18 +737,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
737
737
  send: "code" | "link";
738
738
  authParams: {
739
739
  scope?: string | undefined;
740
- username?: string | undefined;
740
+ state?: string | undefined;
741
741
  act_as?: string | undefined;
742
742
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
743
743
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
744
744
  redirect_uri?: string | undefined;
745
745
  audience?: string | undefined;
746
746
  organization?: string | undefined;
747
- state?: string | undefined;
748
747
  nonce?: string | undefined;
749
748
  prompt?: string | undefined;
750
749
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
751
750
  code_challenge?: string | undefined;
751
+ username?: string | undefined;
752
752
  ui_locales?: string | undefined;
753
753
  max_age?: number | undefined;
754
754
  acr_values?: string | undefined;
@@ -773,18 +773,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
773
773
  send: "code" | "link";
774
774
  authParams: {
775
775
  scope?: string | undefined;
776
- username?: string | undefined;
776
+ state?: string | undefined;
777
777
  act_as?: string | undefined;
778
778
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
779
779
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
780
780
  redirect_uri?: string | undefined;
781
781
  audience?: string | undefined;
782
782
  organization?: string | undefined;
783
- state?: string | undefined;
784
783
  nonce?: string | undefined;
785
784
  prompt?: string | undefined;
786
785
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
787
786
  code_challenge?: string | undefined;
787
+ username?: string | undefined;
788
788
  ui_locales?: string | undefined;
789
789
  max_age?: number | undefined;
790
790
  acr_values?: string | undefined;
@@ -916,14 +916,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
916
916
  input: {
917
917
  form: {
918
918
  token: string;
919
- token_type_hint?: "refresh_token" | "access_token" | undefined;
919
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
920
920
  client_id?: string | undefined;
921
921
  client_secret?: string | undefined;
922
922
  };
923
923
  } & {
924
924
  json: {
925
925
  token: string;
926
- token_type_hint?: "refresh_token" | "access_token" | undefined;
926
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
927
927
  client_id?: string | undefined;
928
928
  client_secret?: string | undefined;
929
929
  };
@@ -935,14 +935,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
935
935
  input: {
936
936
  form: {
937
937
  token: string;
938
- token_type_hint?: "refresh_token" | "access_token" | undefined;
938
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
939
939
  client_id?: string | undefined;
940
940
  client_secret?: string | undefined;
941
941
  };
942
942
  } & {
943
943
  json: {
944
944
  token: string;
945
- token_type_hint?: "refresh_token" | "access_token" | undefined;
945
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
946
946
  client_id?: string | undefined;
947
947
  client_secret?: string | undefined;
948
948
  };
@@ -957,14 +957,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
957
957
  input: {
958
958
  form: {
959
959
  token: string;
960
- token_type_hint?: "refresh_token" | "access_token" | undefined;
960
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
961
961
  client_id?: string | undefined;
962
962
  client_secret?: string | undefined;
963
963
  };
964
964
  } & {
965
965
  json: {
966
966
  token: string;
967
- token_type_hint?: "refresh_token" | "access_token" | undefined;
967
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
968
968
  client_id?: string | undefined;
969
969
  client_secret?: string | undefined;
970
970
  };
@@ -1014,7 +1014,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1014
1014
  client_id: string;
1015
1015
  username: string;
1016
1016
  otp: string;
1017
- realm: "email" | "sms";
1017
+ realm: "sms" | "email";
1018
+ scope?: string | undefined;
1019
+ audience?: string | undefined;
1018
1020
  } | {
1019
1021
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1020
1022
  subject_token: string;
@@ -1061,7 +1063,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1061
1063
  client_id: string;
1062
1064
  username: string;
1063
1065
  otp: string;
1064
- realm: "email" | "sms";
1066
+ realm: "sms" | "email";
1067
+ scope?: string | undefined;
1068
+ audience?: string | undefined;
1065
1069
  } | {
1066
1070
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1067
1071
  subject_token: string;
@@ -1075,9 +1079,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1075
1079
  client_assertion_type?: string | undefined;
1076
1080
  };
1077
1081
  };
1078
- output: {};
1079
- outputFormat: string;
1080
- status: 302;
1082
+ output: {
1083
+ access_token: string;
1084
+ token_type: string;
1085
+ expires_in: number;
1086
+ id_token?: string | undefined;
1087
+ scope?: string | undefined;
1088
+ state?: string | undefined;
1089
+ refresh_token?: string | undefined;
1090
+ };
1091
+ outputFormat: "json";
1092
+ status: 200;
1081
1093
  } | {
1082
1094
  input: {
1083
1095
  form: {
@@ -1113,7 +1125,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1113
1125
  client_id: string;
1114
1126
  username: string;
1115
1127
  otp: string;
1116
- realm: "email" | "sms";
1128
+ realm: "sms" | "email";
1129
+ scope?: string | undefined;
1130
+ audience?: string | undefined;
1117
1131
  } | {
1118
1132
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1119
1133
  subject_token: string;
@@ -1160,7 +1174,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1160
1174
  client_id: string;
1161
1175
  username: string;
1162
1176
  otp: string;
1163
- realm: "email" | "sms";
1177
+ realm: "sms" | "email";
1178
+ scope?: string | undefined;
1179
+ audience?: string | undefined;
1164
1180
  } | {
1165
1181
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1166
1182
  subject_token: string;
@@ -1174,17 +1190,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1174
1190
  client_assertion_type?: string | undefined;
1175
1191
  };
1176
1192
  };
1177
- output: {
1178
- access_token: string;
1179
- token_type: string;
1180
- expires_in: number;
1181
- id_token?: string | undefined;
1182
- scope?: string | undefined;
1183
- state?: string | undefined;
1184
- refresh_token?: string | undefined;
1185
- };
1186
- outputFormat: "json";
1187
- status: 200;
1193
+ output: {};
1194
+ outputFormat: string;
1195
+ status: 302;
1188
1196
  } | {
1189
1197
  input: {
1190
1198
  form: {
@@ -1220,7 +1228,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1220
1228
  client_id: string;
1221
1229
  username: string;
1222
1230
  otp: string;
1223
- realm: "email" | "sms";
1231
+ realm: "sms" | "email";
1232
+ scope?: string | undefined;
1233
+ audience?: string | undefined;
1224
1234
  } | {
1225
1235
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1226
1236
  subject_token: string;
@@ -1267,7 +1277,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1267
1277
  client_id: string;
1268
1278
  username: string;
1269
1279
  otp: string;
1270
- realm: "email" | "sms";
1280
+ realm: "sms" | "email";
1281
+ scope?: string | undefined;
1282
+ audience?: string | undefined;
1271
1283
  } | {
1272
1284
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1273
1285
  subject_token: string;
@@ -1322,7 +1334,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1322
1334
  client_id: string;
1323
1335
  username: string;
1324
1336
  otp: string;
1325
- realm: "email" | "sms";
1337
+ realm: "sms" | "email";
1338
+ scope?: string | undefined;
1339
+ audience?: string | undefined;
1326
1340
  } | {
1327
1341
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1328
1342
  subject_token: string;
@@ -1369,7 +1383,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1369
1383
  client_id: string;
1370
1384
  username: string;
1371
1385
  otp: string;
1372
- realm: "email" | "sms";
1386
+ realm: "sms" | "email";
1387
+ scope?: string | undefined;
1388
+ audience?: string | undefined;
1373
1389
  } | {
1374
1390
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1375
1391
  subject_token: string;
@@ -1424,7 +1440,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1424
1440
  client_id: string;
1425
1441
  username: string;
1426
1442
  otp: string;
1427
- realm: "email" | "sms";
1443
+ realm: "sms" | "email";
1444
+ scope?: string | undefined;
1445
+ audience?: string | undefined;
1428
1446
  } | {
1429
1447
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1430
1448
  subject_token: string;
@@ -1471,7 +1489,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1471
1489
  client_id: string;
1472
1490
  username: string;
1473
1491
  otp: string;
1474
- realm: "email" | "sms";
1492
+ realm: "sms" | "email";
1493
+ scope?: string | undefined;
1494
+ audience?: string | undefined;
1475
1495
  } | {
1476
1496
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
1477
1497
  subject_token: string;
@@ -1500,7 +1520,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1500
1520
  output: {
1501
1521
  keys: {
1502
1522
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1503
- kty: "RSA" | "EC" | "oct";
1523
+ kty: "EC" | "RSA" | "oct";
1504
1524
  kid?: string | undefined;
1505
1525
  use?: "sig" | "enc" | undefined;
1506
1526
  n?: string | undefined;
@@ -1693,7 +1713,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1693
1713
  };
1694
1714
  output: {};
1695
1715
  outputFormat: string;
1696
- status: 200;
1716
+ status: 302;
1697
1717
  } | {
1698
1718
  input: {
1699
1719
  query: {
@@ -1707,7 +1727,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1707
1727
  };
1708
1728
  output: {};
1709
1729
  outputFormat: string;
1710
- status: 302;
1730
+ status: 200;
1711
1731
  } | {
1712
1732
  input: {
1713
1733
  query: {
@@ -14,15 +14,15 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- scope?: string | undefined;
18
17
  username?: string | undefined;
18
+ audience?: string | undefined;
19
+ state?: string | undefined;
20
+ scope?: string | undefined;
19
21
  act_as?: string | undefined;
20
22
  response_type?: AuthorizationResponseType | undefined;
21
23
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
22
24
  redirect_uri?: string | undefined;
23
- audience?: string | undefined;
24
25
  organization?: string | undefined;
25
- state?: string | undefined;
26
26
  nonce?: string | undefined;
27
27
  prompt?: string | undefined;
28
28
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
@@ -50,15 +50,15 @@ export declare const passwordlessRoutes: OpenAPIHono<{
50
50
  phone_number: string;
51
51
  send: "code" | "link";
52
52
  authParams: {
53
- scope?: string | undefined;
54
53
  username?: string | undefined;
54
+ audience?: string | undefined;
55
+ state?: string | undefined;
56
+ scope?: string | undefined;
55
57
  act_as?: string | undefined;
56
58
  response_type?: AuthorizationResponseType | undefined;
57
59
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
58
60
  redirect_uri?: string | undefined;
59
- audience?: string | undefined;
60
61
  organization?: string | undefined;
61
- state?: string | undefined;
62
62
  nonce?: string | undefined;
63
63
  prompt?: string | undefined;
64
64
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
@@ -9,14 +9,14 @@ export declare const revokeRoutes: OpenAPIHono<{
9
9
  input: {
10
10
  form: {
11
11
  token: string;
12
- token_type_hint?: "refresh_token" | "access_token" | undefined;
12
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
13
13
  client_id?: string | undefined;
14
14
  client_secret?: string | undefined;
15
15
  };
16
16
  } & {
17
17
  json: {
18
18
  token: string;
19
- token_type_hint?: "refresh_token" | "access_token" | undefined;
19
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
20
20
  client_id?: string | undefined;
21
21
  client_secret?: string | undefined;
22
22
  };
@@ -28,14 +28,14 @@ export declare const revokeRoutes: OpenAPIHono<{
28
28
  input: {
29
29
  form: {
30
30
  token: string;
31
- token_type_hint?: "refresh_token" | "access_token" | undefined;
31
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
32
32
  client_id?: string | undefined;
33
33
  client_secret?: string | undefined;
34
34
  };
35
35
  } & {
36
36
  json: {
37
37
  token: string;
38
- token_type_hint?: "refresh_token" | "access_token" | undefined;
38
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
39
39
  client_id?: string | undefined;
40
40
  client_secret?: string | undefined;
41
41
  };
@@ -50,14 +50,14 @@ export declare const revokeRoutes: OpenAPIHono<{
50
50
  input: {
51
51
  form: {
52
52
  token: string;
53
- token_type_hint?: "refresh_token" | "access_token" | undefined;
53
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
54
54
  client_id?: string | undefined;
55
55
  client_secret?: string | undefined;
56
56
  };
57
57
  } & {
58
58
  json: {
59
59
  token: string;
60
- token_type_hint?: "refresh_token" | "access_token" | undefined;
60
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
61
61
  client_id?: string | undefined;
62
62
  client_secret?: string | undefined;
63
63
  };
@@ -40,7 +40,9 @@ export declare const tokenRoutes: OpenAPIHono<{
40
40
  client_id: string;
41
41
  username: string;
42
42
  otp: string;
43
- realm: "email" | "sms";
43
+ realm: "sms" | "email";
44
+ scope?: string | undefined;
45
+ audience?: string | undefined;
44
46
  } | {
45
47
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
46
48
  subject_token: string;
@@ -87,7 +89,9 @@ export declare const tokenRoutes: OpenAPIHono<{
87
89
  client_id: string;
88
90
  username: string;
89
91
  otp: string;
90
- realm: "email" | "sms";
92
+ realm: "sms" | "email";
93
+ scope?: string | undefined;
94
+ audience?: string | undefined;
91
95
  } | {
92
96
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
93
97
  subject_token: string;
@@ -101,9 +105,17 @@ export declare const tokenRoutes: OpenAPIHono<{
101
105
  client_assertion_type?: string | undefined;
102
106
  };
103
107
  };
104
- output: {};
105
- outputFormat: string;
106
- status: 302;
108
+ output: {
109
+ access_token: string;
110
+ token_type: string;
111
+ expires_in: number;
112
+ id_token?: string | undefined;
113
+ scope?: string | undefined;
114
+ state?: string | undefined;
115
+ refresh_token?: string | undefined;
116
+ };
117
+ outputFormat: "json";
118
+ status: 200;
107
119
  } | {
108
120
  input: {
109
121
  form: {
@@ -139,7 +151,9 @@ export declare const tokenRoutes: OpenAPIHono<{
139
151
  client_id: string;
140
152
  username: string;
141
153
  otp: string;
142
- realm: "email" | "sms";
154
+ realm: "sms" | "email";
155
+ scope?: string | undefined;
156
+ audience?: string | undefined;
143
157
  } | {
144
158
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
145
159
  subject_token: string;
@@ -186,7 +200,9 @@ export declare const tokenRoutes: OpenAPIHono<{
186
200
  client_id: string;
187
201
  username: string;
188
202
  otp: string;
189
- realm: "email" | "sms";
203
+ realm: "sms" | "email";
204
+ scope?: string | undefined;
205
+ audience?: string | undefined;
190
206
  } | {
191
207
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
192
208
  subject_token: string;
@@ -200,17 +216,9 @@ export declare const tokenRoutes: OpenAPIHono<{
200
216
  client_assertion_type?: string | undefined;
201
217
  };
202
218
  };
203
- output: {
204
- access_token: string;
205
- token_type: string;
206
- expires_in: number;
207
- id_token?: string | undefined;
208
- scope?: string | undefined;
209
- state?: string | undefined;
210
- refresh_token?: string | undefined;
211
- };
212
- outputFormat: "json";
213
- status: 200;
219
+ output: {};
220
+ outputFormat: string;
221
+ status: 302;
214
222
  } | {
215
223
  input: {
216
224
  form: {
@@ -246,7 +254,9 @@ export declare const tokenRoutes: OpenAPIHono<{
246
254
  client_id: string;
247
255
  username: string;
248
256
  otp: string;
249
- realm: "email" | "sms";
257
+ realm: "sms" | "email";
258
+ scope?: string | undefined;
259
+ audience?: string | undefined;
250
260
  } | {
251
261
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
252
262
  subject_token: string;
@@ -293,7 +303,9 @@ export declare const tokenRoutes: OpenAPIHono<{
293
303
  client_id: string;
294
304
  username: string;
295
305
  otp: string;
296
- realm: "email" | "sms";
306
+ realm: "sms" | "email";
307
+ scope?: string | undefined;
308
+ audience?: string | undefined;
297
309
  } | {
298
310
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
299
311
  subject_token: string;
@@ -348,7 +360,9 @@ export declare const tokenRoutes: OpenAPIHono<{
348
360
  client_id: string;
349
361
  username: string;
350
362
  otp: string;
351
- realm: "email" | "sms";
363
+ realm: "sms" | "email";
364
+ scope?: string | undefined;
365
+ audience?: string | undefined;
352
366
  } | {
353
367
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
354
368
  subject_token: string;
@@ -395,7 +409,9 @@ export declare const tokenRoutes: OpenAPIHono<{
395
409
  client_id: string;
396
410
  username: string;
397
411
  otp: string;
398
- realm: "email" | "sms";
412
+ realm: "sms" | "email";
413
+ scope?: string | undefined;
414
+ audience?: string | undefined;
399
415
  } | {
400
416
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
401
417
  subject_token: string;
@@ -450,7 +466,9 @@ export declare const tokenRoutes: OpenAPIHono<{
450
466
  client_id: string;
451
467
  username: string;
452
468
  otp: string;
453
- realm: "email" | "sms";
469
+ realm: "sms" | "email";
470
+ scope?: string | undefined;
471
+ audience?: string | undefined;
454
472
  } | {
455
473
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
456
474
  subject_token: string;
@@ -497,7 +515,9 @@ export declare const tokenRoutes: OpenAPIHono<{
497
515
  client_id: string;
498
516
  username: string;
499
517
  otp: string;
500
- realm: "email" | "sms";
518
+ realm: "sms" | "email";
519
+ scope?: string | undefined;
520
+ audience?: string | undefined;
501
521
  } | {
502
522
  grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
503
523
  subject_token: string;
@@ -9,7 +9,7 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
9
9
  output: {
10
10
  keys: {
11
11
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
12
- kty: "RSA" | "EC" | "oct";
12
+ kty: "EC" | "RSA" | "oct";
13
13
  kid?: string | undefined;
14
14
  use?: "sig" | "enc" | undefined;
15
15
  n?: string | undefined;
@@ -28,7 +28,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
28
28
  type: "auth0_managed_certs" | "self_managed_certs";
29
29
  custom_domain_id: string;
30
30
  primary: boolean;
31
- status: "pending" | "ready" | "disabled" | "pending_verification";
31
+ status: "disabled" | "pending" | "ready" | "pending_verification";
32
32
  verification_method?: "txt" | undefined;
33
33
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
34
34
  domain_metadata?: {
@@ -69,7 +69,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
69
69
  type: "auth0_managed_certs" | "self_managed_certs";
70
70
  custom_domain_id: string;
71
71
  primary: boolean;
72
- status: "pending" | "ready" | "disabled" | "pending_verification";
72
+ status: "disabled" | "pending" | "ready" | "pending_verification";
73
73
  verification_method?: "txt" | undefined;
74
74
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
75
75
  domain_metadata?: {
@@ -133,7 +133,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
133
133
  type: "auth0_managed_certs" | "self_managed_certs";
134
134
  custom_domain_id: string;
135
135
  primary: boolean;
136
- status: "pending" | "ready" | "disabled" | "pending_verification";
136
+ status: "disabled" | "pending" | "ready" | "pending_verification";
137
137
  verification_method?: "txt" | undefined;
138
138
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
139
139
  domain_metadata?: {
@@ -180,7 +180,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
180
180
  type: "auth0_managed_certs" | "self_managed_certs";
181
181
  custom_domain_id: string;
182
182
  primary: boolean;
183
- status: "pending" | "ready" | "disabled" | "pending_verification";
183
+ status: "disabled" | "pending" | "ready" | "pending_verification";
184
184
  verification_method?: "txt" | undefined;
185
185
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
186
186
  domain_metadata?: {
@@ -226,7 +226,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
226
226
  type: "auth0_managed_certs" | "self_managed_certs";
227
227
  custom_domain_id: string;
228
228
  primary: boolean;
229
- status: "pending" | "ready" | "disabled" | "pending_verification";
229
+ status: "disabled" | "pending" | "ready" | "pending_verification";
230
230
  verification_method?: "txt" | undefined;
231
231
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
232
232
  domain_metadata?: {
@@ -267,7 +267,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
267
267
  type: "auth0_managed_certs" | "self_managed_certs";
268
268
  custom_domain_id: string;
269
269
  primary: boolean;
270
- status: "pending" | "ready" | "disabled" | "pending_verification";
270
+ status: "disabled" | "pending" | "ready" | "pending_verification";
271
271
  verification_method?: "txt" | undefined;
272
272
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
273
273
  domain_metadata?: {
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
30
30
  log_type: string;
31
31
  category: "user_action" | "admin_action" | "system" | "api";
32
32
  actor: {
33
- type: "user" | "client_credentials" | "system" | "admin" | "api_key";
33
+ type: "user" | "client_credentials" | "api_key" | "system" | "admin";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;