ChatVibeDeliverResult chat.vibe-deliver-result@1

Generated at from openvibe-contracts v0.221.0 and openvibe-sdk v0.65.0.

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

chat.vibe-deliver-result@1: where a chat.vibe-deliver-request@1 was posted. `repeated` is true when the idempotency key was seen before (nothing was posted again).

Fields

FieldTypeRequiredDescriptionConstraints
chatstringyesThe Vibe chat's slug.
  • pattern ^v-[0-9a-f]{12}$
urlstringyes
  • pattern ^https://
  • format uri
repeatedbooleanyes

Examples

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

Valid: posted
{
  "chat": "v-0123456789ab",
  "url": "https://openvibe.chat/vibe/v-0123456789ab",
  "repeated": false
}
Rejected: no-repeated
{
  "chat": "v-0123456789ab",
  "url": "https://openvibe.chat/vibe/v-0123456789ab"
}

Validate

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