@atproto/api 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/README.md +81 -0
  2. package/definitions/labels.json +212 -0
  3. package/definitions/locale/en/label-groups.json +38 -0
  4. package/definitions/locale/en/labels.json +366 -0
  5. package/definitions/locale/en/proposed-label-groups.json +38 -0
  6. package/definitions/locale/en/proposed-labels.json +632 -0
  7. package/definitions/moderation-behaviors.d.ts +48 -0
  8. package/definitions/post-moderation-behaviors.json +879 -0
  9. package/definitions/profile-moderation-behaviors.json +447 -0
  10. package/definitions/proposed-labels.json +326 -0
  11. package/dist/client/index.d.ts +3 -0
  12. package/dist/client/lexicons.d.ts +27 -1
  13. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +3 -10
  14. package/dist/client/types/app/bsky/{feed/getBookmarkedFeeds.d.ts → graph/getListBlocks.d.ts} +2 -2
  15. package/dist/client/types/app/bsky/graph/listblock.d.ts +8 -0
  16. package/dist/client/types/app/bsky/{feed/unbookmarkFeed.d.ts → graph/subscribeMuteList.d.ts} +1 -1
  17. package/dist/client/types/app/bsky/{feed/bookmarkFeed.d.ts → graph/unsubscribeMuteList.d.ts} +1 -1
  18. package/dist/{src/client/types/app/bsky/notification/updateSeen.d.ts → client/types/app/bsky/unspecced/applyLabels.d.ts} +2 -1
  19. package/dist/helpers/bsky.d.ts +20 -0
  20. package/dist/index.d.ts +4 -0
  21. package/dist/index.js +1401 -12
  22. package/dist/index.js.map +4 -4
  23. package/dist/mixins/bsky.d.ts +23 -0
  24. package/dist/moderation/accumulator.d.ts +14 -0
  25. package/dist/moderation/const/label-groups.d.ts +2 -0
  26. package/dist/moderation/const/labels.d.ts +2 -0
  27. package/dist/moderation/index.d.ts +44 -0
  28. package/dist/moderation/subjects/account.d.ts +3 -0
  29. package/dist/moderation/subjects/feed-generator.d.ts +2 -0
  30. package/dist/moderation/subjects/post.d.ts +2 -0
  31. package/dist/moderation/subjects/profile.d.ts +3 -0
  32. package/dist/moderation/subjects/quoted-post.d.ts +6 -0
  33. package/dist/moderation/subjects/user-list.d.ts +2 -0
  34. package/dist/moderation/types.d.ts +97 -0
  35. package/dist/moderation/util.d.ts +12 -0
  36. package/dist/rich-text/sanitize.d.ts +4 -0
  37. package/docs/labels.md +522 -0
  38. package/docs/moderation-behaviors/posts.md +1919 -0
  39. package/docs/moderation-behaviors/profiles.md +907 -0
  40. package/docs/moderation.md +144 -0
  41. package/package.json +6 -4
  42. package/scripts/code/label-groups.mjs +68 -0
  43. package/scripts/code/labels.mjs +68 -0
  44. package/scripts/docs/labels.mjs +164 -0
  45. package/scripts/docs/post-moderation-behaviors.mjs +122 -0
  46. package/scripts/docs/profile-moderation-behaviors.mjs +122 -0
  47. package/scripts/generate-code.mjs +4 -0
  48. package/scripts/generate-docs.mjs +5 -0
  49. package/src/client/index.ts +13 -0
  50. package/src/client/lexicons.ts +29 -3
  51. package/src/client/types/app/bsky/unspecced/applyLabels.ts +33 -0
  52. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +1 -1
  53. package/src/client/types/com/atproto/moderation/defs.ts +1 -1
  54. package/src/index.ts +4 -0
  55. package/src/moderation/accumulator.ts +181 -0
  56. package/src/moderation/const/label-groups.ts +143 -0
  57. package/src/moderation/const/labels.ts +798 -0
  58. package/src/moderation/index.ts +343 -0
  59. package/src/moderation/subjects/account.ts +40 -0
  60. package/src/moderation/subjects/feed-generator.ts +13 -0
  61. package/src/moderation/subjects/post.ts +23 -0
  62. package/src/moderation/subjects/profile.ts +31 -0
  63. package/src/moderation/subjects/quoted-post.ts +62 -0
  64. package/src/moderation/subjects/user-list.ts +13 -0
  65. package/src/moderation/types.ts +141 -0
  66. package/src/moderation/util.ts +98 -0
  67. package/tests/post-moderation.test.ts +46 -0
  68. package/tests/profile-moderation.test.ts +46 -0
  69. package/tests/util/index.ts +176 -0
  70. package/tests/util/moderation-behavior.ts +180 -0
  71. package/dist/client/types/app/bsky/actor/searchActor.d.ts +0 -22
  72. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +0 -20
  73. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +0 -29
  74. package/dist/client/types/com/atproto/repo/importRepo.d.ts +0 -19
  75. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +0 -19
  76. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +0 -31
  77. package/dist/src/client/index.d.ts +0 -462
  78. package/dist/src/client/lexicons.d.ts +0 -2910
  79. package/dist/src/client/schemas.d.ts +0 -17
  80. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
  81. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
  82. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
  83. package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
  84. package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
  85. package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
  86. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
  87. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
  88. package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
  89. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
  90. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
  91. package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
  92. package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
  93. package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
  94. package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
  95. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
  96. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
  97. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
  98. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
  99. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
  100. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
  101. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -18
  102. package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
  103. package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
  104. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
  105. package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
  106. package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
  107. package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
  108. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
  109. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
  110. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
  111. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
  112. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
  113. package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
  114. package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
  115. package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
  116. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
  117. package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
  118. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
  119. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
  120. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
  121. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  122. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  123. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  124. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
  125. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
  126. package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
  127. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
  128. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
  129. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
  130. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
  131. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
  132. package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
  133. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
  134. package/dist/src/client/types/app/bsky/like.d.ts +0 -10
  135. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
  136. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
  137. package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
  138. package/dist/src/client/types/app/bsky/post.d.ts +0 -23
  139. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
  140. package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
  141. package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
  142. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
  143. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
  144. package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
  145. package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
  146. package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
  147. package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
  148. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  149. package/dist/src/client/types/com/atproto/account/delete.d.ts +0 -13
  150. package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
  151. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  152. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  153. package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
  154. package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
  155. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
  156. package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
  157. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
  158. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
  159. package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
  160. package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
  161. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
  162. package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
  163. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
  164. package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
  165. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
  166. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
  167. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
  168. package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
  169. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
  170. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
  171. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
  172. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
  173. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
  174. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
  175. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
  176. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
  177. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
  178. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
  179. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
  180. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
  181. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
  182. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
  183. package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
  184. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
  185. package/dist/src/client/types/com/atproto/session/create.d.ts +0 -26
  186. package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
  187. package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
  188. package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -21
  189. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
  190. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  191. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  192. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
  193. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
  194. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
  195. package/dist/src/index.d.ts +0 -4
  196. package/dist/src/schemas.d.ts +0 -19
  197. package/dist/src/session.d.ts +0 -42
  198. package/dist/src/types/app/bsky/acceptedBadge.d.ts +0 -10
  199. package/dist/src/types/app/bsky/badge.d.ts +0 -22
  200. package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
  201. package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
  202. package/dist/src/types/app/bsky/declaration.d.ts +0 -6
  203. package/dist/src/types/app/bsky/follow.d.ts +0 -9
  204. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
  205. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
  206. package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
  207. package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
  208. package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
  209. package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
  210. package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
  211. package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
  212. package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
  213. package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
  214. package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
  215. package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
  216. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  217. package/dist/src/types/app/bsky/invite.d.ts +0 -10
  218. package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
  219. package/dist/src/types/app/bsky/like.d.ts +0 -10
  220. package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
  221. package/dist/src/types/app/bsky/post.d.ts +0 -23
  222. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
  223. package/dist/src/types/app/bsky/profile.d.ts +0 -11
  224. package/dist/src/types/app/bsky/repost.d.ts +0 -10
  225. package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
  226. package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
  227. package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
  228. package/dist/src/types/com/atproto/createSession.d.ts +0 -23
  229. package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
  230. package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
  231. package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
  232. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
  233. package/dist/src/types/com/atproto/getSession.d.ts +0 -17
  234. package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
  235. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
  236. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
  237. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
  238. package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
  239. package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
  240. package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
  241. package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
  242. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
  243. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
  244. package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
  245. package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
  246. package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
  247. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
  248. package/dist/src/types/todo/adx/createAccount.d.ts +0 -36
  249. package/dist/src/types/todo/adx/createInviteCode.d.ts +0 -19
  250. package/dist/src/types/todo/adx/createSession.d.ts +0 -22
  251. package/dist/src/types/todo/adx/deleteAccount.d.ts +0 -19
  252. package/dist/src/types/todo/adx/deleteSession.d.ts +0 -19
  253. package/dist/src/types/todo/adx/getAccount.d.ts +0 -19
  254. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +0 -17
  255. package/dist/src/types/todo/adx/getSession.d.ts +0 -17
  256. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +0 -34
  257. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +0 -22
  258. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +0 -15
  259. package/dist/src/types/todo/adx/repoDescribe.d.ts +0 -21
  260. package/dist/src/types/todo/adx/repoGetRecord.d.ts +0 -20
  261. package/dist/src/types/todo/adx/repoListRecords.d.ts +0 -25
  262. package/dist/src/types/todo/adx/repoPutRecord.d.ts +0 -23
  263. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +0 -18
  264. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +0 -25
  265. package/dist/src/types/todo/adx/resolveName.d.ts +0 -17
  266. package/dist/src/types/todo/adx/syncGetRepo.d.ts +0 -15
  267. package/dist/src/types/todo/adx/syncGetRoot.d.ts +0 -17
  268. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +0 -14
  269. package/dist/src/types/todo/social/badge.d.ts +0 -23
  270. package/dist/src/types/todo/social/follow.d.ts +0 -5
  271. package/dist/src/types/todo/social/getAuthorFeed.d.ts +0 -55
  272. package/dist/src/types/todo/social/getFeed.d.ts +0 -55
  273. package/dist/src/types/todo/social/getHomeFeed.d.ts +0 -55
  274. package/dist/src/types/todo/social/getLikedBy.d.ts +0 -26
  275. package/dist/src/types/todo/social/getNotificationCount.d.ts +0 -16
  276. package/dist/src/types/todo/social/getNotifications.d.ts +0 -31
  277. package/dist/src/types/todo/social/getPostThread.d.ts +0 -54
  278. package/dist/src/types/todo/social/getProfile.d.ts +0 -40
  279. package/dist/src/types/todo/social/getRepostedBy.d.ts +0 -26
  280. package/dist/src/types/todo/social/getUserFollowers.d.ts +0 -30
  281. package/dist/src/types/todo/social/getUserFollows.d.ts +0 -30
  282. package/dist/src/types/todo/social/like.d.ts +0 -5
  283. package/dist/src/types/todo/social/mediaEmbed.d.ts +0 -15
  284. package/dist/src/types/todo/social/post.d.ts +0 -18
  285. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +0 -19
  286. package/dist/src/types/todo/social/profile.d.ts +0 -10
  287. package/dist/src/types/todo/social/repost.d.ts +0 -5
  288. package/dist/tsconfig.build.tsbuildinfo +0 -1
  289. package/tests/_util.ts +0 -26
  290. package/tsconfig.build.tsbuildinfo +0 -1
