com.atproto.repo.apply_writes¶
- class atproto_client.models.com.atproto.repo.apply_writes.Create¶
Bases:
ModelBase
Definition model for
com.atproto.repo.applyWrites
. Operation which creates a new record.- field collection: str [Required]¶
Collection.
- field py_type: Literal['com.atproto.repo.applyWrites#create'] = 'com.atproto.repo.applyWrites#create'¶
- field rkey: str | None = None¶
Rkey.
- Constraints:
max_length = 15
- field value: UnknownType [Required]¶
Value.
- class atproto_client.models.com.atproto.repo.apply_writes.Data¶
Bases:
DataModelBase
Input data model for
com.atproto.repo.applyWrites
.- field repo: str [Required]¶
The handle or DID of the repo (aka, current account).
- field swap_commit: str | None = None¶
If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
- field validate_: bool | None = None¶
Can be set to ‘false’ to skip Lexicon schema validation of record data, for all operations.
- field writes: List[Create | models.ComAtprotoRepoApplyWrites.Update | models.ComAtprotoRepoApplyWrites.Delete[models.ComAtprotoRepoApplyWrites.Create | models.ComAtprotoRepoApplyWrites.Update | models.ComAtprotoRepoApplyWrites.Delete]] [Required]¶
- class atproto_client.models.com.atproto.repo.apply_writes.DataDict(*args, **kwargs)¶
Bases:
dict
- repo: str¶
The handle or DID of the repo (aka, current account).
- swap_commit: typing_extensions.NotRequired[str | None]¶
If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
- validate: typing_extensions.NotRequired[bool | None]¶
Can be set to ‘false’ to skip Lexicon schema validation of record data, for all operations.
- class atproto_client.models.com.atproto.repo.apply_writes.Delete¶
Bases:
ModelBase
Definition model for
com.atproto.repo.applyWrites
. Operation which deletes an existing record.- field collection: str [Required]¶
Collection.
- field py_type: Literal['com.atproto.repo.applyWrites#delete'] = 'com.atproto.repo.applyWrites#delete'¶
- field rkey: str [Required]¶
Rkey.
- class atproto_client.models.com.atproto.repo.apply_writes.Update¶
Bases:
ModelBase
Definition model for
com.atproto.repo.applyWrites
. Operation which updates an existing record.- field collection: str [Required]¶
Collection.
- field py_type: Literal['com.atproto.repo.applyWrites#update'] = 'com.atproto.repo.applyWrites#update'¶
- field rkey: str [Required]¶
Rkey.
- field value: UnknownType [Required]¶
Value.