{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "snapshot": {
      "type": "object",
      "properties": {
        "schema_version": {
          "type": "number",
          "const": 1
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "Resource identifier returned by the operation."
        },
        "workspace_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "Workspace that owns this record."
        },
        "project_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "Project that owns this record."
        },
        "capture_started_at": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
        },
        "captured_at": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
        },
        "expires_at": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
        },
        "content_hash": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "basis": {
          "type": "string",
          "const": "non_archived_monitored_watches"
        },
        "consistency": {
          "type": "string",
          "const": "bounded_read_interval"
        },
        "unique_physical_links": {
          "type": "boolean",
          "const": false
        },
        "whole_web_coverage": {
          "type": "boolean",
          "const": false,
          "description": "False: these results do not measure the whole web."
        },
        "total_watches": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "categories": {
          "type": "object",
          "properties": {
            "display": {
              "type": "object",
              "properties": {
                "denominator": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "known_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_share": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "share": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "value",
                      "count",
                      "share"
                    ],
                    "additionalProperties": false,
                    "description": "Records in this bounded page."
                  },
                  "description": "Records in this bounded page."
                }
              },
              "required": [
                "denominator",
                "known_count",
                "unknown_count",
                "unknown_share",
                "items"
              ],
              "additionalProperties": false
            },
            "chosen": {
              "type": "object",
              "properties": {
                "denominator": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "known_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_share": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "share": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "value",
                      "count",
                      "share"
                    ],
                    "additionalProperties": false,
                    "description": "Records in this bounded page."
                  },
                  "description": "Records in this bounded page."
                }
              },
              "required": [
                "denominator",
                "known_count",
                "unknown_count",
                "unknown_share",
                "items"
              ],
              "additionalProperties": false
            },
            "assessed": {
              "type": "object",
              "properties": {
                "denominator": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "known_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unknown_share": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "share": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "value",
                      "count",
                      "share"
                    ],
                    "additionalProperties": false,
                    "description": "Records in this bounded page."
                  },
                  "description": "Records in this bounded page."
                }
              },
              "required": [
                "denominator",
                "known_count",
                "unknown_count",
                "unknown_share",
                "items"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "display",
            "chosen",
            "assessed"
          ],
          "additionalProperties": false
        },
        "authority": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "scope": {
                "type": "string",
                "enum": [
                  "page",
                  "domain"
                ]
              },
              "scale": {
                "type": "string"
              },
              "histogram": {
                "type": "object",
                "properties": {
                  "denominator": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "known_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknown_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknown_share": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "share": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "value",
                        "count",
                        "share"
                      ],
                      "additionalProperties": false,
                      "description": "Records in this bounded page."
                    },
                    "description": "Records in this bounded page."
                  }
                },
                "required": [
                  "denominator",
                  "known_count",
                  "unknown_count",
                  "unknown_share",
                  "items"
                ],
                "additionalProperties": false
              },
              "mean": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "oldest_retrieved_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "newest_retrieved_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "provider",
              "name",
              "scope",
              "scale",
              "histogram",
              "mean",
              "oldest_retrieved_at",
              "newest_retrieved_at"
            ],
            "additionalProperties": false
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "schema_version",
        "id",
        "workspace_id",
        "project_id",
        "capture_started_at",
        "captured_at",
        "expires_at",
        "content_hash",
        "basis",
        "consistency",
        "unique_physical_links",
        "whole_web_coverage",
        "total_watches",
        "categories",
        "authority",
        "notes"
      ],
      "additionalProperties": false
    },
    "total_records": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ordinal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "watch_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "source_url": {
            "type": "string",
            "description": "Publisher page URL recorded in this evidence."
          },
          "target_url": {
            "type": "string",
            "description": "Destination URL recorded in this evidence."
          },
          "target_scope": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Resource lifecycle status."
          },
          "state": {
            "type": "string",
            "description": "Saved lifecycle or evidence state, as enumerated for this record."
          },
          "last_observation_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "category_contract": {
            "type": "string",
            "const": "link-category-v1"
          },
          "chosen_category": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "page_assessment": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "display_category": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "category_values": {
            "type": "object",
            "properties": {
              "display": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "chosen": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "assessed": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "display",
              "chosen",
              "assessed"
            ],
            "additionalProperties": false
          },
          "authority": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "const": "dataforseo"
                },
                "name": {
                  "type": "string",
                  "const": "rank"
                },
                "scale": {
                  "type": "string",
                  "const": "0-1000"
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "page",
                    "domain"
                  ]
                },
                "target": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retrievedAt": {
                  "type": "string"
                },
                "supplierObservedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provenance": {
                  "type": "string",
                  "const": "imported"
                }
              },
              "required": [
                "provider",
                "name",
                "scale",
                "scope",
                "target",
                "value",
                "retrievedAt",
                "supplierObservedAt"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "ordinal",
          "watch_id",
          "source_url",
          "target_url",
          "target_scope",
          "status",
          "state",
          "last_observation_id",
          "category_contract",
          "chosen_category",
          "page_assessment",
          "display_category",
          "category_values",
          "authority"
        ],
        "additionalProperties": false,
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Opaque continuation for the same listing; null means no further page."
        },
        {
          "type": "null"
        }
      ],
      "description": "Opaque continuation for the same listing; null means no further page."
    },
    "has_more": {
      "type": "boolean",
      "description": "True when another page is available."
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "csv"
      ]
    },
    "csv": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "snapshot",
    "total_records",
    "items",
    "next_cursor",
    "has_more",
    "format",
    "csv"
  ],
  "additionalProperties": {}
}
