social.colibri.beta.notification.updateSeenForMessage

Marks the notifications raised by one message seen.

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

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Marks the notifications raised by one message seen.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "No channel matches the given space reference.",
          "name": "ChannelNotFound"
        },
        {
          "description": "No message matches the given record reference in that channel.",
          "name": "MessageNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "description": "The channel the message was posted in.",
              "format": "space-ref",
              "type": "string"
            },
            "message": {
              "description": "The message whose notifications are marked seen.",
              "ref": "social.colibri.beta.defs#recordRef",
              "type": "ref"
            }
          },
          "required": [
            "channel",
            "message"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "unread": {
              "description": "Number of unread notifications remaining.",
              "type": "integer"
            }
          },
          "required": [
            "unread"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.notification.updateSeenForMessage",
  "lexicon": 1
}