authhero 9.14.0 → 9.15.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-1471c0f2.entry.js → p-1eb7f287.entry.js} +1 -1
- package/dist/assets/u/widget/p-398d72df.entry.js +1 -0
- package/dist/authhero.cjs +144 -144
- package/dist/authhero.d.ts +280 -129
- package/dist/authhero.mjs +13812 -12841
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/custom-token-exchange.d.ts +21 -0
- package/dist/types/authentication-flows/passwordless.d.ts +6 -3
- package/dist/types/authentication-flows/token-exchange.d.ts +19 -0
- package/dist/types/generated/locale-types.d.ts +2 -0
- package/dist/types/helpers/client-assertion-replay.d.ts +17 -0
- package/dist/types/helpers/client-keys.d.ts +9 -0
- package/dist/types/helpers/client.d.ts +3 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/organization-branding.d.ts +18 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/index.d.ts +277 -129
- package/dist/types/routes/auth-api/index.d.ts +156 -46
- 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 +132 -22
- package/dist/types/routes/auth-api/well-known.d.ts +2 -2
- 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/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +32 -8
- 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 +14 -0
- 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 +135 -97
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- 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/tenants.d.ts +6 -6
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +321 -0
- package/dist/types/routes/management-api/users.d.ts +11 -11
- package/dist/types/routes/universal-login/common.d.ts +6 -0
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- 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/screens/login-otp.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/types.d.ts +6 -0
- 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/utils/jwks.d.ts +4 -4
- package/dist/types/utils/jws-verify.d.ts +46 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-c2744f87.entry.js +0 -1
|
@@ -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?: "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?: "
|
|
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;
|
|
@@ -741,19 +741,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
741
741
|
email: string;
|
|
742
742
|
send: "code" | "link";
|
|
743
743
|
authParams: {
|
|
744
|
-
|
|
745
|
-
state?: string | undefined;
|
|
746
|
-
username?: string | undefined;
|
|
744
|
+
audience?: string | undefined;
|
|
747
745
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
748
746
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
749
|
-
|
|
747
|
+
scope?: string | undefined;
|
|
748
|
+
username?: string | undefined;
|
|
749
|
+
state?: string | undefined;
|
|
750
|
+
code_challenge?: string | undefined;
|
|
751
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
750
752
|
redirect_uri?: string | undefined;
|
|
751
753
|
nonce?: string | undefined;
|
|
752
754
|
act_as?: string | undefined;
|
|
753
755
|
organization?: string | undefined;
|
|
754
756
|
prompt?: string | undefined;
|
|
755
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
756
|
-
code_challenge?: string | undefined;
|
|
757
757
|
ui_locales?: string | undefined;
|
|
758
758
|
max_age?: number | undefined;
|
|
759
759
|
acr_values?: string | undefined;
|
|
@@ -777,19 +777,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
777
777
|
phone_number: string;
|
|
778
778
|
send: "code" | "link";
|
|
779
779
|
authParams: {
|
|
780
|
-
|
|
781
|
-
state?: string | undefined;
|
|
782
|
-
username?: string | undefined;
|
|
780
|
+
audience?: string | undefined;
|
|
783
781
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
784
782
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
785
|
-
|
|
783
|
+
scope?: string | undefined;
|
|
784
|
+
username?: string | undefined;
|
|
785
|
+
state?: string | undefined;
|
|
786
|
+
code_challenge?: string | undefined;
|
|
787
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
786
788
|
redirect_uri?: string | undefined;
|
|
787
789
|
nonce?: string | undefined;
|
|
788
790
|
act_as?: string | undefined;
|
|
789
791
|
organization?: string | undefined;
|
|
790
792
|
prompt?: string | undefined;
|
|
791
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
792
|
-
code_challenge?: string | undefined;
|
|
793
793
|
ui_locales?: string | undefined;
|
|
794
794
|
max_age?: number | undefined;
|
|
795
795
|
acr_values?: string | undefined;
|
|
@@ -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?: "refresh_token" | "access_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?: "refresh_token" | "access_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?: "refresh_token" | "access_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?: "refresh_token" | "access_token" | undefined;
|
|
951
951
|
client_id?: string | undefined;
|
|
952
952
|
client_secret?: string | undefined;
|
|
953
953
|
};
|
|
@@ -957,19 +957,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
957
957
|
error_description?: string | undefined;
|
|
958
958
|
};
|
|
959
959
|
outputFormat: "json";
|
|
960
|
-
status:
|
|
960
|
+
status: 400;
|
|
961
961
|
} | {
|
|
962
962
|
input: {
|
|
963
963
|
form: {
|
|
964
964
|
token: string;
|
|
965
|
-
token_type_hint?: "
|
|
965
|
+
token_type_hint?: "refresh_token" | "access_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?: "refresh_token" | "access_token" | undefined;
|
|
973
973
|
client_id?: string | undefined;
|
|
974
974
|
client_secret?: string | undefined;
|
|
975
975
|
};
|
|
@@ -979,7 +979,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
979
979
|
error_description?: string | undefined;
|
|
980
980
|
};
|
|
981
981
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
982
|
+
status: 401;
|
|
983
983
|
};
|
|
984
984
|
};
|
|
985
985
|
}, "/oauth/revoke"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -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: "sms" | "email";
|
|
1023
1023
|
scope?: string | undefined;
|
|
1024
1024
|
audience?: string | undefined;
|
|
1025
1025
|
} | {
|
|
@@ -1033,6 +1033,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1033
1033
|
client_secret?: string | undefined;
|
|
1034
1034
|
client_assertion?: string | undefined;
|
|
1035
1035
|
client_assertion_type?: string | undefined;
|
|
1036
|
+
} | {
|
|
1037
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1038
|
+
subject_token: string;
|
|
1039
|
+
subject_token_type: string;
|
|
1040
|
+
audience?: string | undefined;
|
|
1041
|
+
scope?: string | undefined;
|
|
1042
|
+
organization?: string | undefined;
|
|
1043
|
+
client_id?: string | undefined;
|
|
1044
|
+
client_secret?: string | undefined;
|
|
1045
|
+
client_assertion?: string | undefined;
|
|
1046
|
+
client_assertion_type?: string | undefined;
|
|
1036
1047
|
};
|
|
1037
1048
|
} & {
|
|
1038
1049
|
json: {
|
|
@@ -1068,7 +1079,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1068
1079
|
client_id: string;
|
|
1069
1080
|
username: string;
|
|
1070
1081
|
otp: string;
|
|
1071
|
-
realm: "
|
|
1082
|
+
realm: "sms" | "email";
|
|
1072
1083
|
scope?: string | undefined;
|
|
1073
1084
|
audience?: string | undefined;
|
|
1074
1085
|
} | {
|
|
@@ -1082,6 +1093,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1082
1093
|
client_secret?: string | undefined;
|
|
1083
1094
|
client_assertion?: string | undefined;
|
|
1084
1095
|
client_assertion_type?: string | undefined;
|
|
1096
|
+
} | {
|
|
1097
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1098
|
+
subject_token: string;
|
|
1099
|
+
subject_token_type: string;
|
|
1100
|
+
audience?: string | undefined;
|
|
1101
|
+
scope?: string | undefined;
|
|
1102
|
+
organization?: string | undefined;
|
|
1103
|
+
client_id?: string | undefined;
|
|
1104
|
+
client_secret?: string | undefined;
|
|
1105
|
+
client_assertion?: string | undefined;
|
|
1106
|
+
client_assertion_type?: string | undefined;
|
|
1085
1107
|
};
|
|
1086
1108
|
};
|
|
1087
1109
|
output: {};
|
|
@@ -1122,7 +1144,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1122
1144
|
client_id: string;
|
|
1123
1145
|
username: string;
|
|
1124
1146
|
otp: string;
|
|
1125
|
-
realm: "
|
|
1147
|
+
realm: "sms" | "email";
|
|
1126
1148
|
scope?: string | undefined;
|
|
1127
1149
|
audience?: string | undefined;
|
|
1128
1150
|
} | {
|
|
@@ -1136,6 +1158,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1136
1158
|
client_secret?: string | undefined;
|
|
1137
1159
|
client_assertion?: string | undefined;
|
|
1138
1160
|
client_assertion_type?: string | undefined;
|
|
1161
|
+
} | {
|
|
1162
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1163
|
+
subject_token: string;
|
|
1164
|
+
subject_token_type: string;
|
|
1165
|
+
audience?: string | undefined;
|
|
1166
|
+
scope?: string | undefined;
|
|
1167
|
+
organization?: string | undefined;
|
|
1168
|
+
client_id?: string | undefined;
|
|
1169
|
+
client_secret?: string | undefined;
|
|
1170
|
+
client_assertion?: string | undefined;
|
|
1171
|
+
client_assertion_type?: string | undefined;
|
|
1139
1172
|
};
|
|
1140
1173
|
} & {
|
|
1141
1174
|
json: {
|
|
@@ -1171,7 +1204,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1171
1204
|
client_id: string;
|
|
1172
1205
|
username: string;
|
|
1173
1206
|
otp: string;
|
|
1174
|
-
realm: "
|
|
1207
|
+
realm: "sms" | "email";
|
|
1175
1208
|
scope?: string | undefined;
|
|
1176
1209
|
audience?: string | undefined;
|
|
1177
1210
|
} | {
|
|
@@ -1185,14 +1218,30 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1185
1218
|
client_secret?: string | undefined;
|
|
1186
1219
|
client_assertion?: string | undefined;
|
|
1187
1220
|
client_assertion_type?: string | undefined;
|
|
1221
|
+
} | {
|
|
1222
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1223
|
+
subject_token: string;
|
|
1224
|
+
subject_token_type: string;
|
|
1225
|
+
audience?: string | undefined;
|
|
1226
|
+
scope?: string | undefined;
|
|
1227
|
+
organization?: string | undefined;
|
|
1228
|
+
client_id?: string | undefined;
|
|
1229
|
+
client_secret?: string | undefined;
|
|
1230
|
+
client_assertion?: string | undefined;
|
|
1231
|
+
client_assertion_type?: string | undefined;
|
|
1188
1232
|
};
|
|
1189
1233
|
};
|
|
1190
1234
|
output: {
|
|
1191
|
-
|
|
1192
|
-
|
|
1235
|
+
access_token: string;
|
|
1236
|
+
token_type: string;
|
|
1237
|
+
expires_in: number;
|
|
1238
|
+
id_token?: string | undefined;
|
|
1239
|
+
scope?: string | undefined;
|
|
1240
|
+
state?: string | undefined;
|
|
1241
|
+
refresh_token?: string | undefined;
|
|
1193
1242
|
};
|
|
1194
1243
|
outputFormat: "json";
|
|
1195
|
-
status:
|
|
1244
|
+
status: 200;
|
|
1196
1245
|
} | {
|
|
1197
1246
|
input: {
|
|
1198
1247
|
form: {
|
|
@@ -1228,7 +1277,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1228
1277
|
client_id: string;
|
|
1229
1278
|
username: string;
|
|
1230
1279
|
otp: string;
|
|
1231
|
-
realm: "
|
|
1280
|
+
realm: "sms" | "email";
|
|
1232
1281
|
scope?: string | undefined;
|
|
1233
1282
|
audience?: string | undefined;
|
|
1234
1283
|
} | {
|
|
@@ -1242,6 +1291,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1242
1291
|
client_secret?: string | undefined;
|
|
1243
1292
|
client_assertion?: string | undefined;
|
|
1244
1293
|
client_assertion_type?: string | undefined;
|
|
1294
|
+
} | {
|
|
1295
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1296
|
+
subject_token: string;
|
|
1297
|
+
subject_token_type: string;
|
|
1298
|
+
audience?: string | undefined;
|
|
1299
|
+
scope?: string | undefined;
|
|
1300
|
+
organization?: string | undefined;
|
|
1301
|
+
client_id?: string | undefined;
|
|
1302
|
+
client_secret?: string | undefined;
|
|
1303
|
+
client_assertion?: string | undefined;
|
|
1304
|
+
client_assertion_type?: string | undefined;
|
|
1245
1305
|
};
|
|
1246
1306
|
} & {
|
|
1247
1307
|
json: {
|
|
@@ -1277,7 +1337,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1277
1337
|
client_id: string;
|
|
1278
1338
|
username: string;
|
|
1279
1339
|
otp: string;
|
|
1280
|
-
realm: "
|
|
1340
|
+
realm: "sms" | "email";
|
|
1281
1341
|
scope?: string | undefined;
|
|
1282
1342
|
audience?: string | undefined;
|
|
1283
1343
|
} | {
|
|
@@ -1291,19 +1351,25 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1291
1351
|
client_secret?: string | undefined;
|
|
1292
1352
|
client_assertion?: string | undefined;
|
|
1293
1353
|
client_assertion_type?: string | undefined;
|
|
1354
|
+
} | {
|
|
1355
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1356
|
+
subject_token: string;
|
|
1357
|
+
subject_token_type: string;
|
|
1358
|
+
audience?: string | undefined;
|
|
1359
|
+
scope?: string | undefined;
|
|
1360
|
+
organization?: string | undefined;
|
|
1361
|
+
client_id?: string | undefined;
|
|
1362
|
+
client_secret?: string | undefined;
|
|
1363
|
+
client_assertion?: string | undefined;
|
|
1364
|
+
client_assertion_type?: string | undefined;
|
|
1294
1365
|
};
|
|
1295
1366
|
};
|
|
1296
1367
|
output: {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
expires_in: number;
|
|
1300
|
-
id_token?: string | undefined;
|
|
1301
|
-
scope?: string | undefined;
|
|
1302
|
-
state?: string | undefined;
|
|
1303
|
-
refresh_token?: string | undefined;
|
|
1368
|
+
error: string;
|
|
1369
|
+
error_description?: string | undefined;
|
|
1304
1370
|
};
|
|
1305
1371
|
outputFormat: "json";
|
|
1306
|
-
status:
|
|
1372
|
+
status: 400;
|
|
1307
1373
|
} | {
|
|
1308
1374
|
input: {
|
|
1309
1375
|
form: {
|
|
@@ -1339,7 +1405,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1339
1405
|
client_id: string;
|
|
1340
1406
|
username: string;
|
|
1341
1407
|
otp: string;
|
|
1342
|
-
realm: "
|
|
1408
|
+
realm: "sms" | "email";
|
|
1343
1409
|
scope?: string | undefined;
|
|
1344
1410
|
audience?: string | undefined;
|
|
1345
1411
|
} | {
|
|
@@ -1353,6 +1419,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1353
1419
|
client_secret?: string | undefined;
|
|
1354
1420
|
client_assertion?: string | undefined;
|
|
1355
1421
|
client_assertion_type?: string | undefined;
|
|
1422
|
+
} | {
|
|
1423
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1424
|
+
subject_token: string;
|
|
1425
|
+
subject_token_type: string;
|
|
1426
|
+
audience?: string | undefined;
|
|
1427
|
+
scope?: string | undefined;
|
|
1428
|
+
organization?: string | undefined;
|
|
1429
|
+
client_id?: string | undefined;
|
|
1430
|
+
client_secret?: string | undefined;
|
|
1431
|
+
client_assertion?: string | undefined;
|
|
1432
|
+
client_assertion_type?: string | undefined;
|
|
1356
1433
|
};
|
|
1357
1434
|
} & {
|
|
1358
1435
|
json: {
|
|
@@ -1388,7 +1465,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1388
1465
|
client_id: string;
|
|
1389
1466
|
username: string;
|
|
1390
1467
|
otp: string;
|
|
1391
|
-
realm: "
|
|
1468
|
+
realm: "sms" | "email";
|
|
1392
1469
|
scope?: string | undefined;
|
|
1393
1470
|
audience?: string | undefined;
|
|
1394
1471
|
} | {
|
|
@@ -1402,6 +1479,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1402
1479
|
client_secret?: string | undefined;
|
|
1403
1480
|
client_assertion?: string | undefined;
|
|
1404
1481
|
client_assertion_type?: string | undefined;
|
|
1482
|
+
} | {
|
|
1483
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1484
|
+
subject_token: string;
|
|
1485
|
+
subject_token_type: string;
|
|
1486
|
+
audience?: string | undefined;
|
|
1487
|
+
scope?: string | undefined;
|
|
1488
|
+
organization?: string | undefined;
|
|
1489
|
+
client_id?: string | undefined;
|
|
1490
|
+
client_secret?: string | undefined;
|
|
1491
|
+
client_assertion?: string | undefined;
|
|
1492
|
+
client_assertion_type?: string | undefined;
|
|
1405
1493
|
};
|
|
1406
1494
|
};
|
|
1407
1495
|
output: {
|
|
@@ -1409,7 +1497,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1409
1497
|
error_description?: string | undefined;
|
|
1410
1498
|
};
|
|
1411
1499
|
outputFormat: "json";
|
|
1412
|
-
status:
|
|
1500
|
+
status: 401;
|
|
1413
1501
|
} | {
|
|
1414
1502
|
input: {
|
|
1415
1503
|
form: {
|
|
@@ -1445,7 +1533,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1445
1533
|
client_id: string;
|
|
1446
1534
|
username: string;
|
|
1447
1535
|
otp: string;
|
|
1448
|
-
realm: "
|
|
1536
|
+
realm: "sms" | "email";
|
|
1449
1537
|
scope?: string | undefined;
|
|
1450
1538
|
audience?: string | undefined;
|
|
1451
1539
|
} | {
|
|
@@ -1459,6 +1547,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1459
1547
|
client_secret?: string | undefined;
|
|
1460
1548
|
client_assertion?: string | undefined;
|
|
1461
1549
|
client_assertion_type?: string | undefined;
|
|
1550
|
+
} | {
|
|
1551
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1552
|
+
subject_token: string;
|
|
1553
|
+
subject_token_type: string;
|
|
1554
|
+
audience?: string | undefined;
|
|
1555
|
+
scope?: string | undefined;
|
|
1556
|
+
organization?: string | undefined;
|
|
1557
|
+
client_id?: string | undefined;
|
|
1558
|
+
client_secret?: string | undefined;
|
|
1559
|
+
client_assertion?: string | undefined;
|
|
1560
|
+
client_assertion_type?: string | undefined;
|
|
1462
1561
|
};
|
|
1463
1562
|
} & {
|
|
1464
1563
|
json: {
|
|
@@ -1494,7 +1593,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1494
1593
|
client_id: string;
|
|
1495
1594
|
username: string;
|
|
1496
1595
|
otp: string;
|
|
1497
|
-
realm: "
|
|
1596
|
+
realm: "sms" | "email";
|
|
1498
1597
|
scope?: string | undefined;
|
|
1499
1598
|
audience?: string | undefined;
|
|
1500
1599
|
} | {
|
|
@@ -1508,6 +1607,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1508
1607
|
client_secret?: string | undefined;
|
|
1509
1608
|
client_assertion?: string | undefined;
|
|
1510
1609
|
client_assertion_type?: string | undefined;
|
|
1610
|
+
} | {
|
|
1611
|
+
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
1612
|
+
subject_token: string;
|
|
1613
|
+
subject_token_type: string;
|
|
1614
|
+
audience?: string | undefined;
|
|
1615
|
+
scope?: string | undefined;
|
|
1616
|
+
organization?: string | undefined;
|
|
1617
|
+
client_id?: string | undefined;
|
|
1618
|
+
client_secret?: string | undefined;
|
|
1619
|
+
client_assertion?: string | undefined;
|
|
1620
|
+
client_assertion_type?: string | undefined;
|
|
1511
1621
|
};
|
|
1512
1622
|
};
|
|
1513
1623
|
output: {
|
|
@@ -1524,8 +1634,8 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1524
1634
|
input: {};
|
|
1525
1635
|
output: {
|
|
1526
1636
|
keys: {
|
|
1527
|
-
|
|
1528
|
-
|
|
1637
|
+
kty: "EC" | "RSA" | "oct";
|
|
1638
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
1529
1639
|
kid?: string | undefined;
|
|
1530
1640
|
use?: "sig" | "enc" | undefined;
|
|
1531
1641
|
n?: string | undefined;
|
|
@@ -14,19 +14,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
|
|
18
|
-
state?: string | undefined;
|
|
19
|
-
username?: string | undefined;
|
|
17
|
+
audience?: string | undefined;
|
|
20
18
|
response_type?: AuthorizationResponseType | undefined;
|
|
21
19
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
22
|
-
|
|
20
|
+
scope?: string | undefined;
|
|
21
|
+
username?: string | undefined;
|
|
22
|
+
state?: string | undefined;
|
|
23
|
+
code_challenge?: string | undefined;
|
|
24
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
23
25
|
redirect_uri?: string | undefined;
|
|
24
26
|
nonce?: string | undefined;
|
|
25
27
|
act_as?: string | undefined;
|
|
26
28
|
organization?: string | undefined;
|
|
27
29
|
prompt?: string | undefined;
|
|
28
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
29
|
-
code_challenge?: string | undefined;
|
|
30
30
|
ui_locales?: string | undefined;
|
|
31
31
|
max_age?: number | undefined;
|
|
32
32
|
acr_values?: string | undefined;
|
|
@@ -50,19 +50,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
50
50
|
phone_number: string;
|
|
51
51
|
send: "code" | "link";
|
|
52
52
|
authParams: {
|
|
53
|
-
|
|
54
|
-
state?: string | undefined;
|
|
55
|
-
username?: string | undefined;
|
|
53
|
+
audience?: string | undefined;
|
|
56
54
|
response_type?: AuthorizationResponseType | undefined;
|
|
57
55
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
58
|
-
|
|
56
|
+
scope?: string | undefined;
|
|
57
|
+
username?: string | undefined;
|
|
58
|
+
state?: string | undefined;
|
|
59
|
+
code_challenge?: string | undefined;
|
|
60
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
59
61
|
redirect_uri?: string | undefined;
|
|
60
62
|
nonce?: string | undefined;
|
|
61
63
|
act_as?: string | undefined;
|
|
62
64
|
organization?: string | undefined;
|
|
63
65
|
prompt?: string | undefined;
|
|
64
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
65
|
-
code_challenge?: string | undefined;
|
|
66
66
|
ui_locales?: string | undefined;
|
|
67
67
|
max_age?: number | undefined;
|
|
68
68
|
acr_values?: string | undefined;
|
|
@@ -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?: "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?: "
|
|
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
|
};
|
|
@@ -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: 400;
|
|
49
49
|
} | {
|
|
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
|
};
|
|
@@ -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: 401;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
}, "/">;
|