authhero 9.38.0 → 9.40.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 (89) hide show
  1. package/README.md +13 -3
  2. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  3. package/dist/assets/u/widget/index.esm.js +1 -1
  4. package/dist/assets/u/widget/p-603aa8fa.entry.js +1 -0
  5. package/dist/assets/u/widget/p-d0eb5acc.entry.js +1 -0
  6. package/dist/authhero.cjs +175 -170
  7. package/dist/authhero.d.ts +381 -237
  8. package/dist/authhero.mjs +21363 -19930
  9. package/dist/mfa-BlaRHQgI.js +4 -0
  10. package/dist/mfa-Ddp9JT1l.mjs +406 -0
  11. package/dist/{mfa-attempts-BK-gWrgJ.mjs → mfa-attempts-YsmteBp0.mjs} +5188 -4601
  12. package/dist/mfa-attempts-bPJnyu2c.js +385 -0
  13. package/dist/{passkey-enrollment-CmKahPq7.js → passkey-enrollment-CLg7RteL.js} +1 -1
  14. package/dist/tsconfig.types.tsbuildinfo +1 -1
  15. package/dist/types/authentication-flows/common.d.ts +4 -1
  16. package/dist/types/authentication-flows/mfa.d.ts +3 -1
  17. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  18. package/dist/types/emails/index.d.ts +33 -1
  19. package/dist/types/generated/locale-types.d.ts +39 -0
  20. package/dist/types/helpers/client.d.ts +1 -0
  21. package/dist/types/helpers/code-recipient.d.ts +37 -0
  22. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  23. package/dist/types/helpers/response-type-grants.d.ts +8 -0
  24. package/dist/types/hooks/custom-notification-provider.d.ts +174 -0
  25. package/dist/types/hooks/helpers/action-users.d.ts +56 -0
  26. package/dist/types/hooks/helpers/post-login-account-linking.d.ts +18 -4
  27. package/dist/types/hooks/lifecycle-codehooks.d.ts +1 -1
  28. package/dist/types/hooks/pre-screen.d.ts +114 -0
  29. package/dist/types/index.d.ts +295 -217
  30. package/dist/types/routes/auth-api/device.d.ts +8 -8
  31. package/dist/types/routes/auth-api/index.d.ts +18 -18
  32. package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
  33. package/dist/types/routes/auth-api/token.d.ts +10 -10
  34. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  35. package/dist/types/routes/management-api/action-triggers.d.ts +25 -25
  36. package/dist/types/routes/management-api/actions.d.ts +9 -9
  37. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  38. package/dist/types/routes/management-api/branding.d.ts +1 -1
  39. package/dist/types/routes/management-api/clients.d.ts +2 -0
  40. package/dist/types/routes/management-api/connections.d.ts +7 -1
  41. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  42. package/dist/types/routes/management-api/emails.d.ts +2 -2
  43. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  44. package/dist/types/routes/management-api/forms.d.ts +168 -144
  45. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  46. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  47. package/dist/types/routes/management-api/hooks.d.ts +25 -25
  48. package/dist/types/routes/management-api/index.d.ts +222 -190
  49. package/dist/types/routes/management-api/keys.d.ts +8 -8
  50. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  51. package/dist/types/routes/management-api/logs.d.ts +4 -4
  52. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  53. package/dist/types/routes/management-api/organizations.d.ts +8 -8
  54. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  55. package/dist/types/routes/management-api/roles.d.ts +1 -1
  56. package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
  57. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  58. package/dist/types/routes/management-api/tenants.d.ts +29 -29
  59. package/dist/types/routes/management-api/users.d.ts +29 -29
  60. package/dist/types/routes/universal-login/continue.d.ts +35 -0
  61. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  62. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  63. package/dist/types/routes/universal-login/index.d.ts +4 -4
  64. package/dist/types/routes/universal-login/pre-screen-gates.d.ts +31 -0
  65. package/dist/types/routes/universal-login/screens/account-change-email.d.ts +52 -0
  66. package/dist/types/routes/universal-login/screens/account-helpers.d.ts +19 -24
  67. package/dist/types/routes/universal-login/screens/account.d.ts +6 -0
  68. package/dist/types/routes/universal-login/screens/connect-authz.d.ts +13 -1
  69. package/dist/types/routes/universal-login/screens/index.d.ts +4 -2
  70. package/dist/types/routes/universal-login/screens/invalid-session.d.ts +10 -0
  71. package/dist/types/routes/universal-login/screens/login-otp.d.ts +2 -2
  72. package/dist/types/routes/universal-login/screens/signup.d.ts +0 -3
  73. package/dist/types/routes/universal-login/screens/social-connections.d.ts +31 -0
  74. package/dist/types/routes/universal-login/screens/types.d.ts +3 -0
  75. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  76. package/dist/types/routes/universal-login/u2-index.d.ts +50 -5
  77. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  78. package/dist/types/routes/universal-login/u2-widget-page.d.ts +1 -4
  79. package/dist/types/routes/universal-login/widget-assets.d.ts +20 -0
  80. package/dist/types/state-machines/login-session.d.ts +12 -0
  81. package/dist/types/types/AuthHeroConfig.d.ts +9 -1
  82. package/dist/types/types/Hooks.d.ts +62 -17
  83. package/dist/types/utils/embedded-browser.d.ts +4 -0
  84. package/package.json +6 -6
  85. package/dist/assets/u/widget/p-32247347.entry.js +0 -1
  86. package/dist/assets/u/widget/p-3f908508.entry.js +0 -1
  87. package/dist/mfa-DBhvi2B5.js +0 -1
  88. package/dist/mfa-DnCary4g.mjs +0 -128
  89. package/dist/mfa-attempts-C5kobAHS.js +0 -275
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
15
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
15
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
16
16
  body: string;
