{
  "title": "NIH Research Funding Lead Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "applicationIds": {
      "title": "NIH application IDs",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional exact application IDs (up to 20). When present, discovery filters—including excludeSubprojects—are ignored; each ID is explicitly labeled if it is a subproject."
    },
    "keyword": {
      "title": "Research title keyword",
      "type": "string",
      "editor": "textfield",
      "default": "artificial intelligence",
      "prefill": "artificial intelligence",
      "description": "NIH advanced title search using the AND operator. Up to 160 characters; not a claim that the project is purchasing anything."
    },
    "fiscalYears": {
      "title": "Fiscal years",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional source fiscal years, e.g. 2026. Source fiscal year is not a lifetime project budget."
    },
    "organizationNames": {
      "title": "Exact organization names",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional official institutional names. Literal exact matching; no investigator or personal contact enrichment."
    },
    "states": {
      "title": "Organization state codes",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional two-letter US state codes, e.g. CA."
    },
    "activityCodes": {
      "title": "NIH activity codes",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Optional source award activity codes, e.g. R01 or R21."
    },
    "excludeSubprojects": {
      "title": "Exclude subprojects from discovery",
      "type": "boolean",
      "default": true,
      "prefill": true,
      "description": "Prevents parent/subproject rows from being mixed in normal search results. Explicit ID mode retains exactly the requested public records; never sum parent and subproject amounts."
    },
    "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."
    }
  }
}
