{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Identifier of the project returned by its create or list operation."
    },
    "sourceUrl": {
      "type": "string",
      "format": "uri",
      "description": "Public publisher page URL containing the placement to inspect."
    },
    "targetUrl": {
      "type": "string",
      "format": "uri",
      "description": "Public destination URL expected in the placement."
    },
    "targetScope": {
      "description": "URL matching rule: exact URL, domain, subdomain, or path prefix.",
      "type": "string",
      "enum": [
        "exact",
        "domain",
        "subdomain",
        "path"
      ],
      "default": "exact"
    },
    "cadenceSeconds": {
      "description": "Scheduled check interval in seconds, from 3600 to 2592000.",
      "type": "integer",
      "minimum": 3600,
      "maximum": 2592000,
      "default": 86400
    },
    "expectedAnchor": {
      "description": "Expected link anchor text; null clears the expectation.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "expectedRel": {
      "description": "Expected rel tokens; null clears the expectation.",
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "localReference": {
      "description": "Customer-owned reference to associate this record with a local ledger entry.",
      "type": "string",
      "maxLength": 200
    }
  },
  "required": [
    "projectId",
    "sourceUrl",
    "targetUrl"
  ],
  "additionalProperties": false
}
