com.atproto.sync.subscribe_repos

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

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. Represents a change to an account’s status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.

field active: bool [Required]

Indicates that the account has a repository which can be fetched from the host that emitted this event.

field did: str [Required]

Did.

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

Seq.

field status: str | None = None

If active=false, this optional field indicates a reason for why the account is not active.

field time: str [Required]

Time.

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 0x7f5ef2d022b0>, ‘__get_pydantic_json_schema__’: <classmethod object at 0x7f5ef2d023d0>, ‘__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. DEPRECATED – Use #identity event instead.

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 handle: str | None = None

The current handle for the account, or ‘handle.invalid’ if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.

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. DEPRECATED – Use #account event 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. DEPRECATED – Use #account event instead.

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.