Higher Koszul duality and n-affineness | Synapse