{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dazie-io/json-schema/dazie-io-memory-schema.json",
  "title": "Memory",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dazie-io-openapi.json#/components/schemas/Memory",
  "type": "object",
  "required": [
    "id",
    "type",
    "content"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "type": {
      "$ref": "#/$defs/MemoryType"
    },
    "content": {
      "type": "string"
    },
    "importance": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastReferenced": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "MemoryType": {
      "type": "string",
      "enum": [
        "emotional_state",
        "goals",
        "relationships",
        "insights",
        "patterns",
        "preferences"
      ]
    }
  }
}