@atproto/api 0.5.1 → 0.5.3

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 (238) hide show
  1. package/definitions/locale/en/labels.json +6 -6
  2. package/definitions/post-moderation-behaviors.json +139 -4
  3. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +3 -10
  4. package/dist/client/types/app/bsky/{feed/getBookmarkedFeeds.d.ts → graph/getListBlocks.d.ts} +2 -2
  5. package/dist/client/types/app/bsky/graph/listblock.d.ts +8 -0
  6. package/dist/client/types/app/bsky/{feed/unbookmarkFeed.d.ts → graph/subscribeMuteList.d.ts} +1 -1
  7. package/dist/client/types/app/bsky/{feed/bookmarkFeed.d.ts → graph/unsubscribeMuteList.d.ts} +1 -1
  8. package/dist/helpers/bsky.d.ts +20 -0
  9. package/dist/index.js +9 -6
  10. package/dist/index.js.map +2 -2
  11. package/dist/mixins/bsky.d.ts +23 -0
  12. package/dist/rich-text/sanitize.d.ts +4 -0
  13. package/docs/labels.md +6 -6
  14. package/docs/moderation-behaviors/posts.md +335 -5
  15. package/package.json +1 -1
  16. package/src/moderation/const/labels.ts +6 -6
  17. package/src/moderation/index.ts +12 -9
  18. package/src/moderation/util.ts +9 -5
  19. package/tsconfig.build.tsbuildinfo +1 -1
  20. package/dist/client/types/app/bsky/actor/searchActor.d.ts +0 -22
  21. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +0 -20
  22. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +0 -29
  23. package/dist/client/types/com/atproto/repo/importRepo.d.ts +0 -19
  24. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +0 -19
  25. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +0 -31
  26. package/dist/src/client/index.d.ts +0 -462
  27. package/dist/src/client/lexicons.d.ts +0 -2910
  28. package/dist/src/client/schemas.d.ts +0 -17
  29. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
  30. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
  31. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
  32. package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
  33. package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
  34. package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
  35. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
  36. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
  37. package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
  38. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
  39. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
  40. package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
  41. package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
  42. package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
  43. package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
  44. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
  45. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
  46. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
  47. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
  48. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
  49. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
  50. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -18
  51. package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
  52. package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
  53. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
  54. package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
  55. package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
  56. package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
  57. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
  58. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
  59. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
  60. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
  61. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
  62. package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
  63. package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
  64. package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
  65. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
  66. package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
  67. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
  68. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
  69. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
  70. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  71. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  72. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  73. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
  74. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
  75. package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
  76. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
  77. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
  78. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
  79. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
  80. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
  81. package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
  82. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
  83. package/dist/src/client/types/app/bsky/like.d.ts +0 -10
  84. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
  85. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
  86. package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
  87. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
  88. package/dist/src/client/types/app/bsky/post.d.ts +0 -23
  89. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
  90. package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
  91. package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
  92. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
  93. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
  94. package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
  95. package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
  96. package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
  97. package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
  98. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  99. package/dist/src/client/types/com/atproto/account/delete.d.ts +0 -13
  100. package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
  101. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  102. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  103. package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
  104. package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
  105. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
  106. package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
  107. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
  108. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
  109. package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
  110. package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
  111. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
  112. package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
  113. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
  114. package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
  115. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
  116. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
  117. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
  118. package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
  119. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
  120. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
  121. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
  122. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
  123. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
  124. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
  125. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
  126. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
  127. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
  128. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
  129. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
  130. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
  131. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
  132. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
  133. package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
  134. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
  135. package/dist/src/client/types/com/atproto/session/create.d.ts +0 -26
  136. package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
  137. package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
  138. package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -21
  139. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
  140. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  141. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  142. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
  143. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
  144. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
  145. package/dist/src/index.d.ts +0 -4
  146. package/dist/src/schemas.d.ts +0 -19
  147. package/dist/src/session.d.ts +0 -42
  148. package/dist/src/types/app/bsky/acceptedBadge.d.ts +0 -10
  149. package/dist/src/types/app/bsky/badge.d.ts +0 -22
  150. package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
  151. package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
  152. package/dist/src/types/app/bsky/declaration.d.ts +0 -6
  153. package/dist/src/types/app/bsky/follow.d.ts +0 -9
  154. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
  155. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
  156. package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
  157. package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
  158. package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
  159. package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
  160. package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
  161. package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
  162. package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
  163. package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
  164. package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
  165. package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
  166. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  167. package/dist/src/types/app/bsky/invite.d.ts +0 -10
  168. package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
  169. package/dist/src/types/app/bsky/like.d.ts +0 -10
  170. package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
  171. package/dist/src/types/app/bsky/post.d.ts +0 -23
  172. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
  173. package/dist/src/types/app/bsky/profile.d.ts +0 -11
  174. package/dist/src/types/app/bsky/repost.d.ts +0 -10
  175. package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
  176. package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
  177. package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
  178. package/dist/src/types/com/atproto/createSession.d.ts +0 -23
  179. package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
  180. package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
  181. package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
  182. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
  183. package/dist/src/types/com/atproto/getSession.d.ts +0 -17
  184. package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
  185. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
  186. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
  187. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
  188. package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
  189. package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
  190. package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
  191. package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
  192. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
  193. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
  194. package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
  195. package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
  196. package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
  197. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
  198. package/dist/src/types/todo/adx/createAccount.d.ts +0 -36
  199. package/dist/src/types/todo/adx/createInviteCode.d.ts +0 -19
  200. package/dist/src/types/todo/adx/createSession.d.ts +0 -22
  201. package/dist/src/types/todo/adx/deleteAccount.d.ts +0 -19
  202. package/dist/src/types/todo/adx/deleteSession.d.ts +0 -19
  203. package/dist/src/types/todo/adx/getAccount.d.ts +0 -19
  204. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +0 -17
  205. package/dist/src/types/todo/adx/getSession.d.ts +0 -17
  206. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +0 -34
  207. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +0 -22
  208. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +0 -15
  209. package/dist/src/types/todo/adx/repoDescribe.d.ts +0 -21
  210. package/dist/src/types/todo/adx/repoGetRecord.d.ts +0 -20
  211. package/dist/src/types/todo/adx/repoListRecords.d.ts +0 -25
  212. package/dist/src/types/todo/adx/repoPutRecord.d.ts +0 -23
  213. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +0 -18
  214. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +0 -25
  215. package/dist/src/types/todo/adx/resolveName.d.ts +0 -17
  216. package/dist/src/types/todo/adx/syncGetRepo.d.ts +0 -15
  217. package/dist/src/types/todo/adx/syncGetRoot.d.ts +0 -17
  218. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +0 -14
  219. package/dist/src/types/todo/social/badge.d.ts +0 -23
  220. package/dist/src/types/todo/social/follow.d.ts +0 -5
  221. package/dist/src/types/todo/social/getAuthorFeed.d.ts +0 -55
  222. package/dist/src/types/todo/social/getFeed.d.ts +0 -55
  223. package/dist/src/types/todo/social/getHomeFeed.d.ts +0 -55
  224. package/dist/src/types/todo/social/getLikedBy.d.ts +0 -26
  225. package/dist/src/types/todo/social/getNotificationCount.d.ts +0 -16
  226. package/dist/src/types/todo/social/getNotifications.d.ts +0 -31
  227. package/dist/src/types/todo/social/getPostThread.d.ts +0 -54
  228. package/dist/src/types/todo/social/getProfile.d.ts +0 -40
  229. package/dist/src/types/todo/social/getRepostedBy.d.ts +0 -26
  230. package/dist/src/types/todo/social/getUserFollowers.d.ts +0 -30
  231. package/dist/src/types/todo/social/getUserFollows.d.ts +0 -30
  232. package/dist/src/types/todo/social/like.d.ts +0 -5
  233. package/dist/src/types/todo/social/mediaEmbed.d.ts +0 -15
  234. package/dist/src/types/todo/social/post.d.ts +0 -18
  235. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +0 -19
  236. package/dist/src/types/todo/social/profile.d.ts +0 -10
  237. package/dist/src/types/todo/social/repost.d.ts +0 -5
  238. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -75,11 +75,11 @@
