com.atproto.lexicon.schema

Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field (β€˜lexicon’). See the atproto specifications for description of the other expected top-level fields (β€˜id’, β€˜defs’, etc).

class atproto_client.models.com.atproto.lexicon.schema.Record

Bases: RecordModelBase

Record model for com.atproto.lexicon.schema.

field lexicon: int [Required]

Indicates the β€˜version’ of the Lexicon language. Must be β€˜1’ for the current atproto/Lexicon schema system.

class atproto_client.models.com.atproto.lexicon.schema.GetRecordResponse

Bases: SugarResponseModelBase

Get record response for models.ComAtprotoLexiconSchema.Record.

field cid: str | None = None

The CID of the record.

field uri: str [Required]

The URI of the record.

field value: models.ComAtprotoLexiconSchema.Record [Required]

The record.

class atproto_client.models.com.atproto.lexicon.schema.ListRecordsResponse

Bases: SugarResponseModelBase

List records response for models.ComAtprotoLexiconSchema.Record.

field cursor: str | None = None

Next page cursor.

field records: Dict[str, models.ComAtprotoLexiconSchema.Record] [Required]

Map of URIs to records.

class atproto_client.models.com.atproto.lexicon.schema.CreateRecordResponse

Bases: SugarResponseModelBase

Create record response for models.ComAtprotoLexiconSchema.Record.

field cid: str [Required]

The CID of the record.

field uri: str [Required]

The URI of the record.