{
    "type": "object",
    "properties": {
        "channel": {
            "type": "string"
        },
        "message": {
            "type": "object",
            "properties": {
                "_id": {
                    "type": "string"
                },
                "_updatedAt": {
                    "type": "string"
                },
                "alias": {
                    "type": "string"
                },
                "attachments": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "fields": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "short": {
                                            "type": "boolean"
                                        },
                                        "title": {
                                            "type": "string"
                                        },
                                        "value": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "text": {
                                "type": "string"
                            },
                            "title": {
                                "type": "string"
                            },
                            "ts": {
                                "type": "string"
                            }
                        }
                    }
                },
                "groupable": {
                    "type": "boolean"
                },
                "md": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "type": {
                                "type": "string"
                            },
                            "value": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "mentions": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "_id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            },
                            "username": {
                                "type": "string"
                            }
                        }
                    }
                },
                "msg": {
                    "type": "string"
                },
                "parseUrls": {
                    "type": "boolean"
                },
                "rid": {
                    "type": "string"
                },
                "ts": {
                    "type": "string"
                },
                "u": {
                    "type": "object",
                    "properties": {
                        "_id": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "username": {
                            "type": "string"
                        }
                    }
                },
                "unread": {
                    "type": "boolean"
                },
                "urls": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "url": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "success": {
            "type": "boolean"
        },
        "ts": {
            "type": "integer"
        }
    },
    "version": 1
}
