authhero 7.2.1 → 8.0.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.
- package/dist/authhero.cjs +102 -102
- package/dist/authhero.d.ts +155 -201
- package/dist/authhero.mjs +9526 -9174
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/helpers/adapter-methods.d.ts +12 -0
- package/dist/types/helpers/bundle-write-purge.d.ts +16 -0
- package/dist/types/helpers/client-bundle.d.ts +51 -0
- package/dist/types/helpers/request-scoped-dedup.d.ts +8 -0
- package/dist/types/helpers/with-client-bundle.d.ts +31 -0
- package/dist/types/index.d.ts +152 -154
- package/dist/types/routes/auth-api/index.d.ts +9 -9
- package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +7 -7
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +119 -119
- package/dist/types/routes/management-api/index.d.ts +137 -137
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
- package/dist/types/types/AuthHeroConfig.d.ts +0 -12
- package/dist/types/utils/jwks.d.ts +2 -2
- package/package.json +7 -6
|
@@ -288,7 +288,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
288
288
|
scope?: string | undefined;
|
|
289
289
|
grant_types?: string[] | undefined;
|
|
290
290
|
response_types?: string[] | undefined;
|
|
291
|
-
token_endpoint_auth_method?: "none" | "
|
|
291
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
292
292
|
jwks_uri?: string | undefined;
|
|
293
293
|
jwks?: Record<string, unknown> | undefined;
|
|
294
294
|
software_id?: string | undefined;
|
|
@@ -377,7 +377,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
377
377
|
scope?: string | undefined;
|
|
378
378
|
grant_types?: string[] | undefined;
|
|
379
379
|
response_types?: string[] | undefined;
|
|
380
|
-
token_endpoint_auth_method?: "none" | "
|
|
380
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
381
381
|
jwks_uri?: string | undefined;
|
|
382
382
|
jwks?: Record<string, unknown> | undefined;
|
|
383
383
|
software_id?: string | undefined;
|
|
@@ -723,16 +723,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
723
723
|
email: string;
|
|
724
724
|
send: "code" | "link";
|
|
725
725
|
authParams: {
|
|
726
|
+
username?: string | undefined;
|
|
727
|
+
state?: string | undefined;
|
|
726
728
|
audience?: string | undefined;
|
|
727
729
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
728
730
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
729
731
|
scope?: string | undefined;
|
|
730
|
-
username?: string | undefined;
|
|
731
732
|
organization?: string | undefined;
|
|
732
|
-
state?: string | undefined;
|
|
733
733
|
nonce?: string | undefined;
|
|
734
|
-
act_as?: string | undefined;
|
|
735
734
|
redirect_uri?: string | undefined;
|
|
735
|
+
act_as?: string | undefined;
|
|
736
736
|
prompt?: string | undefined;
|
|
737
737
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
738
738
|
code_challenge?: string | undefined;
|
|
@@ -759,16 +759,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
759
759
|
phone_number: string;
|
|
760
760
|
send: "code" | "link";
|
|
761
761
|
authParams: {
|
|
762
|
+
username?: string | undefined;
|
|
763
|
+
state?: string | undefined;
|
|
762
764
|
audience?: string | undefined;
|
|
763
765
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
764
766
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
765
767
|
scope?: string | undefined;
|
|
766
|
-
username?: string | undefined;
|
|
767
768
|
organization?: string | undefined;
|
|
768
|
-
state?: string | undefined;
|
|
769
769
|
nonce?: string | undefined;
|
|
770
|
-
act_as?: string | undefined;
|
|
771
770
|
redirect_uri?: string | undefined;
|
|
771
|
+
act_as?: string | undefined;
|
|
772
772
|
prompt?: string | undefined;
|
|
773
773
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
774
774
|
code_challenge?: string | undefined;
|
|
@@ -1487,7 +1487,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1487
1487
|
output: {
|
|
1488
1488
|
keys: {
|
|
1489
1489
|
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
1490
|
-
kty: "
|
|
1490
|
+
kty: "EC" | "RSA" | "oct";
|
|
1491
1491
|
kid?: string | undefined;
|
|
1492
1492
|
use?: "sig" | "enc" | undefined;
|
|
1493
1493
|
n?: string | undefined;
|
|
@@ -14,16 +14,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
+
username?: string | undefined;
|
|
18
|
+
state?: string | undefined;
|
|
17
19
|
audience?: string | undefined;
|
|
18
20
|
response_type?: AuthorizationResponseType | undefined;
|
|
19
21
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
22
|
scope?: string | undefined;
|
|
21
|
-
username?: string | undefined;
|
|
22
23
|
organization?: string | undefined;
|
|
23
|
-
state?: string | undefined;
|
|
24
24
|
nonce?: string | undefined;
|
|
25
|
-
act_as?: string | undefined;
|
|
26
25
|
redirect_uri?: string | undefined;
|
|
26
|
+
act_as?: string | undefined;
|
|
27
27
|
prompt?: string | undefined;
|
|
28
28
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
29
|
code_challenge?: string | undefined;
|
|
@@ -50,16 +50,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
50
50
|
phone_number: string;
|
|
51
51
|
send: "code" | "link";
|
|
52
52
|
authParams: {
|
|
53
|
+
username?: string | undefined;
|
|
54
|
+
state?: string | undefined;
|
|
53
55
|
audience?: string | undefined;
|
|
54
56
|
response_type?: AuthorizationResponseType | undefined;
|
|
55
57
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
58
|
scope?: string | undefined;
|
|
57
|
-
username?: string | undefined;
|
|
58
59
|
organization?: string | undefined;
|
|
59
|
-
state?: string | undefined;
|
|
60
60
|
nonce?: string | undefined;
|
|
61
|
-
act_as?: string | undefined;
|
|
62
61
|
redirect_uri?: string | undefined;
|
|
62
|
+
act_as?: string | undefined;
|
|
63
63
|
prompt?: string | undefined;
|
|
64
64
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
65
|
code_challenge?: 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" | "
|
|
21
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "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" | "
|
|
110
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
111
111
|
jwks_uri?: string | undefined;
|
|
112
112
|
jwks?: Record<string, unknown> | undefined;
|
|
113
113
|
software_id?: string | undefined;
|
|
@@ -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: "
|
|
12
|
+
kty: "EC" | "RSA" | "oct";
|
|
13
13
|
kid?: string | undefined;
|
|
14
14
|
use?: "sig" | "enc" | undefined;
|
|
15
15
|
n?: string | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
72
72
|
addons?: {
|
|
73
73
|
[x: string]: any;
|
|
74
74
|
} | undefined;
|
|
75
|
-
token_endpoint_auth_method?: "none" | "
|
|
75
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
76
76
|
client_metadata?: {
|
|
77
77
|
[x: string]: string;
|
|
78
78
|
} | undefined;
|
|
@@ -168,7 +168,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
168
168
|
addons?: {
|
|
169
169
|
[x: string]: any;
|
|
170
170
|
} | undefined;
|
|
171
|
-
token_endpoint_auth_method?: "none" | "
|
|
171
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
172
172
|
client_metadata?: {
|
|
173
173
|
[x: string]: string;
|
|
174
174
|
} | undefined;
|
|
@@ -279,7 +279,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
279
279
|
addons?: {
|
|
280
280
|
[x: string]: any;
|
|
281
281
|
} | undefined;
|
|
282
|
-
token_endpoint_auth_method?: "none" | "
|
|
282
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
283
283
|
client_metadata?: {
|
|
284
284
|
[x: string]: string;
|
|
285
285
|
} | undefined;
|
|
@@ -389,7 +389,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
389
389
|
custom_login_page_preview?: string | undefined;
|
|
390
390
|
form_template?: string | undefined;
|
|
391
391
|
addons?: Record<string, any> | undefined;
|
|
392
|
-
token_endpoint_auth_method?: "none" | "
|
|
392
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
393
393
|
client_metadata?: Record<string, string> | undefined;
|
|
394
394
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
395
395
|
mobile?: Record<string, any> | undefined;
|
|
@@ -469,7 +469,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
469
469
|
addons?: {
|
|
470
470
|
[x: string]: any;
|
|
471
471
|
} | undefined;
|
|
472
|
-
token_endpoint_auth_method?: "none" | "
|
|
472
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
473
473
|
client_metadata?: {
|
|
474
474
|
[x: string]: string;
|
|
475
475
|
} | undefined;
|
|
@@ -558,7 +558,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
558
558
|
custom_login_page_preview?: string | undefined;
|
|
559
559
|
form_template?: string | undefined;
|
|
560
560
|
addons?: Record<string, any> | undefined;
|
|
561
|
-
token_endpoint_auth_method?: "none" | "
|
|
561
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
562
562
|
client_metadata?: Record<string, string> | undefined;
|
|
563
563
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
564
564
|
mobile?: Record<string, any> | undefined;
|
|
@@ -638,7 +638,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
638
638
|
addons?: {
|
|
639
639
|
[x: string]: any;
|
|
640
640
|
} | undefined;
|
|
641
|
-
token_endpoint_auth_method?: "none" | "
|
|
641
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
642
642
|
client_metadata?: {
|
|
643
643
|
[x: string]: string;
|
|
644
644
|
} | undefined;
|
|
@@ -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: "
|
|
33
|
+
type: "user" | "client_credentials" | "system" | "admin" | "api_key";
|
|
34
34
|
id?: string | undefined;
|
|
35
35
|
email?: string | undefined;
|
|
36
36
|
org_id?: string | undefined;
|