75
75
  "description": "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)."
76
76
  },
77
77
  "account": {
78
- "name": "Pornography",
78
+ "name": "Adult Content",
79
79
  "description": "This account contains imagery of full-frontal nudity or explicit sexual activity."
80
80
  },
81
81
  "content": {
82
- "name": "Pornography",
82
+ "name": "Adult Content",
83
83
  "description": "This content contains imagery of full-frontal nudity or explicit sexual activity."
84
84
  }
85
85
  },
@@ -89,11 +89,11 @@
89
89
  "description": "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."
90
90
  },
91
91
  "account": {
92
- "name": "Sexually Suggestive",
92
+ "name": "Suggestive Content",
93
93
  "description": "This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
94
94
  },
95
95
  "content": {
96
- "name": "Sexually Suggestive",
96
+ "name": "Suggestive Content",
97
97
  "description": "This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
98
98
  }
99
99
  },
@@ -103,11 +103,11 @@
103
103
  "description": "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."
104
104
  },
105
105
  "account": {
106
- "name": "Nudity",
106
+ "name": "Adult Content",
107
107
  "description": "This account contains imagery which portrays nudity in a non-sexual or artistic setting."
108
108
  },
109
109
  "content": {
110
- "name": "Nudity",
110
+ "name": "Adult Content",
111
111
  "description": "This content contains imagery which portrays nudity in a non-sexual or artistic setting."
112
112
  }
