A written or printed declaration or statement of facts, made voluntarily, and confirmed by the oath or affirmation of the party making it, taken before an officer having authority to administer such oath. An affidavit is a written declaration under oath, made without notice to the adverse party.
https://thelawdictionary.org/affidavit/