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
+43
View File
@@ -0,0 +1,43 @@
{
"id": "chat.bsky.notification.defs",
"defs": {
"preferences": {
"type": "object",
"required": [
"chat",
"chatRequest"
],
"properties": {
"chat": {
"ref": "#chatPreference",
"type": "ref"
},
"chatRequest": {
"ref": "#chatPreference",
"type": "ref"
}
}
},
"chatPreference": {
"type": "object",
"required": [
"include",
"push"
],
"properties": {
"push": {
"type": "boolean"
},
"include": {
"type": "string",
"knownValues": [
"all",
"follows"
]
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
@@ -0,0 +1,26 @@
{
"id": "chat.bsky.notification.getPreferences",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"preferences"
],
"properties": {
"preferences": {
"ref": "chat.bsky.notification.defs#preferences",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
@@ -0,0 +1,42 @@
{
"id": "chat.bsky.notification.putPreferences",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"properties": {
"chat": {
"ref": "chat.bsky.notification.defs#chatPreference",
"type": "ref"
},
"chatRequest": {
"ref": "chat.bsky.notification.defs#chatPreference",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"required": [
"preferences"
],
"properties": {
"preferences": {
"ref": "chat.bsky.notification.defs#preferences",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}