import { apiFetch } from "./client"; export interface CharacterAbility { name: string; description: string; } export interface Character { id: string; owner_id: string; name: string; race: string | null; char_class: string | null; level: number; stats: Record; combat_stats: Record; current_hp: number | null; max_hp: number | null; abilities: CharacterAbility[]; equipment: string[]; description: string; created_at: string; updated_at: string; } export const listCharacters = () => apiFetch("/api/characters"); export const getCharacter = (id: string) => apiFetch(`/api/characters/${id}`);