authhero 8.24.0 → 8.25.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 +138 -138
- package/dist/authhero.d.ts +802 -225
- package/dist/authhero.mjs +12109 -11443
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/index.d.ts +228 -222
- package/dist/types/routes/auth-api/index.d.ts +44 -44
- 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 +8 -8
- package/dist/types/routes/auth-api/token.d.ts +22 -22
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.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/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +172 -172
- 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/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-members.d.ts +304 -0
- package/dist/types/routes/management-api/tenant-members.test.d.ts +1 -0
- package/dist/types/routes/management-api/tenants.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/proxy-control-plane/index.d.ts +23 -0
- package/dist/types/routes/proxy-control-plane/scopes.d.ts +7 -0
- package/dist/types/routes/proxy-control-plane/tenant-members.d.ts +37 -0
- package/dist/types/routes/proxy-control-plane/verify.d.ts +14 -0
- package/dist/types/routes/proxy-control-plane/verify.test.d.ts +1 -0
- 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 +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/tenant-members/control-plane-roundtrip.test.d.ts +1 -0
- package/dist/types/tenant-members/local-backend.d.ts +43 -0
- package/dist/types/tenant-members/local-backend.test.d.ts +1 -0
- package/dist/types/tenant-members/remote-backend.d.ts +17 -0
- package/dist/types/tenant-members/types.d.ts +112 -0
- package/dist/types/tenant-members/wire.d.ts +28 -0
- package/dist/types/types/AuthHeroConfig.d.ts +32 -0
- package/package.json +3 -3
|
@@ -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;
|
|
@@ -736,20 +736,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
736
736
|
email: string;
|
|
737
737
|
send: "code" | "link";
|
|
738
738
|
authParams: {
|
|
739
|
-
|
|
739
|
+
username?: string | undefined;
|
|
740
740
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
741
741
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
742
742
|
scope?: string | undefined;
|
|
743
|
-
|
|
743
|
+
audience?: string | undefined;
|
|
744
744
|
state?: string | undefined;
|
|
745
|
-
nonce?: string | undefined;
|
|
746
745
|
prompt?: string | undefined;
|
|
747
|
-
act_as?: string | undefined;
|
|
748
|
-
redirect_uri?: string | undefined;
|
|
749
746
|
organization?: string | undefined;
|
|
747
|
+
ui_locales?: string | undefined;
|
|
748
|
+
redirect_uri?: string | undefined;
|
|
749
|
+
act_as?: string | undefined;
|
|
750
|
+
nonce?: string | undefined;
|
|
750
751
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
751
752
|
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
|
-
|
|
775
|
+
username?: string | undefined;
|
|
776
776
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
777
777
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
778
778
|
scope?: string | undefined;
|
|
779
|
-
|
|
779
|
+
audience?: string | undefined;
|
|
780
780
|
state?: string | undefined;
|
|
781
|
-
nonce?: string | undefined;
|
|
782
781
|
prompt?: string | undefined;
|
|
783
|
-
act_as?: string | undefined;
|
|
784
|
-
redirect_uri?: string | undefined;
|
|
785
782
|
organization?: string | undefined;
|
|
783
|
+
ui_locales?: string | undefined;
|
|
784
|
+
redirect_uri?: string | undefined;
|
|
785
|
+
act_as?: string | undefined;
|
|
786
|
+
nonce?: string | undefined;
|
|
786
787
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
787
788
|
code_challenge?: string | undefined;
|
|
788
|
-
ui_locales?: string | undefined;
|
|
789
789
|
max_age?: number | undefined;
|
|
790
790
|
acr_values?: string | undefined;
|
|
791
791
|
claims?: {
|
|
@@ -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?: "access_token" | "refresh_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?: "access_token" | "refresh_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?: "access_token" | "refresh_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?: "access_token" | "refresh_token" | undefined;
|
|
946
946
|
client_id?: string | undefined;
|
|
947
947
|
client_secret?: string | undefined;
|
|
948
948
|
};
|
|
@@ -952,19 +952,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
952
952
|
error_description?: string | undefined;
|
|
953
953
|
};
|
|
954
954
|
outputFormat: "json";
|
|
955
|
-
status:
|
|
955
|
+
status: 401;
|
|
956
956
|
} | {
|
|
957
957
|
input: {
|
|
958
958
|
form: {
|
|
959
959
|
token: string;
|
|
960
|
-
token_type_hint?: "
|
|
960
|
+
token_type_hint?: "access_token" | "refresh_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?: "access_token" | "refresh_token" | undefined;
|
|
968
968
|
client_id?: string | undefined;
|
|
969
969
|
client_secret?: string | undefined;
|
|
970
970
|
};
|
|
@@ -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:
|
|
977
|
+
status: 400;
|
|
978
978
|
};
|
|
979
979
|
};
|
|
980
980
|
}, "/oauth/revoke"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -1014,7 +1014,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1014
1014
|
client_id: string;
|
|
1015
1015
|
username: string;
|
|
1016
1016
|
otp: string;
|
|
1017
|
-
realm: "
|
|
1017
|
+
realm: "email" | "sms";
|
|
1018
1018
|
} | {
|
|
1019
1019
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1020
1020
|
subject_token: string;
|
|
@@ -1061,7 +1061,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1061
1061
|
client_id: string;
|
|
1062
1062
|
username: string;
|
|
1063
1063
|
otp: string;
|
|
1064
|
-
realm: "
|
|
1064
|
+
realm: "email" | "sms";
|
|
1065
1065
|
} | {
|
|
1066
1066
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1067
1067
|
subject_token: string;
|
|
@@ -1113,7 +1113,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1113
1113
|
client_id: string;
|
|
1114
1114
|
username: string;
|
|
1115
1115
|
otp: string;
|
|
1116
|
-
realm: "
|
|
1116
|
+
realm: "email" | "sms";
|
|
1117
1117
|
} | {
|
|
1118
1118
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1119
1119
|
subject_token: string;
|
|
@@ -1160,7 +1160,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1160
1160
|
client_id: string;
|
|
1161
1161
|
username: string;
|
|
1162
1162
|
otp: string;
|
|
1163
|
-
realm: "
|
|
1163
|
+
realm: "email" | "sms";
|
|
1164
1164
|
} | {
|
|
1165
1165
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1166
1166
|
subject_token: string;
|
|
@@ -1175,16 +1175,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1175
1175
|
};
|
|
1176
1176
|
};
|
|
1177
1177
|
output: {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
expires_in: number;
|
|
1181
|
-
id_token?: string | undefined;
|
|
1182
|
-
scope?: string | undefined;
|
|
1183
|
-
state?: string | undefined;
|
|
1184
|
-
refresh_token?: string | undefined;
|
|
1178
|
+
error: string;
|
|
1179
|
+
error_description?: string | undefined;
|
|
1185
1180
|
};
|
|
1186
1181
|
outputFormat: "json";
|
|
1187
|
-
status:
|
|
1182
|
+
status: 401;
|
|
1188
1183
|
} | {
|
|
1189
1184
|
input: {
|
|
1190
1185
|
form: {
|
|
@@ -1220,7 +1215,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1220
1215
|
client_id: string;
|
|
1221
1216
|
username: string;
|
|
1222
1217
|
otp: string;
|
|
1223
|
-
realm: "
|
|
1218
|
+
realm: "email" | "sms";
|
|
1224
1219
|
} | {
|
|
1225
1220
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1226
1221
|
subject_token: string;
|
|
@@ -1267,7 +1262,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1267
1262
|
client_id: string;
|
|
1268
1263
|
username: string;
|
|
1269
1264
|
otp: string;
|
|
1270
|
-
realm: "
|
|
1265
|
+
realm: "email" | "sms";
|
|
1271
1266
|
} | {
|
|
1272
1267
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1273
1268
|
subject_token: string;
|
|
@@ -1282,11 +1277,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1282
1277
|
};
|
|
1283
1278
|
};
|
|
1284
1279
|
output: {
|
|
1285
|
-
|
|
1286
|
-
|
|
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;
|
|
1287
1287
|
};
|
|
1288
1288
|
outputFormat: "json";
|
|
1289
|
-
status:
|
|
1289
|
+
status: 200;
|
|
1290
1290
|
} | {
|
|
1291
1291
|
input: {
|
|
1292
1292
|
form: {
|
|
@@ -1322,7 +1322,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1322
1322
|
client_id: string;
|
|
1323
1323
|
username: string;
|
|
1324
1324
|
otp: string;
|
|
1325
|
-
realm: "
|
|
1325
|
+
realm: "email" | "sms";
|
|
1326
1326
|
} | {
|
|
1327
1327
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1328
1328
|
subject_token: string;
|
|
@@ -1369,7 +1369,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1369
1369
|
client_id: string;
|
|
1370
1370
|
username: string;
|
|
1371
1371
|
otp: string;
|
|
1372
|
-
realm: "
|
|
1372
|
+
realm: "email" | "sms";
|
|
1373
1373
|
} | {
|
|
1374
1374
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1375
1375
|
subject_token: string;
|
|
@@ -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:
|
|
1391
|
+
status: 400;
|
|
1392
1392
|
} | {
|
|
1393
1393
|
input: {
|
|
1394
1394
|
form: {
|
|
@@ -1424,7 +1424,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1424
1424
|
client_id: string;
|
|
1425
1425
|
username: string;
|
|
1426
1426
|
otp: string;
|
|
1427
|
-
realm: "
|
|
1427
|
+
realm: "email" | "sms";
|
|
1428
1428
|
} | {
|
|
1429
1429
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1430
1430
|
subject_token: string;
|
|
@@ -1471,7 +1471,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1471
1471
|
client_id: string;
|
|
1472
1472
|
username: string;
|
|
1473
1473
|
otp: string;
|
|
1474
|
-
realm: "
|
|
1474
|
+
realm: "email" | "sms";
|
|
1475
1475
|
} | {
|
|
1476
1476
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1477
1477
|
subject_token: string;
|
|
@@ -14,20 +14,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
|
|
17
|
+
username?: string | undefined;
|
|
18
18
|
response_type?: AuthorizationResponseType | undefined;
|
|
19
19
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
20
|
scope?: string | undefined;
|
|
21
|
-
|
|
21
|
+
audience?: string | undefined;
|
|
22
22
|
state?: string | undefined;
|
|
23
|
-
nonce?: string | undefined;
|
|
24
23
|
prompt?: string | undefined;
|
|
25
|
-
act_as?: string | undefined;
|
|
26
|
-
redirect_uri?: string | undefined;
|
|
27
24
|
organization?: string | undefined;
|
|
25
|
+
ui_locales?: string | undefined;
|
|
26
|
+
redirect_uri?: string | undefined;
|
|
27
|
+
act_as?: string | undefined;
|
|
28
|
+
nonce?: string | undefined;
|
|
28
29
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
30
|
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
|
-
|
|
53
|
+
username?: string | undefined;
|
|
54
54
|
response_type?: AuthorizationResponseType | undefined;
|
|
55
55
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
56
|
scope?: string | undefined;
|
|
57
|
-
|
|
57
|
+
audience?: string | undefined;
|
|
58
58
|
state?: string | undefined;
|
|
59
|
-
nonce?: string | undefined;
|
|
60
59
|
prompt?: string | undefined;
|
|
61
|
-
act_as?: string | undefined;
|
|
62
|
-
redirect_uri?: string | undefined;
|
|
63
60
|
organization?: string | undefined;
|
|
61
|
+
ui_locales?: string | undefined;
|
|
62
|
+
redirect_uri?: string | undefined;
|
|
63
|
+
act_as?: string | undefined;
|
|
64
|
+
nonce?: string | undefined;
|
|
64
65
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
66
|
code_challenge?: string | undefined;
|
|
66
|
-
ui_locales?: 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
|
};
|
|
@@ -45,19 +45,19 @@ export declare const revokeRoutes: OpenAPIHono<{
|
|
|
45
45
|
error_description?: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
outputFormat: "json";
|
|
48
|
-
status:
|
|
48
|
+
status: 401;
|
|
49
49
|
} | {
|
|
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
|
};
|
|
@@ -67,7 +67,7 @@ export declare const revokeRoutes: OpenAPIHono<{
|
|
|
67
67
|
error_description?: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
outputFormat: "json";
|
|
70
|
-
status:
|
|
70
|
+
status: 400;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
}, "/">;
|
|
@@ -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
|
} | {
|
|
45
45
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
46
46
|
subject_token: string;
|
|
@@ -87,7 +87,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
87
87
|
client_id: string;
|
|
88
88
|
username: string;
|
|
89
89
|
otp: string;
|
|
90
|
-
realm: "
|
|
90
|
+
realm: "email" | "sms";
|
|
91
91
|
} | {
|
|
92
92
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
93
93
|
subject_token: string;
|
|
@@ -139,7 +139,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
139
139
|
client_id: string;
|
|
140
140
|
username: string;
|
|
141
141
|
otp: string;
|
|
142
|
-
realm: "
|
|
142
|
+
realm: "email" | "sms";
|
|
143
143
|
} | {
|
|
144
144
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
145
145
|
subject_token: string;
|
|
@@ -186,7 +186,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
186
186
|
client_id: string;
|
|
187
187
|
username: string;
|
|
188
188
|
otp: string;
|
|
189
|
-
realm: "
|
|
189
|
+
realm: "email" | "sms";
|
|
190
190
|
} | {
|
|
191
191
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
192
192
|
subject_token: string;
|
|
@@ -201,16 +201,11 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
output: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
expires_in: number;
|
|
207
|
-
id_token?: string | undefined;
|
|
208
|
-
scope?: string | undefined;
|
|
209
|
-
state?: string | undefined;
|
|
210
|
-
refresh_token?: string | undefined;
|
|
204
|
+
error: string;
|
|
205
|
+
error_description?: string | undefined;
|
|
211
206
|
};
|
|
212
207
|
outputFormat: "json";
|
|
213
|
-
status:
|
|
208
|
+
status: 401;
|
|
214
209
|
} | {
|
|
215
210
|
input: {
|
|
216
211
|
form: {
|
|
@@ -246,7 +241,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
246
241
|
client_id: string;
|
|
247
242
|
username: string;
|
|
248
243
|
otp: string;
|
|
249
|
-
realm: "
|
|
244
|
+
realm: "email" | "sms";
|
|
250
245
|
} | {
|
|
251
246
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
252
247
|
subject_token: string;
|
|
@@ -293,7 +288,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
293
288
|
client_id: string;
|
|
294
289
|
username: string;
|
|
295
290
|
otp: string;
|
|
296
|
-
realm: "
|
|
291
|
+
realm: "email" | "sms";
|
|
297
292
|
} | {
|
|
298
293
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
299
294
|
subject_token: string;
|
|
@@ -308,11 +303,16 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
308
303
|
};
|
|
309
304
|
};
|
|
310
305
|
output: {
|
|
311
|
-
|
|
312
|
-
|
|
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;
|
|
313
313
|
};
|
|
314
314
|
outputFormat: "json";
|
|
315
|
-
status:
|
|
315
|
+
status: 200;
|
|
316
316
|
} | {
|
|
317
317
|
input: {
|
|
318
318
|
form: {
|
|
@@ -348,7 +348,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
348
348
|
client_id: string;
|
|
349
349
|
username: string;
|
|
350
350
|
otp: string;
|
|
351
|
-
realm: "
|
|
351
|
+
realm: "email" | "sms";
|
|
352
352
|
} | {
|
|
353
353
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
354
354
|
subject_token: string;
|
|
@@ -395,7 +395,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
395
395
|
client_id: string;
|
|
396
396
|
username: string;
|
|
397
397
|
otp: string;
|
|
398
|
-
realm: "
|
|
398
|
+
realm: "email" | "sms";
|
|
399
399
|
} | {
|
|
400
400
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
401
401
|
subject_token: string;
|
|
@@ -414,7 +414,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
414
414
|
error_description?: string | undefined;
|
|
415
415
|
};
|
|
416
416
|
outputFormat: "json";
|
|
417
|
-
status:
|
|
417
|
+
status: 400;
|
|
418
418
|
} | {
|
|
419
419
|
input: {
|
|
420
420
|
form: {
|
|
@@ -450,7 +450,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
450
450
|
client_id: string;
|
|
451
451
|
username: string;
|
|
452
452
|
otp: string;
|
|
453
|
-
realm: "
|
|
453
|
+
realm: "email" | "sms";
|
|
454
454
|
} | {
|
|
455
455
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
456
456
|
subject_token: string;
|
|
@@ -497,7 +497,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
497
497
|
client_id: string;
|
|
498
498
|
username: string;
|
|
499
499
|
otp: string;
|
|
500
|
-
realm: "
|
|
500
|
+
realm: "email" | "sms";
|
|
501
501
|
} | {
|
|
502
502
|
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
503
503
|
subject_token: string;
|
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "
|
|
40
|
+
type: "email" | "push" | "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;
|
|
@@ -409,7 +409,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
409
409
|
} & {
|
|
410
410
|
json: {
|
|
411
411
|
body?: string | undefined;
|
|
412
|
-
screen?: "
|
|
412
|
+
screen?: "password" | "identifier" | "signup" | "login" | undefined;
|
|
413
413
|
branding?: {
|
|
414
414
|
colors?: {
|
|
415
415
|
primary: string;
|
|
@@ -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;
|
|
@@ -180,7 +180,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
180
180
|
addons?: {
|
|
181
181
|
[x: string]: any;
|
|
182
182
|
} | undefined;
|
|
183
|
-
token_endpoint_auth_method?: "
|
|
183
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
184
184
|
client_metadata?: {
|
|
185
185
|
[x: string]: string;
|
|
186
186
|
} | undefined;
|
|
@@ -282,7 +282,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
282
282
|
addons?: {
|
|
283
283
|
[x: string]: any;
|
|
284
284
|
} | undefined;
|
|
285
|
-
token_endpoint_auth_method?: "
|
|
285
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
286
286
|
client_metadata?: {
|
|
287
287
|
[x: string]: string;
|
|
288
288
|
} | undefined;
|
|
@@ -399,7 +399,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
399
399
|
addons?: {
|
|
400
400
|
[x: string]: any;
|
|
401
401
|
} | undefined;
|
|
402
|
-
token_endpoint_auth_method?: "
|
|
402
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
403
403
|
client_metadata?: {
|
|
404
404
|
[x: string]: string;
|
|
405
405
|
} | undefined;
|
|
@@ -517,7 +517,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
517
517
|
custom_login_page_preview?: string | undefined;
|
|
518
518
|
form_template?: string | undefined;
|
|
519
519
|
addons?: Record<string, any> | undefined;
|
|
520
|
-
token_endpoint_auth_method?: "
|
|
520
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
521
521
|
client_metadata?: Record<string, string> | undefined;
|
|
522
522
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
523
523
|
mobile?: Record<string, any> | undefined;
|
|
@@ -603,7 +603,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
603
603
|
addons?: {
|
|
604
604
|
[x: string]: any;
|
|
605
605
|
} | undefined;
|
|
606
|
-
token_endpoint_auth_method?: "
|
|
606
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
607
607
|
client_metadata?: {
|
|
608
608
|
[x: string]: string;
|
|
609
609
|
} | undefined;
|
|
@@ -700,7 +700,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
700
700
|
custom_login_page_preview?: string | undefined;
|
|
701
701
|
form_template?: string | undefined;
|
|
702
702
|
addons?: Record<string, any> | undefined;
|
|
703
|
-
token_endpoint_auth_method?: "
|
|
703
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
704
704
|
client_metadata?: Record<string, string> | undefined;
|
|
705
705
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
706
706
|
mobile?: Record<string, any> | undefined;
|
|
@@ -786,7 +786,7 @@ export declare const clientRoutes: OpenAPIHono<{
|
|
|
786
786
|
addons?: {
|
|
787
787
|
[x: string]: any;
|
|
788
788
|
} | undefined;
|
|
789
|
-
token_endpoint_auth_method?: "
|
|
789
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
790
790
|
client_metadata?: {
|
|
791
791
|
[x: string]: string;
|
|
792
792
|
} | undefined;
|