ChatVibeConversationsResult chat.vibe-conversations-result@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
chat
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/chat/vibe-conversations-result.v1.json

chat.vibe-conversations-result@1: GET /api/vibe/conversations for a person, newest first. The last line and origin site are omitted when none is known.

Fields

FieldTypeRequiredDescriptionConstraints
countintegeryes
  • minimum 0
conversationsarray of objectyes
  • maxItems 100
  • items: no other fields
conversations[].slugstringyes
conversations[].namestringyes
conversations[].last_message_atstringyes
  • format date-time
conversations[].created_atstringyes
  • format date-time
conversations[].last_linestring | nullyes
  • maxLength 160
conversations[].last_answer_atstring | nullyes
  • format date-time
conversations[].sitestring | nullyes
  • maxLength 120

Examples

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

Valid: basic
{
  "count": 1,
  "conversations": [
    {
      "slug": "v1",
      "name": "Trip",
      "last_message_at": "2026-11-09T08:00:00Z",
      "created_at": "2026-11-09T07:00:00Z",
      "last_line": "Hello",
      "last_answer_at": null,
      "site": "openvibe.today"
    }
  ]
}
Rejected: count
{
  "count": -1,
  "conversations": []
}

Validate

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