113
113
  },
@@ -379,7 +379,8 @@
379
379
  "quoteAuthor": "alice",
380
380
  "labels": {"quotedPost": ["porn"]},
381
381
  "behaviors": {
382
- "content": {"cause": "label:porn", "filter": true}
382
+ "content": {"cause": "label:porn", "filter": true},
383
+ "embed": {"cause": "label:porn", "blur": true}
383
384
  }
384
385
  },
385
386
  "Blur-media label ('porn') on quoted author account (hide)": {
@@ -428,6 +429,7 @@
428
429
  "quoteAuthor": "alice",
429
430
  "labels": {"quotedPost": ["porn"]},
430
431
  "behaviors": {
432
+ "embed": {"cause": "label:porn", "blur": true}
431
433
  }
432
434
  },
433
435
  "Blur-media label ('porn') on quoted author account (warn)": {
@@ -653,7 +655,8 @@
653
655
  "quoteAuthor": "alice",
654
656
  "labels": {"quotedPost": ["porn"]},
655
657
  "behaviors": {
656
- "content": {"cause": "label:porn", "filter": true}
658
+ "content": {"cause": "label:porn", "filter": true},
659
+ "embed": {"cause": "label:porn", "blur": true, "noOverride": true}
657
660
  }
658
661
  },
659
662
  "Adult-only label on quoted author account when adult content is disabled": {
@@ -673,7 +676,7 @@
673
676
  "author": "self",
674
677
  "labels": {"post": ["!hide"]},
675
678
  "behaviors": {
676
- "content": {"cause": "label:!hide", "alert": true}
679
+ "content": {"cause": "label:!hide", "blur": true}
677
680
  }
678
681
  },
679
682
  "Self-post: Imperative label ('!hide') on author profile": {
@@ -697,7 +700,7 @@
697
700
  "quoteAuthor": "self",
698
701
  "labels": {"quotedPost": ["!hide"]},
699
702
  "behaviors": {
700
- "embed": {"cause": "label:!hide", "alert": true}
703
+ "embed": {"cause": "label:!hide", "blur": true}
701
704
  }
702
705
  },
703
706
  "Self-post: Imperative label ('!hide') on quoted author account": {
@@ -709,6 +712,138 @@
709
712
  "behaviors": {}
710
713
  },
711
714
 
