import type * as CandidApi from "../../../index"; /** * Error content when a reallocation would cause an account to be overdrafted. * Contains both legacy string messages and new structured allocation details. */ export interface ReallocationWouldOverdraftErrorContent { /** * Legacy field containing error messages as strings. * Deprecated - use allocation_details for structured data. * Will be removed in a future version after frontend migration. */ messages: string[]; /** * Structured details about which allocations would be overdrafted. * Each detail includes entity type, ID, and error message for table display. */ allocationDetails?: CandidApi.AllocationOverdraftDetail[]; }