import { createModuleEvents } from "@open-mercato/shared/modules/events";
const events = [
  // Users
  { id: "auth.user.created", label: "User Created", entity: "user", category: "crud" },
  { id: "auth.user.updated", label: "User Updated", entity: "user", category: "crud" },
  { id: "auth.user.deleted", label: "User Deleted", entity: "user", category: "crud" },
  // Roles
  { id: "auth.role.created", label: "Role Created", entity: "role", category: "crud" },
  { id: "auth.role.updated", label: "Role Updated", entity: "role", category: "crud" },
  { id: "auth.role.deleted", label: "Role Deleted", entity: "role", category: "crud" },
  // Authentication events
  { id: "auth.login.success", label: "Login Successful", category: "lifecycle" },
  { id: "auth.login.failed", label: "Login Failed", category: "lifecycle" },
  { id: "auth.logout", label: "User Logged Out", category: "lifecycle" },
  { id: "auth.password.changed", label: "Password Changed", category: "lifecycle" },
  { id: "auth.password.reset.requested", label: "Password Reset Requested", category: "lifecycle" },
  { id: "auth.password.reset.completed", label: "Password Reset Completed", category: "lifecycle" }
];
const eventsConfig = createModuleEvents({
  moduleId: "auth",
  events
});
const emitAuthEvent = eventsConfig.emit;
var events_default = eventsConfig;
export {
  events_default as default,
  emitAuthEvent,
  eventsConfig
};
//# sourceMappingURL=events.js.map
