authhero 9.3.0 → 9.4.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-b5f14fa6.entry.js +1 -0
- package/dist/assets/u/widget/p-f94037cd.entry.js +1 -0
- package/dist/authhero.cjs +138 -137
- package/dist/authhero.d.ts +315 -268
- package/dist/authhero.mjs +13365 -13194
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +11 -7
- package/dist/types/helpers/client.d.ts +4 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/session-usage.d.ts +48 -0
- package/dist/types/hooks/formhooks.d.ts +24 -0
- package/dist/types/index.d.ts +311 -268
- package/dist/types/routes/auth-api/index.d.ts +36 -36
- package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/branding.d.ts +15 -15
- package/dist/types/routes/management-api/clients.d.ts +24 -16
- package/dist/types/routes/management-api/connections.d.ts +41 -21
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- 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/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +21 -6
- package/dist/types/routes/management-api/index.d.ts +262 -219
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenants.d.ts +28 -28
- package/dist/types/routes/management-api/themes.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +24 -16
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- 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/impersonate.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +6 -6
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +12 -0
- package/dist/types/utils/locale.d.ts +26 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-cdfc4555.entry.js +0 -1
- package/dist/assets/u/widget/p-e95c436f.entry.js +0 -1
|
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
output: {
|
|
15
|
-
name: "
|
|
15
|
+
name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "
|
|
170
|
+
factor_name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "
|
|
178
|
+
name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "
|
|
191
|
+
factor_name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "
|
|
203
|
+
name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
204
204
|
enabled: boolean;
|
|
205
205
|
trial_expired?: boolean | undefined;
|
|
206
206
|
};
|
|
@@ -23,7 +23,7 @@ export declare function requireTenantId(ctx: {
|
|
|
23
23
|
* `totalsSchema.extend({ roles: z.array(roleSchema) })` pattern repeated
|
|
24
24
|
* across the management-api modules.
|
|
25
25
|
*/
|
|
26
|
-
export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("
|
|
26
|
+
export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("start" | "length" | "limit" | "total" | "next") & keyof T extends never ? {
|
|
27
27
|
start: z.ZodNumber;
|
|
28
28
|
limit: z.ZodNumber;
|
|
29
29
|
length: z.ZodNumber;
|
|
@@ -36,7 +36,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
36
36
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
37
37
|
} | undefined;
|
|
38
38
|
} | {
|
|
39
|
-
trigger_id: "
|
|
39
|
+
trigger_id: "post-user-login";
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
synchronous: boolean;
|
|
42
42
|
created_at: string;
|
|
@@ -101,7 +101,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
101
101
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
102
102
|
} | undefined;
|
|
103
103
|
} | {
|
|
104
|
-
trigger_id: "
|
|
104
|
+
trigger_id: "post-user-login";
|
|
105
105
|
enabled: boolean;
|
|
106
106
|
synchronous: boolean;
|
|
107
107
|
created_at: string;
|
|
@@ -174,7 +174,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
174
174
|
hook_id?: string | undefined;
|
|
175
175
|
metadata?: Record<string, unknown> | undefined;
|
|
176
176
|
} | {
|
|
177
|
-
trigger_id: "
|
|
177
|
+
trigger_id: "post-user-login";
|
|
178
178
|
form_id: string;
|
|
179
179
|
enabled?: boolean | undefined;
|
|
180
180
|
synchronous?: boolean | undefined;
|
|
@@ -221,7 +221,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
221
221
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
222
222
|
} | undefined;
|
|
223
223
|
} | {
|
|
224
|
-
trigger_id: "
|
|
224
|
+
trigger_id: "post-user-login";
|
|
225
225
|
enabled: boolean;
|
|
226
226
|
synchronous: boolean;
|
|
227
227
|
created_at: string;
|
|
@@ -277,6 +277,21 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
277
277
|
} & {
|
|
278
278
|
"/:hook_id": {
|
|
279
279
|
$patch: {
|
|
280
|
+
input: {
|
|
281
|
+
param: {
|
|
282
|
+
hook_id: string;
|
|
283
|
+
};
|
|
284
|
+
} & {
|
|
285
|
+
header: {
|
|
286
|
+
"tenant-id"?: string | undefined;
|
|
287
|
+
};
|
|
288
|
+
} & {
|
|
289
|
+
json: unknown;
|
|
290
|
+
};
|
|
291
|
+
output: {};
|
|
292
|
+
outputFormat: string;
|
|
293
|
+
status: 400;
|
|
294
|
+
} | {
|
|
280
295
|
input: {
|
|
281
296
|
param: {
|
|
282
297
|
hook_id: string;
|
|
@@ -316,7 +331,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
316
331
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
317
332
|
} | undefined;
|
|
318
333
|
} | {
|
|
319
|
-
trigger_id: "
|
|
334
|
+
trigger_id: "post-user-login";
|
|
320
335
|
enabled: boolean;
|
|
321
336
|
synchronous: boolean;
|
|
322
337
|
created_at: string;
|
|
@@ -407,7 +422,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
407
422
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
408
423
|
} | undefined;
|
|
409
424
|
} | {
|
|
410
|
-
trigger_id: "
|
|
425
|
+
trigger_id: "post-user-login";
|
|
411
426
|
enabled: boolean;
|
|
412
427
|
synchronous: boolean;
|
|
413
428
|
created_at: string;
|