com.atproto.repo.applyWrites
Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
- class atproto_client.models.com.atproto.repo.apply_writes.Data
Bases:
DataModelBaseInput data model for
com.atproto.repo.applyWrites.- field repo: AtIdentifier [Required]
The handle or DID of the repo (aka, current account).
- field writes: List[models.ComAtprotoRepoApplyWrites.Create | models.ComAtprotoRepoApplyWrites.Update | models.ComAtprotoRepoApplyWrites.Delete] [Required]
- class atproto_client.models.com.atproto.repo.apply_writes.DataDict
Bases:
TypedDict- repo: AtIdentifier
The handle or DID of the repo (aka, current account).
- writes: List[Annotated[Create | Update | Delete, FieldInfo(annotation=NoneType, required=True, discriminator='py_type')]]
- swap_commit: NotRequired[Cid | 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_: NotRequired[bool | None]
Can be set to ‘false’ to skip Lexicon schema validation of record data across all operations, ‘true’ to require it, or leave unset to validate only for known Lexicons.
- class atproto_client.models.com.atproto.repo.apply_writes.Response
Bases:
ResponseModelBaseOutput data model for
com.atproto.repo.applyWrites.- field commit: models.ComAtprotoRepoDefs.CommitMeta | None = None
Commit.
- class atproto_client.models.com.atproto.repo.apply_writes.Create
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites. Operation which creates a new record.- field collection: Nsid [Required]
Collection.
- field value: UnknownType [Required]
Value.
- Constraints:
__module__ = atproto_client.models.unknown_union
__firstlineno__ = 72
__doc__ = Annotation for lexicon
unknownfields: any registered record type, elseDotDict. Record types are looked up in the runtime registry rather than in a union fixed at import time, so a record defined by a package generated from custom lexicons is decoded to its own model.__get_pydantic_core_schema__ = <bound method UnknownRecordFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownRecordFallback’>>
__static_attributes__ = ()
__dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 72, ‘__doc__’: ‘Annotation for lexicon
unknownfields: any registered record type, elseDotDict.nnRecord types are looked up in the runtime registry rather than in a union fixed at import time,nso a record defined by a package generated from custom lexicons is decoded to its own model.n’, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownRecordFallback.__get_pydantic_core_schema__ at 0x7085a65571a0>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownRecordFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>}__weakref__ = <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>
- class atproto_client.models.com.atproto.repo.apply_writes.Update
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites. Operation which updates an existing record.- field collection: Nsid [Required]
Collection.
- field rkey: RecordKey [Required]
Rkey.
- field value: UnknownType [Required]
Value.
- Constraints:
__module__ = atproto_client.models.unknown_union
__firstlineno__ = 72
__doc__ = Annotation for lexicon
unknownfields: any registered record type, elseDotDict. Record types are looked up in the runtime registry rather than in a union fixed at import time, so a record defined by a package generated from custom lexicons is decoded to its own model.__get_pydantic_core_schema__ = <bound method UnknownRecordFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownRecordFallback’>>
__static_attributes__ = ()
__dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 72, ‘__doc__’: ‘Annotation for lexicon
unknownfields: any registered record type, elseDotDict.nnRecord types are looked up in the runtime registry rather than in a union fixed at import time,nso a record defined by a package generated from custom lexicons is decoded to its own model.n’, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownRecordFallback.__get_pydantic_core_schema__ at 0x7085a65571a0>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownRecordFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>}__weakref__ = <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>
- class atproto_client.models.com.atproto.repo.apply_writes.Delete
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites. Operation which deletes an existing record.- field collection: Nsid [Required]
Collection.
- field rkey: RecordKey [Required]
Rkey.
- class atproto_client.models.com.atproto.repo.apply_writes.CreateResult
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites.- field cid: Cid [Required]
Cid.
- field uri: AtUri [Required]
Uri.
- class atproto_client.models.com.atproto.repo.apply_writes.UpdateResult
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites.- field cid: Cid [Required]
Cid.
- field uri: AtUri [Required]
Uri.
- class atproto_client.models.com.atproto.repo.apply_writes.DeleteResult
Bases:
ModelBaseDefinition model for
com.atproto.repo.applyWrites.