{
  "title": "World Bank Procurement Notice Change Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "noticeIds": {
      "title": "Exact notice IDs",
      "type": "array",
      "description": "Optional list of up to 10 OP notice IDs. Overrides keyword and project filters. Each selected notice is requested once; absent IDs are reported in SUMMARY, not billed as fake rows.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "keyword": {
      "title": "Source full-text keyword",
      "type": "string",
      "description": "Optional World Bank full-text query, up to 120 characters. Searches the source notice, not only the exported title. Empty selects the source first window.",
      "editor": "textfield",
      "default": "",
      "prefill": ""
    },
    "projectId": {
      "title": "Exact World Bank project ID",
      "type": "string",
      "description": "Optional exact project ID, such as P513815. Discovery verifies every returned project ID. Ignored when noticeIds is supplied.",
      "editor": "textfield",
      "default": ""
    },
    "maxResults": {
      "title": "Maximum saved notices",
      "type": "integer",
      "description": "1–100. Discovery requests one source window of this size. A smaller cap than an exact watchlist leaves the scope incomplete and prevents baseline updates.",
      "minimum": 1,
      "maximum": 100,
      "default": 3,
      "prefill": 3
    },
    "maxRunSeconds": {
      "title": "Time budget (seconds)",
      "type": "integer",
      "description": "Includes source requests, output and history. Platform timeout can stop earlier. Exact-ID requests are paced at least one second apart.",
      "minimum": 30,
      "maximum": 120,
      "default": 60
    },
    "comparePrevious": {
      "title": "Compare with saved observations",
      "type": "boolean",
      "description": "Save exact source fields after complete selected-scope coverage. First run establishes a baseline; sequential runs with the same scope compare deadline, status and other fields.",
      "default": false
    },
    "onlyChanges": {
      "title": "Save only new or changed notices",
      "type": "boolean",
      "description": "Implies comparison. Repeated unchanged observations may return zero records. Missing notices are not declared withdrawn or removed.",
      "default": false
    },
    "snapshotName": {
      "title": "Snapshot name",
      "type": "string",
      "description": "1–80 letters, digits, underscores or hyphens. IDs, search filters and window size also separate history. Run each snapshot sequentially.",
      "editor": "textfield",
      "default": "default"
    }
  }
}
