Main water line replacement pipe
I have not seen a minimum code for size on the customer side, with that said most homes do have a minimum of 3/4" pipe with 1" being common on longer distances.

All of the properties I have owned the customer was responsible after the meter. In 1 town I did have to replace the meter, the meter had to be purchased from the city.

I would go with 1" to reduce any pressure drop to the home. I would check with the city or water district to make sure there are no restrictions or requirements you may be unaware of. I have seen PVC, copper, and galvanized pipe used to connect to city water systems.

Since you did not say anything about the age of your home it was common in years past to use incoming water line as the grounding electrode. If you replace the line with non metallic please check your grounding electrode system. I have found several homes that had their supplies updated with PVC that removed the ground and did create a hazard but 2 new ground rods needed to be added to these houses to make the electrical system safe again.