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'] | 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.
- 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 0x7f73200bd790>, ‘__get_pydantic_json_schema__’: <classmethod object at 0x7f73200bd700>, ‘__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¶
- 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.
- 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.
- 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]¶
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.
- Constraints:
func = Validated by:
string_formats.validate_did()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field handle: str [Required]¶
Handle.
- Constraints:
func = Validated by:
string_formats.validate_handle()
(only when strict_string_format=True)json_schema_input_type = PydanticUndefined
- field py_type: Literal['com.atproto.sync.subscribeRepos#handle'] = 'com.atproto.sync.subscribeRepos#handle'¶
- 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.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.Migrate¶
Bases:
ModelBase
Definition model for
com.atproto.sync.subscribeRepos
. DEPRECATED – Use #account event instead.- 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 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.
- 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.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 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.
- 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#tombstone'] = 'com.atproto.sync.subscribeRepos#tombstone'¶
- 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