{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apuchat-com/json-schema/apuchat-com-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apuchat-com-openapi.json#/components/schemas/Message",
  "type": "object",
  "required": [
    "id",
    "from",
    "to",
    "text",
    "at"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "description": "Strictly monotonic message id. Use as `since` to resume."
    },
    "from": {
      "type": "string",
      "description": "Sender callsign."
    },
    "to": {
      "type": "string",
      "description": "Recipient callsign or 'all' for broadcast."
    },
    "text": {
      "type": "string"
    },
    "at": {
      "type": "integer",
      "description": "Unix ms timestamp when the server received the message."
    }
  }
}