authhero 9.23.1 → 9.24.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/{p-91459994.entry.js → p-210f06bf.entry.js} +1 -1
- package/dist/authhero.cjs +116 -116
- package/dist/authhero.d.ts +1433 -278
- package/dist/authhero.mjs +36511 -35845
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/password.d.ts +6 -0
- package/dist/types/authentication-flows/passwordless.d.ts +5 -5
- package/dist/types/generated/locale-types.d.ts +1 -0
- package/dist/types/helpers/logging.d.ts +7 -0
- package/dist/types/helpers/outbox-destinations/log-streams.d.ts +2 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/session-notice.d.ts +17 -0
- package/dist/types/helpers/users.d.ts +5 -0
- package/dist/types/index.d.ts +1433 -278
- package/dist/types/routes/auth-api/index.d.ts +26 -26
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- 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/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +29 -3
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +5 -5
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +7 -7
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- 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 +97 -3
- package/dist/types/routes/management-api/flows.d.ts +52 -0
- package/dist/types/routes/management-api/forms.d.ts +735 -126
- package/dist/types/routes/management-api/grants.d.ts +11 -0
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +34 -4
- package/dist/types/routes/management-api/hooks.d.ts +68 -4
- package/dist/types/routes/management-api/index.d.ts +1326 -269
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +66 -8
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- 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 +9 -9
- package/dist/types/routes/management-api/users.d.ts +166 -23
- package/dist/types/routes/saml/index.d.ts +98 -0
- package/dist/types/routes/saml/samlp.d.ts +98 -0
- package/dist/types/routes/universal-login/common.d.ts +10 -10
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/form-node.d.ts +4 -4
- package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +0 -10
- package/dist/types/routes/universal-login/screens/identifier.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/login.d.ts +0 -8
- package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +0 -5
- package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +0 -14
- package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +0 -15
- package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +0 -9
- package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +0 -9
- package/dist/types/routes/universal-login/screens/reset-password.d.ts +2 -6
- 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/index.d.ts +3 -1
- package/dist/types/state-machines/login-session-data.d.ts +19 -0
- package/dist/types/state-machines/login-session.d.ts +67 -3
- package/dist/types/state-machines/password-reset.d.ts +46 -0
- package/dist/types/strategies/saml.d.ts +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface PasswordResetFlow {
|
|
2
|
+
state: "awaiting_code" | "awaiting_link" | "completed";
|
|
3
|
+
username: string;
|
|
4
|
+
requestId: string;
|
|
5
|
+
}
|
|
6
|
+
export type PasswordResetEvent = {
|
|
7
|
+
type: "REQUEST_CODE";
|
|
8
|
+
username: string;
|
|
9
|
+
requestId: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: "REQUEST_LINK";
|
|
12
|
+
username: string;
|
|
13
|
+
requestId: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "COMPLETE";
|
|
16
|
+
};
|
|
17
|
+
/** A reset request belongs to the login session, independently of login progress. */
|
|
18
|
+
export declare const passwordResetMachine: import("xstate").StateMachine<{
|
|
19
|
+
username?: string;
|
|
20
|
+
requestId?: string;
|
|
21
|
+
}, {
|
|
22
|
+
type: "REQUEST_CODE";
|
|
23
|
+
username: string;
|
|
24
|
+
requestId: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "REQUEST_LINK";
|
|
27
|
+
username: string;
|
|
28
|
+
requestId: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: "COMPLETE";
|
|
31
|
+
}, {}, never, {
|
|
32
|
+
type: "setUsername";
|
|
33
|
+
params: import("xstate").NonReducibleUnknown;
|
|
34
|
+
}, never, never, "idle" | "awaiting_code" | "completed" | "awaiting_link", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
35
|
+
id: "passwordReset";
|
|
36
|
+
states: {
|
|
37
|
+
readonly idle: {};
|
|
38
|
+
readonly awaiting_code: {};
|
|
39
|
+
readonly awaiting_link: {};
|
|
40
|
+
readonly completed: {};
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
/** Rehydrate the persisted child flow and reduce one domain event. */
|
|
44
|
+
export declare function transitionPasswordReset(flow: PasswordResetFlow | undefined, event: PasswordResetEvent): PasswordResetFlow | undefined;
|
|
45
|
+
/** Code and link submission endpoints accept only their own requested flow. */
|
|
46
|
+
export declare function canCompletePasswordReset(flow: PasswordResetFlow | undefined, method?: "code" | "link"): flow is PasswordResetFlow;
|
|
@@ -6,4 +6,4 @@ export declare function samlResponseForm(postUrl: string, base64EncodedSaml: str
|
|
|
6
6
|
export declare function samlCallback(ctx: Context<{
|
|
7
7
|
Bindings: Bindings;
|
|
8
8
|
Variables: Variables;
|
|
9
|
-
}>, client: EnrichedClient, authParams: AuthParams, user: User, sid: string): Promise<Response>;
|
|
9
|
+
}>, client: EnrichedClient, authParams: AuthParams, user: User, sid: string, loginSessionId?: string): Promise<Response>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/sesamyab/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "9.
|
|
14
|
+
"version": "9.24.1",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/kysely-adapter": "12.
|
|
67
|
-
"@authhero/widget": "0.41.
|
|
66
|
+
"@authhero/kysely-adapter": "12.15.1",
|
|
67
|
+
"@authhero/widget": "0.41.3"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.3",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"qrcode": "^1.5.4",
|
|
81
81
|
"sanitize-html": "^2.17.4",
|
|
82
82
|
"xstate": "^5.31.1",
|
|
83
|
-
"@authhero/
|
|
84
|
-
"@authhero/
|
|
85
|
-
"@authhero/
|
|
83
|
+
"@authhero/adapter-interfaces": "4.21.0",
|
|
84
|
+
"@authhero/proxy": "0.11.7",
|
|
85
|
+
"@authhero/saml": "0.6.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@authhero/widget": "^0.1.0",
|