emit events for inputs and outputs

[#77944744]