Skip to main content
Module

x/earthstar/mod.ts>DocEs4

Storage for private, distributed, offline-first applications.
Latest
interface DocEs4
implements DocBase<"es.4">
import { type DocEs4 } from "https://deno.land/x/earthstar@v10.2.2/mod.ts";

Contains data written and signed by an identity.

Properties

format: "es.4"

Which document format the doc adheres to, e.g. es.4.

content: string
contentHash: string
deleteAfter: number | null

When the document should be deleted, as a UNIX timestamp in microseconds.

path: Path
signature: Signature

Used to verify the authorship of the document.

timestamp: Timestamp

When the document was written, as a UNIX timestamp in microseconds (millionths of a second, e.g. Date.now() * 1000).

workspace: ShareAddress

The share this document is from. Shares were previously called workspaces, but we didn't want to break compatibility with previous versions by renaming this field.

optional
_localIndex: LocalIndex