Alex De Minaur secured his first ever Grand Slam win against a top-5 player with victory over Daniil Medvedev.