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