Kinetic Theory of Thermal Transpiration and Mechanocaloric Effect. I