alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
26 lines (24 loc) • 656 B
text/typescript
import { $audit } from "alepha/api/audits";
/**
* User-management audit events.
*
* Holds the `user` audit type. Mirrors the `$notification`/`$job` holder
* pattern (see {@link UserNotifications}) — register as a module variant and
* log via the exposed primitive: `userAudits(realm)?.user.log("create", …)`.
*/
export class UserAudits {
public readonly user = $audit({
type: "user",
description:
"User management events (create, update, delete, role/password changes).",
actions: [
"create",
"update",
"delete",
"role_change",
"password_change",
"enable",
"disable",
],
});
}