{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch a single publication profile with owner identity and aggregate stats.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "documentCount": {
              "type": "integer"
            },
            "lastDocumentAt": {
              "format": "datetime",
              "nullable": true,
              "type": "string"
            },
            "owner": {
              "ref": "app.standard-reader.defs#profileView",
              "type": "ref"
            },
            "publication": {
              "ref": "app.standard-reader.defs#publicationView",
              "type": "ref"
            },
            "subscriberCount": {
              "type": "integer"
            }
          },
          "required": [
            "publication"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "publication": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "publication"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.standard-reader.getPublication",
  "lexicon": 1
}
