Was the arrest of Nicolás Maduro legal?

A chronicle of Donald Trump's Crimes or Allegations