@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
@@ -1,35 +1,15 @@
1
1
  import { Server } from '../../../../lexicon'
2
2
  import AppContext from '../../../../context'
3
- import getActorFeeds from './getActorFeeds'
4
3
  import getActorLikes from './getActorLikes'
5
4
  import getAuthorFeed from './getAuthorFeed'
6
5
  import getFeed from './getFeed'
7
- import getFeedGenerator from './getFeedGenerator'
8
- import getFeedGenerators from './getFeedGenerators'
9
- import getLikes from './getLikes'
10
- import getListFeed from './getListFeed'
11
- import getPosts from './getPosts'
12
6
  import getPostThread from './getPostThread'
13
- import getRepostedBy from './getRepostedBy'
14
- import getSuggestedFeeds from './getSuggestedFeeds'
15
7
  import getTimeline from './getTimeline'
16
- import searchPosts from './searchPosts'
17
- import sendInteractions from './sendInteractions'
18
8
 
19
9
  export default function (server: Server, ctx: AppContext) {
20
- getActorFeeds(server, ctx)
21
10
  getActorLikes(server, ctx)
22
11
  getAuthorFeed(server, ctx)
23
12
  getFeed(server, ctx)
24
- getFeedGenerator(server, ctx)
25
- getFeedGenerators(server, ctx)
26
- getLikes(server, ctx)
27
- getListFeed(server, ctx)
28
- getPosts(server, ctx)
29
13
  getPostThread(server, ctx)
30
- getRepostedBy(server, ctx)
31
- getSuggestedFeeds(server, ctx)
32
14
  getTimeline(server, ctx)
33
- searchPosts(server, ctx)
34
- sendInteractions(server, ctx)
35
15
  }
@@ -2,16 +2,10 @@ import { Server } from '../../../lexicon'
2
2
  import AppContext from '../../../context'
3
3
  import actor from './actor'
4
4
  import feed from './feed'
5
- import graph from './graph'
6
- import labeler from './labeler'
7
5
  import notification from './notification'
8
- import unspecced from './unspecced'
9
6
 
10
7
  export default function (server: Server, ctx: AppContext) {
11
8
  actor(server, ctx)
12
9
  feed(server, ctx)
13
- graph(server, ctx)
14
- labeler(server, ctx)
15
10
  notification(server, ctx)
16
- unspecced(server, ctx)
17
11
  }
@@ -1,14 +1,7 @@
1
1
  import { Server } from '../../../../lexicon'
2
2
  import AppContext from '../../../../context'
3
-
4
- import getUnreadCount from './getUnreadCount'
5
- import listNotifications from './listNotifications'
6
3
  import registerPush from './registerPush'
7
- import updateSeen from './updateSeen'
8
4
 
9
5
  export default function (server: Server, ctx: AppContext) {
10
- getUnreadCount(server, ctx)
11
- listNotifications(server, ctx)
12
6
  registerPush(server, ctx)
13
- updateSeen(server, ctx)
14
7
  }
@@ -2,7 +2,6 @@ import AppContext from '../../../context'
2
2
  import { Server } from '../../../lexicon'
3
3
  import admin from './admin'
4
4
  import identity from './identity'
5
- import moderation from './moderation'
6
5
  import repo from './repo'
7
6
  import serverMethods from './server'
8
7
  import sync from './sync'
@@ -11,7 +10,6 @@ import temp from './temp'
11
10
  export default function (server: Server, ctx: AppContext) {
12
11
  admin(server, ctx)
13
12
  identity(server, ctx)
14
- moderation(server, ctx)
15
13
  repo(server, ctx)
16
14
  serverMethods(server, ctx)
17
15
  sync(server, ctx)
@@ -32,6 +32,6 @@ export default function (server: Server, ctx: AppContext) {
32
32
  throw new InvalidRequestError(`Could not locate record`)
33
33
  }
34
34
 
35
- return await pipethrough(ctx, req)
35
+ return await pipethrough(ctx, req, null)
36
36
  })
37
37
  }
