{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record containing a directional vote on a forum topic or reply.",
      "key": "tid",
      "record": {
        "properties": {
          "community": {
            "description": "DID of the community where this vote was cast. Immutable origin identifier.",
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "description": "Client-declared timestamp when this vote was originally created.",
            "format": "datetime",
            "type": "string"
          },
          "direction": {
            "description": "Vote direction. Start upvote-only; 'down' can be added later without breaking change.",
            "knownValues": [
              "up"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The topic or reply being voted on.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "direction",
          "community",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A directional vote on a forum topic or reply. Votes are quantitative (ranking); reactions are expressive (emoji-style).",
  "id": "forum.barazo.interaction.vote",
  "lexicon": 1
}
