{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "followerRule": {
      "description": "Approved members of the author's followers space.",
      "properties": {},
      "type": "object"
    },
    "followingRule": {
      "description": "Accounts the author follows, publicly or hidden.",
      "properties": {},
      "type": "object"
    },
    "listRule": {
      "properties": {
        "list": {
          "description": "The record key of one of the author's personal tools.umbrae.list records.",
          "format": "tid",
          "type": "string"
        }
      },
      "required": [
        "list"
      ],
      "type": "object"
    },
    "main": {
      "description": "Who may reply to a hidden post, and which replies its author hides for everyone. Written by the post's author in the post's space, at the post's record key. Enforced where posts are shown.",
      "key": "tid",
      "record": {
        "properties": {
          "allow": {
            "description": "Absent: anyone who can see the post may reply. Empty: nobody.",
            "items": {
              "closed": true,
              "refs": [
                "#mentionRule",
                "#followingRule",
                "#followerRule",
                "#listRule"
              ],
              "type": "union"
            },
            "maxLength": 5,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "hiddenReplies": {
            "description": "Replies, in this space, hidden for everyone but their authors.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 300,
            "type": "array"
          },
          "post": {
            "description": "The gated post: the author's own tools.umbrae.post at this record's key, in this space.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "post",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mentionRule": {
      "description": "Accounts mentioned in the post.",
      "properties": {},
      "type": "object"
    }
  },
  "id": "tools.umbrae.threadgate",
  "lexicon": 1
}
