authhero 8.15.0 → 8.17.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 (35) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +109 -109
  3. package/dist/authhero.d.ts +76 -73
  4. package/dist/authhero.mjs +7985 -7913
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/passwordless.d.ts +5 -5
  7. package/dist/types/constants.d.ts +1 -1
  8. package/dist/types/helpers/logging.d.ts +11 -0
  9. package/dist/types/index.d.ts +66 -64
  10. package/dist/types/routes/auth-api/index.d.ts +4 -4
  11. package/dist/types/routes/auth-api/passwordless.d.ts +4 -4
  12. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  13. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  14. package/dist/types/routes/management-api/branding.d.ts +5 -5
  15. package/dist/types/routes/management-api/clients.d.ts +6 -6
  16. package/dist/types/routes/management-api/connections.d.ts +15 -15
  17. package/dist/types/routes/management-api/failed-events.d.ts +3 -1
  18. package/dist/types/routes/management-api/index.d.ts +55 -53
  19. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  20. package/dist/types/routes/management-api/logs.d.ts +3 -3
  21. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  22. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  23. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  24. package/dist/types/routes/management-api/tenants.d.ts +6 -6
  25. package/dist/types/routes/management-api/themes.d.ts +3 -3
  26. package/dist/types/routes/management-api/users.d.ts +2 -2
  27. package/dist/types/routes/universal-login/common.d.ts +8 -8
  28. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  29. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  30. package/dist/types/routes/universal-login/index.d.ts +2 -2
  31. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  32. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  33. package/dist/types/types/AuthHeroConfig.d.ts +9 -8
  34. package/dist/types/utils/username-password-provider.d.ts +11 -6
  35. package/package.json +5 -5
@@ -367,7 +367,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
367
367
  active?: boolean | undefined;
368
368
  } | undefined;
369
369
  signup?: {
370
- status?: "optional" | "required" | "disabled" | undefined;
370
+ status?: "optional" | "disabled" | "required" | undefined;
371
371
  verification?: {
372
372
  active?: boolean | undefined;
373
373
  } | undefined;
@@ -384,7 +384,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
384
384
  active?: boolean | undefined;
385
385
  } | undefined;
386
386
  signup?: {
387
- status?: "optional" | "required" | "disabled" | undefined;
387
+ status?: "optional" | "disabled" | "required" | undefined;
388
388
  } | undefined;
389
389
  validation?: {
390
390
  max_length?: number | undefined;
@@ -401,7 +401,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
401
401
  active?: boolean | undefined;
402
402
  } | undefined;
403
403
  signup?: {
404
- status?: "optional" | "required" | "disabled" | undefined;
404
+ status?: "optional" | "disabled" | "required" | undefined;
405
405
  } | undefined;
406
406
  } | undefined;
407
407
  } | undefined;
@@ -541,8 +541,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
541
541
  } | undefined;
542
542
  authenticated_at?: string | undefined;
543
543
  };
544
- connectionType: "username" | "sms" | "email";
545
- authConnection: "username" | "sms" | "email";
544
+ connectionType: "sms" | "email" | "username";
545
+ authConnection: "sms" | "email" | "username";
546
546
  session_id: string | undefined;
547
547
  authParams: {
548
548
  client_id: string;
@@ -1,4 +1,4 @@
1
- export declare const USERNAME_PASSWORD_PROVIDER = "auth2";
1
+ export declare const USERNAME_PASSWORD_PROVIDER = "auth0";
2
2
  export declare const JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
3
3
  export declare const SILENT_AUTH_MAX_AGE_IN_SECONDS: number;
4
4
  export declare const UNIVERSAL_AUTH_SESSION_EXPIRES_IN_SECONDS: number;
@@ -23,6 +23,17 @@ export type LogParams = {
23
23
  strategy?: string;
24
24
  strategy_type?: string;
25
25
  connection?: string;
26
+ /**
27
+ * The id of the connection used (`con_…`). When omitted, `logMessage`
28
+ * resolves it from the connection name via the (bundle-cached) tenant
29
+ * connections list.
30
+ */
31
+ connection_id?: string;
32
+ /**
33
+ * Display name of the client. When omitted, `logMessage` resolves it from
34
+ * `ctx.var.client_id`.
35
+ */
36
+ client_name?: string;
26
37
  audience?: string;
27
38
  scope?: string;
28
39
  /**