@atproto/pds 0.4.219 → 0.4.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/account-manager/account-manager.d.ts +17 -0
  3. package/dist/account-manager/account-manager.d.ts.map +1 -1
  4. package/dist/account-manager/account-manager.js +27 -3
  5. package/dist/account-manager/account-manager.js.map +1 -1
  6. package/dist/account-manager/oauth-store.d.ts.map +1 -1
  7. package/dist/account-manager/oauth-store.js +9 -1
  8. package/dist/account-manager/oauth-store.js.map +1 -1
  9. package/dist/lexicons/chat/bsky/actor/declaration.defs.d.ts +14 -0
  10. package/dist/lexicons/chat/bsky/actor/declaration.defs.d.ts.map +1 -1
  11. package/dist/lexicons/chat/bsky/actor/declaration.defs.js +1 -0
  12. package/dist/lexicons/chat/bsky/actor/declaration.defs.js.map +1 -1
  13. package/dist/lexicons/chat/bsky/actor/defs.defs.d.ts +35 -0
  14. package/dist/lexicons/chat/bsky/actor/defs.defs.d.ts.map +1 -1
  15. package/dist/lexicons/chat/bsky/actor/defs.defs.js +17 -1
  16. package/dist/lexicons/chat/bsky/actor/defs.defs.js.map +1 -1
  17. package/dist/lexicons/chat/bsky/authFullChatClient.defs.js +1 -1
  18. package/dist/lexicons/chat/bsky/authFullChatClient.defs.js.map +1 -1
  19. package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.d.ts +2 -1
  20. package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.d.ts.map +1 -1
  21. package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.js +2 -1
  22. package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.js.map +1 -1
  23. package/dist/lexicons/chat/bsky/convo/addReaction.defs.d.ts +1 -1
  24. package/dist/lexicons/chat/bsky/convo/addReaction.defs.d.ts.map +1 -1
  25. package/dist/lexicons/chat/bsky/convo/addReaction.defs.js +7 -1
  26. package/dist/lexicons/chat/bsky/convo/addReaction.defs.js.map +1 -1
  27. package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts +430 -3
  28. package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts.map +1 -1
  29. package/dist/lexicons/chat/bsky/convo/defs.defs.js +234 -2
  30. package/dist/lexicons/chat/bsky/convo/defs.defs.js.map +1 -1
  31. package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.d.ts +2 -1
  32. package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.d.ts.map +1 -1
  33. package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.js +2 -1
  34. package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.js.map +1 -1
  35. package/dist/lexicons/chat/bsky/convo/getConvo.defs.d.ts +2 -1
  36. package/dist/lexicons/chat/bsky/convo/getConvo.defs.d.ts.map +1 -1
  37. package/dist/lexicons/chat/bsky/convo/getConvo.defs.js +2 -1
  38. package/dist/lexicons/chat/bsky/convo/getConvo.defs.js.map +1 -1
  39. package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.d.ts +1 -1
  40. package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.d.ts.map +1 -1
  41. package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.js +1 -1
  42. package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.js.map +1 -1
  43. package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.d.ts +2 -1
  44. package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.d.ts.map +1 -1
  45. package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.js +8 -1
  46. package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.js.map +1 -1
  47. package/dist/lexicons/chat/bsky/convo/getLog.defs.d.ts +2 -2
  48. package/dist/lexicons/chat/bsky/convo/getLog.defs.d.ts.map +1 -1
  49. package/dist/lexicons/chat/bsky/convo/getLog.defs.js +17 -0
  50. package/dist/lexicons/chat/bsky/convo/getLog.defs.js.map +1 -1
  51. package/dist/lexicons/chat/bsky/convo/getMessages.defs.d.ts +4 -3
  52. package/dist/lexicons/chat/bsky/convo/getMessages.defs.d.ts.map +1 -1
  53. package/dist/lexicons/chat/bsky/convo/getMessages.defs.js +3 -1
  54. package/dist/lexicons/chat/bsky/convo/getMessages.defs.js.map +1 -1
  55. package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.d.ts +2 -1
  56. package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.d.ts.map +1 -1
  57. package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.js +2 -1
  58. package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.js.map +1 -1
  59. package/dist/lexicons/chat/bsky/convo/listConvoRequests.d.ts +3 -0
  60. package/dist/lexicons/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  61. package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.d.ts +25 -0
  62. package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.d.ts.map +1 -0
  63. package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.js +58 -0
  64. package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.js.map +1 -0
  65. package/dist/lexicons/chat/bsky/convo/listConvoRequests.js +45 -0
  66. package/dist/lexicons/chat/bsky/convo/listConvoRequests.js.map +1 -0
  67. package/dist/lexicons/chat/bsky/convo/listConvos.defs.d.ts +7 -0
  68. package/dist/lexicons/chat/bsky/convo/listConvos.defs.d.ts.map +1 -1
  69. package/dist/lexicons/chat/bsky/convo/listConvos.defs.js +2 -0
  70. package/dist/lexicons/chat/bsky/convo/listConvos.defs.js.map +1 -1
  71. package/dist/lexicons/chat/bsky/convo/lockConvo.d.ts +3 -0
  72. package/dist/lexicons/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  73. package/dist/lexicons/chat/bsky/convo/lockConvo.defs.d.ts +22 -0
  74. package/dist/lexicons/chat/bsky/convo/lockConvo.defs.d.ts.map +1 -0
  75. package/dist/lexicons/chat/bsky/convo/lockConvo.defs.js +50 -0
  76. package/dist/lexicons/chat/bsky/convo/lockConvo.defs.js.map +1 -0
  77. package/dist/lexicons/chat/bsky/convo/lockConvo.js +45 -0
  78. package/dist/lexicons/chat/bsky/convo/lockConvo.js.map +1 -0
  79. package/dist/lexicons/chat/bsky/convo/muteConvo.defs.d.ts +2 -1
  80. package/dist/lexicons/chat/bsky/convo/muteConvo.defs.d.ts.map +1 -1
  81. package/dist/lexicons/chat/bsky/convo/muteConvo.defs.js +2 -1
  82. package/dist/lexicons/chat/bsky/convo/muteConvo.defs.js.map +1 -1
  83. package/dist/lexicons/chat/bsky/convo/removeReaction.defs.d.ts +1 -1
  84. package/dist/lexicons/chat/bsky/convo/removeReaction.defs.d.ts.map +1 -1
  85. package/dist/lexicons/chat/bsky/convo/removeReaction.defs.js +6 -1
  86. package/dist/lexicons/chat/bsky/convo/removeReaction.defs.js.map +1 -1
  87. package/dist/lexicons/chat/bsky/convo/sendMessage.defs.d.ts +2 -1
  88. package/dist/lexicons/chat/bsky/convo/sendMessage.defs.d.ts.map +1 -1
  89. package/dist/lexicons/chat/bsky/convo/sendMessage.defs.js +2 -1
  90. package/dist/lexicons/chat/bsky/convo/sendMessage.defs.js.map +1 -1
  91. package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.d.ts +2 -1
  92. package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.d.ts.map +1 -1
  93. package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.js +2 -1
  94. package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.js.map +1 -1
  95. package/dist/lexicons/chat/bsky/convo/unlockConvo.d.ts +3 -0
  96. package/dist/lexicons/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  97. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts +22 -0
  98. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts.map +1 -0
  99. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js +50 -0
  100. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js.map +1 -0
  101. package/dist/lexicons/chat/bsky/convo/unlockConvo.js +45 -0
  102. package/dist/lexicons/chat/bsky/convo/unlockConvo.js.map +1 -0
  103. package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.d.ts +2 -1
  104. package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.d.ts.map +1 -1
  105. package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.js +2 -1
  106. package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.js.map +1 -1
  107. package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.d.ts +1 -0
  108. package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.d.ts.map +1 -1
  109. package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.js +1 -0
  110. package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.js.map +1 -1
  111. package/dist/lexicons/chat/bsky/convo/updateRead.defs.d.ts +2 -1
  112. package/dist/lexicons/chat/bsky/convo/updateRead.defs.d.ts.map +1 -1
  113. package/dist/lexicons/chat/bsky/convo/updateRead.defs.js +2 -1
  114. package/dist/lexicons/chat/bsky/convo/updateRead.defs.js.map +1 -1
  115. package/dist/lexicons/chat/bsky/convo.d.ts +3 -0
  116. package/dist/lexicons/chat/bsky/convo.d.ts.map +1 -1
  117. package/dist/lexicons/chat/bsky/convo.js +4 -1
  118. package/dist/lexicons/chat/bsky/convo.js.map +1 -1
  119. package/dist/lexicons/chat/bsky/group/addMembers.d.ts +3 -0
  120. package/dist/lexicons/chat/bsky/group/addMembers.d.ts.map +1 -0
  121. package/dist/lexicons/chat/bsky/group/addMembers.defs.d.ts +28 -0
  122. package/dist/lexicons/chat/bsky/group/addMembers.defs.d.ts.map +1 -0
  123. package/dist/lexicons/chat/bsky/group/addMembers.defs.js +63 -0
  124. package/dist/lexicons/chat/bsky/group/addMembers.defs.js.map +1 -0
  125. package/dist/lexicons/chat/bsky/group/addMembers.js +45 -0
  126. package/dist/lexicons/chat/bsky/group/addMembers.js.map +1 -0
  127. package/dist/lexicons/chat/bsky/group/approveJoinRequest.d.ts +3 -0
  128. package/dist/lexicons/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  129. package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.d.ts +28 -0
  130. package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.d.ts.map +1 -0
  131. package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.js +50 -0
  132. package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.js.map +1 -0
  133. package/dist/lexicons/chat/bsky/group/approveJoinRequest.js +45 -0
  134. package/dist/lexicons/chat/bsky/group/approveJoinRequest.js.map +1 -0
  135. package/dist/lexicons/chat/bsky/group/createGroup.d.ts +3 -0
  136. package/dist/lexicons/chat/bsky/group/createGroup.d.ts.map +1 -0
  137. package/dist/lexicons/chat/bsky/group/createGroup.defs.d.ts +36 -0
  138. package/dist/lexicons/chat/bsky/group/createGroup.defs.d.ts.map +1 -0
  139. package/dist/lexicons/chat/bsky/group/createGroup.defs.js +59 -0
  140. package/dist/lexicons/chat/bsky/group/createGroup.defs.js.map +1 -0
  141. package/dist/lexicons/chat/bsky/group/createGroup.js +45 -0
  142. package/dist/lexicons/chat/bsky/group/createGroup.js.map +1 -0
  143. package/dist/lexicons/chat/bsky/group/createJoinLink.d.ts +3 -0
  144. package/dist/lexicons/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  145. package/dist/lexicons/chat/bsky/group/createJoinLink.defs.d.ts +26 -0
  146. package/dist/lexicons/chat/bsky/group/createJoinLink.defs.d.ts.map +1 -0
  147. package/dist/lexicons/chat/bsky/group/createJoinLink.defs.js +54 -0
  148. package/dist/lexicons/chat/bsky/group/createJoinLink.defs.js.map +1 -0
  149. package/dist/lexicons/chat/bsky/group/createJoinLink.js +45 -0
  150. package/dist/lexicons/chat/bsky/group/createJoinLink.js.map +1 -0
  151. package/dist/lexicons/chat/bsky/group/defs.d.ts +3 -0
  152. package/dist/lexicons/chat/bsky/group/defs.d.ts.map +1 -0
  153. package/dist/lexicons/chat/bsky/group/defs.defs.d.ts +47 -0
  154. package/dist/lexicons/chat/bsky/group/defs.defs.d.ts.map +1 -0
  155. package/dist/lexicons/chat/bsky/group/defs.defs.js +69 -0
  156. package/dist/lexicons/chat/bsky/group/defs.defs.js.map +1 -0
  157. package/dist/lexicons/chat/bsky/group/defs.js +45 -0
  158. package/dist/lexicons/chat/bsky/group/defs.js.map +1 -0
  159. package/dist/lexicons/chat/bsky/group/disableJoinLink.d.ts +3 -0
  160. package/dist/lexicons/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  161. package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.d.ts +22 -0
  162. package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.d.ts.map +1 -0
  163. package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.js +50 -0
  164. package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.js.map +1 -0
  165. package/dist/lexicons/chat/bsky/group/disableJoinLink.js +45 -0
  166. package/dist/lexicons/chat/bsky/group/disableJoinLink.js.map +1 -0
  167. package/dist/lexicons/chat/bsky/group/editGroup.d.ts +3 -0
  168. package/dist/lexicons/chat/bsky/group/editGroup.d.ts.map +1 -0
  169. package/dist/lexicons/chat/bsky/group/editGroup.defs.d.ts +32 -0
  170. package/dist/lexicons/chat/bsky/group/editGroup.defs.d.ts.map +1 -0
  171. package/dist/lexicons/chat/bsky/group/editGroup.defs.js +53 -0
  172. package/dist/lexicons/chat/bsky/group/editGroup.defs.js.map +1 -0
  173. package/dist/lexicons/chat/bsky/group/editGroup.js +45 -0
  174. package/dist/lexicons/chat/bsky/group/editGroup.js.map +1 -0
  175. package/dist/lexicons/chat/bsky/group/editJoinLink.d.ts +3 -0
  176. package/dist/lexicons/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  177. package/dist/lexicons/chat/bsky/group/editJoinLink.defs.d.ts +26 -0
  178. package/dist/lexicons/chat/bsky/group/editJoinLink.defs.d.ts.map +1 -0
  179. package/dist/lexicons/chat/bsky/group/editJoinLink.defs.js +54 -0
  180. package/dist/lexicons/chat/bsky/group/editJoinLink.defs.js.map +1 -0
  181. package/dist/lexicons/chat/bsky/group/editJoinLink.js +45 -0
  182. package/dist/lexicons/chat/bsky/group/editJoinLink.js.map +1 -0
  183. package/dist/lexicons/chat/bsky/group/enableJoinLink.d.ts +3 -0
  184. package/dist/lexicons/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  185. package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.d.ts +22 -0
  186. package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.d.ts.map +1 -0
  187. package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.js +50 -0
  188. package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.js.map +1 -0
  189. package/dist/lexicons/chat/bsky/group/enableJoinLink.js +45 -0
  190. package/dist/lexicons/chat/bsky/group/enableJoinLink.js.map +1 -0
  191. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.d.ts +3 -0
  192. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  193. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.d.ts +20 -0
  194. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.d.ts.map +1 -0
  195. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.js +50 -0
  196. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.js.map +1 -0
  197. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.js +45 -0
  198. package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  199. package/dist/lexicons/chat/bsky/group/listJoinRequests.d.ts +3 -0
  200. package/dist/lexicons/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  201. package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.d.ts +26 -0
  202. package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.d.ts.map +1 -0
  203. package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.js +55 -0
  204. package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.js.map +1 -0
  205. package/dist/lexicons/chat/bsky/group/listJoinRequests.js +45 -0
  206. package/dist/lexicons/chat/bsky/group/listJoinRequests.js.map +1 -0
  207. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.d.ts +3 -0
  208. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  209. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.d.ts +23 -0
  210. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.d.ts.map +1 -0
  211. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.js +14 -0
  212. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.js.map +1 -0
  213. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.js +45 -0
  214. package/dist/lexicons/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  215. package/dist/lexicons/chat/bsky/group/removeMembers.d.ts +3 -0
  216. package/dist/lexicons/chat/bsky/group/removeMembers.d.ts.map +1 -0
  217. package/dist/lexicons/chat/bsky/group/removeMembers.defs.d.ts +28 -0
  218. package/dist/lexicons/chat/bsky/group/removeMembers.defs.d.ts.map +1 -0
  219. package/dist/lexicons/chat/bsky/group/removeMembers.defs.js +53 -0
  220. package/dist/lexicons/chat/bsky/group/removeMembers.defs.js.map +1 -0
  221. package/dist/lexicons/chat/bsky/group/removeMembers.js +45 -0
  222. package/dist/lexicons/chat/bsky/group/removeMembers.js.map +1 -0
  223. package/dist/lexicons/chat/bsky/group/requestJoin.d.ts +3 -0
  224. package/dist/lexicons/chat/bsky/group/requestJoin.d.ts.map +1 -0
  225. package/dist/lexicons/chat/bsky/group/requestJoin.defs.d.ts +28 -0
  226. package/dist/lexicons/chat/bsky/group/requestJoin.defs.d.ts.map +1 -0
  227. package/dist/lexicons/chat/bsky/group/requestJoin.defs.js +58 -0
  228. package/dist/lexicons/chat/bsky/group/requestJoin.defs.js.map +1 -0
  229. package/dist/lexicons/chat/bsky/group/requestJoin.js +45 -0
  230. package/dist/lexicons/chat/bsky/group/requestJoin.js.map +1 -0
  231. package/dist/lexicons/chat/bsky/group.d.ts +15 -0
  232. package/dist/lexicons/chat/bsky/group.d.ts.map +1 -0
  233. package/dist/lexicons/chat/bsky/group.js +54 -0
  234. package/dist/lexicons/chat/bsky/group.js.map +1 -0
  235. package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.d.ts +2 -2
  236. package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.d.ts.map +1 -1
  237. package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.js +1 -0
  238. package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.js.map +1 -1
  239. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.d.ts +3 -0
  240. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  241. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts +32 -0
  242. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts.map +1 -0
  243. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.js +23 -0
  244. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.js.map +1 -0
  245. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.js +45 -0
  246. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  247. package/dist/lexicons/chat/bsky/moderation.d.ts +1 -0
  248. package/dist/lexicons/chat/bsky/moderation.d.ts.map +1 -1
  249. package/dist/lexicons/chat/bsky/moderation.js +2 -1
  250. package/dist/lexicons/chat/bsky/moderation.js.map +1 -1
  251. package/dist/lexicons/chat/bsky.d.ts +1 -0
  252. package/dist/lexicons/chat/bsky.d.ts.map +1 -1
  253. package/dist/lexicons/chat/bsky.js +2 -1
  254. package/dist/lexicons/chat/bsky.js.map +1 -1
  255. package/package.json +10 -10
  256. package/src/account-manager/account-manager.ts +23 -2
  257. package/src/account-manager/oauth-store.ts +10 -2
  258. package/tests/auth.test.ts +89 -0
  259. package/tsconfig.build.tsbuildinfo +1 -1
