Interface: StoredPreprint
Defined in: src/types/interfaces/storage.interface.ts:31
Stored preprint metadata in Chive's index.
Remarks
This is an INDEX record, not the source of truth. The authoritative preprint data lives in the user's PDS. This record enables fast searching and browsing without hitting individual PDSes.
Properties
abstract
readonlyabstract:string
Defined in: src/types/interfaces/storage.interface.ts:64
Preprint abstract.
Remarks
Indexed for full-text search.
author
readonlyauthor:DID
Defined in: src/types/interfaces/storage.interface.ts:48
Author's DID.
cid
readonlycid:CID
Defined in: src/types/interfaces/storage.interface.ts:43
CID of the indexed preprint version.
Remarks
Used to detect when PDS has a newer version (staleness check).
createdAt
readonlycreatedAt:Date
Defined in: src/types/interfaces/storage.interface.ts:125
When the preprint was created (from record).
indexedAt
readonlyindexedAt:Date
Defined in: src/types/interfaces/storage.interface.ts:120
When this record was indexed by Chive.
keywords?
readonlyoptionalkeywords: readonlystring[]
Defined in: src/types/interfaces/storage.interface.ts:97
Keywords for searchability and categorization.
Remarks
User-provided keywords for the preprint. Indexed for full-text search.
license
readonlylicense:string
Defined in: src/types/interfaces/storage.interface.ts:104
License (SPDX identifier).
Example
"CC-BY-4.0", "MIT", "Apache-2.0"
pdfBlobRef
readonlypdfBlobRef:BlobRef
Defined in: src/types/interfaces/storage.interface.ts:73
Blob reference to PDF in user's PDS.
Remarks
This is a BlobRef (CID pointer), not blob data. The actual PDF remains in the user's PDS.
pdsUrl
readonlypdsUrl:string
Defined in: src/types/interfaces/storage.interface.ts:115
URL of the user's PDS where this preprint lives.
Remarks
Used for:
- Staleness detection (checking for updates)
- Fetching blobs for proxying
- Rebuilding index from source
previousVersionUri?
readonlyoptionalpreviousVersionUri:AtUri
Defined in: src/types/interfaces/storage.interface.ts:81
AT URI of previous version (if this is an update).
Remarks
Used to build version chains for preprints with multiple revisions.
title
readonlytitle:string
Defined in: src/types/interfaces/storage.interface.ts:56
Preprint title.
Remarks
Indexed for full-text search and faceted filtering.
uri
readonlyuri:AtUri
Defined in: src/types/interfaces/storage.interface.ts:35
AT URI of the preprint record.
versionNotes?
readonlyoptionalversionNotes:string
Defined in: src/types/interfaces/storage.interface.ts:89
Changelog describing changes in this version.
Remarks
Optional field provided by authors when uploading a new version.