app.bivri.actor.putPreferences
Schema Diff
+15 -1
Compatibility Analysis
Backward Compatible
Backward compatible. 7 non-breaking changes.
Non-Breaking Changes (7)
- AddedVertex AddedVertex { vertex_id: "app.bivri.actor.defs#interestPreferences" }
- AddedVertex AddedVertex { vertex_id: "app.bivri.actor.putPreferences:input.interests" }
- AddedVertex AddedVertex { vertex_id: "app.bivri.actor.putPreferences:output.interests" }
- AddedEdge AddedEdge { src: "app.bivri.actor.putPreferences:input", tgt: "app.bivri.actor.putPreferences:input.interests", kind: "prop", name: Some("interests") }
- AddedEdge AddedEdge { src: "app.bivri.actor.putPreferences:input.interests", tgt: "app.bivri.actor.defs#interestPreferences", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "app.bivri.actor.putPreferences:output", tgt: "app.bivri.actor.putPreferences:output.interests", kind: "prop", name: Some("interests") }
- AddedEdge AddedEdge { src: "app.bivri.actor.putPreferences:output.interests", tgt: "app.bivri.actor.defs#interestPreferences", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.bivri.actor.defs#interestPreferences" }AddedVertex { vertex_id: "app.bivri.actor.putPreferences:input.interests" }AddedVertex { vertex_id: "app.bivri.actor.putPreferences:output.interests" }
Additional Notes
- Non-breaking: AddedEdge { src: "app.bivri.actor.putPreferences:input", tgt: "app.bivri.actor.putPreferences:input.interests", kind: "prop", name: Some("interests") }
- Non-breaking: AddedEdge { src: "app.bivri.actor.putPreferences:input.interests", tgt: "app.bivri.actor.defs#interestPreferences", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "app.bivri.actor.putPreferences:output", tgt: "app.bivri.actor.putPreferences:output.interests", kind: "prop", name: Some("interests") }
- Non-breaking: AddedEdge { src: "app.bivri.actor.putPreferences:output.interests", tgt: "app.bivri.actor.defs#interestPreferences", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Replace the authenticated account's own preferences. Every group sent is replaced whole and every group omitted is left as it was, so a client that knows about one group cannot silently reset another it has never heard of. Sending the same preferences twice is the same as sending them once. Preferences are the account's alone: nothing here names another account, and nothing here is served to one.",
6
6
"errors": [
7
7
{
8
8
"description": "Nobody is authenticated, so there are no preferences to replace.",
9
9
"name": "Unauthenticated"
10
10
},
11
11
{
12
-
"description": "The request body is not an object, names a preference group that is not an object, names a reason this service does not have, or omits one it does. Nothing was stored.",
12
+
"description": "The request body is not an object, a notification group is invalid, or interests is not a bounded array of Tag strings. Nothing was stored.",
13
13
"name": "InvalidInput"
14
+
},
15
+
{
16
+
"description": "At least one interest is not a Tag present in the indexed Artwork catalog. Nothing was stored.",
17
+
"name": "UnavailableTag"
14
18
}
15
19
],
16
20
"input": {
17
21
"encoding": "application/json",
18
22
"schema": {
19
23
"properties": {
24
+
"interests": {
25
+
"description": "Replace the caller's complete interest Tag set. Omit this group to leave it unchanged; send an empty array to clear it.",
26
+
"ref": "app.bivri.actor.defs#interestPreferences",
27
+
"type": "ref"
28
+
},
20
29
"notifications": {
21
30
"ref": "app.bivri.actor.defs#notificationPreferences",
22
31
"type": "ref"
23
32
}
24
33
},
25
34
"type": "object"
26
35
}
27
36
},
28
37
"output": {
29
38
"encoding": "application/json",
30
39
"schema": {
31
40
"properties": {
41
+
"interests": {
42
+
"description": "The caller's complete stored interest Tag set.",
43
+
"ref": "app.bivri.actor.defs#interestPreferences",
44
+
"type": "ref"
45
+
},
32
46
"notifications": {
33
47
"ref": "app.bivri.actor.defs#notificationPreferences",
34
48
"type": "ref"
35
49
}
36
50
},
37
51
"required": [
38
52
"notifications"
39
53
],
40
54
"type": "object"
41
55
}
42
56
},
43
57
"type": "procedure"
44
58
}
45
59
},
46
60
"id": "app.bivri.actor.putPreferences",
47
61
"lexicon": 1
48
62
}