Add backwards compatibility API module
Fix type specs, expose internal API for backwards compatibility module