Minecraft wiki entry for Development_versions, associated text: Added Hero of the Village.
Occurs when a raid is defeated.
The level of the effect is equivalent to the level of the Bad Omen effect.
Lasts for approximately two in-game days, in which trades from villagers are heavily discounted.