org.passingreads.book.rejectGift
Schema Diff
+1 -1
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
-
"description": "Turn down a gift offered to the authenticated user, so it stops appearing in their account state. Deliberately appview-side only: nothing is written to the recipient's repository and the giver is never told, because a gift is an unsolicited message and being able to refuse one must not expose the refusal. The book stays gifted and pending until a later signed event moves it — refusing hides the offer, it does not hand the book back.",
5
+
"description": "Turn down a gift offered to the authenticated user, so it stops appearing in their account state. Deliberately appview-side only: nothing is written to the recipient's repository and the giver is never told, because a gift is an unsolicited message and being able to refuse one must not expose the refusal. The book never left the giver's hands, so refusing only hides the offer — there is nothing to hand back.",
6
6
"errors": [
7
7
{
8
8
"description": "No indexed gift at that URI names the authenticated user as its recipient. Also the answer when a gift exists but was offered to somebody else, so the endpoint can't be used to probe for gifts.",
9
9
"name": "GiftNotFound"
10
10
},
11
11
{
12
12
"description": "The authenticated DID has no PassingReads profile indexed by the appview.",
13
13
"name": "ProfileNotFound"
14
14
}
15
15
],
16
16
"input": {
17
17
"encoding": "application/json",
18
18
"schema": {
19
19
"properties": {
20
20
"gift": {
21
21
"description": "The org.passingreads.book.event carrying the #gift being turned down. It must name the authenticated user as its recipient.",
22
22
"format": "at-uri",
23
23
"type": "string"
24
24
}
25
25
},
26
26
"required": [
27
27
"gift"
28
28
],
29
29
"type": "object"
30
30
}
31
31
},
32
32
"output": {
33
33
"encoding": "application/json",
34
34
"schema": {
35
35
"properties": {
36
36
"rejectedAt": {
37
37
"format": "datetime",
38
38
"type": "string"
39
39
}
40
40
},
41
41
"required": [
42
42
"rejectedAt"
43
43
],
44
44
"type": "object"
45
45
}
46
46
},
47
47
"type": "procedure"
48
48
}
49
49
},
50
50
"id": "org.passingreads.book.rejectGift",
51
51
"lexicon": 1
52
52
}