authhero 9.9.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 (33) 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 +135 -135
  4. package/dist/authhero.mjs +12205 -11732
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/grant-tokens.d.ts +16 -0
  7. package/dist/types/helpers/refresh-token-lifetime.d.ts +103 -0
  8. package/dist/types/hooks/addDataHooks.d.ts +4 -3
  9. package/dist/types/index.d.ts +135 -135
  10. package/dist/types/routes/auth-api/index.d.ts +32 -32
  11. package/dist/types/routes/auth-api/passwordless.d.ts +2 -2
  12. package/dist/types/routes/auth-api/token.d.ts +24 -24
  13. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  14. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  15. package/dist/types/routes/management-api/forms.d.ts +126 -126
  16. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  17. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  18. package/dist/types/routes/management-api/index.d.ts +80 -80
  19. package/dist/types/routes/management-api/keys.d.ts +8 -8
  20. package/dist/types/routes/management-api/organizations.d.ts +5 -5
  21. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  22. package/dist/types/routes/management-api/roles.d.ts +1 -1
  23. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  24. package/dist/types/routes/management-api/tenants.d.ts +1 -1
  25. package/dist/types/routes/management-api/users.d.ts +20 -20
  26. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  27. package/dist/types/routes/universal-login/index.d.ts +2 -2
  28. package/dist/types/routes/universal-login/info-code-exchange.d.ts +27 -0
  29. package/dist/types/routes/universal-login/token-info-page.d.ts +26 -0
  30. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  31. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  32. package/dist/types/utils/email.d.ts +21 -9
  33. 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: {
@@ -736,19 +736,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
736
736
  email: string;
737
737
  send: "code" | "link";
738
738
  authParams: {
739
- username?: string | undefined;
740
739
  scope?: string | undefined;
741
- audience?: string | undefined;
742
740
  state?: string | undefined;
743
741
  act_as?: string | undefined;
744
742
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
745
743
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
746
744
  redirect_uri?: string | undefined;
745
+ audience?: string | undefined;
747
746
  organization?: 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;
@@ -772,19 +772,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
772
772
  phone_number: string;
773
773
  send: "code" | "link";
774
774
  authParams: {
775
- username?: string | undefined;
776
775
  scope?: string | undefined;
777
- audience?: string | undefined;
778
776
  state?: string | undefined;
779
777
  act_as?: string | undefined;
780
778
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
781
779
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
782
780
  redirect_uri?: string | undefined;
781
+ audience?: string | undefined;
783
782
  organization?: 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;
@@ -1014,7 +1014,7 @@ 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
1018
  scope?: string | undefined;
1019
1019
  audience?: string | undefined;
1020
1020
  } | {
@@ -1063,7 +1063,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1063
1063
  client_id: string;
1064
1064
  username: string;
1065
1065
  otp: string;
1066
- realm: "email" | "sms";
1066
+ realm: "sms" | "email";
1067
1067
  scope?: string | undefined;
1068
1068
  audience?: string | undefined;
1069
1069
  } | {
@@ -1079,9 +1079,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1079
1079
  client_assertion_type?: string | undefined;
1080
1080
  };
1081
1081
  };
1082
- output: {};
1083
- outputFormat: string;
1084
- 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;
1085
1093
  } | {
1086
1094
  input: {
1087
1095
  form: {
@@ -1117,7 +1125,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1117
1125
  client_id: string;
1118
1126
  username: string;
1119
1127
  otp: string;
1120
- realm: "email" | "sms";
1128
+ realm: "sms" | "email";
1121
1129
  scope?: string | undefined;
1122
1130
  audience?: string | undefined;
1123
1131
  } | {
@@ -1166,7 +1174,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1166
1174
  client_id: string;
1167
1175
  username: string;
1168
1176
  otp: string;
1169
- realm: "email" | "sms";
1177
+ realm: "sms" | "email";
1170
1178
  scope?: string | undefined;
1171
1179
  audience?: string | undefined;
1172
1180
  } | {
@@ -1182,17 +1190,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1182
1190
  client_assertion_type?: string | undefined;
1183
1191
  };
1184
1192
  };
1185
- output: {
1186
- access_token: string;
1187
- token_type: string;
1188
- expires_in: number;
1189
- id_token?: string | undefined;
1190
- scope?: string | undefined;
1191
- state?: string | undefined;
1192
- refresh_token?: string | undefined;
1193
- };
1194
- outputFormat: "json";
1195
- status: 200;
1193
+ output: {};
1194
+ outputFormat: string;
1195
+ status: 302;
1196
1196
  } | {
1197
1197
  input: {
1198
1198
  form: {
@@ -1228,7 +1228,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1228
1228
  client_id: string;
1229
1229
  username: string;
1230
1230
  otp: string;
1231
- realm: "email" | "sms";
1231
+ realm: "sms" | "email";
1232
1232
  scope?: string | undefined;
1233
1233
  audience?: string | undefined;
1234
1234
  } | {
@@ -1277,7 +1277,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1277
1277
  client_id: string;
1278
1278
  username: string;
1279
1279
  otp: string;
1280
- realm: "email" | "sms";
1280
+ realm: "sms" | "email";
1281
1281
  scope?: string | undefined;
1282
1282
  audience?: string | undefined;
1283
1283
  } | {
@@ -1334,7 +1334,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1334
1334
  client_id: string;
1335
1335
  username: string;
1336
1336
  otp: string;
1337
- realm: "email" | "sms";
1337
+ realm: "sms" | "email";
1338
1338
  scope?: string | undefined;
1339
1339
  audience?: string | undefined;
1340
1340
  } | {
@@ -1383,7 +1383,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1383
1383
  client_id: string;
1384
1384
  username: string;
1385
1385
  otp: string;
1386
- realm: "email" | "sms";
1386
+ realm: "sms" | "email";
1387
1387
  scope?: string | undefined;
1388
1388
  audience?: string | undefined;
1389
1389
  } | {
@@ -1440,7 +1440,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1440
1440
  client_id: string;
1441
1441
  username: string;
1442
1442
  otp: string;
1443
- realm: "email" | "sms";
1443
+ realm: "sms" | "email";
1444
1444
  scope?: string | undefined;
1445
1445
  audience?: string | undefined;
1446
1446
  } | {
@@ -1489,7 +1489,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1489
1489
  client_id: string;
1490
1490
  username: string;
1491
1491
  otp: string;
1492
- realm: "email" | "sms";
1492
+ realm: "sms" | "email";
1493
1493
  scope?: string | undefined;
1494
1494
  audience?: string | undefined;
1495
1495
  } | {
@@ -1713,7 +1713,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1713
1713
  };
1714
1714
  output: {};
1715
1715
  outputFormat: string;
1716
- status: 200;
1716
+ status: 302;
1717
1717
  } | {
1718
1718
  input: {
1719
1719
  query: {
@@ -1727,7 +1727,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1727
1727
  };
1728
1728
  output: {};
1729
1729
  outputFormat: string;
1730
- status: 302;
1730
+ status: 200;
1731
1731
  } | {
1732
1732
  input: {
1733
1733
  query: {
@@ -15,9 +15,9 @@ export declare const passwordlessRoutes: OpenAPIHono<{
15
15
  send: "code" | "link";
16
16
  authParams: {
17
17
  username?: string | undefined;
18
- scope?: string | undefined;
19
18
  audience?: string | undefined;
20
19
  state?: string | undefined;
20
+ scope?: string | undefined;
21
21
  act_as?: string | undefined;
22
22
  response_type?: AuthorizationResponseType | undefined;
23
23
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
@@ -51,9 +51,9 @@ export declare const passwordlessRoutes: OpenAPIHono<{
51
51
  send: "code" | "link";
52
52
  authParams: {
53
53
  username?: string | undefined;
54
- scope?: string | undefined;
55
54
  audience?: string | undefined;
56
55
  state?: string | undefined;
56
+ scope?: string | undefined;
57
57
  act_as?: string | undefined;
58
58
  response_type?: AuthorizationResponseType | undefined;
59
59
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
@@ -40,7 +40,7 @@ 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
44
  scope?: string | undefined;
45
45
  audience?: string | undefined;
46
46
  } | {
@@ -89,7 +89,7 @@ export declare const tokenRoutes: OpenAPIHono<{
89
89
  client_id: string;
90
90
  username: string;
91
91
  otp: string;
92
- realm: "email" | "sms";
92
+ realm: "sms" | "email";
93
93
  scope?: string | undefined;
94
94
  audience?: string | undefined;
95
95
  } | {
@@ -105,9 +105,17 @@ export declare const tokenRoutes: OpenAPIHono<{
105
105
  client_assertion_type?: string | undefined;
106
106
  };
107
107
  };
108
- output: {};
109
- outputFormat: string;
110
- 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;
111
119
  } | {
112
120
  input: {
113
121
  form: {
@@ -143,7 +151,7 @@ export declare const tokenRoutes: OpenAPIHono<{
143
151
  client_id: string;
144
152
  username: string;
145
153
  otp: string;
146
- realm: "email" | "sms";
154
+ realm: "sms" | "email";
147
155
  scope?: string | undefined;
148
156
  audience?: string | undefined;
149
157
  } | {
@@ -192,7 +200,7 @@ export declare const tokenRoutes: OpenAPIHono<{
192
200
  client_id: string;
193
201
  username: string;
194
202
  otp: string;
195
- realm: "email" | "sms";
203
+ realm: "sms" | "email";
196
204
  scope?: string | undefined;
197
205
  audience?: string | undefined;
198
206
  } | {
@@ -208,17 +216,9 @@ export declare const tokenRoutes: OpenAPIHono<{
208
216
  client_assertion_type?: string | undefined;
209
217
  };
210
218
  };
211
- output: {
212
- access_token: string;
213
- token_type: string;
214
- expires_in: number;
215
- id_token?: string | undefined;
216
- scope?: string | undefined;
217
- state?: string | undefined;
218
- refresh_token?: string | undefined;
219
- };
220
- outputFormat: "json";
221
- status: 200;
219
+ output: {};
220
+ outputFormat: string;
221
+ status: 302;
222
222
  } | {
223
223
  input: {
224
224
  form: {
@@ -254,7 +254,7 @@ export declare const tokenRoutes: OpenAPIHono<{
254
254
  client_id: string;
255
255
  username: string;
256
256
  otp: string;
257
- realm: "email" | "sms";
257
+ realm: "sms" | "email";
258
258
  scope?: string | undefined;
259
259
  audience?: string | undefined;
260
260
  } | {
@@ -303,7 +303,7 @@ export declare const tokenRoutes: OpenAPIHono<{
303
303
  client_id: string;
304
304
  username: string;
305
305
  otp: string;
306
- realm: "email" | "sms";
306
+ realm: "sms" | "email";
307
307
  scope?: string | undefined;
308
308
  audience?: string | undefined;
309
309
  } | {
@@ -360,7 +360,7 @@ export declare const tokenRoutes: OpenAPIHono<{
360
360
  client_id: string;
361
361
  username: string;
362
362
  otp: string;
363
- realm: "email" | "sms";
363
+ realm: "sms" | "email";
364
364
  scope?: string | undefined;
365
365
  audience?: string | undefined;
366
366
  } | {
@@ -409,7 +409,7 @@ export declare const tokenRoutes: OpenAPIHono<{
409
409
  client_id: string;
410
410
  username: string;
411
411
  otp: string;
412
- realm: "email" | "sms";
412
+ realm: "sms" | "email";
413
413
  scope?: string | undefined;
414
414
  audience?: string | undefined;
415
415
  } | {
@@ -466,7 +466,7 @@ export declare const tokenRoutes: OpenAPIHono<{
466
466
  client_id: string;
467
467
  username: string;
468
468
  otp: string;
469
- realm: "email" | "sms";
469
+ realm: "sms" | "email";
470
470
  scope?: string | undefined;
471
471
  audience?: string | undefined;
472
472
  } | {
@@ -515,7 +515,7 @@ export declare const tokenRoutes: OpenAPIHono<{
515
515
  client_id: string;
516
516
  username: string;
517
517
  otp: string;
518
- realm: "email" | "sms";
518
+ realm: "sms" | "email";
519
519
  scope?: string | undefined;
520
520
  audience?: string | undefined;
521
521
  } | {
@@ -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;