WorkIndexDocumentUpsertedPayload work.index_document.upserted@1
Generated at from
openvibe-contracts v0.131.0 and
openvibe-sdk v0.38.0.
- Version
- 1.0.0
- Owner
- work
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/events/payloads/work.index_document.upserted.v1.json
work.index_document.upserted v1 (OpenVibe.Work server/search-index.js, via openvibe-publishing/search-feed). The OpenVibe.Search document of a job listing page (type job, /jobs/<id>): the title, company, location, tags, salary text and the short excerpt Work keeps of a listing read from a public board, with the board as provenance (authorship imported). Sent after every ingest run that changed a listing and by the sweep (server/search-index.js); a listing that expired (not seen for the retention window) becomes a tombstone. The sequencer (work_index_revisions) gives an unchanged document its old revision and nothing is sent. Always visibility public and publication_state published; a page its own robots mark noindex stays in Search as a noindex document. Facets: source, remote, type, location. Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type: job, id, revision: <document revision> }, visibility internal, actor service:work.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: job-noindex
{
"owner": "work",
"type": "job",
"id": "job_0123456789abcdefghjkmnpqrs",
"revision": 5,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.work/jobs/job_0123456789abcdefghjkmnpqrs",
"title": "Senior backend engineer — Example GmbH",
"summary": "Remote (EU) · full time · Node.js, PostgreSQL",
"body": "Senior backend engineer — Example GmbH\nRemote (EU) · full time · Node.js, PostgreSQL",
"facets": {
"source": "arbeitnow",
"remote": "true",
"type": "full time",
"location": "Berlin"
},
"authorship": "imported",
"provenance": [],
"publication_state": "published",
"published_at": "2026-10-09T12:00:00.000Z",
"updated_at": "2026-10-10T08:00:00.000Z",
"indexability": {
"decision": "noindex",
"reasons": [
"owner_decision"
]
}
}Valid: job
{
"owner": "work",
"type": "job",
"id": "job_0123456789abcdefghjkmnpqrs",
"revision": 2,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.work/jobs/job_0123456789abcdefghjkmnpqrs",
"title": "Senior backend engineer — Example GmbH",
"summary": "Remote (EU) · full time · Node.js, PostgreSQL",
"body": "Senior backend engineer — Example GmbH\nRemote (EU) · full time · Node.js, PostgreSQL",
"facets": {
"source": "arbeitnow",
"remote": "true",
"type": "full time",
"location": "Berlin"
},
"authorship": "imported",
"provenance": [],
"publication_state": "published",
"published_at": "2026-10-09T12:00:00.000Z",
"updated_at": "2026-10-10T08:00:00.000Z",
"indexability": {
"decision": "index",
"reasons": []
}
}Rejected: bad-id
{
"owner": "work",
"type": "job",
"id": "job_ABC",
"revision": 2,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.work/jobs/job_0123456789abcdefghjkmnpqrs",
"title": "Senior backend engineer — Example GmbH",
"summary": "Remote (EU) · full time · Node.js, PostgreSQL",
"body": "Senior backend engineer — Example GmbH\nRemote (EU) · full time · Node.js, PostgreSQL",
"facets": {
"source": "arbeitnow",
"remote": "true",
"type": "full time",
"location": "Berlin"
},
"authorship": "imported",
"provenance": [],
"publication_state": "published",
"published_at": "2026-10-09T12:00:00.000Z",
"updated_at": "2026-10-10T08:00:00.000Z",
"indexability": {
"decision": "index",
"reasons": []
}
}Rejected: other-owner
{
"owner": "deals",
"type": "job",
"id": "job_0123456789abcdefghjkmnpqrs",
"revision": 2,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.work/jobs/job_0123456789abcdefghjkmnpqrs",
"title": "Senior backend engineer — Example GmbH",
"summary": "Remote (EU) · full time · Node.js, PostgreSQL",
"body": "Senior backend engineer — Example GmbH\nRemote (EU) · full time · Node.js, PostgreSQL",
"facets": {
"source": "arbeitnow",
"remote": "true",
"type": "full time",
"location": "Berlin"
},
"authorship": "imported",
"provenance": [],
"publication_state": "published",
"published_at": "2026-10-09T12:00:00.000Z",
"updated_at": "2026-10-10T08:00:00.000Z",
"indexability": {
"decision": "index",
"reasons": []
}
}Rejected: tombstone-as-upsert
{
"owner": "work",
"type": "job",
"id": "job_0123456789abcdefghjkmnpqrs",
"revision": 3,
"deleted": true
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('work.index_document.upserted@1', value); // { valid, errors: [{ path, message }] }