import { httpClient } from '../../../core/infrastructure/httpClient'; import type { User, StatusPreset } from '../../../core/domain/types'; export class StatusApi { static async getPresets(): Promise { return httpClient.request('/statuses/presets'); } static async setCustom(body: { emoji?: string | null; text?: string | null; expiresAt?: string | null; presetKey?: string | null; }): Promise { return httpClient.request('/statuses/custom', { method: 'POST', body: JSON.stringify({ emoji: body.emoji ?? '', text: body.text ?? '', expiresAt: body.expiresAt ?? null, presetKey: body.presetKey ?? null, }), }); } static async clear(): Promise { return httpClient.request('/statuses/', { method: 'DELETE', }); } }