Indemnity insurance is a contractual agreement in which one party guarantees compensation for actual or potential losses or damages sustained by another party.