ApiQueryUserInfo returns information about users, including an anon flag if the user is anonymous.
Following the decision to consider temporary users as a separate type of user in T337103: Decide a standard approach for classifying temporary, IP and registered users, we should add a temp flag to these in order to flag temporary users too.
See also T351636: Add `temp` flag to various APIs for similar changes to other APIs.