authhero 9.41.0 → 9.42.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 +16181 -12453
  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
@@ -111,18 +111,11 @@ export declare const authorizeRoutes: OpenAPIHono<{
111
111
  session_transfer_token?: string | undefined;
112
112
  };
113
113
  };
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;
114
+ output: {
115
+ message: string;
123
116
  };
124
117
  outputFormat: "json";
125
- status: 200;
118
+ status: 400;
126
119
  } | {
127
120
  input: {
128
121
  query: {
@@ -156,11 +149,18 @@ export declare const authorizeRoutes: OpenAPIHono<{
156
149
  session_transfer_token?: string | undefined;
157
150
  };
158
151
  };
159
- output: {
160
- message: string;
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;
161
161
  };
162
162
  outputFormat: "json";
163
- status: 400;
163
+ status: 200;
164
164
  } | {
165
165
  input: {
166
166
  query: {
@@ -63,8 +63,11 @@ export declare const callbackRoutes: OpenAPIHono<{
63
63
  "/": {
64
64
  $post: {
65
65
  input: {
66
+ query: {
67
+ connection?: string | undefined;
68
+ };
69
+ } & {
66
70
  form: {
67
- state: string;
68
71
  code?: string | undefined;
69
72
  scope?: string | undefined;
70
73
  hd?: string | undefined;
@@ -72,6 +75,9 @@ export declare const callbackRoutes: OpenAPIHono<{
72
75
  error_description?: string | undefined;
73
76
  error_code?: string | undefined;
74
77
  error_reason?: string | undefined;
78
+ state?: string | undefined;
79
+ SAMLResponse?: string | undefined;
80
+ RelayState?: string | undefined;
75
81
  };
76
82
  };
77
83
  output: {};
@@ -79,8 +85,11 @@ export declare const callbackRoutes: OpenAPIHono<{
79
85
  status: 302;
80
86
  } | {
81
87
  input: {
88
+ query: {
89
+ connection?: string | undefined;
90
+ };
91
+ } & {
82
92
  form: {
83
- state: string;
84
93
  code?: string | undefined;
85
94
  scope?: string | undefined;
86
95
  hd?: string | undefined;
@@ -88,6 +97,9 @@ export declare const callbackRoutes: OpenAPIHono<{
88
97
  error_description?: string | undefined;
89
98
  error_code?: string | undefined;
90
99
  error_reason?: string | undefined;
100
+ state?: string | undefined;
101
+ SAMLResponse?: string | undefined;
102
+ RelayState?: string | undefined;
91
103
  };
92
104
  };
93
105
  output: {
@@ -97,8 +109,11 @@ export declare const callbackRoutes: OpenAPIHono<{
97
109
  status: 400;
98
110
  } | {
99
111
  input: {
112
+ query: {
113
+ connection?: string | undefined;
114
+ };
115
+ } & {
100
116
  form: {
101
- state: string;
102
117
  code?: string | undefined;
103
118
  scope?: string | undefined;
104
119
  hd?: string | undefined;
@@ -106,6 +121,9 @@ export declare const callbackRoutes: OpenAPIHono<{
106
121
  error_description?: string | undefined;
107
122
  error_code?: string | undefined;
108
123
  error_reason?: string | undefined;
124
+ state?: string | undefined;
125
+ SAMLResponse?: string | undefined;
126
+ RelayState?: string | undefined;
109
127
  };
110
128
  };
111
129
  output: {
@@ -179,8 +197,11 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
179
197
  "/": {
180
198
  $post: {
181
199
  input: {
200
+ query: {
201
+ connection?: string | undefined;
202
+ };
203
+ } & {
182
204
  form: {
183
- state: string;
184
205
  code?: string | undefined;
185
206
  scope?: string | undefined;
186
207
  hd?: string | undefined;
@@ -188,6 +209,9 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
188
209
  error_description?: string | undefined;
189
210
  error_code?: string | undefined;
190
211
  error_reason?: string | undefined;
212
+ state?: string | undefined;
213
+ SAMLResponse?: string | undefined;
214
+ RelayState?: string | undefined;
191
215
  };
192
216
  };
193
217
  output: {};
@@ -195,8 +219,11 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
195
219
  status: 302;
196
220
  } | {
197
221
  input: {
222
+ query: {
223
+ connection?: string | undefined;
224
+ };
225
+ } & {
198
226
  form: {
199
- state: string;
200
227
  code?: string | undefined;
201
228
  scope?: string | undefined;
202
229
  hd?: string | undefined;
@@ -204,6 +231,9 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
204
231
  error_description?: string | undefined;
205
232
  error_code?: string | undefined;
206
233
  error_reason?: string | undefined;
234
+ state?: string | undefined;
235
+ SAMLResponse?: string | undefined;
236
+ RelayState?: string | undefined;
207
237
  };
208
238
  };
209
239
  output: {
@@ -213,8 +243,11 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
213
243
  status: 400;
214
244
  } | {
215
245
  input: {
246
+ query: {
247
+ connection?: string | undefined;
248
+ };
249
+ } & {
216
250
  form: {
217
- state: string;
218
251
  code?: string | undefined;
219
252
  scope?: string | undefined;
220
253
  hd?: string | undefined;
@@ -222,6 +255,9 @@ export declare const loginCallbackRoutes: OpenAPIHono<{
222
255
  error_description?: string | undefined;
223
256
  error_code?: string | undefined;
224
257
  error_reason?: string | undefined;
258
+ state?: string | undefined;
259
+ SAMLResponse?: string | undefined;
260
+ RelayState?: string | undefined;
225
261
  };
226
262
  };
227
263
  output: {
@@ -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 | "true" | "false" | undefined;
15
+ include_qr_code?: boolean | "false" | "true" | undefined;
16
16
  };
17
17
  } & {
18
18
  json: {
@@ -20,20 +20,15 @@ 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 | "true" | "false" | undefined;
23
+ include_qr_code?: boolean | "false" | "true" | undefined;
24
24
  };
25
25
  };
26
26
  output: {
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;
27
+ error: string;
28
+ error_description?: string | undefined;
34
29
  };
35
30
  outputFormat: "json";
36
- status: 200;
31
+ status: 400;
37
32
  } | {
38
33
  input: {
39
34
  form: {
@@ -41,7 +36,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
41
36
  client_secret?: string | undefined;
42
37
  scope?: string | undefined;
43
38
  audience?: string | undefined;
44
- include_qr_code?: boolean | "true" | "false" | undefined;
39
+ include_qr_code?: boolean | "false" | "true" | undefined;
45
40
  };
46
41
  } & {
47
42
  json: {
@@ -49,15 +44,20 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
49
44
  client_secret?: string | undefined;
50
45
  scope?: string | undefined;
51
46
  audience?: string | undefined;
52
- include_qr_code?: boolean | "true" | "false" | undefined;
47
+ include_qr_code?: boolean | "false" | "true" | undefined;
53
48
  };
54
49
  };
55
50
  output: {
56
- error: string;
57
- error_description?: string | undefined;
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;
58
58
  };
59
59
  outputFormat: "json";
60
- status: 400;
60
+ status: 200;
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 | "true" | "false" | undefined;
68
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
76
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
92
+ include_qr_code?: boolean | "false" | "true" | 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 | "true" | "false" | undefined;
100
+ include_qr_code?: boolean | "false" | "true" | 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: 302;
126
+ status: 400;
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: 400;
136
+ status: 302;
137
137
  };
138
138
  };
139
139
  }, "/">;