715
+ "Self-post: Imperative label ('!warn') on post": {
716
+ "cfg": "none",
717
+ "subject": "post",
718
+ "author": "self",
719
+ "labels": {"post": ["!warn"]},
720
+ "behaviors": {
721
+ "content": {"cause": "label:!warn", "blur": true}
722
+ }
723
+ },
724
+ "Self-post: Imperative label ('!warn') on author profile": {
725
+ "cfg": "none",
726
+ "subject": "post",
727
+ "author": "self",
728
+ "labels": {"profile": ["!warn"]},
729
+ "behaviors": {}
730
+ },
731
+ "Self-post: Imperative label ('!warn') on author account": {
732
+ "cfg": "none",
733
+ "subject": "post",
734
+ "author": "self",
735
+ "labels": {"account": ["!warn"]},
736
+ "behaviors": {}
737
+ },
738
+ "Self-post: Imperative label ('!warn') on quoted post": {
739
+ "cfg": "none",
740
+ "subject": "post",
741
+ "author": "self",
742
+ "quoteAuthor": "self",
743
+ "labels": {"quotedPost": ["!warn"]},
744
+ "behaviors": {
745
+ "embed": {"cause": "label:!warn", "blur": true}
746
+ }
747
+ },
748
+ "Self-post: Imperative label ('!warn') on quoted author account": {
749
+ "cfg": "none",
750
+ "subject": "post",
751
+ "author": "self",
752
+ "quoteAuthor": "self",
753
+ "labels": {"quotedAccount": ["!warn"]},
754
+ "behaviors": {}
755
+ },
756
+
757
+ "Self-post: Blur-media label ('porn') on post (hide)": {
758
+ "cfg": "porn-hide",
759
+ "subject": "post",
760
+ "author": "self",
761
+ "labels": {"post": ["porn"]},
762
+ "behaviors": {
763
+ "embed": {"cause": "label:porn", "blur": true}
764
+ }
765
+ },
766
+ "Self-post: Blur-media label ('porn') on author profile (hide)": {
767
+ "cfg": "porn-hide",
768
+ "subject": "post",
769
+ "author": "self",
770
+ "labels": {"profile": ["porn"]},
771
+ "behaviors": {
772
+ }
773
+ },
774
+ "Self-post: Blur-media label ('porn') on author account (hide)": {
775
+ "cfg": "porn-hide",
776
+ "subject": "post",
777
+ "author": "self",
778
+ "labels": {"account": ["porn"]},
779
+ "behaviors": {
780
+ }
781
+ },
782
+ "Self-post: Blur-media label ('porn') on quoted post (hide)": {
783
+ "cfg": "porn-hide",
784
+ "subject": "post",
785
+ "author": "self",
786
+ "quoteAuthor": "self",
787
+ "labels": {"quotedPost": ["porn"]},
788
+ "behaviors": {
789
+ "embed": {"cause": "label:porn", "blur": true}
790
+ }
791
+ },
792
+ "Self-post: Blur-media label ('porn') on quoted author account (hide)": {
793
+ "cfg": "porn-hide",
794
+ "subject": "post",
795
+ "author": "self",
796
+ "quoteAuthor": "self",
797
+ "labels": {"quotedAccount": ["porn"]},
798
+ "behaviors": {
799
+ }
800
+ },
801
+
802
+ "Self-post: Blur-media label ('porn') on post (warn)": {
803
+ "cfg": "porn-warn",
804
+ "subject": "post",
805
+ "author": "self",
806
+ "labels": {"post": ["porn"]},
807
+ "behaviors": {
808
+ "embed": {"cause": "label:porn", "blur": true}
809
+ }
810
+ },
811
+ "Self-post: Blur-media label ('porn') on author profile (warn)": {
812
+ "cfg": "porn-warn",
813
+ "subject": "post",
814
+ "author": "self",
815
+ "labels": {"profile": ["porn"]},
816
+ "behaviors": {
817
+ }
818
+ },
819
+ "Self-post: Blur-media label ('porn') on author account (warn)": {
820
+ "cfg": "porn-warn",
821
+ "subject": "post",
822
+ "author": "self",
823
+ "labels": {"account": ["porn"]},
824
+ "behaviors": {
825
+ }
826
+ },
827
+ "Self-post: Blur-media label ('porn') on quoted post (warn)": {
828
+ "cfg": "porn-warn",
829
+ "subject": "post",
830
+ "author": "self",
831
+ "quoteAuthor": "self",
832
+ "labels": {"quotedPost": ["porn"]},
833
+ "behaviors": {
834
+ "embed": {"cause": "label:porn", "blur": true}
835
+ }
836
+ },
837
+ "Self-post: Blur-media label ('porn') on quoted author account (warn)": {
838
+ "cfg": "porn-warn",
839
+ "subject": "post",
840
+ "author": "self",
841
+ "quoteAuthor": "self",
842
+ "labels": {"quotedAccount": ["porn"]},
843
+ "behaviors": {
844
+ }
845
+ },
846
+
712
847
  "Post with blocked author": {
713
848
  "cfg": "none",
714
849
  "subject": "post",
@@ -1,19 +1,12 @@
1
1
  import { Headers, XRPCError } from '@atproto/xrpc';
2
+ import { BlobRef } from '@atproto/lexicon';
2
3
  export interface QueryParams {
3
4
  }
4
5
  export interface InputSchema {
5
6
  displayName?: string;
6
7
  description?: string | null;
7
- avatar?: {
8
- cid: string;
9
- mimeType: string;
10
- [k: string]: unknown;
11
- } | null;
12
- banner?: {
13
- cid: string;
14
- mimeType: string;
15
- [k: string]: unknown;
16
- } | null;
8
+ avatar?: BlobRef | null;
9
+ banner?: BlobRef | null;
17
10
  [k: string]: unknown;
18
11
  }
19
12
  export interface OutputSchema {
@@ -1,5 +1,5 @@
1
1
  import { Headers } from '@atproto/xrpc';
2
- import * as AppBskyFeedDefs from './defs';
2
+ import * as AppBskyGraphDefs from './defs';
3
3
  export interface QueryParams {
4
4
  limit?: number;
5
5
  cursor?: string;
@@ -7,7 +7,7 @@ export interface QueryParams {
7
7
  export declare type InputSchema = undefined;
8
8
  export interface OutputSchema {
9
9
  cursor?: string;
10
- feeds: AppBskyFeedDefs.GeneratorView[];
10
+ lists: AppBskyGraphDefs.ListView[];
11
11
  [k: string]: unknown;
12
12
  }
13
13
  export interface CallOptions {
@@ -0,0 +1,8 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface Record {
3
+ subject: string;
4
+ createdAt: string;
5
+ [k: string]: unknown;
6
+ }
7
+ export declare function isRecord(v: unknown): v is Record;
8
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -2,7 +2,7 @@ import { Headers } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export interface InputSchema {
5
- feed: string;
5
+ list: string;
6
6
  [k: string]: unknown;
7
7
  }
8
8
  export interface CallOptions {
@@ -2,7 +2,7 @@ import { Headers } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export interface InputSchema {
5
- feed: string;
5
+ list: string;
6
6
  [k: string]: unknown;
7
7
  }
8
8
  export interface CallOptions {
@@ -0,0 +1,20 @@
1
+ import { AtpAgent } from '../agent';
2
+ export declare class Bsky {
3
+ private agent;
4
+ constructor(agent: AtpAgent);
5
+ like(uri: string, cid: string): Promise<{
6
+ uri: string;
7
+ cid: string;
8
+ }>;
9
+ unlike(likeUri: string): Promise<void>;
10
+ repost(uri: string, cid: string): Promise<{
11
+ uri: string;
12
+ cid: string;
13
+ }>;
14
+ unrepost(repostUri: string): Promise<void>;
15
+ follow(subjectDid: string): Promise<{
16
+ uri: string;
17
+ cid: string;
18
+ }>;
19
+ unfollow(followUri: string): Promise<void>;
20
+ }
package/dist/index.js CHANGED
@@ -27530,13 +27530,13 @@ var LABELS = {
27530
27530
  },
27531
27531
  account: {
27532
27532
  en: {
27533
- name: "Pornography",
27533
+ name: "Adult Content",
27534
27534
  description: "This account contains imagery of full-frontal nudity or explicit sexual activity."
27535
27535
  }
27536
27536
  },
27537
27537
  content: {
27538
27538
  en: {
27539
- name: "Pornography",
27539
+ name: "Adult Content",
27540
27540
  description: "This content contains imagery of full-frontal nudity or explicit sexual activity."
27541
27541
  }
27542
27542
  }
@@ -27558,13 +27558,13 @@ var LABELS = {
27558
27558
  },
27559
27559
  account: {
27560
27560
  en: {
27561
- name: "Sexually Suggestive",
27561
+ name: "Suggestive Content",
27562
27562
  description: "This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
27563
27563
  }
27564
27564
  },
27565
27565
  content: {
27566
27566
  en: {
27567
- name: "Sexually Suggestive",
27567
+ name: "Suggestive Content",
27568
27568
  description: "This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
27569
27569
  }
27570
27570
  }
@@ -27586,13 +27586,13 @@ var LABELS = {
27586
27586
  },
27587
27587
  account: {
27588
27588
  en: {
27589
- name: "Nudity",
27589
+ name: "Adult Content",
27590
27590
  description: "This account contains imagery which portrays nudity in a non-sexual or artistic setting."
27591
27591
  }
27592
27592
  },
27593
27593
  content: {
27594
27594
  en: {
27595
- name: "Nudity",
27595
+ name: "Adult Content",
27596
27596
  description: "This content contains imagery which portrays nudity in a non-sexual or artistic setting."
27597
27597
  }
27598
27598
  }
@@ -28454,6 +28454,9 @@ function moderatePost(subject, opts) {
28454
28454
  quote = decideQuotedPostWithMedia(subject.embed, opts);
28455
28455
  quotedAccount = decideQuotedPostWithMediaAccount(subject.embed, opts);
28456
28456
  }
28457
+ if (quote?.blurMedia) {
28458
+ quote.blur = true;
28459
+ }
28457
28460
  if (!isModerationDecisionNoop(post) && post.did === opts.userDid) {
28458
28461
  downgradeDecision(post, { alert: true });
28459
28462
  }