authhero 9.23.0 → 9.24.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 (50) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/assets/u/widget/{p-8b981cd0.entry.js → p-210f06bf.entry.js} +1 -1
  4. package/dist/authhero.cjs +122 -115
  5. package/dist/authhero.d.ts +1585 -431
  6. package/dist/authhero.mjs +14101 -13653
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/generated/locale-types.d.ts +6 -0
  9. package/dist/types/helpers/logging.d.ts +7 -0
  10. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +2 -0
  11. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  12. package/dist/types/helpers/users.d.ts +5 -0
  13. package/dist/types/index.d.ts +1585 -431
  14. package/dist/types/routes/auth-api/index.d.ts +13 -13
  15. package/dist/types/routes/auth-api/logout.d.ts +2 -2
  16. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  17. package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
  18. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  19. package/dist/types/routes/management-api/actions.d.ts +29 -3
  20. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  21. package/dist/types/routes/management-api/branding.d.ts +3 -3
  22. package/dist/types/routes/management-api/email-templates.d.ts +2 -2
  23. package/dist/types/routes/management-api/emails.d.ts +2 -2
  24. package/dist/types/routes/management-api/failed-events.d.ts +96 -3
  25. package/dist/types/routes/management-api/flows.d.ts +52 -0
  26. package/dist/types/routes/management-api/forms.d.ts +609 -0
  27. package/dist/types/routes/management-api/grants.d.ts +11 -0
  28. package/dist/types/routes/management-api/helpers.d.ts +9 -1
  29. package/dist/types/routes/management-api/hooks.d.ts +68 -4
  30. package/dist/types/routes/management-api/index.d.ts +1206 -150
  31. package/dist/types/routes/management-api/keys.d.ts +8 -8
  32. package/dist/types/routes/management-api/logs.d.ts +4 -4
  33. package/dist/types/routes/management-api/organizations.d.ts +65 -7
  34. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  35. package/dist/types/routes/management-api/tenants.d.ts +6 -6
  36. package/dist/types/routes/management-api/users.d.ts +159 -16
  37. package/dist/types/routes/saml/index.d.ts +98 -0
  38. package/dist/types/routes/saml/samlp.d.ts +98 -0
  39. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  40. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  41. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  42. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  43. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  44. package/dist/types/routes/universal-login/index.d.ts +12 -12
  45. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  46. package/dist/types/routes/universal-login/u2-index.d.ts +9 -9
  47. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  48. package/dist/types/routes/universal-login/u2-widget-page.d.ts +13 -1
  49. package/dist/types/strategies/saml.d.ts +1 -1
  50. package/package.json +6 -6
@@ -20,6 +20,12 @@ export interface CommonScreen {
20
20
  termsOfServiceText: () => string;
21
21
  termsShortText: () => string;
22
22
  tryAgainText: () => string;
23
+ embeddedBrowserTitle: () => string;
24
+ embeddedBrowserText: (vars: {
25
+ browserName: string;
26
+ }) => string;
27
+ privateBrowsingTitle: () => string;
28
+ privateBrowsingText: () => string;
23
29
  }
24
30
  export interface CommonAccountScreen {
25
31
  title: () => string;
@@ -70,6 +70,13 @@ export type LogParams = {
70
70
  * linking to the execution (Auth0 reaches executions via the tenant logs).
71
71
  */
72
72
  execution_id?: string;
73
+ /**
74
+ * The login session (the `state`) this event belongs to. Merged into
75
+ * `details` so one login flow can be traced across /authorize, /u/* and
76
+ * /samlp/* log entries. Defaults to `ctx.var.loginSession?.id` when the
77
+ * request has resolved a login session.
78
+ */
79
+ login_session_id?: string;
73
80
  /**
74
81
  * If true, wait for the log to complete before returning.
75
82
  * If false (default), execute logging asynchronously in the background.
@@ -32,6 +32,8 @@ interface LogStreamData {
32
32
  body?: unknown;
33
33
  };
34
34
  execution_id?: string;
35
+ login_session_id?: string;
36
+ [key: string]: unknown;
35
37
  };
36
38
  }
37
39
  interface LogStreamPayload {
@@ -14,9 +14,9 @@ export declare const USERINFO_RESERVED_CLAIMS: readonly ["iss", "sub", "aud", "e
14
14
  * vendor/tenant for downstream APIs while `sub` stays `auth-service`.
15
15
  * Client-bound mints keep `azp` locked (see below).
16
16
  */
17
- export declare const SERVICE_TOKEN_RESERVED_CLAIMS: ("sid" | "client_id" | "scope" | "tenant_id" | "org_name" | "sub" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "permissions" | "nbf" | "jti" | "act" | "requested_userinfo_claims" | "gty")[];
17
+ export declare const SERVICE_TOKEN_RESERVED_CLAIMS: ("client_id" | "sub" | "sid" | "tenant_id" | "org_name" | "scope" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "permissions" | "nbf" | "jti" | "act" | "requested_userinfo_claims" | "gty")[];
18
18
  /** Client-bound mints: `azp` must stay the registered client id. */
19
- export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("sid" | "client_id" | "scope" | "tenant_id" | "org_name" | "sub" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "azp" | "permissions" | "nbf" | "jti" | "act" | "requested_userinfo_claims" | "gty")[];
19
+ export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("client_id" | "sub" | "sid" | "tenant_id" | "org_name" | "scope" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "azp" | "permissions" | "nbf" | "jti" | "act" | "requested_userinfo_claims" | "gty")[];
20
20
  export type AccessTokenReservedClaim = (typeof ACCESS_TOKEN_RESERVED_CLAIMS)[number];
21
21
  export type IdTokenReservedClaim = (typeof ID_TOKEN_RESERVED_CLAIMS)[number];
22
22
  /**
@@ -162,6 +162,11 @@ interface LinkUserToParams {
162
162
  * hook, or internal linking code — is safe by construction rather than by
163
163
  * remembering to call the right helper.
164
164
  *
165
+ * This performs several writes (repoint, and on promotion also unlink), so
166
+ * direct callers should pass an adapter bound to a transaction. The user-update
167
+ * hook already does this via `data.transaction`, so callers going through
168
+ * `users.update(id, { linked_to })` get atomicity automatically.
169
+ *
165
170
  * Returns the cluster root `userId` was actually linked to, which may differ
166
171
  * from the requested `primaryId`.
167
172
  */