com.atproto.repo.create_record

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

Bases: DataModelBase

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

field collection: str [Required]

The NSID of the record collection.

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

  • json_schema_input_type = PydanticUndefined

field record: UnknownInputType [Required]

The record itself. Must contain a $type field.

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 rkey: str | None = None

The Record Key.

Constraints:
  • max_length = 512

field swap_commit: str | None = None

Compare and swap with the previous commit by CID.

field validate_: bool | None = None
class atproto_client.models.com.atproto.repo.create_record.DataDict(*args, **kwargs)

Bases: dict

collection: str[str]

The NSID of the record collection.

record: UnknownInputType

The record itself. Must contain a $type field.

repo: str[str]

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

rkey: typing_extensions.NotRequired[str | None]

The Record Key.

swap_commit: typing_extensions.NotRequired[str[str] | None]

Compare and swap with the previous commit by CID.

validate: typing_extensions.NotRequired[bool | None]

Can be set to ‘false’ to skip Lexicon schema validation of record data, ‘true’ to require it, or leave unset to validate only for known Lexicons.

class atproto_client.models.com.atproto.repo.create_record.Response

Bases: ResponseModelBase

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

field cid: str [Required]

Cid.

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

  • json_schema_input_type = PydanticUndefined

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

Commit.

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.