{
  "title": "UK Food Business Leads & Hygiene Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "establishmentIds": {
      "title": "FSA establishment IDs",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional exact FHRSIDs (up to 20). When supplied, name, address and business type discovery filters are ignored. IDs remain stable watchlist keys."
    },
    "businessName": {
      "title": "Business name",
      "type": "string",
      "editor": "textfield",
      "default": "pret",
      "prefill": "pret",
      "description": "FSA name search. Empty name is allowed with an address; a name match is not contact consent."
    },
    "address": {
      "title": "Address or place",
      "type": "string",
      "editor": "textfield",
      "default": "London",
      "prefill": "London",
      "description": "FSA address search, such as a city or postcode. Leave empty if using only a business name."
    },
    "businessTypeId": {
      "title": "Business type ID",
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 10000,
      "description": "Optional official FSA business type ID. 0 omits the filter; e.g. 1 is Restaurant/Cafe/Canteen. Applies to discovery only."
    },
    "maxResults": {
      "title": "Maximum saved records",
      "type": "integer",
      "default": 3,
      "prefill": 3,
      "minimum": 1,
      "maximum": 100,
      "description": "Search selects its first window of this size. Explicit-ID mode reads requested IDs; a smaller output limit makes that watchlist incomplete and prevents history updates."
    },
    "maxRunSeconds": {
      "title": "Time budget (seconds)",
      "type": "integer",
      "default": 60,
      "minimum": 30,
      "maximum": 120,
      "description": "Includes source requests, parsing, billing and history. The platform timeout can end the run earlier."
    },
    "comparePrevious": {
      "title": "Compare with previous observations",
      "type": "boolean",
      "default": false,
      "description": "Save a baseline only after a complete selected scope and successful output. Run a snapshot sequentially."
    },
    "onlyChanges": {
      "title": "Save only new or changed observations",
      "type": "boolean",
      "default": false,
      "description": "Implies comparison. A repeated unchanged snapshot can correctly return zero records with zero result charges."
    },
    "snapshotName": {
      "title": "Snapshot name",
      "type": "string",
      "editor": "textfield",
      "default": "default",
      "description": "1–80 letters, digits, underscores or hyphens. Filters and selected window also separate history. No removed-record inference."
    }
  }
}
