{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "number"
    },
    "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."
    },
    "status_filter": {
      "type": "string"
    },
    "generated_at": {
      "type": "string"
    },
    "coverage": {
      "type": "object",
      "properties": {
        "denominator": {
          "type": "string"
        },
        "whole_web_coverage": {
          "type": "boolean",
          "const": false,
          "description": "False: these results do not measure the whole web."
        },
        "observation_basis": {
          "type": "string"
        },
        "includes_paused": {
          "type": "boolean"
        },
        "project_grant": {
          "type": "string"
        },
        "watch_count": {
          "type": "number"
        },
        "scanned_watch_count": {
          "type": "number"
        },
        "eligible_present_watches_in_scan": {
          "type": "number"
        },
        "excluded_evidence_watches_in_scan": {
          "type": "number"
        },
        "available_occurrences_in_scan": {
          "type": "number"
        },
        "scanned_occurrence_count": {
          "type": "number"
        },
        "included_occurrence_count": {
          "type": "number"
        },
        "invalid_occurrence_count": {
          "type": "number"
        },
        "occurrence_payload_bytes": {
          "type": "number"
        },
        "watch_payload_bytes": {
          "type": "number"
        },
        "watch_scan_limit": {
          "type": "number"
        },
        "occurrence_scan_limit": {
          "type": "number"
        },
        "watch_payload_byte_limit": {
          "type": "number"
        },
        "occurrence_payload_byte_limit": {
          "type": "number"
        },
        "included_observation_oldest_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "included_observation_newest_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "denominator",
        "whole_web_coverage",
        "observation_basis",
        "includes_paused",
        "project_grant",
        "watch_count",
        "scanned_watch_count",
        "eligible_present_watches_in_scan",
        "excluded_evidence_watches_in_scan",
        "available_occurrences_in_scan",
        "scanned_occurrence_count",
        "included_occurrence_count",
        "invalid_occurrence_count",
        "occurrence_payload_bytes",
        "watch_payload_bytes",
        "watch_scan_limit",
        "occurrence_scan_limit",
        "watch_payload_byte_limit",
        "occurrence_payload_byte_limit",
        "included_observation_oldest_at",
        "included_observation_newest_at",
        "partial",
        "limitations"
      ],
      "additionalProperties": {},
      "description": "Dataset scope and completeness, including limits on what these results establish."
    },
    "analysis_partial": {
      "type": "boolean"
    },
    "freshness": {
      "type": "object",
      "properties": {
        "oldest_last_success_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "newest_last_success_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oldest_latest_attempt_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "newest_latest_attempt_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "oldest_last_success_at",
        "newest_last_success_at",
        "oldest_latest_attempt_at",
        "newest_latest_attempt_at"
      ],
      "additionalProperties": {}
    },
    "counting_notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "watches": {
          "type": "number"
        },
        "status": {
          "type": "object",
          "properties": {
            "active": {
              "type": "number"
            },
            "paused": {
              "type": "number"
            }
          },
          "required": [
            "active",
            "paused"
          ],
          "additionalProperties": {},
          "description": "Resource lifecycle status."
        },
        "never_checked": {
          "type": "number"
        },
        "current_state": {
          "type": "object",
          "properties": {
            "present": {
              "type": "number"
            },
            "suspected_missing": {
              "type": "number"
            },
            "confirmed_missing": {
              "type": "number"
            },
            "source_unavailable": {
              "type": "number"
            },
            "unknown": {
              "type": "number"
            }
          },
          "required": [
            "present",
            "suspected_missing",
            "confirmed_missing",
            "source_unavailable",
            "unknown"
          ],
          "additionalProperties": {}
        },
        "latest_attempt": {
          "type": "object",
          "properties": {
            "present": {
              "type": "number"
            },
            "absent": {
              "type": "number"
            },
            "source_unavailable": {
              "type": "number"
            },
            "unknown": {
              "type": "number"
            },
            "evidence_unavailable": {
              "type": "number"
            }
          },
          "required": [
            "present",
            "absent",
            "source_unavailable",
            "unknown",
            "evidence_unavailable"
          ],
          "additionalProperties": {}
        },
        "last_successful_observation": {
          "type": "object",
          "properties": {
            "present": {
              "type": "number"
            },
            "absent": {
              "type": "number"
            },
            "source_unavailable": {
              "type": "number"
            },
            "none": {
              "type": "number"
            },
            "evidence_unavailable": {
              "type": "number"
            }
          },
          "required": [
            "present",
            "absent",
            "source_unavailable",
            "none",
            "evidence_unavailable"
          ],
          "additionalProperties": {}
        },
        "complete_present_evidence_in_scan": {
          "type": "number"
        },
        "known_present_after_unknown": {
          "type": "number"
        }
      },
      "required": [
        "watches",
        "status",
        "never_checked",
        "current_state",
        "latest_attempt",
        "last_successful_observation",
        "complete_present_evidence_in_scan",
        "known_present_after_unknown"
      ],
      "additionalProperties": {}
    },
    "monitored_source_hosts": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "monitored_targets": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "observed_referring_hosts": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "observed_targets": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "link_rel_sets": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "link_rel_tokens": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "distinct_watch_count": {
                "type": "number"
              },
              "example_watch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "occurrence_count": {
                "type": "number"
              },
              "watch_count": {
                "type": "number"
              },
              "token_occurrence_count": {
                "type": "number"
              },
              "link_occurrence_count": {
                "type": "number"
              },
              "hostname": {
                "type": "string"
              },
              "target_url": {
                "description": "Destination URL recorded in this evidence.",
                "type": "string"
              },
              "target_scope": {
                "type": "string"
              },
              "anchor": {
                "type": "string"
              },
              "empty_anchor": {
                "type": "boolean"
              },
              "token": {
                "description": "Invitation token returned only at creation. The accepting account must have the matching verified email.",
                "type": "string"
              },
              "term": {
                "type": "string"
              },
              "tokens": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "distinct_watch_count",
              "example_watch_ids"
            ],
            "additionalProperties": {},
            "description": "Records in this bounded page."
          },
          "description": "Records in this bounded page."
        },
        "total_groups": {
          "type": "number"
        },
        "returned_groups": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "total_groups",
        "returned_groups",
        "truncated"
      ],
      "additionalProperties": {}
    },
    "rel_facts": {
      "type": "object",
      "properties": {
        "included_occurrences": {
          "type": "number"
        },
        "no_link_nofollow_token_occurrences": {
          "type": "number"
        },
        "page_nofollow_occurrences": {
          "type": "number"
        },
        "ranking_credit_inferred": {
          "type": "boolean",
          "const": false
        }
      },
      "required": [
        "included_occurrences",
        "no_link_nofollow_token_occurrences",
        "page_nofollow_occurrences",
        "ranking_credit_inferred"
      ],
      "additionalProperties": {}
    }
  },
  "required": [
    "schema_version",
    "workspace_id",
    "project_id",
    "status_filter",
    "generated_at",
    "coverage",
    "analysis_partial",
    "freshness",
    "counting_notes",
    "counts",
    "monitored_source_hosts",
    "monitored_targets",
    "observed_referring_hosts",
    "observed_targets",
    "link_rel_sets",
    "link_rel_tokens",
    "rel_facts"
  ],
  "additionalProperties": {}
}
