authhero 9.15.0 → 9.17.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-36898e2d.entry.js +1 -0
- package/dist/assets/u/widget/p-Che3Wd7J.js +1 -0
- package/dist/assets/u/widget/p-c6ec4c36.entry.js +1 -0
- package/dist/authhero.cjs +144 -144
- package/dist/authhero.d.ts +381 -249
- package/dist/authhero.mjs +13183 -13003
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/generated/locale-types.d.ts +1 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/scopes-permissions.d.ts +51 -12
- package/dist/types/helpers/signing-certificate-authority.d.ts +99 -0
- package/dist/types/helpers/signing-keys.d.ts +7 -0
- package/dist/types/index.d.ts +257 -247
- package/dist/types/middlewares/authentication.d.ts +1 -0
- package/dist/types/middlewares/reject-unknown-hosts.d.ts +13 -0
- package/dist/types/routes/auth-api/index.d.ts +25 -24
- package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/auth-api/well-known.d.ts +1 -0
- 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/branding.d.ts +1 -1
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +2 -2
- 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 +133 -126
- 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 +219 -212
- 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/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +4 -4
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +6 -0
- package/dist/types/routes/management-api/users.d.ts +26 -26
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- 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/connect-authz.d.ts +16 -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/types/AuthHeroConfig.d.ts +38 -0
- package/dist/types/types/Bindings.d.ts +3 -0
- package/dist/types/utils/encryption.d.ts +20 -0
- package/dist/types/utils/jwks.d.ts +4 -1
- package/package.json +6 -6
- package/dist/assets/u/widget/p-1eb7f287.entry.js +0 -1
- package/dist/assets/u/widget/p-398d72df.entry.js +0 -1
|
@@ -51,6 +51,7 @@ export interface AuthMiddlewareOptions {
|
|
|
51
51
|
additionalManagementAudiences?: ManagementAudienceResolver;
|
|
52
52
|
additionalIssuers?: IssuerResolver;
|
|
53
53
|
}
|
|
54
|
+
export declare function scopeForms(scope: string): string[];
|
|
54
55
|
export declare function createAuthMiddleware(app: OpenAPIHono<{
|
|
55
56
|
Bindings: Bindings;
|
|
56
57
|
Variables: Variables;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiddlewareHandler } from "hono";
|
|
2
|
+
import { Bindings, Variables } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Opt-in (`init({ rejectUnknownHosts: true })`). Without it, discovery and
|
|
5
|
+
* JWKS on a host this deployment doesn't own fall back to the control-plane
|
|
6
|
+
* keys and apex metadata, so anyone could point a domain at the worker and
|
|
7
|
+
* serve AuthHero discovery from it. Mounted on every `/.well-known/*` route,
|
|
8
|
+
* including the MCP protected-resource metadata.
|
|
9
|
+
*/
|
|
10
|
+
export declare const rejectUnknownHostsMiddleware: MiddlewareHandler<{
|
|
11
|
+
Bindings: Bindings;
|
|
12
|
+
Variables: Variables;
|
|
13
|
+
}>;
|
|
@@ -742,18 +742,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
742
742
|
send: "code" | "link";
|
|
743
743
|
authParams: {
|
|
744
744
|
audience?: string | undefined;
|
|
745
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
746
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
747
745
|
scope?: string | undefined;
|
|
748
|
-
username?: string | undefined;
|
|
749
|
-
state?: string | undefined;
|
|
750
746
|
code_challenge?: string | undefined;
|
|
751
747
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
752
748
|
redirect_uri?: string | undefined;
|
|
753
749
|
nonce?: string | undefined;
|
|
750
|
+
state?: string | undefined;
|
|
754
751
|
act_as?: string | undefined;
|
|
752
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
753
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
755
754
|
organization?: string | undefined;
|
|
756
755
|
prompt?: string | undefined;
|
|
756
|
+
username?: string | undefined;
|
|
757
757
|
ui_locales?: string | undefined;
|
|
758
758
|
max_age?: number | undefined;
|
|
759
759
|
acr_values?: string | undefined;
|
|
@@ -778,18 +778,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
778
778
|
send: "code" | "link";
|
|
779
779
|
authParams: {
|
|
780
780
|
audience?: string | undefined;
|
|
781
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
782
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
783
781
|
scope?: string | undefined;
|
|
784
|
-
username?: string | undefined;
|
|
785
|
-
state?: string | undefined;
|
|
786
782
|
code_challenge?: string | undefined;
|
|
787
783
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
788
784
|
redirect_uri?: string | undefined;
|
|
789
785
|
nonce?: string | undefined;
|
|
786
|
+
state?: string | undefined;
|
|
790
787
|
act_as?: string | undefined;
|
|
788
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
789
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
791
790
|
organization?: string | undefined;
|
|
792
791
|
prompt?: string | undefined;
|
|
792
|
+
username?: 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?: "access_token" | "refresh_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?: "access_token" | "refresh_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?: "access_token" | "refresh_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?: "access_token" | "refresh_token" | undefined;
|
|
951
951
|
client_id?: string | undefined;
|
|
952
952
|
client_secret?: string | undefined;
|
|
953
953
|
};
|
|
@@ -962,14 +962,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
962
962
|
input: {
|
|
963
963
|
form: {
|
|
964
964
|
token: string;
|
|
965
|
-
token_type_hint?: "
|
|
965
|
+
token_type_hint?: "access_token" | "refresh_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?: "access_token" | "refresh_token" | undefined;
|
|
973
973
|
client_id?: string | undefined;
|
|
974
974
|
client_secret?: string | undefined;
|
|
975
975
|
};
|
|
@@ -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: "email" | "sms";
|
|
1023
1023
|
scope?: string | undefined;
|
|
1024
1024
|
audience?: string | undefined;
|
|
1025
1025
|
} | {
|
|
@@ -1079,7 +1079,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1079
1079
|
client_id: string;
|
|
1080
1080
|
username: string;
|
|
1081
1081
|
otp: string;
|
|
1082
|
-
realm: "
|
|
1082
|
+
realm: "email" | "sms";
|
|
1083
1083
|
scope?: string | undefined;
|
|
1084
1084
|
audience?: string | undefined;
|
|
1085
1085
|
} | {
|
|
@@ -1144,7 +1144,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1144
1144
|
client_id: string;
|
|
1145
1145
|
username: string;
|
|
1146
1146
|
otp: string;
|
|
1147
|
-
realm: "
|
|
1147
|
+
realm: "email" | "sms";
|
|
1148
1148
|
scope?: string | undefined;
|
|
1149
1149
|
audience?: string | undefined;
|
|
1150
1150
|
} | {
|
|
@@ -1204,7 +1204,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1204
1204
|
client_id: string;
|
|
1205
1205
|
username: string;
|
|
1206
1206
|
otp: string;
|
|
1207
|
-
realm: "
|
|
1207
|
+
realm: "email" | "sms";
|
|
1208
1208
|
scope?: string | undefined;
|
|
1209
1209
|
audience?: string | undefined;
|
|
1210
1210
|
} | {
|
|
@@ -1277,7 +1277,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1277
1277
|
client_id: string;
|
|
1278
1278
|
username: string;
|
|
1279
1279
|
otp: string;
|
|
1280
|
-
realm: "
|
|
1280
|
+
realm: "email" | "sms";
|
|
1281
1281
|
scope?: string | undefined;
|
|
1282
1282
|
audience?: string | undefined;
|
|
1283
1283
|
} | {
|
|
@@ -1337,7 +1337,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1337
1337
|
client_id: string;
|
|
1338
1338
|
username: string;
|
|
1339
1339
|
otp: string;
|
|
1340
|
-
realm: "
|
|
1340
|
+
realm: "email" | "sms";
|
|
1341
1341
|
scope?: string | undefined;
|
|
1342
1342
|
audience?: string | undefined;
|
|
1343
1343
|
} | {
|
|
@@ -1405,7 +1405,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1405
1405
|
client_id: string;
|
|
1406
1406
|
username: string;
|
|
1407
1407
|
otp: string;
|
|
1408
|
-
realm: "
|
|
1408
|
+
realm: "email" | "sms";
|
|
1409
1409
|
scope?: string | undefined;
|
|
1410
1410
|
audience?: string | undefined;
|
|
1411
1411
|
} | {
|
|
@@ -1465,7 +1465,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1465
1465
|
client_id: string;
|
|
1466
1466
|
username: string;
|
|
1467
1467
|
otp: string;
|
|
1468
|
-
realm: "
|
|
1468
|
+
realm: "email" | "sms";
|
|
1469
1469
|
scope?: string | undefined;
|
|
1470
1470
|
audience?: string | undefined;
|
|
1471
1471
|
} | {
|
|
@@ -1533,7 +1533,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1533
1533
|
client_id: string;
|
|
1534
1534
|
username: string;
|
|
1535
1535
|
otp: string;
|
|
1536
|
-
realm: "
|
|
1536
|
+
realm: "email" | "sms";
|
|
1537
1537
|
scope?: string | undefined;
|
|
1538
1538
|
audience?: string | undefined;
|
|
1539
1539
|
} | {
|
|
@@ -1593,7 +1593,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1593
1593
|
client_id: string;
|
|
1594
1594
|
username: string;
|
|
1595
1595
|
otp: string;
|
|
1596
|
-
realm: "
|
|
1596
|
+
realm: "email" | "sms";
|
|
1597
1597
|
scope?: string | undefined;
|
|
1598
1598
|
audience?: string | undefined;
|
|
1599
1599
|
} | {
|
|
@@ -1644,6 +1644,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1644
1644
|
x?: string | undefined;
|
|
1645
1645
|
y?: string | undefined;
|
|
1646
1646
|
x5t?: string | undefined;
|
|
1647
|
+
"x5t#S256"?: string | undefined;
|
|
1647
1648
|
x5c?: string[] | undefined;
|
|
1648
1649
|
}[];
|
|
1649
1650
|
};
|
|
@@ -15,18 +15,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
17
|
audience?: string | undefined;
|
|
18
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
19
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
18
|
scope?: string | undefined;
|
|
21
|
-
username?: string | undefined;
|
|
22
|
-
state?: string | undefined;
|
|
23
19
|
code_challenge?: string | undefined;
|
|
24
20
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
25
21
|
redirect_uri?: string | undefined;
|
|
26
22
|
nonce?: string | undefined;
|
|
23
|
+
state?: string | undefined;
|
|
27
24
|
act_as?: string | undefined;
|
|
25
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
26
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
28
27
|
organization?: string | undefined;
|
|
29
28
|
prompt?: string | undefined;
|
|
29
|
+
username?: string | undefined;
|
|
30
30
|
ui_locales?: string | undefined;
|
|
31
31
|
max_age?: number | undefined;
|
|
32
32
|
acr_values?: string | undefined;
|
|
@@ -51,18 +51,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
51
51
|
send: "code" | "link";
|
|
52
52
|
authParams: {
|
|
53
53
|
audience?: string | undefined;
|
|
54
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
55
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
54
|
scope?: string | undefined;
|
|
57
|
-
username?: string | undefined;
|
|
58
|
-
state?: string | undefined;
|
|
59
55
|
code_challenge?: string | undefined;
|
|
60
56
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
61
57
|
redirect_uri?: string | undefined;
|
|
62
58
|
nonce?: string | undefined;
|
|
59
|
+
state?: string | undefined;
|
|
63
60
|
act_as?: string | undefined;
|
|
61
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
62
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
64
63
|
organization?: string | undefined;
|
|
65
64
|
prompt?: string | undefined;
|
|
65
|
+
username?: string | undefined;
|
|
66
66
|
ui_locales?: string | undefined;
|
|
67
67
|
max_age?: number | undefined;
|
|
68
68
|
acr_values?: 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,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
|
scope?: string | undefined;
|
|
45
45
|
audience?: string | undefined;
|
|
46
46
|
} | {
|
|
@@ -100,7 +100,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
100
100
|
client_id: string;
|
|
101
101
|
username: string;
|
|
102
102
|
otp: string;
|
|
103
|
-
realm: "
|
|
103
|
+
realm: "email" | "sms";
|
|
104
104
|
scope?: string | undefined;
|
|
105
105
|
audience?: string | undefined;
|
|
106
106
|
} | {
|
|
@@ -165,7 +165,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
165
165
|
client_id: string;
|
|
166
166
|
username: string;
|
|
167
167
|
otp: string;
|
|
168
|
-
realm: "
|
|
168
|
+
realm: "email" | "sms";
|
|
169
169
|
scope?: string | undefined;
|
|
170
170
|
audience?: string | undefined;
|
|
171
171
|
} | {
|
|
@@ -225,7 +225,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
225
225
|
client_id: string;
|
|
226
226
|
username: string;
|
|
227
227
|
otp: string;
|
|
228
|
-
realm: "
|
|
228
|
+
realm: "email" | "sms";
|
|
229
229
|
scope?: string | undefined;
|
|
230
230
|
audience?: string | undefined;
|
|
231
231
|
} | {
|
|
@@ -298,7 +298,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
298
298
|
client_id: string;
|
|
299
299
|
username: string;
|
|
300
300
|
otp: string;
|
|
301
|
-
realm: "
|
|
301
|
+
realm: "email" | "sms";
|
|
302
302
|
scope?: string | undefined;
|
|
303
303
|
audience?: string | undefined;
|
|
304
304
|
} | {
|
|
@@ -358,7 +358,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
358
358
|
client_id: string;
|
|
359
359
|
username: string;
|
|
360
360
|
otp: string;
|
|
361
|
-
realm: "
|
|
361
|
+
realm: "email" | "sms";
|
|
362
362
|
scope?: string | undefined;
|
|
363
363
|
audience?: string | undefined;
|
|
364
364
|
} | {
|
|
@@ -426,7 +426,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
426
426
|
client_id: string;
|
|
427
427
|
username: string;
|
|
428
428
|
otp: string;
|
|
429
|
-
realm: "
|
|
429
|
+
realm: "email" | "sms";
|
|
430
430
|
scope?: string | undefined;
|
|
431
431
|
audience?: string | undefined;
|
|
432
432
|
} | {
|
|
@@ -486,7 +486,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
486
486
|
client_id: string;
|
|
487
487
|
username: string;
|
|
488
488
|
otp: string;
|
|
489
|
-
realm: "
|
|
489
|
+
realm: "email" | "sms";
|
|
490
490
|
scope?: string | undefined;
|
|
491
491
|
audience?: string | undefined;
|
|
492
492
|
} | {
|
|
@@ -554,7 +554,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
554
554
|
client_id: string;
|
|
555
555
|
username: string;
|
|
556
556
|
otp: string;
|
|
557
|
-
realm: "
|
|
557
|
+
realm: "email" | "sms";
|
|
558
558
|
scope?: string | undefined;
|
|
559
559
|
audience?: string | undefined;
|
|
560
560
|
} | {
|
|
@@ -614,7 +614,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
614
614
|
client_id: string;
|
|
615
615
|
username: string;
|
|
616
616
|
otp: string;
|
|
617
|
-
realm: "
|
|
617
|
+
realm: "email" | "sms";
|
|
618
618
|
scope?: string | undefined;
|
|
619
619
|
audience?: string | undefined;
|
|
620
620
|
} | {
|
|
@@ -297,7 +297,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
297
297
|
};
|
|
298
298
|
output: {};
|
|
299
299
|
outputFormat: string;
|
|
300
|
-
status:
|
|
300
|
+
status: 200;
|
|
301
301
|
} | {
|
|
302
302
|
input: {
|
|
303
303
|
param: {
|
|
@@ -310,7 +310,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
310
310
|
};
|
|
311
311
|
output: {};
|
|
312
312
|
outputFormat: string;
|
|
313
|
-
status:
|
|
313
|
+
status: 404;
|
|
314
314
|
} | {
|
|
315
315
|
input: {
|
|
316
316
|
param: {
|
|
@@ -656,7 +656,7 @@ export declare const actionsRoutes: OpenAPIHono<{
|
|
|
656
656
|
args: import("hono/utils/types").JSONValue[];
|
|
657
657
|
}[];
|
|
658
658
|
logs: {
|
|
659
|
-
level: "error" | "
|
|
659
|
+
level: "error" | "log" | "info" | "debug" | "warn";
|
|
660
660
|
message: string;
|
|
661
661
|
}[];
|
|
662
662
|
error?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "
|
|
40
|
+
type: "push" | "email" | "phone" | "passkey" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
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?: "identifier" | "
|
|
412
|
+
screen?: "identifier" | "login" | "password" | "signup" | undefined;
|
|
413
413
|
branding?: {
|
|
414
414
|
colors?: {
|
|
415
415
|
primary: string;
|
|
@@ -16,7 +16,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
16
16
|
audience?: string | undefined;
|
|
17
17
|
client_id?: string | undefined;
|
|
18
18
|
allow_any_organization?: string | undefined;
|
|
19
|
-
subject_type?: "
|
|
19
|
+
subject_type?: "user" | "client" | undefined;
|
|
20
20
|
};
|
|
21
21
|
} & {
|
|
22
22
|
header: {
|
|
@@ -31,7 +31,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
31
31
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
32
32
|
allow_any_organization?: boolean | undefined;
|
|
33
33
|
is_system?: boolean | undefined;
|
|
34
|
-
subject_type?: "
|
|
34
|
+
subject_type?: "user" | "client" | undefined;
|
|
35
35
|
authorization_details_types?: string[] | undefined;
|
|
36
36
|
created_at?: string | undefined;
|
|
37
37
|
updated_at?: string | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
47
47
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
48
48
|
allow_any_organization?: boolean | undefined;
|
|
49
49
|
is_system?: boolean | undefined;
|
|
50
|
-
subject_type?: "
|
|
50
|
+
subject_type?: "user" | "client" | undefined;
|
|
51
51
|
authorization_details_types?: string[] | undefined;
|
|
52
52
|
created_at?: string | undefined;
|
|
53
53
|
updated_at?: string | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
63
63
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
64
64
|
allow_any_organization?: boolean | undefined;
|
|
65
65
|
is_system?: boolean | undefined;
|
|
66
|
-
subject_type?: "
|
|
66
|
+
subject_type?: "user" | "client" | undefined;
|
|
67
67
|
authorization_details_types?: string[] | undefined;
|
|
68
68
|
created_at?: string | undefined;
|
|
69
69
|
updated_at?: string | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
94
94
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
95
95
|
allow_any_organization?: boolean | undefined;
|
|
96
96
|
is_system?: boolean | undefined;
|
|
97
|
-
subject_type?: "
|
|
97
|
+
subject_type?: "user" | "client" | undefined;
|
|
98
98
|
authorization_details_types?: string[] | undefined;
|
|
99
99
|
created_at?: string | undefined;
|
|
100
100
|
updated_at?: string | undefined;
|
|
@@ -139,7 +139,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
139
139
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
140
140
|
allow_any_organization?: boolean | undefined;
|
|
141
141
|
is_system?: boolean | undefined;
|
|
142
|
-
subject_type?: "
|
|
142
|
+
subject_type?: "user" | "client" | undefined;
|
|
143
143
|
authorization_details_types?: string[] | undefined;
|
|
144
144
|
};
|
|
145
145
|
};
|
|
@@ -151,7 +151,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
151
151
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
152
152
|
allow_any_organization?: boolean | undefined;
|
|
153
153
|
is_system?: boolean | undefined;
|
|
154
|
-
subject_type?: "
|
|
154
|
+
subject_type?: "user" | "client" | undefined;
|
|
155
155
|
authorization_details_types?: string[] | undefined;
|
|
156
156
|
created_at?: string | undefined;
|
|
157
157
|
updated_at?: string | undefined;
|
|
@@ -175,7 +175,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
175
175
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
176
176
|
allow_any_organization?: boolean | undefined;
|
|
177
177
|
is_system?: boolean | undefined;
|
|
178
|
-
subject_type?: "
|
|
178
|
+
subject_type?: "user" | "client" | undefined;
|
|
179
179
|
authorization_details_types?: string[] | undefined;
|
|
180
180
|
};
|
|
181
181
|
};
|
|
@@ -187,7 +187,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
|
|
|
187
187
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
188
188
|
allow_any_organization?: boolean | undefined;
|
|
189
189
|
is_system?: boolean | undefined;
|
|
190
|
-
subject_type?: "
|
|
190
|
+
subject_type?: "user" | "client" | undefined;
|
|
191
191
|
authorization_details_types?: string[] | undefined;
|
|
192
192
|
created_at?: string | undefined;
|
|
193
193
|
updated_at?: string | undefined;
|
|
@@ -233,7 +233,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
|
|
|
233
233
|
};
|
|
234
234
|
output: {};
|
|
235
235
|
outputFormat: string;
|
|
236
|
-
status:
|
|
236
|
+
status: 204;
|
|
237
237
|
} | {
|
|
238
238
|
input: {
|
|
239
239
|
param: {
|
|
@@ -246,7 +246,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
|
|
|
246
246
|
};
|
|
247
247
|
output: {};
|
|
248
248
|
outputFormat: string;
|
|
249
|
-
status:
|
|
249
|
+
status: 404;
|
|
250
250
|
};
|
|
251
251
|
};
|
|
252
252
|
} & {
|
|
@@ -109,7 +109,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
|
|
|
109
109
|
};
|
|
110
110
|
output: {};
|
|
111
111
|
outputFormat: string;
|
|
112
|
-
status:
|
|
112
|
+
status: 204;
|
|
113
113
|
} | {
|
|
114
114
|
input: {
|
|
115
115
|
header: {
|
|
@@ -118,7 +118,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
|
|
|
118
118
|
};
|
|
119
119
|
output: {};
|
|
120
120
|
outputFormat: string;
|
|
121
|
-
status:
|
|
121
|
+
status: 404;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
}, "/">;
|
|
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
|
|
|
30
30
|
log_type: string;
|
|
31
31
|
category: "user_action" | "admin_action" | "system" | "api";
|
|
32
32
|
actor: {
|
|
33
|
-
type: "
|
|
33
|
+
type: "user" | "client_credentials" | "api_key" | "system" | "admin";
|
|
34
34
|
id?: string | undefined;
|
|
35
35
|
email?: string | undefined;
|
|
36
36
|
org_id?: string | undefined;
|