A 28-year-old woman presents to the clinic with complaints of double vision and difficulty swallowing, which worsen throughout the day. Neurological examination reveals bilateral ptosis and decreased muscle strength that improves after resting. A Tensilon test is performed and is positive. What type of hypersensitivity reaction is responsible for this patient’s condition?