@atproto/pds 0.4.20 → 0.4.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. package/CHANGELOG.md +15 -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/lexicon/index.d.ts +59 -0
  33. package/dist/lexicon/index.d.ts.map +1 -1
  34. package/dist/lexicon/index.js +164 -1
  35. package/dist/lexicon/index.js.map +1 -1
  36. package/dist/lexicon/lexicons.d.ts +907 -0
  37. package/dist/lexicon/lexicons.d.ts.map +1 -1
  38. package/dist/lexicon/lexicons.js +932 -0
  39. package/dist/lexicon/lexicons.js.map +1 -1
  40. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
  41. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  42. package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
  43. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  44. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
  45. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
  46. package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
  47. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
  48. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
  49. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
  50. package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
  51. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
  52. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
  53. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
  54. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
  55. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
  56. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
  57. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
  58. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
  59. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
  60. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
  61. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
  62. package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
  63. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
  64. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
  65. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
  66. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
  67. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
  68. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
  69. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
  70. package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
  71. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
  72. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
  73. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
  74. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
  75. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
  76. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
  77. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
  78. package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
  79. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
  80. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
  81. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
  82. package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
  83. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
  84. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
  85. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
  86. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
  87. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
  88. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
  89. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
  90. package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
  91. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
  92. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
  93. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
  94. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
  95. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
  96. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
  97. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
  98. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
  99. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
  100. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
  101. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
  102. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
  103. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
  104. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
  105. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
  106. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
  107. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
  108. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
  109. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
  110. package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
  111. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
  112. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
  113. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
  114. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
  115. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
  116. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +41 -0
  117. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
  118. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
  119. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
  120. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
  121. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
  122. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
  123. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
  124. package/dist/pipethrough.d.ts +12 -22
  125. package/dist/pipethrough.d.ts.map +1 -1
  126. package/dist/pipethrough.js +159 -81
  127. package/dist/pipethrough.js.map +1 -1
  128. package/package.json +5 -5
  129. package/src/api/app/bsky/actor/index.ts +0 -6
  130. package/src/api/app/bsky/feed/getFeed.ts +1 -3
  131. package/src/api/app/bsky/feed/index.ts +0 -20
  132. package/src/api/app/bsky/index.ts +0 -6
  133. package/src/api/app/bsky/notification/index.ts +0 -7
  134. package/src/api/com/atproto/index.ts +0 -2
  135. package/src/api/com/atproto/repo/getRecord.ts +1 -1
  136. package/src/api/index.ts +0 -2
  137. package/src/context.ts +34 -1
  138. package/src/index.ts +27 -51
  139. package/src/lexicon/index.ts +254 -0
  140. package/src/lexicon/lexicons.ts +933 -0
  141. package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
  142. package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
  143. package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
  144. package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
  145. package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
  146. package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
  147. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
  148. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
  149. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
  150. package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
  151. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
  152. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
  153. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
  154. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
  155. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
  156. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
  157. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
  158. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
  159. package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
  160. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +52 -0
  161. package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
  162. package/src/pipethrough.ts +184 -114
  163. package/dist/api/app/bsky/actor/getSuggestions.d.ts +0 -4
  164. package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +0 -1
  165. package/dist/api/app/bsky/actor/getSuggestions.js +0 -19
  166. package/dist/api/app/bsky/actor/getSuggestions.js.map +0 -1
  167. package/dist/api/app/bsky/actor/searchActors.d.ts +0 -4
  168. package/dist/api/app/bsky/actor/searchActors.d.ts.map +0 -1
  169. package/dist/api/app/bsky/actor/searchActors.js +0 -17
  170. package/dist/api/app/bsky/actor/searchActors.js.map +0 -1
  171. package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts +0 -4
  172. package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +0 -1
  173. package/dist/api/app/bsky/actor/searchActorsTypeahead.js +0 -17
  174. package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +0 -1
  175. package/dist/api/app/bsky/feed/getActorFeeds.d.ts +0 -4
  176. package/dist/api/app/bsky/feed/getActorFeeds.d.ts.map +0 -1
  177. package/dist/api/app/bsky/feed/getActorFeeds.js +0 -17
  178. package/dist/api/app/bsky/feed/getActorFeeds.js.map +0 -1
  179. package/dist/api/app/bsky/feed/getFeedGenerator.d.ts +0 -4
  180. package/dist/api/app/bsky/feed/getFeedGenerator.d.ts.map +0 -1
  181. package/dist/api/app/bsky/feed/getFeedGenerator.js +0 -17
  182. package/dist/api/app/bsky/feed/getFeedGenerator.js.map +0 -1
  183. package/dist/api/app/bsky/feed/getFeedGenerators.d.ts +0 -4
  184. package/dist/api/app/bsky/feed/getFeedGenerators.d.ts.map +0 -1
  185. package/dist/api/app/bsky/feed/getFeedGenerators.js +0 -17
  186. package/dist/api/app/bsky/feed/getFeedGenerators.js.map +0 -1
  187. package/dist/api/app/bsky/feed/getLikes.d.ts +0 -4
  188. package/dist/api/app/bsky/feed/getLikes.d.ts.map +0 -1
  189. package/dist/api/app/bsky/feed/getLikes.js +0 -17
  190. package/dist/api/app/bsky/feed/getLikes.js.map +0 -1
  191. package/dist/api/app/bsky/feed/getListFeed.d.ts +0 -4
  192. package/dist/api/app/bsky/feed/getListFeed.d.ts.map +0 -1
  193. package/dist/api/app/bsky/feed/getListFeed.js +0 -17
  194. package/dist/api/app/bsky/feed/getListFeed.js.map +0 -1
  195. package/dist/api/app/bsky/feed/getPosts.d.ts +0 -4
  196. package/dist/api/app/bsky/feed/getPosts.d.ts.map +0 -1
  197. package/dist/api/app/bsky/feed/getPosts.js +0 -17
  198. package/dist/api/app/bsky/feed/getPosts.js.map +0 -1
  199. package/dist/api/app/bsky/feed/getRepostedBy.d.ts +0 -4
  200. package/dist/api/app/bsky/feed/getRepostedBy.d.ts.map +0 -1
  201. package/dist/api/app/bsky/feed/getRepostedBy.js +0 -17
  202. package/dist/api/app/bsky/feed/getRepostedBy.js.map +0 -1
  203. package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts +0 -4
  204. package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts.map +0 -1
  205. package/dist/api/app/bsky/feed/getSuggestedFeeds.js +0 -17
  206. package/dist/api/app/bsky/feed/getSuggestedFeeds.js.map +0 -1
  207. package/dist/api/app/bsky/feed/searchPosts.d.ts +0 -4
  208. package/dist/api/app/bsky/feed/searchPosts.d.ts.map +0 -1
  209. package/dist/api/app/bsky/feed/searchPosts.js +0 -17
  210. package/dist/api/app/bsky/feed/searchPosts.js.map +0 -1
  211. package/dist/api/app/bsky/feed/sendInteractions.d.ts +0 -4
  212. package/dist/api/app/bsky/feed/sendInteractions.d.ts.map +0 -1
  213. package/dist/api/app/bsky/feed/sendInteractions.js +0 -14
  214. package/dist/api/app/bsky/feed/sendInteractions.js.map +0 -1
  215. package/dist/api/app/bsky/graph/getBlocks.d.ts +0 -4
  216. package/dist/api/app/bsky/graph/getBlocks.d.ts.map +0 -1
  217. package/dist/api/app/bsky/graph/getBlocks.js +0 -17
  218. package/dist/api/app/bsky/graph/getBlocks.js.map +0 -1
  219. package/dist/api/app/bsky/graph/getFollowers.d.ts +0 -4
  220. package/dist/api/app/bsky/graph/getFollowers.d.ts.map +0 -1
  221. package/dist/api/app/bsky/graph/getFollowers.js +0 -17
  222. package/dist/api/app/bsky/graph/getFollowers.js.map +0 -1
  223. package/dist/api/app/bsky/graph/getFollows.d.ts +0 -4
  224. package/dist/api/app/bsky/graph/getFollows.d.ts.map +0 -1
  225. package/dist/api/app/bsky/graph/getFollows.js +0 -17
  226. package/dist/api/app/bsky/graph/getFollows.js.map +0 -1
  227. package/dist/api/app/bsky/graph/getList.d.ts +0 -4
  228. package/dist/api/app/bsky/graph/getList.d.ts.map +0 -1
  229. package/dist/api/app/bsky/graph/getList.js +0 -17
  230. package/dist/api/app/bsky/graph/getList.js.map +0 -1
  231. package/dist/api/app/bsky/graph/getListBlocks.d.ts +0 -4
  232. package/dist/api/app/bsky/graph/getListBlocks.d.ts.map +0 -1
  233. package/dist/api/app/bsky/graph/getListBlocks.js +0 -17
  234. package/dist/api/app/bsky/graph/getListBlocks.js.map +0 -1
  235. package/dist/api/app/bsky/graph/getListMutes.d.ts +0 -4
  236. package/dist/api/app/bsky/graph/getListMutes.d.ts.map +0 -1
  237. package/dist/api/app/bsky/graph/getListMutes.js +0 -17
  238. package/dist/api/app/bsky/graph/getListMutes.js.map +0 -1
  239. package/dist/api/app/bsky/graph/getLists.d.ts +0 -4
  240. package/dist/api/app/bsky/graph/getLists.d.ts.map +0 -1
  241. package/dist/api/app/bsky/graph/getLists.js +0 -17
  242. package/dist/api/app/bsky/graph/getLists.js.map +0 -1
  243. package/dist/api/app/bsky/graph/getMutes.d.ts +0 -4
  244. package/dist/api/app/bsky/graph/getMutes.d.ts.map +0 -1
  245. package/dist/api/app/bsky/graph/getMutes.js +0 -17
  246. package/dist/api/app/bsky/graph/getMutes.js.map +0 -1
  247. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts +0 -4
  248. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +0 -1
  249. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +0 -17
  250. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +0 -1
  251. package/dist/api/app/bsky/graph/index.d.ts +0 -4
  252. package/dist/api/app/bsky/graph/index.d.ts.map +0 -1
  253. package/dist/api/app/bsky/graph/index.js +0 -35
  254. package/dist/api/app/bsky/graph/index.js.map +0 -1
  255. package/dist/api/app/bsky/graph/muteActor.d.ts +0 -4
  256. package/dist/api/app/bsky/graph/muteActor.d.ts.map +0 -1
  257. package/dist/api/app/bsky/graph/muteActor.js +0 -14
  258. package/dist/api/app/bsky/graph/muteActor.js.map +0 -1
  259. package/dist/api/app/bsky/graph/muteActorList.d.ts +0 -4
  260. package/dist/api/app/bsky/graph/muteActorList.d.ts.map +0 -1
  261. package/dist/api/app/bsky/graph/muteActorList.js +0 -14
  262. package/dist/api/app/bsky/graph/muteActorList.js.map +0 -1
  263. package/dist/api/app/bsky/graph/unmuteActor.d.ts +0 -4
  264. package/dist/api/app/bsky/graph/unmuteActor.d.ts.map +0 -1
  265. package/dist/api/app/bsky/graph/unmuteActor.js +0 -14
  266. package/dist/api/app/bsky/graph/unmuteActor.js.map +0 -1
  267. package/dist/api/app/bsky/graph/unmuteActorList.d.ts +0 -4
  268. package/dist/api/app/bsky/graph/unmuteActorList.d.ts.map +0 -1
  269. package/dist/api/app/bsky/graph/unmuteActorList.js +0 -14
  270. package/dist/api/app/bsky/graph/unmuteActorList.js.map +0 -1
  271. package/dist/api/app/bsky/labeler/getServices.d.ts +0 -4
  272. package/dist/api/app/bsky/labeler/getServices.d.ts.map +0 -1
  273. package/dist/api/app/bsky/labeler/getServices.js +0 -14
  274. package/dist/api/app/bsky/labeler/getServices.js.map +0 -1
  275. package/dist/api/app/bsky/labeler/index.d.ts +0 -4
  276. package/dist/api/app/bsky/labeler/index.d.ts.map +0 -1
  277. package/dist/api/app/bsky/labeler/index.js +0 -11
  278. package/dist/api/app/bsky/labeler/index.js.map +0 -1
  279. package/dist/api/app/bsky/notification/getUnreadCount.d.ts +0 -4
  280. package/dist/api/app/bsky/notification/getUnreadCount.d.ts.map +0 -1
  281. package/dist/api/app/bsky/notification/getUnreadCount.js +0 -17
  282. package/dist/api/app/bsky/notification/getUnreadCount.js.map +0 -1
  283. package/dist/api/app/bsky/notification/listNotifications.d.ts +0 -4
  284. package/dist/api/app/bsky/notification/listNotifications.d.ts.map +0 -1
  285. package/dist/api/app/bsky/notification/listNotifications.js +0 -17
  286. package/dist/api/app/bsky/notification/listNotifications.js.map +0 -1
  287. package/dist/api/app/bsky/notification/updateSeen.d.ts +0 -4
  288. package/dist/api/app/bsky/notification/updateSeen.d.ts.map +0 -1
  289. package/dist/api/app/bsky/notification/updateSeen.js +0 -14
  290. package/dist/api/app/bsky/notification/updateSeen.js.map +0 -1
  291. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts +0 -4
  292. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +0 -1
  293. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js +0 -18
  294. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +0 -1
  295. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +0 -4
  296. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts.map +0 -1
  297. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js +0 -18
  298. package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js.map +0 -1
  299. package/dist/api/app/bsky/unspecced/index.d.ts +0 -4
  300. package/dist/api/app/bsky/unspecced/index.d.ts.map +0 -1
  301. package/dist/api/app/bsky/unspecced/index.js +0 -14
  302. package/dist/api/app/bsky/unspecced/index.js.map +0 -1
  303. package/dist/api/com/atproto/moderation/createReport.d.ts +0 -4
  304. package/dist/api/com/atproto/moderation/createReport.d.ts.map +0 -1
  305. package/dist/api/com/atproto/moderation/createReport.js +0 -14
  306. package/dist/api/com/atproto/moderation/createReport.js.map +0 -1
  307. package/dist/api/com/atproto/moderation/index.d.ts +0 -4
  308. package/dist/api/com/atproto/moderation/index.d.ts.map +0 -1
  309. package/dist/api/com/atproto/moderation/index.js +0 -11
  310. package/dist/api/com/atproto/moderation/index.js.map +0 -1
  311. package/dist/api/tools/ozone/communication/createTemplate.d.ts +0 -4
  312. package/dist/api/tools/ozone/communication/createTemplate.d.ts.map +0 -1
  313. package/dist/api/tools/ozone/communication/createTemplate.js +0 -14
  314. package/dist/api/tools/ozone/communication/createTemplate.js.map +0 -1
  315. package/dist/api/tools/ozone/communication/deleteTemplate.d.ts +0 -4
  316. package/dist/api/tools/ozone/communication/deleteTemplate.d.ts.map +0 -1
  317. package/dist/api/tools/ozone/communication/deleteTemplate.js +0 -14
  318. package/dist/api/tools/ozone/communication/deleteTemplate.js.map +0 -1
  319. package/dist/api/tools/ozone/communication/index.d.ts +0 -4
  320. package/dist/api/tools/ozone/communication/index.d.ts.map +0 -1
  321. package/dist/api/tools/ozone/communication/index.js +0 -17
  322. package/dist/api/tools/ozone/communication/index.js.map +0 -1
  323. package/dist/api/tools/ozone/communication/listTemplates.d.ts +0 -4
  324. package/dist/api/tools/ozone/communication/listTemplates.d.ts.map +0 -1
  325. package/dist/api/tools/ozone/communication/listTemplates.js +0 -14
  326. package/dist/api/tools/ozone/communication/listTemplates.js.map +0 -1
  327. package/dist/api/tools/ozone/communication/updateTemplate.d.ts +0 -4
  328. package/dist/api/tools/ozone/communication/updateTemplate.d.ts.map +0 -1
  329. package/dist/api/tools/ozone/communication/updateTemplate.js +0 -14
  330. package/dist/api/tools/ozone/communication/updateTemplate.js.map +0 -1
  331. package/dist/api/tools/ozone/index.d.ts +0 -4
  332. package/dist/api/tools/ozone/index.d.ts.map +0 -1
  333. package/dist/api/tools/ozone/index.js +0 -13
  334. package/dist/api/tools/ozone/index.js.map +0 -1
  335. package/dist/api/tools/ozone/moderation/emitEvent.d.ts +0 -4
  336. package/dist/api/tools/ozone/moderation/emitEvent.d.ts.map +0 -1
  337. package/dist/api/tools/ozone/moderation/emitEvent.js +0 -14
  338. package/dist/api/tools/ozone/moderation/emitEvent.js.map +0 -1
  339. package/dist/api/tools/ozone/moderation/getEvent.d.ts +0 -4
  340. package/dist/api/tools/ozone/moderation/getEvent.d.ts.map +0 -1
  341. package/dist/api/tools/ozone/moderation/getEvent.js +0 -14
  342. package/dist/api/tools/ozone/moderation/getEvent.js.map +0 -1
  343. package/dist/api/tools/ozone/moderation/getRecord.d.ts +0 -4
  344. package/dist/api/tools/ozone/moderation/getRecord.d.ts.map +0 -1
  345. package/dist/api/tools/ozone/moderation/getRecord.js +0 -14
  346. package/dist/api/tools/ozone/moderation/getRecord.js.map +0 -1
  347. package/dist/api/tools/ozone/moderation/getRepo.d.ts +0 -4
  348. package/dist/api/tools/ozone/moderation/getRepo.d.ts.map +0 -1
  349. package/dist/api/tools/ozone/moderation/getRepo.js +0 -14
  350. package/dist/api/tools/ozone/moderation/getRepo.js.map +0 -1
  351. package/dist/api/tools/ozone/moderation/index.d.ts +0 -4
  352. package/dist/api/tools/ozone/moderation/index.d.ts.map +0 -1
  353. package/dist/api/tools/ozone/moderation/index.js +0 -23
  354. package/dist/api/tools/ozone/moderation/index.js.map +0 -1
  355. package/dist/api/tools/ozone/moderation/queryEvents.d.ts +0 -4
  356. package/dist/api/tools/ozone/moderation/queryEvents.d.ts.map +0 -1
  357. package/dist/api/tools/ozone/moderation/queryEvents.js +0 -14
  358. package/dist/api/tools/ozone/moderation/queryEvents.js.map +0 -1
  359. package/dist/api/tools/ozone/moderation/queryStatuses.d.ts +0 -4
  360. package/dist/api/tools/ozone/moderation/queryStatuses.d.ts.map +0 -1
  361. package/dist/api/tools/ozone/moderation/queryStatuses.js +0 -14
  362. package/dist/api/tools/ozone/moderation/queryStatuses.js.map +0 -1
  363. package/dist/api/tools/ozone/moderation/searchRepos.d.ts +0 -4
  364. package/dist/api/tools/ozone/moderation/searchRepos.d.ts.map +0 -1
  365. package/dist/api/tools/ozone/moderation/searchRepos.js +0 -14
  366. package/dist/api/tools/ozone/moderation/searchRepos.js.map +0 -1
  367. package/src/api/app/bsky/actor/getSuggestions.ts +0 -17
  368. package/src/api/app/bsky/actor/searchActors.ts +0 -15
  369. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +0 -15
  370. package/src/api/app/bsky/feed/getActorFeeds.ts +0 -15
  371. package/src/api/app/bsky/feed/getFeedGenerator.ts +0 -15
  372. package/src/api/app/bsky/feed/getFeedGenerators.ts +0 -15
  373. package/src/api/app/bsky/feed/getLikes.ts +0 -15
  374. package/src/api/app/bsky/feed/getListFeed.ts +0 -15
  375. package/src/api/app/bsky/feed/getPosts.ts +0 -15
  376. package/src/api/app/bsky/feed/getRepostedBy.ts +0 -15
  377. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +0 -15
  378. package/src/api/app/bsky/feed/searchPosts.ts +0 -15
  379. package/src/api/app/bsky/feed/sendInteractions.ts +0 -13
  380. package/src/api/app/bsky/graph/getBlocks.ts +0 -15
  381. package/src/api/app/bsky/graph/getFollowers.ts +0 -15
  382. package/src/api/app/bsky/graph/getFollows.ts +0 -15
  383. package/src/api/app/bsky/graph/getList.ts +0 -15
  384. package/src/api/app/bsky/graph/getListBlocks.ts +0 -15
  385. package/src/api/app/bsky/graph/getListMutes.ts +0 -15
  386. package/src/api/app/bsky/graph/getLists.ts +0 -15
  387. package/src/api/app/bsky/graph/getMutes.ts +0 -15
  388. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -15
  389. package/src/api/app/bsky/graph/index.ts +0 -31
  390. package/src/api/app/bsky/graph/muteActor.ts +0 -13
  391. package/src/api/app/bsky/graph/muteActorList.ts +0 -13
  392. package/src/api/app/bsky/graph/unmuteActor.ts +0 -13
  393. package/src/api/app/bsky/graph/unmuteActorList.ts +0 -13
  394. package/src/api/app/bsky/labeler/getServices.ts +0 -13
  395. package/src/api/app/bsky/labeler/index.ts +0 -7
  396. package/src/api/app/bsky/notification/getUnreadCount.ts +0 -15
  397. package/src/api/app/bsky/notification/listNotifications.ts +0 -15
  398. package/src/api/app/bsky/notification/updateSeen.ts +0 -13
  399. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -16
  400. package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +0 -16
  401. package/src/api/app/bsky/unspecced/index.ts +0 -10
  402. package/src/api/com/atproto/moderation/createReport.ts +0 -13
  403. package/src/api/com/atproto/moderation/index.ts +0 -7
  404. package/src/api/tools/ozone/communication/createTemplate.ts +0 -13
  405. package/src/api/tools/ozone/communication/deleteTemplate.ts +0 -13
  406. package/src/api/tools/ozone/communication/index.ts +0 -13
  407. package/src/api/tools/ozone/communication/listTemplates.ts +0 -13
  408. package/src/api/tools/ozone/communication/updateTemplate.ts +0 -13
  409. package/src/api/tools/ozone/index.ts +0 -9
  410. package/src/api/tools/ozone/moderation/emitEvent.ts +0 -13
  411. package/src/api/tools/ozone/moderation/getEvent.ts +0 -13
  412. package/src/api/tools/ozone/moderation/getRecord.ts +0 -13
  413. package/src/api/tools/ozone/moderation/getRepo.ts +0 -13
  414. package/src/api/tools/ozone/moderation/index.ts +0 -19
  415. package/src/api/tools/ozone/moderation/queryEvents.ts +0 -13
  416. package/src/api/tools/ozone/moderation/queryStatuses.ts +0 -13
  417. package/src/api/tools/ozone/moderation/searchRepos.ts +0 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2485](https://github.com/bluesky-social/atproto/pull/2485) [`d32f7215f`](https://github.com/bluesky-social/atproto/commit/d32f7215f69bc87f50890d9cfdb09840c2fbaa41) Thanks [@devinivy](https://github.com/devinivy)! - Add lexicons for chat.bsky namespace
8
+
9
+ - Updated dependencies [[`d32f7215f`](https://github.com/bluesky-social/atproto/commit/d32f7215f69bc87f50890d9cfdb09840c2fbaa41)]:
10
+ - @atproto/api@0.12.10
11
+
12
+ ## 0.4.21
13
+
14
+ ### Patch Changes
15
+
16
+ - [`f36585013`](https://github.com/bluesky-social/atproto/commit/f365850139ffb2b5e63facfd95eedf0b87d01ee7) Thanks [@devinivy](https://github.com/devinivy)! - Support generic service proxying the PDS
17
+
3
18
  ## 0.4.20
4
19
 
5
20
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAU5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAQvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAO5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAKvD"}
@@ -6,18 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const getPreferences_1 = __importDefault(require("./getPreferences"));
7
7
  const getProfile_1 = __importDefault(require("./getProfile"));
8
8
  const getProfiles_1 = __importDefault(require("./getProfiles"));
9
- const getSuggestions_1 = __importDefault(require("./getSuggestions"));
10
9
  const putPreferences_1 = __importDefault(require("./putPreferences"));
11
- const searchActors_1 = __importDefault(require("./searchActors"));
12
- const searchActorsTypeahead_1 = __importDefault(require("./searchActorsTypeahead"));
13
10
  function default_1(server, ctx) {
14
11
  (0, getPreferences_1.default)(server, ctx);
15
12
  (0, getProfile_1.default)(server, ctx);
16
13
  (0, getProfiles_1.default)(server, ctx);
17
- (0, getSuggestions_1.default)(server, ctx);
18
14
  (0, putPreferences_1.default)(server, ctx);
19
- (0, searchActors_1.default)(server, ctx);
20
- (0, searchActorsTypeahead_1.default)(server, ctx);
21
15
  }
22
16
  exports.default = default_1;
23
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/index.ts"],"names":[],"mappings":";;;;;AAGA,sEAA6C;AAC7C,8DAAqC;AACrC,gEAAuC;AACvC,sEAA6C;AAC7C,sEAA6C;AAC7C,kEAAyC;AACzC,oFAA2D;AAE3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,oBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACxB,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,IAAA,+BAAqB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACpC,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/index.ts"],"names":[],"mappings":";;;;;AAGA,sEAA6C;AAC7C,8DAAqC;AACrC,gEAAuC;AACvC,sEAA6C;AAE7C,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,oBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACxB,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC7B,CAAC;AALD,4BAKC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAmBvD"}
1
+ {"version":3,"file":"getFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiBvD"}
@@ -11,9 +11,7 @@ function default_1(server, ctx) {
11
11
  handler: async ({ params, auth, req }) => {
12
12
  const requester = auth.credentials.did;
13
13
  const { data: feed } = await appViewAgent.api.app.bsky.feed.getFeedGenerator({ feed: params.feed }, await ctx.appviewAuthHeaders(requester));
14
- return (0, pipethrough_1.pipethrough)(ctx, req, requester, feed.view.did, {
15
- reqHeadersToForward: ['x-bsky-topics'],
16
- });
14
+ return (0, pipethrough_1.pipethrough)(ctx, req, requester, feed.view.did);
17
15
  },
18
16
  });
19
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CACxC,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,mBAAmB,EAAE,CAAC,eAAe,CAAC;aACvC,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAnBD,4BAmBC"}
1
+ {"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CACxC,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACxD,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAiB5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAgBvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAO5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAMvD"}
@@ -3,37 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const getActorFeeds_1 = __importDefault(require("./getActorFeeds"));
7
6
  const getActorLikes_1 = __importDefault(require("./getActorLikes"));
8
7
  const getAuthorFeed_1 = __importDefault(require("./getAuthorFeed"));
9
8
  const getFeed_1 = __importDefault(require("./getFeed"));
10
- const getFeedGenerator_1 = __importDefault(require("./getFeedGenerator"));
11
- const getFeedGenerators_1 = __importDefault(require("./getFeedGenerators"));
12
- const getLikes_1 = __importDefault(require("./getLikes"));
13
- const getListFeed_1 = __importDefault(require("./getListFeed"));
14
- const getPosts_1 = __importDefault(require("./getPosts"));
15
9
  const getPostThread_1 = __importDefault(require("./getPostThread"));
16
- const getRepostedBy_1 = __importDefault(require("./getRepostedBy"));
17
- const getSuggestedFeeds_1 = __importDefault(require("./getSuggestedFeeds"));
18
10
  const getTimeline_1 = __importDefault(require("./getTimeline"));
19
- const searchPosts_1 = __importDefault(require("./searchPosts"));
20
- const sendInteractions_1 = __importDefault(require("./sendInteractions"));
21
11
  function default_1(server, ctx) {
22
- (0, getActorFeeds_1.default)(server, ctx);
23
12
  (0, getActorLikes_1.default)(server, ctx);
24
13
  (0, getAuthorFeed_1.default)(server, ctx);
25
14
  (0, getFeed_1.default)(server, ctx);
26
- (0, getFeedGenerator_1.default)(server, ctx);
27
- (0, getFeedGenerators_1.default)(server, ctx);
28
- (0, getLikes_1.default)(server, ctx);
29
- (0, getListFeed_1.default)(server, ctx);
30
- (0, getPosts_1.default)(server, ctx);
31
15
  (0, getPostThread_1.default)(server, ctx);
32
- (0, getRepostedBy_1.default)(server, ctx);
33
- (0, getSuggestedFeeds_1.default)(server, ctx);
34
16
  (0, getTimeline_1.default)(server, ctx);
35
- (0, searchPosts_1.default)(server, ctx);
36
- (0, sendInteractions_1.default)(server, ctx);
37
17
  }
38
18
  exports.default = default_1;
39
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/index.ts"],"names":[],"mappings":";;;;;AAEA,oEAA2C;AAC3C,oEAA2C;AAC3C,oEAA2C;AAC3C,wDAA+B;AAC/B,0EAAiD;AACjD,4EAAmD;AACnD,0DAAiC;AACjC,gEAAuC;AACvC,0DAAiC;AACjC,oEAA2C;AAC3C,oEAA2C;AAC3C,4EAAmD;AACnD,gEAAuC;AACvC,gEAAuC;AACvC,0EAAiD;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,iBAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,IAAA,0BAAgB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC7B,IAAA,2BAAiB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,IAAA,kBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrB,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACxB,IAAA,kBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrB,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,2BAAiB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACxB,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACxB,IAAA,0BAAgB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC/B,CAAC;AAhBD,4BAgBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/index.ts"],"names":[],"mappings":";;;;;AAEA,oEAA2C;AAC3C,oEAA2C;AAC3C,wDAA+B;AAC/B,oEAA2C;AAC3C,gEAAuC;AAEvC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,iBAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,qBAAW,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC1B,CAAC;AAND,4BAMC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/app/bsky/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAQzC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAOvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/app/bsky/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAKzC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAIvD"}
@@ -5,17 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const actor_1 = __importDefault(require("./actor"));
7
7
  const feed_1 = __importDefault(require("./feed"));
8
- const graph_1 = __importDefault(require("./graph"));
9
- const labeler_1 = __importDefault(require("./labeler"));
10
8
  const notification_1 = __importDefault(require("./notification"));
11
- const unspecced_1 = __importDefault(require("./unspecced"));
12
9
  function default_1(server, ctx) {
13
10
  (0, actor_1.default)(server, ctx);
14
11
  (0, feed_1.default)(server, ctx);
15
- (0, graph_1.default)(server, ctx);
16
- (0, labeler_1.default)(server, ctx);
17
12
  (0, notification_1.default)(server, ctx);
18
- (0, unspecced_1.default)(server, ctx);
19
13
  }
20
14
  exports.default = default_1;
21
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/app/bsky/index.ts"],"names":[],"mappings":";;;;;AAEA,oDAA2B;AAC3B,kDAAyB;AACzB,oDAA2B;AAC3B,wDAA+B;AAC/B,kEAAyC;AACzC,4DAAmC;AAEnC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,iBAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,IAAA,mBAAS,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACxB,CAAC;AAPD,4BAOC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/app/bsky/index.ts"],"names":[],"mappings":";;;;;AAEA,oDAA2B;AAC3B,kDAAyB;AACzB,kEAAyC;AAEzC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC3B,CAAC;AAJD,4BAIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAO5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAKvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAEvD"}
@@ -3,15 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const getUnreadCount_1 = __importDefault(require("./getUnreadCount"));
7
- const listNotifications_1 = __importDefault(require("./listNotifications"));
8
6
  const registerPush_1 = __importDefault(require("./registerPush"));
9
- const updateSeen_1 = __importDefault(require("./updateSeen"));
10
7
  function default_1(server, ctx) {
11
- (0, getUnreadCount_1.default)(server, ctx);
12
- (0, listNotifications_1.default)(server, ctx);
13
8
  (0, registerPush_1.default)(server, ctx);
14
- (0, updateSeen_1.default)(server, ctx);
15
9
  }
16
10
  exports.default = default_1;
17
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/index.ts"],"names":[],"mappings":";;;;;AAGA,sEAA6C;AAC7C,4EAAmD;AACnD,kEAAyC;AACzC,8DAAqC;AAErC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,2BAAiB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,IAAA,oBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACzB,CAAC;AALD,4BAKC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/index.ts"],"names":[],"mappings":";;;;;AAEA,kEAAyC;AAEzC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC3B,CAAC;AAFD,4BAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AASzC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAQvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAQzC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAOvD"}
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const admin_1 = __importDefault(require("./admin"));
7
7
  const identity_1 = __importDefault(require("./identity"));
8
- const moderation_1 = __importDefault(require("./moderation"));
9
8
  const repo_1 = __importDefault(require("./repo"));
10
9
  const server_1 = __importDefault(require("./server"));
11
10
  const sync_1 = __importDefault(require("./sync"));
@@ -13,7 +12,6 @@ const temp_1 = __importDefault(require("./temp"));
13
12
  function default_1(server, ctx) {
14
13
  (0, admin_1.default)(server, ctx);
15
14
  (0, identity_1.default)(server, ctx);
16
- (0, moderation_1.default)(server, ctx);
17
15
  (0, repo_1.default)(server, ctx);
18
16
  (0, server_1.default)(server, ctx);
19
17
  (0, sync_1.default)(server, ctx);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":";;;;;AAEA,oDAA2B;AAC3B,0DAAiC;AACjC,8DAAqC;AACrC,kDAAyB;AACzB,sDAAoC;AACpC,kDAAyB;AACzB,kDAAyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,kBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrB,IAAA,oBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,gBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACnB,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":";;;;;AAEA,oDAA2B;AAC3B,0DAAiC;AACjC,kDAAyB;AACzB,sDAAoC;AACpC,kDAAyB;AACzB,kDAAyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,kBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,gBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACnB,CAAC;AAPD,4BAOC"}
@@ -26,7 +26,7 @@ function default_1(server, ctx) {
26
26
  if (!ctx.cfg.bskyAppView) {
27
27
  throw new xrpc_server_1.InvalidRequestError(`Could not locate record`);
28
28
  }
29
- return await (0, pipethrough_1.pipethrough)(ctx, req);
29
+ return await (0, pipethrough_1.pipethrough)(ctx, req, null);
30
30
  });
31
31
  }
32
32
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/getRecord.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AAGvC,sDAA0D;AAC1D,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;QAC1D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAA;QAC9C,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QAEzD,8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O,UAAU,MAAM,YAAY,CAAA;AAEnC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,UAKvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGnC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,UAIvD"}
package/dist/api/index.js CHANGED
@@ -5,11 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const atproto_1 = __importDefault(require("./com/atproto"));
7
7
  const bsky_1 = __importDefault(require("./app/bsky"));
8
- const ozone_1 = __importDefault(require("./tools/ozone"));
9
8
  function default_1(server, ctx) {
10
9
  (0, atproto_1.default)(server, ctx);
11
10
  (0, bsky_1.default)(server, ctx);
12
- (0, ozone_1.default)(server, ctx);
13
11
  return server;
14
12
  }
15
13
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AACA,4DAAsC;AACtC,sDAAgC;AAChC,0DAAsC;AAGtC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,iBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,cAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,IAAA,eAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,OAAO,MAAM,CAAA;AACf,CAAC;AALD,4BAKC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AACA,4DAAsC;AACtC,sDAAgC;AAGhC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,iBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,cAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,OAAO,MAAM,CAAA;AACf,CAAC;AAJD,4BAIC"}
package/dist/context.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as plc from '@did-plc/lib';
3
3
  import * as crypto from '@atproto/crypto';
4
4
  import { IdResolver } from '@atproto/identity';
5
5
  import { AtpAgent } from '@atproto/api';
6
+ import { RateLimiterCreator } from '@atproto/xrpc-server';
6
7
  import { ServerConfig, ServerSecrets } from './config';
7
8
  import { AuthVerifier } from './auth-verifier';
8
9
  import { ServerMailer } from './mailer';
@@ -28,6 +29,7 @@ export type AppContextOptions = {
28
29
  sequencer: Sequencer;
29
30
  backgroundQueue: BackgroundQueue;
30
31
  redisScratch?: Redis;
32
+ ratelimitCreator?: RateLimiterCreator;
31
33
  crawlers: Crawlers;
32
34
  appViewAgent?: AtpAgent;
33
35
  moderationAgent?: AtpAgent;
@@ -50,6 +52,7 @@ export declare class AppContext {
50
52
  sequencer: Sequencer;
51
53
  backgroundQueue: BackgroundQueue;
52
54
  redisScratch?: Redis;
55
+ ratelimitCreator?: RateLimiterCreator;
53
56
  crawlers: Crawlers;
54
57
  appViewAgent: AtpAgent | undefined;
55
58
  moderationAgent: AtpAgent | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EACL,YAAY,EAGb,MAAM,iBAAi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GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,aAAa,EACtB,SAAS,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC;IA0KhB,kBAAkB,CAAC,GAAG,EAAE,MAAM;;;;;IAK9B,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;;CAQlD;AAED,eAAe,UAAU,CAAA"}
package/dist/context.js CHANGED
@@ -121,6 +121,12 @@ class AppContext {
121
121
  writable: true,
122
122
  value: void 0
123
123
  });
124
+ Object.defineProperty(this, "ratelimitCreator", {
125
+ enumerable: true,
126
+ configurable: true,
127
+ writable: true,
128
+ value: void 0
129
+ });
124
130
  Object.defineProperty(this, "crawlers", {
125
131
  enumerable: true,
126
132
  configurable: true,
@@ -181,6 +187,7 @@ class AppContext {
181
187
  this.sequencer = opts.sequencer;
182
188
  this.backgroundQueue = opts.backgroundQueue;
183
189
  this.redisScratch = opts.redisScratch;
190
+ this.ratelimitCreator = opts.ratelimitCreator;
184
191
  this.crawlers = opts.crawlers;
185
192
  this.appViewAgent = opts.appViewAgent;
186
193
  this.moderationAgent = opts.moderationAgent;
@@ -224,6 +231,28 @@ class AppContext {
224
231
  const redisScratch = cfg.redis
225
232
  ? (0, redis_1.getRedisClient)(cfg.redis.address, cfg.redis.password)
226
233
  : undefined;
234
+ let ratelimitCreator = undefined;
235
+ if (cfg.rateLimits.enabled) {
236
+ const bypassSecret = cfg.rateLimits.bypassKey;
237
+ const bypassIps = cfg.rateLimits.bypassIps;
238
+ if (cfg.rateLimits.mode === 'redis') {
239
+ if (!redisScratch) {
240
+ throw new Error('Redis not set up for ratelimiting mode: `redis`');
241
+ }
242
+ ratelimitCreator = (opts) => xrpc_server_1.RateLimiter.redis(redisScratch, {
243
+ bypassSecret,
244
+ bypassIps,
245
+ ...opts,
246
+ });
247
+ }
248
+ else {
249
+ ratelimitCreator = (opts) => xrpc_server_1.RateLimiter.memory({
250
+ bypassSecret,
251
+ bypassIps,
252
+ ...opts,
253
+ });
254
+ }
255
+ }
227
256
  const appViewAgent = cfg.bskyAppView
228
257
  ? new api_1.AtpAgent({ service: cfg.bskyAppView.url })
229
258
  : undefined;
@@ -280,6 +309,7 @@ class AppContext {
280
309
  sequencer,
281
310
  backgroundQueue,
282
311
  redisScratch,
312
+ ratelimitCreator,
283
313
  crawlers,
284
314
  appViewAgent,
285
315
  moderationAgent,
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAChC,uDAAwC;AAExC,kDAAmC;AACnC,wDAAyC;AACzC,gDAA8C;AAC9C,sCAAuC;AACvC,sCAAsD;AACtD,sDAA+D;AAE/D,mDAIwB;AACxB,qCAAuC;AACvC,oDAAsD;AAEtD,uDAAkD;AAClD,2CAAuC;AACvC,6CAA8C;AAC9C,2CAA4C;AAC5C,yCAAqC;AACrC,qDAAgD;AAChD,mCAAwC;AACxC,+CAA0C;AAC1C,sDAA2E;AAyB3E,MAAa,UAAU;IAsBrB,YAAY,IAAuB;QArB5B;;;;;WAAsB;QACtB;;;;;WAAqC;QACrC;;;;;WAA+B;QAC/B;;;;;WAAoB;QACpB;;;;;WAAkC;QAClC;;;;;WAAwB;QACxB;;;;;WAAsB;QACtB;;;;;WAAqB;QACrB;;;;;WAA8B;QAC9B;;;;;WAAoB;QACpB;;;;;WAAgC;QAChC;;;;;WAAoB;QACpB;;;;;WAAkB;QAClB;;;;;WAAkC;QAClC;;;;;WAAqC;QACrC;;;;;WAAoC;QACpC;;;;;WAAmC;QACnC;;;;;WAA0B;QAC1B;;;;;WAA8B;QAC9B;;;;;WAAiB;QAGtB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CA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AAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,KAAK,OAAO,IAAI,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAE7C,qBAAa,GAAG;IACP,GAAG,EAAE,UAAU,CAAA;IACf,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAA;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,eAAe,CAAC,CAAgB;IACxC,OAAO,CAAC,sBAAsB,CAAC,CAAgB;gBAEnC,IAAI,EAAE;QAAE,GAAG,EAAE,UAAU,CAAC;QAAC,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;KAAE;WAKlD,MAAM,CACjB,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,aAAa,EACtB,SAAS,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACrC,OAAO,CAAC,GAAG,CAAC;IA0DT,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;IAU7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAS/B;AAED,eAAe,GAAG,CAAA"}
package/dist/index.js CHANGED
@@ -38,7 +38,6 @@ require("express-async-errors");
38
38
  const express_1 = __importDefault(require("express"));
39
39
  const cors_1 = __importDefault(require("cors"));
40
40
  const events_1 = __importDefault(require("events"));
41
- const xrpc_server_1 = require("@atproto/xrpc-server");
42
41
  const common_1 = require("@atproto/common");
43
42
  const api_1 = __importDefault(require("./api"));
44
43
  const basicRoutes = __importStar(require("./basic-routes"));
@@ -49,6 +48,7 @@ const lexicon_1 = require("./lexicon");
49
48
  const http_terminator_1 = require("http-terminator");
50
49
  const context_1 = __importDefault(require("./context"));
51
50
  const compression_1 = __importDefault(require("./util/compression"));
51
+ const pipethrough_1 = require("./pipethrough");
52
52
  __exportStar(require("./config"), exports);
53
53
  var db_1 = require("./db");
54
54
  Object.defineProperty(exports, "Database", { enumerable: true, get: function () { return db_1.Database; } });
@@ -119,51 +119,32 @@ class PDS {
119
119
  textLimit: 100 * 1024, // 100kb
120
120
  blobLimit: cfg.service.blobUploadLimit,
121
121
  },
122
- };
123
- if (cfg.rateLimits.enabled) {
124
- const bypassSecret = cfg.rateLimits.bypassKey;
125
- const bypassIps = cfg.rateLimits.bypassIps;
126
- let rlCreator;
127
- if (cfg.rateLimits.mode === 'redis') {
128
- if (!ctx.redisScratch) {
129
- throw new Error('Redis not set up for ratelimiting mode: `redis`');
122
+ catchall: (0, pipethrough_1.proxyHandler)(ctx),
123
+ rateLimits: ctx.ratelimitCreator
124
+ ? {
125
+ creator: ctx.ratelimitCreator,
126
+ global: [
127
+ {
128
+ name: 'global-ip',
129
+ durationMs: 5 * common_1.MINUTE,
130
+ points: 3000,
131
+ },
132
+ ],
133
+ shared: [
134
+ {
135
+ name: 'repo-write-hour',
136
+ durationMs: common_1.HOUR,
137
+ points: 5000, // creates=3, puts=2, deletes=1
138
+ },
139
+ {
140
+ name: 'repo-write-day',
141
+ durationMs: common_1.DAY,
142
+ points: 35000, // creates=3, puts=2, deletes=1
143
+ },
144
+ ],
130
145
  }
131
- rlCreator = (opts) => xrpc_server_1.RateLimiter.redis(ctx.redisScratch, {
132
- bypassSecret,
133
- bypassIps,
134
- ...opts,
135
- });
136
- }
137
- else {
138
- rlCreator = (opts) => xrpc_server_1.RateLimiter.memory({
139
- bypassSecret,
140
- bypassIps,
141
- ...opts,
142
- });
143
- }
144
- xrpcOpts['rateLimits'] = {
145
- creator: rlCreator,
146
- global: [
147
- {
148
- name: 'global-ip',
149
- durationMs: 5 * common_1.MINUTE,
150
- points: 3000,
151
- },
152
- ],
153
- shared: [
154
- {
155
- name: 'repo-write-hour',
156
- durationMs: common_1.HOUR,
157
- points: 5000, // creates=3, puts=2, deletes=1
158
- },
159
- {
160
- name: 'repo-write-day',
161
- durationMs: common_1.DAY,
162
- points: 35000, // creates=3, puts=2, deletes=1
163
- },
164
- ],
165
- };
166
- }
146
+ : undefined,
147
+ };
167
148
  let server = (0, lexicon_1.createServer)(xrpcOpts);
168
149
  server = (0, api_1.default)(server, ctx);
169
150
  app.use(basicRoutes.createRouter(ctx));
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,sDAAsD;AACtD,mDAAmD;AACnD,+CAA+C;AAC/C,gCAA6B;AAE7B,sDAA6B;AAC7B,gDAAuB;AAEvB,oDAA2B;AAC3B,sDAK6B;AAC7B,4CAAmD;AACnD,gDAAuB;AACvB,4DAA6C;AAC7C,wDAAyC;AACzC,+CAAgC;AAChC,qCAA2C;AAE3C,uCAAwC;AACxC,qDAAsE;AACtE,wDAAyD;AACzD,qEAA4C;AAE5C,2CAAwB;AACxB,2BAA+B;AAAtB,8FAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,+GAAA,aAAa,OAAA;AACtB,qCAAsC;AAA7B,qGAAA,UAAU,OAAA;AACnB,mCAAqC;AAA5B,oGAAA,UAAU,OAAA;AACnB,iDAAuD;AAA9C,sHAAA,qBAAqB,OAAA;AAE9B,qCAA+D;AAAtD,8GAAA,YAAY,OAAuB;AAC5C,yDAAwC;AAExC,8DAA6C;AAE7C,MAAa,GAAG;IAQd,YAAY,IAAmD;QAPxD;;;;;WAAe;QACf;;;;;WAAwB;QACxB;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I,GAAG,CAAC;YACb,GAAG;YACH,GAAG;SACJ,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;QAChC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,MAAM,CAAC,gBAAgB,GAAG,KAAK,CAAA;QACpC,IAAI,CAAC,UAAU,GAAG,IAAA,sCAAoB,EAAC,EAAE,MAAM,EAAE,CAAC,CAAA;QAClD,MAAM,gBAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QACtC,OAAO,MAAM,CAAA;IACf,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;QAClC,MAAM,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,CAAA;QAClC,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,EAAE,CAAA;QACxC,MAAM,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,EAAE,CAAA;QACrC,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,CAAA;QACnC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QACnC,aAAa,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;IAC5C,CAAC;CACF;AA9FD,kBA8FC;AAED,kBAAe,GAAG,CAAA"}
@@ -122,6 +122,23 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
122
122
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions';
123
123
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
124
124
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
125
+ import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount';
126
+ import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData';
127
+ import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf';
128
+ import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo';
129
+ import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers';
130
+ import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog';
131
+ import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages';
132
+ import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo';
133
+ import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos';
134
+ import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo';
135
+ import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage';
136
+ import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch';
137
+ import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo';
138
+ import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead';
139
+ import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata';
140
+ import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext';
141
+ import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess';
125
142
  import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate';
126
143
  import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate';
127
144
  import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates';
@@ -171,6 +188,7 @@ export declare class Server {
171
188
  xrpc: XrpcServer;
172
189
  com: ComNS;
173
190
  app: AppNS;
191
+ chat: ChatNS;
174
192
  tools: ToolsNS;
175
193
  constructor(options?: XrpcOptions);
176
194
  }
@@ -392,6 +410,47 @@ export declare class AppBskyUnspeccedNS {
392
410
  searchActorsSkeleton<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedSearchActorsSkeleton.Handler<ExtractAuth<AV>>, AppBskyUnspeccedSearchActorsSkeleton.HandlerReqCtx<ExtractAuth<AV>>>): void;
393
411
  searchPostsSkeleton<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedSearchPostsSkeleton.Handler<ExtractAuth<AV>>, AppBskyUnspeccedSearchPostsSkeleton.HandlerReqCtx<ExtractAuth<AV>>>): void;
394
412
  }
413
+ export declare class ChatNS {
414
+ _server: Server;
415
+ bsky: ChatBskyNS;
416
+ constructor(server: Server);
417
+ }
418
+ export declare class ChatBskyNS {
419
+ _server: Server;
420
+ actor: ChatBskyActorNS;
421
+ convo: ChatBskyConvoNS;
422
+ moderation: ChatBskyModerationNS;
423
+ constructor(server: Server);
424
+ }
425
+ export declare class ChatBskyActorNS {
426
+ _server: Server;
427
+ constructor(server: Server);
428
+ deleteAccount<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyActorDeleteAccount.Handler<ExtractAuth<AV>>, ChatBskyActorDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>>): void;
429
+ exportAccountData<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyActorExportAccountData.Handler<ExtractAuth<AV>>, ChatBskyActorExportAccountData.HandlerReqCtx<ExtractAuth<AV>>>): void;
430
+ }
431
+ export declare class ChatBskyConvoNS {
432
+ _server: Server;
433
+ constructor(server: Server);
434
+ deleteMessageForSelf<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoDeleteMessageForSelf.Handler<ExtractAuth<AV>>, ChatBskyConvoDeleteMessageForSelf.HandlerReqCtx<ExtractAuth<AV>>>): void;
435
+ getConvo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoGetConvo.Handler<ExtractAuth<AV>>, ChatBskyConvoGetConvo.HandlerReqCtx<ExtractAuth<AV>>>): void;
436
+ getConvoForMembers<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoGetConvoForMembers.Handler<ExtractAuth<AV>>, ChatBskyConvoGetConvoForMembers.HandlerReqCtx<ExtractAuth<AV>>>): void;
437
+ getLog<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoGetLog.Handler<ExtractAuth<AV>>, ChatBskyConvoGetLog.HandlerReqCtx<ExtractAuth<AV>>>): void;
438
+ getMessages<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoGetMessages.Handler<ExtractAuth<AV>>, ChatBskyConvoGetMessages.HandlerReqCtx<ExtractAuth<AV>>>): void;
439
+ leaveConvo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoLeaveConvo.Handler<ExtractAuth<AV>>, ChatBskyConvoLeaveConvo.HandlerReqCtx<ExtractAuth<AV>>>): void;
440
+ listConvos<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoListConvos.Handler<ExtractAuth<AV>>, ChatBskyConvoListConvos.HandlerReqCtx<ExtractAuth<AV>>>): void;
441
+ muteConvo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoMuteConvo.Handler<ExtractAuth<AV>>, ChatBskyConvoMuteConvo.HandlerReqCtx<ExtractAuth<AV>>>): void;
442
+ sendMessage<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoSendMessage.Handler<ExtractAuth<AV>>, ChatBskyConvoSendMessage.HandlerReqCtx<ExtractAuth<AV>>>): void;
443
+ sendMessageBatch<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoSendMessageBatch.Handler<ExtractAuth<AV>>, ChatBskyConvoSendMessageBatch.HandlerReqCtx<ExtractAuth<AV>>>): void;
444
+ unmuteConvo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoUnmuteConvo.Handler<ExtractAuth<AV>>, ChatBskyConvoUnmuteConvo.HandlerReqCtx<ExtractAuth<AV>>>): void;
445
+ updateRead<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyConvoUpdateRead.Handler<ExtractAuth<AV>>, ChatBskyConvoUpdateRead.HandlerReqCtx<ExtractAuth<AV>>>): void;
446
+ }
447
+ export declare class ChatBskyModerationNS {
448
+ _server: Server;
449
+ constructor(server: Server);
450
+ getActorMetadata<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyModerationGetActorMetadata.Handler<ExtractAuth<AV>>, ChatBskyModerationGetActorMetadata.HandlerReqCtx<ExtractAuth<AV>>>): void;
451
+ getMessageContext<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyModerationGetMessageContext.Handler<ExtractAuth<AV>>, ChatBskyModerationGetMessageContext.HandlerReqCtx<ExtractAuth<AV>>>): void;
452
+ updateActorAccess<AV extends AuthVerifier>(cfg: ConfigOf<AV, ChatBskyModerationUpdateActorAccess.Handler<ExtractAuth<AV>>, ChatBskyModerationUpdateActorAccess.HandlerReqCtx<ExtractAuth<AV>>>): void;
453
+ }
395
454
  export declare class ToolsNS {
396
455
  _server: Server;
397
456
  ozone: ToolsOzoneNS;