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