authhero 9.42.0 → 9.44.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.
Files changed (61) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +197 -163
  3. package/dist/authhero.d.ts +219 -215
  4. package/dist/authhero.mjs +11094 -11018
  5. package/dist/{mfa-C8qBEQeH.js → mfa-B0J_xOxl.js} +1 -1
  6. package/dist/{mfa-CVF4Wbdz.mjs → mfa-CX1JyNyV.mjs} +1 -1
  7. package/dist/{mfa-attempts-sV0Xs59R.mjs → mfa-attempts-BNf9KSrR.mjs} +3 -1
  8. package/dist/{mfa-attempts-CzGjIGzD.js → mfa-attempts-suDM5Cv-.js} +3 -3
  9. package/dist/{passkey-enrollment-CAb2zWEF.js → passkey-enrollment-D180Gog3.js} +1 -1
  10. package/dist/tsconfig.types.tsbuildinfo +1 -1
  11. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  12. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  13. package/dist/types/helpers/login-migration.d.ts +23 -2
  14. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  15. package/dist/types/index.d.ts +219 -215
  16. package/dist/types/routes/auth-api/authorize.d.ts +13 -13
  17. package/dist/types/routes/auth-api/device.d.ts +21 -21
  18. package/dist/types/routes/auth-api/index.d.ts +69 -69
  19. package/dist/types/routes/auth-api/logout.d.ts +2 -2
  20. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  21. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  22. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  23. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  24. package/dist/types/routes/auth-api/token.d.ts +12 -12
  25. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  26. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  27. package/dist/types/routes/management-api/branding.d.ts +7 -3
  28. package/dist/types/routes/management-api/client-registration-tokens.d.ts +8 -8
  29. package/dist/types/routes/management-api/clients.d.ts +16 -16
  30. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  31. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  32. package/dist/types/routes/management-api/forms.d.ts +8 -8
  33. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  34. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  35. package/dist/types/routes/management-api/index.d.ts +123 -119
  36. package/dist/types/routes/management-api/keys.d.ts +12 -12
  37. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  38. package/dist/types/routes/management-api/logs.d.ts +4 -4
  39. package/dist/types/routes/management-api/organizations.d.ts +4 -4
  40. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  41. package/dist/types/routes/management-api/rollouts.d.ts +6 -6
  42. package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
  43. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  44. package/dist/types/routes/management-api/tenant-operations.d.ts +5 -5
  45. package/dist/types/routes/management-api/tenants.d.ts +9 -9
  46. package/dist/types/routes/management-api/users.d.ts +20 -20
  47. package/dist/types/routes/saml/index.d.ts +10 -10
  48. package/dist/types/routes/saml/samlp.d.ts +10 -10
  49. package/dist/types/routes/universal-login/common.d.ts +2 -0
  50. package/dist/types/routes/universal-login/continue.d.ts +4 -4
  51. package/dist/types/routes/universal-login/dark-theme.d.ts +14 -2
  52. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  53. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  54. package/dist/types/routes/universal-login/index.d.ts +8 -8
  55. package/dist/types/routes/universal-login/u2-index.d.ts +9 -9
  56. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  57. package/dist/types/routes/universal-login/u2-widget-page.d.ts +20 -2
  58. package/dist/types/routes/universal-login/universal-login-template.d.ts +5 -0
  59. package/dist/types/state-machines/login-session.d.ts +1 -1
  60. package/dist/types/strategies/apple.d.ts +1 -1
  61. package/package.json +7 -7
@@ -111,11 +111,18 @@ export declare const authorizeRoutes: OpenAPIHono<{
111
111
  session_transfer_token?: string | undefined;
112
112
  };
113
113
  };
