[api] avoid deprication warnings for .all call