export {
  getUsers,
  getUserById,
  getUserByEmail,
  getUserByUsername,
  getOwnerUser,
  getUserCount,
  createUser,
  updateUser,
  deleteUser,
  getPasskeysByUserId,
  getPasskeysByUserIdAndOrigin,
  getPasskeyByCredentialId,
  createPasskey,
  updatePasskey,
  storeChallenge,
  consumeChallenge,
  blacklistToken,
  isTokenBlacklisted,
  cleanupExpiredTokens,
} from './queries';

// Exported as a value, not just a type: the API and the UI need to enumerate the roles, and the
// column definition is the only place that list should exist.
export { USER_ROLES, OWNER_USER_ID } from './schema';

export type { UserRole } from './schema';
