{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/reality-registry/schemas/reality-event.schema.json",
  "title": "HSIMC Reality Event v0.1",
  "type": "object",
  "required": [
    "event_id",
    "reality_id",
    "event_type",
    "version",
    "occurred_at",
    "authority_basis",
    "payload_sha256"
  ],
  "properties": {
    "event_id": {
      "type": "string"
    },
    "reality_id": {
      "type": "string"
    },
    "event_type": {
      "enum": [
        "REGISTERED",
        "PROJECTED_EXISTING_RUNTIME",
        "UPDATED",
        "EVIDENCE_ADDED",
        "AUTHORITY_CHANGED",
        "VISIBILITY_CHANGED",
        "OVERLAY_ATTACHED",
        "WORK_CONTINUED",
        "EPERSON_PROPOSED",
        "EPERSON_BOUND",
        "ACCEPTED_OUTCOME",
        "STALE",
        "REVOKED"
      ]
    },
    "version": {
      "type": "string"
    },
    "occurred_at": {
      "type": "string"
    },
    "authority_basis": {
      "type": "string"
    },
    "payload_sha256": {
      "type": "string"
    },
    "note": {
      "type": "string"
    }
  }
}