114
- output: {
115
- message: string;
114
+ output: string | {
115
+ access_token: string;
116
+ token_type: string;
117
+ expires_in: number;
118
+ id_token?: string | undefined;
119
+ scope?: string | undefined;
120
+ state?: string | undefined;
121
+ refresh_token?: string | undefined;
122
+ issued_token_type?: string | undefined;
116
123
  };
117
124
  outputFormat: "json";
118
- status: 400;
125
+ status: 200;
119
126
  } | {
120
127
  input: {
121
128
  query: {
@@ -149,18 +156,11 @@ export declare const authorizeRoutes: OpenAPIHono<{
149
156
  session_transfer_token?: string | undefined;
150
157
  };
151
158
  };
152
- output: string | {
153
- access_token: string;
154
- token_type: string;
155
- expires_in: number;
156
- id_token?: string | undefined;
157
- scope?: string | undefined;
158
- state?: string | undefined;
159
- refresh_token?: string | undefined;
160
- issued_token_type?: string | undefined;
159
+ output: {
160
+ message: string;
161
161
  };
162
162
  outputFormat: "json";
163
- status: 200;
163
+ status: 400;
164
164
  } | {
165
165
  input: {
166
166
  query: {
@@ -12,7 +12,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
12
12
  client_secret?: string | undefined;
13
13
  scope?: string | undefined;
14
14
  audience?: string | undefined;
15
- include_qr_code?: boolean | "false" | "true" | undefined;
15
+ include_qr_code?: boolean | "true" | "false" | undefined;
16
16
  };
17
17
  } & {
18
18
  json: {
@@ -20,15 +20,20 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
20
20
  client_secret?: string | undefined;
21
21
  scope?: string | undefined;
22
22
  audience?: string | undefined;
23
- include_qr_code?: boolean | "false" | "true" | undefined;
23
+ include_qr_code?: boolean | "true" | "false" | undefined;
24
24
  };
25
25
  };
26
26
  output: {
27
- error: string;
28
- error_description?: string | undefined;
27
+ device_code: string;
28
+ user_code: string;
29
+ verification_uri: string;
30
+ verification_uri_complete: string;
31
+ expires_in: number;
32
+ interval: number;
33
+ qr_code?: string | undefined;
29
34
  };
30
35
  outputFormat: "json";
31
- status: 400;
36
+ status: 200;
32
37
  } | {
33
38
  input: {
34
39
  form: {
@@ -36,7 +41,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
36
41
  client_secret?: string | undefined;
37
42
  scope?: string | undefined;
38
43
  audience?: string | undefined;
39
- include_qr_code?: boolean | "false" | "true" | undefined;
44
+ include_qr_code?: boolean | "true" | "false" | undefined;
40
45
  };
41
46
  } & {
42
47
  json: {
@@ -44,20 +49,15 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
44
49
  client_secret?: string | undefined;
45
50
  scope?: string | undefined;
46
51
  audience?: string | undefined;
47
- include_qr_code?: boolean | "false" | "true" | undefined;
52
+ include_qr_code?: boolean | "true" | "false" | undefined;
48
53
  };
49
54
  };
50
55
  output: {
51
- device_code: string;
52
- user_code: string;
53
- verification_uri: string;
54
- verification_uri_complete: string;
55
- expires_in: number;
56
- interval: number;
57
- qr_code?: string | undefined;
56
+ error: string;
57
+ error_description?: string | undefined;
58
58
  };
59
59
  outputFormat: "json";
60
- status: 200;
60
+ status: 400;
61
61
  } | {
62
62
  input: {
63
63
  form: {
@@ -65,7 +65,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
65
65
  client_secret?: string | undefined;
66
66
  scope?: string | undefined;
67
67
  audience?: string | undefined;
68
- include_qr_code?: boolean | "false" | "true" | undefined;
68
+ include_qr_code?: boolean | "true" | "false" | undefined;
69
69
  };
70
70
  } & {
71
71
  json: {
@@ -73,7 +73,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
73
73
  client_secret?: string | undefined;
74
74
  scope?: string | undefined;
75
75
  audience?: string | undefined;
76
- include_qr_code?: boolean | "false" | "true" | undefined;
76
+ include_qr_code?: boolean | "true" | "false" | undefined;
77
77
  };
78
78
  };
79
79
  output: {
@@ -89,7 +89,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
89
89
  client_secret?: string | undefined;
90
90
  scope?: string | undefined;
91
91
  audience?: string | undefined;
92
- include_qr_code?: boolean | "false" | "true" | undefined;
92
+ include_qr_code?: boolean | "true" | "false" | undefined;
93
93
  };
94
94
  } & {
95
95
  json: {
@@ -97,7 +97,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
97
97
  client_secret?: string | undefined;
98
98
  scope?: string | undefined;
99
99
  audience?: string | undefined;
100
- include_qr_code?: boolean | "false" | "true" | undefined;
100
+ include_qr_code?: boolean | "true" | "false" | undefined;
101
101
  };
102
102
  };
103
103
  output: {
@@ -123,7 +123,7 @@ export declare const activateRoutes: OpenAPIHono<{
123
123
  };
124
124
  output: {};
125
125
  outputFormat: string;
126
- status: 400;
126
+ status: 302;
127
127
  } | {
128
128
  input: {
129
129
  query: {
@@ -133,7 +133,7 @@ export declare const activateRoutes: OpenAPIHono<{
133
133
  };
134
134
  output: {};
135
135
  outputFormat: string;
136
- status: 302;
136
+ status: 400;
137
137
  };
138
138
  };
139
139
  }, "/">;
@@ -337,7 +337,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
337
337
  scope?: string | undefined;
338
338
  grant_types?: string[] | undefined;
339
339
  response_types?: string[] | undefined;
340
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
340
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
341
341
  jwks_uri?: string | undefined;
342
342
  jwks?: Record<string, unknown> | undefined;
343
343
  software_id?: string | undefined;
@@ -435,7 +435,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
435
435
  scope?: string | undefined;
436
436
  grant_types?: string[] | undefined;
437
437
  response_types?: string[] | undefined;
438
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
438
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
439
439
  jwks_uri?: string | undefined;
440
440
  jwks?: Record<string, unknown> | undefined;
441
441
  software_id?: string | undefined;
@@ -627,11 +627,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
627
627
  session_transfer_token?: string | undefined;
628
628
  };
629
629
  };
