{
    "type": "object",
    "properties": {
        "engagement": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "portalId": {
                    "type": "integer"
                },
                "active": {
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "integer"
                },
                "lastUpdated": {
                    "type": "integer"
                },
                "type": {
                    "type": "string"
                },
                "timestamp": {
                    "type": "integer"
                },
                "bodyPreview": {
                    "type": "string"
                },
                "bodyPreviewIsTruncated": {
                    "type": "boolean"
                },
                "bodyPreviewHtml": {
                    "type": "string"
                }
            },
            "required": [
                "id",
                "portalId",
                "active",
                "createdAt",
                "lastUpdated",
                "type",
                "timestamp",
                "allAccessibleTeamIds",
                "queueMembershipIds"
            ]
        },
        "associations": {
            "type": "object",
            "properties": {
                "contactIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "companyIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "dealIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "ownerIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "ticketIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            },
            "required": [
                "contactIds",
                "companyIds",
                "dealIds",
                "ownerIds",
                "workflowIds",
                "ticketIds",
                "contentIds",
                "quoteIds",
                "marketingEventIds",
                "partnerClientIds",
                "orderIds",
                "cartIds"
            ]
        },
        "metadata": {
            "type": "object",
            "properties": {
                "subject": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        }
    },
    "version": 1
}
