{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List the interests ('raised hands') on a listing, each with the interested person's resolved identity. Rows are viewer-block-filtered, newest first; totalCount reflects all interests (the public count).",
      "errors": [
        {
          "description": "The author hides their content from logged-out viewers; sign in to view.",
          "name": "NotAvailableToPublic"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Reserved; not emitted in this version.",
              "type": "string"
            },
            "interests": {
              "description": "The interests, viewer-block-filtered, newest-first.",
              "items": {
                "ref": "community.gifthood.feed.defs#interestView",
                "type": "ref"
              },
              "type": "array"
            },
            "totalCount": {
              "description": "Total interests on the listing (pre-block-filter — the public 'N interested' count).",
              "type": "integer"
            }
          },
          "required": [
            "totalCount",
            "interests"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Reserved for future pagination; ignored in this version.",
            "type": "string"
          },
          "did": {
            "description": "DID of the account that created the listing.",
            "format": "did",
            "type": "string"
          },
          "limit": {
            "default": 100,
            "description": "Maximum rows to return.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "rkey": {
            "description": "Record key of the listing.",
            "type": "string"
          }
        },
        "required": [
          "did",
          "rkey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "community.gifthood.feed.getListingInterests",
  "lexicon": 1
}
