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.
- Constraints:
func = Validated by:
string_formats.validate_did()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field py_type: Literal['com.atproto.sync.subscribeRepos#account'] = 'com.atproto.sync.subscribeRepos#account'¶
- field seq: int [Required]¶
Seq.
- field status: Literal['takendown'] | Literal['suspended'] | Literal['deleted'] | Literal['deactivated'] | Literal['desynchronized'] | Literal['throttled'] | str | None = None¶
If active=false, this optional field indicates a reason for why the account is not active.
- field time: str [Required]¶
Time.
- Constraints:
func = Validated by:
string_formats.validate_datetime()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- 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. DEPRECATED – will soon always be empty. List of new blobs (by CID) referenced by records in this commit.
- field blocks: str | bytes [Required]¶
CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header ‘roots’ list.
- 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 0x7be3f9c52fa0>, ‘__get_pydantic_json_schema__’: <classmethod object at 0x7be3f9c52e80>, ‘__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. List of repo mutation operations in this commit (eg, records created, updated, or deleted).
- Constraints:
max_length = 200
- field prev_data: CIDType | None = None¶
- 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. Note that all other message types name this field ‘did’.
- Constraints:
func = Validated by:
string_formats.validate_did()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- 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.
- Constraints:
func = Validated by:
string_formats.validate_tid()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- 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.
- Constraints:
func = Validated by:
string_formats.validate_datetime()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field too_big: bool [Required]¶
DEPRECATED – replaced by #sync event and data limits. 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.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.
- Constraints:
func = Validated by:
string_formats.validate_did()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field handle: str | None = None¶
- field py_type: Literal['com.atproto.sync.subscribeRepos#identity'] = 'com.atproto.sync.subscribeRepos#identity'¶
- field seq: int [Required]¶
Seq.
- field time: str [Required]¶
Time.
- Constraints:
func = Validated by:
string_formats.validate_datetime()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- 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: Literal['OutdatedCursor'] | 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.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: Literal['create'] | Literal['update'] | Literal['delete'] | 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 prev: CIDType | None = None¶
- field py_type: Literal['com.atproto.sync.subscribeRepos#repoOp'] = 'com.atproto.sync.subscribeRepos#repoOp'¶
- class atproto_client.models.com.atproto.sync.subscribe_repos.Sync¶
Bases:
ModelBase
Definition model for
com.atproto.sync.subscribeRepos
. Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.- field blocks: str | bytes [Required]¶
CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first ‘root’.
- field did: str [Required]¶
The account this repo event corresponds to. Must match that in the commit object.
- Constraints:
func = Validated by:
string_formats.validate_did()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field py_type: Literal['com.atproto.sync.subscribeRepos#sync'] = 'com.atproto.sync.subscribeRepos#sync'¶
- field rev: str [Required]¶
The rev of the commit. This value must match that in the commit object.
- field seq: int [Required]¶
The stream sequence number of this message.
- field time: str [Required]¶
Timestamp of when this message was originally broadcast.
- Constraints:
func = Validated by:
string_formats.validate_datetime()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined