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

# exchange.chat-export-result@1 · OpenVibe.Services

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

# ExchangeChatExportResult `exchange.chat-export-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: exchange
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/exchange/chat-export-result.v1.json`](/docs/contracts/exchange.chat-export-result.json)

Unsealed chats and messages of exactly the named person, for their import into Chat.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `count` | integer | yes |  | - `minimum 0` |
| `chats` | array of object | yes |  | - `items: no other fields` |
| `chats[].id` | string | yes |  |  |
| `chats[].title` | string | yes |  |  |
| `chats[].models` | array of string | yes |  | - `maxItems 3` |
| `chats[].created_at` | string |  |  |  |
| `chats[].updated_at` | string |  |  |  |
| `chats[].messages` | array of object | yes |  | - `items: no other fields` |
| `chats[].messages[].role` | string | yes |  |  |
| `chats[].messages[].model` | string \| null |  |  |  |
| `chats[].messages[].content` | string \| null |  |  |  |
| `chats[].messages[].created_at` | string |  |  |  |
| `chats[].messages[].meta` | object |  |  |  |

## Examples

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

 Valid: one-chat

~~~~
{
  "count": 1,
  "chats": [
    {
      "id": "exc_example",
      "title": "A chat",
      "models": [
        "deepseek/deepseek-chat"
      ],
      "created_at": "2026-11-01T10:00:00.000Z",
      "updated_at": "2026-11-01T10:01:00.000Z",
      "messages": [
        {
          "role": "user",
          "model": null,
          "content": "Hello",
          "created_at": "2026-11-01T10:00:00.000Z",
          "meta": {}
        },
        {
          "role": "assistant",
          "model": "deepseek/deepseek-chat",
          "content": "Hi",
          "created_at": "2026-11-01T10:01:00.000Z",
          "meta": {}
        }
      ]
    }
  ]
}
~~~~

Rejected: no-chats

~~~~
{
  "count": 1
}
~~~~

## Validate

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