authhero 7.2.2 → 8.1.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 +102 -102
- package/dist/authhero.d.ts +148 -134
- package/dist/authhero.mjs +10893 -10466
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/helpers/bundle-write-purge.d.ts +16 -0
- package/dist/types/helpers/client-bundle.d.ts +65 -0
- package/dist/types/helpers/compose-auth-data.d.ts +44 -0
- package/dist/types/helpers/prefetch-client-bundle.d.ts +33 -0
- package/dist/types/helpers/request-scoped-dedup.d.ts +8 -0
- package/dist/types/helpers/with-client-bundle.d.ts +31 -0
- package/dist/types/hooks/webhooks.d.ts +14 -0
- package/dist/types/index.d.ts +145 -87
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/index.d.ts +35 -35
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- 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/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/action-triggers.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- 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/flows.d.ts +7 -7
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/hooks.d.ts +60 -0
- package/dist/types/routes/management-api/index.d.ts +104 -44
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/organizations.d.ts +2 -2
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
- package/dist/types/types/AuthHeroConfig.d.ts +0 -12
- package/dist/types/utils/jwks.d.ts +2 -2
- package/package.json +5 -4
|
@@ -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: "user" | "client_credentials" | "system" | "admin" | "api_key";
|
|
34
34
|
id?: string | undefined;
|
|
35
35
|
email?: string | undefined;
|
|
36
36
|
org_id?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
62
62
|
type: "REDIRECT";
|
|
63
63
|
action: "REDIRECT_USER";
|
|
64
64
|
params: {
|
|
65
|
-
target: "custom" | "
|
|
65
|
+
target: "custom" | "account" | "change-email";
|
|
66
66
|
custom_url?: string | undefined;
|
|
67
67
|
};
|
|
68
68
|
alias?: string | undefined;
|
|
@@ -115,7 +115,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
115
115
|
type: "REDIRECT";
|
|
116
116
|
action: "REDIRECT_USER";
|
|
117
117
|
params: {
|
|
118
|
-
target: "custom" | "
|
|
118
|
+
target: "custom" | "account" | "change-email";
|
|
119
119
|
custom_url?: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
alias?: string | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
183
183
|
type: "REDIRECT";
|
|
184
184
|
action: "REDIRECT_USER";
|
|
185
185
|
params: {
|
|
186
|
-
target: "custom" | "
|
|
186
|
+
target: "custom" | "account" | "change-email";
|
|
187
187
|
custom_url?: string | undefined;
|
|
188
188
|
};
|
|
189
189
|
alias?: string | undefined;
|
|
@@ -264,7 +264,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
264
264
|
type: "REDIRECT";
|
|
265
265
|
action: "REDIRECT_USER";
|
|
266
266
|
params: {
|
|
267
|
-
target: "custom" | "
|
|
267
|
+
target: "custom" | "account" | "change-email";
|
|
268
268
|
custom_url?: string | undefined;
|
|
269
269
|
};
|
|
270
270
|
alias?: string | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
312
312
|
type: "REDIRECT";
|
|
313
313
|
action: "REDIRECT_USER";
|
|
314
314
|
params: {
|
|
315
|
-
target: "custom" | "
|
|
315
|
+
target: "custom" | "account" | "change-email";
|
|
316
316
|
custom_url?: string | undefined;
|
|
317
317
|
};
|
|
318
318
|
alias?: string | undefined;
|
|
@@ -372,7 +372,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
372
372
|
type: "REDIRECT";
|
|
373
373
|
action: "REDIRECT_USER";
|
|
374
374
|
params: {
|
|
375
|
-
target: "custom" | "
|
|
375
|
+
target: "custom" | "account" | "change-email";
|
|
376
376
|
custom_url?: string | undefined;
|
|
377
377
|
};
|
|
378
378
|
alias?: string | undefined;
|
|
@@ -420,7 +420,7 @@ export declare const flowsRoutes: OpenAPIHono<{
|
|
|
420
420
|
type: "REDIRECT";
|
|
421
421
|
action: "REDIRECT_USER";
|
|
422
422
|
params: {
|
|
423
|
-
target: "custom" | "
|
|
423
|
+
target: "custom" | "account" | "change-email";
|
|
424
424
|
custom_url?: string | undefined;
|
|
425
425
|
};
|
|
426
426
|
alias?: string | undefined;
|
|
@@ -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
|
};
|
|
@@ -402,4 +402,64 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
402
402
|
status: 200;
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
|
+
} & {
|
|
406
|
+
"/:hook_id/try": {
|
|
407
|
+
$post: {
|
|
408
|
+
input: {
|
|
409
|
+
param: {
|
|
410
|
+
hook_id: string;
|
|
411
|
+
};
|
|
412
|
+
} & {
|
|
413
|
+
header: {
|
|
414
|
+
"tenant-id"?: string | undefined;
|
|
415
|
+
};
|
|
416
|
+
} & {
|
|
417
|
+
json: {
|
|
418
|
+
user_id: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
output: {};
|
|
422
|
+
outputFormat: string;
|
|
423
|
+
status: 400;
|
|
424
|
+
} | {
|
|
425
|
+
input: {
|
|
426
|
+
param: {
|
|
427
|
+
hook_id: string;
|
|
428
|
+
};
|
|
429
|
+
} & {
|
|
430
|
+
header: {
|
|
431
|
+
"tenant-id"?: string | undefined;
|
|
432
|
+
};
|
|
433
|
+
} & {
|
|
434
|
+
json: {
|
|
435
|
+
user_id: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
output: {};
|
|
439
|
+
outputFormat: string;
|
|
440
|
+
status: 404;
|
|
441
|
+
} | {
|
|
442
|
+
input: {
|
|
443
|
+
param: {
|
|
444
|
+
hook_id: string;
|
|
445
|
+
};
|
|
446
|
+
} & {
|
|
447
|
+
header: {
|
|
448
|
+
"tenant-id"?: string | undefined;
|
|
449
|
+
};
|
|
450
|
+
} & {
|
|
451
|
+
json: {
|
|
452
|
+
user_id: string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
output: {
|
|
456
|
+
ok: boolean;
|
|
457
|
+
status?: number | undefined;
|
|
458
|
+
body?: string | undefined;
|
|
459
|
+
error?: string | undefined;
|
|
460
|
+
};
|
|
461
|
+
outputFormat: "json";
|
|
462
|
+
status: 200;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
405
465
|
}, "/">;
|