---
title: "chat.person-memory-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/chat.person-memory-result"
updated: null
---

# chat.person-memory-result@1 · OpenVibe.Services

HTML: [chat.person-memory-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/chat.person-memory-result)

# ChatPersonMemoryResult `chat.person-memory-result@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: chat
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/chat/person-memory-result.v1.json`](/docs/contracts/chat.person-memory-result.json)

chat.person-memory-result@1: compacted chat memory returned by GET /api/v1/people/{username}/memory. Private fields appear only for the person and the channel owner.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `username` | string | yes |  | - `minLength 1` |
| `level` | enum | yes |  | - `one of "day", "week", "month"` |
| `channel` | string \| null | yes |  |  |
| `opted_out` | boolean | yes |  |  |
| `enabled` | boolean | yes |  |  |
| `entries` | array of object | yes |  | - `maxItems 60`<br>- `items: no other fields` |
| `entries[].level` | enum | yes |  | - `one of "day", "week", "month"` |
| `entries[].period_start` | string | yes |  | - `format date` |
| `entries[].channel_user_id` | integer | yes |  |  |
| `entries[].summary` | string | yes |  | - `maxLength 500` |
| `entries[].topics` | array of string | yes |  | - `maxItems 5` |
| `entries[].highlights` | array of object | yes |  | - `maxItems 5`<br>- `items: no other fields` |
| `entries[].highlights[].detail` | string | yes |  | - `maxLength 180` |
| `entries[].highlights[].stream_id` | integer \| null | yes |  |  |
| `entries[].highlights[].at` | string \| null | yes |  |  |
| `entries[].message_count` | integer | yes |  | - `minimum 0` |
| `entries[].tone` | string |  |  | - `maxLength 120` |
| `entries[].catchphrases` | array of string |  |  | - `maxItems 5` |
| `entries[].people` | array of string |  |  | - `maxItems 8` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: day

~~~~
{
  "username": "alice",
  "level": "day",
  "channel": "streamer",
  "enabled": true,
  "opted_out": false,
  "entries": [
    {
      "level": "day",
      "period_start": "2026-11-11",
      "channel_user_id": 42,
      "summary": "Alice discussed a game with chat.",
      "topics": [
        "game"
      ],
      "highlights": [
        {
          "detail": "A game win",
          "stream_id": 123,
          "at": "2026-11-11 04:00:00"
        }
      ],
      "message_count": 25
    }
  ]
}
~~~~

Rejected: no-count

~~~~
{
  "username": "alice",
  "level": "day",
  "channel": "streamer",
  "enabled": true,
  "opted_out": false,
  "entries": [
    {
      "level": "day",
      "period_start": "2026-11-11",
      "channel_user_id": 42,
      "summary": "Alice discussed a game with chat.",
      "topics": [],
      "highlights": []
    }
  ]
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('chat.person-memory-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
