Browse EAV entities and their attribute definitions.
import { getEav } from "@/lib/eav";
const eav = await getEav();
// List all entities — metadata only (no attributes)
const entities = await eav.entities.list();
// Each entity is an EavEntity:
// id: string
// name: string
// description: string | null
// icon: string | null
// linkedTo: "brandapp" | "brandappAuthUser"
// createdAt / updatedAt: string
// Get a single entity WITH its attribute definitions
const entity = await eav.entities.get(entities[0].id);
console.log(entity.name, entity.attributes); // attributes: EavAttribute[]