@atproto/api 0.10.5 → 0.11.0-next

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 (422) hide show
  1. package/definitions/labels.json +191 -189
  2. package/dist/agent.d.ts +3 -1
  3. package/dist/bsky-agent.d.ts +6 -2
  4. package/dist/client/index.d.ts +94 -38
  5. package/dist/client/lexicons.d.ts +5091 -4833
  6. package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
  7. package/dist/client/types/app/bsky/actor/defs.d.ts +23 -1
  8. package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
  9. package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
  10. package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
  11. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
  12. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
  13. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +47 -0
  14. package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
  15. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  16. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
  17. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  18. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
  19. package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
  20. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
  21. package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
  22. package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
  23. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  24. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
  25. package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
  26. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  27. package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  28. package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
  29. package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
  30. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
  31. package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
  32. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
  33. package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
  34. package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
  35. package/dist/client/types/app/bsky/labeler/defs.d.ts +41 -0
  36. package/dist/client/types/app/bsky/labeler/getServices.d.ts +23 -0
  37. package/dist/client/types/app/bsky/labeler/service.d.ts +14 -0
  38. package/dist/client/types/app/bsky/moderation/defs.d.ts +41 -0
  39. package/dist/client/types/app/bsky/moderation/getService.d.ts +16 -0
  40. package/dist/client/types/app/bsky/moderation/getServices.d.ts +23 -0
  41. package/dist/client/types/app/bsky/moderation/service.d.ts +14 -0
  42. package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
  43. package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
  44. package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
  45. package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
  46. package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
  47. package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
  48. package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +18 -0
  49. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +22 -0
  50. package/dist/client/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +24 -0
  51. package/dist/client/types/com/atproto/account/create.d.ts +41 -0
  52. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  53. package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
  54. package/dist/client/types/com/atproto/account/get.d.ts +12 -0
  55. package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
  56. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  57. package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  58. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  59. package/dist/client/types/com/atproto/admin/defs.d.ts +0 -304
  60. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
  61. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
  62. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
  63. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
  64. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +28 -0
  65. package/dist/client/types/com/atproto/admin/getSubjectState.d.ts +26 -0
  66. package/dist/client/types/com/atproto/admin/getUserAccountInfo.d.ts +16 -0
  67. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
  68. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  69. package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +24 -0
  70. package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
  71. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  72. package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
  73. package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
  74. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +34 -0
  75. package/dist/client/types/com/atproto/admin/updateSubjectState.d.ts +32 -0
  76. package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
  77. package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
  78. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  79. package/dist/client/types/com/atproto/label/defs.d.ts +21 -0
  80. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
  81. package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
  82. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +24 -0
  83. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  84. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  85. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
  86. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  87. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  88. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  89. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
  90. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
  91. package/dist/client/types/com/atproto/session/create.d.ts +29 -0
  92. package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
  93. package/dist/client/types/com/atproto/session/get.d.ts +18 -0
  94. package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
  95. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
  96. package/dist/client/types/com/atproto/sync/getCurrent.d.ts +22 -0
  97. package/dist/client/types/com/atproto/sync/getRoot.d.ts +21 -0
  98. package/dist/client/types/com/atproto/sync/importRepo.d.ts +16 -0
  99. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
  100. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  101. package/dist/client/types/com/atproto/temp/importRepo.d.ts +16 -0
  102. package/dist/client/types/com/atproto/temp/pushBlob.d.ts +15 -0
  103. package/dist/client/types/com/atproto/temp/transferAccount.d.ts +48 -0
  104. package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +18 -0
  105. package/dist/client/types/tools/ozone/communication/createTemplate.d.ts +23 -0
  106. package/dist/client/types/tools/ozone/communication/defs.d.ts +14 -0
  107. package/dist/client/types/tools/ozone/communication/deleteTemplate.d.ts +17 -0
  108. package/dist/client/types/tools/ozone/communication/listTemplates.d.ts +18 -0
  109. package/dist/client/types/tools/ozone/communication/updateTemplate.d.ts +25 -0
  110. package/dist/client/types/tools/ozone/moderation/defs.d.ts +269 -0
  111. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +34 -0
  112. package/dist/client/types/tools/ozone/moderation/getEvent.d.ts +16 -0
  113. package/dist/client/types/tools/ozone/moderation/getRecord.d.ts +20 -0
  114. package/dist/client/types/tools/ozone/moderation/getRepo.d.ts +19 -0
  115. package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts +35 -0
  116. package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +37 -0
  117. package/dist/client/types/tools/ozone/moderation/searchRepos.d.ts +23 -0
  118. package/dist/const.d.ts +1 -0
  119. package/dist/index.d.ts +3 -2
  120. package/dist/index.js +7865 -7922
  121. package/dist/index.js.map +3 -3
  122. package/dist/mocker.d.ts +57 -0
  123. package/dist/moderation/const/labels.d.ts +4 -2
  124. package/dist/moderation/decision.d.ts +26 -0
  125. package/dist/moderation/index.d.ts +10 -44
  126. package/dist/moderation/subjects/account.d.ts +2 -1
  127. package/dist/moderation/subjects/feed-generator.d.ts +2 -1
  128. package/dist/moderation/subjects/notification.d.ts +3 -0
  129. package/dist/moderation/subjects/post.d.ts +2 -1
  130. package/dist/moderation/subjects/profile.d.ts +2 -1
  131. package/dist/moderation/subjects/user-list.d.ts +2 -1
  132. package/dist/moderation/types.d.ts +47 -61
  133. package/dist/moderation/ui.d.ts +12 -0
  134. package/dist/moderation/util.d.ts +4 -8
  135. package/dist/session.d.ts +42 -0
  136. package/dist/src/client/index.d.ts +462 -0
  137. package/dist/src/client/lexicons.d.ts +2910 -0
  138. package/dist/src/client/schemas.d.ts +17 -0
  139. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  140. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  141. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  142. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  143. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  144. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  145. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  146. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  147. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  148. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  149. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  150. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  151. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  152. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  153. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  154. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  155. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  156. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  157. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  158. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  159. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  160. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  161. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  162. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  163. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  164. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  165. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  166. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  167. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  168. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  169. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  170. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  171. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  172. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  173. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  174. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  175. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  176. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  177. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  178. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  179. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  180. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  181. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  182. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  183. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  184. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  185. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  186. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  187. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  188. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  189. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  190. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  191. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  192. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  193. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  194. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  195. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  196. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  197. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  198. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  199. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  200. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  201. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  202. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  203. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  204. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  205. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  206. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  207. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  208. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  209. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  210. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  211. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  212. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  213. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  214. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  215. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  216. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  217. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  218. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  219. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  220. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  221. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  222. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  223. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  224. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  225. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  226. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  227. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  228. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  229. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  230. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  231. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  232. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  233. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  234. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  235. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  236. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  237. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  238. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  239. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  240. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  241. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  242. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  243. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  244. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  245. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  246. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  247. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  248. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  249. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  250. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  251. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  252. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  253. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  254. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  255. package/dist/src/index.d.ts +4 -0
  256. package/dist/src/schemas.d.ts +19 -0
  257. package/dist/src/session.d.ts +42 -0
  258. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  259. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  260. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  261. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  262. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  263. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  264. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  265. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  266. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  267. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  268. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  269. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  270. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  271. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  272. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  273. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  274. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  275. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  276. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  277. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  278. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  279. package/dist/src/types/app/bsky/like.d.ts +10 -0
  280. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  281. package/dist/src/types/app/bsky/post.d.ts +23 -0
  282. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  283. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  284. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  285. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  286. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  287. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  288. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  289. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  290. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  291. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  292. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  293. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  294. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  295. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  296. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  297. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  298. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  299. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  300. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  301. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  302. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  303. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  304. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  305. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  306. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  307. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  308. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  309. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  310. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  311. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  312. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  313. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  314. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  315. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  316. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  317. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  318. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  319. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  320. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  321. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  322. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  323. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  324. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  325. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  326. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  327. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  328. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  329. package/dist/src/types/todo/social/badge.d.ts +23 -0
  330. package/dist/src/types/todo/social/follow.d.ts +5 -0
  331. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  332. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  333. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  334. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  335. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  336. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  337. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  338. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  339. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  340. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  341. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  342. package/dist/src/types/todo/social/like.d.ts +5 -0
  343. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  344. package/dist/src/types/todo/social/post.d.ts +18 -0
  345. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  346. package/dist/src/types/todo/social/profile.d.ts +10 -0
  347. package/dist/src/types/todo/social/repost.d.ts +5 -0
  348. package/dist/types.d.ts +2 -4
  349. package/docs/labels.md +22 -468
  350. package/docs/moderation.md +0 -2
  351. package/package.json +5 -5
  352. package/scripts/code/labels.mjs +17 -35
  353. package/scripts/docs/labels.mjs +8 -85
  354. package/scripts/generate-code.mjs +0 -1
  355. package/scripts/generate-docs.mjs +0 -2
  356. package/src/agent.ts +24 -4
  357. package/src/bsky-agent.ts +184 -24
  358. package/src/client/index.ts +292 -173
  359. package/src/client/lexicons.ts +6192 -5926
  360. package/src/client/types/app/bsky/actor/defs.ts +57 -1
  361. package/src/client/types/app/bsky/embed/record.ts +2 -0
  362. package/src/client/types/app/bsky/labeler/defs.ts +93 -0
  363. package/src/client/types/app/bsky/labeler/getServices.ts +41 -0
  364. package/src/client/types/app/bsky/labeler/service.ts +31 -0
  365. package/src/client/types/com/atproto/admin/defs.ts +0 -694
  366. package/src/client/types/com/atproto/label/defs.ts +74 -0
  367. package/src/client/types/{com/atproto/admin/createCommunicationTemplate.ts → tools/ozone/communication/createTemplate.ts} +2 -2
  368. package/src/client/types/tools/ozone/communication/defs.ts +35 -0
  369. package/src/client/types/{com/atproto/admin/listCommunicationTemplates.ts → tools/ozone/communication/listTemplates.ts} +2 -2
  370. package/src/client/types/{com/atproto/admin/updateCommunicationTemplate.ts → tools/ozone/communication/updateTemplate.ts} +2 -2
  371. package/src/client/types/tools/ozone/moderation/defs.ts +641 -0
  372. package/src/client/types/{com/atproto/admin/emitModerationEvent.ts → tools/ozone/moderation/emitEvent.ts} +15 -14
  373. package/src/client/types/{com/atproto/admin/getModerationEvent.ts → tools/ozone/moderation/getEvent.ts} +2 -2
  374. package/src/client/types/{com/atproto/admin → tools/ozone/moderation}/getRecord.ts +2 -2
  375. package/src/client/types/{com/atproto/admin → tools/ozone/moderation}/getRepo.ts +2 -2
  376. package/src/client/types/{com/atproto/admin/queryModerationEvents.ts → tools/ozone/moderation/queryEvents.ts} +3 -3
  377. package/src/client/types/{com/atproto/admin/queryModerationStatuses.ts → tools/ozone/moderation/queryStatuses.ts} +2 -2
  378. package/src/client/types/{com/atproto/admin → tools/ozone/moderation}/searchRepos.ts +2 -2
  379. package/src/const.ts +1 -0
  380. package/src/index.ts +3 -2
  381. package/src/mocker.ts +214 -0
  382. package/src/moderation/const/labels.ts +247 -847
  383. package/src/moderation/decision.ts +337 -0
  384. package/src/moderation/index.ts +38 -304
  385. package/src/moderation/subjects/account.ts +6 -10
  386. package/src/moderation/subjects/feed-generator.ts +3 -6
  387. package/src/moderation/subjects/notification.ts +19 -0
  388. package/src/moderation/subjects/post.ts +6 -10
  389. package/src/moderation/subjects/profile.ts +6 -11
  390. package/src/moderation/subjects/user-list.ts +3 -6
  391. package/src/moderation/types.ts +81 -77
  392. package/src/moderation/ui.ts +21 -0
  393. package/src/moderation/util.ts +82 -72
  394. package/src/types.ts +3 -10
  395. package/tests/agent.test.ts +20 -0
  396. package/tests/bsky-agent.test.ts +401 -98
  397. package/tests/moderation-behaviors.test.ts +969 -0
  398. package/tests/moderation-custom-labels.test.ts +358 -0
  399. package/tests/moderation-prefs.test.ts +276 -0
  400. package/tests/moderation.test.ts +303 -201
  401. package/tests/util/echo-server.ts +21 -0
  402. package/tests/util/index.ts +1 -154
  403. package/tests/util/moderation-behavior.ts +129 -55
  404. package/definitions/locale/en/label-groups.json +0 -38
  405. package/definitions/locale/en/labels.json +0 -394
  406. package/definitions/locale/en/proposed-label-groups.json +0 -38
  407. package/definitions/locale/en/proposed-labels.json +0 -632
  408. package/definitions/moderation-behaviors.d.ts +0 -50
  409. package/definitions/post-moderation-behaviors.json +0 -1222
  410. package/definitions/profile-moderation-behaviors.json +0 -597
  411. package/definitions/proposed-labels.json +0 -326
  412. package/docs/moderation-behaviors/posts.md +0 -1813
  413. package/docs/moderation-behaviors/profiles.md +0 -833
  414. package/scripts/code/label-groups.mjs +0 -68
  415. package/scripts/docs/post-moderation-behaviors.mjs +0 -117
  416. package/scripts/docs/profile-moderation-behaviors.mjs +0 -122
  417. package/src/moderation/accumulator.ts +0 -217
  418. package/src/moderation/const/label-groups.ts +0 -149
  419. package/src/moderation/subjects/quoted-post.ts +0 -80
  420. package/tests/post-moderation.test.ts +0 -46
  421. package/tests/profile-moderation.test.ts +0 -46
  422. /package/src/client/types/{com/atproto/admin/deleteCommunicationTemplate.ts → tools/ozone/communication/deleteTemplate.ts} +0 -0
