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:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12280>

  • json_schema_input_type = PydanticUndefined

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

Rkey.

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:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a125e0>

  • json_schema_input_type = PydanticUndefined

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

Uri.

Constraints:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12700>

  • json_schema_input_type = PydanticUndefined

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 [Required]

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

Constraints:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12040>

  • json_schema_input_type = PydanticUndefined

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]

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:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12280>

  • json_schema_input_type = PydanticUndefined

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.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:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12280>

  • json_schema_input_type = PydanticUndefined

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

Rkey.

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:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a125e0>

  • json_schema_input_type = PydanticUndefined

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

Uri.

Constraints:
  • func = <function only_validate_if_strict.<locals>.wrapper at 0x7f7d65a12700>

  • json_schema_input_type = PydanticUndefined

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

Validation status.