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
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
chat | string | yes | The Vibe chat's slug. |
|
url | string | yes |
| |
repeated | boolean | yes |
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 }] }