Capability: https://analytic.systems/jmap/settings
An extension to JMAP (RFC 8620 section 1.8) of the Blåmail mail service. It gives a
client the settings of an account — its language, time zone, how its pages look, how
remote pictures are treated, and the rest of what the account's owner can set — to read
and to change. A client that has not named the capability in the using
property of a request sees nothing of it: no such type, no such methods.
The session's capabilities object has the capability with an empty object
as its value. Each account that has settings has the capability in its
accountCapabilities, with one member:
settings: String[SettingKind]SettingKind has a
type — "boolean"; "integer", with min
and max; "enum", with its values;
"text", with its maxLength; or "map", with what its
values can be and maxEntries — and its default: the value the
setting has while nobody has set it.An account has exactly one, whose id is "singleton". Its other
properties are the settings there are, each with the value it has now — the default, if it
was never set.
The standard /get method (RFC 8620 section 5.1). The only id there is is
"singleton"; any other is in notFound.
The standard /set method (RFC 8620 section 5.3), with ifInState.
Only update of "singleton" does anything: the object can be neither
created nor destroyed (singleton). A property set to null becomes
what it is by default again; the response's updated then says what that is. A
value a setting cannot have, or a property that is no setting, is refused with
invalidProperties, naming the properties.
The state of the type changes whenever a setting changes, in whichever session and by
whichever means. A client that listens for state changes (RFC 8620 section 7) is told of
AccountSettings as of every other type.