authhero 5.21.1 → 7.0.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 (45) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +105 -105
  3. package/dist/authhero.d.ts +173 -122
  4. package/dist/authhero.mjs +13563 -10885
  5. package/dist/stats.html +1 -1
  6. package/dist/tsconfig.types.tsbuildinfo +1 -1
  7. package/dist/types/authentication-flows/passwordless.d.ts +3 -3
  8. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  9. package/dist/types/index.d.ts +116 -115
  10. package/dist/types/routes/auth-api/index.d.ts +21 -21
  11. package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
  12. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  13. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  14. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  15. package/dist/types/routes/management-api/actions.d.ts +3 -3
  16. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  17. package/dist/types/routes/management-api/client-grants.d.ts +8 -8
  18. package/dist/types/routes/management-api/clients.d.ts +7 -7
  19. package/dist/types/routes/management-api/custom-domains.d.ts +7 -7
  20. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  21. package/dist/types/routes/management-api/emails.d.ts +2 -2
  22. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  23. package/dist/types/routes/management-api/forms.d.ts +7 -7
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +82 -82
  26. package/dist/types/routes/management-api/logs.d.ts +3 -3
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  29. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  30. package/dist/types/routes/management-api/users.d.ts +2 -2
  31. package/dist/types/routes/proxy-control-plane/index.d.ts +21 -7
  32. package/dist/types/routes/proxy-control-plane/verify.d.ts +39 -0
  33. package/dist/types/routes/universal-login/common.d.ts +2 -2
  34. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  35. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  36. package/dist/types/routes/universal-login/index.d.ts +4 -4
  37. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  38. package/dist/types/routes/universal-login/u2-index.d.ts +8 -8
  39. package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
  40. package/dist/types/strategies/microsoft-entra.d.ts +23 -0
  41. package/dist/types/strategies/waad.d.ts +24 -0
  42. package/dist/types/strategies/windowslive.d.ts +24 -0
  43. package/dist/types/types/AuthHeroConfig.d.ts +17 -5
  44. package/dist/types/utils/jwks.d.ts +2 -2
  45. package/package.json +5 -5
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
30
30
  log_type: string;
31
31
  category: "user_action" | "admin_action" | "system" | "api";
32
32
  actor: {
33
- type: "user" | "client_credentials" | "system" | "admin" | "api_key";
33
+ type: "client_credentials" | "user" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -258,7 +258,7 @@ export declare const formsRoutes: OpenAPIHono<{
258
258
  value: string;
259
259
  label: string;
260
260
  }[] | undefined;
261
- display?: "checkbox" | "radio" | undefined;
261
+ display?: "radio" | "checkbox" | undefined;
262
262
  multiple?: boolean | undefined;
263
263
  default_value?: string | string[] | undefined;
264
264
  } | undefined;
@@ -835,7 +835,7 @@ export declare const formsRoutes: OpenAPIHono<{
835
835
  value: string;
836
836
  label: string;
837
837
  }[] | undefined;
838
- display?: "checkbox" | "radio" | undefined;
838
+ display?: "radio" | "checkbox" | undefined;
839
839
  multiple?: boolean | undefined;
840
840
  default_value?: string | string[] | undefined;
841
841
  } | undefined;
@@ -1427,7 +1427,7 @@ export declare const formsRoutes: OpenAPIHono<{
1427
1427
  value: string;
1428
1428
  label: string;
1429
1429
  }[] | undefined;
1430
- display?: "checkbox" | "radio" | undefined;
1430
+ display?: "radio" | "checkbox" | undefined;
1431
1431
  multiple?: boolean | undefined;
1432
1432
  default_value?: string | string[] | undefined;
1433
1433
  } | undefined;
@@ -2025,7 +2025,7 @@ export declare const formsRoutes: OpenAPIHono<{
2025
2025
  value: string;
2026
2026
  label: string;
2027
2027
  }[] | undefined;
2028
- display?: "checkbox" | "radio" | undefined;
2028
+ display?: "radio" | "checkbox" | undefined;
2029
2029
  multiple?: boolean | undefined;
2030
2030
  default_value?: string | string[] | undefined;
2031
2031
  } | undefined;
@@ -2596,7 +2596,7 @@ export declare const formsRoutes: OpenAPIHono<{
2596
2596
  value: string;
2597
2597
  label: string;
2598
2598
  }[] | undefined;
2599
- display?: "checkbox" | "radio" | undefined;
2599
+ display?: "radio" | "checkbox" | undefined;
2600
2600
  multiple?: boolean | undefined;
2601
2601
  default_value?: string | string[] | undefined;
2602
2602
  } | undefined;
@@ -3173,7 +3173,7 @@ export declare const formsRoutes: OpenAPIHono<{
3173
3173
  value: string;
3174
3174
  label: string;
3175
3175
  }[] | undefined;
3176
- display?: "checkbox" | "radio" | undefined;
3176
+ display?: "radio" | "checkbox" | undefined;
3177
3177
  multiple?: boolean | undefined;
3178
3178
  default_value?: string | string[] | undefined;
3179
3179
  } | undefined;
@@ -3744,7 +3744,7 @@ export declare const formsRoutes: OpenAPIHono<{
3744
3744
  value: string;
3745
3745
  label: string;
3746
3746
  }[] | undefined;
3747
- display?: "checkbox" | "radio" | undefined;
3747
+ display?: "radio" | "checkbox" | undefined;
3748
3748
  multiple?: boolean | undefined;
3749
3749
  default_value?: string | string[] | undefined;
3750
3750
  } | undefined;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
15
+ name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
16
16
  enabled: boolean;
17
17
  trial_expired?: boolean | undefined;
18
18
  }[];
@@ -167,7 +167,7 @@ export declare const guardianRoutes: OpenAPIHono<{
167
167
  $get: {
168
168
  input: {
169
169
  param: {
170
- factor_name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
170
+ factor_name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
171
171
  };
172
172
  } & {
173
173
  header: {
@@ -175,7 +175,7 @@ export declare const guardianRoutes: OpenAPIHono<{
175
175
  };
176
176
  };
177
177
  output: {
178
- name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
178
+ name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
179
179
  enabled: boolean;
180
180
  trial_expired?: boolean | undefined;
181
181
  };
@@ -188,7 +188,7 @@ export declare const guardianRoutes: OpenAPIHono<{
188
188
  $put: {
189
189
  input: {
190
190
  param: {
191
- factor_name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
191
+ factor_name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
192
192
  };
193
193
  } & {
194
194
  header: {
@@ -200,7 +200,7 @@ export declare const guardianRoutes: OpenAPIHono<{
200
200
  };
201
201
  };
202
202
  output: {
203
- name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
203
+ name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };