Generalized geometries and representation theory