What work requires a building permit?

Most work on a building structure or its equipment requires a building permit except for aesthetic maintenance items, such as painting or carpeting.