{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "project ID from create/list."
    },
    "watchId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "watch ID from create/list."
    },
    "revision": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Immutable set revision to read/compare."
    },
    "sourceUrl": {
      "description": "Public publisher URL.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ]
    },
    "publisherUrl": {
      "type": "string",
      "maxLength": 2048
    },
    "targetUrl": {
      "description": "Expected destination URL.",
      "type": "string",
      "maxLength": 2048
    },
    "targetScope": {
      "description": "URL match: exact, domain, subdomain or path prefix.",
      "type": "string",
      "enum": [
        "exact",
        "domain",
        "subdomain",
        "path"
      ]
    },
    "campaign": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "context": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "expectedAnchor": {
      "description": "Expected anchor; null clears.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "outreachStatus": {
      "type": "string",
      "enum": [
        "candidate",
        "requested",
        "pending",
        "declined",
        "abandoned"
      ]
    },
    "archived": {
      "type": "boolean"
    }
  },
  "required": [
    "projectId",
    "watchId",
    "revision"
  ],
  "additionalProperties": false
}
