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.

Constraints:
field py_type: Literal['com.atproto.repo.applyWrites#create'] = 'com.atproto.repo.applyWrites#create'
field rkey: str | None = None

NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.

Constraints:
  • max_length = 512

field value: UnknownType [Required]

Value.

class atproto_client.models.com.atproto.repo.apply_writes.CreateResult

Bases: ModelBase

Definition model for com.atproto.repo.applyWrites.

field cid: str [Required]

Cid.

Constraints:
field py_type: Literal['com.atproto.repo.applyWrites#createResult'] = 'com.atproto.repo.applyWrites#createResult'
field uri: str [Required]

Uri.

Constraints:
field validation_status: Literal['valid'] | Literal['unknown'] | str | None = None

Validation status.

class atproto_client.models.com.atproto.repo.apply_writes.Data

Bases: DataModelBase

Input data model for com.atproto.repo.applyWrites.

field repo: str | str [Required]

The handle or DID of the repo (aka, current account).

field swap_commit: str | None = None
field validate_: bool | None = None
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[str] | str[str]

The handle or DID of the repo (aka, current account).

swap_commit: typing_extensions.NotRequired[str[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 across all operations, ‘true’ to require it, or leave unset to validate only for known Lexicons.

writes: List[Create | models.ComAtprotoRepoApplyWrites.Update | models.ComAtprotoRepoApplyWrites.Delete[models.ComAtprotoRepoApplyWrites.Create | models.ComAtprotoRepoApplyWrites.Update | models.ComAtprotoRepoApplyWrites.Delete]]
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.

Constraints:
field py_type: Literal['com.atproto.repo.applyWrites#delete'] = 'com.atproto.repo.applyWrites#delete'
field rkey: str [Required]

Rkey.

Constraints:
class atproto_client.models.com.atproto.repo.apply_writes.DeleteResult

Bases: ModelBase

Definition model for com.atproto.repo.applyWrites.

field py_type: Literal['com.atproto.repo.applyWrites#deleteResult'] = 'com.atproto.repo.applyWrites#deleteResult'
class atproto_client.models.com.atproto.repo.apply_writes.Response

Bases: ResponseModelBase

Output data model for com.atproto.repo.applyWrites.

field commit: models.ComAtprotoRepoDefs.CommitMeta | None = None

Commit.

field results: List[CreateResult | models.ComAtprotoRepoApplyWrites.UpdateResult | models.ComAtprotoRepoApplyWrites.DeleteResult[models.ComAtprotoRepoApplyWrites.CreateResult | models.ComAtprotoRepoApplyWrites.UpdateResult | models.ComAtprotoRepoApplyWrites.DeleteResult]] | None = None
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.

Constraints:
field py_type: Literal['com.atproto.repo.applyWrites#update'] = 'com.atproto.repo.applyWrites#update'
field rkey: str [Required]

Rkey.

Constraints:
field value: UnknownType [Required]

Value.

class atproto_client.models.com.atproto.repo.apply_writes.UpdateResult

Bases: ModelBase

Definition model for com.atproto.repo.applyWrites.

field cid: str [Required]

Cid.

Constraints:
field py_type: Literal['com.atproto.repo.applyWrites#updateResult'] = 'com.atproto.repo.applyWrites#updateResult'
field uri: str [Required]

Uri.

Constraints:
field validation_status: Literal['valid'] | Literal['unknown'] | str | None = None

Validation status.