{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "approvedFollowers": {
      "description": "Members of the owner's followers space (a tools.umbrae.space at key followers). Following publicly grants nothing.",
      "properties": {},
      "type": "object"
    },
    "following": {
      "description": "Accounts the owner follows publicly (app.bsky.graph.follow).",
      "properties": {},
      "type": "object"
    },
    "list": {
      "description": "Members of one of the owner's own public lists. A list that isn't at://{owner}/app.bsky.graph.list/... grants nothing.",
      "properties": {
        "list": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "list"
      ],
      "type": "object"
    },
    "main": {
      "description": "Who may see a private account's records, at self in its private space, written by the owner. Only the owner and the serving app read it. A viewer sees the records if they pass any rule, have no block with the owner either way (blocks, and list blocks either one subscribes to), and are active. The serving app checks on every read, so a change applies to every record at once. Without this record, approvedFollowers alone applies.",
      "key": "literal:self",
      "record": {
        "properties": {
          "allow": {
            "description": "Any one admits. Empty: the owner alone. Unknown types grant nothing.",
            "items": {
              "refs": [
                "#approvedFollowers",
                "#following",
                "#mutuals",
                "#list"
              ],
              "type": "union"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "allow",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mutuals": {
      "description": "Accounts that follow each other publicly with the owner.",
      "properties": {},
      "type": "object"
    }
  },
  "id": "tools.umbrae.private.rules",
  "lexicon": 1
}
