authhero 5.19.0 → 5.20.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 +2701 -107
- package/dist/authhero.d.ts +381 -214
- package/dist/authhero.mjs +7273 -6982
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/common.d.ts +8 -0
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/authentication-flows/token-exchange.d.ts +19 -0
- package/dist/types/emails/defaults/BlockedAccount.d.ts +1 -0
- package/dist/types/emails/defaults/ChangePassword.d.ts +6 -0
- package/dist/types/emails/defaults/EnrollmentEmail.d.ts +1 -0
- package/dist/types/emails/defaults/MfaOobCode.d.ts +1 -0
- package/dist/types/emails/defaults/PasswordReset.d.ts +5 -0
- package/dist/types/emails/defaults/StolenCredentials.d.ts +1 -0
- package/dist/types/emails/index.d.ts +21 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/scopes-permissions.d.ts +1 -1
- package/dist/types/index.d.ts +381 -214
- package/dist/types/routes/auth-api/index.d.ts +137 -27
- package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
- 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 +120 -10
- package/dist/types/routes/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +4 -4
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +7 -7
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +88 -31
- 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 +244 -187
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/types/GrantFlowResult.d.ts +8 -0
- package/dist/types/utils/jwks.d.ts +2 -2
- package/dist/types/utils/jwt.d.ts +4 -0
- package/package.json +5 -5
|
@@ -288,7 +288,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
288
288
|
scope?: string | undefined;
|
|
289
289
|
grant_types?: string[] | undefined;
|
|
290
290
|
response_types?: string[] | undefined;
|
|
291
|
-
token_endpoint_auth_method?: "none" | "
|
|
291
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
292
292
|
jwks_uri?: string | undefined;
|
|
293
293
|
jwks?: Record<string, unknown> | undefined;
|
|
294
294
|
software_id?: string | undefined;
|
|
@@ -377,7 +377,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
377
377
|
scope?: string | undefined;
|
|
378
378
|
grant_types?: string[] | undefined;
|
|
379
379
|
response_types?: string[] | undefined;
|
|
380
|
-
token_endpoint_auth_method?: "none" | "
|
|
380
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
381
381
|
jwks_uri?: string | undefined;
|
|
382
382
|
jwks?: Record<string, unknown> | undefined;
|
|
383
383
|
software_id?: string | undefined;
|
|
@@ -725,14 +725,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
725
725
|
authParams: {
|
|
726
726
|
username?: string | undefined;
|
|
727
727
|
state?: string | undefined;
|
|
728
|
-
|
|
728
|
+
act_as?: string | undefined;
|
|
729
729
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
730
730
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
731
|
-
|
|
731
|
+
redirect_uri?: string | undefined;
|
|
732
|
+
audience?: string | undefined;
|
|
732
733
|
organization?: string | undefined;
|
|
733
734
|
nonce?: string | undefined;
|
|
734
|
-
|
|
735
|
-
act_as?: string | undefined;
|
|
735
|
+
scope?: string | undefined;
|
|
736
736
|
prompt?: string | undefined;
|
|
737
737
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
738
738
|
code_challenge?: string | undefined;
|
|
@@ -761,14 +761,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
761
761
|
authParams: {
|
|
762
762
|
username?: string | undefined;
|
|
763
763
|
state?: string | undefined;
|
|
764
|
-
|
|
764
|
+
act_as?: string | undefined;
|
|
765
765
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
766
766
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
767
|
-
|
|
767
|
+
redirect_uri?: string | undefined;
|
|
768
|
+
audience?: string | undefined;
|
|
768
769
|
organization?: string | undefined;
|
|
769
770
|
nonce?: string | undefined;
|
|
770
|
-
|
|
771
|
-
act_as?: string | undefined;
|
|
771
|
+
scope?: string | undefined;
|
|
772
772
|
prompt?: string | undefined;
|
|
773
773
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
774
774
|
code_challenge?: string | undefined;
|
|
@@ -903,14 +903,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
903
903
|
input: {
|
|
904
904
|
form: {
|
|
905
905
|
token: string;
|
|
906
|
-
token_type_hint?: "
|
|
906
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
907
907
|
client_id?: string | undefined;
|
|
908
908
|
client_secret?: string | undefined;
|
|
909
909
|
};
|
|
910
910
|
} & {
|
|
911
911
|
json: {
|
|
912
912
|
token: string;
|
|
913
|
-
token_type_hint?: "
|
|
913
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
914
914
|
client_id?: string | undefined;
|
|
915
915
|
client_secret?: string | undefined;
|
|
916
916
|
};
|
|
@@ -922,14 +922,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
922
922
|
input: {
|
|
923
923
|
form: {
|
|
924
924
|
token: string;
|
|
925
|
-
token_type_hint?: "
|
|
925
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
926
926
|
client_id?: string | undefined;
|
|
927
927
|
client_secret?: string | undefined;
|
|
928
928
|
};
|
|
929
929
|
} & {
|
|
930
930
|
json: {
|
|
931
931
|
token: string;
|
|
932
|
-
token_type_hint?: "
|
|
932
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
933
933
|
client_id?: string | undefined;
|
|
934
934
|
client_secret?: string | undefined;
|
|
935
935
|
};
|
|
@@ -944,14 +944,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
944
944
|
input: {
|
|
945
945
|
form: {
|
|
946
946
|
token: string;
|
|
947
|
-
token_type_hint?: "
|
|
947
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
948
948
|
client_id?: string | undefined;
|
|
949
949
|
client_secret?: string | undefined;
|
|
950
950
|
};
|
|
951
951
|
} & {
|
|
952
952
|
json: {
|
|
953
953
|
token: string;
|
|
954
|
-
token_type_hint?: "
|
|
954
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
955
955
|
client_id?: string | undefined;
|
|
956
956
|
client_secret?: string | undefined;
|
|
957
957
|
};
|
|
@@ -1001,7 +1001,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1001
1001
|
client_id: string;
|
|
1002
1002
|
username: string;
|
|
1003
1003
|
otp: string;
|
|
1004
|
-
realm: "
|
|
1004
|
+
realm: "email" | "sms";
|
|
1005
|
+
} | {
|
|
1006
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1007
|
+
subject_token: string;
|
|
1008
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1009
|
+
organization: string;
|
|
1010
|
+
audience?: string | undefined;
|
|
1011
|
+
scope?: string | undefined;
|
|
1012
|
+
client_id?: string | undefined;
|
|
1013
|
+
client_secret?: string | undefined;
|
|
1014
|
+
client_assertion?: string | undefined;
|
|
1015
|
+
client_assertion_type?: string | undefined;
|
|
1005
1016
|
};
|
|
1006
1017
|
} & {
|
|
1007
1018
|
json: {
|
|
@@ -1037,7 +1048,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1037
1048
|
client_id: string;
|
|
1038
1049
|
username: string;
|
|
1039
1050
|
otp: string;
|
|
1040
|
-
realm: "
|
|
1051
|
+
realm: "email" | "sms";
|
|
1052
|
+
} | {
|
|
1053
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1054
|
+
subject_token: string;
|
|
1055
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1056
|
+
organization: string;
|
|
1057
|
+
audience?: string | undefined;
|
|
1058
|
+
scope?: string | undefined;
|
|
1059
|
+
client_id?: string | undefined;
|
|
1060
|
+
client_secret?: string | undefined;
|
|
1061
|
+
client_assertion?: string | undefined;
|
|
1062
|
+
client_assertion_type?: string | undefined;
|
|
1041
1063
|
};
|
|
1042
1064
|
};
|
|
1043
1065
|
output: {};
|
|
@@ -1078,7 +1100,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1078
1100
|
client_id: string;
|
|
1079
1101
|
username: string;
|
|
1080
1102
|
otp: string;
|
|
1081
|
-
realm: "
|
|
1103
|
+
realm: "email" | "sms";
|
|
1104
|
+
} | {
|
|
1105
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1106
|
+
subject_token: string;
|
|
1107
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1108
|
+
organization: string;
|
|
1109
|
+
audience?: string | undefined;
|
|
1110
|
+
scope?: string | undefined;
|
|
1111
|
+
client_id?: string | undefined;
|
|
1112
|
+
client_secret?: string | undefined;
|
|
1113
|
+
client_assertion?: string | undefined;
|
|
1114
|
+
client_assertion_type?: string | undefined;
|
|
1082
1115
|
};
|
|
1083
1116
|
} & {
|
|
1084
1117
|
json: {
|
|
@@ -1114,7 +1147,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1114
1147
|
client_id: string;
|
|
1115
1148
|
username: string;
|
|
1116
1149
|
otp: string;
|
|
1117
|
-
realm: "
|
|
1150
|
+
realm: "email" | "sms";
|
|
1151
|
+
} | {
|
|
1152
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1153
|
+
subject_token: string;
|
|
1154
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1155
|
+
organization: string;
|
|
1156
|
+
audience?: string | undefined;
|
|
1157
|
+
scope?: string | undefined;
|
|
1158
|
+
client_id?: string | undefined;
|
|
1159
|
+
client_secret?: string | undefined;
|
|
1160
|
+
client_assertion?: string | undefined;
|
|
1161
|
+
client_assertion_type?: string | undefined;
|
|
1118
1162
|
};
|
|
1119
1163
|
};
|
|
1120
1164
|
output: {
|
|
@@ -1163,7 +1207,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1163
1207
|
client_id: string;
|
|
1164
1208
|
username: string;
|
|
1165
1209
|
otp: string;
|
|
1166
|
-
realm: "
|
|
1210
|
+
realm: "email" | "sms";
|
|
1211
|
+
} | {
|
|
1212
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1213
|
+
subject_token: string;
|
|
1214
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1215
|
+
organization: string;
|
|
1216
|
+
audience?: string | undefined;
|
|
1217
|
+
scope?: string | undefined;
|
|
1218
|
+
client_id?: string | undefined;
|
|
1219
|
+
client_secret?: string | undefined;
|
|
1220
|
+
client_assertion?: string | undefined;
|
|
1221
|
+
client_assertion_type?: string | undefined;
|
|
1167
1222
|
};
|
|
1168
1223
|
} & {
|
|
1169
1224
|
json: {
|
|
@@ -1199,7 +1254,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1199
1254
|
client_id: string;
|
|
1200
1255
|
username: string;
|
|
1201
1256
|
otp: string;
|
|
1202
|
-
realm: "
|
|
1257
|
+
realm: "email" | "sms";
|
|
1258
|
+
} | {
|
|
1259
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1260
|
+
subject_token: string;
|
|
1261
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1262
|
+
organization: string;
|
|
1263
|
+
audience?: string | undefined;
|
|
1264
|
+
scope?: string | undefined;
|
|
1265
|
+
client_id?: string | undefined;
|
|
1266
|
+
client_secret?: string | undefined;
|
|
1267
|
+
client_assertion?: string | undefined;
|
|
1268
|
+
client_assertion_type?: string | undefined;
|
|
1203
1269
|
};
|
|
1204
1270
|
};
|
|
1205
1271
|
output: {
|
|
@@ -1243,7 +1309,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1243
1309
|
client_id: string;
|
|
1244
1310
|
username: string;
|
|
1245
1311
|
otp: string;
|
|
1246
|
-
realm: "
|
|
1312
|
+
realm: "email" | "sms";
|
|
1313
|
+
} | {
|
|
1314
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1315
|
+
subject_token: string;
|
|
1316
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1317
|
+
organization: string;
|
|
1318
|
+
audience?: string | undefined;
|
|
1319
|
+
scope?: string | undefined;
|
|
1320
|
+
client_id?: string | undefined;
|
|
1321
|
+
client_secret?: string | undefined;
|
|
1322
|
+
client_assertion?: string | undefined;
|
|
1323
|
+
client_assertion_type?: string | undefined;
|
|
1247
1324
|
};
|
|
1248
1325
|
} & {
|
|
1249
1326
|
json: {
|
|
@@ -1279,7 +1356,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1279
1356
|
client_id: string;
|
|
1280
1357
|
username: string;
|
|
1281
1358
|
otp: string;
|
|
1282
|
-
realm: "
|
|
1359
|
+
realm: "email" | "sms";
|
|
1360
|
+
} | {
|
|
1361
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1362
|
+
subject_token: string;
|
|
1363
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1364
|
+
organization: string;
|
|
1365
|
+
audience?: string | undefined;
|
|
1366
|
+
scope?: string | undefined;
|
|
1367
|
+
client_id?: string | undefined;
|
|
1368
|
+
client_secret?: string | undefined;
|
|
1369
|
+
client_assertion?: string | undefined;
|
|
1370
|
+
client_assertion_type?: string | undefined;
|
|
1283
1371
|
};
|
|
1284
1372
|
};
|
|
1285
1373
|
output: {
|
|
@@ -1323,7 +1411,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1323
1411
|
client_id: string;
|
|
1324
1412
|
username: string;
|
|
1325
1413
|
otp: string;
|
|
1326
|
-
realm: "
|
|
1414
|
+
realm: "email" | "sms";
|
|
1415
|
+
} | {
|
|
1416
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1417
|
+
subject_token: string;
|
|
1418
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1419
|
+
organization: string;
|
|
1420
|
+
audience?: string | undefined;
|
|
1421
|
+
scope?: string | undefined;
|
|
1422
|
+
client_id?: string | undefined;
|
|
1423
|
+
client_secret?: string | undefined;
|
|
1424
|
+
client_assertion?: string | undefined;
|
|
1425
|
+
client_assertion_type?: string | undefined;
|
|
1327
1426
|
};
|
|
1328
1427
|
} & {
|
|
1329
1428
|
json: {
|
|
@@ -1359,7 +1458,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1359
1458
|
client_id: string;
|
|
1360
1459
|
username: string;
|
|
1361
1460
|
otp: string;
|
|
1362
|
-
realm: "
|
|
1461
|
+
realm: "email" | "sms";
|
|
1462
|
+
} | {
|
|
1463
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1464
|
+
subject_token: string;
|
|
1465
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
1466
|
+
organization: string;
|
|
1467
|
+
audience?: string | undefined;
|
|
1468
|
+
scope?: string | undefined;
|
|
1469
|
+
client_id?: string | undefined;
|
|
1470
|
+
client_secret?: string | undefined;
|
|
1471
|
+
client_assertion?: string | undefined;
|
|
1472
|
+
client_assertion_type?: string | undefined;
|
|
1363
1473
|
};
|
|
1364
1474
|
};
|
|
1365
1475
|
output: {
|
|
@@ -1378,7 +1488,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1378
1488
|
keys: {
|
|
1379
1489
|
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
1380
1490
|
kid: string;
|
|
1381
|
-
kty: "
|
|
1491
|
+
kty: "RSA" | "EC" | "oct";
|
|
1382
1492
|
use?: "sig" | "enc" | undefined;
|
|
1383
1493
|
n?: string | undefined;
|
|
1384
1494
|
e?: string | undefined;
|
|
@@ -16,14 +16,14 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
16
16
|
authParams: {
|
|
17
17
|
username?: string | undefined;
|
|
18
18
|
state?: string | undefined;
|
|
19
|
-
|
|
19
|
+
act_as?: string | undefined;
|
|
20
20
|
response_type?: AuthorizationResponseType | undefined;
|
|
21
21
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
22
|
-
|
|
22
|
+
redirect_uri?: string | undefined;
|
|
23
|
+
audience?: string | undefined;
|
|
23
24
|
organization?: string | undefined;
|
|
24
25
|
nonce?: string | undefined;
|
|
25
|
-
|
|
26
|
-
act_as?: string | undefined;
|
|
26
|
+
scope?: string | undefined;
|
|
27
27
|
prompt?: string | undefined;
|
|
28
28
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
29
|
code_challenge?: string | undefined;
|
|
@@ -52,14 +52,14 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
52
52
|
authParams: {
|
|
53
53
|
username?: string | undefined;
|
|
54
54
|
state?: string | undefined;
|
|
55
|
-
|
|
55
|
+
act_as?: string | undefined;
|
|
56
56
|
response_type?: AuthorizationResponseType | undefined;
|
|
57
57
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
58
|
-
|
|
58
|
+
redirect_uri?: string | undefined;
|
|
59
|
+
audience?: string | undefined;
|
|
59
60
|
organization?: string | undefined;
|
|
60
61
|
nonce?: string | undefined;
|
|
61
|
-
|
|
62
|
-
act_as?: string | undefined;
|
|
62
|
+
scope?: string | undefined;
|
|
63
63
|
prompt?: string | undefined;
|
|
64
64
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
65
|
code_challenge?: string | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const registerRoutes: OpenAPIHono<{
|
|
|
18
18
|
scope?: string | undefined;
|
|
19
19
|
grant_types?: string[] | undefined;
|
|
20
20
|
response_types?: string[] | undefined;
|
|
21
|
-
token_endpoint_auth_method?: "none" | "
|
|
21
|
+
token_endpoint_auth_method?: "none" | "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" | "
|
|
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?: "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,18 @@ 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
|
+
} | {
|
|
45
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
46
|
+
subject_token: string;
|
|
47
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
48
|
+
organization: string;
|
|
49
|
+
audience?: string | undefined;
|
|
50
|
+
scope?: string | undefined;
|
|
51
|
+
client_id?: string | undefined;
|
|
52
|
+
client_secret?: string | undefined;
|
|
53
|
+
client_assertion?: string | undefined;
|
|
54
|
+
client_assertion_type?: string | undefined;
|
|
44
55
|
};
|
|
45
56
|
} & {
|
|
46
57
|
json: {
|
|
@@ -76,7 +87,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
76
87
|
client_id: string;
|
|
77
88
|
username: string;
|
|
78
89
|
otp: string;
|
|
79
|
-
realm: "
|
|
90
|
+
realm: "email" | "sms";
|
|
91
|
+
} | {
|
|
92
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
93
|
+
subject_token: string;
|
|
94
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
95
|
+
organization: string;
|
|
96
|
+
audience?: string | undefined;
|
|
97
|
+
scope?: string | undefined;
|
|
98
|
+
client_id?: string | undefined;
|
|
99
|
+
client_secret?: string | undefined;
|
|
100
|
+
client_assertion?: string | undefined;
|
|
101
|
+
client_assertion_type?: string | undefined;
|
|
80
102
|
};
|
|
81
103
|
};
|
|
82
104
|
output: {};
|
|
@@ -117,7 +139,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
117
139
|
client_id: string;
|
|
118
140
|
username: string;
|
|
119
141
|
otp: string;
|
|
120
|
-
realm: "
|
|
142
|
+
realm: "email" | "sms";
|
|
143
|
+
} | {
|
|
144
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
145
|
+
subject_token: string;
|
|
146
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
147
|
+
organization: string;
|
|
148
|
+
audience?: string | undefined;
|
|
149
|
+
scope?: string | undefined;
|
|
150
|
+
client_id?: string | undefined;
|
|
151
|
+
client_secret?: string | undefined;
|
|
152
|
+
client_assertion?: string | undefined;
|
|
153
|
+
client_assertion_type?: string | undefined;
|
|
121
154
|
};
|
|
122
155
|
} & {
|
|
123
156
|
json: {
|
|
@@ -153,7 +186,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
153
186
|
client_id: string;
|
|
154
187
|
username: string;
|
|
155
188
|
otp: string;
|
|
156
|
-
realm: "
|
|
189
|
+
realm: "email" | "sms";
|
|
190
|
+
} | {
|
|
191
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
192
|
+
subject_token: string;
|
|
193
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
194
|
+
organization: string;
|
|
195
|
+
audience?: string | undefined;
|
|
196
|
+
scope?: string | undefined;
|
|
197
|
+
client_id?: string | undefined;
|
|
198
|
+
client_secret?: string | undefined;
|
|
199
|
+
client_assertion?: string | undefined;
|
|
200
|
+
client_assertion_type?: string | undefined;
|
|
157
201
|
};
|
|
158
202
|
};
|
|
159
203
|
output: {
|
|
@@ -202,7 +246,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
202
246
|
client_id: string;
|
|
203
247
|
username: string;
|
|
204
248
|
otp: string;
|
|
205
|
-
realm: "
|
|
249
|
+
realm: "email" | "sms";
|
|
250
|
+
} | {
|
|
251
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
252
|
+
subject_token: string;
|
|
253
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
254
|
+
organization: string;
|
|
255
|
+
audience?: string | undefined;
|
|
256
|
+
scope?: string | undefined;
|
|
257
|
+
client_id?: string | undefined;
|
|
258
|
+
client_secret?: string | undefined;
|
|
259
|
+
client_assertion?: string | undefined;
|
|
260
|
+
client_assertion_type?: string | undefined;
|
|
206
261
|
};
|
|
207
262
|
} & {
|
|
208
263
|
json: {
|
|
@@ -238,7 +293,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
238
293
|
client_id: string;
|
|
239
294
|
username: string;
|
|
240
295
|
otp: string;
|
|
241
|
-
realm: "
|
|
296
|
+
realm: "email" | "sms";
|
|
297
|
+
} | {
|
|
298
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
299
|
+
subject_token: string;
|
|
300
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
301
|
+
organization: string;
|
|
302
|
+
audience?: string | undefined;
|
|
303
|
+
scope?: string | undefined;
|
|
304
|
+
client_id?: string | undefined;
|
|
305
|
+
client_secret?: string | undefined;
|
|
306
|
+
client_assertion?: string | undefined;
|
|
307
|
+
client_assertion_type?: string | undefined;
|
|
242
308
|
};
|
|
243
309
|
};
|
|
244
310
|
output: {
|
|
@@ -282,7 +348,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
282
348
|
client_id: string;
|
|
283
349
|
username: string;
|
|
284
350
|
otp: string;
|
|
285
|
-
realm: "
|
|
351
|
+
realm: "email" | "sms";
|
|
352
|
+
} | {
|
|
353
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
354
|
+
subject_token: string;
|
|
355
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
356
|
+
organization: string;
|
|
357
|
+
audience?: string | undefined;
|
|
358
|
+
scope?: string | undefined;
|
|
359
|
+
client_id?: string | undefined;
|
|
360
|
+
client_secret?: string | undefined;
|
|
361
|
+
client_assertion?: string | undefined;
|
|
362
|
+
client_assertion_type?: string | undefined;
|
|
286
363
|
};
|
|
287
364
|
} & {
|
|
288
365
|
json: {
|
|
@@ -318,7 +395,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
318
395
|
client_id: string;
|
|
319
396
|
username: string;
|
|
320
397
|
otp: string;
|
|
321
|
-
realm: "
|
|
398
|
+
realm: "email" | "sms";
|
|
399
|
+
} | {
|
|
400
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
401
|
+
subject_token: string;
|
|
402
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
403
|
+
organization: string;
|
|
404
|
+
audience?: string | undefined;
|
|
405
|
+
scope?: string | undefined;
|
|
406
|
+
client_id?: string | undefined;
|
|
407
|
+
client_secret?: string | undefined;
|
|
408
|
+
client_assertion?: string | undefined;
|
|
409
|
+
client_assertion_type?: string | undefined;
|
|
322
410
|
};
|
|
323
411
|
};
|
|
324
412
|
output: {
|
|
@@ -362,7 +450,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
362
450
|
client_id: string;
|
|
363
451
|
username: string;
|
|
364
452
|
otp: string;
|
|
365
|
-
realm: "
|
|
453
|
+
realm: "email" | "sms";
|
|
454
|
+
} | {
|
|
455
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
456
|
+
subject_token: string;
|
|
457
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
458
|
+
organization: string;
|
|
459
|
+
audience?: string | undefined;
|
|
460
|
+
scope?: string | undefined;
|
|
461
|
+
client_id?: string | undefined;
|
|
462
|
+
client_secret?: string | undefined;
|
|
463
|
+
client_assertion?: string | undefined;
|
|
464
|
+
client_assertion_type?: string | undefined;
|
|
366
465
|
};
|
|
367
466
|
} & {
|
|
368
467
|
json: {
|
|
@@ -398,7 +497,18 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
398
497
|
client_id: string;
|
|
399
498
|
username: string;
|
|
400
499
|
otp: string;
|
|
401
|
-
realm: "
|
|
500
|
+
realm: "email" | "sms";
|
|
501
|
+
} | {
|
|
502
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
503
|
+
subject_token: string;
|
|
504
|
+
subject_token_type: "urn:ietf:params:oauth:token-type:access_token";
|
|
505
|
+
organization: string;
|
|
506
|
+
audience?: string | undefined;
|
|
507
|
+
scope?: string | undefined;
|
|
508
|
+
client_id?: string | undefined;
|
|
509
|
+
client_secret?: string | undefined;
|
|
510
|
+
client_assertion?: string | undefined;
|
|
511
|
+
client_assertion_type?: string | undefined;
|
|
402
512
|
};
|
|
403
513
|
};
|
|
404
514
|
output: {
|
|
@@ -10,7 +10,7 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
|
|
|
10
10
|
keys: {
|
|
11
11
|
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
12
12
|
kid: string;
|
|
13
|
-
kty: "
|
|
13
|
+
kty: "RSA" | "EC" | "oct";
|
|
14
14
|
use?: "sig" | "enc" | undefined;
|
|
15
15
|
n?: string | undefined;
|
|
16
16
|
e?: string | undefined;
|