Misskey · Schema

ChatMessageLiteFor1on1

Open-SourceSocial NetworksFediverseActivityPubDecentralized

Properties

Name Type Description
id string
createdAt string
fromUserId string
toUserId string
text stringnull
fileId stringnull
file objectnull
reactions array
View JSON Schema on GitHub

JSON Schema

misskey-chatmessagelitefor1on1-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://misskey.io/schemas/ChatMessageLiteFor1on1",
  "title": "ChatMessageLiteFor1on1",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "fromUserId": {
      "type": "string"
    },
    "toUserId": {
      "type": "string"
    },
    "text": {
      "type": [
        "string",
        "null"
      ]
    },
    "fileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "file": {
      "type": [
        "object",
        "null"
      ],
      "anyOf": [
        {
          "$ref": "#/components/schemas/DriveFile"
        },
        {
          "type": "null"
        }
      ]
    },
    "reactions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "reaction": {
            "type": "string"
          }
        },
        "required": [
          "reaction"
        ]
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "fromUserId",
    "toUserId",
    "reactions"
  ]
}