atproto blogging
1{
2 "lexicon": 1,
3 "id": "app.bsky.labeler.defs",
4 "defs": {
5 "labelerPolicies": {
6 "type": "object",
7 "required": [
8 "labelValues"
9 ],
10 "properties": {
11 "labelValueDefinitions": {
12 "type": "array",
13 "description": "Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.",
14 "items": {
15 "type": "ref",
16 "ref": "com.atproto.label.defs#labelValueDefinition"
17 }
18 },
19 "labelValues": {
20 "type": "array",
21 "description": "The label values which this labeler publishes. May include global or custom labels.",
22 "items": {
23 "type": "ref",
24 "ref": "com.atproto.label.defs#labelValue"
25 }
26 }
27 }
28 },
29 "labelerView": {
30 "type": "object",
31 "required": [
32 "uri",
33 "cid",
34 "creator",
35 "indexedAt"
36 ],
37 "properties": {
38 "cid": {
39 "type": "string",
40 "format": "cid"
41 },
42 "creator": {
43 "type": "ref",
44 "ref": "app.bsky.actor.defs#profileView"
45 },
46 "indexedAt": {
47 "type": "string",
48 "format": "datetime"
49 },
50 "labels": {
51 "type": "array",
52 "items": {
53 "type": "ref",
54 "ref": "com.atproto.label.defs#label"
55 }
56 },
57 "likeCount": {
58 "type": "integer",
59 "minimum": 0
60 },
61 "uri": {
62 "type": "string",
63 "format": "at-uri"
64 },
65 "viewer": {
66 "type": "ref",
67 "ref": "#labelerViewerState"
68 }
69 }
70 },
71 "labelerViewDetailed": {
72 "type": "object",
73 "required": [
74 "uri",
75 "cid",
76 "creator",
77 "policies",
78 "indexedAt"
79 ],
80 "properties": {
81 "cid": {
82 "type": "string",
83 "format": "cid"
84 },
85 "creator": {
86 "type": "ref",
87 "ref": "app.bsky.actor.defs#profileView"
88 },
89 "indexedAt": {
90 "type": "string",
91 "format": "datetime"
92 },
93 "labels": {
94 "type": "array",
95 "items": {
96 "type": "ref",
97 "ref": "com.atproto.label.defs#label"
98 }
99 },
100 "likeCount": {
101 "type": "integer",
102 "minimum": 0
103 },
104 "policies": {
105 "type": "ref",
106 "ref": "app.bsky.labeler.defs#labelerPolicies"
107 },
108 "reasonTypes": {
109 "type": "array",
110 "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
111 "items": {
112 "type": "ref",
113 "ref": "com.atproto.moderation.defs#reasonType"
114 }
115 },
116 "subjectCollections": {
117 "type": "array",
118 "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",
119 "items": {
120 "type": "string",
121 "format": "nsid"
122 }
123 },
124 "subjectTypes": {
125 "type": "array",
126 "description": "The set of subject types (account, record, etc) this service accepts reports on.",
127 "items": {
128 "type": "ref",
129 "ref": "com.atproto.moderation.defs#subjectType"
130 }
131 },
132 "uri": {
133 "type": "string",
134 "format": "at-uri"
135 },
136 "viewer": {
137 "type": "ref",
138 "ref": "#labelerViewerState"
139 }
140 }
141 },
142 "labelerViewerState": {
143 "type": "object",
144 "properties": {
145 "like": {
146 "type": "string",
147 "format": "at-uri"
148 }
149 }
150 }
151 }
152}