export const COMMERCIAL_API_HOLD_CODE = "QMD_COMMERCIAL_API_HOLD";
/** Fail-closed result for learned-model work without an approved commercial API. */
export class CommercialApiHoldError extends Error {
    code = COMMERCIAL_API_HOLD_CODE;
    disposition = "HOLD";
    constructor(reason) {
        super(`[${COMMERCIAL_API_HOLD_CODE}] HOLD: ${reason}`);
        this.name = "CommercialApiHoldError";
    }
}
export function commercialApiHold(reason) {
    return new CommercialApiHoldError(reason);
}
