{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/penfield-app/json-schema/penfield-app-get-api-v2-memories-memoryid-history-response-schema.json",
  "title": "GetApiV2MemoriesMemoryidHistoryResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/penfield-app-openapi-generated.yml#/components/schemas/GetApiV2MemoriesMemoryidHistoryResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "Response status"
    },
    "data.current": {
      "type": "string",
      "description": "Full memory object for the current version"
    },
    "data.history": {
      "type": "string",
      "description": "Array of version records, oldest first"
    },
    "data.history[].id": {
      "type": "string",
      "description": "Memory id of that version"
    },
    "data.history[].version": {
      "type": "string",
      "description": "Version number, starting at 1"
    },
    "data.history[].lifecycle_state": {
      "type": "string",
      "description": "State of that version"
    },
    "data.history[].is_active": {
      "type": "string",
      "description": "Whether this version is current"
    },
    "data.history[].evolution": {
      "type": "string",
      "description": "Details of the evolve call that created the version"
    },
    "data.total_versions": {
      "type": "string",
      "description": "Total number of versions"
    },
    "metadata": {
      "type": "string",
      "description": "memory_id and versions_count"
    }
  }
}