{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rumoro-dev/json-schema/rumoro-dev-person-activity-schema.json",
  "title": "PersonActivity",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rumoro-dev-people-api-openapi.yml#/components/schemas/PersonActivity",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The activity's id (act_...)."
    },
    "personId": {
      "type": "string",
      "description": "The person's id (aut_...)."
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "x",
        "linkedin",
        "bluesky",
        "reddit",
        "github",
        "call",
        "meeting",
        "other"
      ],
      "description": "How the person was contacted."
    },
    "note": {
      "type": "string",
      "description": "A short summary of what was sent or said. Empty if none was written."
    },
    "member": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The member's user id."
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "email"
      ],
      "description": "Who made contact. Null for an API-key entry without memberId, or after that member leaves."
    },
    "occurredAt": {
      "type": "string",
      "description": "When the contact took place."
    },
    "createdAt": {
      "type": "string",
      "description": "When the activity was logged."
    }
  },
  "required": [
    "id",
    "personId",
    "channel",
    "note",
    "member",
    "occurredAt",
    "createdAt"
  ]
}