{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Log of an individual event in-game recorded by the addon.",
      "key": "any",
      "record": {
        "properties": {
          "capturedAt": {
            "description": "Timestamp at which the event happened, present only when the addon recorded one.",
            "format": "datetime",
            "type": "string"
          },
          "characterId": {
            "description": "Addon UUID of the character this event belongs to.",
            "maxLength": 64,
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp at which this record was published.",
            "format": "datetime",
            "type": "string"
          },
          "event": {
            "closed": false,
            "description": "The event itself.",
            "refs": [
              "online.witchzfy.worldofwarcraft.journeytracker.log.bestLoot",
              "online.witchzfy.worldofwarcraft.journeytracker.log.bossKilled",
              "online.witchzfy.worldofwarcraft.journeytracker.log.death",
              "online.witchzfy.worldofwarcraft.journeytracker.log.ding",
              "online.witchzfy.worldofwarcraft.journeytracker.log.dungeonCompleted",
              "online.witchzfy.worldofwarcraft.journeytracker.log.dungeonEntered",
              "online.witchzfy.worldofwarcraft.journeytracker.log.flightPathDiscovered",
              "online.witchzfy.worldofwarcraft.journeytracker.log.gearEquipped",
              "online.witchzfy.worldofwarcraft.journeytracker.log.graveyardVisited",
              "online.witchzfy.worldofwarcraft.journeytracker.log.questAccepted",
              "online.witchzfy.worldofwarcraft.journeytracker.log.questCompleted",
              "online.witchzfy.worldofwarcraft.journeytracker.log.skillUp",
              "online.witchzfy.worldofwarcraft.journeytracker.log.spellLearned",
              "online.witchzfy.worldofwarcraft.journeytracker.log.subzoneDiscovered",
              "online.witchzfy.worldofwarcraft.journeytracker.log.trainerVisit",
              "online.witchzfy.worldofwarcraft.journeytracker.log.zoneTransition"
            ],
            "type": "union"
          },
          "level": {
            "description": "Character level at the time of the event, when the addon recorded one.",
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          },
          "schemaVersion": {
            "description": "Version of the event payload schema.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "characterId",
          "createdAt",
          "event",
          "schemaVersion"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "One gameplay event logged by JourneyTracker.",
  "id": "online.witchzfy.worldofwarcraft.journeytracker.log",
  "lexicon": 1
}
