authhero 9.31.0 → 9.34.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 (71) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +137 -137
  3. package/dist/authhero.d.ts +605 -392
  4. package/dist/authhero.mjs +16303 -15968
  5. package/dist/mfa-CDFRupfM.mjs +128 -0
  6. package/dist/mfa-DF3O3Z8H.js +1 -0
  7. package/dist/mfa-attempts-BOWgbEPg.js +275 -0
  8. package/dist/{mfa-attempts-Dl3I8pop.mjs → mfa-attempts-C06Bkdy9.mjs} +14352 -13847
  9. package/dist/{passkey-enrollment-2Toeaevy.js → passkey-enrollment-RGw-WaSq.js} +1 -1
  10. package/dist/tsconfig.types.tsbuildinfo +1 -1
  11. package/dist/types/authentication-flows/common.d.ts +12 -1
  12. package/dist/types/authentication-flows/passwordless.d.ts +24 -11
  13. package/dist/types/authentication-flows/refresh-token.d.ts +1 -0
  14. package/dist/types/authentication-flows/remember-browser.d.ts +77 -0
  15. package/dist/types/constants.d.ts +1 -0
  16. package/dist/types/generated/locale-types.d.ts +6 -0
  17. package/dist/types/helpers/cimd.d.ts +8 -0
  18. package/dist/types/helpers/client.d.ts +25 -7
  19. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  20. package/dist/types/helpers/login-session-tenant.d.ts +22 -0
  21. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  22. package/dist/types/helpers/session-transfer.d.ts +158 -0
  23. package/dist/types/hooks/lifecycle-codehooks.d.ts +1 -1
  24. package/dist/types/index.d.ts +536 -376
  25. package/dist/types/routes/auth-api/authorize.d.ts +6 -0
  26. package/dist/types/routes/auth-api/device.d.ts +8 -8
  27. package/dist/types/routes/auth-api/index.d.ts +49 -32
  28. package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
  29. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  30. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  31. package/dist/types/routes/auth-api/token.d.ts +21 -10
  32. package/dist/types/routes/management-api/action-triggers.d.ts +25 -25
  33. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  34. package/dist/types/routes/management-api/clients.d.ts +100 -32
  35. package/dist/types/routes/management-api/connections.d.ts +25 -25
  36. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  37. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  38. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  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 +11 -1
  42. package/dist/types/routes/management-api/hooks.d.ts +21 -21
  43. package/dist/types/routes/management-api/index.d.ts +480 -337
  44. package/dist/types/routes/management-api/jobs.d.ts +2 -2
  45. package/dist/types/routes/management-api/keys.d.ts +12 -12
  46. package/dist/types/routes/management-api/logs.d.ts +4 -4
  47. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  48. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  49. package/dist/types/routes/management-api/refresh_tokens.d.ts +5 -0
  50. package/dist/types/routes/management-api/rollouts.d.ts +6 -6
  51. package/dist/types/routes/management-api/sessions.d.ts +5 -0
  52. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  53. package/dist/types/routes/management-api/tenant-members.d.ts +8 -8
  54. package/dist/types/routes/management-api/tenant-operations.d.ts +4 -4
  55. package/dist/types/routes/management-api/tenants.d.ts +24 -16
  56. package/dist/types/routes/management-api/users.d.ts +84 -24
  57. package/dist/types/routes/universal-login/common.d.ts +57 -22
  58. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  59. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  60. package/dist/types/routes/universal-login/index.d.ts +2 -2
  61. package/dist/types/routes/universal-login/screens/mfa-remember-browser.d.ts +28 -0
  62. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  63. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  64. package/dist/types/state-machines/login-session.d.ts +7 -2
  65. package/dist/types/types/GrantFlowResult.d.ts +13 -0
  66. package/dist/types/types/Hooks.d.ts +24 -0
  67. package/dist/types/types/Variables.d.ts +12 -1
  68. package/dist/types/utils/cookies.d.ts +29 -0
  69. package/dist/types/utils/session-transfer-token.d.ts +56 -0
  70. package/package.json +6 -6
  71. package/dist/mfa-attempts-DXiY4U74.js +0 -275
@@ -36,6 +36,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
36
36
  screen_hint?: string | undefined;
37
37
  request?: string | undefined;
38
38
  request_uri?: string | undefined;
39
+ session_transfer_token?: string | undefined;
39
40
  };
40
41
  };
41
42
  output: Response;
@@ -71,6 +72,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
71
72
  screen_hint?: string | undefined;
72
73
  request?: string | undefined;
