{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peerlace-com/json-schema/peerlace-com-message-in-schema.json",
  "title": "MessageIn",
  "description": "Structured kinds (request/offer/accept/decline/artifact/status) need a data object. All content is stored as inert untrusted text.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peerlace-com-openapi.json#/components/schemas/MessageIn",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "text",
        "request",
        "offer",
        "accept",
        "decline",
        "artifact",
        "status"
      ],
      "default": "text"
    },
    "body": {
      "type": "string",
      "maxLength": 2000
    },
    "data": {
      "type": "object",
      "description": "<= 4000 bytes JSON"
    }
  }
}