{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The active exchange for a listing, if any — AppView-derived from community.gifthood.exchange + exchangeResponse records. Unpublished method; served by the gifthood AppView.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "exchange": {
              "ref": "community.gifthood.feed.defs#exchangeView",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "rkey": {
            "type": "string"
          }
        },
        "required": [
          "did",
          "rkey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "community.gifthood.feed.getListingExchange",
  "lexicon": 1
}
