dev.knotless.getPreferences
Schema Diff
+2 -1
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 0 non-breaking changes.
Breaking Changes (1)
- ConstraintTightened ConstraintTightened { vertex_id: "dev.knotless.getPreferences#appearancePref.theme", sort: "knownValues", old_value: "[\"light\",\"dark\",\"latte\",\"mocha\",\"dracula\",\"pckt\",\"plyr\"]", new_value: "[\"light\",\"dark\",\"latte\",\"mocha\",\"dracula\",\"pckt\",\"plyr\",\"blacksky\"]" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "dev.knotless.getPreferences#appearancePref.theme", sort: "knownValues", old_value: "[\"light\",\"dark\",\"latte\",\"mocha\",\"dracula\",\"pckt\",\"plyr\"]", new_value: "[\"light\",\"dark\",\"latte\",\"mocha\",\"dracula\",\"pckt\",\"plyr\",\"blacksky\"]" }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"appearancePref": {
5
5
"description": "How the pages are drawn for the account.",
6
6
"properties": {
7
7
"theme": {
8
8
"description": "The colours the pages are drawn in, as their Appearance settings name them. Absent, or one the pages do not know, they follow the system's light or dark.",
9
9
"knownValues": [
10
10
"light",
11
11
"dark",
12
12
"latte",
13
13
"mocha",
14
14
"dracula",
15
15
"pckt",
16
-
"plyr"
16
+
"plyr",
17
+
"blacksky"
17
18
],
18
19
"maxLength": 64,
19
20
"type": "string"
20
21
}
21
22
},
22
23
"type": "object"
23
24
},
24
25
"main": {
25
26
"description": "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.",
26
27
"errors": [
27
28
{
28
29
"description": "No account asks.",
29
30
"name": "AuthenticationRequired"
30
31
},
31
32
{
32
33
"description": "This appview keeps no index, so it keeps no preferences.",
33
34
"name": "NotFound"
34
35
}
35
36
],
36
37
"output": {
37
38
"encoding": "application/json",
38
39
"schema": {
39
40
"ref": "#preferences",
40
41
"type": "ref"
41
42
}
42
43
},
43
44
"type": "query"
44
45
},
45
46
"notificationPref": {
46
47
"description": "Which notifications the account hears of. Until it says, every reason, from anyone.",
47
48
"properties": {
48
49
"followedOnly": {
49
50
"description": "Whether it hears only of what accounts it follows on knotless did. Not, when absent.",
50
51
"type": "boolean"
51
52
},
52
53
"reasons": {
53
54
"description": "Reasons a notification is given for, each on or off. Given back, every one dev.knotless.listNotifications gives; set, one not named is on.",
54
55
"items": {
55
56
"ref": "#notificationReason",
56
57
"type": "ref"
57
58
},
58
59
"maxLength": 64,
59
60
"type": "array"
60
61
}
61
62
},
62
63
"type": "object"
63
64
},
64
65
"notificationReason": {
65
66
"description": "Whether an account hears of one reason's notifications.",
66
67
"properties": {
67
68
"enabled": {
68
69
"description": "Whether it hears of them.",
69
70
"type": "boolean"
70
71
},
71
72
"reason": {
72
73
"description": "A reason, as dev.knotless.listNotifications#notification gives it.",
73
74
"knownValues": [
74
75
"star",
75
76
"follow",
76
77
"pull",
77
78
"issue",
78
79
"comment"
79
80
],
80
81
"maxLength": 64,
81
82
"type": "string"
82
83
}
83
84
},
84
85
"required": [
85
86
"reason",
86
87
"enabled"
87
88
],
88
89
"type": "object"
89
90
},
90
91
"preferences": {
91
92
"description": "An account's preferences, each of a kind.",
92
93
"properties": {
93
94
"preferences": {
94
95
"description": "At most one of each kind. Kinds unknown to a reader are passed over.",
95
96
"items": {
96
97
"refs": [
97
98
"#appearancePref",
98
99
"#notificationPref"
99
100
],
100
101
"type": "union"
101
102
},
102
103
"maxLength": 32,
103
104
"type": "array"
104
105
}
105
106
},
106
107
"required": [
107
108
"preferences"
108
109
],
109
110
"type": "object"
110
111
}
111
112
},
112
113
"description": "The asking account's preferences, of how knotless is shown to it.",
113
114
"id": "dev.knotless.getPreferences",
114
115
"lexicon": 1
115
116
}