{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "number",
      "const": 1
    },
    "workspace_id": {
      "type": "string",
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Project that owns this record."
        },
        {
          "type": "null"
        }
      ],
      "description": "Project that owns this record."
    },
    "as_of": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "days": {
          "type": "integer",
          "minimum": 1,
          "maximum": 90
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      },
      "required": [
        "days",
        "from",
        "to"
      ],
      "additionalProperties": {}
    },
    "totals": {
      "type": "object",
      "properties": {
        "links": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "live": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "missing": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "couldnt_check": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "paused": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "not_checked_yet": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_checked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "found": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "back": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "lost": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "links",
        "live",
        "missing",
        "couldnt_check",
        "paused",
        "not_checked_yet",
        "last_checked_at",
        "found",
        "lost"
      ],
      "additionalProperties": {}
    },
    "websites": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "description": "Project that owns this record."
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "live": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "missing": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "couldnt_check": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "paused": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "not_checked_yet": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_checked_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "found": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "back": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "lost": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "project_id",
          "domain",
          "name",
          "links",
          "live",
          "missing",
          "couldnt_check",
          "paused",
          "not_checked_yet",
          "last_checked_at",
          "found",
          "lost"
        ],
        "additionalProperties": {}
      }
    },
    "websites_truncated": {
      "type": "boolean"
    },
    "daily": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "day": {
                "type": "string"
              },
              "found": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "back": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "lost": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "day",
              "found",
              "lost"
            ],
            "additionalProperties": {}
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "changes_complete": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "statuses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "schema_version",
    "workspace_id",
    "project_id",
    "as_of",
    "period",
    "totals",
    "websites",
    "websites_truncated",
    "daily",
    "changes_complete",
    "statuses"
  ],
  "additionalProperties": {}
}