630
- output: {
631
- message: string;
630
+ output: string | {
631
+ access_token: string;
632
+ token_type: string;
633
+ expires_in: number;
634
+ id_token?: string | undefined;
635
+ scope?: string | undefined;
636
+ state?: string | undefined;
637
+ refresh_token?: string | undefined;
638
+ issued_token_type?: string | undefined;
632
639
  };
633
640
  outputFormat: "json";
634
- status: 400;
641
+ status: 200;
635
642
  } | {
636
643
  input: {
637
644
  query: {
@@ -665,18 +672,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
665
672
  session_transfer_token?: string | undefined;
666
673
  };
667
674
  };
668
- output: string | {
669
- access_token: string;
670
- token_type: string;
671
- expires_in: number;
672
- id_token?: string | undefined;
673
- scope?: string | undefined;
674
- state?: string | undefined;
675
- refresh_token?: string | undefined;
676
- issued_token_type?: string | undefined;
675
+ output: {
676
+ message: string;
677
677
  };
678
678
  outputFormat: "json";
679
- status: 200;
679
+ status: 400;
680
680
  } | {
681
681
  input: {
682
682
  query: {
@@ -799,16 +799,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
799
799
  send: "code" | "link";
800
800
  authParams: {
801
801
  scope?: string | undefined;
802
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
803
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
802
+ state?: string | undefined;
804
803
  username?: string | undefined;
805
- audience?: string | undefined;
806
804
  connection?: string | undefined;
807
- nonce?: string | undefined;
808
- state?: string | undefined;
809
805
  act_as?: string | undefined;
806
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
807
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
810
808
  redirect_uri?: string | undefined;
809
+ audience?: string | undefined;
811
810
  organization?: string | undefined;
811
+ nonce?: string | undefined;
812
812
  prompt?: string | undefined;
813
813
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
814
814
  code_challenge?: string | undefined;
@@ -836,16 +836,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
836
836
  send: "code" | "link";
837
837
  authParams: {
838
838
  scope?: string | undefined;
839
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
840
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
839
+ state?: string | undefined;
841
840
  username?: string | undefined;
842
- audience?: string | undefined;
843
841
  connection?: string | undefined;
844
- nonce?: string | undefined;
845
- state?: string | undefined;
846
842
  act_as?: string | undefined;
843
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
844
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
847
845
  redirect_uri?: string | undefined;
846
+ audience?: string | undefined;
848
847
  organization?: string | undefined;
848
+ nonce?: string | undefined;
849
849
  prompt?: string | undefined;
850
850
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
851
851
  code_challenge?: string | undefined;
@@ -980,14 +980,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
980
980
  input: {
981
981
  form: {
982
982
  token: string;
983
- token_type_hint?: "access_token" | "refresh_token" | undefined;
983
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
984
984
  client_id?: string | undefined;
985
985
  client_secret?: string | undefined;
986
986
  };
987
987
  } & {
988
988
  json: {
989
989
  token: string;
990
- token_type_hint?: "access_token" | "refresh_token" | undefined;
990
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
991
991
  client_id?: string | undefined;
992
992
  client_secret?: string | undefined;
993
993
  };
@@ -999,14 +999,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
999
999
  input: {
1000
1000
  form: {
1001
1001
  token: string;
1002
- token_type_hint?: "access_token" | "refresh_token" | undefined;
1002
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
1003
1003
  client_id?: string | undefined;
1004
1004
  client_secret?: string | undefined;
1005
1005
  };
1006
1006
  } & {
1007
1007
  json: {
1008
1008
  token: string;
1009
- token_type_hint?: "access_token" | "refresh_token" | undefined;
1009
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
1010
1010
  client_id?: string | undefined;
1011
1011
  client_secret?: string | undefined;
1012
1012
  };
@@ -1021,14 +1021,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1021
1021
  input: {
1022
1022
  form: {
1023
1023
  token: string;
1024
- token_type_hint?: "access_token" | "refresh_token" | undefined;
1024
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
1025
1025
  client_id?: string | undefined;
1026
1026
  client_secret?: string | undefined;
1027
1027
  };
1028
1028
  } & {
1029
1029
  json: {
1030
1030
  token: string;
1031
- token_type_hint?: "access_token" | "refresh_token" | undefined;
1031
+ token_type_hint?: "refresh_token" | "access_token" | undefined;
1032
1032
  client_id?: string | undefined;
1033
1033
  client_secret?: string | undefined;
1034
1034
  };
@@ -1052,7 +1052,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1052
1052
  };
1053
1053
  output: {};
1054
1054
  outputFormat: string;
1055
- status: 400;
1055
+ status: 302;
1056
1056
  } | {
1057
1057
  input: {
1058
1058
  query: {
@@ -1062,7 +1062,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1062
1062
  };
1063
1063
  output: {};
1064
1064
  outputFormat: string;
1065
- status: 302;
1065
+ status: 400;
1066
1066
  };
1067
1067
  };
1068
1068
  }, "/activate"> & import("hono/types").MergeSchemaPath<{
@@ -1074,7 +1074,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1074
1074
  client_secret?: string | undefined;
1075
1075
  scope?: string | undefined;
1076
1076
  audience?: string | undefined;
1077
- include_qr_code?: boolean | "false" | "true" | undefined;
1077
+ include_qr_code?: boolean | "true" | "false" | undefined;
1078
1078
  };
1079
1079
  } & {
1080
1080
  json: {
@@ -1082,15 +1082,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1082
1082
  client_secret?: string | undefined;
1083
1083
  scope?: string | undefined;
1084
1084
  audience?: string | undefined;
1085
- include_qr_code?: boolean | "false" | "true" | undefined;
1085
+ include_qr_code?: boolean | "true" | "false" | undefined;
1086
1086
  };
1087
1087
  };
1088
1088
  output: {
1089
- error: string;
1090
- error_description?: string | undefined;
1089
+ device_code: string;
1090
+ user_code: string;
1091
+ verification_uri: string;
1092
+ verification_uri_complete: string;
1093
+ expires_in: number;
1094
+ interval: number;
1095
+ qr_code?: string | undefined;
1091
1096
  };
1092
1097
  outputFormat: "json";
1093
- status: 400;
1098
+ status: 200;
1094
1099
  } | {
1095
1100
  input: {
1096
1101
  form: {
@@ -1098,7 +1103,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1098
1103
  client_secret?: string | undefined;
1099
1104
  scope?: string | undefined;
1100
1105
  audience?: string | undefined;
1101
- include_qr_code?: boolean | "false" | "true" | undefined;
1106
+ include_qr_code?: boolean | "true" | "false" | undefined;
1102
1107
  };
1103
1108
  } & {
1104
1109
  json: {
@@ -1106,20 +1111,15 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1106
1111
  client_secret?: string | undefined;
1107
1112
  scope?: string | undefined;
1108
1113
  audience?: string | undefined;
1109
- include_qr_code?: boolean | "false" | "true" | undefined;
1114
+ include_qr_code?: boolean | "true" | "false" | undefined;
1110
1115
  };
1111
1116
  };
1112
1117
  output: {
1113
- device_code: string;
1114
- user_code: string;
1115
- verification_uri: string;
1116
- verification_uri_complete: string;
1117
- expires_in: number;
1118
- interval: number;
1119
- qr_code?: string | undefined;
1118
+ error: string;
1119
+ error_description?: string | undefined;
1120
1120
  };
1121
1121
  outputFormat: "json";
1122
- status: 200;
1122
+ status: 400;
1123
1123
  } | {
1124
1124
  input: {
1125
1125
  form: {
@@ -1127,7 +1127,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1127
1127
  client_secret?: string | undefined;
1128
1128
  scope?: string | undefined;
1129
1129
  audience?: string | undefined;
1130
- include_qr_code?: boolean | "false" | "true" | undefined;
1130
+ include_qr_code?: boolean | "true" | "false" | undefined;
1131
1131
  };
1132
1132
  } & {
1133
1133
  json: {
@@ -1135,7 +1135,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1135
1135
  client_secret?: string | undefined;
1136
1136
  scope?: string | undefined;
1137
1137
  audience?: string | undefined;
1138
- include_qr_code?: boolean | "false" | "true" | undefined;
1138
+ include_qr_code?: boolean | "true" | "false" | undefined;
1139
1139
  };
1140
1140
  };
1141
1141
  output: {
@@ -1151,7 +1151,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1151
1151
  client_secret?: string | undefined;
1152
1152
  scope?: string | undefined;
1153
1153
  audience?: string | undefined;
1154
- include_qr_code?: boolean | "false" | "true" | undefined;
1154
+ include_qr_code?: boolean | "true" | "false" | undefined;
1155
1155
  };
1156
1156
  } & {
1157
1157
  json: {
@@ -1159,7 +1159,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1159
1159
  client_secret?: string | undefined;
1160
1160
  scope?: string | undefined;
1161
1161
  audience?: string | undefined;
1162
- include_qr_code?: boolean | "false" | "true" | undefined;
1162
+ include_qr_code?: boolean | "true" | "false" | undefined;
1163
1163
  };
1164
1164
  };
1165
1165
  output: {
@@ -1452,11 +1452,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1452
1452
  };
1453
1453
  };
1454
1454
  output: {
1455
- error: string;
1456
- error_description?: string | undefined;
1455
+ access_token: string;
1456
+ token_type: string;
1457
+ expires_in: number;
1458
+ id_token?: string | undefined;
1459
+ scope?: string | undefined;
1460
+ state?: string | undefined;
1461
+ refresh_token?: string | undefined;
1462
+ issued_token_type?: string | undefined;
1457
1463
  };
1458
1464
  outputFormat: "json";
1459
- status: 400;
1465
+ status: 200;
1460
1466
  } | {
1461
1467
  input: {
1462
1468
  form: {
@@ -1596,17 +1602,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1596
1602
  };
1597
1603
  };
1598
1604
  output: {
1599
- access_token: string;
1600
- token_type: string;
1601
- expires_in: number;
1602
- id_token?: string | undefined;
1603
- scope?: string | undefined;
1604
- state?: string | undefined;
1605
- refresh_token?: string | undefined;
1606
- issued_token_type?: string | undefined;
1605
+ error: string;
1606
+ error_description?: string | undefined;
1607
1607
  };
1608
1608
  outputFormat: "json";
1609
- status: 200;
1609
+ status: 400;
1610
1610
  } | {
1611
1611
  input: {
1612
1612
  form: {
@@ -2100,7 +2100,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2100
2100
  };
2101
2101
  output: {};
2102
2102
  outputFormat: string;
2103
- status: 400;
2103
+ status: 200;
2104
2104
  } | {
2105
2105
  input: {
2106
2106
  query: {
@@ -2114,7 +2114,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2114
2114
  };
2115
2115
  output: {};
2116
2116
  outputFormat: string;
2117
- status: 200;
2117
+ status: 302;
2118
2118
  } | {
2119
2119
  input: {
2120
2120
  query: {
@@ -2128,7 +2128,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2128
2128
  };
2129
2129
  output: {};
2130
2130
  outputFormat: string;
2131
- status: 302;
2131
+ status: 400;
2132
2132
  };
2133
2133
  };
2134
2134
  }, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
@@ -2142,7 +2142,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2142
2142
  };
2143
2143
  output: {};
2144
2144
  outputFormat: string;
2145
- status: 400;
2145
+ status: 302;
2146
2146
  } | {
2147
2147
  input: {
2148
2148
  query: {
@@ -2152,7 +2152,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2152
2152
  };
2153
2153
  output: {};
2154
2154
  outputFormat: string;
2155
- status: 302;
2155
+ status: 400;
2156
2156
  };
2157
2157
  };
2158
2158
  }, "/v2/logout">, "/">;
