import api from "./client"; export interface CompanyGoals { north_star: string; objectives: Record[]; constraints: string[]; operating_policy: Record; updated_at?: string | null; updated_by?: string | null; } export type CompanyGoalsUpdate = Partial< Pick< CompanyGoals, "north_star" | "objectives" | "constraints" | "operating_policy" > >; export const companyGoalsApi = { // GET /api/company-goals — the charter (any authenticated agent). get: async (): Promise => { const { data } = await api.get("/company-goals"); return data; }, // PUT /api/company-goals — CEO-only; partial update, returns the full charter. update: async (update: CompanyGoalsUpdate): Promise => { const { data } = await api.put("/company-goals", update); return data; }, };