Interface Commit

A Commit represents a (set of) changes to one specific Resource. See https://atomicdata.dev/classes/Commit If you want to create a Commit, you should probably use the CommitBuilder and call .sign() on it.

Hierarchy

Properties

createdAt: number

Unix timestamp in milliseconds, see https://atomicdata.dev/properties/createdAt

destroy?: boolean

If true, the resource must be deleted. https://atomicdata.dev/properties/destroy

id?: string

Subject of created Commit. Will only be present after it was accepted and applied by the Server.

previousCommit?: string

URL of the previous Commit, used by the receiver to make sure that we're having the same current version.

push?: Record<string, JSONArray>

The property-value combinations for which one or more ResourceArrays will be appended. https://atomicdata.dev/properties/push

remove?: string[]

The properties that need to be removed. https://atomicdata.dev/properties/remove

set?: Record<string, JSONValue>

The property-value combinations being edited https://atomicdata.dev/properties/set

signature: string
signer: string
subject: string

The resource being edited

Generated using TypeDoc