{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "description": "Project that owns this record."
    },
    "domain": {
      "type": "string"
    },
    "set": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Resource identifier returned by the operation."
            },
            "revision": {
              "type": "number",
              "description": "Recorded revision. For an update, use the revision argument named by that operation."
            }
          },
          "required": [
            "id",
            "revision"
          ],
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "member_id": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "dataset": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "dataset_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "lookup",
                      "inventory"
                    ]
                  },
                  "run_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data_mode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "retrieved_at": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "retrieved": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider_total_count": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "row_limit": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coverage": {
                    "type": "string",
                    "enum": [
                      "complete",
                      "capped",
                      "partial",
                      "unknown"
                    ],
                    "description": "Dataset scope and completeness, including limits on what these results establish."
                  },
                  "coverage_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows_read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows_truncated": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "dataset_id",
                  "kind",
                  "run_id",
                  "provider",
                  "data_mode",
                  "retrieved_at",
                  "retrieved",
                  "provider_total_count",
                  "row_limit",
                  "coverage",
                  "coverage_reason",
                  "rows_read",
                  "rows_truncated"
                ],
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "previous_dataset": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "dataset_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "lookup",
                      "inventory"
                    ]
                  },
                  "run_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data_mode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "retrieved_at": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "retrieved": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider_total_count": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "row_limit": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coverage": {
                    "type": "string",
                    "enum": [
                      "complete",
                      "capped",
                      "partial",
                      "unknown"
                    ],
                    "description": "Dataset scope and completeness, including limits on what these results establish."
                  },
                  "coverage_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows_read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows_truncated": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "dataset_id",
                  "kind",
                  "run_id",
                  "provider",
                  "data_mode",
                  "retrieved_at",
                  "retrieved",
                  "provider_total_count",
                  "row_limit",
                  "coverage",
                  "coverage_reason",
                  "rows_read",
                  "rows_truncated"
                ],
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "dataset_difference": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "comparable": {
                    "type": "boolean"
                  },
                  "reasons": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "absence_claim": {
                    "type": "string",
                    "description": "not_supported: missing dataset rows cannot prove link absence."
                  }
                },
                "required": [
                  "comparable",
                  "reasons",
                  "absence_claim"
                ],
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "member_id",
          "domain",
          "dataset",
          "previous_dataset",
          "dataset_difference"
        ],
        "additionalProperties": {}
      }
    },
    "you": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string"
        },
        "monitored_sites": {
          "type": "number"
        },
        "index_lookup": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "dataset_id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "lookup",
                    "inventory"
                  ]
                },
                "run_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provider": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "data_mode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retrieved_at": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retrieved": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provider_total_count": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "row_limit": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "coverage": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "capped",
                    "partial",
                    "unknown"
                  ],
                  "description": "Dataset scope and completeness, including limits on what these results establish."
                },
                "coverage_reason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rows_read": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rows_truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "dataset_id",
                "kind",
                "run_id",
                "provider",
                "data_mode",
                "retrieved_at",
                "retrieved",
                "provider_total_count",
                "row_limit",
                "coverage",
                "coverage_reason",
                "rows_read",
                "rows_truncated"
              ],
              "additionalProperties": {}
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "domain",
        "monitored_sites",
        "index_lookup"
      ],
      "additionalProperties": {}
    },
    "filters": {
      "type": "object",
      "properties": {
        "notLinkingToYou": {
          "type": "boolean"
        },
        "follow": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "spamMax": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "includeUnscored": {
          "type": "boolean"
        },
        "dataset": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "memberId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "minCompetitors": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "type": "string"
        }
      },
      "required": [
        "notLinkingToYou",
        "follow",
        "spamMax",
        "includeUnscored",
        "dataset",
        "memberId",
        "minCompetitors",
        "sort"
      ],
      "additionalProperties": {}
    },
    "total_sites": {
      "type": "number"
    },
    "matching_sites": {
      "type": "number"
    },
    "you_status_counts": {
      "type": "object",
      "properties": {
        "monitored": {
          "type": "number"
        },
        "found_in_your_lookup": {
          "type": "number"
        },
        "not_found": {
          "type": "number"
        }
      },
      "required": [
        "monitored",
        "found_in_your_lookup",
        "not_found"
      ],
      "additionalProperties": {}
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "site": {
            "type": "string"
          },
          "competitors_linking": {
            "type": "number"
          },
          "links": {
            "type": "number"
          },
          "follow": {
            "type": "string",
            "enum": [
              "follow",
              "nofollow",
              "unknown"
            ]
          },
          "domain_rank": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "spam_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "you": {
            "type": "object",
            "properties": {
              "monitored_links": {
                "type": "number"
              },
              "index_links": {
                "type": "number"
              },
              "status": {
                "type": "string",
                "enum": [
                  "monitored",
                  "found_in_your_lookup",
                  "not_found"
                ],
                "description": "Resource lifecycle status."
              }
            },
            "required": [
              "monitored_links",
              "index_links",
              "status"
            ],
            "additionalProperties": {}
          },
          "dataset_change": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "new_to_dataset",
                  "absent_from_dataset"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "example": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "source_url": {
                    "type": "string",
                    "description": "Publisher page URL recorded in this evidence."
                  },
                  "target_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "Destination URL recorded in this evidence."
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Destination URL recorded in this evidence."
                  },
                  "anchor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dofollow": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "lost": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "source_url",
                  "target_url",
                  "anchor",
                  "dofollow",
                  "lost"
                ],
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "member_id": {
                  "type": "string"
                },
                "links": {
                  "type": "number"
                },
                "follow": {
                  "type": "number"
                },
                "nofollow": {
                  "type": "number"
                },
                "lost_in_index": {
                  "type": "number"
                },
                "domain_rank": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "spam_score": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "example": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "source_url": {
                          "type": "string",
                          "description": "Publisher page URL recorded in this evidence."
                        },
                        "target_url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Destination URL recorded in this evidence."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Destination URL recorded in this evidence."
                        },
                        "anchor": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dofollow": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lost": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "source_url",
                        "target_url",
                        "anchor",
                        "dofollow",
                        "lost"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset_change": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "new_to_dataset",
                        "unchanged",
                        "absent_from_dataset"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "member_id",
                "links",
                "follow",
                "nofollow",
                "lost_in_index",
                "domain_rank",
                "spam_score",
                "example",
                "dataset_change"
              ],
              "additionalProperties": {}
            }
          }
        },
        "required": [
          "site",
          "competitors_linking",
          "links",
          "follow",
          "domain_rank",
          "spam_score",
          "you",
          "dataset_change",
          "example",
          "members"
        ],
        "additionalProperties": {},
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "has_more": {
      "type": "boolean",
      "description": "True when another page is available."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string",
          "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."
    },
    "scores": {
      "type": "object",
      "properties": {
        "domain_rank_scale": {
          "type": "string"
        },
        "spam_score_scale": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "missing": {
          "type": "string"
        }
      },
      "required": [
        "domain_rank_scale",
        "spam_score_scale",
        "source",
        "missing"
      ],
      "additionalProperties": {}
    },
    "limits": {
      "type": "object",
      "properties": {
        "absence_claim": {
          "type": "string",
          "const": "not_supported",
          "description": "not_supported: missing dataset rows cannot prove link absence."
        },
        "not_found_linking_to_you": {
          "type": "string"
        }
      },
      "required": [
        "absence_claim",
        "not_found_linking_to_you"
      ],
      "additionalProperties": {}
    },
    "spend": {
      "type": "object",
      "properties": {
        "supplier_requests": {
          "type": "number",
          "const": 0
        },
        "credits": {
          "type": "number",
          "const": 0
        },
        "checks": {
          "type": "number",
          "const": 0
        }
      },
      "required": [
        "supplier_requests",
        "credits",
        "checks"
      ],
      "additionalProperties": {}
    }
  },
  "required": [
    "project_id",
    "domain",
    "set",
    "members",
    "you",
    "filters",
    "total_sites",
    "matching_sites",
    "you_status_counts",
    "items",
    "has_more",
    "next_cursor",
    "scores",
    "limits",
    "spend"
  ],
  "additionalProperties": {}
}
