ExchangeChatExportResult exchange.chat-export-result@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk 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
Unsealed chats and messages of exactly the named person, for their import into Chat.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
count | integer | yes |
| |
chats | array of object | yes |
| |
chats[].id | string | yes | ||
chats[].title | string | yes | ||
chats[].models | array of string | yes |
| |
chats[].created_at | string | |||
chats[].updated_at | string | |||
chats[].messages | array of object | yes |
| |
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 }] }