authhero 5.16.0 → 5.17.1
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 +70 -70
- package/dist/authhero.d.ts +315 -265
- package/dist/authhero.mjs +4304 -4265
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/emails/defaults/Layout.d.ts +1 -1
- package/dist/types/emails/defaults/PrimaryButton.d.ts +1 -1
- package/dist/types/emails/defaults/ResetEmail.d.ts +1 -1
- package/dist/types/emails/defaults/ResetEmailByCode.d.ts +1 -1
- package/dist/types/emails/defaults/UserInvitation.d.ts +1 -1
- package/dist/types/emails/defaults/VerifyEmail.d.ts +1 -1
- package/dist/types/emails/defaults/VerifyEmailByCode.d.ts +1 -1
- package/dist/types/emails/defaults/WelcomeEmail.d.ts +1 -1
- package/dist/types/index.d.ts +239 -238
- package/dist/types/middlewares/authentication.d.ts +17 -0
- package/dist/types/routes/auth-api/authorize.d.ts +12 -12
- package/dist/types/routes/auth-api/index.d.ts +54 -54
- package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
- package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
- package/dist/types/routes/auth-api/token.d.ts +21 -21
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +14 -14
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +119 -119
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +169 -169
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +2 -2
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/themes.d.ts +3 -3
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +4 -4
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
- package/dist/types/routes/universal-login/index.d.ts +8 -8
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
- package/dist/types/types/AuthHeroConfig.d.ts +33 -0
- package/dist/types/types/Hooks.d.ts +1 -1
- package/dist/types/types/IdToken.d.ts +1 -1
- package/dist/types/types/Variables.d.ts +1 -0
- package/package.json +3 -3
|
@@ -13,9 +13,26 @@ export declare const MANAGEMENT_API_AUDIENCE = "urn:authhero:management";
|
|
|
13
13
|
* token's `aud` includes the management API audience. It must be enabled
|
|
14
14
|
* for the management API and left off for everything else (the `/userinfo`
|
|
15
15
|
* endpoint, for example, takes any access token issued by this tenant).
|
|
16
|
+
*
|
|
17
|
+
* `relaxManagementAudience` downgrades that audience check from a hard
|
|
18
|
+
* rejection to a `console.warn`, letting tokens issued for other audiences
|
|
19
|
+
* still pass. TRANSITIONAL: use only while migrating clients to request
|
|
20
|
+
* the management audience; flip back off once warnings stop appearing.
|
|
21
|
+
*
|
|
22
|
+
* `additionalManagementAudiences` extends the set of accepted audiences
|
|
23
|
+
* beyond the built-in `urn:authhero:management`. The resolver receives the
|
|
24
|
+
* token's `tenant_id` and returns the list of audiences accepted for that
|
|
25
|
+
* token, so a per-tenant identifier (e.g.
|
|
26
|
+
* `https://${tenant_id}.token.example.com/v2/api/`) can be constructed at
|
|
27
|
+
* request time alongside any global legacy identifiers.
|
|
16
28
|
*/
|
|
29
|
+
export type ManagementAudienceResolver = (params: {
|
|
30
|
+
tenant_id?: string;
|
|
31
|
+
}) => string[] | Promise<string[]>;
|
|
17
32
|
export interface AuthMiddlewareOptions {
|
|
18
33
|
requireManagementAudience?: boolean;
|
|
34
|
+
relaxManagementAudience?: boolean;
|
|
35
|
+
additionalManagementAudiences?: ManagementAudienceResolver;
|
|
19
36
|
}
|
|
20
37
|
export declare function createAuthMiddleware(app: OpenAPIHono<{
|
|
21
38
|
Bindings: Bindings;
|
|
@@ -105,11 +105,17 @@ export declare const authorizeRoutes: OpenAPIHono<{
|
|
|
105
105
|
request_uri?: string | undefined;
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
output: {
|
|
109
|
-
|
|
108
|
+
output: string | {
|
|
109
|
+
access_token: string;
|
|
110
|
+
token_type: string;
|
|
111
|
+
expires_in: number;
|
|
112
|
+
id_token?: string | undefined;
|
|
113
|
+
scope?: string | undefined;
|
|
114
|
+
state?: string | undefined;
|
|
115
|
+
refresh_token?: string | undefined;
|
|
110
116
|
};
|
|
111
117
|
outputFormat: "json";
|
|
112
|
-
status:
|
|
118
|
+
status: 200;
|
|
113
119
|
} | {
|
|
114
120
|
input: {
|
|
115
121
|
query: {
|
|
@@ -141,17 +147,11 @@ export declare const authorizeRoutes: OpenAPIHono<{
|
|
|
141
147
|
request_uri?: string | undefined;
|
|
142
148
|
};
|
|
143
149
|
};
|
|
144
|
-
output:
|
|
145
|
-
|
|
146
|
-
token_type: string;
|
|
147
|
-
expires_in: number;
|
|
148
|
-
id_token?: string | undefined;
|
|
149
|
-
scope?: string | undefined;
|
|
150
|
-
state?: string | undefined;
|
|
151
|
-
refresh_token?: string | undefined;
|
|
150
|
+
output: {
|
|
151
|
+
message: string;
|
|
152
152
|
};
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: 400;
|
|
155
155
|
} | {
|
|
156
156
|
input: {
|
|
157
157
|
query: {
|
|
@@ -557,11 +557,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
557
557
|
request_uri?: string | undefined;
|
|
558
558
|
};
|
|
559
559
|
};
|
|
560
|
-
output: {
|
|
561
|
-
|
|
560
|
+
output: string | {
|
|
561
|
+
access_token: string;
|
|
562
|
+
token_type: string;
|
|
563
|
+
expires_in: number;
|
|
564
|
+
id_token?: string | undefined;
|
|
565
|
+
scope?: string | undefined;
|
|
566
|
+
state?: string | undefined;
|
|
567
|
+
refresh_token?: string | undefined;
|
|
562
568
|
};
|
|
563
569
|
outputFormat: "json";
|
|
564
|
-
status:
|
|
570
|
+
status: 200;
|
|
565
571
|
} | {
|
|
566
572
|
input: {
|
|
567
573
|
query: {
|
|
@@ -593,17 +599,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
593
599
|
request_uri?: string | undefined;
|
|
594
600
|
};
|
|
595
601
|
};
|
|
596
|
-
output:
|
|
597
|
-
|
|
598
|
-
token_type: string;
|
|
599
|
-
expires_in: number;
|
|
600
|
-
id_token?: string | undefined;
|
|
601
|
-
scope?: string | undefined;
|
|
602
|
-
state?: string | undefined;
|
|
603
|
-
refresh_token?: string | undefined;
|
|
602
|
+
output: {
|
|
603
|
+
message: string;
|
|
604
604
|
};
|
|
605
605
|
outputFormat: "json";
|
|
606
|
-
status:
|
|
606
|
+
status: 400;
|
|
607
607
|
} | {
|
|
608
608
|
input: {
|
|
609
609
|
query: {
|
|
@@ -723,19 +723,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
723
723
|
email: string;
|
|
724
724
|
send: "code" | "link";
|
|
725
725
|
authParams: {
|
|
726
|
-
audience?: string | undefined;
|
|
727
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
728
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
729
|
-
scope?: string | undefined;
|
|
730
726
|
username?: string | undefined;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
redirect_uri?: string | undefined;
|
|
727
|
+
scope?: string | undefined;
|
|
728
|
+
audience?: string | undefined;
|
|
734
729
|
organization?: string | undefined;
|
|
730
|
+
code_challenge?: string | undefined;
|
|
731
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
732
|
+
redirect_uri?: string | undefined;
|
|
735
733
|
nonce?: string | undefined;
|
|
734
|
+
state?: string | undefined;
|
|
735
|
+
act_as?: string | undefined;
|
|
736
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
737
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
736
738
|
prompt?: string | undefined;
|
|
737
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
738
|
-
code_challenge?: string | undefined;
|
|
739
739
|
ui_locales?: string | undefined;
|
|
740
740
|
max_age?: number | undefined;
|
|
741
741
|
acr_values?: string | undefined;
|
|
@@ -759,19 +759,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
759
759
|
phone_number: string;
|
|
760
760
|
send: "code" | "link";
|
|
761
761
|
authParams: {
|
|
762
|
-
audience?: string | undefined;
|
|
763
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
764
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
765
|
-
scope?: string | undefined;
|
|
766
762
|
username?: string | undefined;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
redirect_uri?: string | undefined;
|
|
763
|
+
scope?: string | undefined;
|
|
764
|
+
audience?: string | undefined;
|
|
770
765
|
organization?: string | undefined;
|
|
766
|
+
code_challenge?: string | undefined;
|
|
767
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
768
|
+
redirect_uri?: string | undefined;
|
|
771
769
|
nonce?: string | undefined;
|
|
770
|
+
state?: string | undefined;
|
|
771
|
+
act_as?: string | undefined;
|
|
772
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
773
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
772
774
|
prompt?: string | undefined;
|
|
773
|
-
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
774
|
-
code_challenge?: string | undefined;
|
|
775
775
|
ui_locales?: string | undefined;
|
|
776
776
|
max_age?: number | undefined;
|
|
777
777
|
acr_values?: string | undefined;
|
|
@@ -1001,7 +1001,7 @@ 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
1005
|
};
|
|
1006
1006
|
} & {
|
|
1007
1007
|
json: {
|
|
@@ -1037,7 +1037,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1037
1037
|
client_id: string;
|
|
1038
1038
|
username: string;
|
|
1039
1039
|
otp: string;
|
|
1040
|
-
realm: "
|
|
1040
|
+
realm: "email" | "sms";
|
|
1041
1041
|
};
|
|
1042
1042
|
};
|
|
1043
1043
|
output: {};
|
|
@@ -1078,7 +1078,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1078
1078
|
client_id: string;
|
|
1079
1079
|
username: string;
|
|
1080
1080
|
otp: string;
|
|
1081
|
-
realm: "
|
|
1081
|
+
realm: "email" | "sms";
|
|
1082
1082
|
};
|
|
1083
1083
|
} & {
|
|
1084
1084
|
json: {
|
|
@@ -1114,15 +1114,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1114
1114
|
client_id: string;
|
|
1115
1115
|
username: string;
|
|
1116
1116
|
otp: string;
|
|
1117
|
-
realm: "
|
|
1117
|
+
realm: "email" | "sms";
|
|
1118
1118
|
};
|
|
1119
1119
|
};
|
|
1120
1120
|
output: {
|
|
1121
|
-
|
|
1122
|
-
|
|
1121
|
+
access_token: string;
|
|
1122
|
+
token_type: string;
|
|
1123
|
+
expires_in: number;
|
|
1124
|
+
id_token?: string | undefined;
|
|
1125
|
+
scope?: string | undefined;
|
|
1126
|
+
state?: string | undefined;
|
|
1127
|
+
refresh_token?: string | undefined;
|
|
1123
1128
|
};
|
|
1124
1129
|
outputFormat: "json";
|
|
1125
|
-
status:
|
|
1130
|
+
status: 200;
|
|
1126
1131
|
} | {
|
|
1127
1132
|
input: {
|
|
1128
1133
|
form: {
|
|
@@ -1158,7 +1163,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1158
1163
|
client_id: string;
|
|
1159
1164
|
username: string;
|
|
1160
1165
|
otp: string;
|
|
1161
|
-
realm: "
|
|
1166
|
+
realm: "email" | "sms";
|
|
1162
1167
|
};
|
|
1163
1168
|
} & {
|
|
1164
1169
|
json: {
|
|
@@ -1194,20 +1199,15 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1194
1199
|
client_id: string;
|
|
1195
1200
|
username: string;
|
|
1196
1201
|
otp: string;
|
|
1197
|
-
realm: "
|
|
1202
|
+
realm: "email" | "sms";
|
|
1198
1203
|
};
|
|
1199
1204
|
};
|
|
1200
1205
|
output: {
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
expires_in: number;
|
|
1204
|
-
id_token?: string | undefined;
|
|
1205
|
-
scope?: string | undefined;
|
|
1206
|
-
state?: string | undefined;
|
|
1207
|
-
refresh_token?: string | undefined;
|
|
1206
|
+
error: string;
|
|
1207
|
+
error_description?: string | undefined;
|
|
1208
1208
|
};
|
|
1209
1209
|
outputFormat: "json";
|
|
1210
|
-
status:
|
|
1210
|
+
status: 400;
|
|
1211
1211
|
} | {
|
|
1212
1212
|
input: {
|
|
1213
1213
|
form: {
|
|
@@ -1243,7 +1243,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1243
1243
|
client_id: string;
|
|
1244
1244
|
username: string;
|
|
1245
1245
|
otp: string;
|
|
1246
|
-
realm: "
|
|
1246
|
+
realm: "email" | "sms";
|
|
1247
1247
|
};
|
|
1248
1248
|
} & {
|
|
1249
1249
|
json: {
|
|
@@ -1279,7 +1279,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1279
1279
|
client_id: string;
|
|
1280
1280
|
username: string;
|
|
1281
1281
|
otp: string;
|
|
1282
|
-
realm: "
|
|
1282
|
+
realm: "email" | "sms";
|
|
1283
1283
|
};
|
|
1284
1284
|
};
|
|
1285
1285
|
output: {
|
|
@@ -1323,7 +1323,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1323
1323
|
client_id: string;
|
|
1324
1324
|
username: string;
|
|
1325
1325
|
otp: string;
|
|
1326
|
-
realm: "
|
|
1326
|
+
realm: "email" | "sms";
|
|
1327
1327
|
};
|
|
1328
1328
|
} & {
|
|
1329
1329
|
json: {
|
|
@@ -1359,7 +1359,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1359
1359
|
client_id: string;
|
|
1360
1360
|
username: string;
|
|
1361
1361
|
otp: string;
|
|
1362
|
-
realm: "
|
|
1362
|
+
realm: "email" | "sms";
|
|
1363
1363
|
};
|
|
1364
1364
|
};
|
|
1365
1365
|
output: {
|
|
@@ -1566,7 +1566,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1566
1566
|
};
|
|
1567
1567
|
output: {};
|
|
1568
1568
|
outputFormat: string;
|
|
1569
|
-
status:
|
|
1569
|
+
status: 200;
|
|
1570
1570
|
} | {
|
|
1571
1571
|
input: {
|
|
1572
1572
|
query: {
|
|
@@ -1580,7 +1580,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1580
1580
|
};
|
|
1581
1581
|
output: {};
|
|
1582
1582
|
outputFormat: string;
|
|
1583
|
-
status:
|
|
1583
|
+
status: 302;
|
|
1584
1584
|
} | {
|
|
1585
1585
|
input: {
|
|
1586
1586
|
query: {
|
|
@@ -1594,7 +1594,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1594
1594
|
};
|
|
1595
1595
|
output: {};
|
|
1596
1596
|
outputFormat: string;
|
|
1597
|
-
status:
|
|
1597
|
+
status: 400;
|
|
1598
1598
|
};
|
|
1599
1599
|
};
|
|
1600
1600
|
}, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -18,7 +18,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
18
18
|
};
|
|
19
19
|
output: {};
|
|
20
20
|
outputFormat: string;
|
|
21
|
-
status:
|
|
21
|
+
status: 200;
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
query: {
|
|
@@ -32,7 +32,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
32
32
|
};
|
|
33
33
|
output: {};
|
|
34
34
|
outputFormat: string;
|
|
35
|
-
status:
|
|
35
|
+
status: 302;
|
|
36
36
|
} | {
|
|
37
37
|
input: {
|
|
38
38
|
query: {
|
|
@@ -46,7 +46,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
46
46
|
};
|
|
47
47
|
output: {};
|
|
48
48
|
outputFormat: string;
|
|
49
|
-
status:
|
|
49
|
+
status: 400;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
}, "/">;
|
|
@@ -14,19 +14,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
audience?: string | undefined;
|
|
18
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
19
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
|
-
scope?: string | undefined;
|
|
21
17
|
username?: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
redirect_uri?: string | undefined;
|
|
18
|
+
scope?: string | undefined;
|
|
19
|
+
audience?: string | undefined;
|
|
25
20
|
organization?: string | undefined;
|
|
21
|
+
code_challenge?: string | undefined;
|
|
22
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
23
|
+
redirect_uri?: string | undefined;
|
|
26
24
|
nonce?: string | undefined;
|
|
25
|
+
state?: string | undefined;
|
|
26
|
+
act_as?: string | undefined;
|
|
27
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
28
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | 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
|
-
audience?: string | undefined;
|
|
54
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
55
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
|
-
scope?: string | undefined;
|
|
57
53
|
username?: string | undefined;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
redirect_uri?: string | undefined;
|
|
54
|
+
scope?: string | undefined;
|
|
55
|
+
audience?: string | undefined;
|
|
61
56
|
organization?: string | undefined;
|
|
57
|
+
code_challenge?: string | undefined;
|
|
58
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
59
|
+
redirect_uri?: string | undefined;
|
|
62
60
|
nonce?: string | undefined;
|
|
61
|
+
state?: string | undefined;
|
|
62
|
+
act_as?: string | undefined;
|
|
63
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
64
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | 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;
|
|
@@ -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
|
} & {
|
|
46
46
|
json: {
|
|
@@ -76,7 +76,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
76
76
|
client_id: string;
|
|
77
77
|
username: string;
|
|
78
78
|
otp: string;
|
|
79
|
-
realm: "
|
|
79
|
+
realm: "email" | "sms";
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
output: {};
|
|
@@ -117,7 +117,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
117
117
|
client_id: string;
|
|
118
118
|
username: string;
|
|
119
119
|
otp: string;
|
|
120
|
-
realm: "
|
|
120
|
+
realm: "email" | "sms";
|
|
121
121
|
};
|
|
122
122
|
} & {
|
|
123
123
|
json: {
|
|
@@ -153,15 +153,20 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
153
153
|
client_id: string;
|
|
154
154
|
username: string;
|
|
155
155
|
otp: string;
|
|
156
|
-
realm: "
|
|
156
|
+
realm: "email" | "sms";
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
159
|
output: {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
access_token: string;
|
|
161
|
+
token_type: string;
|
|
162
|
+
expires_in: number;
|
|
163
|
+
id_token?: string | undefined;
|
|
164
|
+
scope?: string | undefined;
|
|
165
|
+
state?: string | undefined;
|
|
166
|
+
refresh_token?: string | undefined;
|
|
162
167
|
};
|
|
163
168
|
outputFormat: "json";
|
|
164
|
-
status:
|
|
169
|
+
status: 200;
|
|
165
170
|
} | {
|
|
166
171
|
input: {
|
|
167
172
|
form: {
|
|
@@ -197,7 +202,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
197
202
|
client_id: string;
|
|
198
203
|
username: string;
|
|
199
204
|
otp: string;
|
|
200
|
-
realm: "
|
|
205
|
+
realm: "email" | "sms";
|
|
201
206
|
};
|
|
202
207
|
} & {
|
|
203
208
|
json: {
|
|
@@ -233,20 +238,15 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
233
238
|
client_id: string;
|
|
234
239
|
username: string;
|
|
235
240
|
otp: string;
|
|
236
|
-
realm: "
|
|
241
|
+
realm: "email" | "sms";
|
|
237
242
|
};
|
|
238
243
|
};
|
|
239
244
|
output: {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
expires_in: number;
|
|
243
|
-
id_token?: string | undefined;
|
|
244
|
-
scope?: string | undefined;
|
|
245
|
-
state?: string | undefined;
|
|
246
|
-
refresh_token?: string | undefined;
|
|
245
|
+
error: string;
|
|
246
|
+
error_description?: string | undefined;
|
|
247
247
|
};
|
|
248
248
|
outputFormat: "json";
|
|
249
|
-
status:
|
|
249
|
+
status: 400;
|
|
250
250
|
} | {
|
|
251
251
|
input: {
|
|
252
252
|
form: {
|
|
@@ -282,7 +282,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
282
282
|
client_id: string;
|
|
283
283
|
username: string;
|
|
284
284
|
otp: string;
|
|
285
|
-
realm: "
|
|
285
|
+
realm: "email" | "sms";
|
|
286
286
|
};
|
|
287
287
|
} & {
|
|
288
288
|
json: {
|
|
@@ -318,7 +318,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
318
318
|
client_id: string;
|
|
319
319
|
username: string;
|
|
320
320
|
otp: string;
|
|
321
|
-
realm: "
|
|
321
|
+
realm: "email" | "sms";
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
324
|
output: {
|
|
@@ -362,7 +362,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
362
362
|
client_id: string;
|
|
363
363
|
username: string;
|
|
364
364
|
otp: string;
|
|
365
|
-
realm: "
|
|
365
|
+
realm: "email" | "sms";
|
|
366
366
|
};
|
|
367
367
|
} & {
|
|
368
368
|
json: {
|
|
@@ -398,7 +398,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
398
398
|
client_id: string;
|
|
399
399
|
username: string;
|
|
400
400
|
otp: string;
|
|
401
|
-
realm: "
|
|
401
|
+
realm: "email" | "sms";
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
output: {
|
|
@@ -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: {
|
|
@@ -78,7 +78,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
|
|
|
78
78
|
logs: {
|
|
79
79
|
action_name: string;
|
|
80
80
|
lines: {
|
|
81
|
-
level: "
|
|
81
|
+
level: "log" | "error" | "info" | "warn" | "debug";
|
|
82
82
|
message: string;
|
|
83
83
|
}[];
|
|
84
84
|
}[];
|
|
@@ -661,7 +661,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
661
661
|
args: import("hono/utils/types").JSONValue[];
|
|
662
662
|
}[];
|
|
663
663
|
logs: {
|
|
664
|
-
level: "
|
|
664
|
+
level: "log" | "error" | "info" | "warn" | "debug";
|
|
665
665
|
message: string;
|
|
666
666
|
}[];
|
|
667
667
|
error?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "
|
|
40
|
+
type: "email" | "push" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
41
41
|
phone_number?: string | undefined;
|
|
42
42
|
totp_secret?: string | undefined;
|
|
43
43
|
credential_id?: string | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
27
27
|
base_focus_color: string;
|
|
28
28
|
base_hover_color: string;
|
|
29
29
|
body_text: string;
|
|
30
|
-
captcha_widget_theme: "
|
|
30
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
31
31
|
error: string;
|
|
32
32
|
header: string;
|
|
33
33
|
icons: string;
|
|
@@ -117,7 +117,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
117
117
|
base_focus_color: string;
|
|
118
118
|
base_hover_color: string;
|
|
119
119
|
body_text: string;
|
|
120
|
-
captcha_widget_theme: "
|
|
120
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
121
121
|
error: string;
|
|
122
122
|
header: string;
|
|
123
123
|
icons: string;
|
|
@@ -196,7 +196,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
196
196
|
base_focus_color: string;
|
|
197
197
|
base_hover_color: string;
|
|
198
198
|
body_text: string;
|
|
199
|
-
captcha_widget_theme: "
|
|
199
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
200
200
|
error: string;
|
|
201
201
|
header: string;
|
|
202
202
|
icons: string;
|
|
@@ -286,7 +286,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
286
286
|
font?: {
|
|
287
287
|
url: string;
|
|
288
288
|
} | undefined;
|
|
289
|
-
dark_mode?: "
|
|
289
|
+
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
290
290
|
};
|
|
291
291
|
outputFormat: "json";
|
|
292
292
|
status: 200;
|
|
@@ -316,7 +316,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
316
316
|
font?: {
|
|
317
317
|
url: string;
|
|
318
318
|
} | undefined;
|
|
319
|
-
dark_mode?: "
|
|
319
|
+
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
322
|
output: {
|
|
@@ -335,7 +335,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
335
335
|
font?: {
|
|
336
336
|
url: string;
|
|
337
337
|
} | undefined;
|
|
338
|
-
dark_mode?: "
|
|
338
|
+
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
339
339
|
};
|
|
340
340
|
outputFormat: "json";
|
|
341
341
|
status: 200;
|
|
@@ -370,7 +370,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
370
370
|
};
|
|
371
371
|
output: {};
|
|
372
372
|
outputFormat: string;
|
|
373
|
-
status:
|
|
373
|
+
status: 204;
|
|
374
374
|
} | {
|
|
375
375
|
input: {
|
|
376
376
|
header: {
|
|
@@ -383,7 +383,7 @@ export declare const brandingRoutes: OpenAPIHono<{
|
|
|
383
383
|
};
|
|
384
384
|
output: {};
|
|
385
385
|
outputFormat: string;
|
|
386
|
-
status:
|
|
386
|
+
status: 400;
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
} & {
|