authhero 9.34.0 → 9.36.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 +105 -104
- package/dist/authhero.d.ts +304 -220
- package/dist/authhero.mjs +16782 -15989
- package/dist/{mfa-CDFRupfM.mjs → mfa-B044FRjD.mjs} +18 -18
- package/dist/{mfa-DF3O3Z8H.js → mfa-DPwn1ajo.js} +1 -1
- package/dist/mfa-attempts-BiU_pMOV.js +275 -0
- package/dist/{mfa-attempts-C06Bkdy9.mjs → mfa-attempts-DGOLb2oh.mjs} +6417 -6092
- package/dist/{passkey-enrollment-RGw-WaSq.js → passkey-enrollment-BDboqoaP.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +6 -412
- package/dist/types/emails/from-address.d.ts +21 -0
- package/dist/types/errors/management-api-error.d.ts +3 -0
- package/dist/types/helpers/branding-assets.d.ts +28 -0
- package/dist/types/helpers/client.d.ts +5 -2
- package/dist/types/helpers/database-connection-scope.d.ts +67 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/link-candidates.d.ts +7 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/self-service-connections.d.ts +42 -0
- package/dist/types/helpers/sso-access-tickets.d.ts +18 -0
- package/dist/types/helpers/users.d.ts +29 -4
- package/dist/types/index.d.ts +298 -217
- package/dist/types/routes/assets.d.ts +11 -0
- package/dist/types/routes/auth-api/device.d.ts +8 -8
- package/dist/types/routes/auth-api/index.d.ts +40 -38
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -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/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding-uploads.d.ts +85 -0
- package/dist/types/routes/management-api/branding.d.ts +92 -13
- package/dist/types/routes/management-api/clients.d.ts +32 -32
- package/dist/types/routes/management-api/connections.d.ts +24 -24
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +2 -2
- 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/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +251 -172
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- 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 +4 -4
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- package/dist/types/routes/management-api/self-service-profiles.d.ts +345 -0
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
- package/dist/types/routes/management-api/tenants.d.ts +13 -13
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +29 -29
- package/dist/types/routes/universal-login/common.d.ts +12 -828
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- 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/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/Bindings.d.ts +1 -0
- package/dist/types/utils/username-password-provider.d.ts +14 -3
- package/package.json +6 -6
- package/dist/mfa-attempts-BOWgbEPg.js +0 -275
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Hono } from "hono";
|
|
2
|
+
import { AuthHeroConfig, Bindings, Variables } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Public, unauthenticated serving of tenant branding uploads from the storage
|
|
5
|
+
* adapter (used when no dedicated assets domain is configured). Only keys under
|
|
6
|
+
* `tenants/{id}/branding/{kind}/` are served; the key is never a free-form path.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createAssetsApp(config: AuthHeroConfig): Hono<{
|
|
9
|
+
Bindings: Bindings;
|
|
10
|
+
Variables: Variables;
|
|
11
|
+
}, import("hono/types").BlankSchema, "/">;
|
|
@@ -12,7 +12,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
12
12
|
client_secret?: string | undefined;
|
|
13
13
|
scope?: string | undefined;
|
|
14
14
|
audience?: string | undefined;
|
|
15
|
-
include_qr_code?: boolean | "
|
|
15
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
json: {
|
|
@@ -20,7 +20,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
20
20
|
client_secret?: string | undefined;
|
|
21
21
|
scope?: string | undefined;
|
|
22
22
|
audience?: string | undefined;
|
|
23
|
-
include_qr_code?: boolean | "
|
|
23
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
output: {
|
|
@@ -41,7 +41,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
41
41
|
client_secret?: string | undefined;
|
|
42
42
|
scope?: string | undefined;
|
|
43
43
|
audience?: string | undefined;
|
|
44
|
-
include_qr_code?: boolean | "
|
|
44
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
45
45
|
};
|
|
46
46
|
} & {
|
|
47
47
|
json: {
|
|
@@ -49,7 +49,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
49
49
|
client_secret?: string | undefined;
|
|
50
50
|
scope?: string | undefined;
|
|
51
51
|
audience?: string | undefined;
|
|
52
|
-
include_qr_code?: boolean | "
|
|
52
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
output: {
|
|
@@ -65,7 +65,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
65
65
|
client_secret?: string | undefined;
|
|
66
66
|
scope?: string | undefined;
|
|
67
67
|
audience?: string | undefined;
|
|
68
|
-
include_qr_code?: boolean | "
|
|
68
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
69
69
|
};
|
|
70
70
|
} & {
|
|
71
71
|
json: {
|
|
@@ -73,7 +73,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
73
73
|
client_secret?: string | undefined;
|
|
74
74
|
scope?: string | undefined;
|
|
75
75
|
audience?: string | undefined;
|
|
76
|
-
include_qr_code?: boolean | "
|
|
76
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
output: {
|
|
@@ -89,7 +89,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
89
89
|
client_secret?: string | undefined;
|
|
90
90
|
scope?: string | undefined;
|
|
91
91
|
audience?: string | undefined;
|
|
92
|
-
include_qr_code?: boolean | "
|
|
92
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
93
93
|
};
|
|
94
94
|
} & {
|
|
95
95
|
json: {
|
|
@@ -97,7 +97,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
97
97
|
client_secret?: string | undefined;
|
|
98
98
|
scope?: string | undefined;
|
|
99
99
|
audience?: string | undefined;
|
|
100
|
-
include_qr_code?: boolean | "
|
|
100
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
output: {
|
|
@@ -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?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
304
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "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?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
393
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "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;
|
|
@@ -745,19 +745,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
745
745
|
connection: "email";
|
|
746
746
|
client_id: string;
|
|
747
747
|
email: string;
|
|
748
|
-
send: "
|
|
748
|
+
send: "code" | "link";
|
|
749
749
|
authParams: {
|
|
750
|
-
scope?: string | undefined;
|
|
751
750
|
username?: string | undefined;
|
|
752
|
-
|
|
751
|
+
connection?: string | undefined;
|
|
752
|
+
scope?: string | undefined;
|
|
753
753
|
state?: string | undefined;
|
|
754
|
-
|
|
754
|
+
audience?: string | undefined;
|
|
755
|
+
redirect_uri?: string | undefined;
|
|
755
756
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
756
757
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
758
|
+
organization?: string | undefined;
|
|
759
|
+
prompt?: string | undefined;
|
|
757
760
|
act_as?: string | undefined;
|
|
758
|
-
redirect_uri?: string | undefined;
|
|
759
761
|
nonce?: string | undefined;
|
|
760
|
-
prompt?: string | undefined;
|
|
761
762
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
762
763
|
code_challenge?: string | undefined;
|
|
763
764
|
ui_locales?: string | undefined;
|
|
@@ -781,19 +782,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
781
782
|
client_id: string;
|
|
782
783
|
connection: "sms";
|
|
783
784
|
phone_number: string;
|
|
784
|
-
send: "
|
|
785
|
+
send: "code" | "link";
|
|
785
786
|
authParams: {
|
|
786
|
-
scope?: string | undefined;
|
|
787
787
|
username?: string | undefined;
|
|
788
|
-
|
|
788
|
+
connection?: string | undefined;
|
|
789
|
+
scope?: string | undefined;
|
|
789
790
|
state?: string | undefined;
|
|
790
|
-
|
|
791
|
+
audience?: string | undefined;
|
|
792
|
+
redirect_uri?: string | undefined;
|
|
791
793
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
792
794
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
795
|
+
organization?: string | undefined;
|
|
796
|
+
prompt?: string | undefined;
|
|
793
797
|
act_as?: string | undefined;
|
|
794
|
-
redirect_uri?: string | undefined;
|
|
795
798
|
nonce?: string | undefined;
|
|
796
|
-
prompt?: string | undefined;
|
|
797
799
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
798
800
|
code_challenge?: string | undefined;
|
|
799
801
|
ui_locales?: string | undefined;
|
|
@@ -927,14 +929,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
927
929
|
input: {
|
|
928
930
|
form: {
|
|
929
931
|
token: string;
|
|
930
|
-
token_type_hint?: "
|
|
932
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
931
933
|
client_id?: string | undefined;
|
|
932
934
|
client_secret?: string | undefined;
|
|
933
935
|
};
|
|
934
936
|
} & {
|
|
935
937
|
json: {
|
|
936
938
|
token: string;
|
|
937
|
-
token_type_hint?: "
|
|
939
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
938
940
|
client_id?: string | undefined;
|
|
939
941
|
client_secret?: string | undefined;
|
|
940
942
|
};
|
|
@@ -946,14 +948,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
946
948
|
input: {
|
|
947
949
|
form: {
|
|
948
950
|
token: string;
|
|
949
|
-
token_type_hint?: "
|
|
951
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
950
952
|
client_id?: string | undefined;
|
|
951
953
|
client_secret?: string | undefined;
|
|
952
954
|
};
|
|
953
955
|
} & {
|
|
954
956
|
json: {
|
|
955
957
|
token: string;
|
|
956
|
-
token_type_hint?: "
|
|
958
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
957
959
|
client_id?: string | undefined;
|
|
958
960
|
client_secret?: string | undefined;
|
|
959
961
|
};
|
|
@@ -968,14 +970,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
968
970
|
input: {
|
|
969
971
|
form: {
|
|
970
972
|
token: string;
|
|
971
|
-
token_type_hint?: "
|
|
973
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
972
974
|
client_id?: string | undefined;
|
|
973
975
|
client_secret?: string | undefined;
|
|
974
976
|
};
|
|
975
977
|
} & {
|
|
976
978
|
json: {
|
|
977
979
|
token: string;
|
|
978
|
-
token_type_hint?: "
|
|
980
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
979
981
|
client_id?: string | undefined;
|
|
980
982
|
client_secret?: string | undefined;
|
|
981
983
|
};
|
|
@@ -1021,7 +1023,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1021
1023
|
client_secret?: string | undefined;
|
|
1022
1024
|
scope?: string | undefined;
|
|
1023
1025
|
audience?: string | undefined;
|
|
1024
|
-
include_qr_code?: boolean | "
|
|
1026
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1025
1027
|
};
|
|
1026
1028
|
} & {
|
|
1027
1029
|
json: {
|
|
@@ -1029,7 +1031,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1029
1031
|
client_secret?: string | undefined;
|
|
1030
1032
|
scope?: string | undefined;
|
|
1031
1033
|
audience?: string | undefined;
|
|
1032
|
-
include_qr_code?: boolean | "
|
|
1034
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1033
1035
|
};
|
|
1034
1036
|
};
|
|
1035
1037
|
output: {
|
|
@@ -1050,7 +1052,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1050
1052
|
client_secret?: string | undefined;
|
|
1051
1053
|
scope?: string | undefined;
|
|
1052
1054
|
audience?: string | undefined;
|
|
1053
|
-
include_qr_code?: boolean | "
|
|
1055
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1054
1056
|
};
|
|
1055
1057
|
} & {
|
|
1056
1058
|
json: {
|
|
@@ -1058,7 +1060,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1058
1060
|
client_secret?: string | undefined;
|
|
1059
1061
|
scope?: string | undefined;
|
|
1060
1062
|
audience?: string | undefined;
|
|
1061
|
-
include_qr_code?: boolean | "
|
|
1063
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1062
1064
|
};
|
|
1063
1065
|
};
|
|
1064
1066
|
output: {
|
|
@@ -1074,7 +1076,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1074
1076
|
client_secret?: string | undefined;
|
|
1075
1077
|
scope?: string | undefined;
|
|
1076
1078
|
audience?: string | undefined;
|
|
1077
|
-
include_qr_code?: boolean | "
|
|
1079
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1078
1080
|
};
|
|
1079
1081
|
} & {
|
|
1080
1082
|
json: {
|
|
@@ -1082,7 +1084,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1082
1084
|
client_secret?: string | undefined;
|
|
1083
1085
|
scope?: string | undefined;
|
|
1084
1086
|
audience?: string | undefined;
|
|
1085
|
-
include_qr_code?: boolean | "
|
|
1087
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1086
1088
|
};
|
|
1087
1089
|
};
|
|
1088
1090
|
output: {
|
|
@@ -1098,7 +1100,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1098
1100
|
client_secret?: string | undefined;
|
|
1099
1101
|
scope?: string | undefined;
|
|
1100
1102
|
audience?: string | undefined;
|
|
1101
|
-
include_qr_code?: boolean | "
|
|
1103
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1102
1104
|
};
|
|
1103
1105
|
} & {
|
|
1104
1106
|
json: {
|
|
@@ -1106,7 +1108,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1106
1108
|
client_secret?: string | undefined;
|
|
1107
1109
|
scope?: string | undefined;
|
|
1108
1110
|
audience?: string | undefined;
|
|
1109
|
-
include_qr_code?: boolean | "
|
|
1111
|
+
include_qr_code?: boolean | "true" | "false" | undefined;
|
|
1110
1112
|
};
|
|
1111
1113
|
};
|
|
1112
1114
|
output: {
|
|
@@ -1162,7 +1164,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1162
1164
|
client_id: string;
|
|
1163
1165
|
username: string;
|
|
1164
1166
|
otp: string;
|
|
1165
|
-
realm: "
|
|
1167
|
+
realm: "email" | "sms";
|
|
1166
1168
|
scope?: string | undefined;
|
|
1167
1169
|
audience?: string | undefined;
|
|
1168
1170
|
} | {
|
|
@@ -1230,7 +1232,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1230
1232
|
client_id: string;
|
|
1231
1233
|
username: string;
|
|
1232
1234
|
otp: string;
|
|
1233
|
-
realm: "
|
|
1235
|
+
realm: "email" | "sms";
|
|
1234
1236
|
scope?: string | undefined;
|
|
1235
1237
|
audience?: string | undefined;
|
|
1236
1238
|
} | {
|
|
@@ -1303,7 +1305,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1303
1305
|
client_id: string;
|
|
1304
1306
|
username: string;
|
|
1305
1307
|
otp: string;
|
|
1306
|
-
realm: "
|
|
1308
|
+
realm: "email" | "sms";
|
|
1307
1309
|
scope?: string | undefined;
|
|
1308
1310
|
audience?: string | undefined;
|
|
1309
1311
|
} | {
|
|
@@ -1371,7 +1373,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1371
1373
|
client_id: string;
|
|
1372
1374
|
username: string;
|
|
1373
1375
|
otp: string;
|
|
1374
|
-
realm: "
|
|
1376
|
+
realm: "email" | "sms";
|
|
1375
1377
|
scope?: string | undefined;
|
|
1376
1378
|
audience?: string | undefined;
|
|
1377
1379
|
} | {
|
|
@@ -1453,7 +1455,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1453
1455
|
client_id: string;
|
|
1454
1456
|
username: string;
|
|
1455
1457
|
otp: string;
|
|
1456
|
-
realm: "
|
|
1458
|
+
realm: "email" | "sms";
|
|
1457
1459
|
scope?: string | undefined;
|
|
1458
1460
|
audience?: string | undefined;
|
|
1459
1461
|
} | {
|
|
@@ -1521,7 +1523,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1521
1523
|
client_id: string;
|
|
1522
1524
|
username: string;
|
|
1523
1525
|
otp: string;
|
|
1524
|
-
realm: "
|
|
1526
|
+
realm: "email" | "sms";
|
|
1525
1527
|
scope?: string | undefined;
|
|
1526
1528
|
audience?: string | undefined;
|
|
1527
1529
|
} | {
|
|
@@ -1597,7 +1599,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1597
1599
|
client_id: string;
|
|
1598
1600
|
username: string;
|
|
1599
1601
|
otp: string;
|
|
1600
|
-
realm: "
|
|
1602
|
+
realm: "email" | "sms";
|
|
1601
1603
|
scope?: string | undefined;
|
|
1602
1604
|
audience?: string | undefined;
|
|
1603
1605
|
} | {
|
|
@@ -1665,7 +1667,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1665
1667
|
client_id: string;
|
|
1666
1668
|
username: string;
|
|
1667
1669
|
otp: string;
|
|
1668
|
-
realm: "
|
|
1670
|
+
realm: "email" | "sms";
|
|
1669
1671
|
scope?: string | undefined;
|
|
1670
1672
|
audience?: string | undefined;
|
|
1671
1673
|
} | {
|
|
@@ -1741,7 +1743,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1741
1743
|
client_id: string;
|
|
1742
1744
|
username: string;
|
|
1743
1745
|
otp: string;
|
|
1744
|
-
realm: "
|
|
1746
|
+
realm: "email" | "sms";
|
|
1745
1747
|
scope?: string | undefined;
|
|
1746
1748
|
audience?: string | undefined;
|
|
1747
1749
|
} | {
|
|
@@ -1809,7 +1811,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1809
1811
|
client_id: string;
|
|
1810
1812
|
username: string;
|
|
1811
1813
|
otp: string;
|
|
1812
|
-
realm: "
|
|
1814
|
+
realm: "email" | "sms";
|
|
1813
1815
|
scope?: string | undefined;
|
|
1814
1816
|
audience?: string | undefined;
|
|
1815
1817
|
} | {
|
|
@@ -12,19 +12,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
12
12
|
connection: "email";
|
|
13
13
|
client_id: string;
|
|
14
14
|
email: string;
|
|
15
|
-
send: "
|
|
15
|
+
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
scope?: string | undefined;
|
|
18
17
|
username?: string | undefined;
|
|
19
|
-
|
|
18
|
+
connection?: string | undefined;
|
|
19
|
+
scope?: string | undefined;
|
|
20
20
|
state?: string | undefined;
|
|
21
|
-
|
|
21
|
+
audience?: string | undefined;
|
|
22
|
+
redirect_uri?: string | undefined;
|
|
22
23
|
response_type?: AuthorizationResponseType | undefined;
|
|
23
24
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
25
|
+
organization?: string | undefined;
|
|
26
|
+
prompt?: string | undefined;
|
|
24
27
|
act_as?: string | undefined;
|
|
25
|
-
redirect_uri?: string | undefined;
|
|
26
28
|
nonce?: string | undefined;
|
|
27
|
-
prompt?: string | undefined;
|
|
28
29
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
30
|
code_challenge?: string | undefined;
|
|
30
31
|
ui_locales?: string | undefined;
|
|
@@ -48,19 +49,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
48
49
|
client_id: string;
|
|
49
50
|
connection: "sms";
|
|
50
51
|
phone_number: string;
|
|
51
|
-
send: "
|
|
52
|
+
send: "code" | "link";
|
|
52
53
|
authParams: {
|
|
53
|
-
scope?: string | undefined;
|
|
54
54
|
username?: string | undefined;
|
|
55
|
-
|
|
55
|
+
connection?: string | undefined;
|
|
56
|
+
scope?: string | undefined;
|
|
56
57
|
state?: string | undefined;
|
|
57
|
-
|
|
58
|
+
audience?: string | undefined;
|
|
59
|
+
redirect_uri?: string | undefined;
|
|
58
60
|
response_type?: AuthorizationResponseType | undefined;
|
|
59
61
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
62
|
+
organization?: string | undefined;
|
|
63
|
+
prompt?: string | undefined;
|
|
60
64
|
act_as?: string | undefined;
|
|
61
|
-
redirect_uri?: string | undefined;
|
|
62
65
|
nonce?: string | undefined;
|
|
63
|
-
prompt?: string | undefined;
|
|
64
66
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
67
|
code_challenge?: string | undefined;
|
|
66
68
|
ui_locales?: 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" | "client_secret_post" | "client_secret_basic" | "
|
|
21
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "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?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
110
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "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?: "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
|
};
|
|
@@ -48,7 +48,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
48
48
|
client_id: string;
|
|
49
49
|
username: string;
|
|
50
50
|
otp: string;
|
|
51
|
-
realm: "
|
|
51
|
+
realm: "email" | "sms";
|
|
52
52
|
scope?: string | undefined;
|
|
53
53
|
audience?: string | undefined;
|
|
54
54
|
} | {
|
|
@@ -116,7 +116,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
116
116
|
client_id: string;
|
|
117
117
|
username: string;
|
|
118
118
|
otp: string;
|
|
119
|
-
realm: "
|
|
119
|
+
realm: "email" | "sms";
|
|
120
120
|
scope?: string | undefined;
|
|
121
121
|
audience?: string | undefined;
|
|
122
122
|
} | {
|
|
@@ -189,7 +189,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
189
189
|
client_id: string;
|
|
190
190
|
username: string;
|
|
191
191
|
otp: string;
|
|
192
|
-
realm: "
|
|
192
|
+
realm: "email" | "sms";
|
|
193
193
|
scope?: string | undefined;
|
|
194
194
|
audience?: string | undefined;
|
|
195
195
|
} | {
|
|
@@ -257,7 +257,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
257
257
|
client_id: string;
|
|
258
258
|
username: string;
|
|
259
259
|
otp: string;
|
|
260
|
-
realm: "
|
|
260
|
+
realm: "email" | "sms";
|
|
261
261
|
scope?: string | undefined;
|
|
262
262
|
audience?: string | undefined;
|
|
263
263
|
} | {
|
|
@@ -339,7 +339,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
339
339
|
client_id: string;
|
|
340
340
|
username: string;
|
|
341
341
|
otp: string;
|
|
342
|
-
realm: "
|
|
342
|
+
realm: "email" | "sms";
|
|
343
343
|
scope?: string | undefined;
|
|
344
344
|
audience?: string | undefined;
|
|
345
345
|
} | {
|
|
@@ -407,7 +407,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
407
407
|
client_id: string;
|
|
408
408
|
username: string;
|
|
409
409
|
otp: string;
|
|
410
|
-
realm: "
|
|
410
|
+
realm: "email" | "sms";
|
|
411
411
|
scope?: string | undefined;
|
|
412
412
|
audience?: string | undefined;
|
|
413
413
|
} | {
|
|
@@ -483,7 +483,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
483
483
|
client_id: string;
|
|
484
484
|
username: string;
|
|
485
485
|
otp: string;
|
|
486
|
-
realm: "
|
|
486
|
+
realm: "email" | "sms";
|
|
487
487
|
scope?: string | undefined;
|
|
488
488
|
audience?: string | undefined;
|
|
489
489
|
} | {
|
|
@@ -551,7 +551,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
551
551
|
client_id: string;
|
|
552
552
|
username: string;
|
|
553
553
|
otp: string;
|
|
554
|
-
realm: "
|
|
554
|
+
realm: "email" | "sms";
|
|
555
555
|
scope?: string | undefined;
|
|
556
556
|
audience?: string | undefined;
|
|
557
557
|
} | {
|
|
@@ -627,7 +627,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
627
627
|
client_id: string;
|
|
628
628
|
username: string;
|
|
629
629
|
otp: string;
|
|
630
|
-
realm: "
|
|
630
|
+
realm: "email" | "sms";
|
|
631
631
|
scope?: string | undefined;
|
|
632
632
|
audience?: string | undefined;
|
|
633
633
|
} | {
|
|
@@ -695,7 +695,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
695
695
|
client_id: string;
|
|
696
696
|
username: string;
|
|
697
697
|
otp: string;
|
|
698
|
-
realm: "
|
|
698
|
+
realm: "email" | "sms";
|
|
699
699
|
scope?: string | undefined;
|
|
700
700
|
audience?: string | undefined;
|
|
701
701
|
} | {
|
|
@@ -31,7 +31,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
|
|
|
31
31
|
output: {
|
|
32
32
|
id: string;
|
|
33
33
|
trigger_id: string;
|
|
34
|
-
status: "
|
|
34
|
+
status: "unspecified" | "pending" | "final" | "partial" | "canceled" | "suspended";
|
|
35
35
|
results: {
|
|
36
36
|
action_name: string;
|
|
37
37
|
error: {
|
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "push" | "email" | "passkey" | "
|
|
40
|
+
type: "push" | "email" | "passkey" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
|
|
41
41
|
phone_number?: string | undefined;
|
|
42
42
|
totp_secret?: string | undefined;
|
|
43
43
|
credential_id?: string | undefined;
|