{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "threadId": {
            "type": "string"
        },
        "labelIds": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "sizeEstimate": {
            "type": "integer"
        },
        "headers": {
            "type": "object",
            "properties": {
                "mime-version": {
                    "type": "string"
                },
                "date": {
                    "type": "string"
                },
                "message-id": {
                    "type": "string"
                },
                "subject": {
                    "type": "string"
                },
                "from": {
                    "type": "string"
                },
                "content-type": {
                    "type": "string"
                },
                "to": {
                    "type": "string"
                }
            },
            "required": [
                "date",
                "message-id",
                "from"
            ]
        },
        "text": {
            "type": "string"
        },
        "textAsHtml": {
            "type": "string"
        },
        "subject": {
            "type": "string"
        },
        "date": {
            "type": "string"
        },
        "from": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "address": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "address",
                            "name"
                        ]
                    }
                },
                "html": {
                    "type": "string"
                },
                "text": {
                    "type": "string"
                }
            },
            "required": [
                "value",
                "html",
                "text"
            ]
        },
        "messageId": {
            "type": "string"
        },
        "to": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "address": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "address",
                            "name"
                        ]
                    }
                },
                "html": {
                    "type": "string"
                },
                "text": {
                    "type": "string"
                }
            },
            "required": [
                "value",
                "html",
                "text"
            ]
        }
    },
    "required": [
        "id",
        "threadId",
        "labelIds",
        "sizeEstimate",
        "headers",
        "html",
        "date",
        "from",
        "messageId"
    ],
    "version": 1
}
