-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lexicons fetched from ee9779d committed 2025-01-20T14:36:02Z
- Loading branch information
Showing
26 changed files
with
634 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docs/source/atproto/atproto_client.models.com.atproto.lexicon.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
com.atproto.lexicon | ||
========================================== | ||
|
||
.. automodule:: atproto_client.models.com.atproto.lexicon | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
atproto_client.models.com.atproto.lexicon.schema |
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.com.atproto.lexicon.schema.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
com.atproto.lexicon.schema | ||
================================================= | ||
|
||
.. automodule:: atproto_client.models.com.atproto.lexicon.schema | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.lexicon.schema", | ||
"defs": { | ||
"main": { | ||
"type": "record", | ||
"description": "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).", | ||
"key": "nsid", | ||
"record": { | ||
"type": "object", | ||
"required": ["lexicon"], | ||
"properties": { | ||
"lexicon": { | ||
"type": "integer", | ||
"description": "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/atproto_client/models/com/atproto/lexicon/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
46 changes: 46 additions & 0 deletions
46
packages/atproto_client/models/com/atproto/lexicon/schema.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from pydantic import Field | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Record(base.RecordModelBase): | ||
"""Record model for :obj:`com.atproto.lexicon.schema`.""" | ||
|
||
lexicon: int #: Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. | ||
|
||
py_type: t.Literal['com.atproto.lexicon.schema'] = Field( | ||
default='com.atproto.lexicon.schema', alias='$type', frozen=True | ||
) | ||
|
||
|
||
class GetRecordResponse(base.SugarResponseModelBase): | ||
"""Get record response for :obj:`models.ComAtprotoLexiconSchema.Record`.""" | ||
|
||
uri: str #: The URI of the record. | ||
value: 'models.ComAtprotoLexiconSchema.Record' #: The record. | ||
cid: t.Optional[str] = None #: The CID of the record. | ||
|
||
|
||
class ListRecordsResponse(base.SugarResponseModelBase): | ||
"""List records response for :obj:`models.ComAtprotoLexiconSchema.Record`.""" | ||
|
||
records: t.Dict[str, 'models.ComAtprotoLexiconSchema.Record'] #: Map of URIs to records. | ||
cursor: t.Optional[str] = None #: Next page cursor. | ||
|
||
|
||
class CreateRecordResponse(base.SugarResponseModelBase): | ||
"""Create record response for :obj:`models.ComAtprotoLexiconSchema.Record`.""" | ||
|
||
uri: str #: The URI of the record. | ||
cid: str #: The CID of the record. |
Oops, something went wrong.