17
17
  from: string;
18
18
  subject: string;
@@ -33,7 +33,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
33
33
  };
34
34
  } & {
35
35
  json: {
36
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
36
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
37
37
  body: string;
38
38
  from: string;
39
39
  subject: string;
@@ -45,7 +45,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
45
45
  };
46
46
  };
47
47
  output: {
48
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
48
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
49
49
  body: string;
50
50
  from: string;
51
51
  subject: string;
@@ -68,7 +68,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
68
68
  };
69
69
  };
70
70
  output: {
71
- name: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
71
+ name: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
72
72
  body: string;
73
73
  subject: string;
74
74
  }[];
@@ -81,7 +81,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
81
81
  $get: {
82
82
  input: {
83
83
  param: {
84
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
84
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
85
85
  };
86
86
  } & {
87
87
  header: {
@@ -94,7 +94,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
94
94
  } | {
95
95
  input: {
96
96
  param: {
97
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
97
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
98
98
  };
99
99
  } & {
100
100
  header: {
@@ -102,7 +102,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
102
102
  };
103
103
  };
104
104
  output: {
105
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
105
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
106
106
  body: string;
107
107
  from: string;
108
108
  subject: string;
@@ -121,7 +121,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
121
121
  $put: {
122
122
  input: {
123
123
  param: {
124
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
124
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
125
125
  };
126
126
  } & {
127
127
  header: {
@@ -129,7 +129,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
129
129
  };
130
130
  } & {
131
131
  json: {
132
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
132
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
133
133
  body: string;
134
134
  subject: string;
135
135
  syntax?: "liquid" | undefined;
@@ -141,7 +141,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
141
141
  };
142
142
  };
143
143
  output: {
144
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
144
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
145
145
  body: string;
146
146
  from: string;
147
147
  subject: string;
@@ -160,7 +160,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
160
160
  $patch: {
161
161
  input: {
162
162
  param: {
163
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
163
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
164
164
  };
165
165
  } & {
166
166
  header: {
@@ -168,7 +168,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
168
168
  };
169
169
  } & {
170
170
  json: {
171
- template?: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
171
+ template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
172
172
  body?: string | undefined;
173
173
  from?: string | undefined;
174
174
  subject?: string | undefined;
@@ -185,7 +185,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
185
185
  } | {
186
186
  input: {
187
187
  param: {
188
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
188
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
189
189
  };
190
190
  } & {
191
191
  header: {
@@ -193,7 +193,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
193
193
  };
194
194
  } & {
195
195
  json: {
196
- template?: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
196
+ template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
197
197
  body?: string | undefined;
198
198
  from?: string | undefined;
199
199
  subject?: string | undefined;
@@ -205,7 +205,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
205
205
  };
206
206
  };
207
207
  output: {
208
- template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
208
+ template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
209
209
  body: string;
210
210
  from: string;
211
211
  subject: string;
@@ -224,7 +224,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
224
224
  $delete: {
225
225
  input: {
226
226
  param: {
227
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
227
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
228
228
  };
229
229
  } & {
230
230
  header: {
@@ -233,11 +233,11 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
233
233
  };
234
234
  output: {};
235
235
  outputFormat: string;
236
- status: 404;
236
+ status: 204;
237
237
  } | {
238
238
  input: {
239
239
  param: {
240
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
240
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
241
241
  };
242
242
  } & {
243
243
  header: {
@@ -246,7 +246,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
246
246
  };
247
247
  output: {};
248
248
  outputFormat: string;
249
- status: 204;
249
+ status: 404;
250
250
  };
251
251
  };
252
252
  } & {
@@ -254,7 +254,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
254
254
  $post: {
255
255
  input: {
256
256
  param: {
257
- templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
257
+ templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
258
258
  };
259
259
  } & {
260
260
  header: {
@@ -127,7 +127,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
127
127
  };
128
128
  output: {};
129
129
  outputFormat: string;
130
- status: 404;
130
+ status: 204;
131
131
  } | {
132
132
  input: {
133
133
  header: {
@@ -136,7 +136,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
136
136
  };
137
137
  output: {};
138
138
  outputFormat: string;
139
- status: 204;
139
+ status: 404;
140
140
  };
141
141
  };
142
142
  }, "/">;
@@ -320,7 +320,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
320
320
  };
321
321
  output: {};
322
322
  outputFormat: string;
323
- status: 404;
323
+ status: 204;
324
324
  } | {
325
325
  input: {
326
326
  param: {
@@ -333,7 +333,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
333
333
  };
334
334
  output: {};
335
335
  outputFormat: string;
336
- status: 204;
336
+ status: 404;
337
337
  };
338
338
  };
339
339
  }, "/">;