{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coudrebros-eu/json-schema/coudrebros-eu-prepare-decision-log-request-schema.json",
  "title": "PrepareDecisionLogRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coudrebros-eu-openapi.yml#/components/schemas/PrepareDecisionLogRequest",
  "properties": {
    "content_hash": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "title": "Content Hash",
      "description": "Hash of the agent's canonicalized (RFC 8785 JCS) decision record -- see docs/decision-record-v1.md."
    },
    "algorithm": {
      "type": "string",
      "enum": [
        "sha2-256",
        "blake2b-256"
      ],
      "title": "Algorithm",
      "default": "sha2-256"
    },
    "seq": {
      "type": "integer",
      "maximum": 2147483647.0,
      "minimum": 0.0,
      "title": "Seq",
      "description": "This entry's position in the chain, starting at 0."
    },
    "prev": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prev",
      "description": "content_hash of the previous entry in this chain. Omit (or null) only for seq=0."
    },
    "from_address": {
      "type": "string",
      "pattern": "^addr1[a-z0-9]+$",
      "title": "From Address",
      "description": "Cardano address that will fund this transaction's notary fee -- must sign the transaction this endpoint returns before it can be submitted. Must be a mainnet address (starts with 'addr1')."
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9._-]{1,128}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key"
    }
  },
  "type": "object",
  "required": [
    "content_hash",
    "seq",
    "from_address"
  ]
}