{
  "description": "Search New Jersey's free public business registry by name, keywords, entity ID, principal, registered agent or previous name, check name availability, or list free document indexes. No login or proxy setup required.",
  "properties": {
    "businessNames": {
      "default": [
        "Amazon"
      ],
      "description": "One or more names (mode=byName, availability). Name search is a prefix match: 'Amazon' finds names starting with Amazon, and a leading 'The' is ignored. Availability checks need a base name without a designator (no LLC, Inc., Corp., etc.) and at least 4 effective characters. Up to 50 names.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [
        "Amazon"
      ],
      "title": "Business names",
      "type": "array"
    },
    "cityFilter": {
      "default": "",
      "description": "Keep only businesses whose on-file city matches exactly (case-insensitive). Leave blank for all cities.",
      "editor": "textfield",
      "prefill": "",
      "title": "City filter",
      "type": "string"
    },
    "entityIds": {
      "default": [],
      "description": "Exact 10-digit New Jersey entity IDs (mode=byEntityId, documents). Invalid IDs are reported in the run status instead of being dropped silently. Up to 200 IDs.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [],
      "title": "Entity IDs",
      "type": "array"
    },
    "entityTypes": {
      "default": [],
      "description": "Keep only these New Jersey entity types. Empty means no filter. Filters run on every page, not only after the 500-row display cap.",
      "editor": "select",
      "items": {
        "enum": [
          "NP",
          "FR",
          "DB",
          "LF",
          "DP",
          "LP",
          "NF",
          "PA",
          "LLC",
          "FLC",
          "LLP",
          "FLP",
          "GP",
          "FGP",
          "AUT",
          "NJR",
          "BDP"
        ],
        "enumTitles": [
          "Non Profit Corporation",
          "Foreign Profit Corporation",
          "Foreign Corporation (DBA)",
          "Foreign Limited Partnership",
          "Domestic Profit Corporation",
          "Limited Partnership",
          "Foreign Non Profit Corporation",
          "Professional Corporation",
          "Domestic Limited Liability Company",
          "Foreign Limited Liability Company",
          "Domestic Limited Liability Partnership",
          "Foreign Limited Liability Partnership",
          "Partnership",
          "Foreign Partnership",
          "EDA Subsidiary",
          "Redevelopment Authority Subsidiary",
          "Benefit Domestic Profit Corporation"
        ],
        "type": "string"
      },
      "prefill": [],
      "title": "Entity types",
      "type": "array",
      "uniqueItems": true
    },
    "keywordSearches": {
      "default": [],
      "description": "One or more keyword phrases (mode=byKeyword). Each phrase is split into words, and every word must appear in the business name; up to 5 words per phrase and 20 phrases.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [],
      "title": "Keyword phrases",
      "type": "array"
    },
    "linkType": {
      "default": "principal",
      "description": "Which free Business Records Service search to use (mode=byLinkedName).",
      "editor": "select",
      "enum": [
        "principal",
        "registeredAgent",
        "associatedName"
      ],
      "enumTitles": [
        "Principal or officer name",
        "Registered agent name",
        "Associated, alternate or previous name"
      ],
      "prefill": "principal",
      "title": "Reverse search type",
      "type": "string"
    },
    "linkedCity": {
      "description": "Optional city filter for principal or registered-agent searches (mode=byLinkedName).",
      "editor": "textfield",
      "title": "Linked city",
      "type": "string"
    },
    "linkedFirstName": {
      "description": "Optional first name when linkType=principal (mode=byLinkedName).",
      "editor": "textfield",
      "title": "Principal first name",
      "type": "string"
    },
    "linkedMiddleName": {
      "description": "Optional middle name when linkType=principal (mode=byLinkedName).",
      "editor": "textfield",
      "title": "Principal middle name",
      "type": "string"
    },
    "linkedName": {
      "description": "Last name, business name, registered-agent name, or previous/alternate name to search (mode=byLinkedName).",
      "editor": "textfield",
      "title": "Linked name",
      "type": "string"
    },
    "maxItems": {
      "default": 100,
      "description": "Hard cap on emitted records (1-500, the source's display limit). Applied exactly, including when it is above 200.",
      "maximum": 500,
      "minimum": 1,
      "prefill": 1,
      "title": "Max items",
      "type": "integer"
    },
    "mode": {
      "default": "byName",
      "description": "What to fetch.",
      "editor": "select",
      "enum": [
        "byName",
        "byKeyword",
        "byEntityId",
        "byLinkedName",
        "availability",
        "documents"
      ],
      "enumTitles": [
        "Search businesses by name",
        "Search businesses by keyword phrase",
        "Look up exact entity IDs",
        "Reverse search by principal, registered agent or previous name",
        "Check whether a business name is available",
        "List the free document index for entity IDs"
      ],
      "prefill": "byName",
      "title": "Mode",
      "type": "string"
    }
  },
  "required": [
    "mode"
  ],
  "schemaVersion": 1,
  "title": "New Jersey DOR Business Registry Input",
  "type": "object"
}
