authhero 9.41.0 → 9.43.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 (74) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +114 -111
  3. package/dist/authhero.d.ts +534 -272
  4. package/dist/authhero.mjs +16200 -12462
  5. package/dist/{mfa-Dx8-AJ6U.js → mfa-C8qBEQeH.js} +2 -2
  6. package/dist/{mfa-CdC-9ysu.mjs → mfa-CVF4Wbdz.mjs} +115 -115
  7. package/dist/mfa-attempts-CzGjIGzD.js +395 -0
  8. package/dist/{mfa-attempts-mBkfX0wf.mjs → mfa-attempts-sV0Xs59R.mjs} +5151 -4696
  9. package/dist/{passkey-enrollment-KQcVF_QM.js → passkey-enrollment-CAb2zWEF.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/client.d.ts +26 -0
  13. package/dist/types/helpers/login-migration.d.ts +56 -0
  14. package/dist/types/helpers/login-version.d.ts +18 -0
  15. package/dist/types/helpers/management-audience.d.ts +11 -0
  16. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  17. package/dist/types/helpers/saml-connection-options.d.ts +24 -0
  18. package/dist/types/helpers/saml-request-signature.d.ts +36 -0
  19. package/dist/types/hooks/lifecycle-codehooks.d.ts +1 -1
  20. package/dist/types/index.d.ts +490 -271
  21. package/dist/types/routes/auth-api/authorize.d.ts +13 -13
  22. package/dist/types/routes/auth-api/callback.d.ts +42 -6
  23. package/dist/types/routes/auth-api/device.d.ts +21 -21
  24. package/dist/types/routes/auth-api/index.d.ts +113 -77
  25. package/dist/types/routes/auth-api/logout.d.ts +2 -2
  26. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  27. package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
  28. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  29. package/dist/types/routes/auth-api/token.d.ts +12 -12
  30. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  31. package/dist/types/routes/management-api/action-triggers.d.ts +2 -2
  32. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  33. package/dist/types/routes/management-api/branding-uploads.d.ts +4 -4
  34. package/dist/types/routes/management-api/branding.d.ts +19 -19
  35. package/dist/types/routes/management-api/client-registration-tokens.d.ts +3 -3
  36. package/dist/types/routes/management-api/clients.d.ts +38 -8
  37. package/dist/types/routes/management-api/connections.d.ts +90 -0
  38. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  39. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  40. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  41. package/dist/types/routes/management-api/forms.d.ts +8 -8
  42. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  43. package/dist/types/routes/management-api/hooks.d.ts +21 -21
  44. package/dist/types/routes/management-api/index.d.ts +287 -167
  45. package/dist/types/routes/management-api/keys.d.ts +12 -12
  46. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  47. package/dist/types/routes/management-api/logs.d.ts +4 -4
  48. package/dist/types/routes/management-api/organizations.d.ts +6 -6
  49. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  50. package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
  51. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  52. package/dist/types/routes/management-api/tenant-operations.d.ts +5 -5
  53. package/dist/types/routes/management-api/tenants.d.ts +27 -23
  54. package/dist/types/routes/management-api/themes.d.ts +9 -9
  55. package/dist/types/routes/management-api/users.d.ts +26 -26
  56. package/dist/types/routes/saml/index.d.ts +72 -9
  57. package/dist/types/routes/saml/samlp.d.ts +72 -9
  58. package/dist/types/routes/universal-login/common.d.ts +12 -10
  59. package/dist/types/routes/universal-login/continue.d.ts +4 -4
  60. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  61. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  62. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  63. package/dist/types/routes/universal-login/index.d.ts +8 -8
  64. package/dist/types/routes/universal-login/u2-index.d.ts +9 -9
  65. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  66. package/dist/types/state-machines/login-session.d.ts +1 -1
  67. package/dist/types/strategies/index.d.ts +2 -0
  68. package/dist/types/strategies/samlp.d.ts +58 -0
  69. package/dist/types/types/AuthHeroConfig.d.ts +15 -1
  70. package/dist/types/types/Bindings.d.ts +2 -1
  71. package/dist/types/utils/ssrf-fetch.d.ts +2 -0
  72. package/dist/types/variables.d.ts +7 -6
  73. package/package.json +9 -6
  74. package/dist/mfa-attempts-CtWWceg2.js +0 -393
@@ -76,8 +76,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
76
76
  "/": {
77
77
  $post: {
78
78
  input: {
79
+ query: {
80
+ connection?: string | undefined;
81
+ };
82
+ } & {
79
83
  form: {
80
- state: string;
81
84
  code?: string | undefined;
82
85
  scope?: string | undefined;
83
86
  hd?: string | undefined;
@@ -85,6 +88,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
85
88
  error_description?: string | undefined;
86
89
  error_code?: string | undefined;
87
90
  error_reason?: string | undefined;
91
+ state?: string | undefined;
92
+ SAMLResponse?: string | undefined;
93
+ RelayState?: string | undefined;
88
94
  };
89
95
  };
90
96
  output: {};
@@ -92,8 +98,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
92
98
  status: 302;
93
99
  } | {
94
100
  input: {
101
+ query: {
102
+ connection?: string | undefined;
103
+ };
104
+ } & {
95
105
  form: {
96
- state: string;
97
106
  code?: string | undefined;
98
107
  scope?: string | undefined;
99
108
  hd?: string | undefined;
@@ -101,6 +110,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
101
110
  error_description?: string | undefined;
102
111
  error_code?: string | undefined;
103
112
  error_reason?: string | undefined;
113
+ state?: string | undefined;
114
+ SAMLResponse?: string | undefined;
115
+ RelayState?: string | undefined;
104
116
  };
105
117
  };
106
118
  output: {
@@ -110,8 +122,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
110
122
  status: 400;
111
123
  } | {
112
124
  input: {
125
+ query: {
126
+ connection?: string | undefined;
127
+ };
128
+ } & {
113
129
  form: {
114
- state: string;
115
130
  code?: string | undefined;
116
131
  scope?: string | undefined;
117
132
  hd?: string | undefined;
@@ -119,6 +134,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
119
134
  error_description?: string | undefined;
120
135
  error_code?: string | undefined;
121
136
  error_reason?: string | undefined;
137
+ state?: string | undefined;
138
+ SAMLResponse?: string | undefined;
139
+ RelayState?: string | undefined;
122
140
  };
123
141
  };
124
142
  output: {
@@ -188,8 +206,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
188
206
  "/": {
189
207
  $post: {
190
208
  input: {
209
+ query: {
210
+ connection?: string | undefined;
211
+ };
212
+ } & {
191
213
  form: {
192
- state: string;
193
214
  code?: string | undefined;
194
215
  scope?: string | undefined;
195
216
  hd?: string | undefined;
@@ -197,6 +218,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
197
218
  error_description?: string | undefined;
198
219
  error_code?: string | undefined;
199
220
  error_reason?: string | undefined;
221
+ state?: string | undefined;
222
+ SAMLResponse?: string | undefined;
223
+ RelayState?: string | undefined;
200
224
  };
201
225
  };
202
226
  output: {};
@@ -204,8 +228,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
204
228
  status: 302;
205
229
  } | {
206
230
  input: {
231
+ query: {
232
+ connection?: string | undefined;
233
+ };
234
+ } & {
207
235
  form: {
208
- state: string;
209
236
  code?: string | undefined;
210
237
  scope?: string | undefined;
211
238
  hd?: string | undefined;
@@ -213,6 +240,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
213
240
  error_description?: string | undefined;
214
241
  error_code?: string | undefined;
215
242
  error_reason?: string | undefined;
243
+ state?: string | undefined;
244
+ SAMLResponse?: string | undefined;
245
+ RelayState?: string | undefined;
216
246
  };
217
247
  };
218
248
  output: {
@@ -222,8 +252,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
222
252
  status: 400;
223
253
  } | {
224
254
  input: {
255
+ query: {
256
+ connection?: string | undefined;
257
+ };
258
+ } & {
225
259
  form: {
226
- state: string;
227
260
  code?: string | undefined;
228
261
  scope?: string | undefined;
229
262
  hd?: string | undefined;
@@ -231,6 +264,9 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
231
264
  error_description?: string | undefined;
232
265
  error_code?: string | undefined;
233
266
  error_reason?: string | undefined;
267
+ state?: string | undefined;
268
+ SAMLResponse?: string | undefined;
269
+ RelayState?: string | undefined;
234
270
  };
235
271
  };
236
272
  output: {
@@ -591,18 +627,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
591
627
  session_transfer_token?: string | undefined;
592
628
  };
593
629
  };
594
- output: string | {
595
- access_token: string;
596
- token_type: string;
597
- expires_in: number;
598
- id_token?: string | undefined;
599
- scope?: string | undefined;
600
- state?: string | undefined;
601
- refresh_token?: string | undefined;
602
- issued_token_type?: string | undefined;
630
+ output: {
631
+ message: string;
603
632
  };
604
633
  outputFormat: "json";
605
- status: 200;
634
+ status: 400;
606
635
  } | {
607
636
  input: {
608
637
  query: {
@@ -636,11 +665,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
636
665
  session_transfer_token?: string | undefined;
637
666
  };
638
667
  };
639
- output: {
640
- message: string;
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;
641
677
  };
642
678
  outputFormat: "json";
643
- status: 400;
679
+ status: 200;
644
680
  } | {
645
681
  input: {
646
682
  query: {
@@ -762,17 +798,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
762
798
  email: string;
763
799
  send: "code" | "link";
764
800
  authParams: {
765
- username?: string | undefined;
766
- organization?: string | undefined;
767
801
  scope?: string | undefined;
768
- state?: string | undefined;
769
- connection?: string | undefined;
770
- audience?: string | undefined;
771
- act_as?: string | undefined;
772
802
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
773
803
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
774
- redirect_uri?: string | undefined;
804
+ username?: string | undefined;
805
+ audience?: string | undefined;
806
+ connection?: string | undefined;
775
807
  nonce?: string | undefined;
808
+ state?: string | undefined;
809
+ act_as?: string | undefined;
810
+ redirect_uri?: string | undefined;
811
+ organization?: string | undefined;
776
812
  prompt?: string | undefined;
777
813
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
778
814
  code_challenge?: string | undefined;
@@ -799,17 +835,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
799
835
  phone_number: string;
800
836
  send: "code" | "link";
801
837
  authParams: {
802
- username?: string | undefined;
803
- organization?: string | undefined;
804
838
  scope?: string | undefined;
805
- state?: string | undefined;
806
- connection?: string | undefined;
807
- audience?: string | undefined;
808
- act_as?: string | undefined;
809
839
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
810
840
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
811
- redirect_uri?: string | undefined;
841
+ username?: string | undefined;
842
+ audience?: string | undefined;
843
+ connection?: string | undefined;
812
844
  nonce?: string | undefined;
845
+ state?: string | undefined;
846
+ act_as?: string | undefined;
847
+ redirect_uri?: string | undefined;
848
+ organization?: string | undefined;
813
849
  prompt?: string | undefined;
814
850
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
815
851
  code_challenge?: string | undefined;
@@ -944,14 +980,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
944
980
  input: {
945
981
  form: {
946
982
  token: string;
947
- token_type_hint?: "refresh_token" | "access_token" | undefined;
983
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
948
984
  client_id?: string | undefined;
949
985
  client_secret?: string | undefined;
950
986
  };
951
987
  } & {
952
988
  json: {
953
989
  token: string;
954
- token_type_hint?: "refresh_token" | "access_token" | undefined;
990
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
955
991
  client_id?: string | undefined;
956
992
  client_secret?: string | undefined;
957
993
  };
@@ -963,14 +999,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
963
999
  input: {
964
1000
  form: {
965
1001
  token: string;
966
- token_type_hint?: "refresh_token" | "access_token" | undefined;
1002
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
967
1003
  client_id?: string | undefined;
968
1004
  client_secret?: string | undefined;
969
1005
  };
970
1006
  } & {
971
1007
  json: {
972
1008
  token: string;
973
- token_type_hint?: "refresh_token" | "access_token" | undefined;
1009
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
974
1010
  client_id?: string | undefined;
975
1011
  client_secret?: string | undefined;
976
1012
  };
@@ -985,14 +1021,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
985
1021
  input: {
986
1022
  form: {
987
1023
  token: string;
988
- token_type_hint?: "refresh_token" | "access_token" | undefined;
1024
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
989
1025
  client_id?: string | undefined;
990
1026
  client_secret?: string | undefined;
991
1027
  };
992
1028
  } & {
993
1029
  json: {
994
1030
  token: string;
995
- token_type_hint?: "refresh_token" | "access_token" | undefined;
1031
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
996
1032
  client_id?: string | undefined;
997
1033
  client_secret?: string | undefined;
998
1034
  };
@@ -1016,7 +1052,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1016
1052
  };
1017
1053
  output: {};
1018
1054
  outputFormat: string;
1019
- status: 302;
1055
+ status: 400;
1020
1056
  } | {
1021
1057
  input: {
1022
1058
  query: {
@@ -1026,7 +1062,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1026
1062
  };
1027
1063
  output: {};
1028
1064
  outputFormat: string;
1029
- status: 400;
1065
+ status: 302;
1030
1066
  };
1031
1067
  };
1032
1068
  }, "/activate"> & import("hono/types").MergeSchemaPath<{
@@ -1038,7 +1074,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1038
1074
  client_secret?: string | undefined;
1039
1075
  scope?: string | undefined;
1040
1076
  audience?: string | undefined;
1041
- include_qr_code?: boolean | "true" | "false" | undefined;
1077
+ include_qr_code?: boolean | "false" | "true" | undefined;
1042
1078
  };
1043
1079
  } & {
1044
1080
  json: {
@@ -1046,20 +1082,15 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1046
1082
  client_secret?: string | undefined;
1047
1083
  scope?: string | undefined;
1048
1084
  audience?: string | undefined;
1049
- include_qr_code?: boolean | "true" | "false" | undefined;
1085
+ include_qr_code?: boolean | "false" | "true" | undefined;
1050
1086
  };
1051
1087
  };
1052
1088
  output: {
1053
- device_code: string;
1054
- user_code: string;
1055
- verification_uri: string;
1056
- verification_uri_complete: string;
1057
- expires_in: number;
1058
- interval: number;
1059
- qr_code?: string | undefined;
1089
+ error: string;
1090
+ error_description?: string | undefined;
1060
1091
  };
1061
1092
  outputFormat: "json";
1062
- status: 200;
1093
+ status: 400;
1063
1094
  } | {
1064
1095
  input: {
1065
1096
  form: {
@@ -1067,7 +1098,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1067
1098
  client_secret?: string | undefined;
1068
1099
  scope?: string | undefined;
1069
1100
  audience?: string | undefined;
1070
- include_qr_code?: boolean | "true" | "false" | undefined;
1101
+ include_qr_code?: boolean | "false" | "true" | undefined;
1071
1102
  };
1072
1103
  } & {
1073
1104
  json: {
@@ -1075,15 +1106,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1075
1106
  client_secret?: string | undefined;
1076
1107
  scope?: string | undefined;
1077
1108
  audience?: string | undefined;
1078
- include_qr_code?: boolean | "true" | "false" | undefined;
1109
+ include_qr_code?: boolean | "false" | "true" | undefined;
1079
1110
  };
1080
1111
  };
1081
1112
  output: {
1082
- error: string;
1083
- error_description?: string | undefined;
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;
1084
1120
  };
1085
1121
  outputFormat: "json";
1086
- status: 400;
1122
+ status: 200;
1087
1123
  } | {
1088
1124
  input: {
1089
1125
  form: {
@@ -1091,7 +1127,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1091
1127
  client_secret?: string | undefined;
1092
1128
  scope?: string | undefined;
1093
1129
  audience?: string | undefined;
1094
- include_qr_code?: boolean | "true" | "false" | undefined;
1130
+ include_qr_code?: boolean | "false" | "true" | undefined;
1095
1131
  };
1096
1132
  } & {
1097
1133
  json: {
@@ -1099,7 +1135,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1099
1135
  client_secret?: string | undefined;
1100
1136
  scope?: string | undefined;
1101
1137
  audience?: string | undefined;
1102
- include_qr_code?: boolean | "true" | "false" | undefined;
1138
+ include_qr_code?: boolean | "false" | "true" | undefined;
1103
1139
  };
1104
1140
  };
1105
1141
  output: {
@@ -1115,7 +1151,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1115
1151
  client_secret?: string | undefined;
1116
1152
  scope?: string | undefined;
1117
1153
  audience?: string | undefined;
1118
- include_qr_code?: boolean | "true" | "false" | undefined;
1154
+ include_qr_code?: boolean | "false" | "true" | undefined;
1119
1155
  };
1120
1156
  } & {
1121
1157
  json: {
@@ -1123,7 +1159,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1123
1159
  client_secret?: string | undefined;
1124
1160
  scope?: string | undefined;
1125
1161
  audience?: string | undefined;
1126
- include_qr_code?: boolean | "true" | "false" | undefined;
1162
+ include_qr_code?: boolean | "false" | "true" | undefined;
1127
1163
  };
1128
1164
  };
1129
1165
  output: {
@@ -1416,17 +1452,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1416
1452
  };
1417
1453
  };
1418
1454
  output: {
1419
- access_token: string;
1420
- token_type: string;
1421
- expires_in: number;
1422
- id_token?: string | undefined;
1423
- scope?: string | undefined;
1424
- state?: string | undefined;
1425
- refresh_token?: string | undefined;
1426
- issued_token_type?: string | undefined;
1455
+ error: string;
1456
+ error_description?: string | undefined;
1427
1457
  };
1428
1458
  outputFormat: "json";
1429
- status: 200;
1459
+ status: 400;
1430
1460
  } | {
1431
1461
  input: {
1432
1462
  form: {
@@ -1566,11 +1596,17 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1566
1596
  };
1567
1597
  };
1568
1598
  output: {
1569
- error: string;
1570
- error_description?: string | undefined;
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;
1571
1607
  };
1572
1608
  outputFormat: "json";
1573
- status: 400;
1609
+ status: 200;
1574
1610
  } | {
1575
1611
  input: {
1576
1612
  form: {
@@ -2064,7 +2100,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2064
2100
  };
2065
2101
  output: {};
2066
2102
  outputFormat: string;
2067
- status: 200;
2103
+ status: 400;
2068
2104
  } | {
2069
2105
  input: {
2070
2106
  query: {
@@ -2078,7 +2114,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2078
2114
  };
2079
2115
  output: {};
2080
2116
  outputFormat: string;
2081
- status: 302;
2117
+ status: 200;
2082
2118
  } | {
2083
2119
  input: {
2084
2120
  query: {
@@ -2092,7 +2128,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2092
2128
  };
2093
2129
  output: {};
2094
2130
  outputFormat: string;
2095
- status: 400;
2131
+ status: 302;
2096
2132
  };
2097
2133
  };
2098
2134
  }, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
@@ -2106,7 +2142,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2106
2142
  };
2107
2143
  output: {};
2108
2144
  outputFormat: string;
2109
- status: 302;
2145
+ status: 400;
2110
2146
  } | {
2111
2147
  input: {
2112
2148
  query: {
@@ -2116,7 +2152,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
2116
2152
  };
2117
2153
  output: {};
2118
2154
  outputFormat: string;
2119
- status: 400;
2155
+ status: 302;
2120
2156
  };
2121
2157
  };
2122
2158
  }, "/v2/logout">, "/">;
@@ -14,7 +14,7 @@ export declare const logoutRoutes: OpenAPIHono<{
14
14
  };
15
15
  output: {};
16
16
  outputFormat: string;
17
- status: 302;
17
+ status: 400;
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: 400;
27
+ status: 302;
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: 200;
21
+ status: 400;
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: 302;
35
+ status: 200;
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: 400;
49
+ status: 302;
50
50
  };
51
51
  };
52
52
  }, "/">;
@@ -14,17 +14,17 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- username?: string | undefined;
18
- organization?: string | undefined;
19
17
  scope?: string | undefined;
20
- state?: string | undefined;
21
- connection?: string | undefined;
22
- audience?: string | undefined;
23
- act_as?: string | undefined;
24
18
  response_type?: AuthorizationResponseType | undefined;
25
19
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
26
- redirect_uri?: string | undefined;
20
+ username?: string | undefined;
21
+ audience?: string | undefined;
22
+ connection?: string | undefined;
27
23
  nonce?: string | undefined;
24
+ state?: string | undefined;
25
+ act_as?: string | undefined;
26
+ redirect_uri?: string | undefined;
27
+ organization?: string | undefined;
28
28
  prompt?: string | undefined;
29
29
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
30
30
  code_challenge?: string | undefined;
@@ -51,17 +51,17 @@ export declare const passwordlessRoutes: OpenAPIHono<{
51
51
  phone_number: string;
52
52
  send: "code" | "link";
53
53
  authParams: {
54
- username?: string | undefined;
55
- organization?: string | undefined;
56
54
  scope?: string | undefined;
57
- state?: string | undefined;
58
- connection?: string | undefined;
59
- audience?: string | undefined;
60
- act_as?: string | undefined;
61
55
  response_type?: AuthorizationResponseType | undefined;
62
56
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
63
- redirect_uri?: string | undefined;
57
+ username?: string | undefined;
58
+ audience?: string | undefined;
59
+ connection?: string | undefined;
64
60
  nonce?: string | undefined;
61
+ state?: string | undefined;
62
+ act_as?: string | undefined;
63
+ redirect_uri?: string | undefined;
64
+ organization?: string | undefined;
65
65
  prompt?: string | undefined;
66
66
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
67
67
  code_challenge?: 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?: "refresh_token" | "access_token" | undefined;
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?: "refresh_token" | "access_token" | undefined;
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?: "refresh_token" | "access_token" | undefined;
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?: "refresh_token" | "access_token" | undefined;
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?: "refresh_token" | "access_token" | undefined;
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?: "refresh_token" | "access_token" | undefined;
60
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
61
61
  client_id?: string | undefined;
62
62
  client_secret?: string | undefined;
63
63
  };
@@ -285,17 +285,11 @@ export declare const tokenRoutes: OpenAPIHono<{
285
285
  };
286
286
  };
287
287
  output: {
288
- access_token: string;
289
- token_type: string;
290
- expires_in: number;
291
- id_token?: string | undefined;
292
- scope?: string | undefined;
293
- state?: string | undefined;
294
- refresh_token?: string | undefined;
295
- issued_token_type?: string | undefined;
288
+ error: string;
289
+ error_description?: string | undefined;
296
290
  };
297
291
  outputFormat: "json";
298
- status: 200;
292
+ status: 400;
299
293
  } | {
300
294
  input: {
301
295
  form: {
@@ -435,11 +429,17 @@ export declare const tokenRoutes: OpenAPIHono<{
435
429
  };
436
430
  };
437
431
  output: {
438
- error: string;
439
- error_description?: string | undefined;
432
+ access_token: string;
433
+ token_type: string;
434
+ expires_in: number;
435
+ id_token?: string | undefined;
436
+ scope?: string | undefined;
437
+ state?: string | undefined;
438
+ refresh_token?: string | undefined;
439
+ issued_token_type?: string | undefined;
440
440
  };
441
441
  outputFormat: "json";
442
- status: 400;
442
+ status: 200;
443
443
  } | {
444
444
  input: {
445
445
  form: {