Перейти к основному содержимому

userAccountLockedDataSchema

@mineflow/contracts


@mineflow/contracts / userAccountLockedDataSchema

Variable: userAccountLockedDataSchema

const userAccountLockedDataSchema: ZodObject<{
actorId: ZodUUID;
lockedUntil: ZodNullable<ZodISODateTime>;
reason: ZodString;
triggerSource: ZodEnum<{
auto_failed_attempts: "auto_failed_attempts";
manual: "manual";
}>;
userAccountId: ZodUUID;
}, $strip>;

Defined in: events/hr/user-account.ts:58

hr.user-account.locked — учётная запись заблокирована. triggerSource различает ручную блокировку и авто-блокировку по числу неудачных попыток входа; lockedUntil nullable (null = бессрочно). Подписчики: Notifications.