@@ -36,13 +36,21 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.logRemoveReaction = exports.logAddReaction = exports.logReadMessage = exports.logDeleteMessage = exports.logCreateMessage = exports.logUnmuteConvo = exports.logMuteConvo = exports.logLeaveConvo = exports.logAcceptConvo = exports.logBeginConvo = exports.convoView = exports.messageAndReactionView = exports.reactionViewSender = exports.reactionView = exports.messageViewSender = exports.deletedMessageView = exports.messageView = exports.messageInput = exports.messageRef = exports.$nsid = void 0;
39
+ exports.logEnableJoinLink = exports.logEditJoinLink = exports.logCreateJoinLink = exports.logEditGroup = exports.logLockConvoPermanently = exports.logUnlockConvo = exports.logLockConvo = exports.logMemberLeave = exports.logMemberJoin = exports.logRemoveMember = exports.logAddMember = exports.logReadConvo = exports.logRemoveReaction = exports.logAddReaction = exports.logReadMessage = exports.logDeleteMessage = exports.logCreateMessage = exports.logUnmuteConvo = exports.logMuteConvo = exports.logLeaveConvo = exports.logAcceptConvo = exports.logBeginConvo = exports.groupConvo = exports.directConvo = exports.convoView = exports.messageAndReactionView = exports.reactionViewSender = exports.reactionView = exports.messageViewSender = exports.deletedMessageView = exports.systemMessageDataDisableJoinLink = exports.systemMessageDataEnableJoinLink = exports.systemMessageDataEditJoinLink = exports.systemMessageDataCreateJoinLink = exports.systemMessageDataEditGroup = exports.systemMessageDataLockConvoPermanently = exports.systemMessageDataUnlockConvo = exports.systemMessageDataLockConvo = exports.systemMessageDataMemberLeave = exports.systemMessageDataMemberJoin = exports.systemMessageDataRemoveMember = exports.systemMessageDataAddMember = exports.systemMessageView = exports.messageView = exports.messageInput = exports.messageRef = exports.convoStatus = exports.convoLockStatus = exports.convoKind = exports.$nsid = void 0;
40
+ exports.logOutgoingJoinRequest = exports.logRejectJoinRequest = exports.logApproveJoinRequest = exports.logIncomingJoinRequest = exports.logDisableJoinLink = void 0;
40
41
  const lex_1 = require("@atproto/lex");
41
42
  const RichtextFacet = __importStar(require("../../../app/bsky/richtext/facet.defs.js"));
42
43
  const EmbedRecord = __importStar(require("../../../app/bsky/embed/record.defs.js"));
43
44
  const ActorDefs = __importStar(require("../actor/defs.defs.js"));
45
+ const GroupDefs = __importStar(require("../group/defs.defs.js"));
44
46
  const $nsid = 'chat.bsky.convo.defs';
45
47
  exports.$nsid = $nsid;
