quest.cozysky.getGiftState

Gift backlinks for one player: gifts other players set down or sent for them (gifts[].to = did), which of their own gifts others have accepted (giftsAccepted[].from = did), and which others sent back (giftsReturned[].from = did). Served by getGiftState.lua.

Repository @cozysky.quest did:plc:r3t343mn4ksrkgzustdwj5iv namespace authority
Details · query
Kindquery
Authoritycozysky.quest
Commit rev3n2mgf3w7fh43
Indexed
cid bafyreiccip75mj46cg4v3ecg5ebyyvedvb4jizq4bx6wrhuteudjybfbhm

Checks

Valid
  • unlimited-string defs.acceptance.properties.kNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "acceptance": {
      "properties": {
        "by": {
          "description": "Who accepted it (under returned: who sent it back).",
          "format": "did",
          "type": "string"
        },
        "k": {
          "description": "The gift's key in did's save.",
          "type": "string"
        }
      },
      "required": [
        "by",
        "k"
      ],
      "type": "object"
    },
    "main": {
      "description": "Gift backlinks for one player: gifts other players set down or sent for them (gifts[].to = did), which of their own gifts others have accepted (giftsAccepted[].from = did), and which others sent back (giftsReturned[].from = did). Served by getGiftState.lua.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "accepted": {
              "items": {
                "ref": "#acceptance",
                "type": "ref"
              },
              "type": "array"
            },
            "incoming": {
              "description": "quest.cozysky.save#gift entries addressed to did (set down in their grove, or sent: no area), each with the giver added as 'from'.",
              "items": {
                "type": "unknown"
              },
              "type": "array"
            },
            "returned": {
              "description": "did's gifts that the fren sent back; did's client takes them back into hand. Absent from older index scripts.",
              "items": {
                "ref": "#acceptance",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "incoming",
            "accepted"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "quest.cozysky.getGiftState",
  "lexicon": 1
}