# gg.infinitetavern.adventurer.codex

> Published by [infinitetavern.gg](https://lexicon.garden/identity/did:plc:vxwgn77hp5ikvbiggm5es3rv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.codex)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.codex/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.codex/examples)

## Definitions

### `gg.infinitetavern.adventurer.codex`

**Type**: `record`

The Adventurer's Codex — a portable character sheet summarizing titles, labels, and career highlights. Single record per player (rkey: self), upserted after each title refresh.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `updatedAt` | `string` (datetime) | Yes | Timestamp of the last codex update. |
| `peakRenown` | `number` | Yes | Peak MMR (Renown) achieved. |
| `activeTitle` | `string` | No | Key of the player's chosen display title. |
| `gamesPlayed` | `integer` | Yes | Total games played across all seasons. |
| `earnedLabels` | `array` | Yes | Keys of all earned labels. |
| `earnedTitles` | `array` | Yes | Keys of all earned titles. |
| `favoriteHero` | `string` | No | Most-played hero key. |
| `championships` | `integer` | Yes | Total first-place finishes. |
| `activeTitleTier` | `string` | No | Rarity tier of the active title (common, uncommon, rare, epic, legendary). |
| `activeTitleDisplay` | `string` | No | Display name of the active title. |

## Raw Schema

```json
{
  "id": "gg.infinitetavern.adventurer.codex",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "earnedTitles",
          "earnedLabels",
          "gamesPlayed",
          "championships",
          "peakRenown",
          "updatedAt"
        ],
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp of the last codex update."
          },
          "peakRenown": {
            "type": "number",
            "description": "Peak MMR (Renown) achieved."
          },
          "activeTitle": {
            "type": "string",
            "description": "Key of the player's chosen display title."
          },
          "gamesPlayed": {
            "type": "integer",
            "minimum": 0,
            "description": "Total games played across all seasons."
          },
          "earnedLabels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keys of all earned labels."
          },
          "earnedTitles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keys of all earned titles."
          },
          "favoriteHero": {
            "type": "string",
            "description": "Most-played hero key."
          },
          "championships": {
            "type": "integer",
            "minimum": 0,
            "description": "Total first-place finishes."
          },
          "activeTitleTier": {
            "type": "string",
            "description": "Rarity tier of the active title (common, uncommon, rare, epic, legendary)."
          },
          "activeTitleDisplay": {
            "type": "string",
            "description": "Display name of the active title."
          }
        }
      },
      "description": "The Adventurer's Codex — a portable character sheet summarizing titles, labels, and career highlights. Single record per player (rkey: self), upserted after each title refresh."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
