Protected
Readonly
state$Static
MAX_Static
STREAM_Static
STREAM_Update the contents of an existing Model Instance Document based on a JSON-patch diff from the existing contents to the desired new contents
JSON patch diff of document contents
Metadata change
Additional options
Update an existing Model Instance Document by replacing its content
New content to replace old content
Additional options
Static
createCreates a Model Instance Document.
Interface to write to ceramic network
Genesis contents. If 'null', then no signature is required to make the genesis commit
Genesis metadata, including the model that this document belongs to
Additional options
Static
loadLoads a Model Instance Document from a given StreamID
Interface for reading streams from ceramic network
StreamID to load. Must correspond to a ModelInstanceDocument
Additional options
Static
makeCreate genesis commit.
Object containing the DID making (and signing) the commit
genesis content
genesis metadata
Optional
unique: string[]optional array of strings to set the unique header value
Static
makeMake a commit to update the document. Can be applied using the applyCommit method on the Ceramic client.
Interface to create signatures
The CommitID of the current tip of the Stream that the update should be applied on top of.
The current content of the Stream.
The new content to update the Stream with.
Optional
header: Partial<CommitHeader>New commit header, used to update the stream's metadata. Metadata fields not specified will be left alone with their current values.
Static
setCreates a deterministic ModelInstanceDocument with a 'set' accountRelation.
Interface to write to ceramic network
Genesis metadata
Unique fields values
Additional options
Static
singleCreates a deterministic ModelInstanceDocument with a 'single' accountRelation.
Interface to write to ceramic network
Genesis metadata
Additional options
ModelInstanceDocument stream implementation