{
    "additionalProperties": false,
    "description": "Schema for a Mandrill message sent event",
    "properties": {
        "_id": {
            "type": "string"
        },
        "msg": {
            "additionalProperties": false,
            "properties": {
                "_id": {
                    "type": "string"
                },
                "_version": {
                    "type": "string"
                },
                "clicks": {
                    "type": "array"
                },
                "email": {
                    "type": "string"
                },
                "metadata": {
                    "additionalProperties": true,
                    "properties": {
                        "user_id": {
                            "type": "number"
                        }
                    },
                    "type": "object"
                },
                "opens": {
                    "type": "array"
                },
                "reject": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "resends": {
                    "type": "array"
                },
                "sender": {
                    "type": "string"
                },
                "smtp_events": {
                    "items": {
                        "additionalProperties": true,
                        "properties": {
                            "destination_ip": {
                                "type": "string"
                            },
                            "diag": {
                                "type": "string"
                            },
                            "size": {
                                "type": "integer"
                            },
                            "source_ip": {
                                "type": "string"
                            },
                            "ts": {
                                "_format": "date-time",
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "type": "array"
                },
                "state": {
                    "type": "string"
                },
                "subaccount": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "subject": {
                    "type": "string"
                },
                "tags": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "template": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "ts": {
                    "_format": "date-time",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ts": {
            "_format": "date-time",
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "message_sent",
        "vendor": "com.mandrill",
        "version": "1-0-0"
    },
    "type": "object"
}