Generalized Spinfoams