{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peppyrus/main/json-schema/peppyrus-message-schema.json",
  "title": "Message",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peppyrus-openapi.json#/components/schemas/Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the message",
      "format": "uuid"
    },
    "sender": {
      "type": "string",
      "description": "Participant ID of the sender"
    },
    "recipient": {
      "type": "string",
      "description": "Participant ID of the recipient"
    },
    "direction": {
      "type": "string",
      "description": "Direction",
      "enum": [
        "IN",
        "OUT"
      ]
    },
    "folder": {
      "type": "string",
      "description": "Folder",
      "enum": [
        "Inbox",
        "Outbox",
        "Sent",
        "Failed"
      ]
    },
    "processType": {
      "type": "string",
      "description": "Process Type"
    },
    "documentType": {
      "type": "string",
      "description": "Document Type"
    },
    "fileContent": {
      "type": "string",
      "description": "File content base64 encoded"
    },
    "created": {
      "type": "string",
      "description": "Date/time created",
      "format": "date-time"
    },
    "confirmed": {
      "type": "boolean",
      "description": "Indicates confirmed status"
    }
  }
}