{
  "id": "app.bsky.notification.defs",
  "defs": {
    "preference": {
      "type": "object",
      "required": ["list", "push"],
      "properties": {
        "list": {
          "type": "boolean"
        },
        "push": {
          "type": "boolean"
        }
      }
    },
    "preferences": {
      "type": "object",
      "required": [
        "chat",
        "follow",
        "like",
        "likeViaRepost",
        "mention",
        "quote",
        "reply",
        "repost",
        "repostViaRepost",
        "starterpackJoined",
        "subscribedPost",
        "unverified",
        "verified"
      ],
      "properties": {
        "chat": {
          "ref": "#chatPreference",
          "type": "ref"
        },
        "like": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "quote": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "reply": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "follow": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "repost": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "mention": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "verified": {
          "ref": "#preference",
          "type": "ref"
        },
        "unverified": {
          "ref": "#preference",
          "type": "ref"
        },
        "likeViaRepost": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "subscribedPost": {
          "ref": "#preference",
          "type": "ref"
        },
        "repostViaRepost": {
          "ref": "#filterablePreference",
          "type": "ref"
        },
        "starterpackJoined": {
          "ref": "#preference",
          "type": "ref"
        }
      }
    },
    "recordDeleted": {
      "type": "object",
      "properties": {}
    },
    "chatPreference": {
      "type": "object",
      "required": ["include", "push"],
      "properties": {
        "push": {
          "type": "boolean"
        },
        "include": {
          "type": "string",
          "knownValues": ["all", "accepted"]
        }
      }
    },
    "activitySubscription": {
      "type": "object",
      "required": ["post", "reply"],
      "properties": {
        "post": {
          "type": "boolean"
        },
        "reply": {
          "type": "boolean"
        }
      }
    },
    "filterablePreference": {
      "type": "object",
      "required": ["include", "list", "push"],
      "properties": {
        "list": {
          "type": "boolean"
        },
        "push": {
          "type": "boolean"
        },
        "include": {
          "type": "string",
          "knownValues": ["all", "follows"]
        }
      }
    },
    "subjectActivitySubscription": {
      "type": "object",
      "required": ["subject", "activitySubscription"],
      "properties": {
        "subject": {
          "type": "string",
          "format": "did"
        },
        "activitySubscription": {
          "ref": "#activitySubscription",
          "type": "ref"
        }
      },
      "description": "Object used to store activity subscription data in stash."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
