{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The listings of one content space the viewer may read, newest first, optionally only free ones or only priced ones (LST-12).",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "listings": {
              "items": {
                "ref": "us.off-the-clock.defs#listingView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "listings"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "offer": {
            "description": "Only #free offers, or only #price offers; every listing when absent.",
            "knownValues": [
              "free",
              "price"
            ],
            "maxLength": 16,
            "type": "string"
          },
          "space": {
            "description": "A pair's TID.",
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.listListings",
  "lexicon": 1
}