48
+ const convoKind = lex_1.l.string();
49
+ exports.convoKind = convoKind;
50
+ const convoLockStatus = lex_1.l.string();
51
+ exports.convoLockStatus = convoLockStatus;
52
+ const convoStatus = lex_1.l.string();
53
+ exports.convoStatus = convoStatus;
46
54
  const messageRef = lex_1.l.typedObject($nsid, 'messageRef', lex_1.l.object({
47
55
  did: lex_1.l.string({ format: 'did' }),
48
56
  convoId: lex_1.l.string(),
@@ -66,6 +74,85 @@ const messageView = lex_1.l.typedObject($nsid, 'messageView', lex_1.l.object({
66
74
  sentAt: lex_1.l.string({ format: 'datetime' }),
67
75
  }));
68
76
  exports.messageView = messageView;
77
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
78
+ const systemMessageView = lex_1.l.typedObject($nsid, 'systemMessageView', lex_1.l.object({
79
+ id: lex_1.l.string(),
80
+ rev: lex_1.l.string(),
81
+ sentAt: lex_1.l.string({ format: 'datetime' }),
82
+ data: lex_1.l.typedUnion([
83
+ lex_1.l.typedRef((() => systemMessageDataAddMember)),
84
+ lex_1.l.typedRef((() => systemMessageDataRemoveMember)),
85
+ lex_1.l.typedRef((() => systemMessageDataMemberJoin)),
86
+ lex_1.l.typedRef((() => systemMessageDataMemberLeave)),
87
+ lex_1.l.typedRef((() => systemMessageDataLockConvo)),
88
+ lex_1.l.typedRef((() => systemMessageDataUnlockConvo)),
89
+ lex_1.l.typedRef((() => systemMessageDataLockConvoPermanently)),
90
+ lex_1.l.typedRef((() => systemMessageDataEditGroup)),
91
+ lex_1.l.typedRef((() => systemMessageDataCreateJoinLink)),
92
+ lex_1.l.typedRef((() => systemMessageDataEditJoinLink)),
93
+ lex_1.l.typedRef((() => systemMessageDataEnableJoinLink)),
94
+ lex_1.l.typedRef((() => systemMessageDataDisableJoinLink)),
95
+ ], false),
96
+ }));
97
+ exports.systemMessageView = systemMessageView;
98
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was added to the group convo. */
99
+ const systemMessageDataAddMember = lex_1.l.typedObject($nsid, 'systemMessageDataAddMember', lex_1.l.object({
100
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
101
+ role: lex_1.l.ref((() => ActorDefs.memberRole)),
102
+ addedBy: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
103
+ }));
104
+ exports.systemMessageDataAddMember = systemMessageDataAddMember;
105
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was removed from the group convo. */
106
+ const systemMessageDataRemoveMember = lex_1.l.typedObject($nsid, 'systemMessageDataRemoveMember', lex_1.l.object({
107
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
108
+ removedBy: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
109
+ }));
110
+ exports.systemMessageDataRemoveMember = systemMessageDataRemoveMember;
111
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user joined the group convo via join link. */
112
+ const systemMessageDataMemberJoin = lex_1.l.typedObject($nsid, 'systemMessageDataMemberJoin', lex_1.l.object({
113
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
114
+ role: lex_1.l.ref((() => ActorDefs.memberRole)),
115
+ approvedBy: lex_1.l.optional(lex_1.l.ref((() => ActorDefs.profileViewBasic))),
116
+ }));
117
+ exports.systemMessageDataMemberJoin = systemMessageDataMemberJoin;
118
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user voluntarily left the group convo. */
119
+ const systemMessageDataMemberLeave = lex_1.l.typedObject($nsid, 'systemMessageDataMemberLeave', lex_1.l.object({
120
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
121
+ }));
122
+ exports.systemMessageDataMemberLeave = systemMessageDataMemberLeave;
123
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked. */
124
+ const systemMessageDataLockConvo = lex_1.l.typedObject($nsid, 'systemMessageDataLockConvo', lex_1.l.object({
125
+ lockedBy: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
126
+ }));
127
+ exports.systemMessageDataLockConvo = systemMessageDataLockConvo;
128
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked. */
129
+ const systemMessageDataUnlockConvo = lex_1.l.typedObject($nsid, 'systemMessageDataUnlockConvo', lex_1.l.object({
130
+ unlockedBy: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
131
+ }));
132
+ exports.systemMessageDataUnlockConvo = systemMessageDataUnlockConvo;
133
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked permanently. */
134
+ const systemMessageDataLockConvoPermanently = lex_1.l.typedObject($nsid, 'systemMessageDataLockConvoPermanently', lex_1.l.object({
135
+ lockedBy: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
136
+ }));
137
+ exports.systemMessageDataLockConvoPermanently = systemMessageDataLockConvoPermanently;
138
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited. */
139
+ const systemMessageDataEditGroup = lex_1.l.typedObject($nsid, 'systemMessageDataEditGroup', lex_1.l.object({
140
+ oldName: lex_1.l.optional(lex_1.l.string()),
141
+ newName: lex_1.l.optional(lex_1.l.string()),
142
+ }));
143
+ exports.systemMessageDataEditGroup = systemMessageDataEditGroup;
144
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was created. */
145
+ const systemMessageDataCreateJoinLink = lex_1.l.typedObject($nsid, 'systemMessageDataCreateJoinLink', lex_1.l.object({}));
146
+ exports.systemMessageDataCreateJoinLink = systemMessageDataCreateJoinLink;
147
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was edited. */
148
+ const systemMessageDataEditJoinLink = lex_1.l.typedObject($nsid, 'systemMessageDataEditJoinLink', lex_1.l.object({}));
149
+ exports.systemMessageDataEditJoinLink = systemMessageDataEditJoinLink;
150
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was enabled. */
151
+ const systemMessageDataEnableJoinLink = lex_1.l.typedObject($nsid, 'systemMessageDataEnableJoinLink', lex_1.l.object({}));
152
+ exports.systemMessageDataEnableJoinLink = systemMessageDataEnableJoinLink;
153
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was disabled. */
154
+ const systemMessageDataDisableJoinLink = lex_1.l.typedObject($nsid, 'systemMessageDataDisableJoinLink', lex_1.l.object({}));
155
+ exports.systemMessageDataDisableJoinLink = systemMessageDataDisableJoinLink;
69
156
  const deletedMessageView = lex_1.l.typedObject($nsid, 'deletedMessageView', lex_1.l.object({
70
157
  id: lex_1.l.string(),
71
158
  rev: lex_1.l.string(),
@@ -95,25 +182,46 @@ const convoView = lex_1.l.typedObject($nsid, 'convoView', lex_1.l.object({
95
182
  lastMessage: lex_1.l.optional(lex_1.l.typedUnion([
96
183
  lex_1.l.typedRef((() => messageView)),
97
184
  lex_1.l.typedRef((() => deletedMessageView)),
185
+ lex_1.l.typedRef((() => systemMessageView)),
98
186
  ], false)),
99
187
  lastReaction: lex_1.l.optional(lex_1.l.typedUnion([
100
188
  lex_1.l.typedRef((() => messageAndReactionView)),
101
189
  ], false)),
102
190
  muted: lex_1.l.boolean(),
103
- status: lex_1.l.optional(lex_1.l.string()),
191
+ status: lex_1.l.optional(lex_1.l.ref((() => convoStatus))),
104
192
  unreadCount: lex_1.l.integer(),
193
+ kind: lex_1.l.optional(lex_1.l.typedUnion([
194
+ lex_1.l.typedRef((() => directConvo)),
195
+ lex_1.l.typedRef((() => groupConvo)),
196
+ ], false)),
105
197
  }));
106
198
  exports.convoView = convoView;
199
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
200
+ const directConvo = lex_1.l.typedObject($nsid, 'directConvo', lex_1.l.object({}));
201
+ exports.directConvo = directConvo;
202
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
203
+ const groupConvo = lex_1.l.typedObject($nsid, 'groupConvo', lex_1.l.object({
204
+ name: lex_1.l.string({ maxGraphemes: 128, maxLength: 1280 }),
205
+ joinLink: lex_1.l.optional(lex_1.l.ref((() => GroupDefs.joinLinkView))),
206
+ lockStatus: lex_1.l.ref((() => convoLockStatus)),
207
+ }));
208
+ exports.groupConvo = groupConvo;
209
+ /** Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event. */
107
210
  const logBeginConvo = lex_1.l.typedObject($nsid, 'logBeginConvo', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
108
211
  exports.logBeginConvo = logBeginConvo;
212
+ /** Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group. */
109
213
  const logAcceptConvo = lex_1.l.typedObject($nsid, 'logAcceptConvo', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
110
214
  exports.logAcceptConvo = logAcceptConvo;
215
+ /** Event indicating the viewer left a convo. Can be direct or group. */
111
216
  const logLeaveConvo = lex_1.l.typedObject($nsid, 'logLeaveConvo', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
112
217
  exports.logLeaveConvo = logLeaveConvo;
218
+ /** Event indicating the viewer muted a convo. Can be direct or group. */
113
219
  const logMuteConvo = lex_1.l.typedObject($nsid, 'logMuteConvo', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
114
220
  exports.logMuteConvo = logMuteConvo;
221
+ /** Event indicating the viewer unmuted a convo. Can be direct or group. */
115
222
  const logUnmuteConvo = lex_1.l.typedObject($nsid, 'logUnmuteConvo', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
116
223
  exports.logUnmuteConvo = logUnmuteConvo;
224
+ /** Event indicating a user-originated message was created. Is not emitted for system messages. */
117
225
  const logCreateMessage = lex_1.l.typedObject($nsid, 'logCreateMessage', lex_1.l.object({
118
226
  rev: lex_1.l.string(),
119
227
  convoId: lex_1.l.string(),
@@ -123,6 +231,7 @@ const logCreateMessage = lex_1.l.typedObject($nsid, 'logCreateMessage', lex_1.l.
123
231
  ], false),
124
232
  }));
125
233
  exports.logCreateMessage = logCreateMessage;
234
+ /** Event indicating a user-originated message was deleted. Is not emitted for system messages. */
126
235
  const logDeleteMessage = lex_1.l.typedObject($nsid, 'logDeleteMessage', lex_1.l.object({
127
236
  rev: lex_1.l.string(),
128
237
  convoId: lex_1.l.string(),
@@ -132,15 +241,18 @@ const logDeleteMessage = lex_1.l.typedObject($nsid, 'logDeleteMessage', lex_1.l.
132
241
  ], false),
133
242
  }));
134
243
  exports.logDeleteMessage = logDeleteMessage;
244
+ /** @deprecated use logReadConvo instead. Event indicating a convo was read up to a certain message. */
135
245
  const logReadMessage = lex_1.l.typedObject($nsid, 'logReadMessage', lex_1.l.object({
136
246
  rev: lex_1.l.string(),
137
247
  convoId: lex_1.l.string(),
138
248
  message: lex_1.l.typedUnion([
139
249
  lex_1.l.typedRef((() => messageView)),
140
250
  lex_1.l.typedRef((() => deletedMessageView)),
251
+ lex_1.l.typedRef((() => systemMessageView)),
141
252
  ], false),
142
253
  }));
143
254
  exports.logReadMessage = logReadMessage;
255
+ /** Event indicating a reaction was added to a message. */
144
256
  const logAddReaction = lex_1.l.typedObject($nsid, 'logAddReaction', lex_1.l.object({
145
257
  rev: lex_1.l.string(),
146
258
  convoId: lex_1.l.string(),
@@ -151,6 +263,7 @@ const logAddReaction = lex_1.l.typedObject($nsid, 'logAddReaction', lex_1.l.obje
151
263
  reaction: lex_1.l.ref((() => reactionView)),
152
264
  }));
153
265
  exports.logAddReaction = logAddReaction;
266
+ /** Event indicating a reaction was removed from a message. */
154
267
  const logRemoveReaction = lex_1.l.typedObject($nsid, 'logRemoveReaction', lex_1.l.object({
155
268
  rev: lex_1.l.string(),
156
269
  convoId: lex_1.l.string(),
@@ -161,4 +274,123 @@ const logRemoveReaction = lex_1.l.typedObject($nsid, 'logRemoveReaction', lex_1.
161
274
  reaction: lex_1.l.ref((() => reactionView)),
162
275
  }));
163
276
  exports.logRemoveReaction = logRemoveReaction;
277
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a convo was read up to a certain message. */
278
+ const logReadConvo = lex_1.l.typedObject($nsid, 'logReadConvo', lex_1.l.object({
279
+ rev: lex_1.l.string(),
280
+ convoId: lex_1.l.string(),
281
+ message: lex_1.l.typedUnion([
282
+ lex_1.l.typedRef((() => messageView)),
283
+ lex_1.l.typedRef((() => deletedMessageView)),
284
+ lex_1.l.typedRef((() => systemMessageView)),
285
+ ], false),
286
+ }));
287
+ exports.logReadConvo = logReadConvo;
288
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees). */
289
+ const logAddMember = lex_1.l.typedObject($nsid, 'logAddMember', lex_1.l.object({
290
+ rev: lex_1.l.string(),
291
+ convoId: lex_1.l.string(),
292
+ message: lex_1.l.ref((() => systemMessageDataAddMember)),
293
+ }));
294
+ exports.logAddMember = logAddMember;
295
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message). */
296
+ const logRemoveMember = lex_1.l.typedObject($nsid, 'logRemoveMember', lex_1.l.object({
297
+ rev: lex_1.l.string(),
298
+ convoId: lex_1.l.string(),
299
+ message: lex_1.l.ref((() => systemMessageDataRemoveMember)),
300
+ }));
301
+ exports.logRemoveMember = logRemoveMember;
302
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees). */
303
+ const logMemberJoin = lex_1.l.typedObject($nsid, 'logMemberJoin', lex_1.l.object({
304
+ rev: lex_1.l.string(),
305
+ convoId: lex_1.l.string(),
306
+ message: lex_1.l.ref((() => systemMessageDataMemberJoin)),
307
+ }));
308
+ exports.logMemberJoin = logMemberJoin;
309
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message). */
310
+ const logMemberLeave = lex_1.l.typedObject($nsid, 'logMemberLeave', lex_1.l.object({
311
+ rev: lex_1.l.string(),
312
+ convoId: lex_1.l.string(),
313
+ message: lex_1.l.ref((() => systemMessageDataMemberLeave)),
314
+ }));
315
+ exports.logMemberLeave = logMemberLeave;
316
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked. */
317
+ const logLockConvo = lex_1.l.typedObject($nsid, 'logLockConvo', lex_1.l.object({
318
+ rev: lex_1.l.string(),
319
+ convoId: lex_1.l.string(),
320
+ message: lex_1.l.ref((() => systemMessageDataLockConvo)),
321
+ }));
322
+ exports.logLockConvo = logLockConvo;
323
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked. */
324
+ const logUnlockConvo = lex_1.l.typedObject($nsid, 'logUnlockConvo', lex_1.l.object({
325
+ rev: lex_1.l.string(),
326
+ convoId: lex_1.l.string(),
327
+ message: lex_1.l.ref((() => systemMessageDataUnlockConvo)),
328
+ }));
329
+ exports.logUnlockConvo = logUnlockConvo;
330
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently. */
331
+ const logLockConvoPermanently = lex_1.l.typedObject($nsid, 'logLockConvoPermanently', lex_1.l.object({
332
+ rev: lex_1.l.string(),
333
+ convoId: lex_1.l.string(),
334
+ message: lex_1.l.ref((() => systemMessageDataLockConvoPermanently)),
335
+ }));
336
+ exports.logLockConvoPermanently = logLockConvoPermanently;
337
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited. */
338
+ const logEditGroup = lex_1.l.typedObject($nsid, 'logEditGroup', lex_1.l.object({
339
+ rev: lex_1.l.string(),
340
+ convoId: lex_1.l.string(),
341
+ message: lex_1.l.ref((() => systemMessageDataEditGroup)),
342
+ }));
343
+ exports.logEditGroup = logEditGroup;
344
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was created for a group convo. */
345
+ const logCreateJoinLink = lex_1.l.typedObject($nsid, 'logCreateJoinLink', lex_1.l.object({
346
+ rev: lex_1.l.string(),
347
+ convoId: lex_1.l.string(),
348
+ message: lex_1.l.ref((() => systemMessageDataCreateJoinLink)),
349
+ }));
350
+ exports.logCreateJoinLink = logCreateJoinLink;
351
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a settings about a join link for a group convo were edited. */
352
+ const logEditJoinLink = lex_1.l.typedObject($nsid, 'logEditJoinLink', lex_1.l.object({
353
+ rev: lex_1.l.string(),
354
+ convoId: lex_1.l.string(),
355
+ message: lex_1.l.ref((() => systemMessageDataEditJoinLink)),
356
+ }));
357
+ exports.logEditJoinLink = logEditJoinLink;
358
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was enabled for a group convo. */
359
+ const logEnableJoinLink = lex_1.l.typedObject($nsid, 'logEnableJoinLink', lex_1.l.object({
360
+ rev: lex_1.l.string(),
361
+ convoId: lex_1.l.string(),
362
+ message: lex_1.l.ref((() => systemMessageDataEnableJoinLink)),
363
+ }));
364
+ exports.logEnableJoinLink = logEnableJoinLink;
365
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was disabled for a group convo. */
366
+ const logDisableJoinLink = lex_1.l.typedObject($nsid, 'logDisableJoinLink', lex_1.l.object({
367
+ rev: lex_1.l.string(),
368
+ convoId: lex_1.l.string(),
369
+ message: lex_1.l.ref((() => systemMessageDataDisableJoinLink)),
370
+ }));
371
+ exports.logDisableJoinLink = logDisableJoinLink;
372
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made to a group the viewer owns. Only the owner gets this. */
373
+ const logIncomingJoinRequest = lex_1.l.typedObject($nsid, 'logIncomingJoinRequest', lex_1.l.object({
374
+ rev: lex_1.l.string(),
375
+ convoId: lex_1.l.string(),
376
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
377
+ }));
378
+ exports.logIncomingJoinRequest = logIncomingJoinRequest;
379
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo. */
380
+ const logApproveJoinRequest = lex_1.l.typedObject($nsid, 'logApproveJoinRequest', lex_1.l.object({
381
+ rev: lex_1.l.string(),
382
+ convoId: lex_1.l.string(),
383
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
384
+ }));
385
+ exports.logApproveJoinRequest = logApproveJoinRequest;
386
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was rejected by the viewer. Only the owner gets this. */
387
+ const logRejectJoinRequest = lex_1.l.typedObject($nsid, 'logRejectJoinRequest', lex_1.l.object({
388
+ rev: lex_1.l.string(),
389
+ convoId: lex_1.l.string(),
390
+ member: lex_1.l.ref((() => ActorDefs.profileViewBasic)),
391
+ }));
392
+ exports.logRejectJoinRequest = logRejectJoinRequest;
393
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made by the viewer. */
394
+ const logOutgoingJoinRequest = lex_1.l.typedObject($nsid, 'logOutgoingJoinRequest', lex_1.l.object({ rev: lex_1.l.string(), convoId: lex_1.l.string() }));
395
+ exports.logOutgoingJoinRequest = logOutgoingJoinRequest;
164
396
  //# sourceMappingURL=defs.defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/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AW,CACrC,KAAK,EACL,mBAAmB,EACnB,OAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,OAAC,CAAC,UAAU,CACnB;QACE,OAAC,CAAC,QAAQ,CAAc,CAAC,GAAG,EAAE,CAAC,WAAW,CAAQ,CAAC;QACnD,OAAC,CAAC,QAAQ,CAAqB,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAQ,CAAC;KAClE,EACD,KAAK,CACN;IACD,QAAQ,EAAE,OAAC,CAAC,GAAG,CAAe,CAAC,GAAG,EAAE,CAAC,YAAY,CAAQ,CAAC;CAC3D,CAAC,CACH,CAAA;AAEQ,8CAAiB","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RichtextFacet from '../../../app/bsky/richtext/facet.defs.js'\nimport * as EmbedRecord from '../../../app/bsky/embed/record.defs.js'\nimport * as ActorDefs from '../actor/defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.defs'\n\nexport { $nsid }\n\ntype MessageRef = {\n $type?: 'chat.bsky.convo.defs#messageRef'\n did: l.DidString\n convoId: string\n messageId: string\n}\n\nexport type { MessageRef }\n\nconst messageRef = l.typedObject<MessageRef>(\n $nsid,\n 'messageRef',\n l.object({\n did: l.string({ format: 'did' }),\n convoId: l.string(),\n messageId: l.string(),\n }),\n)\n\nexport { messageRef }\n\ntype MessageInput = {\n $type?: 'chat.bsky.convo.defs#messageInput'\n text: string\n\n /**\n * Annotations of text (mentions, URLs, hashtags, etc)\n */\n facets?: RichtextFacet.Main[]\n embed?: l.$Typed<EmbedRecord.Main> | l.Unknown$TypedObject\n}\n\nexport type { MessageInput }\n\nconst messageInput = l.typedObject<MessageInput>(\n $nsid,\n 'messageInput',\n l.object({\n text: l.string({ maxLength: 10000, maxGraphemes: 1000 }),\n facets: l.optional(\n l.array(l.ref<RichtextFacet.Main>((() => RichtextFacet.main) as any)),\n ),\n embed: l.optional(\n l.typedUnion(\n [l.typedRef<EmbedRecord.Main>((() => EmbedRecord.main) as any)],\n false,\n ),\n ),\n }),\n)\n\nexport { messageInput }\n\ntype MessageView = {\n $type?: 'chat.bsky.convo.defs#messageView'\n id: string\n rev: string\n text: string\n\n /**\n * Annotations of text (mentions, URLs, hashtags, etc)\n */\n facets?: RichtextFacet.Main[]\n embed?: l.$Typed<EmbedRecord.View> | l.Unknown$TypedObject\n\n /**\n * Reactions to this message, in ascending order of creation time.\n */\n reactions?: ReactionView[]\n sender: MessageViewSender\n sentAt: l.DatetimeString\n}\n\nexport type { MessageView }\n\nconst messageView = l.typedObject<MessageView>(\n $nsid,\n 'messageView',\n l.object({\n id: l.string(),\n rev: l.string(),\n text: l.string({ maxLength: 10000, maxGraphemes: 1000 }),\n facets: l.optional(\n l.array(l.ref<RichtextFacet.Main>((() => RichtextFacet.main) as any)),\n ),\n embed: l.optional(\n l.typedUnion(\n [l.typedRef<EmbedRecord.View>((() => EmbedRecord.view) as any)],\n false,\n ),\n ),\n reactions: l.optional(\n l.array(l.ref<ReactionView>((() => reactionView) as any)),\n ),\n sender: l.ref<MessageViewSender>((() => messageViewSender) as any),\n sentAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { messageView }\n\ntype DeletedMessageView = {\n $type?: 'chat.bsky.convo.defs#deletedMessageView'\n id: string\n rev: string\n sender: MessageViewSender\n sentAt: l.DatetimeString\n}\n\nexport type { DeletedMessageView }\n\nconst deletedMessageView = l.typedObject<DeletedMessageView>(\n $nsid,\n 'deletedMessageView',\n l.object({\n id: l.string(),\n rev: l.string(),\n sender: l.ref<MessageViewSender>((() => messageViewSender) as any),\n sentAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { deletedMessageView }\n\ntype MessageViewSender = {\n $type?: 'chat.bsky.convo.defs#messageViewSender'\n did: l.DidString\n}\n\nexport type { MessageViewSender }\n\nconst messageViewSender = l.typedObject<MessageViewSender>(\n $nsid,\n 'messageViewSender',\n l.object({ did: l.string({ format: 'did' }) }),\n)\n\nexport { messageViewSender }\n\ntype ReactionView = {\n $type?: 'chat.bsky.convo.defs#reactionView'\n value: string\n sender: ReactionViewSender\n createdAt: l.DatetimeString\n}\n\nexport type { ReactionView }\n\nconst reactionView = l.typedObject<ReactionView>(\n $nsid,\n 'reactionView',\n l.object({\n value: l.string(),\n sender: l.ref<ReactionViewSender>((() => reactionViewSender) as any),\n createdAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reactionView }\n\ntype ReactionViewSender = {\n $type?: 'chat.bsky.convo.defs#reactionViewSender'\n did: l.DidString\n}\n\nexport type { ReactionViewSender }\n\nconst reactionViewSender = l.typedObject<ReactionViewSender>(\n $nsid,\n 'reactionViewSender',\n l.object({ did: l.string({ format: 'did' }) }),\n)\n\nexport { reactionViewSender }\n\ntype MessageAndReactionView = {\n $type?: 'chat.bsky.convo.defs#messageAndReactionView'\n message: MessageView\n reaction: ReactionView\n}\n\nexport type { MessageAndReactionView }\n\nconst messageAndReactionView = l.typedObject<MessageAndReactionView>(\n $nsid,\n 'messageAndReactionView',\n l.object({\n message: l.ref<MessageView>((() => messageView) as any),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { messageAndReactionView }\n\ntype ConvoView = {\n $type?: 'chat.bsky.convo.defs#convoView'\n id: string\n rev: string\n members: ActorDefs.ProfileViewBasic[]\n lastMessage?:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n lastReaction?: l.$Typed<MessageAndReactionView> | l.Unknown$TypedObject\n muted: boolean\n status?: 'request' | 'accepted' | l.UnknownString\n unreadCount: number\n}\n\nexport type { ConvoView }\n\nconst convoView = l.typedObject<ConvoView>(\n $nsid,\n 'convoView',\n l.object({\n id: l.string(),\n rev: l.string(),\n members: l.array(\n l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n ),\n lastMessage: l.optional(\n l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n ),\n lastReaction: l.optional(\n l.typedUnion(\n [\n l.typedRef<MessageAndReactionView>(\n (() => messageAndReactionView) as any,\n ),\n ],\n false,\n ),\n ),\n muted: l.boolean(),\n status: l.optional(l.string<{ knownValues: ['request', 'accepted'] }>()),\n unreadCount: l.integer(),\n }),\n)\n\nexport { convoView }\n\ntype LogBeginConvo = {\n $type?: 'chat.bsky.convo.defs#logBeginConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogBeginConvo }\n\nconst logBeginConvo = l.typedObject<LogBeginConvo>(\n $nsid,\n 'logBeginConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logBeginConvo }\n\ntype LogAcceptConvo = {\n $type?: 'chat.bsky.convo.defs#logAcceptConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogAcceptConvo }\n\nconst logAcceptConvo = l.typedObject<LogAcceptConvo>(\n $nsid,\n 'logAcceptConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logAcceptConvo }\n\ntype LogLeaveConvo = {\n $type?: 'chat.bsky.convo.defs#logLeaveConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogLeaveConvo }\n\nconst logLeaveConvo = l.typedObject<LogLeaveConvo>(\n $nsid,\n 'logLeaveConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logLeaveConvo }\n\ntype LogMuteConvo = {\n $type?: 'chat.bsky.convo.defs#logMuteConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogMuteConvo }\n\nconst logMuteConvo = l.typedObject<LogMuteConvo>(\n $nsid,\n 'logMuteConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logMuteConvo }\n\ntype LogUnmuteConvo = {\n $type?: 'chat.bsky.convo.defs#logUnmuteConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogUnmuteConvo }\n\nconst logUnmuteConvo = l.typedObject<LogUnmuteConvo>(\n $nsid,\n 'logUnmuteConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logUnmuteConvo }\n\ntype LogCreateMessage = {\n $type?: 'chat.bsky.convo.defs#logCreateMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogCreateMessage }\n\nconst logCreateMessage = l.typedObject<LogCreateMessage>(\n $nsid,\n 'logCreateMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logCreateMessage }\n\ntype LogDeleteMessage = {\n $type?: 'chat.bsky.convo.defs#logDeleteMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogDeleteMessage }\n\nconst logDeleteMessage = l.typedObject<LogDeleteMessage>(\n $nsid,\n 'logDeleteMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logDeleteMessage }\n\ntype LogReadMessage = {\n $type?: 'chat.bsky.convo.defs#logReadMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogReadMessage }\n\nconst logReadMessage = l.typedObject<LogReadMessage>(\n $nsid,\n 'logReadMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logReadMessage }\n\ntype LogAddReaction = {\n $type?: 'chat.bsky.convo.defs#logAddReaction'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n reaction: ReactionView\n}\n\nexport type { LogAddReaction }\n\nconst logAddReaction = l.typedObject<LogAddReaction>(\n $nsid,\n 'logAddReaction',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { logAddReaction }\n\ntype LogRemoveReaction = {\n $type?: 'chat.bsky.convo.defs#logRemoveReaction'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n reaction: ReactionView\n}\n\nexport type { LogRemoveReaction }\n\nconst logRemoveReaction = l.typedObject<LogRemoveReaction>(\n $nsid,\n 'logRemoveReaction',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { logRemoveReaction }\n"]}
1
+ {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/defs.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sCAAgC;AAChC,wFAAyE;AACzE,oFAAqE;AACrE,iEAAkD;AAClD,iEAAkD;AAElD,MAAM,KAAK,GAAG,sBAAsB,CAAA;AAE3B,sBAAK;AAMd,MAAM,SAAS,GAAG,OAAC,CAA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CACX,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAQ,CAC1C;CACF,CAAC,CACH,CAAA;AAEQ,sDAAqB;AAgB9B,gMAAgM;AAChM,MAAM,oBAAoB,GAAG,OAAC,CAAC,WAAW,CACxC,KAAK,EACL,sBAAsB,EACtB,OAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,OAAC,CAAC,GAAG,CACX,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAQ,CAC1C;CACF,CAAC,CACH,CAAA;AAEQ,oDAAoB;AAW7B,kKAAkK;AAClK,MAAM,sBAAsB,GAAG,OAAC,CAAC,WAAW,CAC1C,KAAK,EACL,wBAAwB,EACxB,OAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACnD,CAAA;AAEQ,wDAAsB","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RichtextFacet from '../../../app/bsky/richtext/facet.defs.js'\nimport * as EmbedRecord from '../../../app/bsky/embed/record.defs.js'\nimport * as ActorDefs from '../actor/defs.defs.js'\nimport * as GroupDefs from '../group/defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.defs'\n\nexport { $nsid }\n\ntype ConvoKind = 'direct' | 'group' | l.UnknownString\n\nexport type { ConvoKind }\n\nconst convoKind = l.string<{ knownValues: ['direct', 'group'] }>()\n\nexport { convoKind }\n\ntype ConvoLockStatus =\n | 'unlocked'\n | 'locked'\n | 'locked-permanently'\n | l.UnknownString\n\nexport type { ConvoLockStatus }\n\nconst convoLockStatus = l.string<{\n knownValues: ['unlocked', 'locked', 'locked-permanently']\n}>()\n\nexport { convoLockStatus }\n\ntype ConvoStatus = 'request' | 'accepted' | l.UnknownString\n\nexport type { ConvoStatus }\n\nconst convoStatus = l.string<{ knownValues: ['request', 'accepted'] }>()\n\nexport { convoStatus }\n\ntype MessageRef = {\n $type?: 'chat.bsky.convo.defs#messageRef'\n did: l.DidString\n convoId: string\n messageId: string\n}\n\nexport type { MessageRef }\n\nconst messageRef = l.typedObject<MessageRef>(\n $nsid,\n 'messageRef',\n l.object({\n did: l.string({ format: 'did' }),\n convoId: l.string(),\n messageId: l.string(),\n }),\n)\n\nexport { messageRef }\n\ntype MessageInput = {\n $type?: 'chat.bsky.convo.defs#messageInput'\n text: string\n\n /**\n * Annotations of text (mentions, URLs, hashtags, etc)\n */\n facets?: RichtextFacet.Main[]\n embed?: l.$Typed<EmbedRecord.Main> | l.Unknown$TypedObject\n}\n\nexport type { MessageInput }\n\nconst messageInput = l.typedObject<MessageInput>(\n $nsid,\n 'messageInput',\n l.object({\n text: l.string({ maxLength: 10000, maxGraphemes: 1000 }),\n facets: l.optional(\n l.array(l.ref<RichtextFacet.Main>((() => RichtextFacet.main) as any)),\n ),\n embed: l.optional(\n l.typedUnion(\n [l.typedRef<EmbedRecord.Main>((() => EmbedRecord.main) as any)],\n false,\n ),\n ),\n }),\n)\n\nexport { messageInput }\n\ntype MessageView = {\n $type?: 'chat.bsky.convo.defs#messageView'\n id: string\n rev: string\n text: string\n\n /**\n * Annotations of text (mentions, URLs, hashtags, etc)\n */\n facets?: RichtextFacet.Main[]\n embed?: l.$Typed<EmbedRecord.View> | l.Unknown$TypedObject\n\n /**\n * Reactions to this message, in ascending order of creation time.\n */\n reactions?: ReactionView[]\n sender: MessageViewSender\n sentAt: l.DatetimeString\n}\n\nexport type { MessageView }\n\nconst messageView = l.typedObject<MessageView>(\n $nsid,\n 'messageView',\n l.object({\n id: l.string(),\n rev: l.string(),\n text: l.string({ maxLength: 10000, maxGraphemes: 1000 }),\n facets: l.optional(\n l.array(l.ref<RichtextFacet.Main>((() => RichtextFacet.main) as any)),\n ),\n embed: l.optional(\n l.typedUnion(\n [l.typedRef<EmbedRecord.View>((() => EmbedRecord.view) as any)],\n false,\n ),\n ),\n reactions: l.optional(\n l.array(l.ref<ReactionView>((() => reactionView) as any)),\n ),\n sender: l.ref<MessageViewSender>((() => messageViewSender) as any),\n sentAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { messageView }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\ntype SystemMessageView = {\n $type?: 'chat.bsky.convo.defs#systemMessageView'\n id: string\n rev: string\n sentAt: l.DatetimeString\n data:\n | l.$Typed<SystemMessageDataAddMember>\n | l.$Typed<SystemMessageDataRemoveMember>\n | l.$Typed<SystemMessageDataMemberJoin>\n | l.$Typed<SystemMessageDataMemberLeave>\n | l.$Typed<SystemMessageDataLockConvo>\n | l.$Typed<SystemMessageDataUnlockConvo>\n | l.$Typed<SystemMessageDataLockConvoPermanently>\n | l.$Typed<SystemMessageDataEditGroup>\n | l.$Typed<SystemMessageDataCreateJoinLink>\n | l.$Typed<SystemMessageDataEditJoinLink>\n | l.$Typed<SystemMessageDataEnableJoinLink>\n | l.$Typed<SystemMessageDataDisableJoinLink>\n | l.Unknown$TypedObject\n}\n\nexport type { SystemMessageView }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\nconst systemMessageView = l.typedObject<SystemMessageView>(\n $nsid,\n 'systemMessageView',\n l.object({\n id: l.string(),\n rev: l.string(),\n sentAt: l.string({ format: 'datetime' }),\n data: l.typedUnion(\n [\n l.typedRef<SystemMessageDataAddMember>(\n (() => systemMessageDataAddMember) as any,\n ),\n l.typedRef<SystemMessageDataRemoveMember>(\n (() => systemMessageDataRemoveMember) as any,\n ),\n l.typedRef<SystemMessageDataMemberJoin>(\n (() => systemMessageDataMemberJoin) as any,\n ),\n l.typedRef<SystemMessageDataMemberLeave>(\n (() => systemMessageDataMemberLeave) as any,\n ),\n l.typedRef<SystemMessageDataLockConvo>(\n (() => systemMessageDataLockConvo) as any,\n ),\n l.typedRef<SystemMessageDataUnlockConvo>(\n (() => systemMessageDataUnlockConvo) as any,\n ),\n l.typedRef<SystemMessageDataLockConvoPermanently>(\n (() => systemMessageDataLockConvoPermanently) as any,\n ),\n l.typedRef<SystemMessageDataEditGroup>(\n (() => systemMessageDataEditGroup) as any,\n ),\n l.typedRef<SystemMessageDataCreateJoinLink>(\n (() => systemMessageDataCreateJoinLink) as any,\n ),\n l.typedRef<SystemMessageDataEditJoinLink>(\n (() => systemMessageDataEditJoinLink) as any,\n ),\n l.typedRef<SystemMessageDataEnableJoinLink>(\n (() => systemMessageDataEnableJoinLink) as any,\n ),\n l.typedRef<SystemMessageDataDisableJoinLink>(\n (() => systemMessageDataDisableJoinLink) as any,\n ),\n ],\n false,\n ),\n }),\n)\n\nexport { systemMessageView }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was added to the group convo. */\ntype SystemMessageDataAddMember = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataAddMember'\n\n /**\n * Current view of the member who was added.\n */\n member: ActorDefs.ProfileViewBasic\n\n /**\n * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.\n */\n role: ActorDefs.MemberRole\n addedBy: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataAddMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was added to the group convo. */\nconst systemMessageDataAddMember = l.typedObject<SystemMessageDataAddMember>(\n $nsid,\n 'systemMessageDataAddMember',\n l.object({\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n role: l.ref<ActorDefs.MemberRole>((() => ActorDefs.memberRole) as any),\n addedBy: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n)\n\nexport { systemMessageDataAddMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was removed from the group convo. */\ntype SystemMessageDataRemoveMember = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataRemoveMember'\n\n /**\n * Current view of the member who was removed.\n */\n member: ActorDefs.ProfileViewBasic\n removedBy: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataRemoveMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was removed from the group convo. */\nconst systemMessageDataRemoveMember =\n l.typedObject<SystemMessageDataRemoveMember>(\n $nsid,\n 'systemMessageDataRemoveMember',\n l.object({\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n removedBy: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n )\n\nexport { systemMessageDataRemoveMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user joined the group convo via join link. */\ntype SystemMessageDataMemberJoin = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataMemberJoin'\n\n /**\n * Current view of the member who joined.\n */\n member: ActorDefs.ProfileViewBasic\n\n /**\n * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.\n */\n role: ActorDefs.MemberRole\n\n /**\n * If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.\n */\n approvedBy?: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataMemberJoin }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user joined the group convo via join link. */\nconst systemMessageDataMemberJoin = l.typedObject<SystemMessageDataMemberJoin>(\n $nsid,\n 'systemMessageDataMemberJoin',\n l.object({\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n role: l.ref<ActorDefs.MemberRole>((() => ActorDefs.memberRole) as any),\n approvedBy: l.optional(\n l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n ),\n }),\n)\n\nexport { systemMessageDataMemberJoin }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user voluntarily left the group convo. */\ntype SystemMessageDataMemberLeave = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataMemberLeave'\n\n /**\n * Current view of the member who left the group.\n */\n member: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataMemberLeave }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user voluntarily left the group convo. */\nconst systemMessageDataMemberLeave =\n l.typedObject<SystemMessageDataMemberLeave>(\n $nsid,\n 'systemMessageDataMemberLeave',\n l.object({\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n )\n\nexport { systemMessageDataMemberLeave }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked. */\ntype SystemMessageDataLockConvo = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataLockConvo'\n\n /**\n * Current view of the member who locked the group.\n */\n lockedBy: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataLockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked. */\nconst systemMessageDataLockConvo = l.typedObject<SystemMessageDataLockConvo>(\n $nsid,\n 'systemMessageDataLockConvo',\n l.object({\n lockedBy: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n)\n\nexport { systemMessageDataLockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked. */\ntype SystemMessageDataUnlockConvo = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataUnlockConvo'\n\n /**\n * Current view of the member who unlocked the group.\n */\n unlockedBy: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataUnlockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked. */\nconst systemMessageDataUnlockConvo =\n l.typedObject<SystemMessageDataUnlockConvo>(\n $nsid,\n 'systemMessageDataUnlockConvo',\n l.object({\n unlockedBy: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n )\n\nexport { systemMessageDataUnlockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked permanently. */\ntype SystemMessageDataLockConvoPermanently = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataLockConvoPermanently'\n\n /**\n * Current view of the member who locked the group.\n */\n lockedBy: ActorDefs.ProfileViewBasic\n}\n\nexport type { SystemMessageDataLockConvoPermanently }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked permanently. */\nconst systemMessageDataLockConvoPermanently =\n l.typedObject<SystemMessageDataLockConvoPermanently>(\n $nsid,\n 'systemMessageDataLockConvoPermanently',\n l.object({\n lockedBy: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n )\n\nexport { systemMessageDataLockConvoPermanently }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited. */\ntype SystemMessageDataEditGroup = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataEditGroup'\n\n /**\n * Group name that was replaced.\n */\n oldName?: string\n\n /**\n * Group name that replaced the old.\n */\n newName?: string\n}\n\nexport type { SystemMessageDataEditGroup }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited. */\nconst systemMessageDataEditGroup = l.typedObject<SystemMessageDataEditGroup>(\n $nsid,\n 'systemMessageDataEditGroup',\n l.object({\n oldName: l.optional(l.string()),\n newName: l.optional(l.string()),\n }),\n)\n\nexport { systemMessageDataEditGroup }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was created. */\ntype SystemMessageDataCreateJoinLink = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataCreateJoinLink'\n}\n\nexport type { SystemMessageDataCreateJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was created. */\nconst systemMessageDataCreateJoinLink =\n l.typedObject<SystemMessageDataCreateJoinLink>(\n $nsid,\n 'systemMessageDataCreateJoinLink',\n l.object({}),\n )\n\nexport { systemMessageDataCreateJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was edited. */\ntype SystemMessageDataEditJoinLink = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataEditJoinLink'\n}\n\nexport type { SystemMessageDataEditJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was edited. */\nconst systemMessageDataEditJoinLink =\n l.typedObject<SystemMessageDataEditJoinLink>(\n $nsid,\n 'systemMessageDataEditJoinLink',\n l.object({}),\n )\n\nexport { systemMessageDataEditJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was enabled. */\ntype SystemMessageDataEnableJoinLink = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataEnableJoinLink'\n}\n\nexport type { SystemMessageDataEnableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was enabled. */\nconst systemMessageDataEnableJoinLink =\n l.typedObject<SystemMessageDataEnableJoinLink>(\n $nsid,\n 'systemMessageDataEnableJoinLink',\n l.object({}),\n )\n\nexport { systemMessageDataEnableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was disabled. */\ntype SystemMessageDataDisableJoinLink = {\n $type?: 'chat.bsky.convo.defs#systemMessageDataDisableJoinLink'\n}\n\nexport type { SystemMessageDataDisableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was disabled. */\nconst systemMessageDataDisableJoinLink =\n l.typedObject<SystemMessageDataDisableJoinLink>(\n $nsid,\n 'systemMessageDataDisableJoinLink',\n l.object({}),\n )\n\nexport { systemMessageDataDisableJoinLink }\n\ntype DeletedMessageView = {\n $type?: 'chat.bsky.convo.defs#deletedMessageView'\n id: string\n rev: string\n sender: MessageViewSender\n sentAt: l.DatetimeString\n}\n\nexport type { DeletedMessageView }\n\nconst deletedMessageView = l.typedObject<DeletedMessageView>(\n $nsid,\n 'deletedMessageView',\n l.object({\n id: l.string(),\n rev: l.string(),\n sender: l.ref<MessageViewSender>((() => messageViewSender) as any),\n sentAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { deletedMessageView }\n\ntype MessageViewSender = {\n $type?: 'chat.bsky.convo.defs#messageViewSender'\n did: l.DidString\n}\n\nexport type { MessageViewSender }\n\nconst messageViewSender = l.typedObject<MessageViewSender>(\n $nsid,\n 'messageViewSender',\n l.object({ did: l.string({ format: 'did' }) }),\n)\n\nexport { messageViewSender }\n\ntype ReactionView = {\n $type?: 'chat.bsky.convo.defs#reactionView'\n value: string\n sender: ReactionViewSender\n createdAt: l.DatetimeString\n}\n\nexport type { ReactionView }\n\nconst reactionView = l.typedObject<ReactionView>(\n $nsid,\n 'reactionView',\n l.object({\n value: l.string(),\n sender: l.ref<ReactionViewSender>((() => reactionViewSender) as any),\n createdAt: l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reactionView }\n\ntype ReactionViewSender = {\n $type?: 'chat.bsky.convo.defs#reactionViewSender'\n did: l.DidString\n}\n\nexport type { ReactionViewSender }\n\nconst reactionViewSender = l.typedObject<ReactionViewSender>(\n $nsid,\n 'reactionViewSender',\n l.object({ did: l.string({ format: 'did' }) }),\n)\n\nexport { reactionViewSender }\n\ntype MessageAndReactionView = {\n $type?: 'chat.bsky.convo.defs#messageAndReactionView'\n message: MessageView\n reaction: ReactionView\n}\n\nexport type { MessageAndReactionView }\n\nconst messageAndReactionView = l.typedObject<MessageAndReactionView>(\n $nsid,\n 'messageAndReactionView',\n l.object({\n message: l.ref<MessageView>((() => messageView) as any),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { messageAndReactionView }\n\ntype ConvoView = {\n $type?: 'chat.bsky.convo.defs#convoView'\n id: string\n rev: string\n\n /**\n * Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. NOTE: TBD an endpoint to list all members.\n */\n members: ActorDefs.ProfileViewBasic[]\n lastMessage?:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.$Typed<SystemMessageView>\n | l.Unknown$TypedObject\n lastReaction?: l.$Typed<MessageAndReactionView> | l.Unknown$TypedObject\n muted: boolean\n\n /**\n * Convo status for the viewer member (not the convo itself).\n */\n status?: ConvoStatus\n unreadCount: number\n\n /**\n * Union field that has data specific to different kinds of convos.\n */\n kind?: l.$Typed<DirectConvo> | l.$Typed<GroupConvo> | l.Unknown$TypedObject\n}\n\nexport type { ConvoView }\n\nconst convoView = l.typedObject<ConvoView>(\n $nsid,\n 'convoView',\n l.object({\n id: l.string(),\n rev: l.string(),\n members: l.array(\n l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n ),\n lastMessage: l.optional(\n l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n l.typedRef<SystemMessageView>((() => systemMessageView) as any),\n ],\n false,\n ),\n ),\n lastReaction: l.optional(\n l.typedUnion(\n [\n l.typedRef<MessageAndReactionView>(\n (() => messageAndReactionView) as any,\n ),\n ],\n false,\n ),\n ),\n muted: l.boolean(),\n status: l.optional(l.ref<ConvoStatus>((() => convoStatus) as any)),\n unreadCount: l.integer(),\n kind: l.optional(\n l.typedUnion(\n [\n l.typedRef<DirectConvo>((() => directConvo) as any),\n l.typedRef<GroupConvo>((() => groupConvo) as any),\n ],\n false,\n ),\n ),\n }),\n)\n\nexport { convoView }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\ntype DirectConvo = { $type?: 'chat.bsky.convo.defs#directConvo' }\n\nexport type { DirectConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\nconst directConvo = l.typedObject<DirectConvo>(\n $nsid,\n 'directConvo',\n l.object({}),\n)\n\nexport { directConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\ntype GroupConvo = {\n $type?: 'chat.bsky.convo.defs#groupConvo'\n\n /**\n * The display name of the group conversation.\n */\n name: string\n joinLink?: GroupDefs.JoinLinkView\n\n /**\n * The lock status of the conversation.\n */\n lockStatus: ConvoLockStatus\n}\n\nexport type { GroupConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\nconst groupConvo = l.typedObject<GroupConvo>(\n $nsid,\n 'groupConvo',\n l.object({\n name: l.string({ maxGraphemes: 128, maxLength: 1280 }),\n joinLink: l.optional(\n l.ref<GroupDefs.JoinLinkView>((() => GroupDefs.joinLinkView) as any),\n ),\n lockStatus: l.ref<ConvoLockStatus>((() => convoLockStatus) as any),\n }),\n)\n\nexport { groupConvo }\n\n/** Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event. */\ntype LogBeginConvo = {\n $type?: 'chat.bsky.convo.defs#logBeginConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogBeginConvo }\n\n/** Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event. */\nconst logBeginConvo = l.typedObject<LogBeginConvo>(\n $nsid,\n 'logBeginConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logBeginConvo }\n\n/** Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group. */\ntype LogAcceptConvo = {\n $type?: 'chat.bsky.convo.defs#logAcceptConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogAcceptConvo }\n\n/** Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group. */\nconst logAcceptConvo = l.typedObject<LogAcceptConvo>(\n $nsid,\n 'logAcceptConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logAcceptConvo }\n\n/** Event indicating the viewer left a convo. Can be direct or group. */\ntype LogLeaveConvo = {\n $type?: 'chat.bsky.convo.defs#logLeaveConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogLeaveConvo }\n\n/** Event indicating the viewer left a convo. Can be direct or group. */\nconst logLeaveConvo = l.typedObject<LogLeaveConvo>(\n $nsid,\n 'logLeaveConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logLeaveConvo }\n\n/** Event indicating the viewer muted a convo. Can be direct or group. */\ntype LogMuteConvo = {\n $type?: 'chat.bsky.convo.defs#logMuteConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogMuteConvo }\n\n/** Event indicating the viewer muted a convo. Can be direct or group. */\nconst logMuteConvo = l.typedObject<LogMuteConvo>(\n $nsid,\n 'logMuteConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logMuteConvo }\n\n/** Event indicating the viewer unmuted a convo. Can be direct or group. */\ntype LogUnmuteConvo = {\n $type?: 'chat.bsky.convo.defs#logUnmuteConvo'\n rev: string\n convoId: string\n}\n\nexport type { LogUnmuteConvo }\n\n/** Event indicating the viewer unmuted a convo. Can be direct or group. */\nconst logUnmuteConvo = l.typedObject<LogUnmuteConvo>(\n $nsid,\n 'logUnmuteConvo',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logUnmuteConvo }\n\n/** Event indicating a user-originated message was created. Is not emitted for system messages. */\ntype LogCreateMessage = {\n $type?: 'chat.bsky.convo.defs#logCreateMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogCreateMessage }\n\n/** Event indicating a user-originated message was created. Is not emitted for system messages. */\nconst logCreateMessage = l.typedObject<LogCreateMessage>(\n $nsid,\n 'logCreateMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logCreateMessage }\n\n/** Event indicating a user-originated message was deleted. Is not emitted for system messages. */\ntype LogDeleteMessage = {\n $type?: 'chat.bsky.convo.defs#logDeleteMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogDeleteMessage }\n\n/** Event indicating a user-originated message was deleted. Is not emitted for system messages. */\nconst logDeleteMessage = l.typedObject<LogDeleteMessage>(\n $nsid,\n 'logDeleteMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logDeleteMessage }\n\n/** @deprecated use logReadConvo instead. Event indicating a convo was read up to a certain message. */\ntype LogReadMessage = {\n $type?: 'chat.bsky.convo.defs#logReadMessage'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.$Typed<SystemMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogReadMessage }\n\n/** @deprecated use logReadConvo instead. Event indicating a convo was read up to a certain message. */\nconst logReadMessage = l.typedObject<LogReadMessage>(\n $nsid,\n 'logReadMessage',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n l.typedRef<SystemMessageView>((() => systemMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logReadMessage }\n\n/** Event indicating a reaction was added to a message. */\ntype LogAddReaction = {\n $type?: 'chat.bsky.convo.defs#logAddReaction'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n reaction: ReactionView\n}\n\nexport type { LogAddReaction }\n\n/** Event indicating a reaction was added to a message. */\nconst logAddReaction = l.typedObject<LogAddReaction>(\n $nsid,\n 'logAddReaction',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { logAddReaction }\n\n/** Event indicating a reaction was removed from a message. */\ntype LogRemoveReaction = {\n $type?: 'chat.bsky.convo.defs#logRemoveReaction'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.Unknown$TypedObject\n reaction: ReactionView\n}\n\nexport type { LogRemoveReaction }\n\n/** Event indicating a reaction was removed from a message. */\nconst logRemoveReaction = l.typedObject<LogRemoveReaction>(\n $nsid,\n 'logRemoveReaction',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n ],\n false,\n ),\n reaction: l.ref<ReactionView>((() => reactionView) as any),\n }),\n)\n\nexport { logRemoveReaction }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a convo was read up to a certain message. */\ntype LogReadConvo = {\n $type?: 'chat.bsky.convo.defs#logReadConvo'\n rev: string\n convoId: string\n message:\n | l.$Typed<MessageView>\n | l.$Typed<DeletedMessageView>\n | l.$Typed<SystemMessageView>\n | l.Unknown$TypedObject\n}\n\nexport type { LogReadConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a convo was read up to a certain message. */\nconst logReadConvo = l.typedObject<LogReadConvo>(\n $nsid,\n 'logReadConvo',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.typedUnion(\n [\n l.typedRef<MessageView>((() => messageView) as any),\n l.typedRef<DeletedMessageView>((() => deletedMessageView) as any),\n l.typedRef<SystemMessageView>((() => systemMessageView) as any),\n ],\n false,\n ),\n }),\n)\n\nexport { logReadConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees). */\ntype LogAddMember = {\n $type?: 'chat.bsky.convo.defs#logAddMember'\n rev: string\n convoId: string\n message: SystemMessageDataAddMember\n}\n\nexport type { LogAddMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees). */\nconst logAddMember = l.typedObject<LogAddMember>(\n $nsid,\n 'logAddMember',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataAddMember>(\n (() => systemMessageDataAddMember) as any,\n ),\n }),\n)\n\nexport { logAddMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message). */\ntype LogRemoveMember = {\n $type?: 'chat.bsky.convo.defs#logRemoveMember'\n rev: string\n convoId: string\n message: SystemMessageDataRemoveMember\n}\n\nexport type { LogRemoveMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message). */\nconst logRemoveMember = l.typedObject<LogRemoveMember>(\n $nsid,\n 'logRemoveMember',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataRemoveMember>(\n (() => systemMessageDataRemoveMember) as any,\n ),\n }),\n)\n\nexport { logRemoveMember }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees). */\ntype LogMemberJoin = {\n $type?: 'chat.bsky.convo.defs#logMemberJoin'\n rev: string\n convoId: string\n message: SystemMessageDataMemberJoin\n}\n\nexport type { LogMemberJoin }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees). */\nconst logMemberJoin = l.typedObject<LogMemberJoin>(\n $nsid,\n 'logMemberJoin',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataMemberJoin>(\n (() => systemMessageDataMemberJoin) as any,\n ),\n }),\n)\n\nexport { logMemberJoin }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message). */\ntype LogMemberLeave = {\n $type?: 'chat.bsky.convo.defs#logMemberLeave'\n rev: string\n convoId: string\n message: SystemMessageDataMemberLeave\n}\n\nexport type { LogMemberLeave }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message). */\nconst logMemberLeave = l.typedObject<LogMemberLeave>(\n $nsid,\n 'logMemberLeave',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataMemberLeave>(\n (() => systemMessageDataMemberLeave) as any,\n ),\n }),\n)\n\nexport { logMemberLeave }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked. */\ntype LogLockConvo = {\n $type?: 'chat.bsky.convo.defs#logLockConvo'\n rev: string\n convoId: string\n message: SystemMessageDataLockConvo\n}\n\nexport type { LogLockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked. */\nconst logLockConvo = l.typedObject<LogLockConvo>(\n $nsid,\n 'logLockConvo',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataLockConvo>(\n (() => systemMessageDataLockConvo) as any,\n ),\n }),\n)\n\nexport { logLockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked. */\ntype LogUnlockConvo = {\n $type?: 'chat.bsky.convo.defs#logUnlockConvo'\n rev: string\n convoId: string\n message: SystemMessageDataUnlockConvo\n}\n\nexport type { LogUnlockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked. */\nconst logUnlockConvo = l.typedObject<LogUnlockConvo>(\n $nsid,\n 'logUnlockConvo',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataUnlockConvo>(\n (() => systemMessageDataUnlockConvo) as any,\n ),\n }),\n)\n\nexport { logUnlockConvo }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently. */\ntype LogLockConvoPermanently = {\n $type?: 'chat.bsky.convo.defs#logLockConvoPermanently'\n rev: string\n convoId: string\n message: SystemMessageDataLockConvoPermanently\n}\n\nexport type { LogLockConvoPermanently }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently. */\nconst logLockConvoPermanently = l.typedObject<LogLockConvoPermanently>(\n $nsid,\n 'logLockConvoPermanently',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataLockConvoPermanently>(\n (() => systemMessageDataLockConvoPermanently) as any,\n ),\n }),\n)\n\nexport { logLockConvoPermanently }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited. */\ntype LogEditGroup = {\n $type?: 'chat.bsky.convo.defs#logEditGroup'\n rev: string\n convoId: string\n message: SystemMessageDataEditGroup\n}\n\nexport type { LogEditGroup }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited. */\nconst logEditGroup = l.typedObject<LogEditGroup>(\n $nsid,\n 'logEditGroup',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataEditGroup>(\n (() => systemMessageDataEditGroup) as any,\n ),\n }),\n)\n\nexport { logEditGroup }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was created for a group convo. */\ntype LogCreateJoinLink = {\n $type?: 'chat.bsky.convo.defs#logCreateJoinLink'\n rev: string\n convoId: string\n message: SystemMessageDataCreateJoinLink\n}\n\nexport type { LogCreateJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was created for a group convo. */\nconst logCreateJoinLink = l.typedObject<LogCreateJoinLink>(\n $nsid,\n 'logCreateJoinLink',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataCreateJoinLink>(\n (() => systemMessageDataCreateJoinLink) as any,\n ),\n }),\n)\n\nexport { logCreateJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a settings about a join link for a group convo were edited. */\ntype LogEditJoinLink = {\n $type?: 'chat.bsky.convo.defs#logEditJoinLink'\n rev: string\n convoId: string\n message: SystemMessageDataEditJoinLink\n}\n\nexport type { LogEditJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a settings about a join link for a group convo were edited. */\nconst logEditJoinLink = l.typedObject<LogEditJoinLink>(\n $nsid,\n 'logEditJoinLink',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataEditJoinLink>(\n (() => systemMessageDataEditJoinLink) as any,\n ),\n }),\n)\n\nexport { logEditJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was enabled for a group convo. */\ntype LogEnableJoinLink = {\n $type?: 'chat.bsky.convo.defs#logEnableJoinLink'\n rev: string\n convoId: string\n message: SystemMessageDataEnableJoinLink\n}\n\nexport type { LogEnableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was enabled for a group convo. */\nconst logEnableJoinLink = l.typedObject<LogEnableJoinLink>(\n $nsid,\n 'logEnableJoinLink',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataEnableJoinLink>(\n (() => systemMessageDataEnableJoinLink) as any,\n ),\n }),\n)\n\nexport { logEnableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was disabled for a group convo. */\ntype LogDisableJoinLink = {\n $type?: 'chat.bsky.convo.defs#logDisableJoinLink'\n rev: string\n convoId: string\n message: SystemMessageDataDisableJoinLink\n}\n\nexport type { LogDisableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was disabled for a group convo. */\nconst logDisableJoinLink = l.typedObject<LogDisableJoinLink>(\n $nsid,\n 'logDisableJoinLink',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n message: l.ref<SystemMessageDataDisableJoinLink>(\n (() => systemMessageDataDisableJoinLink) as any,\n ),\n }),\n)\n\nexport { logDisableJoinLink }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made to a group the viewer owns. Only the owner gets this. */\ntype LogIncomingJoinRequest = {\n $type?: 'chat.bsky.convo.defs#logIncomingJoinRequest'\n rev: string\n convoId: string\n\n /**\n * Prospective member who requested to join.\n */\n member: ActorDefs.ProfileViewBasic\n}\n\nexport type { LogIncomingJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made to a group the viewer owns. Only the owner gets this. */\nconst logIncomingJoinRequest = l.typedObject<LogIncomingJoinRequest>(\n $nsid,\n 'logIncomingJoinRequest',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n)\n\nexport { logIncomingJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo. */\ntype LogApproveJoinRequest = {\n $type?: 'chat.bsky.convo.defs#logApproveJoinRequest'\n rev: string\n convoId: string\n\n /**\n * Prospective member who requested to join.\n */\n member: ActorDefs.ProfileViewBasic\n}\n\nexport type { LogApproveJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo. */\nconst logApproveJoinRequest = l.typedObject<LogApproveJoinRequest>(\n $nsid,\n 'logApproveJoinRequest',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n)\n\nexport { logApproveJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was rejected by the viewer. Only the owner gets this. */\ntype LogRejectJoinRequest = {\n $type?: 'chat.bsky.convo.defs#logRejectJoinRequest'\n rev: string\n convoId: string\n\n /**\n * Prospective member who requested to join.\n */\n member: ActorDefs.ProfileViewBasic\n}\n\nexport type { LogRejectJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was rejected by the viewer. Only the owner gets this. */\nconst logRejectJoinRequest = l.typedObject<LogRejectJoinRequest>(\n $nsid,\n 'logRejectJoinRequest',\n l.object({\n rev: l.string(),\n convoId: l.string(),\n member: l.ref<ActorDefs.ProfileViewBasic>(\n (() => ActorDefs.profileViewBasic) as any,\n ),\n }),\n)\n\nexport { logRejectJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made by the viewer. */\ntype LogOutgoingJoinRequest = {\n $type?: 'chat.bsky.convo.defs#logOutgoingJoinRequest'\n rev: string\n convoId: string\n}\n\nexport type { LogOutgoingJoinRequest }\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made by the viewer. */\nconst logOutgoingJoinRequest = l.typedObject<LogOutgoingJoinRequest>(\n $nsid,\n 'logOutgoingJoinRequest',\n l.object({ rev: l.string(), convoId: l.string() }),\n)\n\nexport { logOutgoingJoinRequest }\n"]}
@@ -2,10 +2,11 @@ import { l } from '@atproto/lex';
2
2
  import * as ConvoDefs from './defs.defs.js';
3
3
  declare const $nsid = "chat.bsky.convo.deleteMessageForSelf";
4
4
  export { $nsid };
5
+ /** Marks a message as deleted for the viewer, so they won't see that message in future enumerations. */
5
6
  declare const main: l.Procedure<"chat.bsky.convo.deleteMessageForSelf", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
6
7
  convoId: l.StringSchema<{}>;
7
8
  messageId: l.StringSchema<{}>;
8
- }>>, l.Payload<"application/json", l.RefSchema<l.Validator<ConvoDefs.DeletedMessageView, ConvoDefs.DeletedMessageView>>>, undefined>;
9
+ }>>, l.Payload<"application/json", l.RefSchema<l.Validator<ConvoDefs.DeletedMessageView, ConvoDefs.DeletedMessageView>>>, readonly ["InvalidConvo", "MessageDeleteNotAllowed"]>;
9
10
  export { main };
10
11
  export type $Params = l.InferMethodParams<typeof main>;
11
12
  export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
@@ -1 +1 @@
1
- {"version":3,"file":"deleteMessageForSelf.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,yCAAyC,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,QAAA,MAAM,IAAI;;;oIAUT,CAAA;AACD,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,oBAAoB,CAC/D,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,qBAAqB,CACjE,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AAED,eAAO,MAAM,IAAI,wCAAY,EAC3B,OAAO,oBAAkB,EACzB,MAAM;;;GAAa,EACnB,OAAO,qHAAc,CAAA"}
1
+ {"version":3,"file":"deleteMessageForSelf.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,yCAAyC,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,wGAAwG;AACxG,QAAA,MAAM,IAAI;;;+KAWT,CAAA;AACD,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,oBAAoB,CAC/D,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,qBAAqB,CACjE,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AAED,eAAO,MAAM,IAAI,wCAAY,EAC3B,OAAO,oBAAkB,EACzB,MAAM;;;GAAa,EACnB,OAAO,qHAAc,CAAA"}
@@ -41,7 +41,8 @@ const lex_1 = require("@atproto/lex");
41
41
  const ConvoDefs = __importStar(require("./defs.defs.js"));
42
42
  const $nsid = 'chat.bsky.convo.deleteMessageForSelf';
43
43
  exports.$nsid = $nsid;
44
- const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({ convoId: lex_1.l.string(), messageId: lex_1.l.string() }), lex_1.l.payload('application/json', lex_1.l.ref((() => ConvoDefs.deletedMessageView))));
44
+ /** Marks a message as deleted for the viewer, so they won't see that message in future enumerations. */
45
+ const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({ convoId: lex_1.l.string(), messageId: lex_1.l.string() }), lex_1.l.payload('application/json', lex_1.l.ref((() => ConvoDefs.deletedMessageView))), ['InvalidConvo', 'MessageDeleteNotAllowed']);
45
46
  exports.main = main;
46
47
  exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
47
48
  //# sourceMappingURL=deleteMessageForSelf.defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteMessageForSelf.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sCAAgC;AAChC,0DAA2C;AAE3C,MAAM,KAAK,GAAG,sCAAsC,CAAA;AAE3C,sBAAK;AAEd,MAAM,IAAI,GAAG,OAAC,CAAC,SAAS,CACtB,KAAK,EACL,OAAC,CAAC,MAAM,EAAE,EACV,OAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAC7D,OAAC,CAAC,OAAO,CACP,kBAAkB,EAClB,OAAC,CAAC,GAAG,CACH,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,kBAAkB,CAAQ,CAC5C,CACF,CACF,CAAA;AACQ,oBAAI;AAcA,QAAA,IAAI,GAAG,IAAI,CAAC,IAAI,EAC3B,QAAA,OAAO,GAAG,IAAI,CAAC,UAAU,EACzB,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,EACnB,QAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ConvoDefs from './defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.deleteMessageForSelf'\n\nexport { $nsid }\n\nconst main = l.procedure(\n $nsid,\n l.params(),\n l.jsonPayload({ convoId: l.string(), messageId: l.string() }),\n l.payload(\n 'application/json',\n l.ref<ConvoDefs.DeletedMessageView>(\n (() => ConvoDefs.deletedMessageView) as any,\n ),\n ),\n)\nexport { main }\n\nexport type $Params = l.InferMethodParams<typeof main>\nexport type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>\nexport type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<\n typeof main,\n B\n>\nexport type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<\n typeof main,\n B\n>\n\nexport const $lxm = main.nsid,\n $params = main.parameters,\n $input = main.input,\n $output = main.output\n"]}
1
+ {"version":3,"file":"deleteMessageForSelf.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sCAAgC;AAChC,0DAA2C;AAE3C,MAAM,KAAK,GAAG,sCAAsC,CAAA;AAE3C,sBAAK;AAEd,wGAAwG;AACxG,MAAM,IAAI,GAAG,OAAC,CAAC,SAAS,CACtB,KAAK,EACL,OAAC,CAAC,MAAM,EAAE,EACV,OAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAC7D,OAAC,CAAC,OAAO,CACP,kBAAkB,EAClB,OAAC,CAAC,GAAG,CACH,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,kBAAkB,CAAQ,CAC5C,CACF,EACD,CAAC,cAAc,EAAE,yBAAyB,CAAC,CAC5C,CAAA;AACQ,oBAAI;AAcA,QAAA,IAAI,GAAG,IAAI,CAAC,IAAI,EAC3B,QAAA,OAAO,GAAG,IAAI,CAAC,UAAU,EACzB,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,EACnB,QAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ConvoDefs from './defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.deleteMessageForSelf'\n\nexport { $nsid }\n\n/** Marks a message as deleted for the viewer, so they won't see that message in future enumerations. */\nconst main = l.procedure(\n $nsid,\n l.params(),\n l.jsonPayload({ convoId: l.string(), messageId: l.string() }),\n l.payload(\n 'application/json',\n l.ref<ConvoDefs.DeletedMessageView>(\n (() => ConvoDefs.deletedMessageView) as any,\n ),\n ),\n ['InvalidConvo', 'MessageDeleteNotAllowed'],\n)\nexport { main }\n\nexport type $Params = l.InferMethodParams<typeof main>\nexport type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>\nexport type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<\n typeof main,\n B\n>\nexport type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<\n typeof main,\n B\n>\n\nexport const $lxm = main.nsid,\n $params = main.parameters,\n $input = main.input,\n $output = main.output\n"]}
@@ -2,11 +2,12 @@ import { l } from '@atproto/lex';
2
2
  import * as ConvoDefs from './defs.defs.js';
3
3
  declare const $nsid = "chat.bsky.convo.getConvo";
4
4
  export { $nsid };
5
+ /** Gets an existing conversation by its ID. */
5
6
  declare const main: l.Query<"chat.bsky.convo.getConvo", l.ParamsSchema<{
6
7
  readonly convoId: l.StringSchema<{}>;
7
8
  }>, l.Payload<"application/json", l.ObjectSchema<{
8
9
  convo: l.RefSchema<l.Validator<ConvoDefs.ConvoView, ConvoDefs.ConvoView>>;
9
- }>>, undefined>;
10
+ }>>, readonly ["InvalidConvo"]>;
10
11
  export { main };
11
12
  export type $Params = l.InferMethodParams<typeof main>;
12
13
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
@@ -1 +1 @@
1
- {"version":3,"file":"getConvo.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/getConvo.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,6BAA6B,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,QAAA,MAAM,IAAI;;;;eAMT,CAAA;AACD,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,qBAAqB,CACjE,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AAED,eAAO,MAAM,IAAI,4BAAY,EAC3B,OAAO;;EAAkB,EACzB,OAAO;;GAAc,CAAA"}
1
+ {"version":3,"file":"getConvo.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/getConvo.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,6BAA6B,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,+CAA+C;AAC/C,QAAA,MAAM,IAAI;;;;+BAOT,CAAA;AACD,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,qBAAqB,CACjE,OAAO,IAAI,EACX,CAAC,CACF,CAAA;AAED,eAAO,MAAM,IAAI,4BAAY,EAC3B,OAAO;;EAAkB,EACzB,OAAO;;GAAc,CAAA"}
@@ -41,9 +41,10 @@ const lex_1 = require("@atproto/lex");
41
41
  const ConvoDefs = __importStar(require("./defs.defs.js"));
42
42
  const $nsid = 'chat.bsky.convo.getConvo';
43
43
  exports.$nsid = $nsid;
44
+ /** Gets an existing conversation by its ID. */
44
45
  const main = lex_1.l.query($nsid, lex_1.l.params({ convoId: lex_1.l.string() }), lex_1.l.jsonPayload({
45
46
  convo: lex_1.l.ref((() => ConvoDefs.convoView)),
46
- }));
47
+ }), ['InvalidConvo']);
47
48
  exports.main = main;
48
49
  exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
49
50
  //# sourceMappingURL=getConvo.defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConvo.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/getConvo.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sCAAgC;AAChC,0DAA2C;AAE3C,MAAM,KAAK,GAAG,0BAA0B,CAAA;AAE/B,sBAAK;AAEd,MAAM,IAAI,GAAG,OAAC,CAAC,KAAK,CAClB,KAAK,EACL,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EACjC,OAAC,CAAC,WAAW,CAAC;IACZ,KAAK,EAAE,OAAC,CAAC,GAAG,CAAsB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CAAC;CACtE,CAAC,CACH,CAAA;AACQ,oBAAI;AASA,QAAA,IAAI,GAAG,IAAI,CAAC,IAAI,EAC3B,QAAA,OAAO,GAAG,IAAI,CAAC,UAAU,EACzB,QAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ConvoDefs from './defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.getConvo'\n\nexport { $nsid }\n\nconst main = l.query(\n $nsid,\n l.params({ convoId: l.string() }),\n l.jsonPayload({\n convo: l.ref<ConvoDefs.ConvoView>((() => ConvoDefs.convoView) as any),\n }),\n)\nexport { main }\n\nexport type $Params = l.InferMethodParams<typeof main>\nexport type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<\n typeof main,\n B\n>\n\nexport const $lxm = main.nsid,\n $params = main.parameters,\n $output = main.output\n"]}
1
+ {"version":3,"file":"getConvo.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/chat/bsky/convo/getConvo.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sCAAgC;AAChC,0DAA2C;AAE3C,MAAM,KAAK,GAAG,0BAA0B,CAAA;AAE/B,sBAAK;AAEd,+CAA+C;AAC/C,MAAM,IAAI,GAAG,OAAC,CAAC,KAAK,CAClB,KAAK,EACL,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EACjC,OAAC,CAAC,WAAW,CAAC;IACZ,KAAK,EAAE,OAAC,CAAC,GAAG,CAAsB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CAAC;CACtE,CAAC,EACF,CAAC,cAAc,CAAC,CACjB,CAAA;AACQ,oBAAI;AASA,QAAA,IAAI,GAAG,IAAI,CAAC,IAAI,EAC3B,QAAA,OAAO,GAAG,IAAI,CAAC,UAAU,EACzB,QAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ConvoDefs from './defs.defs.js'\n\nconst $nsid = 'chat.bsky.convo.getConvo'\n\nexport { $nsid }\n\n/** Gets an existing conversation by its ID. */\nconst main = l.query(\n $nsid,\n l.params({ convoId: l.string() }),\n l.jsonPayload({\n convo: l.ref<ConvoDefs.ConvoView>((() => ConvoDefs.convoView) as any),\n }),\n ['InvalidConvo'],\n)\nexport { main }\n\nexport type $Params = l.InferMethodParams<typeof main>\nexport type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<\n typeof main,\n B\n>\n\nexport const $lxm = main.nsid,\n $params = main.parameters,\n $output = main.output\n"]}