authhero 5.21.0 → 5.21.1
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 +100 -100
- package/dist/authhero.d.ts +240 -240
- package/dist/authhero.mjs +8611 -8582
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/common.d.ts +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +6 -6
- package/dist/types/helpers/client.d.ts +3 -3
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/logging.d.ts +7 -0
- package/dist/types/index.d.ts +237 -237
- package/dist/types/routes/auth-api/index.d.ts +30 -30
- package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +3 -3
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/client-grants.d.ts +8 -8
- package/dist/types/routes/management-api/clients.d.ts +7 -7
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +20 -20
- package/dist/types/routes/management-api/emails.d.ts +2 -2
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +195 -195
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +3 -3
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenants.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +14 -14
- package/dist/types/routes/universal-login/flow-api.d.ts +16 -16
- package/dist/types/routes/universal-login/form-node.d.ts +4 -4
- package/dist/types/routes/universal-login/index.d.ts +4 -4
- package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +8 -8
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
- package/dist/types/utils/email.d.ts +2 -0
- package/package.json +5 -5
|
@@ -11,7 +11,7 @@ import { GrantType } from "@authhero/adapter-interfaces";
|
|
|
11
11
|
export interface AuthTokenClient {
|
|
12
12
|
client_id: string;
|
|
13
13
|
tenant: {
|
|
14
|
-
audience
|
|
14
|
+
audience?: string;
|
|
15
15
|
default_audience?: string;
|
|
16
16
|
allow_organization_name_in_authentication_api?: boolean;
|
|
17
17
|
};
|
|
@@ -129,14 +129,14 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
129
129
|
tenant: {
|
|
130
130
|
created_at: string;
|
|
131
131
|
updated_at: string;
|
|
132
|
-
audience: string;
|
|
133
132
|
friendly_name: string;
|
|
134
|
-
sender_email: string;
|
|
135
|
-
sender_name: string;
|
|
136
133
|
id: string;
|
|
134
|
+
audience?: string | undefined;
|
|
137
135
|
picture_url?: string | undefined;
|
|
138
136
|
support_email?: string | undefined;
|
|
139
137
|
support_url?: string | undefined;
|
|
138
|
+
sender_email?: string | undefined;
|
|
139
|
+
sender_name?: string | undefined;
|
|
140
140
|
session_lifetime?: number | undefined;
|
|
141
141
|
idle_session_lifetime?: number | undefined;
|
|
142
142
|
ephemeral_session_lifetime?: number | undefined;
|
|
@@ -457,7 +457,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
457
457
|
custom_login_page_preview?: string | undefined;
|
|
458
458
|
form_template?: string | undefined;
|
|
459
459
|
addons?: Record<string, any> | undefined;
|
|
460
|
-
token_endpoint_auth_method?: "
|
|
460
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
461
461
|
client_metadata?: Record<string, string> | undefined;
|
|
462
462
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
463
463
|
mobile?: Record<string, any> | undefined;
|
|
@@ -540,8 +540,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
540
540
|
} | undefined;
|
|
541
541
|
authenticated_at?: string | undefined;
|
|
542
542
|
};
|
|
543
|
-
connectionType: "
|
|
544
|
-
authConnection: "
|
|
543
|
+
connectionType: "username" | "email" | "sms";
|
|
544
|
+
authConnection: "username" | "email" | "sms";
|
|
545
545
|
session_id: string | undefined;
|
|
546
546
|
authParams: {
|
|
547
547
|
client_id: string;
|
|
@@ -133,13 +133,13 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
133
133
|
tenant: z.ZodObject<{
|
|
134
134
|
created_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
135
135
|
updated_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
136
|
-
audience: z.ZodString
|
|
136
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
137
137
|
friendly_name: z.ZodString;
|
|
138
138
|
picture_url: z.ZodOptional<z.ZodString>;
|
|
139
139
|
support_email: z.ZodOptional<z.ZodString>;
|
|
140
140
|
support_url: z.ZodOptional<z.ZodString>;
|
|
141
|
-
sender_email: z.ZodString
|
|
142
|
-
sender_name: z.ZodString
|
|
141
|
+
sender_email: z.ZodOptional<z.ZodString>;
|
|
142
|
+
sender_name: z.ZodOptional<z.ZodString>;
|
|
143
143
|
session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
144
144
|
idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
145
145
|
ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -23,9 +23,9 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
23
23
|
grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
24
|
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
none: "none";
|
|
26
27
|
client_secret_post: "client_secret_post";
|
|
27
28
|
client_secret_basic: "client_secret_basic";
|
|
28
|
-
none: "none";
|
|
29
29
|
client_secret_jwt: "client_secret_jwt";
|
|
30
30
|
private_key_jwt: "private_key_jwt";
|
|
31
31
|
}>>;
|
|
@@ -5,6 +5,13 @@ export type LogParams = {
|
|
|
5
5
|
type: LogType;
|
|
6
6
|
description?: string;
|
|
7
7
|
userId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Human-readable identifier for the subject user (email / phone / name).
|
|
10
|
+
* Populates the legacy `user_name` field and the audit event's `actor.email`
|
|
11
|
+
* when `ctx.var.username` is not set — useful for failure logs where the
|
|
12
|
+
* route handler couldn't authenticate but the caller has resolved the user.
|
|
13
|
+
*/
|
|
14
|
+
username?: string;
|
|
8
15
|
/**
|
|
9
16
|
* Identifier of the actor when it differs from the subject `userId`
|
|
10
17
|
* (e.g. impersonation). When set, audit events attribute `actor.id` to
|