import type { paths } from '@/shared/api/schema'; import { api } from '@/shared/api/client'; type RegisterRequestBody = paths['/auth/register']['post']['requestBody']['content']['application/json']; type RegisterSuccessResponse = paths['/auth/register']['post']['responses']['200']['content']['application/json']; export async function register(data: RegisterRequestBody) { const { data: result } = await api.post('auth/register', data); return result; }