{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "observation": {
      "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": {}
    },
    "rawResponse": {},
    "evidenceAvailable": {
      "type": "boolean"
    },
    "replayed": {
      "type": "boolean",
      "description": "True when the response reuses an earlier request with the same idempotency value."
    },
    "providerError": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "PROVIDER_PERMISSION_LOST",
            "PROVIDER_RATE_LIMITED",
            "PROVIDER_UNAVAILABLE",
            "PROVIDER_RESPONSE_INVALID"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "observation",
    "rawResponse",
    "evidenceAvailable",
    "replayed"
  ],
  "additionalProperties": {}
}
