app.didpic.moderation.createReport
Schema Diff
+13 -0
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 4 non-breaking changes.
Breaking Changes (1)
- ConstraintAdded ConstraintAdded { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind", sort: "enum", value: "avatar,banner" }
Non-Breaking Changes (4)
- AddedVertex AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaCid" }
- AddedVertex AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind" }
- 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") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaCid" }AddedVertex { vertex_id: "app.didpic.moderation.createReport:input.subjectProfileMediaKind" }
Constraint Changes
- 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") }
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
36
"subjectTag": {
37
37
"type": "string",
38
38
"maxLength": 640,
39
39
"description": "Hashtag name (without leading #).",
40
40
"maxGraphemes": 64
41
41
},
42
42
"subjectUri": {
43
43
"type": "string",
44
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."
45
58
}
46
59
}
47
60
},
48
61
"encoding": "application/json"
49
62
},
50
63
"errors": [
51
64
{
52
65
"name": "InvalidRequest"
53
66
}
54
67
],
55
68
"output": {
56
69
"schema": {
57
70
"type": "object",
58
71
"required": [
59
72
"id",
60
73
"createdAt"
61
74
],
62
75
"properties": {
63
76
"id": {
64
77
"type": "integer"
65
78
},
66
79
"createdAt": {
67
80
"type": "string",
68
81
"format": "datetime"
69
82
}
70
83
}
71
84
},
72
85
"encoding": "application/json"
73
86
},
74
87
"description": "File a moderation report against an account, a record, or a hashtag."
75
88
}
76
89
},
77
90
"$type": "com.atproto.lexicon.schema",
78
91
"lexicon": 1
79
92
}