{
"id": "app.bivri.actor.getPreferences",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "Unauthenticated",
"description": "Nobody is authenticated, so there are no preferences to read."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"notifications"
],
"properties": {
"notifications": {
"ref": "app.bivri.actor.defs#notificationPreferences",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Read the authenticated account's own preferences. Scoped to the caller and to nobody else: there is no parameter naming whose preferences to read, because one account's preferences are never another account's business. An account that has never set a preference reads the defaults rather than an absence, so a client has nothing to guess."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}