dev.knotless.getPreferences
The asking account's preferences, as the appview keeps them, apart from any record: one of each kind, of those it has set, and always its notifications, which dev.knotless.listNotifications and getUnreadCount follow. A kind it has not set a reader takes as its default. The pages' login copies what they act on into the browser. Requires authentication: a service token, or the session cookie the pages' login sets.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Showing version bafyreicdphlrzrobyugvet365wcbfk3qb25nz22qqgkbl3m3n2kcvgante. Show the latest
Query
query · GETOutput
application/jsonschema
refErrors
AuthenticationRequired
No account asks.
NotFound
This appview keeps no index, so it keeps no preferences.
#addedTheme
objectA theme someone made, as the account added it.
Properties
addedAt
string · datetimeWhen the account added it, which orders its themes, the latest first, beside those it made.
creator
string · didThe account that made it.
name
stringWhat the theme was called when it was added.
maxLength: 640maxGraphemes: 64
The dev.knotless.theme it was copied from.
#appearancePref
objectHow the pages are drawn for the account: in one theme, or with night, in this one by day and night's at night, as the system's light or dark says.
Properties
night
refThe theme the pages are drawn in at night, while the system is dark; this preference's own theme by day. Absent, the pages are drawn in one theme.
palette
refThe colours of a theme of the account's own, which theme custom draws the pages in: a copy of a dev.knotless.theme's, or made only for itself.
source
string · at-uriThe dev.knotless.theme palette was copied from, if it was.
theme
stringThe colours the pages are drawn in, as their Appearance settings name them: custom for those of palette. Absent, or one the pages do not know, they follow the system's light or dark.
maxLength: 64knownValues: light | dark | latte | mocha | dracula | pckt | plyr | blacksky | custom
#notificationPref
objectWhich notifications the account hears of. Until it says, every reason, from anyone.
Properties
followedOnly
booleanWhether it hears only of what accounts it follows on knotless did. Not, when absent.
reasons
arrayReasons a notification is given for, each on or off. Given back, every one dev.knotless.listNotifications gives; set, one not named is on.
maxLength: 64
#notificationReason
objectWhether an account hears of one reason's notifications.
#preferences
objectAn account's preferences, each of a kind.
Properties
At most one of each kind. Kinds unknown to a reader are passed over.
maxLength: 32
#themeChoice
objectA theme the pages are drawn in, as appearancePref names its own.
Properties
palette
refThe colours theme custom draws the pages in.
source
string · at-uriThe dev.knotless.theme palette was copied from, if it was.
theme
stringThe colours the pages are drawn in, as their Appearance settings name them: custom for those of palette. Absent, or one the pages do not know, they follow the system's light or dark.
maxLength: 64knownValues: light | dark | latte | mocha | dracula | pckt | plyr | blacksky | custom
#themesPref
objectThe themes people made that the account added to its own, to choose from on Appearance: each a copy, so a theme changed or deleted later leaves the account's as it was. Set whole, as each kind is.
Properties
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.putPreferences
procedureChanges the asking account's preferences.
-
Get notification-related preferences for an account. Requires auth.
-
Get notification-related preferences for an account. Requires auth.
-
Get notification preferences for the authenticated account.
-
Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth.