{
"id": "social.colibri.notification.defs",
"defs": {
"notificationView": {
"type": "object",
"required": [
"id",
"recipientDid",
"kind",
"messageUri",
"authorDid",
"channelUri",
"indexedAt",
"message"
],
"properties": {
"id": {
"type": "integer"
},
"kind": {
"type": "string"
},
"seenAt": {
"type": "string",
"format": "datetime"
},
"message": {
"ref": "lex:social.colibri.notification.defs#notificationMessage",
"type": "ref"
},
"authorDid": {
"type": "string",
"format": "did"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"channelUri": {
"type": "string",
"format": "at-uri"
},
"messageUri": {
"type": "string",
"format": "at-uri"
},
"recipientDid": {
"type": "string",
"format": "did"
},
"mentionRoleName": {
"type": "string",
"description": "Display name of the role that triggered this notification, when it was a role mention rather than a direct mention."
}
},
"description": "A notification in the authenticated user's feed."
},
"unseenNotification": {
"type": "object",
"required": [
"id",
"messageUri",
"indexedAt"
],
"properties": {
"id": {
"type": "integer"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"messageUri": {
"type": "string",
"format": "at-uri"
}
},
"description": "A minimal unseen-notification pointer."
},
"notificationMessage": {
"type": "object",
"required": [
"text",
"facets",
"createdAt",
"attachments"
],
"properties": {
"text": {
"type": "string"
},
"edited": {
"type": "boolean"
},
"facets": {
"type": "array",
"items": {
"ref": "lex:social.colibri.richtext.facet",
"type": "ref"
}
},
"parent": {
"type": "string",
"format": "at-uri"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"attachments": {
"type": "array",
"items": {
"ref": "lex:social.colibri.channel.defs#attachment",
"type": "ref"
}
}
},
"description": "The message a notification refers to."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}