{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "cid": {
          "description": "For a strongRef, as a staff hide names it.",
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "description": "The signer's own timestamp.",
          "format": "datetime",
          "type": "string"
        },
        "hidden": {
          "description": "Only with includeHidden: why the entry is hidden. staff: a forum hide. owner: the owner hid it. blocked: the owner blocked its signer.",
          "knownValues": [
            "owner",
            "staff",
            "blocked"
          ],
          "type": "string"
        },
        "indexedAt": {
          "description": "When the appview indexed the entry; ordering and every time rule use this.",
          "format": "datetime",
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "text",
        "createdAt",
        "indexedAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "The entries signed in one member's guestbook on one forum, newest first by index time. Nothing while the owner keeps it closed or is banned; entries indexed while it was closed, by signers banned or shut out by a closed gate, or within 24 hours of the same signer's previous entry never show. With includeHidden, entries hidden by staff or the owner, or from a signer the owner blocked, come back flagged instead of dropped.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "entries": {
              "items": {
                "ref": "#entry",
                "type": "ref"
              },
              "type": "array"
            },
            "open": {
              "description": "Whether the guestbook takes entries now: the owner turned it on and is not banned forum-wide.",
              "type": "boolean"
            },
            "viewerBlocked": {
              "description": "Only with viewer: whether the owner blocked that signer. False while the guestbook is closed.",
              "type": "boolean"
            }
          },
          "required": [
            "entries",
            "open"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "forum": {
            "format": "did",
            "type": "string"
          },
          "includeHidden": {
            "default": false,
            "description": "Return hidden entries, flagged. For the owner and staff.",
            "type": "boolean"
          },
          "limit": {
            "default": 20,
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "format": "did",
            "type": "string"
          },
          "viewer": {
            "description": "Report whether the owner blocked this signer, as viewerBlocked.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "forum",
          "subject"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.atmobb.actor.getGuestbook",
  "lexicon": 1
}
