{
"id": "app.didpic.notification.defs",
"defs": {
"notificationView": {
"type": "object",
"required": [
"id",
"reason",
"author",
"recordUri",
"recordCid",
"count",
"isRead",
"createdAt",
"indexedAt"
],
"properties": {
"id": {
"type": "string"
},
"post": {
"ref": "app.didpic.feed.defs#postView",
"type": "ref",
"description": "Hydrated post view for reasons that involve a post."
},
"count": {
"type": "integer",
"minimum": 1,
"description": "Number of records collapsed into this notification. Always 1 except for likes."
},
"author": {
"ref": "app.didpic.actor.defs#profileBasic",
"type": "ref"
},
"isRead": {
"type": "boolean"
},
"reason": {
"type": "string",
"knownValues": [
"like",
"comment",
"reply",
"follow",
"subscribed-post"
]
},
"comment": {
"ref": "app.didpic.feed.defs#commentView",
"type": "ref",
"description": "Hydrated comment view when the subject is a comment."
},
"postUri": {
"type": "string",
"format": "at-uri",
"description": "Thread-root post URI for post-context reasons. Absent for follow."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"recordCid": {
"type": "string",
"format": "cid"
},
"recordUri": {
"type": "string",
"format": "at-uri"
},
"subjectCid": {
"type": "string",
"format": "cid"
},
"subjectUri": {
"type": "string",
"format": "at-uri",
"description": "URI of the target record. Post for post-likes and top-level comments, comment for comment-likes and replies. Absent for follow."
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}