{ "lexicon": 1, "id": "dev.tsunagite.createGame", "defs": { "type": "procedure", "description": "Create a record for a game that will host leaderboards via Tsunagite. If the game already exists, update its data.", "input": { "encoding": "text/json", "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "The ID of this game. Should only include [a-zA-Z0-9-].", "format": "record-key" }, "game": { "type": "ref", "ref": "dev.tsunagite.game" } }, "required": ["id", "game"] } }, "output": { "encoding": "text/json", "schema": { "type": "object", "properties": { "uri": { "tye": "string", "description": "The URI pointing to the game's newly-created record.", "format": "at-uri" }, "profileKey": { "type": "string", "description": "The record key that should be used for this game's player profiles.", "format": "nsid" } } } } } }