ShareListResult share.list-result@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/share/list-result.v1.json
share.list-result@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
items | array of object | yes |
| |
items[].ref | share.resource-ref | yes | ||
items[].owner_subject | identity.subject-ref | yes | ||
items[].audience | enum | yes |
| |
items[].role | enum | yes |
| |
items[].shared_at | string | yes |
| |
items[].transfer | share.transfer | |||
next_cursor | string | null | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"items": [],
"next_cursor": null
}Rejected: unknown-field
{
"items": [],
"next_cursor": null,
"title": "must never appear"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('share.list-result@1', value); // { valid, errors: [{ path, message }] }