com.atproto.sync.subscribe_repos

class atproto_client.models.com.atproto.sync.subscribe_repos.Commit

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.

field blobs: List[CIDType] [Required]

Blobs.

field blocks: str | bytes [Required]

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

field commit: CIDType [Required]

Repo commit object CID.

Constraints:
  • __module__ = atproto_core.cid.cid

  • __get_pydantic_core_schema__ = <bound method _CIDPydanticAnnotation.__get_pydantic_core_schema__ of <class ‘atproto_core.cid.cid._CIDPydanticAnnotation’>>

  • __get_pydantic_json_schema__ = <bound method _CIDPydanticAnnotation.__get_pydantic_json_schema__ of <class ‘atproto_core.cid.cid._CIDPydanticAnnotation’>>

  • __dict__ = {‘__module__’: ‘atproto_core.cid.cid’, ‘__get_pydantic_core_schema__’: <classmethod object at 0x7f9e17140a30>, ‘__get_pydantic_json_schema__’: <classmethod object at 0x7f9e17261430>, ‘__dict__’: <attribute ‘__dict__’ of ‘_CIDPydanticAnnotation’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘_CIDPydanticAnnotation’ objects>, ‘__doc__’: None}

  • __weakref__ = <attribute ‘__weakref__’ of ‘_CIDPydanticAnnotation’ objects>

field ops: List[models.ComAtprotoSyncSubscribeRepos.RepoOp] [Required]

Ops.

Constraints:
  • max_length = 200

field prev: CIDType | None = None

DEPRECATED – unused. WARNING – nullable and optional; stick with optional to ensure golang interoperability.

field py_type: Literal['com.atproto.sync.subscribeRepos#commit'] = 'com.atproto.sync.subscribeRepos#commit'
field rebase: bool [Required]

DEPRECATED – unused.

field repo: str [Required]

The repo this event comes from.

field rev: str [Required]

The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.

field seq: int [Required]

The stream sequence number of this message.

field since: str | None = None

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

field time: str [Required]

Timestamp of when this message was originally broadcast.

field too_big: bool [Required]

Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.

class atproto_client.models.com.atproto.sync.subscribe_repos.Handle

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Represents an update of the account’s handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.

field did: str [Required]

Did.

field handle: str [Required]

Handle.

field py_type: Literal['com.atproto.sync.subscribeRepos#handle'] = 'com.atproto.sync.subscribeRepos#handle'
field seq: int [Required]

Seq.

field time: str [Required]

Time.

class atproto_client.models.com.atproto.sync.subscribe_repos.Identity

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Represents a change to an account’s identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.

field did: str [Required]

Did.

field py_type: Literal['com.atproto.sync.subscribeRepos#identity'] = 'com.atproto.sync.subscribeRepos#identity'
field seq: int [Required]

Seq.

field time: str [Required]

Time.

class atproto_client.models.com.atproto.sync.subscribe_repos.Info

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

field message: str | None = None

Message.

field name: str [Required]

Name.

field py_type: Literal['com.atproto.sync.subscribeRepos#info'] = 'com.atproto.sync.subscribeRepos#info'
class atproto_client.models.com.atproto.sync.subscribe_repos.Migrate

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead.

field did: str [Required]

Did.

field migrate_to: str | None = None

Migrate to.

field py_type: Literal['com.atproto.sync.subscribeRepos#migrate'] = 'com.atproto.sync.subscribeRepos#migrate'
field seq: int [Required]

Seq.

field time: str [Required]

Time.

class atproto_client.models.com.atproto.sync.subscribe_repos.Params

Bases: ParamsModelBase

Parameters model for com.atproto.sync.subscribeRepos.

field cursor: int | None = None

The last known event seq number to backfill from.

class atproto_client.models.com.atproto.sync.subscribe_repos.ParamsDict(*args, **kwargs)

Bases: dict

cursor: typing_extensions.NotRequired[int | None]

The last known event seq number to backfill from.

class atproto_client.models.com.atproto.sync.subscribe_repos.RepoOp

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. A repo operation, ie a mutation of a single record.

field action: str [Required]

Action.

field cid: CIDType | None = None

For creates and updates, the new record CID. For deletions, null.

field path: str [Required]

Path.

field py_type: Literal['com.atproto.sync.subscribeRepos#repoOp'] = 'com.atproto.sync.subscribeRepos#repoOp'
class atproto_client.models.com.atproto.sync.subscribe_repos.Tombstone

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event.

field did: str [Required]

Did.

field py_type: Literal['com.atproto.sync.subscribeRepos#tombstone'] = 'com.atproto.sync.subscribeRepos#tombstone'
field seq: int [Required]

Seq.

field time: str [Required]

Time.