games.atplay.listInvitations

List the games a player is part of — ones they started and ones they were invited to — newest first.

Repository @atplay.games did:plc:xawtkr77srkxlwhxjf7whbml namespace authority
Details · query
Kindquery
Authorityatplay.games
Indexed

Query

query · GET

Parameters

query string

cursor

string

Pagination cursor.

  • maxLength: 512

limit

integer

Maximum number of games to return.

  • minimum: 1
  • maximum: 100
  • default: 50

player

string · did

Whose games to list. Defaults to the authenticated caller.

Output

application/json

cursor

string

Cursor for the next page, absent if no more results.

  • maxLength: 512

games

requiredarray
itemsref
Reference

#gameSummary

object

One game a player is part of, with just enough to list and rejoin it.

Properties

game

ref

The release the invitation named.

initiator

string · did

Who sent the invitation.

invitation

requiredstring · at-uri

The invitation that started this game.

  • maxLength: 512

latestTurn

string · at-uri

The most recent turn, absent while the game is still pending.

  • maxLength: 512

pending

requiredboolean

True while nobody has taken a turn. Acceptance is the invitee's first turn, so an unanswered invitation stays pending (ADR 0031).

players

array

The players invited, not counting the initiator.

itemsstring · did

turnCount

requiredinteger

How many turns have been published against this invitation.

  • minimum: 0

yourMove

requiredboolean

True when the latest turn names this player as one of the next to act.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.