-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
createReport.json
71 lines (71 loc) 路 2.08 KB
/
createReport.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"lexicon": 1,
"id": "com.atproto.moderation.createReport",
"defs": {
"main": {
"type": "procedure",
"description": "Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["reasonType", "subject"],
"properties": {
"reasonType": {
"type": "ref",
"description": "Indicates the broad category of violation the report is for.",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": {
"type": "string",
"maxGraphemes": 2000,
"maxLength": 20000,
"description": "Additional context about the content and violation."
},
"subject": {
"type": "union",
"refs": [
"com.atproto.admin.defs#repoRef",
"com.atproto.repo.strongRef"
]
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"id",
"reasonType",
"subject",
"reportedBy",
"createdAt"
],
"properties": {
"id": { "type": "integer" },
"reasonType": {
"type": "ref",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": {
"type": "string",
"maxGraphemes": 2000,
"maxLength": 20000
},
"subject": {
"type": "union",
"refs": [
"com.atproto.admin.defs#repoRef",
"com.atproto.repo.strongRef"
]
},
"reportedBy": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}
}
}
}