infer response type of endpoint methods to help with code completion