authhero 8.25.0 → 8.25.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 (41) hide show
  1. package/dist/assets/u/css/tailwind.css +1 -1
  2. package/dist/authhero.cjs +7 -7
  3. package/dist/authhero.css +1 -1
  4. package/dist/authhero.d.ts +218 -200
  5. package/dist/authhero.mjs +161 -125
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/components/AuthCard.d.ts +17 -0
  9. package/dist/types/components/PasswordField.d.ts +18 -0
  10. package/dist/types/components/auth-form-styles.d.ts +39 -0
  11. package/dist/types/components/auth-forms.render.test.d.ts +1 -0
  12. package/dist/types/components/ui/input.d.ts +1 -0
  13. package/dist/types/index.d.ts +197 -197
  14. package/dist/types/routes/auth-api/index.d.ts +27 -27
  15. package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
  16. package/dist/types/routes/auth-api/revoke.d.ts +2 -2
  17. package/dist/types/routes/auth-api/token.d.ts +12 -12
  18. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  19. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  20. package/dist/types/routes/management-api/branding.d.ts +1 -1
  21. package/dist/types/routes/management-api/connections.d.ts +1 -1
  22. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  23. package/dist/types/routes/management-api/forms.d.ts +126 -126
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +165 -165
  26. package/dist/types/routes/management-api/logs.d.ts +4 -4
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/organizations.d.ts +8 -8
  29. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  30. package/dist/types/routes/management-api/roles.d.ts +1 -1
  31. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  32. package/dist/types/routes/management-api/users.d.ts +2 -2
  33. package/dist/types/routes/proxy-control-plane/index.d.ts +7 -1
  34. package/dist/types/routes/proxy-control-plane/verify.d.ts +13 -1
  35. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  36. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  37. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  38. package/dist/types/styles/tailwind.d.ts +1 -1
  39. package/dist/types/types/AuthHeroConfig.d.ts +6 -1
  40. package/dist/types/utils/jwks.d.ts +2 -2
  41. package/package.json +3 -3
@@ -736,20 +736,20 @@ 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
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
741
740
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
742
741
  scope?: string | undefined;
742
+ username?: string | undefined;
743
743
  audience?: string | undefined;
744
- state?: string | undefined;
745
- prompt?: string | undefined;
746
744
  organization?: string | undefined;
747
- ui_locales?: string | undefined;
748
- redirect_uri?: string | undefined;
749
- act_as?: string | undefined;
745
+ state?: string | undefined;
750
746
  nonce?: string | undefined;
747
+ act_as?: string | undefined;
748
+ redirect_uri?: string | undefined;
749
+ prompt?: string | undefined;
751
750
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
752
751
  code_challenge?: string | undefined;
752
+ ui_locales?: string | undefined;
753
753
  max_age?: number | undefined;
754
754
  acr_values?: string | undefined;
755
755
  claims?: {
@@ -772,20 +772,20 @@ 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
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
777
776
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
778
777
  scope?: string | undefined;
778
+ username?: string | undefined;
779
779
  audience?: string | undefined;
780
- state?: string | undefined;
781
- prompt?: string | undefined;
782
780
  organization?: string | undefined;
783
- ui_locales?: string | undefined;
784
- redirect_uri?: string | undefined;
785
- act_as?: string | undefined;
781
+ state?: string | undefined;
786
782
  nonce?: string | undefined;
783
+ act_as?: string | undefined;
784
+ redirect_uri?: string | undefined;
785
+ prompt?: string | undefined;
787
786
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
788
787
  code_challenge?: string | undefined;
788
+ ui_locales?: string | undefined;
789
789
  max_age?: number | undefined;
790
790
  acr_values?: string | undefined;
791
791
  claims?: {
@@ -952,7 +952,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
952
952
  error_description?: string | undefined;
953
953
  };
954
954
  outputFormat: "json";
955
- status: 401;
955
+ status: 400;
956
956
  } | {
957
957
  input: {
958
958
  form: {
@@ -974,7 +974,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
974
974
  error_description?: string | undefined;
975
975
  };
976
976
  outputFormat: "json";
977
- status: 400;
977
+ status: 401;
978
978
  };
979
979
  };
980
980
  }, "/oauth/revoke"> & import("hono/types").MergeSchemaPath<{
@@ -1175,11 +1175,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1175
1175
  };
1176
1176
  };
1177
1177
  output: {
1178
- error: string;
1179
- error_description?: string | undefined;
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;
1180
1185
  };
1181
1186
  outputFormat: "json";
