{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/writerslogic-com/json-schema/writerslogic-com-publish-request-schema.json",
  "title": "PublishRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-writerslogic-openapi.json#/components/schemas/PublishRequest",
  "type": "object",
  "properties": {
    "evidenceHash": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "SHA-256 of the document content, hex. Must equal the packet's own documentRef hash."
    },
    "authorDid": {
      "type": "string",
      "maxLength": 256
    },
    "signature": {
      "type": "string",
      "pattern": "^[0-9a-f]{128}$",
      "description": "Ed25519 over `b\"witnessd-publish-v1\" || content_hash` (32 raw bytes). Checked only when the author has an enrolled hardware key."
    },
    "attestation": {
      "type": "string"
    },
    "checkpointCount": {
      "type": "integer",
      "minimum": 0
    },
    "documentName": {
      "type": "string",
      "maxLength": 512
    },
    "aiDeclaration": {
      "type": "string"
    },
    "evidenceB64": {
      "type": "string",
      "description": "The .cpoe packet, base64. Paid tiers only; supplying it upgrades the publish to a full notarization."
    }
  },
  "required": [
    "evidenceHash",
    "authorDid",
    "signature"
  ]
}