{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The record key is '<realm>:<guid>:<kind>:<value>' (quests add ':<unix time>', since daily quests repeat), so publishing the same moment twice overwrites one record.",
      "key": "any",
      "record": {
        "properties": {
          "achievedAt": {
            "format": "datetime",
            "type": "string"
          },
          "characterName": {
            "maxGraphemes": 12,
            "maxLength": 64,
            "type": "string"
          },
          "guid": {
            "description": "The character's guid on that realm (see au.com.artivus.wrathplus.character).",
            "minimum": 1,
            "type": "integer"
          },
          "kind": {
            "knownValues": [
              "level",
              "achievement",
              "quest"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "level": {
            "description": "The character's level at the time.",
            "maximum": 255,
            "minimum": 1,
            "type": "integer"
          },
          "realm": {
            "description": "The realm's host name.",
            "maxLength": 253,
            "type": "string"
          },
          "title": {
            "description": "The achievement's or quest's name, in the realm's language.",
            "maxGraphemes": 256,
            "maxLength": 1024,
            "type": "string"
          },
          "value": {
            "description": "The level reached, the Achievement.dbc id, or the quest id.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "realm",
          "guid",
          "characterName",
          "kind",
          "value",
          "level",
          "achievedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A moment of progress for a WrathPlus character: a level reached, an achievement earned, a quest completed.",
  "id": "au.com.artivus.wrathplus.milestone",
  "lexicon": 1
}