1182
- status: 401;
1187
+ status: 200;
1183
1188
  } | {
1184
1189
  input: {
1185
1190
  form: {
@@ -1277,16 +1282,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1277
1282
  };
1278
1283
  };
1279
1284
  output: {
1280
- access_token: string;
1281
- token_type: string;
1282
- expires_in: number;
1283
- id_token?: string | undefined;
1284
- scope?: string | undefined;
1285
- state?: string | undefined;
1286
- refresh_token?: string | undefined;
1285
+ error: string;
1286
+ error_description?: string | undefined;
1287
1287
  };
1288
1288
  outputFormat: "json";
1289
- status: 200;
1289
+ status: 400;
1290
1290
  } | {
1291
1291
  input: {
1292
1292
  form: {
@@ -1388,7 +1388,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1388
1388
  error_description?: string | undefined;
1389
1389
  };
1390
1390
  outputFormat: "json";
1391
- status: 400;
1391
+ status: 401;
1392
1392
  } | {
1393
1393
  input: {
1394
1394
  form: {
@@ -1500,7 +1500,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1500
1500
  output: {
1501
1501
  keys: {
1502
1502
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1503
- kty: "EC" | "RSA" | "oct";
1503
+ kty: "RSA" | "EC" | "oct";
1504
1504
  kid?: string | undefined;
1505
1505
  use?: "sig" | "enc" | undefined;
1506
1506
  n?: string | undefined;
@@ -14,20 +14,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- username?: string | undefined;
18
17
  response_type?: AuthorizationResponseType | undefined;
19
18
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
20
19
  scope?: string | undefined;
20
+ username?: string | undefined;
21
21
  audience?: string | undefined;
22
- state?: string | undefined;
23
- prompt?: string | undefined;
24
22
  organization?: string | undefined;
25
- ui_locales?: string | undefined;
26
- redirect_uri?: string | undefined;
27
- act_as?: string | undefined;
23
+ state?: string | undefined;
28
24
  nonce?: string | undefined;
25
+ act_as?: string | undefined;
26
+ redirect_uri?: string | undefined;
27
+ prompt?: string | undefined;
29
28
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
30
29
  code_challenge?: string | undefined;
30
+ ui_locales?: string | undefined;
31
31
  max_age?: number | undefined;
32
32
  acr_values?: string | undefined;
33
33
  claims?: {
@@ -50,20 +50,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
50
50
  phone_number: string;
51
51
  send: "code" | "link";
52
52
  authParams: {
53
- username?: string | undefined;
54
53
  response_type?: AuthorizationResponseType | undefined;
55
54
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
56
55
  scope?: string | undefined;
56
+ username?: string | undefined;
57
57
  audience?: string | undefined;
58
- state?: string | undefined;
59
- prompt?: string | undefined;
60
58
  organization?: string | undefined;
61
- ui_locales?: string | undefined;
62
- redirect_uri?: string | undefined;
63
- act_as?: string | undefined;
59
+ state?: string | undefined;
64
60
  nonce?: string | undefined;
61
+ act_as?: string | undefined;
62
+ redirect_uri?: string | undefined;
63
+ prompt?: string | undefined;
65
64
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
66
65
  code_challenge?: string | undefined;
66
+ ui_locales?: string | undefined;
67
67
  max_age?: number | undefined;
68
68
  acr_values?: string | undefined;
69
69
  claims?: {
@@ -45,7 +45,7 @@ export declare const revokeRoutes: OpenAPIHono<{
45
45
  error_description?: string | undefined;
46
46
  };
47
47
  outputFormat: "json";
48
- status: 401;
48
+ status: 400;
49
49
  } | {
50
50
  input: {
51
51
  form: {
@@ -67,7 +67,7 @@ export declare const revokeRoutes: OpenAPIHono<{
67
67
  error_description?: string | undefined;
68
68
  };
69
69
  outputFormat: "json";
70
- status: 400;
70
+ status: 401;
71
71
  };
72
72
  };
73
73
  }, "/">;
@@ -201,11 +201,16 @@ export declare const tokenRoutes: OpenAPIHono<{
201
201
  };
202
202
  };
203
203
  output: {
204
- error: string;
205
- error_description?: string | undefined;
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;
206
211
  };
207
212
  outputFormat: "json";
208
- status: 401;
213
+ status: 200;
209
214
  } | {
210
215
  input: {
211
216
  form: {
@@ -303,16 +308,11 @@ export declare const tokenRoutes: OpenAPIHono<{
303
308
  };
304
309
  };
305
310
  output: {
306
- access_token: string;
307
- token_type: string;
308
- expires_in: number;
309
- id_token?: string | undefined;
310
- scope?: string | undefined;
311
- state?: string | undefined;
312
- refresh_token?: string | undefined;
311
+ error: string;
312
+ error_description?: string | undefined;
313
313
  };
314
314
  outputFormat: "json";
315
- status: 200;
315
+ status: 400;
316
316
  } | {
317
317
  input: {
318
318
  form: {
@@ -414,7 +414,7 @@ export declare const tokenRoutes: OpenAPIHono<{
414
414
  error_description?: string | undefined;
415
415
  };
416
416
  outputFormat: "json";
417
- status: 400;
417
+ status: 401;
418
418
  } | {
419
419
  input: {
420
420
  form: {
@@ -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: "EC" | "RSA" | "oct";
12
+ kty: "RSA" | "EC" | "oct";
13
13
  kid?: string | undefined;
14
14
  use?: "sig" | "enc" | undefined;
15
15
  n?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "push" | "passkey" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
40
+ type: "email" | "passkey" | "push" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -409,7 +409,7 @@ export declare const brandingRoutes: OpenAPIHono<{
409
409
  } & {
410
410
  json: {
411
411
  body?: string | undefined;
412
- screen?: "password" | "identifier" | "signup" | "login" | undefined;
412
+ screen?: "identifier" | "signup" | "password" | "login" | undefined;
413
413
  branding?: {
414
414
  colors?: {
415
415
  primary: string;
@@ -853,7 +853,7 @@ export declare const connectionRoutes: OpenAPIHono<{
853
853
  };
854
854
  } | {
855
855
  mode: "inline";
856
- status: "success" | "error";
856
+ status: "error" | "success";
857
857
  connection_id: string;
858
858
  connection_name: string;
859
859
  strategy: string;
@@ -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: "client_credentials" | "user" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;