{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-collaboration-hybrid-solutions/json-schema/cisco-collaboration-hybrid-solutions-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-collaboration-hybrid-solutions-messages-api-openapi.yml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "roomId": {
      "type": "string"
    },
    "roomType": {
      "type": "string",
      "enum": [
        "direct",
        "group"
      ]
    },
    "toPersonId": {
      "type": "string"
    },
    "toPersonEmail": {
      "type": "string",
      "format": "email"
    },
    "text": {
      "type": "string"
    },
    "markdown": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "personId": {
      "type": "string"
    },
    "personEmail": {
      "type": "string",
      "format": "email"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "mentionedPeople": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attachments": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}