Generalized charges, part I: Invertible symmetries and higher representations | Synapse