import * as v from 'valibot'; import { accountSchema } from './account'; enum GroupRoles { OWNER = 'owner', ADMIN = 'admin', USER = 'user' } type GroupRole =`${GroupRoles}`; const groupMemberSchema = v.object({ id: v.string(), account: accountSchema, role: z.nativeEnum(GroupRoles), }); type GroupMember = v.InferOutput; export { groupMemberSchema, type GroupMember, GroupRoles, type GroupRole };