@atproto/pds 0.4.19 → 0.4.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api/app/bsky/actor/index.d.ts.map +1 -1
  3. package/dist/api/app/bsky/actor/index.js +0 -6
  4. package/dist/api/app/bsky/actor/index.js.map +1 -1
  5. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  6. package/dist/api/app/bsky/feed/getFeed.js +1 -3
  7. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  8. package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
  9. package/dist/api/app/bsky/feed/index.js +0 -20
  10. package/dist/api/app/bsky/feed/index.js.map +1 -1
  11. package/dist/api/app/bsky/index.d.ts.map +1 -1
  12. package/dist/api/app/bsky/index.js +0 -6
  13. package/dist/api/app/bsky/index.js.map +1 -1
  14. package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
  15. package/dist/api/app/bsky/notification/index.js +0 -6
  16. package/dist/api/app/bsky/notification/index.js.map +1 -1
  17. package/dist/api/com/atproto/index.d.ts.map +1 -1
  18. package/dist/api/com/atproto/index.js +0 -2
  19. package/dist/api/com/atproto/index.js.map +1 -1
  20. package/dist/api/com/atproto/repo/getRecord.js +1 -1
  21. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  22. package/dist/api/index.d.ts.map +1 -1
  23. package/dist/api/index.js +0 -2
  24. package/dist/api/index.js.map +1 -1
  25. package/dist/context.d.ts +3 -0
  26. package/dist/context.d.ts.map +1 -1
  27. package/dist/context.js +30 -0
  28. package/dist/context.js.map +1 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +26 -45
  31. package/dist/index.js.map +1 -1
  32. package/dist/pipethrough.d.ts +12 -22
  33. package/dist/pipethrough.d.ts.map +1 -1
  34. package/dist/pipethrough.js +159 -81
  35. package/dist/pipethrough.js.map +1 -1
  36. package/package.json +8 -8
  37. package/src/api/app/bsky/actor/index.ts +0 -6
  38. package/src/api/app/bsky/feed/getFeed.ts +1 -3
  39. package/src/api/app/bsky/feed/index.ts +0 -20
  40. package/src/api/app/bsky/index.ts +0 -6
  41. package/src/api/app/bsky/notification/index.ts +0 -7
  42. package/src/api/com/atproto/index.ts +0 -2
  43. package/src/api/com/atproto/repo/getRecord.ts +1 -1
  44. package/src/api/index.ts +0 -2
  45. package/src/context.ts +34 -1
  46. package/src/index.ts +27 -51
  47. package/src/pipethrough.ts +184 -114
  48. package/dist/api/app/bsky/actor/getSuggestions.d.ts +0 -4
  49. package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +0 -1
  50. package/dist/api/app/bsky/actor/getSuggestions.js +0 -19
  51. package/dist/api/app/bsky/actor/getSuggestions.js.map +0 -1
  52. package/dist/api/app/bsky/actor/searchActors.d.ts +0 -4
  53. package/dist/api/app/bsky/actor/searchActors.d.ts.map +0 -1
  54. package/dist/api/app/bsky/actor/searchActors.js +0 -17
  55. package/dist/api/app/bsky/actor/searchActors.js.map +0 -1
  56. package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts +0 -4
  57. package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +0 -1
  58. package/dist/api/app/bsky/actor/searchActorsTypeahead.js +0 -17
  59. package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +0 -1
  60. package/dist/api/app/bsky/feed/getActorFeeds.d.ts +0 -4
  61. package/dist/api/app/bsky/feed/getActorFeeds.d.ts.map +0 -1
  62. package/dist/api/app/bsky/feed/getActorFeeds.js +0 -17
  63. package/dist/api/app/bsky/feed/getActorFeeds.js.map +0 -1
  64. package/dist/api/app/bsky/feed/getFeedGenerator.d.ts +0 -4
  65. package/dist/api/app/bsky/feed/getFeedGenerator.d.ts.map +0 -1
  66. package/dist/api/app/bsky/feed/getFeedGenerator.js +0 -17
  67. package/dist/api/app/bsky/feed/getFeedGenerator.js.map +0 -1
  68. package/dist/api/app/bsky/feed/getFeedGenerators.d.ts +0 -4
  69. package/dist/api/app/bsky/feed/getFeedGenerators.d.ts.map +0 -1
  70. package/dist/api/app/bsky/feed/getFeedGenerators.js +0 -17
  71. package/dist/api/app/bsky/feed/getFeedGenerators.js.map +0 -1
  72. package/dist/api/app/bsky/feed/getLikes.d.ts +0 -4
  73. package/dist/api/app/bsky/feed/getLikes.d.ts.map +0 -1
  74. package/dist/api/app/bsky/feed/getLikes.js +0 -17
  75. package/dist/api/app/bsky/feed/getLikes.js.map +0 -1
  76. package/dist/api/app/bsky/feed/getListFeed.d.ts +0 -4
  77. package/dist/api/app/bsky/feed/getListFeed.d.ts.map +0 -1
  78. package/dist/api/app/bsky/feed/getListFeed.js +0 -17
  79. package/dist/api/app/bsky/feed/getListFeed.js.map +0 -1
  80. package/dist/api/app/bsky/feed/getPosts.d.ts +0 -4
  81. package/dist/api/app/bsky/feed/getPosts.d.ts.map +0 -1
  82. package/dist/api/app/bsky/feed/getPosts.js +0 -17
  83. package/dist/api/app/bsky/feed/getPosts.js.map +0 -1
  84. package/dist/api/app/bsky/feed/getRepostedBy.d.ts +0 -4
  85. package/dist/api/app/bsky/feed/getRepostedBy.d.ts.map +0 -1
  86. package/dist/api/app/bsky/feed/getRepostedBy.js +0 -17
  87. package/dist/api/app/bsky/feed/getRepostedBy.js.map +0 -1
  88. package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts +0 -4
  89. package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts.map +0 -1
  90. package/dist/api/app/bsky/feed/getSuggestedFeeds.js +0 -17
  91. package/dist/api/app/bsky/feed/getSuggestedFeeds.js.map +0 -1
  92. package/dist/api/app/bsky/feed/searchPosts.d.ts +0 -4
  93. package/dist/api/app/bsky/feed/searchPosts.d.ts.map +0 -1
  94. package/dist/api/app/bsky/feed/searchPosts.js +0 -17
  95. package/dist/api/app/bsky/feed/searchPosts.js.map +0 -1
  96. package/dist/api/app/bsky/feed/sendInteractions.d.ts +0 -4
  97. package/dist/api/app/bsky/feed/sendInteractions.d.ts.map +0 -1
  98. package/dist/api/app/bsky/feed/sendInteractions.js +0 -14
  99. package/dist/api/app/bsky/feed/sendInteractions.js.map +0 -1
  100. package/dist/api/app/bsky/graph/getBlocks.d.ts +0 -4
  101. package/dist/api/app/bsky/graph/getBlocks.d.ts.map +0 -1
  102. package/dist/api/app/bsky/graph/getBlocks.js +0 -17
  103. package/dist/api/app/bsky/graph/getBlocks.js.map +0 -1
  104. package/dist/api/app/bsky/graph/getFollowers.d.ts +0 -4
  105. package/dist/api/app/bsky/graph/getFollowers.d.ts.map +0 -1
  106. package/dist/api/app/bsky/graph/getFollowers.js +0 -17
  107. package/dist/api/app/bsky/graph/getFollowers.js.map +0 -1
  108. package/dist/api/app/bsky/graph/getFollows.d.ts +0 -4
  109. package/dist/api/app/bsky/graph/getFollows.d.ts.map +0 -1
  110. package/dist/api/app/bsky/graph/getFollows.js +0 -17
  111. package/dist/api/app/bsky/graph/getFollows.js.map +0 -1
  112. package/dist/api/app/bsky/graph/getList.d.ts +0 -4
  113. package/dist/api/app/bsky/graph/getList.d.ts.map +0 -1
  114. package/dist/api/app/bsky/graph/getList.js +0 -17
  115. package/dist/api/app/bsky/graph/getList.js.map +0 -1
  116. package/dist/api/app/bsky/graph/getListBlocks.d.ts +0 -4
  117. package/dist/api/app/bsky/graph/getListBlocks.d.ts.map +0 -1
  118. package/dist/api/app/bsky/graph/getListBlocks.js +0 -17
  119. package/dist/api/app/bsky/graph/getListBlocks.js.map +0 -1
  120. package/dist/api/app/bsky/graph/getListMutes.d.ts +0 -4
  121. package/dist/api/app/bsky/graph/getListMutes.d.ts.map +0 -1
  122. package/dist/api/app/bsky/graph/getListMutes.js +0 -17
  123. package/dist/api/app/bsky/graph/getListMutes.js.map +0 -1
  124. package/dist/api/app/bsky/graph/getLists.d.ts +0 -4
  125. package/dist/api/app/bsky/graph/getLists.d.ts.map +0 -1
  126. package/dist/api/app/bsky/graph/getLists.js +0 -17
  127. package/dist/api/app/bsky/graph/getLists.js.map +0 -1
  128. package/dist/api/app/bsky/graph/getMutes.d.ts +0 -4
  129. package/dist/api/app/bsky/graph/getMutes.d.ts.map +0 -1
  130. package/dist/api/app/bsky/graph/getMutes.js +0 -17
  131. package/dist/api/app/bsky/graph/getMutes.js.map +0 -1
  132. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts +0 -4
  133. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +0 -1
  134. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +0 -17
  135. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +0 -1
  136. package/dist/api/app/bsky/graph/index.d.ts +0 -4
  137. package/dist/api/app/bsky/graph/index.d.ts.map +0 -1
  138. package/dist/api/app/bsky/graph/index.js +0 -35
  139. package/dist/api/app/bsky/graph/index.js.map +0 -1
  140. package/dist/api/app/bsky/graph/muteActor.d.ts +0 -4
  141. package/dist/api/app/bsky/graph/muteActor.d.ts.map +0 -1
  142. package/dist/api/app/bsky/graph/muteActor.js +0 -14
  143. package/dist/api/app/bsky/graph/muteActor.js.map +0 -1
  144. package/dist/api/app/bsky/graph/muteActorList.d.ts +0 -4
  145. package/dist/api/app/bsky/graph/muteActorList.d.ts.map +0 -1
  146. package/dist/api/app/bsky/graph/muteActorList.js +0 -14
  147. package/dist/api/app/bsky/graph/muteActorList.js.map +0 -1
  148. package/dist/api/app/bsky/graph/unmuteActor.d.ts +0 -4
  149. package/dist/api/app/bsky/graph/unmuteActor.d.ts.map +0 -1
  150. package/dist/api/app/bsky/graph/unmuteActor.js +0 -14
  151. package/dist/api/app/bsky/graph/unmuteActor.js.map +0 -1
  152. package/dist/api/app/bsky/graph/unmuteActorList.d.ts +0 -4
  153. package/dist/api/app/bsky/graph/unmuteActorList.d.ts.map +0 -1
  154. package/dist/api/app/bsky/graph/unmuteActorList.js +0 -14
  155. package/dist/api/app/bsky/graph/unmuteActorList.js.map +0 -1
  156. package/dist/api/app/bsky/labeler/getServices.d.ts +0 -4
  157. package/dist/api/app/bsky/labeler/getServices.d.ts.map +0 -1
  158. package/dist/api/app/bsky/labeler/getServices.js +0 -14
  159. package/dist/api/app/bsky/labeler/getServices.js.map +0 -1
  160. package/dist/api/app/bsky/labeler/index.d.ts +0 -4
  161. package/dist/api/app/bsky/labeler/index.d.ts.map +0 -1
  162. package/dist/api/app/bsky/labeler/index.js +0 -11
  163. package/dist/api/app/bsky/labeler/index.js.map +0 -1
  164. package/dist/api/app/bsky/notification/getUnreadCount.d.ts +0 -4
  165. package/dist/api/app/bsky/notification/getUnreadCount.d.ts.map +0 -1
  166. package/dist/api/app/bsky/notification/getUnreadCount.js +0 -17
  167. package/dist/api/app/bsky/notification/getUnreadCount.js.map +0 -1
  168. package/dist/api/app/bsky/notification/listNotifications.d.ts +0 -4
  169. package/dist/api/app/bsky/notification/listNotifications.d.ts.map +0 -1
  170. package/dist/api/app/bsky/notification/listNotifications.js +0 -17
  171. package/dist/api/app/bsky/notification/listNotifications.js.map +0 -1
  172. package/dist/api/app/bsky/notification/updateSeen.d.ts +0 -4
  173. package/dist/api/app/bsky/notification/updateSeen.d.ts.map +0 -1
  174. package/dist/api/app/bsky/notification/updateSeen.js +0 -14
  175. package/dist/api/app/bsky/notification/updateSeen.js.map +0 -1
  176. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts +0 -4
  177. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +0 -1
  178. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js +0 -18
  179. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +0 -1
  180. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +0 -4
  181. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts.map +0 -1
  182. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js +0 -18
  183. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js.map +0 -1
  184. package/dist/api/app/bsky/unspecced/index.d.ts +0 -4
  185. package/dist/api/app/bsky/unspecced/index.d.ts.map +0 -1
  186. package/dist/api/app/bsky/unspecced/index.js +0 -14
  187. package/dist/api/app/bsky/unspecced/index.js.map +0 -1
  188. package/dist/api/com/atproto/moderation/createReport.d.ts +0 -4
  189. package/dist/api/com/atproto/moderation/createReport.d.ts.map +0 -1
  190. package/dist/api/com/atproto/moderation/createReport.js +0 -14
  191. package/dist/api/com/atproto/moderation/createReport.js.map +0 -1
  192. package/dist/api/com/atproto/moderation/index.d.ts +0 -4
  193. package/dist/api/com/atproto/moderation/index.d.ts.map +0 -1
  194. package/dist/api/com/atproto/moderation/index.js +0 -11
  195. package/dist/api/com/atproto/moderation/index.js.map +0 -1
  196. package/dist/api/tools/ozone/communication/createTemplate.d.ts +0 -4
  197. package/dist/api/tools/ozone/communication/createTemplate.d.ts.map +0 -1
  198. package/dist/api/tools/ozone/communication/createTemplate.js +0 -14
  199. package/dist/api/tools/ozone/communication/createTemplate.js.map +0 -1
  200. package/dist/api/tools/ozone/communication/deleteTemplate.d.ts +0 -4
  201. package/dist/api/tools/ozone/communication/deleteTemplate.d.ts.map +0 -1
  202. package/dist/api/tools/ozone/communication/deleteTemplate.js +0 -14
  203. package/dist/api/tools/ozone/communication/deleteTemplate.js.map +0 -1
  204. package/dist/api/tools/ozone/communication/index.d.ts +0 -4
  205. package/dist/api/tools/ozone/communication/index.d.ts.map +0 -1
  206. package/dist/api/tools/ozone/communication/index.js +0 -17
  207. package/dist/api/tools/ozone/communication/index.js.map +0 -1
  208. package/dist/api/tools/ozone/communication/listTemplates.d.ts +0 -4
  209. package/dist/api/tools/ozone/communication/listTemplates.d.ts.map +0 -1
  210. package/dist/api/tools/ozone/communication/listTemplates.js +0 -14
  211. package/dist/api/tools/ozone/communication/listTemplates.js.map +0 -1
  212. package/dist/api/tools/ozone/communication/updateTemplate.d.ts +0 -4
  213. package/dist/api/tools/ozone/communication/updateTemplate.d.ts.map +0 -1
  214. package/dist/api/tools/ozone/communication/updateTemplate.js +0 -14
  215. package/dist/api/tools/ozone/communication/updateTemplate.js.map +0 -1
  216. package/dist/api/tools/ozone/index.d.ts +0 -4
  217. package/dist/api/tools/ozone/index.d.ts.map +0 -1
  218. package/dist/api/tools/ozone/index.js +0 -13
  219. package/dist/api/tools/ozone/index.js.map +0 -1
  220. package/dist/api/tools/ozone/moderation/emitEvent.d.ts +0 -4
  221. package/dist/api/tools/ozone/moderation/emitEvent.d.ts.map +0 -1
  222. package/dist/api/tools/ozone/moderation/emitEvent.js +0 -14
  223. package/dist/api/tools/ozone/moderation/emitEvent.js.map +0 -1
  224. package/dist/api/tools/ozone/moderation/getEvent.d.ts +0 -4
  225. package/dist/api/tools/ozone/moderation/getEvent.d.ts.map +0 -1
  226. package/dist/api/tools/ozone/moderation/getEvent.js +0 -14
  227. package/dist/api/tools/ozone/moderation/getEvent.js.map +0 -1
  228. package/dist/api/tools/ozone/moderation/getRecord.d.ts +0 -4
  229. package/dist/api/tools/ozone/moderation/getRecord.d.ts.map +0 -1
  230. package/dist/api/tools/ozone/moderation/getRecord.js +0 -14
  231. package/dist/api/tools/ozone/moderation/getRecord.js.map +0 -1
  232. package/dist/api/tools/ozone/moderation/getRepo.d.ts +0 -4
  233. package/dist/api/tools/ozone/moderation/getRepo.d.ts.map +0 -1
  234. package/dist/api/tools/ozone/moderation/getRepo.js +0 -14
  235. package/dist/api/tools/ozone/moderation/getRepo.js.map +0 -1
  236. package/dist/api/tools/ozone/moderation/index.d.ts +0 -4
  237. package/dist/api/tools/ozone/moderation/index.d.ts.map +0 -1
  238. package/dist/api/tools/ozone/moderation/index.js +0 -23
  239. package/dist/api/tools/ozone/moderation/index.js.map +0 -1
  240. package/dist/api/tools/ozone/moderation/queryEvents.d.ts +0 -4
  241. package/dist/api/tools/ozone/moderation/queryEvents.d.ts.map +0 -1
  242. package/dist/api/tools/ozone/moderation/queryEvents.js +0 -14
  243. package/dist/api/tools/ozone/moderation/queryEvents.js.map +0 -1
  244. package/dist/api/tools/ozone/moderation/queryStatuses.d.ts +0 -4
  245. package/dist/api/tools/ozone/moderation/queryStatuses.d.ts.map +0 -1
  246. package/dist/api/tools/ozone/moderation/queryStatuses.js +0 -14
  247. package/dist/api/tools/ozone/moderation/queryStatuses.js.map +0 -1
  248. package/dist/api/tools/ozone/moderation/searchRepos.d.ts +0 -4
  249. package/dist/api/tools/ozone/moderation/searchRepos.d.ts.map +0 -1
  250. package/dist/api/tools/ozone/moderation/searchRepos.js +0 -14
  251. package/dist/api/tools/ozone/moderation/searchRepos.js.map +0 -1
  252. package/src/api/app/bsky/actor/getSuggestions.ts +0 -17
  253. package/src/api/app/bsky/actor/searchActors.ts +0 -15
  254. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +0 -15
  255. package/src/api/app/bsky/feed/getActorFeeds.ts +0 -15
  256. package/src/api/app/bsky/feed/getFeedGenerator.ts +0 -15
  257. package/src/api/app/bsky/feed/getFeedGenerators.ts +0 -15
  258. package/src/api/app/bsky/feed/getLikes.ts +0 -15
  259. package/src/api/app/bsky/feed/getListFeed.ts +0 -15
  260. package/src/api/app/bsky/feed/getPosts.ts +0 -15
  261. package/src/api/app/bsky/feed/getRepostedBy.ts +0 -15
  262. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +0 -15
  263. package/src/api/app/bsky/feed/searchPosts.ts +0 -15
  264. package/src/api/app/bsky/feed/sendInteractions.ts +0 -13
  265. package/src/api/app/bsky/graph/getBlocks.ts +0 -15
  266. package/src/api/app/bsky/graph/getFollowers.ts +0 -15
  267. package/src/api/app/bsky/graph/getFollows.ts +0 -15
  268. package/src/api/app/bsky/graph/getList.ts +0 -15
  269. package/src/api/app/bsky/graph/getListBlocks.ts +0 -15
  270. package/src/api/app/bsky/graph/getListMutes.ts +0 -15
  271. package/src/api/app/bsky/graph/getLists.ts +0 -15
  272. package/src/api/app/bsky/graph/getMutes.ts +0 -15
  273. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -15
  274. package/src/api/app/bsky/graph/index.ts +0 -31
  275. package/src/api/app/bsky/graph/muteActor.ts +0 -13
  276. package/src/api/app/bsky/graph/muteActorList.ts +0 -13
  277. package/src/api/app/bsky/graph/unmuteActor.ts +0 -13
  278. package/src/api/app/bsky/graph/unmuteActorList.ts +0 -13
  279. package/src/api/app/bsky/labeler/getServices.ts +0 -13
  280. package/src/api/app/bsky/labeler/index.ts +0 -7
  281. package/src/api/app/bsky/notification/getUnreadCount.ts +0 -15
  282. package/src/api/app/bsky/notification/listNotifications.ts +0 -15
  283. package/src/api/app/bsky/notification/updateSeen.ts +0 -13
  284. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -16
  285. package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +0 -16
  286. package/src/api/app/bsky/unspecced/index.ts +0 -10
  287. package/src/api/com/atproto/moderation/createReport.ts +0 -13
  288. package/src/api/com/atproto/moderation/index.ts +0 -7
  289. package/src/api/tools/ozone/communication/createTemplate.ts +0 -13
  290. package/src/api/tools/ozone/communication/deleteTemplate.ts +0 -13
  291. package/src/api/tools/ozone/communication/index.ts +0 -13
  292. package/src/api/tools/ozone/communication/listTemplates.ts +0 -13
  293. package/src/api/tools/ozone/communication/updateTemplate.ts +0 -13
  294. package/src/api/tools/ozone/index.ts +0 -9
  295. package/src/api/tools/ozone/moderation/emitEvent.ts +0 -13
  296. package/src/api/tools/ozone/moderation/getEvent.ts +0 -13
  297. package/src/api/tools/ozone/moderation/getRecord.ts +0 -13
  298. package/src/api/tools/ozone/moderation/getRepo.ts +0 -13
  299. package/src/api/tools/ozone/moderation/index.ts +0 -19
  300. package/src/api/tools/ozone/moderation/queryEvents.ts +0 -13
  301. package/src/api/tools/ozone/moderation/queryStatuses.ts +0 -13
  302. package/src/api/tools/ozone/moderation/searchRepos.ts +0 -13
