{
"id": "gg.infinitetavern.tavern.getAdventurerChronicles",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"results"
],
"properties": {
"cursor": {
"type": "string",
"description": "Offset-based pagination cursor (next offset as string)."
},
"results": {
"type": "array",
"items": {
"ref": "#matchResultView",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The adventurer's DID."
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"offset": {
"type": "integer",
"default": 0,
"minimum": 0
}
}
},
"description": "Consult the tavern's grand ledger to retrieve an adventurer's indexed battle chronicles, ordered newest first."
},
"matchResultView": {
"type": "object",
"required": [
"uri",
"cid",
"did",
"lobbyId",
"seasonNumber",
"placement",
"heroKey",
"heroName",
"roundSurvived",
"mmrBefore",
"mmrAfter",
"mmrChange",
"playedAt",
"opponents"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"did": {
"type": "string",
"format": "did"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"heroKey": {
"type": "string"
},
"lobbyId": {
"type": "string"
},
"heroName": {
"type": "string"
},
"mmrAfter": {
"type": "number"
},
"playedAt": {
"type": "string",
"format": "datetime"
},
"mmrBefore": {
"type": "number"
},
"mmrChange": {
"type": "number"
},
"opponents": {
"type": "array",
"items": {
"ref": "gg.infinitetavern.chronicle.entry#opponent",
"type": "ref"
}
},
"placement": {
"type": "integer",
"maximum": 8,
"minimum": 1
},
"seasonNumber": {
"type": "integer"
},
"roundSurvived": {
"type": "integer",
"minimum": 0
}
},
"description": "An indexed chronicle entry — one adventurer's record from a single tavern battle."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}