Document

data class Document(val path: String? = null, val site: Uri, val tags: List<String>? = null, val links: DocumentLinksUnion? = null, val title: String, val labels: DocumentLabelsUnion? = null, val content: DocumentContentUnion? = null, val updatedAt: Timestamp? = null, val coverImage: Blob? = null, val bskyPostRef: StrongRef? = null, val description: String? = null, val publishedAt: Timestamp, val textContent: String? = null, val contributors: List<DocumentContributor>? = null)

Parameters

path

Combine with site or publication url to construct a canonical URL to the document. Prepend with a leading slash.

site

Points to a publication record (at://) or a publication url (https://) for loose documents. Avoid trailing slashes.

tags

Array of strings used to tag or categorize the document. Avoid prepending tags with hashtags.

links

Array of values describing relationships between this document and external resources

title

Title of the document.

labels

Self-label values for this post. Effectively content warnings.

content

Open union used to define the record's content. Each entry must specify a $type and may be extended with other lexicons to support additional content formats.

updatedAt

Timestamp of the documents last edit.

coverImage

Image to used for thumbnail or cover image. Less than 1MB is size.

bskyPostRef

Strong reference to a Bluesky post. Useful to keep track of comments off-platform.

description

A brief description or excerpt from the document.

publishedAt

Timestamp of the documents publish time.

textContent

Plaintext representation of the documents contents. Should not contain markdown or other formatting.

Constructors

Link copied to clipboard
constructor(path: String? = null, site: Uri, tags: List<String>? = null, links: DocumentLinksUnion? = null, title: String, labels: DocumentLabelsUnion? = null, content: DocumentContentUnion? = null, updatedAt: Timestamp? = null, coverImage: Blob? = null, bskyPostRef: StrongRef? = null, description: String? = null, publishedAt: Timestamp, textContent: String? = null, contributors: List<DocumentContributor>? = null)

Properties

Link copied to clipboard

Strong reference to a Bluesky post. Useful to keep track of comments off-platform.

Link copied to clipboard

Open union used to define the record's content. Each entry must specify a $type and may be extended with other lexicons to support additional content formats.

Link copied to clipboard
Link copied to clipboard

Image to used for thumbnail or cover image. Less than 1MB is size.

Link copied to clipboard

A brief description or excerpt from the document.

Link copied to clipboard

Self-label values for this post. Effectively content warnings.

Link copied to clipboard

Array of values describing relationships between this document and external resources

Link copied to clipboard
val path: String?

Combine with site or publication url to construct a canonical URL to the document. Prepend with a leading slash.

Link copied to clipboard

Timestamp of the documents publish time.

Link copied to clipboard
val site: Uri

Points to a publication record (at://) or a publication url (https://) for loose documents. Avoid trailing slashes.

Link copied to clipboard

Array of strings used to tag or categorize the document. Avoid prepending tags with hashtags.

Link copied to clipboard

Plaintext representation of the documents contents. Should not contain markdown or other formatting.

Link copied to clipboard

Title of the document.

Link copied to clipboard

Timestamp of the documents last edit.