@@ -14,7 +14,7 @@ export declare const logoutRoutes: OpenAPIHono<{
14
14
  };
15
15
  output: {};
16
16
  outputFormat: string;
17
- status: 400;
17
+ status: 302;
18
18
  } | {
19
19
  input: {
20
20
  query: {
@@ -24,7 +24,7 @@ export declare const logoutRoutes: OpenAPIHono<{
24
24
  };
25
25
  output: {};
26
26
  outputFormat: string;
27
- status: 302;
27
+ status: 400;
28
28
  };
29
29
  };
30
30
  }, "/">;
@@ -18,7 +18,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
18
18
  };
19
19
  output: {};
20
20
  outputFormat: string;
21
- status: 400;
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: 200;
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: 302;
49
+ status: 400;
50
50
  };
51
51
  };
52
52
  }, "/">;
@@ -15,16 +15,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
15
15
  send: "code" | "link";
16
16
  authParams: {
17
17
  scope?: string | undefined;
18
- response_type?: AuthorizationResponseType | undefined;
19
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
18
+ state?: string | undefined;
20
19
  username?: string | undefined;
21
- audience?: string | undefined;
22
20
  connection?: string | undefined;
23
- nonce?: string | undefined;
24
- state?: string | undefined;
25
21
  act_as?: string | undefined;
22
+ response_type?: AuthorizationResponseType | undefined;
23
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
26
24
  redirect_uri?: string | undefined;
25
+ audience?: string | undefined;
27
26
  organization?: string | undefined;
27
+ nonce?: string | undefined;
28
28
  prompt?: string | undefined;
29
29
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
30
30
  code_challenge?: string | undefined;
@@ -52,16 +52,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
52
52
  send: "code" | "link";
53
53
  authParams: {
54
54
  scope?: string | undefined;
55
- response_type?: AuthorizationResponseType | undefined;
56
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
55
+ state?: string | undefined;
57
56
  username?: string | undefined;
58
- audience?: string | undefined;
59
57
  connection?: string | undefined;
60
- nonce?: string | undefined;
61
- state?: string | undefined;
62
58
  act_as?: string | undefined;
59
+ response_type?: AuthorizationResponseType | undefined;
60
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
63
61
  redirect_uri?: string | undefined;
62
+ audience?: string | undefined;
64
63
  organization?: string | undefined;
64
+ nonce?: string | undefined;
65
65
  prompt?: string | undefined;
66
66
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
67
67
  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" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
21
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
22
22
  jwks_uri?: string | undefined;
23
23
  jwks?: Record<string, unknown> | undefined;
24
24
  software_id?: string | undefined;
@@ -116,7 +116,7 @@ export declare const registerRoutes: OpenAPIHono<{
116
116
  scope?: string | undefined;
117
117
  grant_types?: string[] | undefined;
118
118
  response_types?: string[] | undefined;
119
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
119
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
120
120
  jwks_uri?: string | undefined;
121
121
  jwks?: Record<string, unknown> | undefined;
122
122
  software_id?: string | undefined;