Publish & Subscribe / Event Hooks system?

We are working with a SaaS partner. They have developed a behavioral analytics/messaging system for boosting Customer Success. They want to build an almost zero config plugin for CoursePress.

Does CoursePress (and/or BuddyPress). Have an 'event hook' publish/subscribe system yet?

Example. When someone finishes a module for example.. You publish something like?

wp_publish('finished_module', [ 'module' => 1]);

Do you have anything like this for other developers to hook into? Thanks for your help!