* ✨ Add reporter_stats materialized view and endpoint to fetch reporter stats * 🚨 Fix linter issues * ✨ Change reporter stats query from materialized view to on demand select * Add "createdAt" as part of the index --------- Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com> Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com>
41 lines
907 B
JSON
41 lines
907 B
JSON
{
|
|
"lexicon": 1,
|
|
"id": "tools.ozone.moderation.getReporterStats",
|
|
"defs": {
|
|
"main": {
|
|
"type": "query",
|
|
"description": "Get reporter stats for a list of users.",
|
|
"parameters": {
|
|
"type": "params",
|
|
"required": ["dids"],
|
|
"properties": {
|
|
"dids": {
|
|
"type": "array",
|
|
"maxLength": 100,
|
|
"items": {
|
|
"type": "string",
|
|
"format": "did"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["stats"],
|
|
"properties": {
|
|
"stats": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "tools.ozone.moderation.defs#reporterStats"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|