{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craaft-io/json-schema/craaft-io-board-activity-schema.json",
  "title": "BoardActivity",
  "description": "One board activity feed entry. `fromValue` / `toValue` depend on the\ntype: column keys for `moved` (`fromName` / `toName` are the column\ntitles, omitted for a column since deleted), `<project id>:<column\nkey>` for `moved_board` (named as in CardEvent, recorded on both\nboards, and omitted along with the names for a board the caller can't\naccess), priorities for `priority`, user ids for `assignee`\n(`fromName` / `toName` are names), and column titles for the column\ntypes. `cardId` is present only while the card is still on this\nboard; `cardTitle` is its current title then, and the title it had\nwhen the change happened once it has gone. For `comment`, `excerpt`\nis the first 140 characters while the comment and card exist, and\n`commentDeleted` is true once the comment is gone. Clients should\nignore types they don't recognise.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craaft-io-openapi.yml#/components/schemas/BoardActivity",
  "type": "object",
  "required": [
    "id",
    "type",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "type": {
      "type": "string",
      "enum": [
        "card_created",
        "card_archived",
        "card_restored",
        "card_deleted",
        "moved",
        "moved_board",
        "priority",
        "assignee",
        "comment",
        "column_created",
        "column_renamed",
        "column_deleted"
      ]
    },
    "fromValue": {
      "type": [
        "string",
        "null"
      ]
    },
    "toValue": {
      "type": [
        "string",
        "null"
      ]
    },
    "fromName": {
      "type": [
        "string",
        "null"
      ]
    },
    "toName": {
      "type": [
        "string",
        "null"
      ]
    },
    "fromDetail": {
      "type": [
        "string",
        "null"
      ],
      "description": "moved_board only: source column title"
    },
    "toDetail": {
      "type": [
        "string",
        "null"
      ],
      "description": "moved_board only: target column title"
    },
    "actorId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "actorName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Omitted when the user has been deleted"
    },
    "cardId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "cardTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "cardArchived": {
      "type": "boolean",
      "description": "The card is on this board but archived"
    },
    "excerpt": {
      "type": [
        "string",
        "null"
      ]
    },
    "commentDeleted": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}