{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/memory.schema.json",
  "title": "memory",
  "type": "object",
  "required": [
    "id",
    "scope"
  ],
  "properties": {
    "id": {
      "$ref": "common.schema.json#/$defs/uuid",
      "x-heart-privacy": "public"
    },
    "scope": {
      "enum": [
        "short-term",
        "long-term"
      ],
      "x-heart-privacy": "public"
    },
    "createdAt": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "expiresAt": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "origin": {
      "type": "string",
      "x-heart-privacy": "internal"
    },
    "privacy": {
      "$ref": "common.schema.json#/$defs/messageLevel",
      "x-heart-privacy": "public"
    },
    "summary": {
      "type": "string",
      "description": "Takes the level in privacy.",
      "x-heart-privacy": "dynamic"
    },
    "subject": {
      "description": "The person the item is about, if known.",
      "type": "string",
      "x-heart-privacy": "private"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