73
74
  request_uri?: string | undefined;
75
+ session_transfer_token?: string | undefined;
74
76
  };
75
77
  };
76
78
  output: {};
@@ -106,6 +108,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
106
108
  screen_hint?: string | undefined;
107
109
  request?: string | undefined;
108
110
  request_uri?: string | undefined;
111
+ session_transfer_token?: string | undefined;
109
112
  };
110
113
  };
111
114
  output: string | {
@@ -116,6 +119,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
116
119
  scope?: string | undefined;
117
120
  state?: string | undefined;
118
121
  refresh_token?: string | undefined;
122
+ issued_token_type?: string | undefined;
119
123
  };
120
124
  outputFormat: "json";
121
125
  status: 200;
@@ -149,6 +153,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
149
153
  screen_hint?: string | undefined;
150
154
  request?: string | undefined;
151
155
  request_uri?: string | undefined;
156
+ session_transfer_token?: string | undefined;
152
157
  };
153
158
  };
154
159
  output: {
@@ -186,6 +191,7 @@ export declare const authorizeRoutes: OpenAPIHono<{
186
191
  screen_hint?: string | undefined;
187
192
  request?: string | undefined;
188
193
  request_uri?: string | undefined;
194
+ session_transfer_token?: string | undefined;
189
195
  };
190
196
  };
191
197
  output: {
@@ -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 | "true" | "false" | undefined;
15
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
23
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
44
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
52
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
68
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
76
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
92
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
100
+ include_qr_code?: boolean | "false" | "true" | undefined;
101
101
  };
102
102
  };
103
103
  output: {
@@ -301,7 +301,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
301
301
  scope?: string | undefined;
302
302
  grant_types?: string[] | undefined;
303
303
  response_types?: string[] | undefined;
304
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
304
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
305
305
  jwks_uri?: string | undefined;
306
306
  jwks?: Record<string, unknown> | undefined;
307
307
  software_id?: string | undefined;
@@ -390,7 +390,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
390
390
  scope?: string | undefined;
391
391
  grant_types?: string[] | undefined;
392
392
  response_types?: string[] | undefined;
393
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
393
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
394
394
  jwks_uri?: string | undefined;
395
395
  jwks?: Record<string, unknown> | undefined;
396
396
  software_id?: string | undefined;
@@ -501,6 +501,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
501
501
  screen_hint?: string | undefined;
502
502
  request?: string | undefined;
503
503
  request_uri?: string | undefined;
504
+ session_transfer_token?: string | undefined;
504
505
  };
505
506
  };
506
507
  output: Response;
@@ -536,6 +537,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
536
537
  screen_hint?: string | undefined;
537
538
  request?: string | undefined;
538
539
  request_uri?: string | undefined;
540
+ session_transfer_token?: string | undefined;
539
541
  };
540
542
  };
541
543
  output: {};
@@ -571,6 +573,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
571
573
  screen_hint?: string | undefined;
572
574
  request?: string | undefined;
573
575
  request_uri?: string | undefined;
576
+ session_transfer_token?: string | undefined;
574
577
  };
575
578
  };
576
579
  output: string | {
@@ -581,6 +584,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
581
584
  scope?: string | undefined;
582
585
  state?: string | undefined;
583
586
  refresh_token?: string | undefined;
587
+ issued_token_type?: string | undefined;
584
588
  };
585
589
  outputFormat: "json";
586
590
  status: 200;
@@ -614,6 +618,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
614
618
  screen_hint?: string | undefined;
615
619
  request?: string | undefined;
616
620
  request_uri?: string | undefined;
621
+ session_transfer_token?: string | undefined;
617
622
  };
618
623
  };
619
624
  output: {
@@ -651,6 +656,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
651
656
  screen_hint?: string | undefined;
652
657
  request?: string | undefined;
653
658
  request_uri?: string | undefined;
659
+ session_transfer_token?: string | undefined;
654
660
  };
655
661
  };