package/docs/labels.md ADDED
@@ -0,0 +1,522 @@
1
+ <!-- this doc is generated by ./scripts/docs/labels.mjs -->
2
+
3
+ # Labels
4
+
5
+ This document is a reference for the labels used in the SDK.
6
+
7
+ **⚠️ Note**: These labels are still in development and may change over time. Not all are currently in use.
8
+
9
+ ## Key
10
+
11
+ ### Label Preferences
12
+
13
+ The possible client interpretations for a label.
14
+
15
+ - <code>ignore</code> Do nothing with the label.
16
+ - <code>warn</code> Provide some form of warning on the content (see "On Warn" behavior).
17
+ - <code>hide</code> Remove the content from feeds and apply the warning when directly viewed.
18
+
19
+ Each label specifies which preferences it can support. If a label is not configurable, it must have only own supported preference.
20
+
21
+ ### Configurable?
22
+
23
+ Non-configurable labels cannot have their preference changed by the user.
24
+
25
+ ### Flags
26
+
27
+ Additional behaviors which a label can adopt.
28
+
29
+ - <code>no-override</code> The user cannot click through any covering of content created by the label.
30
+ - <code>adult</code> The user must have adult content enabled to configure the label. If adult content is not enabled, the label must adopt the strictest preference.
31
+
32
+ ### On Warn
33
+
34
+ The kind of UI behavior used when a warning must be applied.
35
+
36
+ - <code>blur</code> Hide all of the content behind an interstitial.
37
+ - <code>blur-media</code> Hide only the media within the content (ie images) behind an interstitial.
38
+ - <code>alert</code> Display a descriptive warning but do not hide the content.
39
+ - <code>null</code> Do nothing.
40
+
41
+ ## Label Behaviors
42
+
43
+ <table>
44
+ <tr>
45
+ <th>ID</th>
46
+ <th>Group</th>
47
+ <th>Preferences</th>
48
+ <th>Configurable</th>
49
+ <th>Flags</th>
50
+ <th>On Warn</th>
51
+ </tr>
52
+ <tr>
53
+ <td>!hide</td>
54
+ <td>system</td>
55
+ <td>hide</td>
56
+ <td>❌</td>
57
+ <td>no-override</td>
58
+ <td>blur</td>
59
+ </tr>
60
+ <tr>
61
+ <td>!no-promote</td>
62
+ <td>system</td>
63
+ <td>hide</td>
64
+ <td>❌</td>
65
+ <td></td>
66
+ <td>null</td>
67
+ </tr>
68
+ <tr>
69
+ <td>!warn</td>
70
+ <td>system</td>
71
+ <td>warn</td>
72
+ <td>❌</td>
73
+ <td></td>
74
+ <td>blur</td>
75
+ </tr>
76
+ <tr>
77
+ <td>dmca-violation</td>
78
+ <td>legal</td>
79
+ <td>hide</td>
80
+ <td>❌</td>
81
+ <td>no-override</td>
82
+ <td>blur</td>
83
+ </tr>
84
+ <tr>
85
+ <td>doxxing</td>
86
+ <td>legal</td>
87
+ <td>hide</td>
88
+ <td>❌</td>
89
+ <td>no-override</td>
90
+ <td>blur</td>
91
+ </tr>
92
+ <tr>
93
+ <td>porn</td>
94
+ <td>sexual</td>
95
+ <td>ignore, warn, hide</td>
96
+ <td>✅</td>
97
+ <td>adult</td>
98
+ <td>blur-media</td>
99
+ </tr>
100
+ <tr>
101
+ <td>sexual</td>
102
+ <td>sexual</td>
103
+ <td>ignore, warn, hide</td>
104
+ <td>✅</td>
105
+ <td>adult</td>
106
+ <td>blur-media</td>
107
+ </tr>
108
+ <tr>
109
+ <td>nudity</td>
110
+ <td>sexual</td>
111
+ <td>ignore, warn, hide</td>
112
+ <td>✅</td>
113
+ <td>adult</td>
114
+ <td>blur-media</td>
115
+ </tr>
116
+ <tr>
117
+ <td>nsfl</td>
118
+ <td>violence</td>
119
+ <td>ignore, warn, hide</td>
120
+ <td>✅</td>
121
+ <td>adult</td>
122
+ <td>blur-media</td>
123
+ </tr>
124
+ <tr>
125
+ <td>corpse</td>
126
+ <td>violence</td>
127
+ <td>ignore, warn, hide</td>
128
+ <td>✅</td>
129
+ <td>adult</td>
130
+ <td>blur-media</td>
131
+ </tr>
132
+ <tr>
133
+ <td>gore</td>
134
+ <td>violence</td>
135
+ <td>ignore, warn, hide</td>
136
+ <td>✅</td>
137
+ <td>adult</td>
138
+ <td>blur-media</td>
139
+ </tr>
140
+ <tr>
141
+ <td>torture</td>
142
+ <td>violence</td>
143
+ <td>ignore, warn, hide</td>
144
+ <td>✅</td>
145
+ <td>adult</td>
146
+ <td>blur</td>
147
+ </tr>
148
+ <tr>
149
+ <td>self-harm</td>
150
+ <td>violence</td>
151
+ <td>ignore, warn, hide</td>
152
+ <td>✅</td>
153
+ <td>adult</td>
154
+ <td>blur-media</td>
155
+ </tr>
156
+ <tr>
157
+ <td>intolerant-race</td>
158
+ <td>intolerance</td>
159
+ <td>ignore, warn, hide</td>
160
+ <td>✅</td>
161
+ <td></td>
162
+ <td>blur</td>
163
+ </tr>
164
+ <tr>
165
+ <td>intolerant-gender</td>
166
+ <td>intolerance</td>
167
+ <td>ignore, warn, hide</td>
168
+ <td>✅</td>
169
+ <td></td>
170
+ <td>blur</td>
171
+ </tr>
172
+ <tr>
173
+ <td>intolerant-sexual-orientation</td>
174
+ <td>intolerance</td>
175
+ <td>ignore, warn, hide</td>
176
+ <td>✅</td>
177
+ <td></td>
178
+ <td>blur</td>
179
+ </tr>
180
+ <tr>
181
+ <td>intolerant-religion</td>
182
+ <td>intolerance</td>
183
+ <td>ignore, warn, hide</td>
184
+ <td>✅</td>
185
+ <td></td>
186
+ <td>blur</td>
187
+ </tr>
188
+ <tr>
189
+ <td>intolerant</td>
190
+ <td>intolerance</td>
191
+ <td>ignore, warn, hide</td>
192
+ <td>✅</td>
193
+ <td></td>
194
+ <td>blur</td>
195
+ </tr>
196
+ <tr>
197
+ <td>icon-intolerant</td>
198
+ <td>intolerance</td>
199
+ <td>ignore, warn, hide</td>
200
+ <td>✅</td>
201
+ <td></td>
202
+ <td>blur-media</td>
203
+ </tr>
204
+ <tr>
205
+ <td>threat</td>
206
+ <td>rude</td>
207
+ <td>ignore, warn, hide</td>
208
+ <td>✅</td>
209
+ <td></td>
210
+ <td>blur</td>
211
+ </tr>
212
+ <tr>
213
+ <td>spoiler</td>
214
+ <td>curation</td>
215
+ <td>ignore, warn, hide</td>
216
+ <td>✅</td>
217
+ <td></td>
218
+ <td>blur</td>
219
+ </tr>
220
+ <tr>
221
+ <td>spam</td>
222
+ <td>spam</td>
223
+ <td>ignore, warn, hide</td>
224
+ <td>✅</td>
225
+ <td></td>
226
+ <td>blur</td>
227
+ </tr>
228
+ <tr>
229
+ <td>account-security</td>
230
+ <td>misinfo</td>
231
+ <td>ignore, warn, hide</td>
232
+ <td>✅</td>
233
+ <td></td>
234
+ <td>blur</td>
235
+ </tr>
236
+ <tr>
237
+ <td>net-abuse</td>
238
+ <td>misinfo</td>
239
+ <td>ignore, warn, hide</td>
240
+ <td>✅</td>
241
+ <td></td>
242
+ <td>blur</td>
243
+ </tr>
244
+ <tr>
245
+ <td>impersonation</td>
246
+ <td>misinfo</td>
247
+ <td>ignore, warn, hide</td>
248
+ <td>✅</td>
249
+ <td></td>
250
+ <td>alert</td>
251
+ </tr>
252
+ <tr>
253
+ <td>scam</td>
254
+ <td>misinfo</td>
255
+ <td>ignore, warn, hide</td>
256
+ <td>✅</td>
257
+ <td></td>
258
+ <td>alert</td>
259
+ </tr>
260
+ </table>
261
+
262
+ ## Label Group Descriptions
263
+
264
+ <table>
265
+ <tr>
266
+ <th>ID</th>
267
+ <th>Description</th>
268
+ </tr>
269
+ <tr>
270
+ <td>system</td>
271
+ <td><code>general</code><br><strong>System</strong><br>Moderator overrides for special cases.</td>
272
+ </tr>
273
+ <tr>
274
+ <td>legal</td>
275
+ <td><code>general</code><br><strong>Legal</strong><br>Content removed for legal reasons.</td>
276
+ </tr>
277
+ <tr>
278
+ <td>sexual</td>
279
+ <td><code>general</code><br><strong>Adult Content</strong><br>Content which is sexual in nature.</td>
280
+ </tr>
281
+ <tr>
282
+ <td>violence</td>
283
+ <td><code>general</code><br><strong>Violence</strong><br>Content which is violent or deeply disturbing.</td>
284
+ </tr>
285
+ <tr>
286
+ <td>intolerance</td>
287
+ <td><code>general</code><br><strong>Intolerance</strong><br>Content or behavior which is hateful or intolerant toward a group of people.</td>
288
+ </tr>
289
+ <tr>
290
+ <td>rude</td>
291
+ <td><code>general</code><br><strong>Rude</strong><br>Behavior which is rude toward other users.</td>
292
+ </tr>
293
+ <tr>
294
+ <td>curation</td>
295
+ <td><code>general</code><br><strong>Curational</strong><br>Subjective moderation geared towards curating a more positive environment.</td>
296
+ </tr>
297
+ <tr>
298
+ <td>spam</td>
299
+ <td><code>general</code><br><strong>Spam</strong><br>Content which doesn't add to the conversation.</td>
300
+ </tr>
301
+ <tr>
302
+ <td>misinfo</td>
303
+ <td><code>general</code><br><strong>Misinformation</strong><br>Content which misleads or defrauds users.</td>
304
+ </tr>
305
+ </table>
306
+
307
+ ## Label Descriptions
308
+
309
+ <table>
310
+ <tr>
311
+ <th>ID</th>
312
+ <th>Description</th>
313
+ </tr>
314
+ <tr>
315
+ <td>!hide</td>
316
+ <td>
317
+ <code>general</code><br><strong>Moderator Hide</strong><br>Moderator has chosen to hide the content.<br><br>
318
+ <code>on an account</code><br><strong>Content Blocked</strong><br>This account has been hidden by the moderators.<br><br>
319
+ <code>on content</code><br><strong>Content Blocked</strong><br>This content has been hidden by the moderators.<br><br>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <td>!no-promote</td>
324
+ <td>
325
+ <code>general</code><br><strong>Moderator Filter</strong><br>Moderator has chosen to filter the content from feeds.<br><br>
326
+ <code>on an account</code><br><strong>N/A</strong><br>N/A<br><br>
327
+ <code>on content</code><br><strong>N/A</strong><br>N/A<br><br>
328
+ </td>
329
+ </tr>
330
+ <tr>
331
+ <td>!warn</td>
332
+ <td>
333
+ <code>general</code><br><strong>Moderator Warn</strong><br>Moderator has chosen to set a general warning on the content.<br><br>
334
+ <code>on an account</code><br><strong>Content Warning</strong><br>This account has received a general warning from moderators.<br><br>
335
+ <code>on content</code><br><strong>Content Warning</strong><br>This content has received a general warning from moderators.<br><br>
336
+ </td>
337
+ </tr>
338
+ <tr>
339
+ <td>dmca-violation</td>
340
+ <td>
341
+ <code>general</code><br><strong>Copyright Violation</strong><br>The content has received a DMCA takedown request.<br><br>
342
+ <code>on an account</code><br><strong>Copyright Violation</strong><br>This account has received a DMCA takedown request. It will be restored if the concerns can be resolved.<br><br>
343
+ <code>on content</code><br><strong>Copyright Violation</strong><br>This content has received a DMCA takedown request. It will be restored if the concerns can be resolved.<br><br>
344
+ </td>
345
+ </tr>
346
+ <tr>
347
+ <td>doxxing</td>
348
+ <td>
349
+ <code>general</code><br><strong>Doxxing</strong><br>Information that reveals private information about someone which has been shared without the consent of the subject.<br><br>
350
+ <code>on an account</code><br><strong>Doxxing</strong><br>This account has been reported to publish private information about someone without their consent. This report is currently under review.<br><br>
351
+ <code>on content</code><br><strong>Doxxing</strong><br>This content has been reported to include private information about someone without their consent.<br><br>
352
+ </td>
353
+ </tr>
354
+ <tr>
355
+ <td>porn</td>
356
+ <td>
357
+ <code>general</code><br><strong>Pornography</strong><br>Images of full-frontal nudity (genitalia) in any sexualized context, or explicit sexual activity (meaning contact with genitalia or breasts) even if partially covered. Includes graphic sexual cartoons (often jokes/memes).<br><br>
358
+ <code>on an account</code><br><strong>Pornography</strong><br>This account contains imagery of full-frontal nudity or explicit sexual activity.<br><br>
359
+ <code>on content</code><br><strong>Pornography</strong><br>This content contains imagery of full-frontal nudity or explicit sexual activity.<br><br>
360
+ </td>
361
+ </tr>
362
+ <tr>
363
+ <td>sexual</td>
364
+ <td>
365
+ <code>general</code><br><strong>Sexually Suggestive</strong><br>Content that does not meet the level of "pornography", but is still sexual. Some common examples have been selfies and "hornyposting" with underwear on, or partially naked (naked but covered, eg with hands or from side perspective). Sheer/see-through nipples may end up in this category.<br><br>
366
+ <code>on an account</code><br><strong>Sexually Suggestive</strong><br>This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress.<br><br>
367
+ <code>on content</code><br><strong>Sexually Suggestive</strong><br>This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress.<br><br>
368
+ </td>
369
+ </tr>
370
+ <tr>
371
+ <td>nudity</td>
372
+ <td>
373
+ <code>general</code><br><strong>Nudity</strong><br>Nudity which is not sexual, or that is primarily "artistic" in nature. For example: breastfeeding; classic art paintings and sculptures; newspaper images with some nudity; fashion modeling. "Erotic photography" is likely to end up in sexual or porn.<br><br>
374
+ <code>on an account</code><br><strong>Nudity</strong><br>This account contains imagery which portrays nudity in a non-sexual or artistic setting.<br><br>
375
+ <code>on content</code><br><strong>Nudity</strong><br>This content contains imagery which portrays nudity in a non-sexual or artistic setting.<br><br>
376
+ </td>
377
+ </tr>
378
+ <tr>
379
+ <td>nsfl</td>
380
+ <td>
381
+ <code>general</code><br><strong>NSFL</strong><br>"Not Suitable For Life." This includes graphic images like the infamous "goatse" (don't look it up).<br><br>
382
+ <code>on an account</code><br><strong>Graphic Imagery (NSFL)</strong><br>This account contains graphic images which are often referred to as "Not Suitable For Life."<br><br>
383
+ <code>on content</code><br><strong>Graphic Imagery (NSFL)</strong><br>This content contains graphic images which are often referred to as "Not Suitable For Life."<br><br>
384
+ </td>
385
+ </tr>
386
+ <tr>
387
+ <td>corpse</td>
388
+ <td>
389
+ <code>general</code><br><strong>Corpse</strong><br>Visual image of a dead human body in any context. Includes war images, hanging, funeral caskets. Does not include all figurative cases (cartoons), but can include realistic figurative images or renderings.<br><br>
390
+ <code>on an account</code><br><strong>Graphic Imagery (Corpse)</strong><br>This account contains images of a dead human body in any context. Includes war images, hanging, funeral caskets.<br><br>
391
+ <code>on content</code><br><strong>Graphic Imagery (Corpse)</strong><br>This content contains images of a dead human body in any context. Includes war images, hanging, funeral caskets.<br><br>
392
+ </td>
393
+ </tr>
394
+ <tr>
395
+ <td>gore</td>
396
+ <td>
397
+ <code>general</code><br><strong>Gore</strong><br>Intended for shocking images, typically involving blood or visible wounds.<br><br>
398
+ <code>on an account</code><br><strong>Graphic Imagery (Gore)</strong><br>This account contains shocking images involving blood or visible wounds.<br><br>
399
+ <code>on content</code><br><strong>Graphic Imagery (Gore)</strong><br>This content contains shocking images involving blood or visible wounds.<br><br>
400
+ </td>
401
+ </tr>
402
+ <tr>
403
+ <td>torture</td>
404
+ <td>
405
+ <code>general</code><br><strong>Torture</strong><br>Depictions of torture of a human or animal (animal cruelty).<br><br>
406
+ <code>on an account</code><br><strong>Graphic Imagery (Torture)</strong><br>This account contains depictions of torture of a human or animal.<br><br>
407
+ <code>on content</code><br><strong>Graphic Imagery (Torture)</strong><br>This content contains depictions of torture of a human or animal.<br><br>
408
+ </td>
409
+ </tr>
410
+ <tr>
411
+ <td>self-harm</td>
412
+ <td>
413
+ <code>general</code><br><strong>Self-Harm</strong><br>A visual depiction (photo or figurative) of cutting, suicide, or similar.<br><br>
414
+ <code>on an account</code><br><strong>Graphic Imagery (Self-Harm)</strong><br>This account includes depictions of cutting, suicide, or other forms of self-harm.<br><br>
415
+ <code>on content</code><br><strong>Graphic Imagery (Self-Harm)</strong><br>This content includes depictions of cutting, suicide, or other forms of self-harm.<br><br>
416
+ </td>
417
+ </tr>
418
+ <tr>
419
+ <td>intolerant-race</td>
420
+ <td>
421
+ <code>general</code><br><strong>Racial Intolerance</strong><br>Hateful or intolerant content related to race.<br><br>
422
+ <code>on an account</code><br><strong>Intolerance (Racial)</strong><br>This account includes hateful or intolerant content related to race.<br><br>
423
+ <code>on content</code><br><strong>Intolerance (Racial)</strong><br>This content includes hateful or intolerant views related to race.<br><br>
424
+ </td>
425
+ </tr>
426
+ <tr>
427
+ <td>intolerant-gender</td>
428
+ <td>
429
+ <code>general</code><br><strong>Gender Intolerance</strong><br>Hateful or intolerant content related to gender or gender identity.<br><br>
430
+ <code>on an account</code><br><strong>Intolerance (Gender)</strong><br>This account includes hateful or intolerant content related to gender or gender identity.<br><br>
431
+ <code>on content</code><br><strong>Intolerance (Gender)</strong><br>This content includes hateful or intolerant views related to gender or gender identity.<br><br>
432
+ </td>
433
+ </tr>
434
+ <tr>
435
+ <td>intolerant-sexual-orientation</td>
436
+ <td>
437
+ <code>general</code><br><strong>Sexual Orientation Intolerance</strong><br>Hateful or intolerant content related to sexual preferences.<br><br>
438
+ <code>on an account</code><br><strong>Intolerance (Orientation)</strong><br>This account includes hateful or intolerant content related to sexual preferences.<br><br>
439
+ <code>on content</code><br><strong>Intolerance (Orientation)</strong><br>This content includes hateful or intolerant views related to sexual preferences.<br><br>
440
+ </td>
441
+ </tr>
442
+ <tr>
443
+ <td>intolerant-religion</td>
444
+ <td>
445
+ <code>general</code><br><strong>Religious Intolerance</strong><br>Hateful or intolerant content related to religious views or practices.<br><br>
446
+ <code>on an account</code><br><strong>Intolerance (Religious)</strong><br>This account includes hateful or intolerant content related to religious views or practices.<br><br>
447
+ <code>on content</code><br><strong>Intolerance (Religious)</strong><br>This content includes hateful or intolerant views related to religious views or practices.<br><br>
448
+ </td>
449
+ </tr>
450
+ <tr>
451
+ <td>intolerant</td>
452
+ <td>
453
+ <code>general</code><br><strong>Intolerance</strong><br>A catchall for hateful or intolerant content which is not covered elsewhere.<br><br>
454
+ <code>on an account</code><br><strong>Intolerance</strong><br>This account includes hateful or intolerant content.<br><br>
455
+ <code>on content</code><br><strong>Intolerance</strong><br>This content includes hateful or intolerant views.<br><br>
456
+ </td>
457
+ </tr>
458
+ <tr>
459
+ <td>icon-intolerant</td>
460
+ <td>
461
+ <code>general</code><br><strong>Intolerant Iconography</strong><br>Visual imagery associated with a hate group, such as the KKK or Nazi, in any context (supportive, critical, documentary, etc).<br><br>
462
+ <code>on an account</code><br><strong>Intolerant Iconography</strong><br>This account includes imagery associated with a hate group such as the KKK or Nazis. This warning may apply to content any context, including critical or documentary purposes.<br><br>
463
+ <code>on content</code><br><strong>Intolerant Iconography</strong><br>This content includes imagery associated with a hate group such as the KKK or Nazis. This warning may apply to content any context, including critical or documentary purposes.<br><br>
464
+ </td>
465
+ </tr>
466
+ <tr>
467
+ <td>threat</td>
468
+ <td>
469
+ <code>general</code><br><strong>Threats</strong><br>Statements or imagery published with the intent to threaten, intimidate, or harm.<br><br>
470
+ <code>on an account</code><br><strong>Threats</strong><br>The moderators believe this account has published statements or imagery with the intent to threaten, intimidate, or harm others.<br><br>
471
+ <code>on content</code><br><strong>Threats</strong><br>The moderators believe this content was published with the intent to threaten, intimidate, or harm others.<br><br>
472
+ </td>
473
+ </tr>
474
+ <tr>
475
+ <td>spoiler</td>
476
+ <td>
477
+ <code>general</code><br><strong>Spoiler</strong><br>Discussion about film, TV, etc which gives away plot points.<br><br>
478
+ <code>on an account</code><br><strong>Spoiler Warning</strong><br>This account contains discussion about film, TV, etc which gives away plot points.<br><br>
479
+ <code>on content</code><br><strong>Spoiler Warning</strong><br>This content contains discussion about film, TV, etc which gives away plot points.<br><br>
480
+ </td>
481
+ </tr>
482
+ <tr>
483
+ <td>spam</td>
484
+ <td>
485
+ <code>general</code><br><strong>Spam</strong><br>Repeat, low-quality messages which are clearly not designed to add to a conversation or space.<br><br>
486
+ <code>on an account</code><br><strong>Spam</strong><br>This account publishes repeat, low-quality messages which are clearly not designed to add to a conversation or space.<br><br>
487
+ <code>on content</code><br><strong>Spam</strong><br>This content is a part of repeat, low-quality messages which are clearly not designed to add to a conversation or space.<br><br>
488
+ </td>
489
+ </tr>
490
+ <tr>
491
+ <td>account-security</td>
492
+ <td>
493
+ <code>general</code><br><strong>Security Concerns</strong><br>Content designed to hijack user accounts such as a phishing attack.<br><br>
494
+ <code>on an account</code><br><strong>Security Warning</strong><br>This account has published content designed to hijack user accounts such as a phishing attack.<br><br>
495
+ <code>on content</code><br><strong>Security Warning</strong><br>This content is designed to hijack user accounts such as a phishing attack.<br><br>
496
+ </td>
497
+ </tr>
498
+ <tr>
499
+ <td>net-abuse</td>
500
+ <td>
501
+ <code>general</code><br><strong>Network Attacks</strong><br>Content designed to attack network systems such as denial-of-service attacks.<br><br>
502
+ <code>on an account</code><br><strong>Network Attack Warning</strong><br>This account has published content designed to attack network systems such as denial-of-service attacks.<br><br>
503
+ <code>on content</code><br><strong>Network Attack Warning</strong><br>This content is designed to attack network systems such as denial-of-service attacks.<br><br>
504
+ </td>
505
+ </tr>
506
+ <tr>
507
+ <td>impersonation</td>
508
+ <td>
509
+ <code>general</code><br><strong>Impersonation</strong><br>Accounts which falsely assert some identity.<br><br>
510
+ <code>on an account</code><br><strong>Impersonation Warning</strong><br>The moderators believe this account is lying about their identity.<br><br>
511
+ <code>on content</code><br><strong>Impersonation Warning</strong><br>The moderators believe this account is lying about their identity.<br><br>
512
+ </td>
513
+ </tr>
514
+ <tr>
515
+ <td>scam</td>
516
+ <td>
517
+ <code>general</code><br><strong>Scam</strong><br>Fraudulent content.<br><br>
518
+ <code>on an account</code><br><strong>Scam Warning</strong><br>The moderators believe this account publishes fraudulent content.<br><br>
519
+ <code>on content</code><br><strong>Scam Warning</strong><br>The moderators believe this is fraudulent content.<br><br>
520
+ </td>
521
+ </tr>
522
+ </table>