{
  "$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
    },
    "replayed": {
      "type": "boolean",
      "description": "True when the response reuses an earlier request with the same idempotency value."
    }
  },
  "required": [
    "snapshot",
    "replayed"
  ],
  "additionalProperties": {}
}
