{
    "additionalProperties": false,
    "description": "Schema for an Olark transcript event",
    "properties": {
        "groups": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "id": {
                        "maxLength": 128,
                        "type": "string"
                    },
                    "kind": {
                        "maxLength": 128,
                        "type": "string"
                    },
                    "name": {
                        "maxLength": 128,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array"
        },
        "id": {
            "maxLength": 128,
            "type": "string"
        },
        "items": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "body": {
                        "type": "string"
                    },
                    "kind": {
                        "maxLength": 64,
                        "type": "string"
                    },
                    "nickname": {
                        "maxLength": 64,
                        "type": "string"
                    },
                    "operatorId": {
                        "maxLength": 64,
                        "type": "string"
                    },
                    "timestamp": {
                        "_format": "date-time",
                        "type": "string"
                    },
                    "visitorNickname": {
                        "maxLength": 64,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array"
        },
        "kind": {
            "maxLength": 64,
            "type": "string"
        },
        "manuallySubmitted": {
            "type": "boolean"
        },
        "operators": {
            "additionalProperties": false,
            "patternProperties": {
                ".*": {
                    "additionalProperties": false,
                    "properties": {
                        "emailAddress": {
                            "_format": "email",
                            "maxLength": 256,
                            "type": "string"
                        },
                        "id": {
                            "maxLength": 128,
                            "type": "string"
                        },
                        "kind": {
                            "maxLength": 64,
                            "type": "string"
                        },
                        "nickname": {
                            "maxLength": 64,
                            "type": "string"
                        },
                        "username": {
                            "maxLength": 128,
                            "type": "string"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "tags": {
            "items": {
                "maxLength": 128,
                "type": "string"
            },
            "type": "array"
        },
        "visitor": {
            "additionalProperties": true,
            "properties": {
                "browser": {
                    "maxLength": 128,
                    "type": "string"
                },
                "chatFeedback": {
                    "additionalProperties": false,
                    "properties": {
                        "comments": {
                            "type": "string"
                        },
                        "friendliness": {
                            "maximum": 32767,
                            "minimum": 0,
                            "type": "integer"
                        },
                        "knowledge": {
                            "maximum": 32767,
                            "minimum": 0,
                            "type": "integer"
                        },
                        "overallChat": {
                            "maximum": 32767,
                            "minimum": 0,
                            "type": "integer"
                        },
                        "responsiveness": {
                            "maximum": 32767,
                            "minimum": 0,
                            "type": "integer"
                        }
                    },
                    "type": "object"
                },
                "city": {
                    "maxLength": 128,
                    "type": "string"
                },
                "conversationBeginPage": {
                    "_format": "uri",
                    "maxLength": 8192,
                    "type": "string"
                },
                "country": {
                    "maxLength": 128,
                    "type": "string"
                },
                "countryCode": {
                    "maxLength": 8,
                    "type": "string"
                },
                "emailAddress": {
                    "_format": "email",
                    "maxLength": 256,
                    "type": "string"
                },
                "fullName": {
                    "maxLength": 256,
                    "type": "string"
                },
                "id": {
                    "maxLength": 64,
                    "type": "string"
                },
                "ip": {
                    "_format": "ipv4",
                    "type": "string"
                },
                "kind": {
                    "maxLength": 64,
                    "type": "string"
                },
                "operatingSystem": {
                    "maxLength": 128,
                    "type": "string"
                },
                "organization": {
                    "maxLength": 128,
                    "type": "string"
                },
                "phoneNumber": {
                    "maxLength": 64,
                    "type": "string"
                },
                "region": {
                    "maxLength": 8,
                    "type": "string"
                }
            },
            "type": "object"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "transcript",
        "vendor": "com.olark",
        "version": "1-0-0"
    },
    "type": "object"
}