# gg.infinitetavern.tavern.getAdventurerVault

> 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.tavern.getAdventurerVault)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.tavern.getAdventurerVault/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.tavern.getAdventurerVault/examples)

## Definitions

### `gg.infinitetavern.tavern.getAdventurerVault`

**Type**: `query`

Retrieve a player's Adventurer's Vault — their pinned trophy replays showcasing memorable victories and battles.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The DID of the adventurer whose vault to retrieve. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `trophies` | `array` | Yes | The player's vault trophies, ordered by pinnedAt descending. |

### `gg.infinitetavern.tavern.getAdventurerVault#trophyView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` | Yes | CID of the vaultTrophy record. |
| `uri` | `string` (at-uri) | Yes | AT URI of the vaultTrophy record. |
| `note` | `string` | No | Player's note about the trophy. |
| `heroKey` | `string` | Yes | Internal key of the hero played. |
| `heroName` | `string` | Yes | Display name of the hero played. |
| `pinnedAt` | `string` (datetime) | Yes | When the trophy was pinned. |
| `placement` | `integer` | Yes | Final placement in the match. |
| `replayUri` | `string` (at-uri) | Yes | AT URI of the referenced chronicle.replay. |
| `chronicleUri` | `string` (at-uri) | Yes | AT URI of the player's chronicle.entry for this match. |
| `seasonNumber` | `integer` | Yes | Season number of the match. |

## Raw Schema

```json
{
  "id": "gg.infinitetavern.tavern.getAdventurerVault",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "trophies"
          ],
          "properties": {
            "trophies": {
              "type": "array",
              "items": {
                "$ref": "#/defs/trophyView"
              },
              "description": "The player's vault trophies, ordered by pinnedAt descending."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "The DID of the adventurer whose vault to retrieve."
          }
        }
      },
      "description": "Retrieve a player's Adventurer's Vault — their pinned trophy replays showcasing memorable victories and battles."
    },
    "trophyView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "replayUri",
        "chronicleUri",
        "placement",
        "heroKey",
        "heroName",
        "seasonNumber",
        "pinnedAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "description": "CID of the vaultTrophy record."
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the vaultTrophy record."
        },
        "note": {
          "type": "string",
          "description": "Player's note about the trophy."
        },
        "heroKey": {
          "type": "string",
          "description": "Internal key of the hero played."
        },
        "heroName": {
          "type": "string",
          "description": "Display name of the hero played."
        },
        "pinnedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the trophy was pinned."
        },
        "placement": {
          "type": "integer",
          "description": "Final placement in the match."
        },
        "replayUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the referenced chronicle.replay."
        },
        "chronicleUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the player's chronicle.entry for this match."
        },
        "seasonNumber": {
          "type": "integer",
          "description": "Season number of the match."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
