{
  "$ref": "#/definitions/Events",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Events": {
      "additionalProperties": false,
      "properties": {
        "modalShow": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "show": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "show"
          ],
          "type": "object"
        },
        "uploadComplete": {
          "additionalProperties": false,
          "properties": {
            "downloaded": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "downloaded",
            "id"
          ],
          "type": "object"
        },
        "uploadError": {
          "additionalProperties": false,
          "properties": {
            "downloaded": {
              "type": "boolean"
            },
            "error": {
              "additionalProperties": false,
              "properties": {
                "message": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "stack": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "message"
              ],
              "type": "object"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "downloaded",
            "id",
            "error"
          ],
          "type": "object"
        }
      },
      "required": [
        "uploadError",
        "uploadComplete",
        "modalShow"
      ],
      "type": "object"
    }
  }
}
