{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hummingdeck/json-schema/hummingdeck-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hummingdeck-contacts-api-openapi.yml#/components/schemas/Contact",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the contact"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Job title"
    },
    "leadId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Deprecated alias for companyId",
      "deprecated": true
    },
    "leadName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Deprecated alias for companyName",
      "deprecated": true
    },
    "companyId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Associated company ID, null when the contact has no company in this workspace"
    },
    "companyName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Associated company name"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "firstName",
    "lastName",
    "email",
    "companyId",
    "companyName"
  ]
}