import { put } from './fetcher.js';

export const updateInsight = async ({
  draftId,
  type,
  value,
}: {
  draftId: string;
  type: string;
  value: string;
}) => {
  return put([
    `/conductor/proxy/v3/accounts/24936/insights/${draftId}/writing-assistant`,
    {
      insightType: type,
      changeType: 'USER_ADDED',
      changeValue: value,
    },
  ]);
};
