authhero 9.6.4 → 9.8.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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +138 -138
- package/dist/authhero.d.ts +499 -187
- package/dist/authhero.mjs +14867 -14543
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/common.d.ts +17 -1
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/helpers/revoke-user-refresh-tokens.d.ts +21 -0
- package/dist/types/helpers/signing-keys.d.ts +11 -0
- package/dist/types/index.d.ts +489 -187
- package/dist/types/routes/auth-api/index.d.ts +21 -21
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/index.d.ts +463 -161
- package/dist/types/routes/management-api/keys.d.ts +86 -4
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +7 -7
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/refresh_tokens.d.ts +7 -0
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +4 -4
- package/dist/types/routes/management-api/users.d.ts +148 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/utils/encryption.d.ts +51 -0
- package/dist/types/utils/jwks.d.ts +2 -2
- package/dist/types/utils/user-id.d.ts +19 -1
- package/package.json +6 -6
|
@@ -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
|
-
audience?: string | undefined;
|
|
741
739
|
scope?: string | undefined;
|
|
740
|
+
username?: string | undefined;
|
|
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
|
-
state?: string | undefined;
|
|
745
|
-
organization?: string | undefined;
|
|
746
744
|
redirect_uri?: string | undefined;
|
|
747
|
-
|
|
748
|
-
|
|
745
|
+
audience?: string | undefined;
|
|
746
|
+
organization?: string | undefined;
|
|
747
|
+
state?: string | undefined;
|
|
749
748
|
nonce?: string | undefined;
|
|
750
|
-
act_as?: string | undefined;
|
|
751
749
|
prompt?: string | undefined;
|
|
750
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
751
|
+
code_challenge?: 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
|
-
audience?: string | undefined;
|
|
777
775
|
scope?: string | undefined;
|
|
776
|
+
username?: string | undefined;
|
|
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
|
-
state?: string | undefined;
|
|
781
|
-
organization?: string | undefined;
|
|
782
780
|
redirect_uri?: string | undefined;
|
|
783
|
-
|
|
784
|
-
|
|
781
|
+
audience?: string | undefined;
|
|
782
|
+
organization?: string | undefined;
|
|
783
|
+
state?: string | undefined;
|
|
785
784
|
nonce?: string | undefined;
|
|
786
|
-
act_as?: string | undefined;
|
|
787
785
|
prompt?: string | undefined;
|
|
786
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
787
|
+
code_challenge?: 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?: "
|
|
919
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
926
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
938
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
945
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
960
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
967
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
968
968
|
client_id?: string | undefined;
|
|
969
969
|
client_secret?: string | undefined;
|
|
970
970
|
};
|
|
@@ -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: "
|
|
1503
|
+
kty: "RSA" | "EC" | "oct";
|
|
1504
1504
|
kid?: string | undefined;
|
|
1505
1505
|
use?: "sig" | "enc" | undefined;
|
|
1506
1506
|
n?: string | undefined;
|
|
@@ -14,19 +14,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
username?: string | undefined;
|
|
18
|
-
audience?: string | undefined;
|
|
19
17
|
scope?: string | undefined;
|
|
18
|
+
username?: string | undefined;
|
|
19
|
+
act_as?: string | undefined;
|
|
20
20
|
response_type?: AuthorizationResponseType | undefined;
|
|
21
21
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
22
|
-
state?: string | undefined;
|
|
23
|
-
organization?: string | undefined;
|
|
24
22
|
redirect_uri?: string | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
audience?: string | undefined;
|
|
24
|
+
organization?: string | undefined;
|
|
25
|
+
state?: string | undefined;
|
|
27
26
|
nonce?: string | undefined;
|
|
28
|
-
act_as?: string | undefined;
|
|
29
27
|
prompt?: string | undefined;
|
|
28
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
|
+
code_challenge?: string | undefined;
|
|
30
30
|
ui_locales?: string | undefined;
|
|
31
31
|
max_age?: number | undefined;
|
|
32
32
|
acr_values?: string | undefined;
|
|
@@ -50,19 +50,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
50
50
|
phone_number: string;
|
|
51
51
|
send: "code" | "link";
|
|
52
52
|
authParams: {
|
|
53
|
-
username?: string | undefined;
|
|
54
|
-
audience?: string | undefined;
|
|
55
53
|
scope?: string | undefined;
|
|
54
|
+
username?: string | undefined;
|
|
55
|
+
act_as?: string | undefined;
|
|
56
56
|
response_type?: AuthorizationResponseType | undefined;
|
|
57
57
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
58
|
-
state?: string | undefined;
|
|
59
|
-
organization?: string | undefined;
|
|
60
58
|
redirect_uri?: string | undefined;
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
audience?: string | undefined;
|
|
60
|
+
organization?: string | undefined;
|
|
61
|
+
state?: string | undefined;
|
|
63
62
|
nonce?: string | undefined;
|
|
64
|
-
act_as?: string | undefined;
|
|
65
63
|
prompt?: string | undefined;
|
|
64
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
|
+
code_challenge?: string | undefined;
|
|
66
66
|
ui_locales?: string | undefined;
|
|
67
67
|
max_age?: number | undefined;
|
|
68
68
|
acr_values?: 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?: "
|
|
12
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
19
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
31
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
38
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
53
|
+
token_type_hint?: "refresh_token" | "access_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?: "
|
|
60
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
61
61
|
client_id?: string | undefined;
|
|
62
62
|
client_secret?: string | undefined;
|
|
63
63
|
};
|
|
@@ -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: "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: "
|
|
40
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
41
41
|
phone_number?: string | undefined;
|
|
42
42
|
totp_secret?: string | undefined;
|
|
43
43
|
credential_id?: 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: "
|
|
31
|
+
status: "pending" | "ready" | "disabled" | "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: "
|
|
72
|
+
status: "pending" | "ready" | "disabled" | "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: "
|
|
136
|
+
status: "pending" | "ready" | "disabled" | "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: "
|
|
183
|
+
status: "pending" | "ready" | "disabled" | "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: "
|
|
229
|
+
status: "pending" | "ready" | "disabled" | "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: "
|
|
270
|
+
status: "pending" | "ready" | "disabled" | "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?: {
|