com.atproto.label.defs
Schema Diff
+2 -5
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 0 non-breaking changes.
Breaking Changes (1)
- ConstraintTightened ConstraintTightened { vertex_id: "com.atproto.label.defs#labelValue", sort: "knownValues", old_value: "[\"!hide\",\"!no-promote\",\"!warn\",\"!no-unauthenticated\",\"dmca-violation\",\"doxxing\",\"porn\",\"sexual\",\"nudity\",\"nsfl\",\"gore\"]", new_value: "[\"!hide\",\"!warn\",\"!no-unauthenticated\",\"porn\",\"sexual\",\"nudity\",\"graphic-media\",\"bot\"]" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "com.atproto.label.defs#labelValue", sort: "knownValues", old_value: "[\"!hide\",\"!no-promote\",\"!warn\",\"!no-unauthenticated\",\"dmca-violation\",\"doxxing\",\"porn\",\"sexual\",\"nudity\",\"nsfl\",\"gore\"]", new_value: "[\"!hide\",\"!warn\",\"!no-unauthenticated\",\"porn\",\"sexual\",\"nudity\",\"graphic-media\",\"bot\"]" }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"label": {
5
5
"description": "Metadata tag on an atproto resource (eg, repo or record).",
6
6
"properties": {
7
7
"cid": {
8
8
"description": "Optionally, CID specifying the specific version of 'uri' resource this label applies to.",
9
9
"format": "cid",
10
10
"type": "string"
11
11
},
12
12
"cts": {
13
13
"description": "Timestamp when this label was created.",
14
14
"format": "datetime",
15
15
"type": "string"
16
16
},
17
17
"exp": {
18
18
"description": "Timestamp at which this label expires (no longer applies).",
19
19
"format": "datetime",
20
20
"type": "string"
21
21
},
22
22
"neg": {
23
23
"description": "If true, this is a negation label, overwriting a previous label.",
24
24
"type": "boolean"
25
25
},
26
26
"sig": {
27
27
"description": "Signature of dag-cbor encoded label.",
28
28
"type": "bytes"
29
29
},
30
30
"src": {
31
31
"description": "DID of the actor who created this label.",
32
32
"format": "did",
33
33
"type": "string"
34
34
},
35
35
"uri": {
36
36
"description": "AT URI of the record, repository (account), or other resource that this label applies to.",
37
37
"format": "uri",
38
38
"type": "string"
39
39
},
40
40
"val": {
41
41
"description": "The short string name of the value or type of this label.",
42
42
"maxLength": 128,
43
43
"type": "string"
44
44
},
45
45
"ver": {
46
46
"description": "The AT Protocol version of the label object.",
47
47
"type": "integer"
48
48
}
49
49
},
50
50
"required": [
51
51
"src",
52
52
"uri",
53
53
"val",
54
54
"cts"
55
55
],
56
56
"type": "object"
57
57
},
58
58
"labelValue": {
59
59
"knownValues": [
60
60
"!hide",
61
-
"!no-promote",
62
61
"!warn",
63
62
"!no-unauthenticated",
64
-
"dmca-violation",
65
-
"doxxing",
66
63
"porn",
67
64
"sexual",
68
65
"nudity",
69
-
"nsfl",
70
-
"gore"
66
+
"graphic-media",
67
+
"bot"
71
68
],
72
69
"type": "string"
73
70
},
74
71
"labelValueDefinition": {
75
72
"description": "Declares a label value and its expected interpretations and behaviors.",
76
73
"properties": {
77
74
"adultOnly": {
78
75
"description": "Does the user need to have adult content enabled in order to configure this label?",
79
76
"type": "boolean"
80
77
},
81
78
"blurs": {
82
79
"description": "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",
83
80
"knownValues": [
84
81
"content",
85
82
"media",
86
83
"none"
87
84
],
88
85
"type": "string"
89
86
},
90
87
"defaultSetting": {
91
88
"default": "warn",
92
89
"description": "The default setting for this label.",
93
90
"knownValues": [
94
91
"ignore",
95
92
"warn",
96
93
"hide"
97
94
],
98
95
"type": "string"
99
96
},
100
97
"identifier": {
101
98
"description": "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",
102
99
"maxGraphemes": 100,
103
100
"maxLength": 100,
104
101
"type": "string"
105
102
},
106
103
"locales": {
107
104
"items": {
108
105
"ref": "#labelValueDefinitionStrings",
109
106
"type": "ref"
110
107
},
111
108
"type": "array"
112
109
},
113
110
"severity": {
114
111
"description": "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",
115
112
"knownValues": [
116
113
"inform",
117
114
"alert",
118
115
"none"
119
116
],
120
117
"type": "string"
121
118
}
122
119
},
123
120
"required": [
124
121
"identifier",
125
122
"severity",
126
123
"blurs",
127
124
"locales"
128
125
],
129
126
"type": "object"
130
127
},
131
128
"labelValueDefinitionStrings": {
132
129
"description": "Strings which describe the label in the UI, localized into a specific language.",
133
130
"properties": {
134
131
"description": {
135
132
"description": "A longer description of what the label means and why it might be applied.",
136
133
"maxGraphemes": 10000,
137
134
"maxLength": 100000,
138
135
"type": "string"
139
136
},
140
137
"lang": {
141
138
"description": "The code of the language these strings are written in.",
142
139
"format": "language",
143
140
"type": "string"
144
141
},
145
142
"name": {
146
143
"description": "A short human-readable name for the label.",
147
144
"maxGraphemes": 64,
148
145
"maxLength": 640,
149
146
"type": "string"
150
147
}
151
148
},
152
149
"required": [
153
150
"lang",
154
151
"name",
155
152
"description"
156
153
],
157
154
"type": "object"
158
155
},
159
156
"selfLabel": {
160
157
"description": "Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.",
161
158
"properties": {
162
159
"val": {
163
160
"description": "The short string name of the value or type of this label.",
164
161
"maxLength": 128,
165
162
"type": "string"
166
163
}
167
164
},
168
165
"required": [
169
166
"val"
170
167
],
171
168
"type": "object"
172
169
},
173
170
"selfLabels": {
174
171
"description": "Metadata tags on an atproto record, published by the author within the record.",
175
172
"properties": {
176
173
"values": {
177
174
"items": {
178
175
"ref": "#selfLabel",
179
176
"type": "ref"
180
177
},
181
178
"maxLength": 10,
182
179
"type": "array"
183
180
}
184
181
},
185
182
"required": [
186
183
"values"
187
184
],
188
185
"type": "object"
189
186
}
190
187
},
191
188
"id": "com.atproto.label.defs",
192
189
"lexicon": 1
193
190
}