add lexicon codegen: vendored lexicons, lex cli and generation scripts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-03 12:06:59 +03:00
parent a2129885c6
commit a3243820c9
311 changed files with 23342 additions and 14 deletions
@@ -0,0 +1,54 @@
{
"id": "com.atproto.sync.getHostStatus",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "HostNotFound"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"hostname"
],
"properties": {
"seq": {
"type": "integer",
"description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)."
},
"status": {
"ref": "com.atproto.sync.defs#hostStatus",
"type": "ref"
},
"hostname": {
"type": "string"
},
"accountCount": {
"type": "integer",
"description": "Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"hostname"
],
"properties": {
"hostname": {
"type": "string",
"description": "Hostname of the host (eg, PDS or relay) being queried."
}
}
},
"description": "Returns information about a specified upstream host, as consumed by the server. Implemented by relays."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}