add @bsky.app/sdk + @atproto/lex, vendor lexicons, codegen via lex cli

This commit is contained in:
Samuel Newman
2026-07-15 16:06:20 +03:00
parent 17c1ee4869
commit 15e232749a
306 changed files with 22544 additions and 2 deletions
@@ -0,0 +1,51 @@
{
"lexicon": 1,
"id": "com.atproto.lexicon.resolveLexicon",
"defs": {
"main": {
"type": "query",
"description": "Resolves an atproto lexicon (NSID) to a schema.",
"parameters": {
"type": "params",
"properties": {
"nsid": {
"format": "nsid",
"type": "string",
"description": "The lexicon NSID to resolve."
}
},
"required": ["nsid"]
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"cid": {
"type": "string",
"format": "cid",
"description": "The CID of the lexicon schema record."
},
"schema": {
"type": "ref",
"ref": "com.atproto.lexicon.schema#main",
"description": "The resolved lexicon schema record."
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "The AT-URI of the lexicon schema record."
}
},
"required": ["uri", "cid", "schema"]
}
},
"errors": [
{
"description": "No lexicon was resolved for the NSID.",
"name": "LexiconNotFound"
}
]
}
}
}
+21
View File
@@ -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."
}
}
}
}
}
}