{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anjal-app/json-schema/anjal-app-linked-in-signal-match-schema.json",
  "title": "LinkedInSignalMatch",
  "description": "Discriminated by `kind`. Engagement matches include `engagement.commentText` (verbatim);\njob-change matches include `jobChange.{old,new}{Role,Company}`. Keyword matches leave both null.\n",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anjal-app-openapi.yaml#/components/schemas/LinkedInSignalMatch",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "keyword",
        "engagement",
        "job_change"
      ]
    },
    "postUrl": {
      "type": "string"
    },
    "postExcerpt": {
      "type": "string"
    },
    "postPostedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "engagement": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "commented",
            "reacted"
          ]
        },
        "commentText": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "jobChange": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "oldRole": {
          "type": [
            "string",
            "null"
          ]
        },
        "oldCompany": {
          "type": [
            "string",
            "null"
          ]
        },
        "newRole": {
          "type": [
            "string",
            "null"
          ]
        },
        "newCompany": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "author": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "profileUrl": {
          "type": "string"
        },
        "headline": {
          "type": [
            "string",
            "null"
          ],
          "description": "From the verified LinkedIn profile lookup."
        },
        "role": {
          "type": [
            "string",
            "null"
          ],
          "description": "Parsed current role (e.g. \"Founder & CEO\"). null when profile lookup was deferred."
        },
        "company": {
          "type": [
            "string",
            "null"
          ],
          "description": "Parsed current company. null when profile lookup was deferred."
        }
      }
    },
    "classification": {
      "type": "object",
      "properties": {
        "engage": {
          "type": "boolean"
        },
        "intent": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "triageScore": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100,
      "description": "Pass-1 triage classifier score (0-100). Posts below the threshold are not persisted."
    },
    "pendingEnrichment": {
      "type": "boolean",
      "description": "true when the post passed triage but the daily profile-lookup cap forced us to skip the full Pass-2 verification. Webhook delivery is held until the next poll fully verifies the match."
    },
    "foundAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}