{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "observations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Resource identifier returned by the operation."
          },
          "observationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "checkedAt": {
            "type": "string"
          },
          "recordedAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          },
          "evidenceSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "eventId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "ignored": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "number",
            "const": 1
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "lane": {
            "type": "string",
            "enum": [
              "gsc",
              "licensed_site"
            ]
          },
          "backend": {
            "type": "string"
          },
          "source_key": {
            "type": "string"
          },
          "tier": {
            "type": "string",
            "enum": [
              "indexed",
              "not_indexed",
              "likely_indexed",
              "not_found_in_site_query",
              "unknown"
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "google_index_snapshot",
              "search_result_sample",
              "unknown"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Recorded explanation; null when no explanation applies."
          },
          "live_page_test": {
            "type": "boolean",
            "const": false
          },
          "submission_requested": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "id",
          "observationId",
          "checkedAt",
          "recordedAt",
          "expiresAt",
          "evidenceSha256",
          "eventId",
          "ignored",
          "version",
          "url",
          "lane",
          "backend",
          "source_key",
          "tier",
          "confidence",
          "reason",
          "live_page_test",
          "submission_requested"
        ],
        "additionalProperties": {}
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "attemptSummary": {
      "type": "object",
      "properties": {
        "observedAt": {
          "type": "string"
        },
        "latestAttempt": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "description": "Resource identifier returned by the operation."
                },
                "admittedAt": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "in_progress",
                    "unsettled",
                    "completed"
                  ],
                  "description": "Resource lifecycle status."
                },
                "receiptId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "leaseExpiresAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "admittedAt",
                "status",
                "receiptId",
                "leaseExpiresAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "unsettledCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "observedAt",
        "latestAttempt",
        "unsettledCount"
      ],
      "additionalProperties": false
    },
    "websiteQuota": {
      "type": "object",
      "properties": {
        "windowStart": {
          "type": "string"
        },
        "observedAt": {
          "type": "string"
        },
        "admitted": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "limit": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "remaining": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Check units still available after consumed and reserved units; null if the limit is unknown."
        }
      },
      "required": [
        "windowStart",
        "observedAt",
        "admitted",
        "limit",
        "remaining"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "observations",
    "nextCursor"
  ],
  "additionalProperties": {}
}
