authhero 9.24.1 → 9.25.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.
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +109 -109
- package/dist/authhero.d.ts +605 -314
- package/dist/authhero.mjs +13421 -13259
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +6 -2
- package/dist/types/helpers/audit-target-types.d.ts +26 -0
- package/dist/types/helpers/client.d.ts +12 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/index.d.ts +590 -314
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/index.d.ts +15 -15
- package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/action-triggers.d.ts +8 -2
- package/dist/types/routes/management-api/actions.d.ts +45 -12
- package/dist/types/routes/management-api/branding.d.ts +13 -1
- package/dist/types/routes/management-api/clients.d.ts +12 -6
- package/dist/types/routes/management-api/connections.d.ts +25 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/emails.d.ts +18 -0
- package/dist/types/routes/management-api/failed-events.d.ts +26 -2
- package/dist/types/routes/management-api/flows.d.ts +8 -8
- package/dist/types/routes/management-api/forms.d.ts +144 -144
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +105 -0
- package/dist/types/routes/management-api/index.d.ts +568 -292
- package/dist/types/routes/management-api/keys.d.ts +16 -16
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/management-api/prompts.d.ts +12 -6
- package/dist/types/routes/management-api/resource-servers.d.ts +44 -20
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +7 -3
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +29 -29
- package/dist/types/routes/universal-login/common.d.ts +24 -8
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- package/dist/types/routes/universal-login/screens/login-partials.d.ts +8 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/Variables.d.ts +3 -0
- package/dist/types/utils/jwks.d.ts +2 -2
- package/dist/types/utils/jwt.d.ts +2 -0
- package/package.json +6 -6
|
@@ -136,6 +136,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
136
136
|
updated_at: string;
|
|
137
137
|
friendly_name: string;
|
|
138
138
|
id: string;
|
|
139
|
+
parent_tenant_id?: string | null | undefined;
|
|
139
140
|
audience?: string | undefined;
|
|
140
141
|
picture_url?: string | undefined;
|
|
141
142
|
support_email?: string | undefined;
|
|
@@ -239,7 +240,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
239
240
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
240
241
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
241
242
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
242
|
-
provisioning_state?: "pending" | "
|
|
243
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
243
244
|
provisioning_error?: string | undefined;
|
|
244
245
|
provisioning_state_changed_at?: string | undefined;
|
|
245
246
|
bundle_configuration?: string | undefined;
|
|
@@ -287,7 +288,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
287
288
|
} | undefined;
|
|
288
289
|
} | undefined;
|
|
289
290
|
mfa?: {
|
|
290
|
-
policy?: "
|
|
291
|
+
policy?: "never" | "always" | undefined;
|
|
291
292
|
factors?: {
|
|
292
293
|
sms: boolean;
|
|
293
294
|
otp: boolean;
|
|
@@ -436,6 +437,9 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
436
437
|
} | undefined;
|
|
437
438
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
438
439
|
};
|
|
440
|
+
scope?: "shared" | "local" | "platform" | undefined;
|
|
441
|
+
override?: "none" | "secrets" | "fields" | undefined;
|
|
442
|
+
enforce?: boolean | undefined;
|
|
439
443
|
id?: string | undefined;
|
|
440
444
|
display_name?: string | undefined;
|
|
441
445
|
enabled_clients?: string[] | undefined;
|
|
@@ -4,3 +4,29 @@
|
|
|
4
4
|
* Shared by `helpers/logging.ts` (write path) and
|
|
5
5
|
* `outbox-destinations/logs.ts` (outbox transform) so the two never drift. */
|
|
6
6
|
export declare const USER_TARGET_TYPES: Set<string>;
|
|
7
|
+
/** The flat log's `user_id` for an audit event: the target for user-scoped
|
|
8
|
+
* operations, otherwise the actor. The caller of a management operation is
|
|
9
|
+
* carried separately in `request.auth`. */
|
|
10
|
+
export declare function logSubjectUserId(event: {
|
|
11
|
+
actor: {
|
|
12
|
+
id?: string;
|
|
13
|
+
};
|
|
14
|
+
target?: {
|
|
15
|
+
type: string;
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
}): string;
|
|
19
|
+
/** The flat log's `user_name` for an audit event. `actor.email` only names the
|
|
20
|
+
* actor, so it is used only when the log subject is the actor — a user-scoped
|
|
21
|
+
* operation by an admin must not pair the target's `user_id` with the admin's
|
|
22
|
+
* email. */
|
|
23
|
+
export declare function logSubjectUserName(event: {
|
|
24
|
+
actor: {
|
|
25
|
+
id?: string;
|
|
26
|
+
email?: string;
|
|
27
|
+
};
|
|
28
|
+
target?: {
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
}): string | undefined;
|
|
@@ -145,6 +145,7 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
145
145
|
tenant: z.ZodObject<{
|
|
146
146
|
created_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
147
147
|
updated_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
148
|
+
parent_tenant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
149
|
audience: z.ZodOptional<z.ZodString>;
|
|
149
150
|
friendly_name: z.ZodString;
|
|
150
151
|
picture_url: z.ZodOptional<z.ZodString>;
|
|
@@ -352,6 +353,17 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
352
353
|
connections: z.ZodArray<z.ZodObject<{
|
|
353
354
|
created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
354
355
|
updated_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
356
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
local: "local";
|
|
358
|
+
shared: "shared";
|
|
359
|
+
platform: "platform";
|
|
360
|
+
}>>;
|
|
361
|
+
override: z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
none: "none";
|
|
363
|
+
secrets: "secrets";
|
|
364
|
+
fields: "fields";
|
|
365
|
+
}>>;
|
|
366
|
+
enforce: z.ZodOptional<z.ZodBoolean>;
|
|
355
367
|
id: z.ZodOptional<z.ZodString>;
|
|
356
368
|
name: z.ZodString;
|
|
357
369
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -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: ("sub" | "
|
|
17
|
+
export declare const SERVICE_TOKEN_RESERVED_CLAIMS: ("sub" | "exp" | "iat" | "tenant_id" | "client_id" | "org_name" | "jti" | "scope" | "gty" | "org_id" | "sid" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "permissions" | "nbf" | "act" | "requested_userinfo_claims")[];
|
|
18
18
|
/** Client-bound mints: `azp` must stay the registered client id. */
|
|
19
|
-
export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("sub" | "tenant_id" | "client_id" | "org_name" | "
|
|
19
|
+
export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("sub" | "exp" | "iat" | "tenant_id" | "client_id" | "org_name" | "jti" | "scope" | "azp" | "gty" | "org_id" | "sid" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "permissions" | "nbf" | "act" | "requested_userinfo_claims")[];
|
|
20
20
|
export type AccessTokenReservedClaim = (typeof ACCESS_TOKEN_RESERVED_CLAIMS)[number];
|
|
21
21
|
export type IdTokenReservedClaim = (typeof ID_TOKEN_RESERVED_CLAIMS)[number];
|
|
22
22
|
/**
|