trackMessageInteractionEvent
Records that message was interacted with (a button/CTA click) via interaction. The message is validated against the module store before an interaction is recorded; interacting with an unknown message is a no-op.
For com.salesforce.marketingcloud.inboxmodels.InboxInteractionType.CTA interactions, the published interaction's id is always overridden to message's id regardless of what the caller passed — the CTA is the message itself. For com.salesforce.marketingcloud.inboxmodels.InboxInteractionType.BUTTON interactions, the caller-supplied id passes through unchanged when it matches one of InboxMessage.buttons; an unmatched button id is dropped and nothing is published.
The published event is consumed by the MAM engagement-analytics stack, which records it only for MAM-sourced messages.