{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agendaforge-app/json-schema/agendaforge-app-contact-schema.json",
  "title": "Contact",
  "description": "Emitted identically by webhook deliveries, trigger samples, and the create response.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agendaforge-app-openapi.json#/components/schemas/Contact",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "speaker | sponsor | attendee | vendor | partner | exhibitor | other."
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "company": {
      "type": [
        "string",
        "null"
      ]
    },
    "jobTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "bio": {
      "type": [
        "string",
        "null"
      ]
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "socialLinks": {
      "type": [
        "object",
        "null"
      ],
      "description": "Map of platform to URL."
    },
    "expertiseAreas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "customFields": {
      "type": [
        "object",
        "null"
      ],
      "description": "Organization-defined custom fields."
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "rating": {
      "type": [
        "number",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 UTC timestamp."
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactEventRef"
      }
    }
  },
  "$defs": {
    "ContactEventRef": {
      "type": "object",
      "description": "An event a contact is a member of.",
      "properties": {
        "eventId": {
          "type": "string"
        },
        "eventName": {
          "type": "string"
        },
        "eventNumber": {
          "type": [
            "number",
            "null"
          ]
        },
        "role": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    }
  }
}