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,64 @@
{
"id": "com.atproto.label.queryLabels",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"labels"
],
"properties": {
"cursor": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"ref": "com.atproto.label.defs#label",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"uriPatterns"
],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 250,
"minimum": 1
},
"cursor": {
"type": "string"
},
"sources": {
"type": "array",
"items": {
"type": "string",
"format": "did"
},
"description": "Optional list of label sources (DIDs) to filter on."
},
"uriPatterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI."
}
}
},
"description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}