2026-09-11 00:36:59 +02:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
|
|
"$id": "hms/schemas/ipc/envelope_v1.schema.json",
|
|
|
|
|
"title": "HMS IPC Envelope v1",
|
|
|
|
|
"description": "PLAN.md §6.2: Jede IPC-Nachricht besitzt mindestens diese Felder.",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": ["protocol_version", "message_id", "type", "revision", "monotonic_timestamp_ns", "payload"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"protocol_version": {"const": 1},
|
|
|
|
|
"message_id": {"type": "string", "format": "uuid"},
|
2026-09-11 00:50:03 +02:00
|
|
|
"type": {"enum": ["command", "event", "snapshot", "ack", "error", "telemetry", "heartbeat"]},
|
2026-09-11 00:36:59 +02:00
|
|
|
"revision": {"type": "integer", "minimum": 0},
|
|
|
|
|
"monotonic_timestamp_ns": {"type": "integer", "minimum": 0},
|
|
|
|
|
"payload": {"type": "object"},
|
|
|
|
|
"idempotency_key": {"type": "string"}
|
|
|
|
|
},
|
|
|
|
|
"additionalProperties": false
|
|
|
|
|
}
|