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.
Details · query
| Kind | query |
|---|---|
| Authority | cozysky.quest |
| Commit rev | 3n2mgf3w7fh43 |
| Indexed |
Checks
Validunlimited-stringdefs.acceptance.properties.kNo maxLength, maxGraphemes or format limits this string.
{
"$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
}