dced566de5
* add lex * add suggested as well * don't use uri format * codegen * tweak lex * wire in * add missing var * move * make auth optional * mount * add trending topics to server cfg (#3226) * add trending topics to server cfg * rename stuff * remove langs * make viewer nullable * recodegen * changeset again --------- Co-authored-by: dholms <dtholmgren@gmail.com>
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "app.bsky.unspecced.getTrendingTopics",
|
|
"defs": {
|
|
"main": {
|
|
"type": "query",
|
|
"description": "Get a list of trending topics",
|
|
"parameters": {
|
|
"type": "params",
|
|
"properties": {
|
|
"viewer": {
|
|
"type": "string",
|
|
"format": "did",
|
|
"description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking."
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 25,
|
|
"default": 10
|
|
}
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["topics", "suggested"],
|
|
"properties": {
|
|
"topics": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.unspecced.defs#trendingTopic"
|
|
}
|
|
},
|
|
"suggested": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.unspecced.defs#trendingTopic"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|