Chevalier Charles d’Éon de Beaumont.

He was a transgender/non-binary french spy. In the end we figured out they were born male.