{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "v": {
      "type": "number",
      "const": 1,
      "description": "v recorded for this result."
    },
    "id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Resource identifier returned by the operation."
    },
    "workspace_id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Project that owns this record."
    },
    "operation": {
      "type": "string",
      "const": "domain_overview",
      "description": "operation recorded for this result."
    },
    "provider": {
      "type": "string",
      "enum": [
        "linktrail_corpus",
        "dataforseo",
        "imported"
      ],
      "description": "provider recorded for this result."
    },
    "data_mode": {
      "type": "string",
      "enum": [
        "synthetic",
        "owned_corpus",
        "provider_index",
        "imported"
      ],
      "description": "data mode recorded for this result."
    },
    "query": {
      "type": "object",
      "properties": {
        "target": {
          "type": "string",
          "minLength": 1,
          "maxLength": 253,
          "description": "target recorded for this result."
        },
        "include_subdomains": {
          "type": "boolean",
          "description": "include subdomains recorded for this result."
        },
        "include_indirect_links": {
          "type": "boolean",
          "description": "include indirect links recorded for this result."
        },
        "exclude_internal_backlinks": {
          "type": "boolean",
          "description": "exclude internal backlinks recorded for this result."
        },
        "backlinks_status_type": {
          "type": "string",
          "enum": [
            "live",
            "lost",
            "all"
          ],
          "description": "backlinks status type recorded for this result."
        },
        "backlinks_filters": {
          "type": "null",
          "description": "backlinks filters recorded for this result."
        },
        "rank_scale": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "one_thousand"
              ],
              "description": "rank scale recorded for this result."
            },
            {
              "type": "null"
            }
          ],
          "description": "rank scale recorded for this result."
        },
        "internal_list_limit": {
          "type": "number",
          "const": 10,
          "description": "internal list limit recorded for this result."
        }
      },
      "required": [
        "target",
        "include_subdomains",
        "include_indirect_links",
        "exclude_internal_backlinks",
        "backlinks_status_type",
        "backlinks_filters",
        "rank_scale",
        "internal_list_limit"
      ],
      "additionalProperties": false,
      "description": "query recorded for this result."
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "succeeded",
        "failed",
        "reconciliation_required"
      ],
      "description": "Resource lifecycle status."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      "description": "UTC timestamp when the record was created."
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
          "description": "started at recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "started at recorded for this result."
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
          "description": "finished at recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "finished at recorded for this result."
    },
    "error_code": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Z_]{1,80}$",
          "description": "error code recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "error code recorded for this result."
    },
    "usage": {
      "type": "object",
      "properties": {
        "unit": {
          "type": "string",
          "const": "domain_overview",
          "description": "unit recorded for this result."
        },
        "currency": {
          "type": "string",
          "const": "USD",
          "description": "currency recorded for this result."
        },
        "quote_id": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,128}$",
          "description": "quote id recorded for this result."
        },
        "max_cost_microusd": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "description": "max cost microusd recorded for this result."
        },
        "reserved_cost_microusd": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "reserved cost microusd recorded for this result."
        },
        "provider_reported_cost_microusd": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "provider reported cost microusd recorded for this result."
            },
            {
              "type": "null"
            }
          ],
          "description": "provider reported cost microusd recorded for this result."
        },
        "request_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1,
          "description": "request count recorded for this result."
        },
        "summaries_returned": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1,
          "description": "summaries returned recorded for this result."
        }
      },
      "required": [
        "unit",
        "currency",
        "quote_id",
        "max_cost_microusd",
        "reserved_cost_microusd",
        "provider_reported_cost_microusd",
        "request_count",
        "summaries_returned"
      ],
      "additionalProperties": false,
      "description": "usage recorded for this result."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "v": {
              "type": "number",
              "const": 1,
              "description": "v recorded for this result."
            },
            "overview_run_id": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,128}$",
              "description": "overview run id recorded for this result."
            },
            "workspace_id": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,128}$",
              "description": "Workspace that owns this record."
            },
            "project_id": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,128}$",
              "description": "Project that owns this record."
            },
            "provider": {
              "type": "string",
              "enum": [
                "linktrail_corpus",
                "dataforseo",
                "imported"
              ],
              "description": "provider recorded for this result."
            },
            "data_mode": {
              "type": "string",
              "enum": [
                "synthetic",
                "owned_corpus",
                "provider_index",
                "imported"
              ],
              "description": "data mode recorded for this result."
            },
            "provider_retrieved_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
              "description": "Timestamp when the upstream evidence was retrieved."
            },
            "provider_first_seen": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
                  "description": "provider first seen recorded for this result."
                },
                {
                  "type": "null"
                }
              ],
              "description": "provider first seen recorded for this result."
            },
            "provider_lost_date": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
                  "description": "provider lost date recorded for this result."
                },
                {
                  "type": "null"
                }
              ],
              "description": "provider lost date recorded for this result."
            },
            "verified_at": {
              "type": "null",
              "description": "Timestamp of the Linktrail check; null until checked."
            },
            "coverage": {
              "type": "string",
              "enum": [
                "provider_summary",
                "corpus_subset",
                "partial"
              ],
              "description": "Dataset scope and completeness, including limits on what these results establish."
            },
            "counts": {
              "type": "object",
              "properties": {
                "backlinks": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "backlinks recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "backlinks recorded for this result."
                },
                "referring_domains": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "referring domains recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "referring domains recorded for this result."
                },
                "referring_main_domains": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "referring main domains recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "referring main domains recorded for this result."
                },
                "referring_pages": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "referring pages recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "referring pages recorded for this result."
                },
                "referring_ips": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "referring ips recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "referring ips recorded for this result."
                },
                "referring_subnets": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "referring subnets recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "referring subnets recorded for this result."
                },
                "crawled_pages": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "crawled pages recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "crawled pages recorded for this result."
                },
                "broken_backlinks": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "broken backlinks recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "broken backlinks recorded for this result."
                },
                "broken_pages": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "broken pages recorded for this result."
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "broken pages recorded for this result."
                }
              },
              "required": [
                "backlinks",
                "referring_domains",
                "referring_main_domains",
                "referring_pages",
                "referring_ips",
                "referring_subnets",
                "crawled_pages",
                "broken_backlinks",
                "broken_pages"
              ],
              "additionalProperties": false,
              "description": "counts recorded for this result."
            },
            "provider_metrics": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "dataforseo": {
                      "type": "object",
                      "properties": {
                        "rank": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000,
                              "description": "rank recorded for this result."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "rank recorded for this result."
                        },
                        "backlinks_spam_score": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "backlinks spam score recorded for this result."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "backlinks spam score recorded for this result."
                        },
                        "rank_scale": {
                          "type": "string",
                          "const": "one_thousand",
                          "description": "rank scale recorded for this result."
                        }
                      },
                      "required": [
                        "rank",
                        "backlinks_spam_score",
                        "rank_scale"
                      ],
                      "additionalProperties": false,
                      "description": "dataforseo recorded for this result."
                    }
                  },
                  "required": [
                    "dataforseo"
                  ],
                  "additionalProperties": false,
                  "description": "provider metrics recorded for this result."
                },
                {
                  "type": "object",
                  "properties": {
                    "linktrail_corpus": {
                      "type": "object",
                      "properties": {
                        "corpus_source_pages": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991,
                              "description": "corpus source pages recorded for this result."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "corpus source pages recorded for this result."
                        },
                        "corpus_last_expanded_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
                              "description": "corpus last expanded at recorded for this result."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "corpus last expanded at recorded for this result."
                        }
                      },
                      "required": [
                        "corpus_source_pages",
                        "corpus_last_expanded_at"
                      ],
                      "additionalProperties": false,
                      "description": "linktrail corpus recorded for this result."
                    }
                  },
                  "required": [
                    "linktrail_corpus"
                  ],
                  "additionalProperties": false,
                  "description": "provider metrics recorded for this result."
                }
              ],
              "description": "provider metrics recorded for this result."
            }
          },
          "required": [
            "v",
            "overview_run_id",
            "workspace_id",
            "project_id",
            "provider",
            "data_mode",
            "provider_retrieved_at",
            "provider_first_seen",
            "provider_lost_date",
            "verified_at",
            "coverage",
            "counts",
            "provider_metrics"
          ],
          "additionalProperties": {},
          "description": "Saved result; null when this operation has no completed result."
        },
        {
          "type": "null"
        }
      ],
      "description": "Saved result; null when this operation has no completed result."
    },
    "coverage": {
      "type": "string",
      "description": "Dataset scope and completeness, including limits on what these results establish."
    },
    "coverage_scope": {
      "type": "string",
      "const": "provider_query",
      "description": "coverage scope recorded for this result."
    },
    "whole_web_coverage": {
      "type": "boolean",
      "const": false,
      "description": "False: these results do not measure the whole web."
    },
    "replayed": {
      "description": "True when the response reuses an earlier request with the same idempotency value.",
      "type": "boolean"
    }
  },
  "required": [
    "v",
    "id",
    "workspace_id",
    "project_id",
    "operation",
    "provider",
    "data_mode",
    "query",
    "status",
    "created_at",
    "started_at",
    "finished_at",
    "error_code",
    "usage",
    "result",
    "coverage",
    "coverage_scope",
    "whole_web_coverage"
  ],
  "additionalProperties": {}
}
