{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "actorRule": {
      "properties": {
        "actor": {
          "format": "at-identifier",
          "type": "string"
        }
      },
      "required": [
        "actor"
      ],
      "type": "object"
    },
    "authorFollowsRule": {
      "type": "object"
    },
    "customRule": {
      "properties": {
        "rule": {
          "type": "unknown"
        }
      },
      "required": [
        "rule"
      ],
      "type": "object"
    },
    "everyoneRule": {
      "type": "object"
    },
    "followingAuthorRule": {
      "type": "object"
    },
    "listRule": {
      "properties": {
        "list": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "list"
      ],
      "type": "object"
    },
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "allow": {
            "items": {
              "refs": [
                "#everyoneRule",
                "#authorFollowsRule",
                "#followingAuthorRule",
                "#mutualsRule",
                "#listRule",
                "#actorRule",
                "#pdsRule",
                "#customRule"
              ],
              "type": "union"
            },
            "maxLength": 5,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "allow",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mutualsRule": {
      "type": "object"
    },
    "pdsRule": {
      "properties": {
        "pds": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "pds"
      ],
      "type": "object"
    }
  },
  "id": "ooo.bsky.hidden.gate",
  "lexicon": 1,
  "revision": 1
}