@@ -1,15 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- const { bskyAppView } = ctx.cfg
7
- if (!bskyAppView) return
8
- server.app.bsky.graph.getSuggestedFollowsByActor({
9
- auth: ctx.authVerifier.access,
10
- handler: async ({ req, auth }) => {
11
- const requester = auth.credentials.did
12
- return pipethrough(ctx, req, requester)
13
- },
14
- })
15
- }
@@ -1,31 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import getBlocks from './getBlocks'
4
- import getFollowers from './getFollowers'
5
- import getFollows from './getFollows'
6
- import getList from './getList'
7
- import getListBlocks from './getListBlocks'
8
- import getListMutes from './getListMutes'
9
- import getLists from './getLists'
10
- import getMutes from './getMutes'
11
- import getSuggestedFollowsByActor from './getSuggestedFollowsByActor'
12
- import muteActor from './muteActor'
13
- import muteActorList from './muteActorList'
14
- import unmuteActor from './unmuteActor'
15
- import unmuteActorList from './unmuteActorList'
16
-
17
- export default function (server: Server, ctx: AppContext) {
18
- getBlocks(server, ctx)
19
- getFollowers(server, ctx)
20
- getFollows(server, ctx)
21
- getList(server, ctx)
22
- getListBlocks(server, ctx)
23
- getListMutes(server, ctx)
24
- getLists(server, ctx)
25
- getMutes(server, ctx)
26
- getSuggestedFollowsByActor(server, ctx)
27
- muteActor(server, ctx)
28
- muteActorList(server, ctx)
29
- unmuteActor(server, ctx)
30
- unmuteActorList(server, ctx)
31
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.graph.muteActor({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ auth, input, req }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.graph.muteActorList({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ auth, input, req }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.graph.unmuteActor({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ auth, input, req }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.graph.unmuteActorList({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ auth, input, req }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.labeler.getServices({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ auth, req }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,7 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import getServices from './getServices'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- getServices(server, ctx)
7
- }
@@ -1,15 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- const { bskyAppView } = ctx.cfg
7
- if (!bskyAppView) return
8
- server.app.bsky.notification.getUnreadCount({
9
- auth: ctx.authVerifier.access,
10
- handler: async ({ req, auth }) => {
11
- const requester = auth.credentials.did
12
- return pipethrough(ctx, req, requester)
13
- },
14
- })
15
- }
@@ -1,15 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- const { bskyAppView } = ctx.cfg
7
- if (!bskyAppView) return
8
- server.app.bsky.notification.listNotifications({
9
- auth: ctx.authVerifier.access,
10
- handler: async ({ req, auth }) => {
11
- const requester = auth.credentials.did
12
- return pipethrough(ctx, req, requester)
13
- },
14
- })
15
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.app.bsky.notification.updateSeen({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ input, auth, req }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,16 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- // THIS IS A TEMPORARY UNSPECCED ROUTE
6
- export default function (server: Server, ctx: AppContext) {
7
- const { bskyAppView } = ctx.cfg
8
- if (!bskyAppView) return
9
- server.app.bsky.unspecced.getPopularFeedGenerators({
10
- auth: ctx.authVerifier.access,
11
- handler: async ({ req, auth }) => {
12
- const requester = auth.credentials.did
13
- return pipethrough(ctx, req, requester)
14
- },
15
- })
16
- }
@@ -1,16 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- // THIS IS A TEMPORARY UNSPECCED ROUTE
6
- export default function (server: Server, ctx: AppContext) {
7
- const { bskyAppView } = ctx.cfg
8
- if (!bskyAppView) return
9
- server.app.bsky.unspecced.getTaggedSuggestions({
10
- auth: ctx.authVerifier.access,
11
- handler: async ({ req, auth }) => {
12
- const requester = auth.credentials.did
13
- return pipethrough(ctx, req, requester)
14
- },
15
- })
16
- }
@@ -1,10 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import getPopularFeedGenerators from './getPopularFeedGenerators'
4
- import getTaggedSuggestions from './getTaggedSuggestions'
5
-
6
- // THIS IS A TEMPORARY UNSPECCED ROUTE
7
- export default function (server: Server, ctx: AppContext) {
8
- getPopularFeedGenerators(server, ctx)
9
- getTaggedSuggestions(server, ctx)
10
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.com.atproto.moderation.createReport({
7
- auth: ctx.authVerifier.accessCheckTakedown,
8
- handler: async ({ req, input, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,7 +0,0 @@
1
- import AppContext from '../../../../context'
2
- import { Server } from '../../../../lexicon'
3
- import createReport from './createReport'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- createReport(server, ctx)
7
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.communication.createTemplate({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, input, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.communication.deleteTemplate({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, input, auth }) => {
9
- const requester = auth.credentials.did
10
- await pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import AppContext from '../../../../context'
2
- import { Server } from '../../../../lexicon'
3
- import createTemplate from './createTemplate'
4
- import deleteTemplate from './deleteTemplate'
5
- import listTemplates from './listTemplates'
6
- import updateTemplate from './updateTemplate'
7
-
8
- export default function (server: Server, ctx: AppContext) {
9
- createTemplate(server, ctx)
10
- deleteTemplate(server, ctx)
11
- listTemplates(server, ctx)
12
- updateTemplate(server, ctx)
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.communication.listTemplates({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.communication.updateTemplate({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, input, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,9 +0,0 @@
1
- import AppContext from '../../../context'
2
- import { Server } from '../../../lexicon'
3
- import communication from './communication'
4
- import moderation from './moderation'
5
-
6
- export default function (server: Server, ctx: AppContext) {
7
- communication(server, ctx)
8
- moderation(server, ctx)
9
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethroughProcedure } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.emitEvent({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, input, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethroughProcedure(ctx, req, input.body, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.getEvent({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.getRecord({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.getRepo({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,19 +0,0 @@
1
- import AppContext from '../../../../context'
2
- import { Server } from '../../../../lexicon'
3
- import emitEvent from './emitEvent'
4
- import getEvent from './getEvent'
5
- import getRecord from './getRecord'
6
- import getRepo from './getRepo'
7
- import queryEvents from './queryEvents'
8
- import queryStatuses from './queryStatuses'
9
- import searchRepos from './searchRepos'
10
-
11
- export default function (server: Server, ctx: AppContext) {
12
- emitEvent(server, ctx)
13
- getEvent(server, ctx)
14
- getRecord(server, ctx)
15
- getRepo(server, ctx)
16
- queryEvents(server, ctx)
17
- queryStatuses(server, ctx)
18
- searchRepos(server, ctx)
19
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.queryEvents({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.queryStatuses({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }
@@ -1,13 +0,0 @@
1
- import { Server } from '../../../../lexicon'
2
- import AppContext from '../../../../context'
3
- import { pipethrough } from '../../../../pipethrough'
4
-
5
- export default function (server: Server, ctx: AppContext) {
6
- server.tools.ozone.moderation.searchRepos({
7
- auth: ctx.authVerifier.access,
8
- handler: async ({ req, auth }) => {
9
- const requester = auth.credentials.did
10
- return pipethrough(ctx, req, requester)
11
- },
12
- })
13
- }