{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nudgelink-co/json-schema/nudgelink-co-suggestion-out-schema.json",
  "title": "SuggestionOut",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nudgelink-co-openapi.json#/components/schemas/SuggestionOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "run_id": {
      "type": "string",
      "format": "uuid",
      "title": "Run Id"
    },
    "linkedin_url": {
      "type": "string",
      "title": "Linkedin Url"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "company": {
      "type": "string",
      "title": "Company"
    },
    "location": {
      "type": "string",
      "title": "Location"
    },
    "source_query": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Query"
    },
    "relevance_score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Relevance Score"
    },
    "relevance_reasoning": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Relevance Reasoning"
    },
    "matched_filters": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Matched Filters"
    },
    "language_matches": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Language Matches"
    },
    "mini_bio": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mini Bio"
    },
    "company_size": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Size"
    },
    "company_match": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Match"
    },
    "intent_score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent Score"
    },
    "intent_reasons": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent Reasons"
    },
    "intent_signals": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent Signals"
    },
    "no_current_role": {
      "type": "boolean",
      "title": "No Current Role",
      "default": false
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "decided_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decided At"
    },
    "accepted_lead_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted Lead Id"
    }
  },
  "type": "object",
  "required": [
    "id",
    "run_id",
    "linkedin_url",
    "name",
    "title",
    "company",
    "location",
    "source_query",
    "relevance_score",
    "relevance_reasoning",
    "status",
    "created_at",
    "decided_at",
    "accepted_lead_id"
  ]
}