1 /**
2 * @category Auth
3 * @customNamespace Auth
4 */
5 export const AuthEvents = {
6 /**
7 * Emitted when an MFA factor is enabled for an auth identity.
8 * @since 2.15.5
9 *
10 * @eventPayload
11 * ```ts
12 * {
13 * auth_identity_id, // The ID of the auth identity for which the MFA factor was enabled.
14 * mfa_id, // The ID of the MFA factor that was enabled.
15 * provider, // The provider of the MFA factor that was enabled.
16 * }
17 * ```
18 */
19 MFA_ENABLED: "auth.mfa_enabled",
20 /**
21 * Emitted when an MFA factor is disabled for an auth identity.
22 * @since 2.15.5
23 *
24 * @eventPayload
25 * ```ts
26 * {
27 * auth_identity_id, // The ID of the auth identity for which the MFA factor was disabled.
28 * mfa_id, // The ID of the MFA factor that was disabled.
29 * provider, // The provider of the MFA factor that was disabled.
30 * }
31 * ```
32 */
33 MFA_DISABLED: "auth.mfa_disabled",
34 /**
35 * Emitted when recovery codes are generated for an auth identity.
36 * @since 2.15.5
37 *
38 * @eventPayload
39 * ```ts
40 * {
41 * auth_identity_id, // The ID of the auth identity for which the recovery codes were generated.
42 * count, // (number) The number of recovery codes that were generated.
43 * }
44 * ```
45 */
46 MFA_RECOVERY_CODES_GENERATED: "auth.mfa_recovery_codes_generated",
47 } as const