authhero 8.25.2 → 8.26.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/authhero.cjs +115 -115
- package/dist/authhero.d.ts +148 -120
- package/dist/authhero.mjs +55 -46
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +7 -7
- package/dist/types/helpers/codes-cleanup.d.ts +28 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/index.d.ts +119 -117
- package/dist/types/routes/auth-api/index.d.ts +20 -20
- package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
- 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/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +16 -16
- package/dist/types/routes/management-api/connections.d.ts +20 -20
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- 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/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +90 -90
- 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/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- 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/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +5 -5
- 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 +14 -14
- 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/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/package.json +6 -6
|
@@ -82,7 +82,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
82
82
|
active?: boolean | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
signup?: {
|
|
85
|
-
status?: "
|
|
85
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
86
86
|
verification?: {
|
|
87
87
|
active?: boolean | undefined;
|
|
88
88
|
} | undefined;
|
|
@@ -99,7 +99,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
99
99
|
active?: boolean | undefined;
|
|
100
100
|
} | undefined;
|
|
101
101
|
signup?: {
|
|
102
|
-
status?: "
|
|
102
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
103
103
|
} | undefined;
|
|
104
104
|
validation?: {
|
|
105
105
|
max_length?: number | undefined;
|
|
@@ -116,7 +116,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
116
116
|
active?: boolean | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
signup?: {
|
|
119
|
-
status?: "
|
|
119
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
120
120
|
} | undefined;
|
|
121
121
|
} | undefined;
|
|
122
122
|
} | undefined;
|
|
@@ -129,7 +129,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
129
129
|
} | undefined;
|
|
130
130
|
} | undefined;
|
|
131
131
|
passkey_options?: {
|
|
132
|
-
challenge_ui?: "
|
|
132
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
133
133
|
local_enrollment_enabled?: boolean | undefined;
|
|
134
134
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
135
135
|
} | undefined;
|
|
@@ -216,7 +216,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
216
216
|
active?: boolean | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
signup?: {
|
|
219
|
-
status?: "
|
|
219
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
220
220
|
verification?: {
|
|
221
221
|
active?: boolean | undefined;
|
|
222
222
|
} | undefined;
|
|
@@ -233,7 +233,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
233
233
|
active?: boolean | undefined;
|
|
234
234
|
} | undefined;
|
|
235
235
|
signup?: {
|
|
236
|
-
status?: "
|
|
236
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
237
237
|
} | undefined;
|
|
238
238
|
validation?: {
|
|
239
239
|
max_length?: number | undefined;
|
|
@@ -250,7 +250,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
250
250
|
active?: boolean | undefined;
|
|
251
251
|
} | undefined;
|
|
252
252
|
signup?: {
|
|
253
|
-
status?: "
|
|
253
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
254
254
|
} | undefined;
|
|
255
255
|
} | undefined;
|
|
256
256
|
} | undefined;
|
|
@@ -263,7 +263,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
263
263
|
} | undefined;
|
|
264
264
|
} | undefined;
|
|
265
265
|
passkey_options?: {
|
|
266
|
-
challenge_ui?: "
|
|
266
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
267
267
|
local_enrollment_enabled?: boolean | undefined;
|
|
268
268
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
269
269
|
} | undefined;
|
|
@@ -366,7 +366,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
366
366
|
active?: boolean | undefined;
|
|
367
367
|
} | undefined;
|
|
368
368
|
signup?: {
|
|
369
|
-
status?: "
|
|
369
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
370
370
|
verification?: {
|
|
371
371
|
active?: boolean | undefined;
|
|
372
372
|
} | undefined;
|
|
@@ -383,7 +383,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
383
383
|
active?: boolean | undefined;
|
|
384
384
|
} | undefined;
|
|
385
385
|
signup?: {
|
|
386
|
-
status?: "
|
|
386
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
387
387
|
} | undefined;
|
|
388
388
|
validation?: {
|
|
389
389
|
max_length?: number | undefined;
|
|
@@ -400,7 +400,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
400
400
|
active?: boolean | undefined;
|
|
401
401
|
} | undefined;
|
|
402
402
|
signup?: {
|
|
403
|
-
status?: "
|
|
403
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
404
404
|
} | undefined;
|
|
405
405
|
} | undefined;
|
|
406
406
|
} | undefined;
|
|
@@ -413,7 +413,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
413
413
|
} | undefined;
|
|
414
414
|
} | undefined;
|
|
415
415
|
passkey_options?: {
|
|
416
|
-
challenge_ui?: "
|
|
416
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
417
417
|
local_enrollment_enabled?: boolean | undefined;
|
|
418
418
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
419
419
|
} | undefined;
|
|
@@ -545,7 +545,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
545
545
|
active?: boolean | undefined;
|
|
546
546
|
} | undefined;
|
|
547
547
|
signup?: {
|
|
548
|
-
status?: "
|
|
548
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
549
549
|
verification?: {
|
|
550
550
|
active?: boolean | undefined;
|
|
551
551
|
} | undefined;
|
|
@@ -562,7 +562,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
562
562
|
active?: boolean | undefined;
|
|
563
563
|
} | undefined;
|
|
564
564
|
signup?: {
|
|
565
|
-
status?: "
|
|
565
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
566
566
|
} | undefined;
|
|
567
567
|
validation?: {
|
|
568
568
|
max_length?: number | undefined;
|
|
@@ -579,7 +579,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
579
579
|
active?: boolean | undefined;
|
|
580
580
|
} | undefined;
|
|
581
581
|
signup?: {
|
|
582
|
-
status?: "
|
|
582
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
583
583
|
} | undefined;
|
|
584
584
|
} | undefined;
|
|
585
585
|
} | undefined;
|
|
@@ -592,7 +592,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
592
592
|
} | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
passkey_options?: {
|
|
595
|
-
challenge_ui?: "
|
|
595
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
596
596
|
local_enrollment_enabled?: boolean | undefined;
|
|
597
597
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
598
598
|
} | undefined;
|
|
@@ -703,7 +703,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
703
703
|
active?: boolean | undefined;
|
|
704
704
|
} | undefined;
|
|
705
705
|
signup?: {
|
|
706
|
-
status?: "
|
|
706
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
707
707
|
verification?: {
|
|
708
708
|
active?: boolean | undefined;
|
|
709
709
|
} | undefined;
|
|
@@ -720,7 +720,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
720
720
|
active?: boolean | undefined;
|
|
721
721
|
} | undefined;
|
|
722
722
|
signup?: {
|
|
723
|
-
status?: "
|
|
723
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
724
724
|
} | undefined;
|
|
725
725
|
validation?: {
|
|
726
726
|
max_length?: number | undefined;
|
|
@@ -737,7 +737,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
737
737
|
active?: boolean | undefined;
|
|
738
738
|
} | undefined;
|
|
739
739
|
signup?: {
|
|
740
|
-
status?: "
|
|
740
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
741
741
|
} | undefined;
|
|
742
742
|
} | undefined;
|
|
743
743
|
} | undefined;
|
|
@@ -750,7 +750,7 @@ export declare const connectionRoutes: OpenAPIHono<{
|
|
|
750
750
|
} | undefined;
|
|
751
751
|
} | undefined;
|
|
752
752
|
passkey_options?: {
|
|
753
|
-
challenge_ui?: "
|
|
753
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
754
754
|
local_enrollment_enabled?: boolean | undefined;
|
|
755
755
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
756
756
|
} | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
|
|
|
30
30
|
log_type: string;
|
|
31
31
|
category: "user_action" | "admin_action" | "system" | "api";
|
|
32
32
|
actor: {
|
|
33
|
-
type: "
|
|
33
|
+
type: "client_credentials" | "user" | "system" | "admin" | "api_key";
|
|
34
34
|
id?: string | undefined;
|
|
35
35
|
email?: string | undefined;
|
|
36
36
|
org_id?: string | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
output: {
|
|
15
|
-
name: "sms" | "otp" | "email" | "duo" | "
|
|
15
|
+
name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "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: "sms" | "otp" | "email" | "duo" | "
|
|
170
|
+
factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "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: "sms" | "otp" | "email" | "duo" | "
|
|
178
|
+
name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "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: "sms" | "otp" | "email" | "duo" | "
|
|
191
|
+
factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "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: "sms" | "otp" | "email" | "duo" | "
|
|
203
|
+
name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "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<(("length" | "
|
|
26
|
+
export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("length" | "start" | "limit" | "total" | "next") & keyof T extends never ? {
|
|
27
27
|
start: z.ZodNumber;
|
|
28
28
|
limit: z.ZodNumber;
|
|
29
29
|
length: z.ZodNumber;
|
|
@@ -22,7 +22,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
|
|
|
22
22
|
tenant_id: string;
|
|
23
23
|
created_at: string;
|
|
24
24
|
updated_at: string;
|
|
25
|
-
deploymentStatus: "
|
|
25
|
+
deploymentStatus: "deployed" | "failed" | "not_required";
|
|
26
26
|
secrets?: {
|
|
27
27
|
[x: string]: string;
|
|
28
28
|
} | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
|
|
|
112
112
|
tenant_id: string;
|
|
113
113
|
created_at: string;
|
|
114
114
|
updated_at: string;
|
|
115
|
-
deploymentStatus: "
|
|
115
|
+
deploymentStatus: "deployed" | "failed" | "not_required";
|
|
116
116
|
secrets?: {
|
|
117
117
|
[x: string]: string;
|
|
118
118
|
} | undefined;
|