Is a resource allocation problem in mechanism design a direct or indirect mechanism?
By definition, a direct mechanism is a mechanism that asks all agents for their types and then produces some outcome. Formally, it is a mechanism $\langle M,g\rangle$ in which $M_i$ is wlog equal to $i$'s type space, usually denoted by $\Theta_i$.

In your example, there is no such restriction. However, for any indirect mechanism there exists an equivalent direct mechanism. This result is called the revelation principle.