{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentio-dev/json-schema/mentio-dev-person-activity-schema.json",
  "title": "PersonActivity",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentio-dev-people-api-openapi.yml#/components/schemas/PersonActivity",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Activity id (act_...)."
    },
    "personId": {
      "type": "string",
      "description": "The person it belongs to (aut_...)."
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "x",
        "linkedin",
        "bluesky",
        "reddit",
        "github",
        "call",
        "meeting",
        "other"
      ],
      "description": "How they were reached: email, x, linkedin, bluesky, reddit, github, call, meeting or other."
    },
    "note": {
      "type": "string",
      "description": "What was sent or said, briefly; empty when nothing was written."
    },
    "member": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "User id of the workspace member."
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "email"
      ],
      "description": "Who reached out; null when an API key logged it without naming a member, or that member left the workspace."
    },
    "occurredAt": {
      "type": "string",
      "description": "When the contact happened."
    },
    "createdAt": {
      "type": "string",
      "description": "When it was logged."
    }
  },
  "required": [
    "id",
    "personId",
    "channel",
    "note",
    "member",
    "occurredAt",
    "createdAt"
  ]
}