org.lichess.puzzle.getNextRanked

Fetches the next ranked puzzle for the authenticated player. Each puzzle needs to be solved or failed before requesting another; if the player already holds an unresolved ranked puzzle, that same puzzle (with a freshly re-signed challenge) is returned so a client that lost its token can recover it.

Repository @pds.dad did:plc:rnpkyqnmsw4ipey6eotbdnnf not from the namespace authority
Details · query
Kindquery
Authoritypuzzle.lichess.org
Indexed
cid bafyreiht6x25xsc6ztn4bhtxuco4y6av7dnxebyuswdqaecqn2spxnma54

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetches the next ranked puzzle for the authenticated player. Each puzzle needs to be solved or failed before requesting another; if the player already holds an unresolved ranked puzzle, that same puzzle (with a freshly re-signed challenge) is returned so a client that lost its token can recover it.",
      "errors": [
        {
          "description": "The player already has an unresolved ranked puzzle. Submit or let it time out before requesting another. This is what blocks request-peek-reroll grinding.",
          "name": "OutstandingPuzzle"
        },
        {
          "description": "No puzzle matched the requested filters.",
          "name": "NoPuzzleAvailable"
        },
        {
          "description": "The player is temporarily blocked from ranked play. The message includes the RFC 3339 timestamp when the limit lifts. Submitting an already-outstanding puzzle still works.",
          "name": "PlayerLimited"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "challenge": {
              "description": "Opaque signed token (JWT/HMAC/ed25519) encoding puzzleId, player DID, rating+RD snapshot, puzzle rating, nonce, and expiry. Passed back verbatim to submitAttempt. Empty for casual if you choose not to issue one.",
              "maxLength": 4096,
              "type": "string"
            },
            "puzzle": {
              "description": "The puzzle to solve. The player must find the continuation after the puzzle's first move (moves[0]).",
              "ref": "org.lichess.puzzle.defs#puzzleView",
              "type": "ref"
            },
            "ranked": {
              "description": "Echoes whether this puzzle is scored.",
              "type": "boolean"
            }
          },
          "required": [
            "puzzle",
            "ranked",
            "challenge"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "org.lichess.puzzle.getNextRanked",
  "lexicon": 1
}