{ "type": "object", "properties": { "@type": { "type": "string", "enum": [ "BasicMessage", "BasicAdminMessage", "LinkMessage" ] }, "to": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": ["Worker", "ServiceUser", "Chat", "MailboxConversation"] } }, "required": ["@id", "@type"] }, "from": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": ["Worker", "ServiceUser", "Chat", "MailboxConversation"] } }, "required": ["@id", "@type"] }, "body": { "type": "string", "minLength": 1 }, "url": { "type": "string", "minLength": 1 } }, "required": ["@type", "to", "from", "body"] }