full diff

dev.knotless.getPreferences

From
bafyreicdphlrzrobyugvet365wcbfk3qb25nz22qqgkbl3m3n2kcvgante indexed 2026-11-02 17:49 UTC View this version
To
bafyreigxzvdnnxighpkwf6pmdba3arzhq656uc2xd6b75j4xxugq3rvxie indexed 2026-11-03 04:09 UTC View this version

Compatibility

breaking 1 breaking change, 0 non-breaking changes.

Breaking changes (1)
  • ConstraintTightened ConstraintTightened { vertex_id: "dev.knotless.getPreferences#notificationReason.reason", sort: "knownValues", old_value: "[\"star\",\"follow\",\"pull\",\"issue\",\"comment\",\"mention\",\"review-requested\",\"checks-failed\",\"ejected\",\"subscribed\",\"watching\"]", new_value: "[\"star\",\"follow\",\"pull\",\"issue\",\"comment\",\"mention\",\"review-requested\",\"assigned\",\"checks-failed\",\"ejected\",\"subscribed\",\"watching\"]" }

Migration guidance

Constraint changes

  • ConstraintTightened ConstraintTightened { vertex_id: "dev.knotless.getPreferences#notificationReason.reason", sort: "knownValues", old_value: "[\"star\",\"follow\",\"pull\",\"issue\",\"comment\",\"mention\",\"review-requested\",\"checks-failed\",\"ejected\",\"subscribed\",\"watching\"]", new_value: "[\"star\",\"follow\",\"pull\",\"issue\",\"comment\",\"mention\",\"review-requested\",\"assigned\",\"checks-failed\",\"ejected\",\"subscribed\",\"watching\"]" }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "addedTheme": {
55 "description": "A theme someone made, as the account added it.",
66 "properties": {
77 "addedAt": {
88 "description": "When the account added it, which orders its themes, the latest first, beside those it made.",
99 "format": "datetime",
1010 "type": "string"
1111 },
1212 "creator": {
1313 "description": "The account that made it.",
1414 "format": "did",
1515 "type": "string"
1616 },
1717 "name": {
1818 "description": "What the theme was called when it was added.",
1919 "maxGraphemes": 64,
2020 "maxLength": 640,
2121 "type": "string"
2222 },
2323 "palette": {
2424 "ref": "dev.knotless.theme#palette",
2525 "type": "ref"
2626 },
2727 "uri": {
2828 "description": "The dev.knotless.theme it was copied from.",
2929 "format": "at-uri",
3030 "type": "string"
3131 }
3232 },
3333 "required": [
3434 "uri",
3535 "palette"
3636 ],
3737 "type": "object"
3838 },
3939 "appearancePref": {
4040 "description": "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.",
4141 "properties": {
4242 "night": {
4343 "description": "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.",
4444 "ref": "#themeChoice",
4545 "type": "ref"
4646 },
4747 "palette": {
4848 "description": "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.",
4949 "ref": "dev.knotless.theme#palette",
5050 "type": "ref"
5151 },
5252 "source": {
5353 "description": "The dev.knotless.theme palette was copied from, if it was.",
5454 "format": "at-uri",
5555 "type": "string"
5656 },
5757 "theme": {
5858 "description": "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.",
5959 "knownValues": [
6060 "light",
6161 "dark",
6262 "latte",
6363 "mocha",
6464 "dracula",
6565 "pckt",
6666 "plyr",
6767 "blacksky",
6868 "custom"
6969 ],
7070 "maxLength": 64,
7171 "type": "string"
7272 }
7373 },
7474 "type": "object"
7575 },
7676 "main": {
7777 "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.",
7878 "errors": [
7979 {
8080 "description": "No account asks.",
8181 "name": "AuthenticationRequired"
8282 },
8383 {
8484 "description": "This appview keeps no index, so it keeps no preferences.",
8585 "name": "NotFound"
8686 }
8787 ],
8888 "output": {
8989 "encoding": "application/json",
9090 "schema": {
9191 "ref": "#preferences",
9292 "type": "ref"
9393 }
9494 },
9595 "type": "query"
9696 },
9797 "notificationPref": {
9898 "description": "Which notifications the account hears of. Until it says, every reason, from anyone.",
9999 "properties": {
100100 "followedOnly": {
101101 "description": "Whether it hears only of what accounts it follows on knotless did. Not, when absent.",
102102 "type": "boolean"
103103 },
104104 "reasons": {
105105 "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.",
106106 "items": {
107107 "ref": "#notificationReason",
108108 "type": "ref"
109109 },
110110 "maxLength": 64,
111111 "type": "array"
112112 }
113113 },
114114 "type": "object"
115115 },
116116 "notificationReason": {
117117 "description": "Whether an account hears of one reason's notifications.",
118118 "properties": {
119119 "enabled": {
120120 "description": "Whether it hears of them.",
121121 "type": "boolean"
122122 },
123123 "reason": {
124124 "description": "A reason, as dev.knotless.listNotifications#notification gives it.",
125125 "knownValues": [
126126 "star",
127127 "follow",
128128 "pull",
129129 "issue",
130130 "comment",
131131 "mention",
132132 "review-requested",
133 "assigned",
133134 "checks-failed",
134135 "ejected",
135136 "subscribed",
136137 "watching"
137138 ],
138139 "maxLength": 64,
139140 "type": "string"
140141 }
141142 },
142143 "required": [
143144 "reason",
144145 "enabled"
145146 ],
146147 "type": "object"
147148 },
148149 "preferences": {
149150 "description": "An account's preferences, each of a kind.",
150151 "properties": {
151152 "preferences": {
152153 "description": "At most one of each kind. Kinds unknown to a reader are passed over.",
153154 "items": {
154155 "refs": [
155156 "#appearancePref",
156157 "#notificationPref",
157158 "#themesPref"
158159 ],
159160 "type": "union"
160161 },
161162 "maxLength": 32,
162163 "type": "array"
163164 }
164165 },
165166 "required": [
166167 "preferences"
167168 ],
168169 "type": "object"
169170 },
170171 "themeChoice": {
171172 "description": "A theme the pages are drawn in, as appearancePref names its own.",
172173 "properties": {
173174 "palette": {
174175 "description": "The colours theme custom draws the pages in.",
175176 "ref": "dev.knotless.theme#palette",
176177 "type": "ref"
177178 },
178179 "source": {
179180 "description": "The dev.knotless.theme palette was copied from, if it was.",
180181 "format": "at-uri",
181182 "type": "string"
182183 },
183184 "theme": {
184185 "description": "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.",
185186 "knownValues": [
186187 "light",
187188 "dark",
188189 "latte",
189190 "mocha",
190191 "dracula",
191192 "pckt",
192193 "plyr",
193194 "blacksky",
194195 "custom"
195196 ],
196197 "maxLength": 64,
197198 "type": "string"
198199 }
199200 },
200201 "type": "object"
201202 },
202203 "themesPref": {
203204 "description": "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.",
204205 "properties": {
205206 "themes": {
206207 "description": "The themes added, the latest first.",
207208 "items": {
208209 "ref": "#addedTheme",
209210 "type": "ref"
210211 },
211212 "maxLength": 50,
212213 "type": "array"
213214 }
214215 },
215216 "required": [
216217 "themes"
217218 ],
218219 "type": "object"
219220 }
220221 },
221222 "description": "The asking account's preferences, of how knotless is shown to it.",
222223 "id": "dev.knotless.getPreferences",
223224 "lexicon": 1
224225}

Compare other versions