Generalized Tube Algebras, Symmetry-Resolved Partition Functions, and Twisted Boundary States | Synapse