656
662
  output: {
@@ -739,13 +745,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
739
745
  connection: "email";
740
746
  client_id: string;
741
747
  email: string;
742
- send: "code" | "link";
748
+ send: "link" | "code";
743
749
  authParams: {
744
- username?: string | undefined;
745
750
  scope?: string | undefined;
751
+ username?: string | undefined;
746
752
  audience?: string | undefined;
747
- organization?: string | undefined;
748
753
  state?: string | undefined;
754
+ organization?: string | undefined;
749
755
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
750
756
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
751
757
  act_as?: string | undefined;
@@ -775,13 +781,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
775
781
  client_id: string;
776
782
  connection: "sms";
777
783
  phone_number: string;
778
- send: "code" | "link";
784
+ send: "link" | "code";
779
785
  authParams: {
780
- username?: string | undefined;
781
786
  scope?: string | undefined;
787
+ username?: string | undefined;
782
788
  audience?: string | undefined;
783
- organization?: string | undefined;
784
789
  state?: string | undefined;
790
+ organization?: string | undefined;
785
791
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
786
792
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
787
793
  act_as?: string | undefined;
@@ -921,14 +927,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
921
927
  input: {
922
928
  form: {
923
929
  token: string;
924
- token_type_hint?: "refresh_token" | "access_token" | undefined;
930
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
925
931
  client_id?: string | undefined;
926
932
  client_secret?: string | undefined;
927
933
  };
928
934
  } & {
929
935
  json: {
930
936
  token: string;
931
- token_type_hint?: "refresh_token" | "access_token" | undefined;
937
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
932
938
  client_id?: string | undefined;
933
939
  client_secret?: string | undefined;
934
940
  };
@@ -940,14 +946,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
940
946
  input: {
941
947
  form: {
942
948
  token: string;
943
- token_type_hint?: "refresh_token" | "access_token" | undefined;
949
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
944
950
  client_id?: string | undefined;
945
951
  client_secret?: string | undefined;
946
952
  };
947
953
  } & {
948
954
  json: {
949
955
  token: string;
950
- token_type_hint?: "refresh_token" | "access_token" | undefined;
956
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
951
957
  client_id?: string | undefined;
952
958
  client_secret?: string | undefined;
953
959
  };
@@ -962,14 +968,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
962
968
  input: {
963
969
  form: {
964
970
  token: string;
965
- token_type_hint?: "refresh_token" | "access_token" | undefined;
971
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
966
972
  client_id?: string | undefined;
967
973
  client_secret?: string | undefined;
968
974
  };
969
975
  } & {
970
976
  json: {
971
977
  token: string;
972
- token_type_hint?: "refresh_token" | "access_token" | undefined;
978
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
973
979
  client_id?: string | undefined;
974
980
  client_secret?: string | undefined;
975
981
  };
@@ -1015,7 +1021,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1015
1021
  client_secret?: string | undefined;
1016
1022
  scope?: string | undefined;
1017
1023
  audience?: string | undefined;
1018
- include_qr_code?: boolean | "true" | "false" | undefined;
1024
+ include_qr_code?: boolean | "false" | "true" | undefined;
1019
1025
  };
1020
1026
  } & {
1021
1027
  json: {
@@ -1023,7 +1029,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1023
1029
  client_secret?: string | undefined;
1024
1030
  scope?: string | undefined;
1025
1031
  audience?: string | undefined;
1026
- include_qr_code?: boolean | "true" | "false" | undefined;
1032
+ include_qr_code?: boolean | "false" | "true" | undefined;
1027
1033
  };
1028
1034
  };
1029
1035
  output: {
@@ -1044,7 +1050,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1044
1050
  client_secret?: string | undefined;
1045
1051
  scope?: string | undefined;
1046
1052
  audience?: string | undefined;
1047
- include_qr_code?: boolean | "true" | "false" | undefined;
1053
+ include_qr_code?: boolean | "false" | "true" | undefined;
1048
1054
  };
1049
1055
  } & {
1050
1056
  json: {
@@ -1052,7 +1058,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1052
1058
  client_secret?: string | undefined;
1053
1059
  scope?: string | undefined;
1054
1060
  audience?: string | undefined;
1055
- include_qr_code?: boolean | "true" | "false" | undefined;
1061
+ include_qr_code?: boolean | "false" | "true" | undefined;
1056
1062
  };
1057
1063
  };
1058
1064
  output: {
@@ -1068,7 +1074,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1068
1074
  client_secret?: string | undefined;
1069
1075
  scope?: string | undefined;
1070
1076
  audience?: string | undefined;
1071
- include_qr_code?: boolean | "true" | "false" | undefined;
1077
+ include_qr_code?: boolean | "false" | "true" | undefined;
1072
1078
  };
1073
1079
  } & {
1074
1080
  json: {
@@ -1076,7 +1082,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1076
1082
  client_secret?: string | undefined;
1077
1083
  scope?: string | undefined;
1078
1084
  audience?: string | undefined;
1079
- include_qr_code?: boolean | "true" | "false" | undefined;
1085
+ include_qr_code?: boolean | "false" | "true" | undefined;
1080
1086
  };
1081
1087
  };
1082
1088
  output: {
@@ -1092,7 +1098,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1092
1098
  client_secret?: string | undefined;
1093
1099
  scope?: string | undefined;
1094
1100
  audience?: string | undefined;
1095
- include_qr_code?: boolean | "true" | "false" | undefined;
1101
+ include_qr_code?: boolean | "false" | "true" | undefined;
1096
1102
  };
1097
1103
  } & {
1098
1104
  json: {
@@ -1100,7 +1106,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1100
1106
  client_secret?: string | undefined;
1101
1107
  scope?: string | undefined;
1102
1108
  audience?: string | undefined;
1103
- include_qr_code?: boolean | "true" | "false" | undefined;
1109
+ include_qr_code?: boolean | "false" | "true" | undefined;
1104
1110
  };
1105
1111
  };
1106
1112
  output: {
@@ -1150,12 +1156,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1150
1156
  client_assertion_type?: string | undefined;
1151
1157
  redirect_uri?: string | undefined;
1152
1158
  organization?: string | undefined;
1159
+ audience?: string | undefined;
1153
1160
  } | {
1154
1161
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1155
1162
  client_id: string;
1156
1163
  username: string;
1157
1164
  otp: string;
1158
- realm: "email" | "sms";
1165
+ realm: "sms" | "email";
1159
1166
  scope?: string | undefined;
1160
1167
  audience?: string | undefined;
1161
1168
  } | {
@@ -1217,12 +1224,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1217
1224
  client_assertion_type?: string | undefined;
1218
1225
  redirect_uri?: string | undefined;
1219
1226
  organization?: string | undefined;
1227
+ audience?: string | undefined;
1220
1228
  } | {
1221
1229
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1222
1230
  client_id: string;
1223
1231
  username: string;
1224
1232
  otp: string;
1225
- realm: "email" | "sms";
1233
+ realm: "sms" | "email";
1226
1234
  scope?: string | undefined;
1227
1235
  audience?: string | undefined;
1228
1236
  } | {
@@ -1289,12 +1297,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1289
1297
  client_assertion_type?: string | undefined;
1290
1298
  redirect_uri?: string | undefined;
1291
1299
  organization?: string | undefined;
1300
+ audience?: string | undefined;
1292
1301
  } | {
1293
1302
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1294
1303
  client_id: string;
1295
1304
  username: string;
1296
1305
  otp: string;
1297
- realm: "email" | "sms";
1306
+ realm: "sms" | "email";
1298
1307
  scope?: string | undefined;
1299
1308
  audience?: string | undefined;
1300
1309
  } | {
@@ -1356,12 +1365,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1356
1365
  client_assertion_type?: string | undefined;
1357
1366
  redirect_uri?: string | undefined;
1358
1367
  organization?: string | undefined;
1368
+ audience?: string | undefined;
1359
1369
  } | {
1360
1370
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1361
1371
  client_id: string;
1362
1372
  username: string;
1363
1373
  otp: string;
1364
- realm: "email" | "sms";
1374
+ realm: "sms" | "email";
1365
1375
  scope?: string | undefined;
1366
1376
  audience?: string | undefined;
1367
1377
  } | {
@@ -1396,6 +1406,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1396
1406
  scope?: string | undefined;
1397
1407
  state?: string | undefined;
1398
1408
  refresh_token?: string | undefined;
1409
+ issued_token_type?: string | undefined;
1399
1410
  };
1400
1411
  outputFormat: "json";
1401
1412
  status: 200;
@@ -1436,12 +1447,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1436
1447
  client_assertion_type?: string | undefined;
1437
1448
  redirect_uri?: string | undefined;
1438
1449
  organization?: string | undefined;
1450
+ audience?: string | undefined;
1439
1451
  } | {
1440
1452
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1441
1453
  client_id: string;
1442
1454
  username: string;
1443
1455
  otp: string;
1444
- realm: "email" | "sms";
1456
+ realm: "sms" | "email";
1445
1457
  scope?: string | undefined;
1446
1458
  audience?: string | undefined;
1447
1459
  } | {
@@ -1503,12 +1515,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1503
1515
  client_assertion_type?: string | undefined;
1504
1516
  redirect_uri?: string | undefined;
1505
1517
  organization?: string | undefined;
1518
+ audience?: string | undefined;
1506
1519
  } | {
1507
1520
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1508
1521
  client_id: string;
1509
1522
  username: string;
1510
1523
  otp: string;
1511
- realm: "email" | "sms";
1524
+ realm: "sms" | "email";
1512
1525
  scope?: string | undefined;
1513
1526
  audience?: string | undefined;
1514
1527
  } | {
@@ -1578,12 +1591,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1578
1591
  client_assertion_type?: string | undefined;
1579
1592
  redirect_uri?: string | undefined;
1580
1593
  organization?: string | undefined;
1594
+ audience?: string | undefined;
1581
1595
  } | {
1582
1596
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1583
1597
  client_id: string;
1584
1598
  username: string;
1585
1599
  otp: string;
1586
- realm: "email" | "sms";
1600
+ realm: "sms" | "email";
1587
1601
  scope?: string | undefined;
1588
1602
  audience?: string | undefined;
1589
1603
  } | {
@@ -1645,12 +1659,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1645
1659
  client_assertion_type?: string | undefined;
1646
1660
  redirect_uri?: string | undefined;
1647
1661
  organization?: string | undefined;
1662
+ audience?: string | undefined;
1648
1663
  } | {
1649
1664
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1650
1665
  client_id: string;
1651
1666
  username: string;
1652
1667
  otp: string;
1653
- realm: "email" | "sms";
1668
+ realm: "sms" | "email";
1654
1669
  scope?: string | undefined;
1655
1670
  audience?: string | undefined;
1656
1671
  } | {
@@ -1720,12 +1735,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1720
1735
  client_assertion_type?: string | undefined;
1721
1736
  redirect_uri?: string | undefined;
1722
1737
  organization?: string | undefined;
1738
+ audience?: string | undefined;
1723
1739
  } | {
1724
1740
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1725
1741
  client_id: string;
1726
1742
  username: string;
1727
1743
  otp: string;
1728
- realm: "email" | "sms";
1744
+ realm: "sms" | "email";
1729
1745
  scope?: string | undefined;
1730
1746
  audience?: string | undefined;
1731
1747
  } | {
@@ -1787,12 +1803,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1787
1803
  client_assertion_type?: string | undefined;
1788
1804
  redirect_uri?: string | undefined;
1789
1805
  organization?: string | undefined;
1806
+ audience?: string | undefined;
1790
1807
  } | {
1791
1808
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
1792
1809
  client_id: string;
1793
1810
  username: string;
1794
1811
  otp: string;
1795
- realm: "email" | "sms";
1812
+ realm: "sms" | "email";
1796
1813
  scope?: string | undefined;
1797
1814
  audience?: string | undefined;
1798
1815
  } | {
@@ -12,13 +12,13 @@ export declare const passwordlessRoutes: OpenAPIHono<{
12
12
  connection: "email";
13
13
  client_id: string;
14
14
  email: string;
15
- send: "code" | "link";
15
+ send: "link" | "code";
16
16
  authParams: {
17
- username?: string | undefined;
18
17
  scope?: string | undefined;
18
+ username?: string | undefined;
19
19
  audience?: string | undefined;
20
- organization?: string | undefined;
21
20
  state?: string | undefined;
21
+ organization?: string | undefined;
22
22
  response_type?: AuthorizationResponseType | undefined;
23
23
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
24
24
  act_as?: string | undefined;
@@ -48,13 +48,13 @@ export declare const passwordlessRoutes: OpenAPIHono<{
48
48
  client_id: string;
49
49
  connection: "sms";
50
50
  phone_number: string;
51
- send: "code" | "link";
51
+ send: "link" | "code";
52
52
  authParams: {
53
- username?: string | undefined;
54
53
  scope?: string | undefined;
54
+ username?: string | undefined;
55
55
  audience?: string | undefined;
56
- organization?: string | undefined;
57
56
  state?: string | undefined;
57
+ organization?: string | undefined;
58
58
  response_type?: AuthorizationResponseType | undefined;
59
59
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
60
60
  act_as?: string | undefined;
@@ -18,7 +18,7 @@ export declare const registerRoutes: OpenAPIHono<{
18
18
  scope?: string | undefined;
19
19
  grant_types?: string[] | undefined;
20
20
  response_types?: string[] | undefined;
21
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
21
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
22
22
  jwks_uri?: string | undefined;
23
23
  jwks?: Record<string, unknown> | undefined;
24
24
  software_id?: string | undefined;
@@ -107,7 +107,7 @@ export declare const registerRoutes: OpenAPIHono<{
107
107
  scope?: string | undefined;
108
108
  grant_types?: string[] | undefined;
109
109
  response_types?: string[] | undefined;
110
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
110
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
111
111
  jwks_uri?: string | undefined;
112
112
  jwks?: Record<string, unknown> | undefined;
113
113
  software_id?: string | 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
  };