import { client } from "../client"; import type { Role, User } from "../client"; export function patchUserRole(id: string, role: Role): Promise { return client(`/users/${id}/role`, { method: "PATCH", body: { role }, }); }