authhero 9.15.0 → 9.16.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-36898e2d.entry.js +1 -0
- package/dist/assets/u/widget/p-Che3Wd7J.js +1 -0
- package/dist/assets/u/widget/p-c6ec4c36.entry.js +1 -0
- package/dist/authhero.cjs +144 -144
- package/dist/authhero.d.ts +419 -287
- package/dist/authhero.mjs +11499 -11341
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/generated/locale-types.d.ts +1 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/signing-certificate-authority.d.ts +99 -0
- package/dist/types/helpers/signing-keys.d.ts +7 -0
- package/dist/types/index.d.ts +295 -285
- package/dist/types/middlewares/reject-unknown-hosts.d.ts +13 -0
- package/dist/types/routes/auth-api/index.d.ts +32 -31
- package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/auth-api/well-known.d.ts +2 -1
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +3 -3
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- 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/email-templates.d.ts +20 -20
- package/dist/types/routes/management-api/emails.d.ts +2 -2
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +133 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +4 -4
- package/dist/types/routes/management-api/index.d.ts +250 -243
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +8 -8
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +1 -1
- package/dist/types/routes/management-api/tenants.d.ts +4 -4
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +12 -6
- package/dist/types/routes/management-api/users.d.ts +24 -24
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +16 -16
- package/dist/types/routes/universal-login/form-node.d.ts +4 -4
- package/dist/types/routes/universal-login/index.d.ts +4 -4
- package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/AuthHeroConfig.d.ts +38 -0
- package/dist/types/types/Bindings.d.ts +3 -0
- package/dist/types/utils/encryption.d.ts +20 -0
- package/dist/types/utils/jwks.d.ts +6 -3
- package/package.json +6 -6
- package/dist/assets/u/widget/p-1eb7f287.entry.js +0 -1
- package/dist/assets/u/widget/p-398d72df.entry.js +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiddlewareHandler } from "hono";
|
|
2
|
+
import { Bindings, Variables } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Opt-in (`init({ rejectUnknownHosts: true })`). Without it, discovery and
|
|
5
|
+
* JWKS on a host this deployment doesn't own fall back to the control-plane
|
|
6
|
+
* keys and apex metadata, so anyone could point a domain at the worker and
|
|
7
|
+
* serve AuthHero discovery from it. Mounted on every `/.well-known/*` route,
|
|
8
|
+
* including the MCP protected-resource metadata.
|
|
9
|
+
*/
|
|
10
|
+
export declare const rejectUnknownHostsMiddleware: MiddlewareHandler<{
|
|
11
|
+
Bindings: Bindings;
|
|
12
|
+
Variables: Variables;
|
|
13
|
+
}>;
|
|
@@ -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?: "
|
|
304
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_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?: "
|
|
393
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
394
394
|
jwks_uri?: string | undefined;
|
|
395
395
|
jwks?: Record<string, unknown> | undefined;
|
|
396
396
|
software_id?: string | undefined;
|
|
@@ -741,20 +741,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
741
741
|
email: string;
|
|
742
742
|
send: "code" | "link";
|
|
743
743
|
authParams: {
|
|
744
|
-
audience?: string | undefined;
|
|
745
744
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
746
745
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
747
746
|
scope?: string | undefined;
|
|
748
747
|
username?: string | undefined;
|
|
748
|
+
audience?: string | undefined;
|
|
749
|
+
organization?: string | undefined;
|
|
749
750
|
state?: string | undefined;
|
|
750
|
-
code_challenge?: string | undefined;
|
|
751
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
752
751
|
redirect_uri?: string | undefined;
|
|
753
|
-
nonce?: string | undefined;
|
|
754
|
-
act_as?: string | undefined;
|
|
755
|
-
organization?: string | undefined;
|
|
756
752
|
prompt?: string | undefined;
|
|
757
753
|
ui_locales?: string | undefined;
|
|
754
|
+
act_as?: string | undefined;
|
|
755
|
+
nonce?: string | undefined;
|
|
756
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
757
|
+
code_challenge?: string | undefined;
|
|
758
758
|
max_age?: number | undefined;
|
|
759
759
|
acr_values?: string | undefined;
|
|
760
760
|
claims?: {
|
|
@@ -777,20 +777,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
777
777
|
phone_number: string;
|
|
778
778
|
send: "code" | "link";
|
|
779
779
|
authParams: {
|
|
780
|
-
audience?: string | undefined;
|
|
781
780
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
782
781
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
783
782
|
scope?: string | undefined;
|
|
784
783
|
username?: string | undefined;
|
|
784
|
+
audience?: string | undefined;
|
|
785
|
+
organization?: string | undefined;
|
|
785
786
|
state?: string | undefined;
|
|
786
|
-
code_challenge?: string | undefined;
|
|
787
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
788
787
|
redirect_uri?: string | undefined;
|
|
789
|
-
nonce?: string | undefined;
|
|
790
|
-
act_as?: string | undefined;
|
|
791
|
-
organization?: string | undefined;
|
|
792
788
|
prompt?: string | undefined;
|
|
793
789
|
ui_locales?: string | undefined;
|
|
790
|
+
act_as?: string | undefined;
|
|
791
|
+
nonce?: string | undefined;
|
|
792
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
793
|
+
code_challenge?: string | undefined;
|
|
794
794
|
max_age?: number | undefined;
|
|
795
795
|
acr_values?: string | undefined;
|
|
796
796
|
claims?: {
|
|
@@ -921,14 +921,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
921
921
|
input: {
|
|
922
922
|
form: {
|
|
923
923
|
token: string;
|
|
924
|
-
token_type_hint?: "
|
|
924
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
925
925
|
client_id?: string | undefined;
|
|
926
926
|
client_secret?: string | undefined;
|
|
927
927
|
};
|
|
928
928
|
} & {
|
|
929
929
|
json: {
|
|
930
930
|
token: string;
|
|
931
|
-
token_type_hint?: "
|
|
931
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
932
932
|
client_id?: string | undefined;
|
|
933
933
|
client_secret?: string | undefined;
|
|
934
934
|
};
|
|
@@ -940,14 +940,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
940
940
|
input: {
|
|
941
941
|
form: {
|
|
942
942
|
token: string;
|
|
943
|
-
token_type_hint?: "
|
|
943
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
944
944
|
client_id?: string | undefined;
|
|
945
945
|
client_secret?: string | undefined;
|
|
946
946
|
};
|
|
947
947
|
} & {
|
|
948
948
|
json: {
|
|
949
949
|
token: string;
|
|
950
|
-
token_type_hint?: "
|
|
950
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
951
951
|
client_id?: string | undefined;
|
|
952
952
|
client_secret?: string | undefined;
|
|
953
953
|
};
|
|
@@ -962,14 +962,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
962
962
|
input: {
|
|
963
963
|
form: {
|
|
964
964
|
token: string;
|
|
965
|
-
token_type_hint?: "
|
|
965
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
966
966
|
client_id?: string | undefined;
|
|
967
967
|
client_secret?: string | undefined;
|
|
968
968
|
};
|
|
969
969
|
} & {
|
|
970
970
|
json: {
|
|
971
971
|
token: string;
|
|
972
|
-
token_type_hint?: "
|
|
972
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
973
973
|
client_id?: string | undefined;
|
|
974
974
|
client_secret?: string | undefined;
|
|
975
975
|
};
|
|
@@ -1019,7 +1019,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1019
1019
|
client_id: string;
|
|
1020
1020
|
username: string;
|
|
1021
1021
|
otp: string;
|
|
1022
|
-
realm: "
|
|
1022
|
+
realm: "email" | "sms";
|
|
1023
1023
|
scope?: string | undefined;
|
|
1024
1024
|
audience?: string | undefined;
|
|
1025
1025
|
} | {
|
|
@@ -1079,7 +1079,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1079
1079
|
client_id: string;
|
|
1080
1080
|
username: string;
|
|
1081
1081
|
otp: string;
|
|
1082
|
-
realm: "
|
|
1082
|
+
realm: "email" | "sms";
|
|
1083
1083
|
scope?: string | undefined;
|
|
1084
1084
|
audience?: string | undefined;
|
|
1085
1085
|
} | {
|
|
@@ -1144,7 +1144,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1144
1144
|
client_id: string;
|
|
1145
1145
|
username: string;
|
|
1146
1146
|
otp: string;
|
|
1147
|
-
realm: "
|
|
1147
|
+
realm: "email" | "sms";
|
|
1148
1148
|
scope?: string | undefined;
|
|
1149
1149
|
audience?: string | undefined;
|
|
1150
1150
|
} | {
|
|
@@ -1204,7 +1204,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1204
1204
|
client_id: string;
|
|
1205
1205
|
username: string;
|
|
1206
1206
|
otp: string;
|
|
1207
|
-
realm: "
|
|
1207
|
+
realm: "email" | "sms";
|
|
1208
1208
|
scope?: string | undefined;
|
|
1209
1209
|
audience?: string | undefined;
|
|
1210
1210
|
} | {
|
|
@@ -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: "
|
|
1280
|
+
realm: "email" | "sms";
|
|
1281
1281
|
scope?: string | undefined;
|
|
1282
1282
|
audience?: string | undefined;
|
|
1283
1283
|
} | {
|
|
@@ -1337,7 +1337,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1337
1337
|
client_id: string;
|
|
1338
1338
|
username: string;
|
|
1339
1339
|
otp: string;
|
|
1340
|
-
realm: "
|
|
1340
|
+
realm: "email" | "sms";
|
|
1341
1341
|
scope?: string | undefined;
|
|
1342
1342
|
audience?: string | undefined;
|
|
1343
1343
|
} | {
|
|
@@ -1405,7 +1405,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1405
1405
|
client_id: string;
|
|
1406
1406
|
username: string;
|
|
1407
1407
|
otp: string;
|
|
1408
|
-
realm: "
|
|
1408
|
+
realm: "email" | "sms";
|
|
1409
1409
|
scope?: string | undefined;
|
|
1410
1410
|
audience?: string | undefined;
|
|
1411
1411
|
} | {
|
|
@@ -1465,7 +1465,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1465
1465
|
client_id: string;
|
|
1466
1466
|
username: string;
|
|
1467
1467
|
otp: string;
|
|
1468
|
-
realm: "
|
|
1468
|
+
realm: "email" | "sms";
|
|
1469
1469
|
scope?: string | undefined;
|
|
1470
1470
|
audience?: string | undefined;
|
|
1471
1471
|
} | {
|
|
@@ -1533,7 +1533,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1533
1533
|
client_id: string;
|
|
1534
1534
|
username: string;
|
|
1535
1535
|
otp: string;
|
|
1536
|
-
realm: "
|
|
1536
|
+
realm: "email" | "sms";
|
|
1537
1537
|
scope?: string | undefined;
|
|
1538
1538
|
audience?: string | undefined;
|
|
1539
1539
|
} | {
|
|
@@ -1593,7 +1593,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1593
1593
|
client_id: string;
|
|
1594
1594
|
username: string;
|
|
1595
1595
|
otp: string;
|
|
1596
|
-
realm: "
|
|
1596
|
+
realm: "email" | "sms";
|
|
1597
1597
|
scope?: string | undefined;
|
|
1598
1598
|
audience?: string | undefined;
|
|
1599
1599
|
} | {
|
|
@@ -1634,7 +1634,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1634
1634
|
input: {};
|
|
1635
1635
|
output: {
|
|
1636
1636
|
keys: {
|
|
1637
|
-
kty: "
|
|
1637
|
+
kty: "RSA" | "EC" | "oct";
|
|
1638
1638
|
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
1639
1639
|
kid?: string | undefined;
|
|
1640
1640
|
use?: "sig" | "enc" | undefined;
|
|
@@ -1644,6 +1644,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1644
1644
|
x?: string | undefined;
|
|
1645
1645
|
y?: string | undefined;
|
|
1646
1646
|
x5t?: string | undefined;
|
|
1647
|
+
"x5t#S256"?: string | undefined;
|
|
1647
1648
|
x5c?: string[] | undefined;
|
|
1648
1649
|
}[];
|
|
1649
1650
|
};
|
|
@@ -14,20 +14,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
audience?: string | undefined;
|
|
18
17
|
response_type?: AuthorizationResponseType | undefined;
|
|
19
18
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
19
|
scope?: string | undefined;
|
|
21
20
|
username?: string | undefined;
|
|
21
|
+
audience?: string | undefined;
|
|
22
|
+
organization?: string | undefined;
|
|
22
23
|
state?: string | undefined;
|
|
23
|
-
code_challenge?: string | undefined;
|
|
24
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
25
24
|
redirect_uri?: string | undefined;
|
|
26
|
-
nonce?: string | undefined;
|
|
27
|
-
act_as?: string | undefined;
|
|
28
|
-
organization?: string | undefined;
|
|
29
25
|
prompt?: string | undefined;
|
|
30
26
|
ui_locales?: string | undefined;
|
|
27
|
+
act_as?: string | undefined;
|
|
28
|
+
nonce?: string | undefined;
|
|
29
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
30
|
+
code_challenge?: 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
|
-
audience?: string | undefined;
|
|
54
53
|
response_type?: AuthorizationResponseType | undefined;
|
|
55
54
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
55
|
scope?: string | undefined;
|
|
57
56
|
username?: string | undefined;
|
|
57
|
+
audience?: string | undefined;
|
|
58
|
+
organization?: string | undefined;
|
|
58
59
|
state?: string | undefined;
|
|
59
|
-
code_challenge?: string | undefined;
|
|
60
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
61
60
|
redirect_uri?: string | undefined;
|
|
62
|
-
nonce?: string | undefined;
|
|
63
|
-
act_as?: string | undefined;
|
|
64
|
-
organization?: string | undefined;
|
|
65
61
|
prompt?: string | undefined;
|
|
66
62
|
ui_locales?: string | undefined;
|
|
63
|
+
act_as?: string | undefined;
|
|
64
|
+
nonce?: string | undefined;
|
|
65
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
66
|
+
code_challenge?: string | undefined;
|
|
67
67
|
max_age?: number | undefined;
|
|
68
68
|
acr_values?: string | undefined;
|
|
69
69
|
claims?: {
|
|
@@ -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?: "
|
|
21
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_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?: "
|
|
110
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
60
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
61
61
|
client_id?: string | undefined;
|
|
62
62
|
client_secret?: string | undefined;
|
|
63
63
|
};
|
|
@@ -40,7 +40,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
40
40
|
client_id: string;
|
|
41
41
|
username: string;
|
|
42
42
|
otp: string;
|
|
43
|
-
realm: "
|
|
43
|
+
realm: "email" | "sms";
|
|
44
44
|
scope?: string | undefined;
|
|
45
45
|
audience?: string | undefined;
|
|
46
46
|
} | {
|
|
@@ -100,7 +100,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
100
100
|
client_id: string;
|
|
101
101
|
username: string;
|
|
102
102
|
otp: string;
|
|
103
|
-
realm: "
|
|
103
|
+
realm: "email" | "sms";
|
|
104
104
|
scope?: string | undefined;
|
|
105
105
|
audience?: string | undefined;
|
|
106
106
|
} | {
|
|
@@ -165,7 +165,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
165
165
|
client_id: string;
|
|
166
166
|
username: string;
|
|
167
167
|
otp: string;
|
|
168
|
-
realm: "
|
|
168
|
+
realm: "email" | "sms";
|
|
169
169
|
scope?: string | undefined;
|
|
170
170
|
audience?: string | undefined;
|
|
171
171
|
} | {
|
|
@@ -225,7 +225,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
225
225
|
client_id: string;
|
|
226
226
|
username: string;
|
|
227
227
|
otp: string;
|
|
228
|
-
realm: "
|
|
228
|
+
realm: "email" | "sms";
|
|
229
229
|
scope?: string | undefined;
|
|
230
230
|
audience?: string | undefined;
|
|
231
231
|
} | {
|
|
@@ -298,7 +298,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
298
298
|
client_id: string;
|
|
299
299
|
username: string;
|
|
300
300
|
otp: string;
|
|
301
|
-
realm: "
|
|
301
|
+
realm: "email" | "sms";
|
|
302
302
|
scope?: string | undefined;
|
|
303
303
|
audience?: string | undefined;
|
|
304
304
|
} | {
|
|
@@ -358,7 +358,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
358
358
|
client_id: string;
|
|
359
359
|
username: string;
|
|
360
360
|
otp: string;
|
|
361
|
-
realm: "
|
|
361
|
+
realm: "email" | "sms";
|
|
362
362
|
scope?: string | undefined;
|
|
363
363
|
audience?: string | undefined;
|
|
364
364
|
} | {
|
|
@@ -426,7 +426,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
426
426
|
client_id: string;
|
|
427
427
|
username: string;
|
|
428
428
|
otp: string;
|
|
429
|
-
realm: "
|
|
429
|
+
realm: "email" | "sms";
|
|
430
430
|
scope?: string | undefined;
|
|
431
431
|
audience?: string | undefined;
|
|
432
432
|
} | {
|
|
@@ -486,7 +486,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
486
486
|
client_id: string;
|
|
487
487
|
username: string;
|
|
488
488
|
otp: string;
|
|
489
|
-
realm: "
|
|
489
|
+
realm: "email" | "sms";
|
|
490
490
|
scope?: string | undefined;
|
|
491
491
|
audience?: string | undefined;
|
|
492
492
|
} | {
|
|
@@ -554,7 +554,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
554
554
|
client_id: string;
|
|
555
555
|
username: string;
|
|
556
556
|
otp: string;
|
|
557
|
-
realm: "
|
|
557
|
+
realm: "email" | "sms";
|
|
558
558
|
scope?: string | undefined;
|
|
559
559
|
audience?: string | undefined;
|
|
560
560
|
} | {
|
|
@@ -614,7 +614,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
614
614
|
client_id: string;
|
|
615
615
|
username: string;
|
|
616
616
|
otp: string;
|
|
617
|
-
realm: "
|
|
617
|
+
realm: "email" | "sms";
|
|
618
618
|
scope?: string | undefined;
|
|
619
619
|
audience?: string | undefined;
|
|
620
620
|
} | {
|
|
@@ -8,7 +8,7 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
|
|
|
8
8
|
input: {};
|
|
9
9
|
output: {
|
|
10
10
|
keys: {
|
|
11
|
-
kty: "
|
|
11
|
+
kty: "RSA" | "EC" | "oct";
|
|
12
12
|
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
13
13
|
kid?: string | undefined;
|
|
14
14
|
use?: "sig" | "enc" | undefined;
|
|
@@ -18,6 +18,7 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
|
|
|
18
18
|
x?: string | undefined;
|
|
19
19
|
y?: string | undefined;
|
|
20
20
|
x5t?: string | undefined;
|
|
21
|
+
"x5t#S256"?: string | undefined;
|
|
21
22
|
x5c?: string[] | undefined;
|
|
22
23
|
}[];
|
|
23
24
|
};
|
|
@@ -297,7 +297,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
297
297
|
};
|
|
298
298
|
output: {};
|
|
299
299
|
outputFormat: string;
|
|
300
|
-
status:
|
|
300
|
+
status: 200;
|
|
301
301
|
} | {
|
|
302
302
|
input: {
|
|
303
303
|
param: {
|
|
@@ -310,7 +310,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
310
310
|
};
|
|
311
311
|
output: {};
|
|
312
312
|
outputFormat: string;
|
|
313
|
-
status:
|
|
313
|
+
status: 404;
|
|
314
314
|
} | {
|
|
315
315
|
input: {
|
|
316
316
|
param: {
|
|
@@ -656,7 +656,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
656
656
|
args: import("hono/utils/types").JSONValue[];
|
|
657
657
|
}[];
|
|
658
658
|
logs: {
|
|
659
|
-
level: "error" | "
|
|
659
|
+
level: "error" | "log" | "info" | "warn" | "debug";
|
|
660
660
|
message: string;
|
|
661
661
|
}[];
|
|
662
662
|
error?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "email" | "
|
|
40
|
+
type: "email" | "push" | "passkey" | "phone" | "webauthn-roaming" | "webauthn-platform" | "totp";
|
|
41
41
|
phone_number?: string | undefined;
|
|
42
42
|
totp_secret?: string | undefined;
|
|
43
43
|
credential_id?: string | undefined;
|
|
@@ -78,7 +78,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
78
78
|
addons?: {
|
|
79
79
|
[x: string]: any;
|
|
80
80
|
} | undefined;
|
|
81
|
-
token_endpoint_auth_method?: "
|
|
81
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
82
82
|
client_metadata?: {
|
|
83
83
|
[x: string]: string;
|
|
84
84
|
} | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
183
183
|
addons?: {
|
|
184
184
|
[x: string]: any;
|
|
185
185
|
} | undefined;
|
|
186
|
-
token_endpoint_auth_method?: "
|
|
186
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
187
187
|
client_metadata?: {
|
|
188
188
|
[x: string]: string;
|
|
189
189
|
} | undefined;
|
|
@@ -288,7 +288,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
288
288
|
addons?: {
|
|
289
289
|
[x: string]: any;
|
|
290
290
|
} | undefined;
|
|
291
|
-
token_endpoint_auth_method?: "
|
|
291
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
292
292
|
client_metadata?: {
|
|
293
293
|
[x: string]: string;
|
|
294
294
|
} | undefined;
|
|
@@ -408,7 +408,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
408
408
|
addons?: {
|
|
409
409
|
[x: string]: any;
|
|
410
410
|
} | undefined;
|
|
411
|
-
token_endpoint_auth_method?: "
|
|
411
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
412
412
|
client_metadata?: {
|
|
413
413
|
[x: string]: string;
|
|
414
414
|
} | undefined;
|
|
@@ -529,7 +529,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
529
529
|
custom_login_page_preview?: string | undefined;
|
|
530
530
|
form_template?: string | undefined;
|
|
531
531
|
addons?: Record<string, any> | undefined;
|
|
532
|
-
token_endpoint_auth_method?: "
|
|
532
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
533
533
|
client_metadata?: Record<string, string> | undefined;
|
|
534
534
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
535
535
|
mobile?: Record<string, any> | undefined;
|
|
@@ -618,7 +618,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
618
618
|
addons?: {
|
|
619
619
|
[x: string]: any;
|
|
620
620
|
} | undefined;
|
|
621
|
-
token_endpoint_auth_method?: "
|
|
621
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
622
622
|
client_metadata?: {
|
|
623
623
|
[x: string]: string;
|
|
624
624
|
} | undefined;
|
|
@@ -718,7 +718,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
718
718
|
custom_login_page_preview?: string | undefined;
|
|
719
719
|
form_template?: string | undefined;
|
|
720
720
|
addons?: Record<string, any> | undefined;
|
|
721
|
-
token_endpoint_auth_method?: "
|
|
721
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
722
722
|
client_metadata?: Record<string, string> | undefined;
|
|
723
723
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
724
724
|
mobile?: Record<string, any> | undefined;
|
|
@@ -807,7 +807,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
807
807
|
addons?: {
|
|
808
808
|
[x: string]: any;
|
|
809
809
|
} | undefined;
|
|
810
|
-
token_endpoint_auth_method?: "
|
|
810
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
811
811
|
client_metadata?: {
|
|
812
812
|
[x: string]: string;
|
|
813
813
|
} | undefined;
|