add @bsky.app/sdk + @atproto/lex, vendor lexicons, codegen via lex cli
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user