interface CommitEvent

Represents an update of repository state.

Properties

$type: "com.atproto.sync.subscribeRepos#commit"

seq: number

The stream sequence number of this message.

repo: `did:${string}:${string}`

The repo this event comes from.

commit: string

Repo commit object CID.

rev: string

The rev of the emitted commit. Note that this information is also in the commit object included in blocks.

since: string | null

The rev of the last emitted commit from this repo (if any).

blocks: Uint8Array

CAR file containing relevant blocks, as a diff since the previous repo state.

ops: RepoOp[]

List of repo mutation operations in this commit (eg, records created, updated, or deleted).

prevData?: string

The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object.

time: string

Timestamp of when this message was originally broadcast.