Policy evaluation based on client role

Is there a way to evaluate policies based on client roles like with the Evaluate tool in UI or with the
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate REST api endpoint?
Unfortunately these two options only work with realm roles.