[api] Add remote dependencies to roles