package/src/api/index.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  import { Server } from '../lexicon'
2
2
  import comAtproto from './com/atproto'
3
3
  import appBsky from './app/bsky'
4
- import toolsOzone from './tools/ozone'
5
4
  import AppContext from '../context'
6
5
 
7
6
  export default function (server: Server, ctx: AppContext) {
8
7
  comAtproto(server, ctx)
9
8
  appBsky(server, ctx)
10
- toolsOzone(server, ctx)
11
9
  return server
12
10
  }
package/src/context.ts CHANGED
@@ -6,7 +6,12 @@ import * as crypto from '@atproto/crypto'
6
6
  import { IdResolver } from '@atproto/identity'
7
7
  import { AtpAgent } from '@atproto/api'
8
8
  import { KmsKeypair, S3BlobStore } from '@atproto/aws'
9
- import { createServiceAuthHeaders } from '@atproto/xrpc-server'
9
+ import {
10
+ RateLimiter,
11
+ RateLimiterCreator,
12
+ RateLimiterOpts,
13
+ createServiceAuthHeaders,
14
+ } from '@atproto/xrpc-server'
10
15
  import { ServerConfig, ServerSecrets } from './config'
11
16
  import {
12
17
  AuthVerifier,
@@ -39,6 +44,7 @@ export type AppContextOptions = {
39
44
  sequencer: Sequencer
40
45
  backgroundQueue: BackgroundQueue
41
46
  redisScratch?: Redis
47
+ ratelimitCreator?: RateLimiterCreator
42
48
  crawlers: Crawlers
43
49
  appViewAgent?: AtpAgent
44
50
  moderationAgent?: AtpAgent
@@ -62,6 +68,7 @@ export class AppContext {
62
68
  public sequencer: Sequencer
63
69
  public backgroundQueue: BackgroundQueue
64
70
  public redisScratch?: Redis
71
+ public ratelimitCreator?: RateLimiterCreator
65
72
  public crawlers: Crawlers
66
73
  public appViewAgent: AtpAgent | undefined
67
74
  public moderationAgent: AtpAgent | undefined
@@ -84,6 +91,7 @@ export class AppContext {
84
91
  this.sequencer = opts.sequencer
85
92
  this.backgroundQueue = opts.backgroundQueue
86
93
  this.redisScratch = opts.redisScratch
94
+ this.ratelimitCreator = opts.ratelimitCreator
87
95
  this.crawlers = opts.crawlers
88
96
  this.appViewAgent = opts.appViewAgent
89
97
  this.moderationAgent = opts.moderationAgent
@@ -160,6 +168,30 @@ export class AppContext {
160
168
  ? getRedisClient(cfg.redis.address, cfg.redis.password)
161
169
  : undefined
162
170
 
171
+ let ratelimitCreator: RateLimiterCreator | undefined = undefined
172
+ if (cfg.rateLimits.enabled) {
173
+ const bypassSecret = cfg.rateLimits.bypassKey
174
+ const bypassIps = cfg.rateLimits.bypassIps
175
+ if (cfg.rateLimits.mode === 'redis') {
176
+ if (!redisScratch) {
177
+ throw new Error('Redis not set up for ratelimiting mode: `redis`')
178
+ }
179
+ ratelimitCreator = (opts: RateLimiterOpts) =>
180
+ RateLimiter.redis(redisScratch, {
181
+ bypassSecret,
182
+ bypassIps,
183
+ ...opts,
184
+ })
185
+ } else {
186
+ ratelimitCreator = (opts: RateLimiterOpts) =>
187
+ RateLimiter.memory({
188
+ bypassSecret,
189
+ bypassIps,
190
+ ...opts,
191
+ })
192
+ }
193
+ }
194
+
163
195
  const appViewAgent = cfg.bskyAppView
164
196
  ? new AtpAgent({ service: cfg.bskyAppView.url })
165
197
  : undefined
@@ -231,6 +263,7 @@ export class AppContext {
231
263
  sequencer,
232
264
  backgroundQueue,
233
265
  redisScratch,
266
+ ratelimitCreator,
234
267
  crawlers,
235
268
  appViewAgent,
236
269
  moderationAgent,
package/src/index.ts CHANGED
@@ -8,12 +8,7 @@ import express from 'express'
8
8
  import cors from 'cors'
9
9
  import http from 'http'
10
10
  import events from 'events'
11
- import {
12
- RateLimiter,
13
- RateLimiterCreator,
14
- RateLimiterOpts,
15
- Options as XrpcServerOptions,
16
- } from '@atproto/xrpc-server'
11
+ import { Options as XrpcServerOptions } from '@atproto/xrpc-server'
17
12
  import { DAY, HOUR, MINUTE } from '@atproto/common'
18
13
  import API from './api'
19
14
  import * as basicRoutes from './basic-routes'
@@ -25,6 +20,7 @@ import { createServer } from './lexicon'
25
20
  import { createHttpTerminator, HttpTerminator } from 'http-terminator'
26
21
  import AppContext, { AppContextOptions } from './context'
27
22
  import compression from './util/compression'
23
+ import { proxyHandler } from './pipethrough'
28
24
 
29
25
  export * from './config'
30
26
  export { Database } from './db'
@@ -71,51 +67,31 @@ export class PDS {
71
67
  textLimit: 100 * 1024, // 100kb
72
68
  blobLimit: cfg.service.blobUploadLimit,
73
69
  },
74
- }
75
- if (cfg.rateLimits.enabled) {
76
- const bypassSecret = cfg.rateLimits.bypassKey
77
- const bypassIps = cfg.rateLimits.bypassIps
78
- let rlCreator: RateLimiterCreator
79
- if (cfg.rateLimits.mode === 'redis') {
80
- if (!ctx.redisScratch) {
81
- throw new Error('Redis not set up for ratelimiting mode: `redis`')
82
- }
83
- rlCreator = (opts: RateLimiterOpts) =>
84
- RateLimiter.redis(ctx.redisScratch, {
85
- bypassSecret,
86
- bypassIps,
87
- ...opts,
88
- })
89
- } else {
90
- rlCreator = (opts: RateLimiterOpts) =>
91
- RateLimiter.memory({
92
- bypassSecret,
93
- bypassIps,
94
- ...opts,
95
- })
96
- }
97
- xrpcOpts['rateLimits'] = {
98
- creator: rlCreator,
99
- global: [
100
- {
101
- name: 'global-ip',
102
- durationMs: 5 * MINUTE,
103
- points: 3000,
104
- },
105
- ],
106
- shared: [
107
- {
108
- name: 'repo-write-hour',
109
- durationMs: HOUR,
110
- points: 5000, // creates=3, puts=2, deletes=1
111
- },
112
- {
113
- name: 'repo-write-day',
114
- durationMs: DAY,
115
- points: 35000, // creates=3, puts=2, deletes=1
116
- },
117
- ],
118
- }
70
+ catchall: proxyHandler(ctx),
71
+ rateLimits: ctx.ratelimitCreator
72
+ ? {
73
+ creator: ctx.ratelimitCreator,
74
+ global: [
75
+ {
76
+ name: 'global-ip',
77
+ durationMs: 5 * MINUTE,
78
+ points: 3000,
79
+ },
80
+ ],
81
+ shared: [
82
+ {
83
+ name: 'repo-write-hour',
84
+ durationMs: HOUR,
85
+ points: 5000, // creates=3, puts=2, deletes=1
86
+ },
87
+ {
88
+ name: 'repo-write-day',
89
+ durationMs: DAY,
90
+ points: 35000, // creates=3, puts=2, deletes=1
91
+ },
92
+ ],
93
+ }
94
+ : undefined,
119
95
  }
120
96
 
121
97
  let server = createServer(xrpcOpts)
@@ -129,6 +129,23 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
129
129
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
130
130
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
131
131
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
132
+ import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount'
133
+ import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData'
134
+ import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf'
135
+ import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo'
136
+ import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers'
137
+ import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog'
138
+ import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages'
139
+ import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo'
140
+ import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos'
141
+ import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo'
142
+ import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage'
143
+ import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch'
144
+ import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo'
145
+ import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead'
146
+ import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata'
147
+ import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext'
148
+ import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess'
132
149
  import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate'
133
150
  import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate'
134
151
  import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates'
@@ -183,12 +200,14 @@ export class Server {
183
200
  xrpc: XrpcServer
184
201
  com: ComNS
185
202
  app: AppNS
203
+ chat: ChatNS
186
204
  tools: ToolsNS
187
205
 
188
206
  constructor(options?: XrpcOptions) {
189
207
  this.xrpc = createXrpcServer(schemas, options)
190
208
  this.com = new ComNS(this)
191
209
  this.app = new AppNS(this)
210
+ this.chat = new ChatNS(this)
192
211
  this.tools = new ToolsNS(this)
193
212
  }
194
213
  }
@@ -1713,6 +1732,241 @@ export class AppBskyUnspeccedNS {
1713
1732
  }
1714
1733
  }
1715
1734
 
1735
+ export class ChatNS {
1736
+ _server: Server
1737
+ bsky: ChatBskyNS
1738
+
1739
+ constructor(server: Server) {
1740
+ this._server = server
1741
+ this.bsky = new ChatBskyNS(server)
1742
+ }
1743
+ }
1744
+
1745
+ export class ChatBskyNS {
1746
+ _server: Server
1747
+ actor: ChatBskyActorNS
1748
+ convo: ChatBskyConvoNS
1749
+ moderation: ChatBskyModerationNS
1750
+
1751
+ constructor(server: Server) {
1752
+ this._server = server
1753
+ this.actor = new ChatBskyActorNS(server)
1754
+ this.convo = new ChatBskyConvoNS(server)
1755
+ this.moderation = new ChatBskyModerationNS(server)
1756
+ }
1757
+ }
1758
+
1759
+ export class ChatBskyActorNS {
1760
+ _server: Server
1761
+
1762
+ constructor(server: Server) {
1763
+ this._server = server
1764
+ }
1765
+
1766
+ deleteAccount<AV extends AuthVerifier>(
1767
+ cfg: ConfigOf<
1768
+ AV,
1769
+ ChatBskyActorDeleteAccount.Handler<ExtractAuth<AV>>,
1770
+ ChatBskyActorDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>
1771
+ >,
1772
+ ) {
1773
+ const nsid = 'chat.bsky.actor.deleteAccount' // @ts-ignore
1774
+ return this._server.xrpc.method(nsid, cfg)
1775
+ }
1776
+
1777
+ exportAccountData<AV extends AuthVerifier>(
1778
+ cfg: ConfigOf<
1779
+ AV,
1780
+ ChatBskyActorExportAccountData.Handler<ExtractAuth<AV>>,
1781
+ ChatBskyActorExportAccountData.HandlerReqCtx<ExtractAuth<AV>>
1782
+ >,
1783
+ ) {
1784
+ const nsid = 'chat.bsky.actor.exportAccountData' // @ts-ignore
1785
+ return this._server.xrpc.method(nsid, cfg)
1786
+ }
1787
+ }
1788
+
1789
+ export class ChatBskyConvoNS {
1790
+ _server: Server
1791
+
1792
+ constructor(server: Server) {
1793
+ this._server = server
1794
+ }
1795
+
1796
+ deleteMessageForSelf<AV extends AuthVerifier>(
1797
+ cfg: ConfigOf<
1798
+ AV,
1799
+ ChatBskyConvoDeleteMessageForSelf.Handler<ExtractAuth<AV>>,
1800
+ ChatBskyConvoDeleteMessageForSelf.HandlerReqCtx<ExtractAuth<AV>>
1801
+ >,
1802
+ ) {
1803
+ const nsid = 'chat.bsky.convo.deleteMessageForSelf' // @ts-ignore
1804
+ return this._server.xrpc.method(nsid, cfg)
1805
+ }
1806
+
1807
+ getConvo<AV extends AuthVerifier>(
1808
+ cfg: ConfigOf<
1809
+ AV,
1810
+ ChatBskyConvoGetConvo.Handler<ExtractAuth<AV>>,
1811
+ ChatBskyConvoGetConvo.HandlerReqCtx<ExtractAuth<AV>>
1812
+ >,
1813
+ ) {
1814
+ const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore
1815
+ return this._server.xrpc.method(nsid, cfg)
1816
+ }
1817
+
1818
+ getConvoForMembers<AV extends AuthVerifier>(
1819
+ cfg: ConfigOf<
1820
+ AV,
1821
+ ChatBskyConvoGetConvoForMembers.Handler<ExtractAuth<AV>>,
1822
+ ChatBskyConvoGetConvoForMembers.HandlerReqCtx<ExtractAuth<AV>>
1823
+ >,
1824
+ ) {
1825
+ const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore
1826
+ return this._server.xrpc.method(nsid, cfg)
1827
+ }
1828
+
1829
+ getLog<AV extends AuthVerifier>(
1830
+ cfg: ConfigOf<
1831
+ AV,
1832
+ ChatBskyConvoGetLog.Handler<ExtractAuth<AV>>,
1833
+ ChatBskyConvoGetLog.HandlerReqCtx<ExtractAuth<AV>>
1834
+ >,
1835
+ ) {
1836
+ const nsid = 'chat.bsky.convo.getLog' // @ts-ignore
1837
+ return this._server.xrpc.method(nsid, cfg)
1838
+ }
1839
+
1840
+ getMessages<AV extends AuthVerifier>(
1841
+ cfg: ConfigOf<
1842
+ AV,
1843
+ ChatBskyConvoGetMessages.Handler<ExtractAuth<AV>>,
1844
+ ChatBskyConvoGetMessages.HandlerReqCtx<ExtractAuth<AV>>
1845
+ >,
1846
+ ) {
1847
+ const nsid = 'chat.bsky.convo.getMessages' // @ts-ignore
1848
+ return this._server.xrpc.method(nsid, cfg)
1849
+ }
1850
+
1851
+ leaveConvo<AV extends AuthVerifier>(
1852
+ cfg: ConfigOf<
1853
+ AV,
1854
+ ChatBskyConvoLeaveConvo.Handler<ExtractAuth<AV>>,
1855
+ ChatBskyConvoLeaveConvo.HandlerReqCtx<ExtractAuth<AV>>
1856
+ >,
1857
+ ) {
1858
+ const nsid = 'chat.bsky.convo.leaveConvo' // @ts-ignore
1859
+ return this._server.xrpc.method(nsid, cfg)
1860
+ }
1861
+
1862
+ listConvos<AV extends AuthVerifier>(
1863
+ cfg: ConfigOf<
1864
+ AV,
1865
+ ChatBskyConvoListConvos.Handler<ExtractAuth<AV>>,
1866
+ ChatBskyConvoListConvos.HandlerReqCtx<ExtractAuth<AV>>
1867
+ >,
1868
+ ) {
1869
+ const nsid = 'chat.bsky.convo.listConvos' // @ts-ignore
1870
+ return this._server.xrpc.method(nsid, cfg)
1871
+ }
1872
+
1873
+ muteConvo<AV extends AuthVerifier>(
1874
+ cfg: ConfigOf<
1875
+ AV,
1876
+ ChatBskyConvoMuteConvo.Handler<ExtractAuth<AV>>,
1877
+ ChatBskyConvoMuteConvo.HandlerReqCtx<ExtractAuth<AV>>
1878
+ >,
1879
+ ) {
1880
+ const nsid = 'chat.bsky.convo.muteConvo' // @ts-ignore
1881
+ return this._server.xrpc.method(nsid, cfg)
1882
+ }
1883
+
1884
+ sendMessage<AV extends AuthVerifier>(
1885
+ cfg: ConfigOf<
1886
+ AV,
1887
+ ChatBskyConvoSendMessage.Handler<ExtractAuth<AV>>,
1888
+ ChatBskyConvoSendMessage.HandlerReqCtx<ExtractAuth<AV>>
1889
+ >,
1890
+ ) {
1891
+ const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore
1892
+ return this._server.xrpc.method(nsid, cfg)
1893
+ }
1894
+
1895
+ sendMessageBatch<AV extends AuthVerifier>(
1896
+ cfg: ConfigOf<
1897
+ AV,
1898
+ ChatBskyConvoSendMessageBatch.Handler<ExtractAuth<AV>>,
1899
+ ChatBskyConvoSendMessageBatch.HandlerReqCtx<ExtractAuth<AV>>
1900
+ >,
1901
+ ) {
1902
+ const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore
1903
+ return this._server.xrpc.method(nsid, cfg)
1904
+ }
1905
+
1906
+ unmuteConvo<AV extends AuthVerifier>(
1907
+ cfg: ConfigOf<
1908
+ AV,
1909
+ ChatBskyConvoUnmuteConvo.Handler<ExtractAuth<AV>>,
1910
+ ChatBskyConvoUnmuteConvo.HandlerReqCtx<ExtractAuth<AV>>
1911
+ >,
1912
+ ) {
1913
+ const nsid = 'chat.bsky.convo.unmuteConvo' // @ts-ignore
1914
+ return this._server.xrpc.method(nsid, cfg)
1915
+ }
1916
+
1917
+ updateRead<AV extends AuthVerifier>(
1918
+ cfg: ConfigOf<
1919
+ AV,
1920
+ ChatBskyConvoUpdateRead.Handler<ExtractAuth<AV>>,
1921
+ ChatBskyConvoUpdateRead.HandlerReqCtx<ExtractAuth<AV>>
1922
+ >,
1923
+ ) {
1924
+ const nsid = 'chat.bsky.convo.updateRead' // @ts-ignore
1925
+ return this._server.xrpc.method(nsid, cfg)
1926
+ }
1927
+ }
1928
+
1929
+ export class ChatBskyModerationNS {
1930
+ _server: Server
1931
+
1932
+ constructor(server: Server) {
1933
+ this._server = server
1934
+ }
1935
+
1936
+ getActorMetadata<AV extends AuthVerifier>(
1937
+ cfg: ConfigOf<
1938
+ AV,
1939
+ ChatBskyModerationGetActorMetadata.Handler<ExtractAuth<AV>>,
1940
+ ChatBskyModerationGetActorMetadata.HandlerReqCtx<ExtractAuth<AV>>
1941
+ >,
1942
+ ) {
1943
+ const nsid = 'chat.bsky.moderation.getActorMetadata' // @ts-ignore
1944
+ return this._server.xrpc.method(nsid, cfg)
1945
+ }
1946
+
1947
+ getMessageContext<AV extends AuthVerifier>(
1948
+ cfg: ConfigOf<
1949
+ AV,
1950
+ ChatBskyModerationGetMessageContext.Handler<ExtractAuth<AV>>,
1951
+ ChatBskyModerationGetMessageContext.HandlerReqCtx<ExtractAuth<AV>>
1952
+ >,
1953
+ ) {
1954
+ const nsid = 'chat.bsky.moderation.getMessageContext' // @ts-ignore
1955
+ return this._server.xrpc.method(nsid, cfg)
1956
+ }
1957
+
1958
+ updateActorAccess<AV extends AuthVerifier>(
1959
+ cfg: ConfigOf<
1960
+ AV,
1961
+ ChatBskyModerationUpdateActorAccess.Handler<ExtractAuth<AV>>,
1962
+ ChatBskyModerationUpdateActorAccess.HandlerReqCtx<ExtractAuth<AV>>
1963
+ >,
1964
+ ) {
1965
+ const nsid = 'chat.bsky.moderation.updateActorAccess' // @ts-ignore
1966
+ return this._server.xrpc.method(nsid, cfg)
1967
+ }
1968
+ }
1969
+
1716
1970
  export class ToolsNS {
1717
1971
  _server: Server
1718
1972
  ozone: ToolsOzoneNS