atproto/lexicons/tools/ozone/signature/findRelatedAccounts.json
Daniel Holmgren df14df522b
Ozone signature methods (#2855)
* lexicons

* fix typo & add proxy routes

* changeset
2024-10-03 14:00:12 -05:00

62 lines
1.4 KiB
JSON

{
"lexicon": 1,
"id": "tools.ozone.signature.findRelatedAccounts",
"defs": {
"main": {
"type": "query",
"description": "Get accounts that share some matching threat signatures with the root account.",
"parameters": {
"type": "params",
"required": ["did"],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"cursor": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["accounts"],
"properties": {
"cursor": { "type": "string" },
"accounts": {
"type": "array",
"items": {
"type": "ref",
"ref": "#relatedAccount"
}
}
}
}
}
},
"relatedAccount": {
"type": "object",
"required": ["account"],
"properties": {
"account": {
"type": "ref",
"ref": "com.atproto.admin.defs#accountView"
},
"similarities": {
"type": "array",
"items": {
"type": "ref",
"ref": "tools.ozone.signature.defs#sigDetail"
}
}
}
}
}
}