{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/waterr-ai/json-schema/waterr-ai-memory-container-schema.json",
  "title": "MemoryContainer",
  "description": "Every memory under one user_memory_tag in your workspace.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/waterr-ai-api-openapi.yml#/components/schemas/MemoryContainer",
  "type": "object",
  "properties": {
    "user_memory_tag": {
      "type": "string"
    },
    "subject": {
      "type": [
        "object",
        "null"
      ],
      "description": "Who a default container (`membership:<id>` / `participant:<id>`) is about. Null for your own tags.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "membership",
            "participant"
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "memory_count": {
      "type": "integer"
    },
    "token_total": {
      "type": "integer"
    },
    "first_memory_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_memory_at": {
      "type": "string",
      "format": "date-time"
    },
    "agents": {
      "type": "array",
      "description": "The agents that have written into this container.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "memory_enabled": {
            "type": "boolean"
          }
        }
      }
    }
  }
}