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
Kindquery
Authorityknotless.dev
Indexed

Query

query · GET

Output

application/json
Reference

Errors

AuthenticationRequired

No account asks.

NotFound

This appview keeps no index, so it keeps no preferences.

#addedTheme

object

A theme someone made, as the account added it.

Properties

addedAt

string · datetime

When the account added it, which orders its themes, the latest first, beside those it made.

creator

string · did

The account that made it.

name

string

What the theme was called when it was added.

  • maxLength: 640
  • maxGraphemes: 64

palette

requiredref

uri

requiredstring · at-uri

The dev.knotless.theme it was copied from.

#appearancePref

object

How 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

The 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.

Reference

The 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-uri

The dev.knotless.theme palette was copied from, if it was.

theme

string

The 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: 64
  • knownValues: light | dark | latte | mocha | dracula | pckt | plyr | blacksky | custom

#notificationPref

object

Which notifications the account hears of. Until it says, every reason, from anyone.

Properties

Whether it hears only of what accounts it follows on knotless did. Not, when absent.

reasons

array

Reasons 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
itemsref

#notificationReason

object

Whether an account hears of one reason's notifications.

Properties

enabled

requiredboolean

Whether it hears of them.

reason

requiredstring

A reason, as dev.knotless.listNotifications#notification gives it.

  • maxLength: 64
  • knownValues: star | follow | pull | issue | comment | mention | review-requested | assigned | checks-failed | ejected | subscribed | watching

#preferences

object

An account's preferences, each of a kind.

Properties

preferences

requiredarray

At most one of each kind. Kinds unknown to a reader are passed over.

  • maxLength: 32

#themeChoice

object

A theme the pages are drawn in, as appearancePref names its own.

Properties

The colours theme custom draws the pages in.

source

string · at-uri

The dev.knotless.theme palette was copied from, if it was.

theme

string

The 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: 64
  • knownValues: light | dark | latte | mocha | dracula | pckt | plyr | blacksky | custom

#themesPref

object

The 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

themes

requiredarray

The themes added, the latest first.

  • maxLength: 50
itemsref
Reference

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.