{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/touchstone-cv/json-schema/touchstone-cv-append-request-schema.json",
  "title": "AppendRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/touchstone-cv-openapi.yml#/components/schemas/AppendRequest",
  "type": "object",
  "required": [
    "event_type",
    "payload_hash",
    "actor_sig"
  ],
  "properties": {
    "event_type": {
      "type": "string"
    },
    "payload_hash": {
      "type": "string",
      "description": "sha256 hex of JCS-canonical payload",
      "pattern": "^[0-9a-f]{64}$"
    },
    "actor_sig": {
      "type": "string",
      "description": "base64 Ed25519 detached signature over the canonical signed_content"
    },
    "counterparty_sub": {
      "type": [
        "string",
        "null"
      ]
    },
    "client_ts": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "body_enc": {
      "type": [
        "string",
        "null"
      ],
      "description": "optional stored payload body"
    }
  }
}