Enable libraries from plugin API

I’m building a plugin for my team’s internal consumption, and one of the features I’m looking to build is to selectively enable libraries for a file based on certain conditions. Right now, the plugin does file setups, like creating template pages, covers, etc. by pulling in data from JIRA. I wonder if there is a way to enable certain feature-specific libraries based on say the JIRA team. Is this possible / on the horizon as part of the plugin API?