import { cmsApi } from './api.js';
export async function fixBrandVoiceContent(input) {
    const res = await cmsApi('/ai/brand-voice/fix', {
        method: 'POST',
        body: JSON.stringify(input),
    });
    if (res.error)
        return { ok: false, error: res.error };
    if (!res.data?.text)
        return { ok: false, error: 'No fixed copy was returned.' };
    return { ok: true, result: res.data };
}
export function brandAlignmentLabel(score) {
    if (score >= 85)
        return 'On brand';
    if (score >= 65)
        return 'Mostly on brand';
    return 'Off brand';
}
export function brandAlignmentTone(score) {
    if (score >= 85)
        return 'text-success';
    if (score >= 65)
        return 'text-warning';
    return 'text-destructive';
}
//# sourceMappingURL=brand-voice-client.js.map