Add common classes to represent common types in the API.