app.didpic.moderation.createReport
Schema Diff
+20 -1
Compatibility Analysis
Breaking Changes Detected
3 breaking changes, 6 non-breaking changes.
Breaking Changes (3)
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind", sort: "enum", value: "avatar,banner" }
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectTag", sort: "maxLength", value: "640" }
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectTag", sort: "maxGraphemes", value: "64" }
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaCid" }
- AddedVertex AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind" }
- AddedVertex AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectTag" }
- AddedEdge AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectProfileMediaCid", kind: "prop", name: Some("subjectProfileMediaCid") }
- AddedEdge AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectProfileMediaKind", kind: "prop", name: Some("subjectProfileMediaKind") }
- AddedEdge AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectTag", kind: "prop", name: Some("subjectTag") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaCid" }AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind" }AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectTag" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectTag", sort: "maxLength", value: "640" }
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectTag", sort: "maxGraphemes", value: "64" }
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind", sort: "enum", value: "avatar,banner" }
Additional Notes
- Non-breaking: AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectProfileMediaCid", kind: "prop", name: Some("subjectProfileMediaCid") }
- Non-breaking: AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectProfileMediaKind", kind: "prop", name: Some("subjectProfileMediaKind") }
- Non-breaking: AddedEdge { src: "app.didpic.moderation.createReport:input", tgt: "app.didpic.moderation.createReport:input.subjectTag", kind: "prop", name: Some("subjectTag") }
1
1
{
2
2
"id": "app.didpic.moderation.createReport",
3
3
"defs": {
4
4
"main": {
5
5
"type": "procedure",
6
6
"input": {
7
7
"schema": {
8
8
"type": "object",
9
9
"required": [
10
10
"reasonType"
11
11
],
12
12
"properties": {
13
13
"reason": {
14
14
"type": "string",
15
15
"maxLength": 2000
16
16
},
17
17
"reasonType": {
18
18
"enum": [
19
19
"spam",
20
20
"violation",
21
21
"illegal",
22
22
"harassment",
23
23
"sexual",
24
24
"other"
25
25
],
26
26
"type": "string"
27
27
},
28
28
"subjectCid": {
29
29
"type": "string",
30
30
"format": "cid"
31
31
},
32
32
"subjectDid": {
33
33
"type": "string",
34
34
"format": "did"
35
35
},
36
+
"subjectTag": {
37
+
"type": "string",
38
+
"maxLength": 640,
39
+
"description": "Hashtag name (without leading #).",
40
+
"maxGraphemes": 64
41
+
},
36
42
"subjectUri": {
37
43
"type": "string",
38
44
"format": "at-uri"
45
+
},
46
+
"subjectProfileMediaCid": {
47
+
"type": "string",
48
+
"format": "cid",
49
+
"description": "Blob CID of the reported avatar/banner."
50
+
},
51
+
"subjectProfileMediaKind": {
52
+
"enum": [
53
+
"avatar",
54
+
"banner"
55
+
],
56
+
"type": "string",
57
+
"description": "When the report is over a profile image, which one."
39
58
}
40
59
}
41
60
},
42
61
"encoding": "application/json"
43
62
},
44
63
"errors": [
45
64
{
46
65
"name": "InvalidRequest"
47
66
}
48
67
],
49
68
"output": {
50
69
"schema": {
51
70
"type": "object",
52
71
"required": [
53
72
"id",
54
73
"createdAt"
55
74
],
56
75
"properties": {
57
76
"id": {
58
77
"type": "integer"
59
78
},
60
79
"createdAt": {
61
80
"type": "string",
62
81
"format": "datetime"
63
82
}
64
83
}
65
84
},
66
85
"encoding": "application/json"
67
86
},
68
-
"description": "File a moderation report against an actor (subjectDid) or a record (subjectUri + optional subjectCid). Reports are kept in the AppView and are not written to the user's PDS. Exactly one of subjectDid or subjectUri must be supplied."
87
+
"description": "File a moderation report against an account, a record, or a hashtag."
69
88
}
70
89
},
71
90
"$type": "com.atproto.lexicon.schema",
72
91
"lexicon": 1
73
92
}