chatBskyConvoDeleteMessageForSelf top-level constant

Map<String, dynamic> const chatBskyConvoDeleteMessageForSelf

chat.bsky.convo.deleteMessageForSelf

Implementation

const chatBskyConvoDeleteMessageForSelf = <String, dynamic>{
  "lexicon": 1,
  "id": "chat.bsky.convo.deleteMessageForSelf",
  "defs": {
    "main": {
      "type": "procedure",
      "description":
          "Marks a message as deleted for the viewer, so they won't see that message in future enumerations.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["convoId", "messageId"],
          "properties": {
            "convoId": {"type": "string"},
            "messageId": {"type": "string"},
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "ref",
          "ref": "chat.bsky.convo.defs#deletedMessageView",
        },
      },
      "errors": [
        {"name": "InvalidConvo"},
        {
          "name": "MessageDeleteNotAllowed",
          "description":
              "Indicates that this message cannot be deleted, e.g. because it is a system message.",
        },
      ],
    },
  },
};