Implement a Python function calculate_area in the file /app/solution.py that calculates the area of different geometric shapes based on the provided input. The function should accept a dictionary as an argument, which includes the shape type (as a string) and the necessary dimensions. The function must handle the following shapes:
Rectangle - The dictionary should contain the key "type" with the value "rectangle" and keys "width" and "height" to represent the dimensions. The area should be calculated as width * height.
Example Input: {"type": "rectangle", "width": 5, "height": 10}
Example Output: 50
Circle - The dictionary should contain the key "type" with the value "circle" and the key "radius" to represent the radius of the circle. The area should be calculated as π * radius^2, using math.pi for the value of π.
Example Input: {"type": "circle", "radius": 7}
Example Output: 153.93804002589985 (approximately)
Triangle - The dictionary should contain the key "type" with the value "triangle" and keys "base" and "height" to represent the dimensions. The area should be calculated as 0.5 * base * height.
Example Input: {"type": "triangle", "base": 8, "height": 5}
Example Output: 20.0
If an unsupported shape type is provided, the function should raise a ValueError with the message "Unsupported shape type".
Ensure to import the math module for the circle calculation. The function should be designed to handle valid inputs only and raise appropriate exceptions for invalid cases.
Please ensure that all calculations adhere to the specifications outlined above to ensure all associated tests pass successfully.