Skip to main content

Type Alias: RepoEvent

RepoEvent: { $type: "com.atproto.sync.subscribeRepos#commit"; commit: CID; ops: readonly RepoOp[]; repo: DID; seq: number; time: string; } | { $type: "com.atproto.sync.subscribeRepos#handle"; did: DID; handle: string; seq: number; time: string; } | { $type: "com.atproto.sync.subscribeRepos#identity"; did: DID; seq: number; time: string; }

Defined in: src/types/interfaces/event-stream.interface.ts:27

Repository event from firehose.

Type declaration​

{ $type: "com.atproto.sync.subscribeRepos#commit"; commit: CID; ops: readonly RepoOp[]; repo: DID; seq: number; time: string; }

$type​

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

Repository commit event.

Remarks​

Emitted when a user commits changes to their repository. Contains operations (create, update, delete) performed.

commit​

readonly commit: CID

Commit CID.

ops​

readonly ops: readonly RepoOp[]

Operations in this commit.

repo​

readonly repo: DID

Repository DID.

seq​

readonly seq: number

Sequence number (monotonically increasing).

time​

readonly time: string

Event timestamp (ISO 8601).

{ $type: "com.atproto.sync.subscribeRepos#handle"; did: DID; handle: string; seq: number; time: string; }

$type​

readonly $type: "com.atproto.sync.subscribeRepos#handle"

Handle change event.

Remarks​

Emitted when a user's handle changes.

did​

readonly did: DID

User DID.

handle​

readonly handle: string

New handle.

seq​

readonly seq: number

Sequence number.

time​

readonly time: string

Event timestamp (ISO 8601).

{ $type: "com.atproto.sync.subscribeRepos#identity"; did: DID; seq: number; time: string; }

$type​

readonly $type: "com.atproto.sync.subscribeRepos#identity"

Identity event.

Remarks​

Emitted when a user's DID document changes.

did​

readonly did: DID

User DID.

seq​

readonly seq: number

Sequence number.

time​

readonly time: string

Event timestamp (ISO 8601).

Remarks​

Union type representing different event types from com.atproto.sync.subscribeRepos.