I was thinking about this a little more. What do you think about adding types to src/interfaces/communications.d.ts to define the messages?