import { client } from "./client"; import { components } from "../generated/api"; type ProfileData = components["schemas"]["ProfileResponse"]; interface UpdateProfileRequest { contact_email: string | null; telegram: string | null; signal: string | null; nostr_npub: string | null; } /** * Profile API endpoints */ export const profileApi = { /** * Get current user's profile */ getProfile(): Promise { return client.get("/api/profile"); }, /** * Update current user's profile */ updateProfile(request: UpdateProfileRequest): Promise { return client.put("/api/profile", request); }, };