Type 1 and Type 2 firmware are legal for the USA, North America. These modes are not permitted for use in the EU.
Type 1 Firmware - The motor will only operate when the pedals are turning – so called pedal assist mode.
Type 2 Firmware - The motor will operate even when the pedals are not turning – so called scooter mode. Check your local state regulations for legality, for example New York City does not permit Type 2.