{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "linkedin-export-tools latest.json",
  "type": "object",
  "required": [
    "dataset",
    "title",
    "last_updated",
    "tools",
    "records"
  ],
  "properties": {
    "dataset": {
      "enum": [
        "linkedin-export-tools"
      ]
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "tool_id",
          "vendor",
          "access",
          "source_url"
        ],
        "properties": {
          "access": {
            "enum": [
              "no_account",
              "your_sales_navigator",
              "cookie_cloud",
              "extension",
              "desktop",
              "not_stated"
            ]
          }
        }
      }
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "vendor",
          "tool_id",
          "plan",
          "billing",
          "price",
          "currency",
          "price_usd",
          "price_status",
          "unit",
          "source_url",
          "captured_at",
          "evidence",
          "evidence_sha256",
          "verification"
        ],
        "properties": {
          "billing": {
            "enum": [
              "monthly"
            ]
          },
          "price_status": {
            "enum": [
              "listed",
              "derived",
              "annual_only",
              "quote_only"
            ]
          },
          "unit": {
            "enum": [
              "lead",
              "email"
            ]
          },
          "units_per_month": {
            "type": [
              "number",
              "null"
            ]
          },
          "cost_per_1000_usd": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    }
  }
}