com.atproto.label.defs

atproto-lexicons.bsky.social

Schema Diff

+2 -5

From

CID
bafyreig4hmnb2xk...
Indexed At
2026-02-18 18:55 UTC
View this version

To

CID
bafyreidp2wpcbzl...
Indexed At
2026-04-08 02:29 UTC
View this version

Compatibility Analysis

Backward Compatible

No changes detected.

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

Compare Other Versions

Lexicon Garden

@