Add typing for response objects