{
  "@context": {
    "@version": 1.1,
    "merge": "https://api.merge.dev/schema/",
    "schema": "https://schema.org/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Message": "schema:Message",
    "Conversation": "schema:Conversation",
    "User": "schema:Person",
    "Group": "schema:Group",
    "Member": "merge:Member",

    "id": { "@id": "dcterms:identifier", "@type": "xsd:string" },
    "remoteId": { "@id": "merge:remote_id", "@type": "xsd:string" },
    "conversation": { "@id": "merge:conversation", "@type": "@id" },
    "author": { "@id": "schema:sender", "@type": "@id" },
    "content": { "@id": "schema:text", "@type": "xsd:string" },
    "contentHtml": { "@id": "merge:content_html", "@type": "xsd:string" },
    "parentMessage": { "@id": "merge:parent_message", "@type": "@id" },
    "attachments": { "@id": "schema:associatedMedia", "@container": "@set" },
    "mentions": { "@id": "schema:mentions", "@container": "@set", "@type": "@id" },
    "sentAt": { "@id": "schema:dateSent", "@type": "xsd:dateTime" },
    "remoteWasDeleted": { "@id": "merge:remote_was_deleted", "@type": "xsd:boolean" },
    "createdAt": { "@id": "dcterms:created", "@type": "xsd:dateTime" },
    "modifiedAt": { "@id": "dcterms:modified", "@type": "xsd:dateTime" }
  }
}
