{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anjal-app/json-schema/anjal-app-linked-in-search-schema.json",
  "title": "LinkedInSearch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anjal-app-linkedin-searches-api-openapi.yml#/components/schemas/LinkedInSearch",
  "type": "object",
  "required": [
    "id",
    "query",
    "lookback",
    "intentDescription",
    "resultCount",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "sessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The LinkedIn session that actually ran the search (the router's pick when the caller didn't pin)."
    },
    "query": {
      "type": "string"
    },
    "lookback": {
      "type": "string",
      "enum": [
        "past-24h",
        "past-week",
        "past-month"
      ]
    },
    "minIntent": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "intentDescription": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Plain-English firing rule used by the classifier (same semantics as on signals)."
    },
    "resultCount": {
      "type": "integer"
    },
    "tookMs": {
      "type": [
        "integer",
        "null"
      ]
    },
    "errorCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set on partial failure (e.g. LINKEDIN_RATE_LIMITED). Search row is still persisted."
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}