export const CHAT_THREAD_BOARD_STATE = { OPEN: "open", FROZEN: "frozen", TAKEOVER: "takeover", } as const; export const BOARD_INTERVENTION_MODE = { OBSERVE: "observe", INTERVENE: "intervene", TAKEOVER: "takeover", } as const; export const BOARD_INTERVENTION_ACTION = { DECISION: "decision", FREEZE: "freeze", TAKEOVER: "takeover", ROLLBACK: "rollback", FORCE_APPROVAL: "force_approval", } as const; type ValueOf = T[keyof T]; export type ChatThreadBoardState = ValueOf; export type BoardInterventionMode = ValueOf; export type BoardInterventionAction = ValueOf; export interface BoardInterventionRecord { id: string; orgId: string; threadId: string; messageId: string; mode: BoardInterventionMode; action: BoardInterventionAction; details: string; targetType: "employee" | "agent" | "board" | null; targetId: string | null; approvalId: string | null; createdByType: "employee" | "agent" | "board" | "system"; createdById: string | null; createdAt: string; }