import { apiRequest } from '@/shared/api/client' import type { ChangePlanResultDto, MyPlanStatusDto, PlanDto } from '@/shared/api/types' export function listPlans() { return apiRequest('/plans') } export function getMyPlanStatus() { return apiRequest('/plans/status') } export function changePlan(planId: string | undefined, customConfigCount: number | undefined, configIdsToRevoke: string[]) { return apiRequest('/plans/change', { method: 'POST', body: { planId: planId ?? null, customConfigCount: customConfigCount ?? null, configIdsToRevoke, }, }) }