SourcesItemRemovedPayload sources.item.removed@1
Generated at from
openvibe-contracts v0.33.0 and
openvibe-sdk v0.5.0.
- Version
- 1.0.0
- Owner
- sources
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-017
- Schema
https://openvibe.network/contracts/events/payloads/sources.item.removed.v1.json
sources.item.removed v1 (OpenVibe.Sources server/items.js remove → itemEvent, from DELETE /api/v1/items/:id). Staff removed an item (takedown, licence, error). Sticky: a later fetch that still lists it does not bring it back. The removal bumps the revision; content_hash is the last content's. Envelope: subject { type: item, id: <item_id>, revision }, visibility internal, priority important, actor service:sources.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
item_id | string | yes |
| |
source_key | string | yes |
| |
category | enum | yes |
| |
kind | string | yes | article | url | sitemap | product | offer | review | record … (sources.item@1 kind). |
|
canonical_url | string | null | yes |
| |
title | string | null | yes | ||
revision | integer | yes |
| |
content_hash | string | yes |
| |
retrieved_at | string | yes | Last successful fetch (or manual entry) that contained the item. |
|
reason | string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: takedown
{
"item_id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"source_key": "bbc-world",
"category": "news",
"kind": "article",
"canonical_url": "https://www.bbc.co.uk/news/world-12345678",
"title": "Summit ends without agreement",
"revision": 3,
"content_hash": "60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752",
"retrieved_at": "2026-09-23T09:00:00.000Z",
"reason": "takedown request from the publisher"
}Rejected: empty-reason
{
"item_id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"source_key": "bbc-world",
"category": "news",
"kind": "article",
"canonical_url": null,
"title": null,
"revision": 3,
"content_hash": "60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752",
"retrieved_at": "2026-09-23T09:00:00.000Z",
"reason": ""
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('sources.item.removed@1', value); // { valid, errors: [{ path, message }] }