pub.chive.admin.listWarnings
Schema Diff
+2 -6
Compatibility Analysis
Breaking Changes Detected
2 breaking changes, 0 non-breaking changes.
Breaking Changes (2)
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "pub.chive.admin.listWarnings:output", src: "pub.chive.admin.listWarnings:output", tgt: "pub.chive.admin.listWarnings:output.total", kind: "prop", name: Some("total") }
- RemovedVertex RemovedVertex { vertex_id: "pub.chive.admin.listWarnings:output.total" }
Migration Guidance
Removed Elements
RemovedVertex { vertex_id: "pub.chive.admin.listWarnings:output.total" }
Additional Notes
- Breaking: RequiredEdgeRemoved { vertex_id: "pub.chive.admin.listWarnings:output", src: "pub.chive.admin.listWarnings:output", tgt: "pub.chive.admin.listWarnings:output.total", kind: "prop", name: Some("total") }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "List user warnings",
6
6
"errors": [
7
7
{
8
8
"name": "AuthenticationRequired"
9
9
},
10
10
{
11
11
"name": "AdminRequired"
12
12
}
13
13
],
14
14
"output": {
15
15
"encoding": "application/json",
16
16
"schema": {
17
+
"description": "Governance warnings. There is no `total`: the service returns only the rows, output validation requires every declared required field, and a `total` that nothing produces made this endpoint fail with a 500 rather than describe it. Nothing consumes a total either — the admin page renders the rows.",
17
18
"properties": {
18
-
"total": {
19
-
"description": "Total warnings",
20
-
"type": "integer"
21
-
},
22
19
"warnings": {
23
20
"description": "Warning records",
24
21
"items": {
25
22
"ref": "#warning",
26
23
"type": "ref"
27
24
},
28
25
"type": "array"
29
26
}
30
27
},
31
28
"required": [
32
-
"warnings",
33
-
"total"
29
+
"warnings"
34
30
],
35
31
"type": "object"
36
32
}
37
33
},
38
34
"parameters": {
39
35
"properties": {
40
36
"did": {
41
37
"description": "Filter by user DID",
42
38
"format": "did",
43
39
"type": "string"
44
40
},
45
41
"limit": {
46
42
"default": 50,
47
43
"description": "Maximum number of warnings",
48
44
"maximum": 100,
49
45
"minimum": 1,
50
46
"type": "integer"
51
47
}
52
48
},
53
49
"type": "params"
54
50
},
55
51
"type": "query"
56
52
},
57
53
"warning": {
58
54
"description": "User warning record",
59
55
"properties": {
60
56
"createdAt": {
61
57
"description": "When the warning was issued",
62
58
"format": "datetime",
63
59
"type": "string"
64
60
},
65
61
"did": {
66
62
"description": "Warned user DID",
67
63
"format": "did",
68
64
"type": "string"
69
65
},
70
66
"expiresAt": {
71
67
"description": "Warning expiry timestamp",
72
68
"format": "datetime",
73
69
"type": "string"
74
70
},
75
71
"handle": {
76
72
"description": "Warned user handle",
77
73
"type": "string"
78
74
},
79
75
"id": {
80
76
"description": "Warning ID",
81
77
"type": "string"
82
78
},
83
79
"issuedBy": {
84
80
"description": "Admin DID who issued the warning",
85
81
"format": "did",
86
82
"type": "string"
87
83
},
88
84
"reason": {
89
85
"description": "Reason for the warning",
90
86
"type": "string"
91
87
}
92
88
},
93
89
"required": [
94
90
"id",
95
91
"did",
96
92
"reason",
97
93
"issuedBy",
98
94
"createdAt"
99
95
],
100
96
"type": "object"
101
97
}
102
98
},
103
99
"id": "pub.chive.admin.listWarnings",
104
100
"lexicon": 1,
105
101
"revision": 1
106
102
}