social.colibri.beta.notification.markReadFromNotification

Marks a channel or thread read through the message a push notification announced, from the notification's Mark as read action. Takes no auth: the signed token from the push payload's readToken names the user, the channel and the message, and expires after seven days. Moves the user's read cursor forward, marks that channel's notifications through the message seen, and tells the user's sessions and push devices.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authoritynotification.beta.colibri.social
Indexed
cid bafyreicc6m342ly4hd3dg2fkpkoyebrc6budzrvrfcf5tagb3r7ma5hnwm

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Marks a channel or thread read through the message a push notification announced, from the notification's Mark as read action. Takes no auth: the signed token from the push payload's readToken names the user, the channel and the message, and expires after seven days. Moves the user's read cursor forward, marks that channel's notifications through the message seen, and tells the user's sessions and push devices.",
      "errors": [
        {
          "description": "The token is malformed, its signature does not verify, or the channel it names no longer exists.",
          "name": "InvalidToken"
        },
        {
          "description": "The token is older than seven days.",
          "name": "ExpiredToken"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "token": {
              "description": "The readToken from the push payload.",
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.notification.markReadFromNotification",
  "lexicon": 1
}