A rhythm game net ranking service built on ATproto.
at main 44 lines 1.0 kB view raw
1{ 2 "lexicon": 1, 3 "id": "dev.tsunagite.createGame", 4 "defs": { 5 "type": "procedure", 6 "description": "Create a record for a game that will host leaderboards via Tsunagite. If the game already exists, update its data.", 7 "input": { 8 "encoding": "text/json", 9 "schema": { 10 "type": "object", 11 "properties": { 12 "id": { 13 "type": "string", 14 "description": "The ID of this game. Should only include [a-zA-Z0-9-].", 15 "format": "record-key" 16 }, 17 "game": { 18 "type": "ref", 19 "ref": "dev.tsunagite.game" 20 } 21 }, 22 "required": ["id", "game"] 23 } 24 }, 25 "output": { 26 "encoding": "text/json", 27 "schema": { 28 "type": "object", 29 "properties": { 30 "uri": { 31 "tye": "string", 32 "description": "The URI pointing to the game's newly-created record.", 33 "format": "at-uri" 34 }, 35 "profileKey": { 36 "type": "string", 37 "description": "The record key that should be used for this game's player profiles.", 38 "format": "nsid" 39 } 40 } 41 } 42 } 43 } 44}