{
"id": "community.gifthood.feed.getListingExchanges",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"exchanges"
],
"properties": {
"exchanges": {
"type": "array",
"items": {
"ref": "community.gifthood.feed.defs#exchangeView",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"did",
"rkey"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"rkey": {
"type": "string"
}
}
},
"description": "The exchange chains a listing surface should care about — AppView-derived. For a standing listing: the in-flight chains (state pending or completed), at most one per counterparty. For a non-standing listing: the single active exchange (including a confirmed one), as a 0-or-1 element array. Unpublished method; served by the gifthood AppView."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}