{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aistoryhub-co/json-schema/aistoryhub-co-memory-schema.json",
  "title": "Memory",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aistoryhub-co-openapi.json#/components/schemas/Memory",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "preference",
        "feedback",
        "context",
        "reference"
      ]
    },
    "description": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "scope": {
      "type": "string",
      "enum": [
        "story",
        "account"
      ]
    },
    "story_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}