@@ -1,859 +1,259 @@
1
1
  /** this doc is generated by ./scripts/code/labels.mjs **/
2
- import { LabelDefinitionMap } from '../types'
2
+ import { InterprettedLabelValueDefinition, LabelPreference } from '../types'
3
3
 
4
- export const LABELS: LabelDefinitionMap = {
5
- '!hide': {
6
- id: '!hide',
7
- preferences: ['hide'],
8
- flags: ['no-override'],
9
- onwarn: 'blur',
10
- groupId: 'system',
11
- configurable: false,
12
- strings: {
13
- settings: {
14
- en: {
15
- name: 'Moderator Hide',
16
- description: 'Moderator has chosen to hide the content.',
17
- },
18
- },
19
- account: {
20
- en: {
21
- name: 'Content Blocked',
22
- description: 'This account has been hidden by the moderators.',
23
- },
24
- },
25
- content: {
26
- en: {
27
- name: 'Content Blocked',
28
- description: 'This content has been hidden by the moderators.',
29
- },
30
- },
31
- },
32
- },
33
- '!no-promote': {
34
- id: '!no-promote',
35
- preferences: ['hide'],
36
- flags: [],
37
- onwarn: null,
38
- groupId: 'system',
39
- configurable: false,
40
- strings: {
41
- settings: {
42
- en: {
43
- name: 'Moderator Filter',
44
- description: 'Moderator has chosen to filter the content from feeds.',
45
- },
46
- },
47
- account: {
48
- en: {
49
- name: 'N/A',
50
- description: 'N/A',
51
- },
52
- },
53
- content: {
54
- en: {
55
- name: 'N/A',
56
- description: 'N/A',
57
- },
58
- },
59
- },
60
- },
61
- '!warn': {
62
- id: '!warn',
63
- preferences: ['warn'],
64
- flags: [],
65
- onwarn: 'blur',
66
- groupId: 'system',
67
- configurable: false,
68
- strings: {
69
- settings: {
70
- en: {
71
- name: 'Moderator Warn',
72
- description:
73
- 'Moderator has chosen to set a general warning on the content.',
74
- },
75
- },
76
- account: {
77
- en: {
78
- name: 'Content Warning',
79
- description:
80
- 'This account has received a general warning from moderators.',
81
- },
82
- },
83
- content: {
84
- en: {
85
- name: 'Content Warning',
86
- description:
87
- 'This content has received a general warning from moderators.',
88
- },
89
- },
90
- },
91
- },
92
- '!no-unauthenticated': {
93
- id: '!no-unauthenticated',
94
- preferences: ['hide'],
95
- flags: ['no-override', 'unauthed'],
96
- onwarn: 'blur',
97
- groupId: 'system',
98
- configurable: false,
99
- strings: {
100
- settings: {
101
- en: {
102
- name: 'Sign-in Required',
103
- description:
104
- 'This user has requested that their account only be shown to signed-in users.',
105
- },
106
- },
107
- account: {
108
- en: {
109
- name: 'Sign-in Required',
110
- description:
111
- 'This user has requested that their account only be shown to signed-in users.',
112
- },
113
- },
114
- content: {
115
- en: {
116
- name: 'Sign-in Required',
117
- description:
118
- 'This user has requested that their content only be shown to signed-in users.',
119
- },
120
- },
121
- },
122
- },
123
- 'dmca-violation': {
124
- id: 'dmca-violation',
125
- preferences: ['hide'],
126
- flags: ['no-override'],
127
- onwarn: 'blur',
128
- groupId: 'legal',
129
- configurable: false,
130
- strings: {
131
- settings: {
132
- en: {
133
- name: 'Copyright Violation',
134
- description: 'The content has received a DMCA takedown request.',
135
- },
136
- },
137
- account: {
138
- en: {
139
- name: 'Copyright Violation',
140
- description:
141
- 'This account has received a DMCA takedown request. It will be restored if the concerns can be resolved.',
142
- },
143
- },
144
- content: {
145
- en: {
146
- name: 'Copyright Violation',
147
- description:
148
- 'This content has received a DMCA takedown request. It will be restored if the concerns can be resolved.',
149
- },
150
- },
151
- },
152
- },
153
- doxxing: {
154
- id: 'doxxing',
155
- preferences: ['hide'],
156
- flags: ['no-override'],
157
- onwarn: 'blur',
158
- groupId: 'legal',
159
- configurable: false,
160
- strings: {
161
- settings: {
162
- en: {
163
- name: 'Doxxing',
164
- description:
165
- 'Information that reveals private information about someone which has been shared without the consent of the subject.',
166
- },
167
- },
168
- account: {
169
- en: {
170
- name: 'Doxxing',
171
- description:
172
- 'This account has been reported to publish private information about someone without their consent. This report is currently under review.',
173
- },
174
- },
175
- content: {
176
- en: {
177
- name: 'Doxxing',
178
- description:
179
- 'This content has been reported to include private information about someone without their consent.',
180
- },
181
- },
182
- },
183
- },
184
- porn: {
185
- id: 'porn',
186
- preferences: ['ignore', 'warn', 'hide'],
187
- flags: ['adult'],
188
- onwarn: 'blur-media',
189
- groupId: 'sexual',
190
- configurable: true,
191
- strings: {
192
- settings: {
193
- en: {
194
- name: 'Pornography',
195
- description:
196
- '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).',
197
- },
198
- },
199
- account: {
200
- en: {
201
- name: 'Adult Content',
202
- description:
203
- 'This account contains imagery of full-frontal nudity or explicit sexual activity.',
204
- },
205
- },
206
- content: {
207
- en: {
208
- name: 'Adult Content',
209
- description:
210
- 'This content contains imagery of full-frontal nudity or explicit sexual activity.',
211
- },
212
- },
213
- },
214
- },
215
- sexual: {
216
- id: 'sexual',
217
- preferences: ['ignore', 'warn', 'hide'],
218
- flags: ['adult'],
219
- onwarn: 'blur-media',
220
- groupId: 'sexual',
221
- configurable: true,
222
- strings: {
223
- settings: {
224
- en: {
225
- name: 'Sexually Suggestive',
226
- description:
227
- '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.',
228
- },
229
- },
230
- account: {
231
- en: {
232
- name: 'Suggestive Content',
233
- description:
234
- 'This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress.',
235
- },
236
- },
237
- content: {
238
- en: {
239
- name: 'Suggestive Content',
240
- description:
241
- 'This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress.',
242
- },
243
- },
244
- },
245
- },
246
- nudity: {
247
- id: 'nudity',
248
- preferences: ['ignore', 'warn', 'hide'],
249
- flags: ['adult'],
250
- onwarn: 'blur-media',
251
- groupId: 'sexual',
252
- configurable: true,
253
- strings: {
254
- settings: {
255
- en: {
256
- name: 'Nudity',
257
- description:
258
- '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.',
259
- },
260
- },
261
- account: {
262
- en: {
263
- name: 'Adult Content',
264
- description:
265
- 'This account contains imagery which portrays nudity in a non-sexual or artistic setting.',
266
- },
267
- },
268
- content: {
269
- en: {
270
- name: 'Adult Content',
271
- description:
272
- 'This content contains imagery which portrays nudity in a non-sexual or artistic setting.',
273
- },
274
- },
275
- },
276
- },
277
- nsfl: {
278
- id: 'nsfl',
279
- preferences: ['ignore', 'warn', 'hide'],
280
- flags: ['adult'],
281
- onwarn: 'blur-media',
282
- groupId: 'violence',
283
- configurable: true,
284
- strings: {
285
- settings: {
286
- en: {
287
- name: 'NSFL',
288
- description:
289
- '"Not Suitable For Life." This includes graphic images like the infamous "goatse" (don\'t look it up).',
290
- },
291
- },
292
- account: {
293
- en: {
294
- name: 'Graphic Imagery (NSFL)',
295
- description:
296
- 'This account contains graphic images which are often referred to as "Not Suitable For Life."',
297
- },
298
- },
299
- content: {
300
- en: {
301
- name: 'Graphic Imagery (NSFL)',
302
- description:
303
- 'This content contains graphic images which are often referred to as "Not Suitable For Life."',
304
- },
305
- },
306
- },
307
- },
308
- corpse: {
309
- id: 'corpse',
310
- preferences: ['ignore', 'warn', 'hide'],
311
- flags: ['adult'],
312
- onwarn: 'blur-media',
313
- groupId: 'violence',
314
- configurable: true,
315
- strings: {
316
- settings: {
317
- en: {
318
- name: 'Corpse',
319
- description:
320
- '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.',
321
- },
322
- },
323
- account: {
324
- en: {
325
- name: 'Graphic Imagery (Corpse)',
326
- description:
327
- 'This account contains images of a dead human body in any context. Includes war images, hanging, funeral caskets.',
328
- },
329
- },
330
- content: {
331
- en: {
332
- name: 'Graphic Imagery (Corpse)',
333
- description:
334
- 'This content contains images of a dead human body in any context. Includes war images, hanging, funeral caskets.',
335
- },
336
- },
337
- },
338
- },
339
- gore: {
340
- id: 'gore',
341
- preferences: ['ignore', 'warn', 'hide'],
342
- flags: ['adult'],
343
- onwarn: 'blur-media',
344
- groupId: 'violence',
345
- configurable: true,
346
- strings: {
347
- settings: {
348
- en: {
349
- name: 'Gore',
350
- description:
351
- 'Intended for shocking images, typically involving blood or visible wounds.',
352
- },
353
- },
354
- account: {
355
- en: {
356
- name: 'Graphic Imagery (Gore)',
357
- description:
358
- 'This account contains shocking images involving blood or visible wounds.',
359
- },
360
- },
361
- content: {
362
- en: {
363
- name: 'Graphic Imagery (Gore)',
364
- description:
365
- 'This content contains shocking images involving blood or visible wounds.',
366
- },
367
- },
368
- },
369
- },
370
- torture: {
371
- id: 'torture',
372
- preferences: ['ignore', 'warn', 'hide'],
373
- flags: ['adult'],
374
- onwarn: 'blur',
375
- groupId: 'violence',
376
- configurable: true,
377
- strings: {
378
- settings: {
379
- en: {
380
- name: 'Torture',
381
- description:
382
- 'Depictions of torture of a human or animal (animal cruelty).',
383
- },
384
- },
385
- account: {
386
- en: {
387
- name: 'Graphic Imagery (Torture)',
388
- description:
389
- 'This account contains depictions of torture of a human or animal.',
390
- },
391
- },
392
- content: {
393
- en: {
394
- name: 'Graphic Imagery (Torture)',
395
- description:
396
- 'This content contains depictions of torture of a human or animal.',
397
- },
398
- },
399
- },
400
- },
401
- 'self-harm': {
402
- id: 'self-harm',
403
- preferences: ['ignore', 'warn', 'hide'],
404
- flags: ['adult'],
405
- onwarn: 'blur-media',
406
- groupId: 'violence',
407
- configurable: true,
408
- strings: {
409
- settings: {
410
- en: {
411
- name: 'Self-Harm',
412
- description:
413
- 'A visual depiction (photo or figurative) of cutting, suicide, or similar.',
414
- },
415
- },
416
- account: {
417
- en: {
418
- name: 'Graphic Imagery (Self-Harm)',
419
- description:
420
- 'This account includes depictions of cutting, suicide, or other forms of self-harm.',
421
- },
422
- },
423
- content: {
424
- en: {
425
- name: 'Graphic Imagery (Self-Harm)',
426
- description:
427
- 'This content includes depictions of cutting, suicide, or other forms of self-harm.',
428
- },
429
- },
4
+ export type KnownLabelValue =
5
+ | '!hide'
6
+ | '!no-promote'
7
+ | '!warn'
8
+ | '!no-unauthenticated'
9
+ | 'dmca-violation'
10
+ | 'doxxing'
11
+ | 'porn'
12
+ | 'sexual'
13
+ | 'nudity'
14
+ | 'gore'
15
+
16
+ export const DEFAULT_LABEL_SETTINGS: Record<string, LabelPreference> = {
17
+ porn: 'hide',
18
+ sexual: 'warn',
19
+ nudity: 'warn',
20
+ gore: 'warn',
21
+ }
22
+
23
+ export const LABELS: Record<KnownLabelValue, InterprettedLabelValueDefinition> =
24
+ {
25
+ '!hide': {
26
+ identifier: '!hide',
27
+ configurable: false,
28
+ defaultSetting: 'hide',
29
+ flags: ['no-override', 'no-self'],
30
+ severity: 'alert',
31
+ blurs: 'content',
32
+ behaviors: {
33
+ account: {
34
+ profileList: 'blur',
35
+ profileView: 'blur',
36
+ avatar: 'blur',
37
+ banner: 'blur',
38
+ displayName: 'blur',
39
+ contentList: 'blur',
40
+ contentView: 'blur',
41
+ },
42
+ profile: {
43
+ avatar: 'blur',
44
+ banner: 'blur',
45
+ displayName: 'blur',
46
+ },
47
+ content: {
48
+ contentList: 'blur',
49
+ contentView: 'blur',
50
+ },
51
+ },
52
+ locales: [],
430
53
  },
431
- },
432
- 'intolerant-race': {
433
- id: 'intolerant-race',
434
- preferences: ['ignore', 'warn', 'hide'],
435
- flags: [],
436
- onwarn: 'blur',
437
- groupId: 'intolerance',
438
- configurable: true,
439
- strings: {
440
- settings: {
441
- en: {
442
- name: 'Racial Intolerance',
443
- description: 'Hateful or intolerant content related to race.',
444
- },
445
- },
446
- account: {
447
- en: {
448
- name: 'Intolerance (Racial)',
449
- description:
450
- 'This account includes hateful or intolerant content related to race.',
451
- },
452
- },
453
- content: {
454
- en: {
455
- name: 'Intolerance (Racial)',
456
- description:
457
- 'This content includes hateful or intolerant views related to race.',
458
- },
459
- },
54
+ '!no-promote': {
55
+ identifier: '!no-promote',
56
+ configurable: false,
57
+ defaultSetting: 'hide',
58
+ flags: ['no-self'],
59
+ severity: 'none',
60
+ blurs: 'none',
61
+ behaviors: {},
62
+ locales: [],
460
63
  },
461
- },
462
- 'intolerant-gender': {
463
- id: 'intolerant-gender',
464
- preferences: ['ignore', 'warn', 'hide'],
465
- flags: [],
466
- onwarn: 'blur',
467
- groupId: 'intolerance',
468
- configurable: true,
469
- strings: {
470
- settings: {
471
- en: {
472
- name: 'Gender Intolerance',
473
- description:
474
- 'Hateful or intolerant content related to gender or gender identity.',
475
- },
476
- },
477
- account: {
478
- en: {
479
- name: 'Intolerance (Gender)',
480
- description:
481
- 'This account includes hateful or intolerant content related to gender or gender identity.',
482
- },
483
- },
484
- content: {
485
- en: {
486
- name: 'Intolerance (Gender)',
487
- description:
488
- 'This content includes hateful or intolerant views related to gender or gender identity.',
489
- },
490
- },
64
+ '!warn': {
65
+ identifier: '!warn',
66
+ configurable: false,
67
+ defaultSetting: 'warn',
68
+ flags: ['no-self'],
69
+ severity: 'none',
70
+ blurs: 'content',
71
+ behaviors: {
72
+ account: {
73
+ profileList: 'blur',
74
+ profileView: 'blur',
75
+ avatar: 'blur',
76
+ banner: 'blur',
77
+ contentList: 'blur',
78
+ contentView: 'blur',
79
+ },
80
+ profile: {
81
+ avatar: 'blur',
82
+ banner: 'blur',
83
+ displayName: 'blur',
84
+ },
85
+ content: {
86
+ contentList: 'blur',
87
+ contentView: 'blur',
88
+ },
89
+ },
90
+ locales: [],
491
91
  },
492
- },
493
- 'intolerant-sexual-orientation': {
494
- id: 'intolerant-sexual-orientation',
495
- preferences: ['ignore', 'warn', 'hide'],
496
- flags: [],
497
- onwarn: 'blur',
498
- groupId: 'intolerance',
499
- configurable: true,
500
- strings: {
501
- settings: {
502
- en: {
503
- name: 'Sexual Orientation Intolerance',
504
- description:
505
- 'Hateful or intolerant content related to sexual preferences.',
506
- },
507
- },
508
- account: {
509
- en: {
510
- name: 'Intolerance (Orientation)',
511
- description:
512
- 'This account includes hateful or intolerant content related to sexual preferences.',
513
- },
514
- },
515
- content: {
516
- en: {
517
- name: 'Intolerance (Orientation)',
518
- description:
519
- 'This content includes hateful or intolerant views related to sexual preferences.',
520
- },
521
- },
92
+ '!no-unauthenticated': {
93
+ identifier: '!no-unauthenticated',
94
+ configurable: false,
95
+ defaultSetting: 'hide',
96
+ flags: ['no-override', 'unauthed'],
97
+ severity: 'none',
98
+ blurs: 'content',
99
+ behaviors: {
100
+ account: {
101
+ profileList: 'blur',
102
+ profileView: 'blur',
103
+ avatar: 'blur',
104
+ banner: 'blur',
105
+ displayName: 'blur',
106
+ contentList: 'blur',
107
+ contentView: 'blur',
108
+ },
109
+ profile: {
110
+ avatar: 'blur',
111
+ banner: 'blur',
112
+ displayName: 'blur',
113
+ },
114
+ content: {
115
+ contentList: 'blur',
116
+ contentView: 'blur',
117
+ },
118
+ },
119
+ locales: [],
522
120
  },
523
- },
524
- 'intolerant-religion': {
525
- id: 'intolerant-religion',
526
- preferences: ['ignore', 'warn', 'hide'],
527
- flags: [],
528
- onwarn: 'blur',
529
- groupId: 'intolerance',
530
- configurable: true,
531
- strings: {
532
- settings: {
533
- en: {
534
- name: 'Religious Intolerance',
535
- description:
536
- 'Hateful or intolerant content related to religious views or practices.',
537
- },
538
- },
539
- account: {
540
- en: {
541
- name: 'Intolerance (Religious)',
542
- description:
543
- 'This account includes hateful or intolerant content related to religious views or practices.',
544
- },
545
- },
546
- content: {
547
- en: {
548
- name: 'Intolerance (Religious)',
549
- description:
550
- 'This content includes hateful or intolerant views related to religious views or practices.',
551
- },
552
- },
121
+ 'dmca-violation': {
122
+ identifier: 'dmca-violation',
123
+ configurable: false,
124
+ defaultSetting: 'hide',
125
+ flags: ['no-override', 'no-self'],
126
+ severity: 'none',
127
+ blurs: 'content',
128
+ behaviors: {
129
+ account: {
130
+ profileList: 'blur',
131
+ profileView: 'blur',
132
+ contentList: 'blur',
133
+ contentView: 'blur',
134
+ },
135
+ profile: {
136
+ profileList: 'blur',
137
+ profileView: 'blur',
138
+ },
139
+ content: {
140
+ contentList: 'blur',
141
+ contentView: 'blur',
142
+ },
143
+ },
144
+ locales: [],
553
145
  },
554
- },
555
- intolerant: {
556
- id: 'intolerant',
557
- preferences: ['ignore', 'warn', 'hide'],
558
- flags: [],
559
- onwarn: 'blur',
560
- groupId: 'intolerance',
561
- configurable: true,
562
- strings: {
563
- settings: {
564
- en: {
565
- name: 'Intolerance',
566
- description:
567
- 'A catchall for hateful or intolerant content which is not covered elsewhere.',
568
- },
569
- },
570
- account: {
571
- en: {
572
- name: 'Intolerance',
573
- description: 'This account includes hateful or intolerant content.',
574
- },
575
- },
576
- content: {
577
- en: {
578
- name: 'Intolerance',
579
- description: 'This content includes hateful or intolerant views.',
580
- },
581
- },
146
+ doxxing: {
147
+ identifier: 'doxxing',
148
+ configurable: false,
149
+ defaultSetting: 'hide',
150
+ flags: ['no-override', 'no-self'],
151
+ severity: 'none',
152
+ blurs: 'content',
153
+ behaviors: {
154
+ account: {
155
+ profileList: 'blur',
156
+ profileView: 'blur',
157
+ contentList: 'blur',
158
+ contentView: 'blur',
159
+ },
160
+ profile: {
161
+ profileList: 'blur',
162
+ profileView: 'blur',
163
+ },
164
+ content: {
165
+ contentList: 'blur',
166
+ contentView: 'blur',
167
+ },
168
+ },
169
+ locales: [],
582
170
  },
583
- },
584
- 'icon-intolerant': {
585
- id: 'icon-intolerant',
586
- preferences: ['ignore', 'warn', 'hide'],
587
- flags: [],
588
- onwarn: 'blur-media',
589
- groupId: 'intolerance',
590
- configurable: true,
591
- strings: {
592
- settings: {
593
- en: {
594
- name: 'Intolerant Iconography',
595
- description:
596
- 'Visual imagery associated with a hate group, such as the KKK or Nazi, in any context (supportive, critical, documentary, etc).',
597
- },
598
- },
599
- account: {
600
- en: {
601
- name: 'Intolerant Iconography',
602
- description:
603
- '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.',
604
- },
605
- },
606
- content: {
607
- en: {
608
- name: 'Intolerant Iconography',
609
- description:
610
- '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.',
611
- },
612
- },
171
+ porn: {
172
+ identifier: 'porn',
173
+ configurable: true,
174
+ defaultSetting: 'hide',
175
+ flags: ['adult'],
176
+ severity: 'none',
177
+ blurs: 'media',
178
+ behaviors: {
179
+ account: {
180
+ avatar: 'blur',
181
+ banner: 'blur',
182
+ },
183
+ profile: {
184
+ avatar: 'blur',
185
+ banner: 'blur',
186
+ },
187
+ content: {
188
+ contentMedia: 'blur',
189
+ },
190
+ },
191
+ locales: [],
613
192
  },
614
- },
615
- threat: {
616
- id: 'threat',
617
- preferences: ['ignore', 'warn', 'hide'],
618
- flags: [],
619
- onwarn: 'blur',
620
- groupId: 'rude',
621
- configurable: true,
622
- strings: {
623
- settings: {
624
- en: {
625
- name: 'Threats',
626
- description:
627
- 'Statements or imagery published with the intent to threaten, intimidate, or harm.',
628
- },
629
- },
630
- account: {
631
- en: {
632
- name: 'Threats',
633
- description:
634
- 'The moderators believe this account has published statements or imagery with the intent to threaten, intimidate, or harm others.',
635
- },
636
- },
637
- content: {
638
- en: {
639
- name: 'Threats',
640
- description:
641
- 'The moderators believe this content was published with the intent to threaten, intimidate, or harm others.',
642
- },
643
- },
193
+ sexual: {
194
+ identifier: 'sexual',
195
+ configurable: true,
196
+ defaultSetting: 'warn',
197
+ flags: ['adult'],
198
+ severity: 'none',
199
+ blurs: 'media',
200
+ behaviors: {
201
+ account: {
202
+ avatar: 'blur',
203
+ banner: 'blur',
204
+ },
205
+ profile: {
206
+ avatar: 'blur',
207
+ banner: 'blur',
208
+ },
209
+ content: {
210
+ contentMedia: 'blur',
211
+ },
212
+ },
213
+ locales: [],
644
214
  },
645
- },
646
- spoiler: {
647
- id: 'spoiler',
648
- preferences: ['ignore', 'warn', 'hide'],
649
- flags: [],
650
- onwarn: 'blur',
651
- groupId: 'curation',
652
- configurable: true,
653
- strings: {
654
- settings: {
655
- en: {
656
- name: 'Spoiler',
657
- description:
658
- 'Discussion about film, TV, etc which gives away plot points.',
659
- },
660
- },
661
- account: {
662
- en: {
663
- name: 'Spoiler Warning',
664
- description:
665
- 'This account contains discussion about film, TV, etc which gives away plot points.',
666
- },
667
- },
668
- content: {
669
- en: {
670
- name: 'Spoiler Warning',
671
- description:
672
- 'This content contains discussion about film, TV, etc which gives away plot points.',
673
- },
674
- },
675
- },
676
- },
677
- spam: {
678
- id: 'spam',
679
- preferences: ['ignore', 'warn', 'hide'],
680
- flags: [],
681
- onwarn: 'blur',
682
- groupId: 'spam',
683
- configurable: true,
684
- strings: {
685
- settings: {
686
- en: {
687
- name: 'Spam',
688
- description:
689
- 'Repeat, low-quality messages which are clearly not designed to add to a conversation or space.',
690
- },
691
- },
692
- account: {
693
- en: {
694
- name: 'Spam',
695
- description:
696
- 'This account publishes repeat, low-quality messages which are clearly not designed to add to a conversation or space.',
697
- },
698
- },
699
- content: {
700
- en: {
701
- name: 'Spam',
702
- description:
703
- 'This content is a part of repeat, low-quality messages which are clearly not designed to add to a conversation or space.',
704
- },
705
- },
215
+ nudity: {
216
+ identifier: 'nudity',
217
+ configurable: true,
218
+ defaultSetting: 'warn',
219
+ flags: ['adult'],
220
+ severity: 'none',
221
+ blurs: 'media',
222
+ behaviors: {
223
+ account: {
224
+ avatar: 'blur',
225
+ banner: 'blur',
226
+ },
227
+ profile: {
228
+ avatar: 'blur',
229
+ banner: 'blur',
230
+ },
231
+ content: {
232
+ contentMedia: 'blur',
233
+ },
234
+ },
235
+ locales: [],
706
236
  },
707
- },
708
- 'account-security': {
709
- id: 'account-security',
710
- preferences: ['ignore', 'warn', 'hide'],
711
- flags: [],
712
- onwarn: 'blur',
713
- groupId: 'misinfo',
714
- configurable: true,
715
- strings: {
716
- settings: {
717
- en: {
718
- name: 'Security Concerns',
719
- description:
720
- 'Content designed to hijack user accounts such as a phishing attack.',
721
- },
722
- },
723
- account: {
724
- en: {
725
- name: 'Security Warning',
726
- description:
727
- 'This account has published content designed to hijack user accounts such as a phishing attack.',
728
- },
729
- },
730
- content: {
731
- en: {
732
- name: 'Security Warning',
733
- description:
734
- 'This content is designed to hijack user accounts such as a phishing attack.',
735
- },
736
- },
237
+ gore: {
238
+ identifier: 'gore',
239
+ flags: ['adult'],
240
+ configurable: true,
241
+ defaultSetting: 'warn',
242
+ severity: 'none',
243
+ blurs: 'media',
244
+ behaviors: {
245
+ account: {
246
+ avatar: 'blur',
247
+ banner: 'blur',
248
+ },
249
+ profile: {
250
+ avatar: 'blur',
251
+ banner: 'blur',
252
+ },
253
+ content: {
254
+ contentMedia: 'blur',
255
+ },
256
+ },
257
+ locales: [],
737
258
  },
738
- },
739
- 'net-abuse': {
740
- id: 'net-abuse',
741
- preferences: ['ignore', 'warn', 'hide'],
742
- flags: [],
743
- onwarn: 'blur',
744
- groupId: 'misinfo',
745
- configurable: true,
746
- strings: {
747
- settings: {
748
- en: {
749
- name: 'Network Attacks',
750
- description:
751
- 'Content designed to attack network systems such as denial-of-service attacks.',
752
- },
753
- },
754
- account: {
755
- en: {
756
- name: 'Network Attack Warning',
757
- description:
758
- 'This account has published content designed to attack network systems such as denial-of-service attacks.',
759
- },
760
- },
761
- content: {
762
- en: {
763
- name: 'Network Attack Warning',
764
- description:
765
- 'This content is designed to attack network systems such as denial-of-service attacks.',
766
- },
767
- },
768
- },
769
- },
770
- impersonation: {
771
- id: 'impersonation',
772
- preferences: ['ignore', 'warn', 'hide'],
773
- flags: [],
774
- onwarn: 'alert',
775
- groupId: 'misinfo',
776
- configurable: true,
777
- strings: {
778
- settings: {
779
- en: {
780
- name: 'Impersonation',
781
- description: 'Accounts which falsely assert some identity.',
782
- },
783
- },
784
- account: {
785
- en: {
786
- name: 'Impersonation Warning',
787
- description:
788
- 'The moderators believe this account is lying about their identity.',
789
- },
790
- },
791
- content: {
792
- en: {
793
- name: 'Impersonation Warning',
794
- description:
795
- 'The moderators believe this account is lying about their identity.',
796
- },
797
- },
798
- },
799
- },
800
- scam: {
801
- id: 'scam',
802
- preferences: ['ignore', 'warn', 'hide'],
803
- flags: [],
804
- onwarn: 'alert',
805
- groupId: 'misinfo',
806
- configurable: true,
807
- strings: {
808
- settings: {
809
- en: {
810
- name: 'Scam',
811
- description: 'Fraudulent content.',
812
- },
813
- },
814
- account: {
815
- en: {
816
- name: 'Scam Warning',
817
- description:
818
- 'The moderators believe this account publishes fraudulent content.',
819
- },
820
- },
821
- content: {
822
- en: {
823
- name: 'Scam Warning',
824
- description: 'The moderators believe this is fraudulent content.',
825
- },
826
- },
827
- },
828
- },
829
- misleading: {
830
- id: 'misleading',
831
- preferences: ['ignore', 'warn', 'hide'],
832
- flags: [],
833
- onwarn: 'alert',
834
- groupId: 'misinfo',
835
- configurable: true,
836
- strings: {
837
- settings: {
838
- en: {
839
- name: 'Misleading',
840
- description: 'Accounts which share misleading information.',
841
- },
842
- },
843
- account: {
844
- en: {
845
- name: 'Misleading',
846
- description:
847
- 'The moderators believe this account is spreading misleading information.',
848
- },
849
- },
850
- content: {
851
- en: {
852
- name: 'Misleading',
853
- description:
854
- 'The moderators believe this account is spreading misleading information.',
855
- },
856
- },
857
- },
858
- },
859
- }
259
+ }