{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "A result record, written by the game master when a game ends.",
"key": "any",
"record": {
"properties": {
"game": {
"description": "A strongRef to the game this is the result of.",
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"outcome": {
"description": "How the game ended.",
"knownValues": [
"finished",
"abandoned",
"broken"
],
"maxGraphemes": 32,
"type": "string"
},
"period": {
"description": "A strongRef to the game's last period; absent when no period was published.",
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"revealedKey": {
"description": "The revealed game key, for M4's encrypted periods.",
"maxLength": 128,
"type": "string"
},
"standings": {
"description": "The final standings, in the game master's order.",
"items": {
"ref": "#standing",
"type": "ref"
},
"maxLength": 100,
"type": "array"
}
},
"required": [
"game",
"outcome",
"standings"
],
"type": "object"
},
"type": "record"
},
"standing": {
"properties": {
"rank": {
"description": "The seat's final rank, one being the winner.",
"minimum": 1,
"type": "integer"
},
"seat": {
"description": "The seat's number.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"seat",
"rank"
],
"type": "object"
}
},
"description": "The final record of a Galaxius game: the last period, the outcome and the standings.",
"id": "ink.igav.galaxius.temp.result",
"lexicon": 1
}