introduce Triggers type, a newPipeline option

keep integration tests as-is to prove the deprecated APIs still function