{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-task-artifact-content-response-schema.json",
  "title": "TaskArtifactContentResponse",
  "description": "A posted artifact version plus its decoded content (for rendering).\n\n``content`` carries the type-specific fields (``body`` for a report,\n``columns``/``rows`` for a table, ``url``/``kind`` for a link). When the\nstored blob fails its hash check ``verified`` is False and ``content`` is\nomitted -- the surface must render *tampered*, never the bytes.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-openapi.yaml#/components/schemas/TaskArtifactContentResponse",
  "properties": {
    "task_id": {
      "type": "string",
      "title": "Task Id"
    },
    "key": {
      "type": "string",
      "title": "Key"
    },
    "artifact_type": {
      "type": "string",
      "title": "Artifact Type"
    },
    "content_hash": {
      "type": "string",
      "title": "Content Hash"
    },
    "version": {
      "type": "integer",
      "title": "Version"
    },
    "prev_version_hash": {
      "type": "string",
      "title": "Prev Version Hash"
    },
    "spine_entry_hash": {
      "type": "string",
      "title": "Spine Entry Hash"
    },
    "journal_index": {
      "type": "integer",
      "title": "Journal Index"
    },
    "journal_event_hash": {
      "type": "string",
      "title": "Journal Event Hash"
    },
    "link_kind": {
      "type": "string",
      "title": "Link Kind",
      "default": ""
    },
    "size": {
      "type": "integer",
      "title": "Size",
      "default": 0
    },
    "verified": {
      "type": "boolean",
      "title": "Verified",
      "default": true
    },
    "verify_reason": {
      "type": "string",
      "title": "Verify Reason",
      "default": ""
    },
    "content": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    }
  },
  "type": "object",
  "required": [
    "task_id",
    "key",
    "artifact_type",
    "content_hash",
    "version",
    "prev_version_hash",
    "spine_entry_hash",
    "journal_index",
    "journal_event_hash"
  ]
}