About stanzas' and origins' (Prosody)
Here is a structure of the stanza property of an event,
A basic event I’m using to test my script has a stanza and a origin property. The origin property looks like this.
We must now define the stanza property, doing it manually would require you to set the metatables manually too. So heres an easy way of doing it. Use the stanza util module.