{
    "title": "Tlog message",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "ver": {
            "description": "Message format version",
            "type": "string",
            "pattern": "^[0-9]+(\\.[0-9]+)?$"
        },
        "host": {
            "description": "Name of the host recording was made on",
            "type": "string"
        },
        "rec": {
            "description": "ID of the recording on the host",
            "type": "string"
        },
        "user": {
            "description": "Recorded user name",
            "type": "string"
        },
        "term": {
            "description": "Terminal type name",
            "type": "string"
        },
        "session": {
            "description": "Audit session ID",
            "type": "integer",
            "minimum": 1
        },
        "id": {
            "description": "ID of the message within the recording",
            "type": "integer",
            "minimum": 1
        },
        "pos": {
            "description": "Message position in the recording, milliseconds",
            "type": "integer",
            "minimum": 0
        },
        "timing": {
            "description": "Distribution of this message's events in time",
            "type": "string"
        },
        "in_txt": {
            "description": "Input text with invalid characters scrubbed",
            "type": "string"
        },
        "in_bin": {
            "description": "Scrubbed invalid input characters as bytes",
            "type": "array",
            "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 255
            }
        },
        "out_txt": {
            "description": "Output text with invalid characters scrubbed",
            "type": "string"
        },
        "out_bin": {
            "description": "Scrubbed invalid output characters as bytes",
            "type": "array",
            "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 255
            }
        }
    },
    "required": [
        "ver",
        "host",
        "rec",
        "user",
        "term",
        "session",
        "id",
        "pos",
        "timing"
    ]
}