{
  "type": "object",
  "required": [
    "targetKind",
    "route",
    "url",
    "origin",
    "viewport",
    "screenshot"
  ],
  "properties": {
    "targetKind": {
      "const": "screenshot"
    },
    "route": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "origin": {
      "type": "string"
    },
    "viewport": {
      "type": "object",
      "additionalProperties": true
    },
    "screenshot": {
      "type": "object",
      "required": [
        "mimeType",
        "width",
        "height",
        "screenshotRect",
        "cursorPage",
        "cursorImage"
      ],
      "properties": {
        "mimeType": {
          "type": "string",
          "enum": [
            "image/png",
            "image/jpeg",
            "image/webp"
          ]
        },
        "dataUrl": {
          "type": "string"
        },
        "base64": {
          "type": "string"
        },
        "width": {
          "type": "number"
        },
        "height": {
          "type": "number"
        },
        "screenshotRect": {
          "type": "object",
          "additionalProperties": true
        },
        "cursorPage": {
          "type": "object",
          "additionalProperties": true
        },
        "cursorImage": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "commitSha": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}