{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "followingRule": {
      "description": "Allow replies from users the post's author follows.",
      "properties": {},
      "type": "object"
    },
    "listRule": {
      "description": "Allow replies from members of a specific list.",
      "properties": {
        "list": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "list"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "allow": {
            "description": "Who can reply.",
            "items": {
              "refs": [
                "#mentionRule",
                "#followingRule",
                "#listRule"
              ],
              "type": "union"
            },
            "maxLength": 5,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "post": {
            "description": "The root post the threadgate applies to.",
            "ref": "tools.kryphocron.feed.postPublic#strongRef",
            "type": "ref"
          }
        },
        "required": [
          "post",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mentionRule": {
      "description": "Allow replies from users mentioned in the post.",
      "properties": {},
      "type": "object"
    }
  },
  "description": "Thread-level interaction policy. Field schema compatible with app.bsky.feed.threadgate. For private-tier threads, allow-rules are additional constraints on top of audience-list membership.",
  "id": "tools.kryphocron.feed.threadgate",
  "lexicon": 1
}
