api: add resolve API for link aliases