Skip to main content

Interface: Preprint

Defined in: src/types/models/preprint.ts:29

Preprint domain model.

Remarks

Represents a scholarly preprint indexed by Chive. This model captures the essential metadata from the user's PDS record.

ATProto Compliance:

  • pdfBlobRef is a reference (CID pointer), not blob data
  • Actual PDF remains in user's PDS
  • Record is rebuildable from firehose

Properties

abstract

readonly abstract: string

Defined in: src/types/models/preprint.ts:61

Preprint abstract.


author

readonly author: DID

Defined in: src/types/models/preprint.ts:43

Primary author's DID.


cid

readonly cid: CID

Defined in: src/types/models/preprint.ts:38

CID of this preprint version.


coAuthors?

readonly optional coAuthors: readonly DID[]

Defined in: src/types/models/preprint.ts:51

Co-authors' DIDs.

Remarks

Empty array if single-authored.


createdAt

readonly createdAt: Timestamp

Defined in: src/types/models/preprint.ts:129

Preprint creation timestamp.


facets

readonly facets: readonly Facet[]

Defined in: src/types/models/preprint.ts:91

Faceted classification values.

Remarks

10-dimensional PMEST + FAST facets for precise classification.


keywords

readonly keywords: readonly string[]

Defined in: src/types/models/preprint.ts:83

Author-provided keywords.


license

readonly license: string

Defined in: src/types/models/preprint.ts:124

License (SPDX identifier).

Example

"CC-BY-4.0", "MIT", "Apache-2.0"

See

SPDX License List


pdfBlobRef

readonly pdfBlobRef: BlobRef

Defined in: src/types/models/preprint.ts:70

Blob reference to PDF in user's PDS.

Remarks

This is a BlobRef (metadata), not the PDF itself. Fetch PDF via IRepository.getBlob() for proxying.


previousVersionUri?

readonly optional previousVersionUri: AtUri

Defined in: src/types/models/preprint.ts:104

AT URI of previous version (if this is an update).


supplementaryBlobRefs?

readonly optional supplementaryBlobRefs: readonly BlobRef[]

Defined in: src/types/models/preprint.ts:78

Blob references to supplementary materials.

Remarks

Optional additional files (datasets, code, figures).


title

readonly title: string

Defined in: src/types/models/preprint.ts:56

Preprint title.


updatedAt?

readonly optional updatedAt: Timestamp

Defined in: src/types/models/preprint.ts:134

Last update timestamp.


uri

readonly uri: AtUri

Defined in: src/types/models/preprint.ts:33

AT URI of the preprint record.


version

readonly version: number

Defined in: src/types/models/preprint.ts:99

Version number (1-indexed).

Remarks

Increments with each new version posted by author.


versionNotes?

readonly optional versionNotes: string

Defined in: src/types/models/preprint.ts:115

Changelog describing changes in this version.

Remarks

Optional field provided by authors when uploading a new version. Describes what changed compared to the previous version.

Example

"Fixed typos in section 3, updated methodology, added new references"