site.mochott.notification.defs
Shared definitions for mochott notifications.
Details · defs
| Kind | defs |
|---|---|
| Authority | notification.mochott.site |
| Indexed |
Checks
Validunlimited-stringdefs.actorView.properties.avatarNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.actorView.properties.didNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.actorView.properties.displayNameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.actorView.properties.handleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.notificationView.properties.commentTextNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.notificationView.properties.documentTitleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.notificationView.properties.typeNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"actorView": {
"nullable": [
"displayName",
"avatar"
],
"properties": {
"avatar": {
"description": "Avatar image. May be a path relative to the mochott origin (/api/image/{did}/{cid}) or an absolute URL.",
"type": "string"
},
"did": {
"description": "DID of the account that caused the notification.",
"type": "string"
},
"displayName": {
"type": "string"
},
"handle": {
"description": "Handle, or \"unknown\" when the profile could not be resolved.",
"type": "string"
}
},
"required": [
"did",
"handle",
"displayName",
"avatar"
],
"type": "object"
},
"notificationView": {
"description": "A notification for the requesting account. url, commentUri and commentText are only returned when the request names types or continues a keyset cursor.",
"nullable": [
"documentUri",
"documentTitle"
],
"properties": {
"actor": {
"ref": "#actorView",
"type": "ref"
},
"commentText": {
"description": "The content of commentUri. Absent when the comment has been deleted.",
"type": "string"
},
"commentUri": {
"description": "For comment, reply, comic_comment and comic_reply: the comment that caused the notification (the reply itself for replies). Absent for notifications created before it was recorded.",
"format": "at-uri",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"documentTitle": {
"description": "Title of the subject. For import_completed and import_failed it is \"<processed>|<failed>\".",
"type": "string"
},
"documentUri": {
"description": "The article, comic chapter or strip, or comic series the notification is about. Null for subscriptions and imports.",
"format": "at-uri",
"type": "string"
},
"id": {
"minimum": 0,
"type": "integer"
},
"isRead": {
"type": "boolean"
},
"type": {
"knownValues": [
"new_article",
"like",
"subscription",
"comment",
"reply",
"import_completed",
"import_failed",
"new_comic",
"comic_like",
"comic_comment",
"comic_reply",
"comic_subscription"
],
"type": "string"
},
"url": {
"description": "Absolute URL of the mochott page the notification opens: the article, the comic chapter, strip or series, or the subscriber's profile. Absent for imports and for works no longer indexed.",
"format": "uri",
"type": "string"
}
},
"required": [
"id",
"type",
"actor",
"documentUri",
"documentTitle",
"isRead",
"createdAt"
],
"type": "object"
}
},
"description": "Shared definitions for mochott notifications.",
"id": "site.mochott.notification.defs",
"lexicon": 1,
"revision": 1
}