@atproto/api 0.19.8 → 0.19.10

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 (207) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/client/index.d.ts +58 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +241 -16
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +7241 -4059
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +2053 -283
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/client/types/app/bsky/embed/images.d.ts +1 -1
  14. package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/embed/images.js.map +1 -1
  16. package/dist/client/types/chat/bsky/actor/declaration.d.ts +2 -0
  17. package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -1
  19. package/dist/client/types/chat/bsky/actor/defs.d.ts +20 -0
  20. package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
  21. package/dist/client/types/chat/bsky/actor/defs.js +18 -0
  22. package/dist/client/types/chat/bsky/actor/defs.js.map +1 -1
  23. package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts +4 -1
  24. package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts.map +1 -1
  25. package/dist/client/types/chat/bsky/convo/acceptConvo.js +15 -0
  26. package/dist/client/types/chat/bsky/convo/acceptConvo.js.map +1 -1
  27. package/dist/client/types/chat/bsky/convo/addReaction.d.ts +6 -0
  28. package/dist/client/types/chat/bsky/convo/addReaction.d.ts.map +1 -1
  29. package/dist/client/types/chat/bsky/convo/addReaction.js +17 -1
  30. package/dist/client/types/chat/bsky/convo/addReaction.js.map +1 -1
  31. package/dist/client/types/chat/bsky/convo/defs.d.ts +293 -3
  32. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  33. package/dist/client/types/chat/bsky/convo/defs.js +288 -0
  34. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  35. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts +7 -1
  36. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -1
  37. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js +23 -0
  38. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -1
  39. package/dist/client/types/chat/bsky/convo/getConvo.d.ts +4 -1
  40. package/dist/client/types/chat/bsky/convo/getConvo.d.ts.map +1 -1
  41. package/dist/client/types/chat/bsky/convo/getConvo.js +15 -0
  42. package/dist/client/types/chat/bsky/convo/getConvo.js.map +1 -1
  43. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts +16 -1
  44. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
  45. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js +47 -0
  46. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
  47. package/dist/client/types/chat/bsky/convo/getConvoMembers.d.ts +29 -0
  48. package/dist/client/types/chat/bsky/convo/getConvoMembers.d.ts.map +1 -0
  49. package/dist/client/types/chat/bsky/convo/getConvoMembers.js +26 -0
  50. package/dist/client/types/chat/bsky/convo/getConvoMembers.js.map +1 -0
  51. package/dist/client/types/chat/bsky/convo/getLog.d.ts +1 -1
  52. package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  53. package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -1
  54. package/dist/client/types/chat/bsky/convo/getMessages.d.ts +5 -2
  55. package/dist/client/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  56. package/dist/client/types/chat/bsky/convo/getMessages.js +15 -0
  57. package/dist/client/types/chat/bsky/convo/getMessages.js.map +1 -1
  58. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts +7 -1
  59. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -1
  60. package/dist/client/types/chat/bsky/convo/leaveConvo.js +23 -0
  61. package/dist/client/types/chat/bsky/convo/leaveConvo.js.map +1 -1
  62. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +29 -0
  63. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  64. package/dist/client/types/chat/bsky/convo/listConvoRequests.js +11 -0
  65. package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
  66. package/dist/client/types/chat/bsky/convo/listConvos.d.ts +3 -0
  67. package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  68. package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
  69. package/dist/client/types/chat/bsky/convo/lockConvo.d.ts +34 -0
  70. package/dist/client/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  71. package/dist/client/types/chat/bsky/convo/lockConvo.js +42 -0
  72. package/dist/client/types/chat/bsky/convo/lockConvo.js.map +1 -0
  73. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts +4 -1
  74. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts.map +1 -1
  75. package/dist/client/types/chat/bsky/convo/muteConvo.js +15 -0
  76. package/dist/client/types/chat/bsky/convo/muteConvo.js.map +1 -1
  77. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts +6 -0
  78. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts.map +1 -1
  79. package/dist/client/types/chat/bsky/convo/removeReaction.js +17 -1
  80. package/dist/client/types/chat/bsky/convo/removeReaction.js.map +1 -1
  81. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts +7 -1
  82. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
  83. package/dist/client/types/chat/bsky/convo/sendMessage.js +23 -0
  84. package/dist/client/types/chat/bsky/convo/sendMessage.js.map +1 -1
  85. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts +7 -1
  86. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
  87. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js +23 -0
  88. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
  89. package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts +31 -0
  90. package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  91. package/dist/client/types/chat/bsky/convo/unlockConvo.js +34 -0
  92. package/dist/client/types/chat/bsky/convo/unlockConvo.js.map +1 -0
  93. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts +4 -1
  94. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -1
  95. package/dist/client/types/chat/bsky/convo/unmuteConvo.js +15 -0
  96. package/dist/client/types/chat/bsky/convo/unmuteConvo.js.map +1 -1
  97. package/dist/client/types/chat/bsky/convo/updateRead.d.ts +4 -1
  98. package/dist/client/types/chat/bsky/convo/updateRead.d.ts.map +1 -1
  99. package/dist/client/types/chat/bsky/convo/updateRead.js +15 -0
  100. package/dist/client/types/chat/bsky/convo/updateRead.js.map +1 -1
  101. package/dist/client/types/chat/bsky/group/addMembers.d.ts +55 -0
  102. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -0
  103. package/dist/client/types/chat/bsky/group/addMembers.js +90 -0
  104. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -0
  105. package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts +35 -0
  106. package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  107. package/dist/client/types/chat/bsky/group/approveJoinRequest.js +42 -0
  108. package/dist/client/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
  109. package/dist/client/types/chat/bsky/group/createGroup.d.ts +41 -0
  110. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -0
  111. package/dist/client/types/chat/bsky/group/createGroup.js +58 -0
  112. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -0
  113. package/dist/client/types/chat/bsky/group/createJoinLink.d.ts +36 -0
  114. package/dist/client/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  115. package/dist/client/types/chat/bsky/group/createJoinLink.js +42 -0
  116. package/dist/client/types/chat/bsky/group/createJoinLink.js.map +1 -0
  117. package/dist/client/types/chat/bsky/group/defs.d.ts +35 -0
  118. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -0
  119. package/dist/client/types/chat/bsky/group/defs.js +34 -0
  120. package/dist/client/types/chat/bsky/group/defs.js.map +1 -0
  121. package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts +34 -0
  122. package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  123. package/dist/client/types/chat/bsky/group/disableJoinLink.js +42 -0
  124. package/dist/client/types/chat/bsky/group/disableJoinLink.js.map +1 -0
  125. package/dist/client/types/chat/bsky/group/editGroup.d.ts +35 -0
  126. package/dist/client/types/chat/bsky/group/editGroup.d.ts.map +1 -0
  127. package/dist/client/types/chat/bsky/group/editGroup.js +42 -0
  128. package/dist/client/types/chat/bsky/group/editGroup.js.map +1 -0
  129. package/dist/client/types/chat/bsky/group/editJoinLink.d.ts +36 -0
  130. package/dist/client/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  131. package/dist/client/types/chat/bsky/group/editJoinLink.js +42 -0
  132. package/dist/client/types/chat/bsky/group/editJoinLink.js.map +1 -0
  133. package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts +37 -0
  134. package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  135. package/dist/client/types/chat/bsky/group/enableJoinLink.js +50 -0
  136. package/dist/client/types/chat/bsky/group/enableJoinLink.js.map +1 -0
  137. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts +26 -0
  138. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  139. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js +26 -0
  140. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  141. package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts +32 -0
  142. package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  143. package/dist/client/types/chat/bsky/group/listJoinRequests.js +34 -0
  144. package/dist/client/types/chat/bsky/group/listJoinRequests.js.map +1 -0
  145. package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts +30 -0
  146. package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  147. package/dist/client/types/chat/bsky/group/rejectJoinRequest.js +34 -0
  148. package/dist/client/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  149. package/dist/client/types/chat/bsky/group/removeMembers.d.ts +32 -0
  150. package/dist/client/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
  151. package/dist/client/types/chat/bsky/group/removeMembers.js +34 -0
  152. package/dist/client/types/chat/bsky/group/removeMembers.js.map +1 -0
  153. package/dist/client/types/chat/bsky/group/requestJoin.d.ts +44 -0
  154. package/dist/client/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
  155. package/dist/client/types/chat/bsky/group/requestJoin.js +66 -0
  156. package/dist/client/types/chat/bsky/group/requestJoin.js.map +1 -0
  157. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
  158. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  159. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  160. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +15 -0
  161. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  162. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +16 -0
  163. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  164. package/package.json +3 -3
  165. package/src/client/index.ts +291 -51
  166. package/src/client/lexicons.ts +2151 -279
  167. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  168. package/src/client/types/app/bsky/embed/images.ts +1 -1
  169. package/src/client/types/chat/bsky/actor/declaration.ts +2 -0
  170. package/src/client/types/chat/bsky/actor/defs.ts +39 -0
  171. package/src/client/types/chat/bsky/convo/acceptConvo.ts +10 -0
  172. package/src/client/types/chat/bsky/convo/addReaction.ts +14 -0
  173. package/src/client/types/chat/bsky/convo/defs.ts +654 -2
  174. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +18 -0
  175. package/src/client/types/chat/bsky/convo/getConvo.ts +10 -0
  176. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +39 -0
  177. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +54 -0
  178. package/src/client/types/chat/bsky/convo/getLog.ts +17 -0
  179. package/src/client/types/chat/bsky/convo/getMessages.ts +11 -0
  180. package/src/client/types/chat/bsky/convo/leaveConvo.ts +17 -0
  181. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +48 -0
  182. package/src/client/types/chat/bsky/convo/listConvos.ts +3 -0
  183. package/src/client/types/chat/bsky/convo/lockConvo.ts +68 -0
  184. package/src/client/types/chat/bsky/convo/muteConvo.ts +10 -0
  185. package/src/client/types/chat/bsky/convo/removeReaction.ts +14 -0
  186. package/src/client/types/chat/bsky/convo/sendMessage.ts +17 -0
  187. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +17 -0
  188. package/src/client/types/chat/bsky/convo/unlockConvo.ts +61 -0
  189. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +10 -0
  190. package/src/client/types/chat/bsky/convo/updateRead.ts +10 -0
  191. package/src/client/types/chat/bsky/group/addMembers.ts +115 -0
  192. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +69 -0
  193. package/src/client/types/chat/bsky/group/createGroup.ts +85 -0
  194. package/src/client/types/chat/bsky/group/createJoinLink.ts +71 -0
  195. package/src/client/types/chat/bsky/group/defs.ts +73 -0
  196. package/src/client/types/chat/bsky/group/disableJoinLink.ts +68 -0
  197. package/src/client/types/chat/bsky/group/editGroup.ts +69 -0
  198. package/src/client/types/chat/bsky/group/editJoinLink.ts +70 -0
  199. package/src/client/types/chat/bsky/group/enableJoinLink.ts +75 -0
  200. package/src/client/types/chat/bsky/group/getGroupPublicInfo.ts +51 -0
  201. package/src/client/types/chat/bsky/group/listJoinRequests.ts +61 -0
  202. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +59 -0
  203. package/src/client/types/chat/bsky/group/removeMembers.ts +62 -0
  204. package/src/client/types/chat/bsky/group/requestJoin.ts +90 -0
  205. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +1 -0
  206. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +38 -0
  207. package/tsconfig.build.tsbuildinfo +1 -1
@@ -265,6 +265,10 @@ export const schemaDict = {
265
265
  type: 'string',
266
266
  knownValues: ['all', 'none', 'following'],
267
267
  },
268
+ allowGroupInvites: {
269
+ type: 'string',
270
+ knownValues: ['all', 'none', 'following'],
271
+ },
268
272
  },
269
273
  },
270
274
  profileAssociatedGerm: {
@@ -2766,7 +2770,7 @@ export const schemaDict = {
2766
2770
  image: {
2767
2771
  type: 'blob',
2768
2772
  description:
2769
- 'The raw image file. May be up to 2mb, formerly limited to 1mb.',
2773
+ 'The raw image file. May be up to 2 MB, formerly limited to 1 MB.',
2770
2774
  accept: ['image/*'],
2771
2775
  maxSize: 2000000,
2772
2776
  },
@@ -9660,6 +9664,12 @@ export const schemaDict = {
9660
9664
  type: 'string',
9661
9665
  knownValues: ['all', 'none', 'following'],
9662
9666
  },
9667
+ allowGroupInvites: {
9668
+ description:
9669
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Declaration about group chat invitation preferences for the record owner.',
9670
+ type: 'string',
9671
+ knownValues: ['all', 'none', 'following'],
9672
+ },
9663
9673
  },
9664
9674
  },
9665
9675
  },
@@ -9669,6 +9679,10 @@ export const schemaDict = {
9669
9679
  lexicon: 1,
9670
9680
  id: 'chat.bsky.actor.defs',
9671
9681
  defs: {
9682
+ memberRole: {
9683
+ type: 'string',
9684
+ knownValues: ['owner', 'standard'],
9685
+ },
9672
9686
  profileViewBasic: {
9673
9687
  type: 'object',
9674
9688
  required: ['did', 'handle'],
@@ -9705,6 +9719,10 @@ export const schemaDict = {
9705
9719
  ref: 'lex:com.atproto.label.defs#label',
9706
9720
  },
9707
9721
  },
9722
+ createdAt: {
9723
+ type: 'string',
9724
+ format: 'datetime',
9725
+ },
9708
9726
  chatDisabled: {
9709
9727
  type: 'boolean',
9710
9728
  description:
@@ -9714,6 +9732,41 @@ export const schemaDict = {
9714
9732
  type: 'ref',
9715
9733
  ref: 'lex:app.bsky.actor.defs#verificationState',
9716
9734
  },
9735
+ kind: {
9736
+ description:
9737
+ 'Union field that has data specific to different kinds of convos.',
9738
+ type: 'union',
9739
+ refs: [
9740
+ 'lex:chat.bsky.actor.defs#directConvoMember',
9741
+ 'lex:chat.bsky.actor.defs#groupConvoMember',
9742
+ ],
9743
+ },
9744
+ },
9745
+ },
9746
+ directConvoMember: {
9747
+ description:
9748
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
9749
+ type: 'object',
9750
+ properties: {},
9751
+ },
9752
+ groupConvoMember: {
9753
+ description:
9754
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
9755
+ type: 'object',
9756
+ required: ['role'],
9757
+ properties: {
9758
+ addedBy: {
9759
+ description:
9760
+ 'Who added this member. Only present if the member was added (instead of joining via link).',
9761
+ type: 'ref',
9762
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9763
+ },
9764
+ role: {
9765
+ description:
9766
+ "The member's role within this conversation. Only present in group conversation member lists.",
9767
+ type: 'ref',
9768
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
9769
+ },
9717
9770
  },
9718
9771
  },
9719
9772
  },
@@ -9752,6 +9805,13 @@ export const schemaDict = {
9752
9805
  defs: {
9753
9806
  main: {
9754
9807
  type: 'procedure',
9808
+ description:
9809
+ 'Marks a conversation as accepted, so it is shown in the list of accepted convos instead on the request convos.',
9810
+ errors: [
9811
+ {
9812
+ name: 'InvalidConvo',
9813
+ },
9814
+ ],
9755
9815
  input: {
9756
9816
  encoding: 'application/json',
9757
9817
  schema: {
@@ -9824,6 +9884,14 @@ export const schemaDict = {
9824
9884
  },
9825
9885
  },
9826
9886
  errors: [
9887
+ {
9888
+ name: 'InvalidConvo',
9889
+ },
9890
+ {
9891
+ name: 'ReactionNotAllowed',
9892
+ description:
9893
+ 'Indicates that reactions are not allowed on this message, e.g. because it is a system message.',
9894
+ },
9827
9895
  {
9828
9896
  name: 'ReactionMessageDeleted',
9829
9897
  description:
@@ -9847,6 +9915,18 @@ export const schemaDict = {
9847
9915
  lexicon: 1,
9848
9916
  id: 'chat.bsky.convo.defs',
9849
9917
  defs: {
9918
+ convoKind: {
9919
+ type: 'string',
9920
+ knownValues: ['direct', 'group'],
9921
+ },
9922
+ convoLockStatus: {
9923
+ type: 'string',
9924
+ knownValues: ['unlocked', 'locked', 'locked-permanently'],
9925
+ },
9926
+ convoStatus: {
9927
+ type: 'string',
9928
+ knownValues: ['request', 'accepted'],
9929
+ },
9850
9930
  messageRef: {
9851
9931
  type: 'object',
9852
9932
  required: ['did', 'messageId', 'convoId'],
@@ -9932,6 +10012,197 @@ export const schemaDict = {
9932
10012
  },
9933
10013
  },
9934
10014
  },
10015
+ systemMessageView: {
10016
+ description:
10017
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
10018
+ type: 'object',
10019
+ required: ['id', 'rev', 'sentAt', 'data'],
10020
+ properties: {
10021
+ id: {
10022
+ type: 'string',
10023
+ },
10024
+ rev: {
10025
+ type: 'string',
10026
+ },
10027
+ sentAt: {
10028
+ type: 'string',
10029
+ format: 'datetime',
10030
+ },
10031
+ data: {
10032
+ type: 'union',
10033
+ refs: [
10034
+ 'lex:chat.bsky.convo.defs#systemMessageDataAddMember',
10035
+ 'lex:chat.bsky.convo.defs#systemMessageDataRemoveMember',
10036
+ 'lex:chat.bsky.convo.defs#systemMessageDataMemberJoin',
10037
+ 'lex:chat.bsky.convo.defs#systemMessageDataMemberLeave',
10038
+ 'lex:chat.bsky.convo.defs#systemMessageDataLockConvo',
10039
+ 'lex:chat.bsky.convo.defs#systemMessageDataUnlockConvo',
10040
+ 'lex:chat.bsky.convo.defs#systemMessageDataLockConvoPermanently',
10041
+ 'lex:chat.bsky.convo.defs#systemMessageDataEditGroup',
10042
+ 'lex:chat.bsky.convo.defs#systemMessageDataCreateJoinLink',
10043
+ 'lex:chat.bsky.convo.defs#systemMessageDataEditJoinLink',
10044
+ 'lex:chat.bsky.convo.defs#systemMessageDataEnableJoinLink',
10045
+ 'lex:chat.bsky.convo.defs#systemMessageDataDisableJoinLink',
10046
+ ],
10047
+ },
10048
+ },
10049
+ },
10050
+ systemMessageDataAddMember: {
10051
+ description:
10052
+ '[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.',
10053
+ type: 'object',
10054
+ required: ['member', 'role', 'addedBy'],
10055
+ properties: {
10056
+ member: {
10057
+ description: 'Current view of the member who was added.',
10058
+ type: 'ref',
10059
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10060
+ },
10061
+ role: {
10062
+ description:
10063
+ "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.",
10064
+ type: 'ref',
10065
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
10066
+ },
10067
+ addedBy: {
10068
+ type: 'ref',
10069
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10070
+ },
10071
+ },
10072
+ },
10073
+ systemMessageDataRemoveMember: {
10074
+ description:
10075
+ '[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.',
10076
+ type: 'object',
10077
+ required: ['member', 'removedBy'],
10078
+ properties: {
10079
+ member: {
10080
+ description: 'Current view of the member who was removed.',
10081
+ type: 'ref',
10082
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10083
+ },
10084
+ removedBy: {
10085
+ type: 'ref',
10086
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10087
+ },
10088
+ },
10089
+ },
10090
+ systemMessageDataMemberJoin: {
10091
+ description:
10092
+ '[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.',
10093
+ type: 'object',
10094
+ required: ['member', 'role'],
10095
+ properties: {
10096
+ member: {
10097
+ description: 'Current view of the member who joined.',
10098
+ type: 'ref',
10099
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10100
+ },
10101
+ role: {
10102
+ description:
10103
+ "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.",
10104
+ type: 'ref',
10105
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
10106
+ },
10107
+ approvedBy: {
10108
+ description:
10109
+ 'If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.',
10110
+ type: 'ref',
10111
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10112
+ },
10113
+ },
10114
+ },
10115
+ systemMessageDataMemberLeave: {
10116
+ description:
10117
+ '[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.',
10118
+ type: 'object',
10119
+ required: ['member'],
10120
+ properties: {
10121
+ member: {
10122
+ description: 'Current view of the member who left the group.',
10123
+ type: 'ref',
10124
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10125
+ },
10126
+ },
10127
+ },
10128
+ systemMessageDataLockConvo: {
10129
+ description:
10130
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked.',
10131
+ type: 'object',
10132
+ required: ['lockedBy'],
10133
+ properties: {
10134
+ lockedBy: {
10135
+ description: 'Current view of the member who locked the group.',
10136
+ type: 'ref',
10137
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10138
+ },
10139
+ },
10140
+ },
10141
+ systemMessageDataUnlockConvo: {
10142
+ description:
10143
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked.',
10144
+ type: 'object',
10145
+ required: ['unlockedBy'],
10146
+ properties: {
10147
+ unlockedBy: {
10148
+ description: 'Current view of the member who unlocked the group.',
10149
+ type: 'ref',
10150
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10151
+ },
10152
+ },
10153
+ },
10154
+ systemMessageDataLockConvoPermanently: {
10155
+ description:
10156
+ '[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.',
10157
+ type: 'object',
10158
+ required: ['lockedBy'],
10159
+ properties: {
10160
+ lockedBy: {
10161
+ description: 'Current view of the member who locked the group.',
10162
+ type: 'ref',
10163
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10164
+ },
10165
+ },
10166
+ },
10167
+ systemMessageDataEditGroup: {
10168
+ description:
10169
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited.',
10170
+ type: 'object',
10171
+ properties: {
10172
+ oldName: {
10173
+ description: 'Group name that was replaced.',
10174
+ type: 'string',
10175
+ },
10176
+ newName: {
10177
+ description: 'Group name that replaced the old.',
10178
+ type: 'string',
10179
+ },
10180
+ },
10181
+ },
10182
+ systemMessageDataCreateJoinLink: {
10183
+ description:
10184
+ '[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.',
10185
+ type: 'object',
10186
+ properties: {},
10187
+ },
10188
+ systemMessageDataEditJoinLink: {
10189
+ description:
10190
+ '[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.',
10191
+ type: 'object',
10192
+ properties: {},
10193
+ },
10194
+ systemMessageDataEnableJoinLink: {
10195
+ description:
10196
+ '[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.',
10197
+ type: 'object',
10198
+ properties: {},
10199
+ },
10200
+ systemMessageDataDisableJoinLink: {
10201
+ description:
10202
+ '[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.',
10203
+ type: 'object',
10204
+ properties: {},
10205
+ },
9935
10206
  deletedMessageView: {
9936
10207
  type: 'object',
9937
10208
  required: ['id', 'rev', 'sender', 'sentAt'],
@@ -10014,6 +10285,8 @@ export const schemaDict = {
10014
10285
  type: 'string',
10015
10286
  },
10016
10287
  members: {
10288
+ description:
10289
+ '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. Use chat.bsky.convo.getConvoMembers to list all members.',
10017
10290
  type: 'array',
10018
10291
  items: {
10019
10292
  type: 'ref',
@@ -10025,6 +10298,7 @@ export const schemaDict = {
10025
10298
  refs: [
10026
10299
  'lex:chat.bsky.convo.defs#messageView',
10027
10300
  'lex:chat.bsky.convo.defs#deletedMessageView',
10301
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10028
10302
  ],
10029
10303
  },
10030
10304
  lastReaction: {
@@ -10035,15 +10309,62 @@ export const schemaDict = {
10035
10309
  type: 'boolean',
10036
10310
  },
10037
10311
  status: {
10038
- type: 'string',
10039
- knownValues: ['request', 'accepted'],
10312
+ description:
10313
+ 'Convo status for the viewer member (not the convo itself).',
10314
+ type: 'ref',
10315
+ ref: 'lex:chat.bsky.convo.defs#convoStatus',
10040
10316
  },
10041
10317
  unreadCount: {
10042
10318
  type: 'integer',
10043
10319
  },
10320
+ kind: {
10321
+ description:
10322
+ 'Union field that has data specific to different kinds of convos.',
10323
+ type: 'union',
10324
+ refs: [
10325
+ 'lex:chat.bsky.convo.defs#directConvo',
10326
+ 'lex:chat.bsky.convo.defs#groupConvo',
10327
+ ],
10328
+ },
10329
+ },
10330
+ },
10331
+ directConvo: {
10332
+ description:
10333
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
10334
+ type: 'object',
10335
+ properties: {},
10336
+ },
10337
+ groupConvo: {
10338
+ description:
10339
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
10340
+ type: 'object',
10341
+ required: ['name', 'lockStatus', 'memberCount'],
10342
+ properties: {
10343
+ name: {
10344
+ type: 'string',
10345
+ description: 'The display name of the group conversation.',
10346
+ maxGraphemes: 128,
10347
+ maxLength: 1280,
10348
+ },
10349
+ memberCount: {
10350
+ type: 'integer',
10351
+ description:
10352
+ 'The total number of members in the group conversation.',
10353
+ },
10354
+ joinLink: {
10355
+ type: 'ref',
10356
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10357
+ },
10358
+ lockStatus: {
10359
+ description: 'The lock status of the conversation.',
10360
+ type: 'ref',
10361
+ ref: 'lex:chat.bsky.convo.defs#convoLockStatus',
10362
+ },
10044
10363
  },
10045
10364
  },
10046
10365
  logBeginConvo: {
10366
+ description:
10367
+ '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.',
10047
10368
  type: 'object',
10048
10369
  required: ['rev', 'convoId'],
10049
10370
  properties: {
@@ -10056,6 +10377,8 @@ export const schemaDict = {
10056
10377
  },
10057
10378
  },
10058
10379
  logAcceptConvo: {
10380
+ description:
10381
+ 'Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group.',
10059
10382
  type: 'object',
10060
10383
  required: ['rev', 'convoId'],
10061
10384
  properties: {
@@ -10068,6 +10391,8 @@ export const schemaDict = {
10068
10391
  },
10069
10392
  },
10070
10393
  logLeaveConvo: {
10394
+ description:
10395
+ 'Event indicating the viewer left a convo. Can be direct or group.',
10071
10396
  type: 'object',
10072
10397
  required: ['rev', 'convoId'],
10073
10398
  properties: {
@@ -10080,6 +10405,8 @@ export const schemaDict = {
10080
10405
  },
10081
10406
  },
10082
10407
  logMuteConvo: {
10408
+ description:
10409
+ 'Event indicating the viewer muted a convo. Can be direct or group.',
10083
10410
  type: 'object',
10084
10411
  required: ['rev', 'convoId'],
10085
10412
  properties: {
@@ -10092,6 +10419,8 @@ export const schemaDict = {
10092
10419
  },
10093
10420
  },
10094
10421
  logUnmuteConvo: {
10422
+ description:
10423
+ 'Event indicating the viewer unmuted a convo. Can be direct or group.',
10095
10424
  type: 'object',
10096
10425
  required: ['rev', 'convoId'],
10097
10426
  properties: {
@@ -10104,6 +10433,8 @@ export const schemaDict = {
10104
10433
  },
10105
10434
  },
10106
10435
  logCreateMessage: {
10436
+ description:
10437
+ 'Event indicating a user-originated message was created. Is not emitted for system messages.',
10107
10438
  type: 'object',
10108
10439
  required: ['rev', 'convoId', 'message'],
10109
10440
  properties: {
@@ -10123,6 +10454,8 @@ export const schemaDict = {
10123
10454
  },
10124
10455
  },
10125
10456
  logDeleteMessage: {
10457
+ description:
10458
+ 'Event indicating a user-originated message was deleted. Is not emitted for system messages.',
10126
10459
  type: 'object',
10127
10460
  required: ['rev', 'convoId', 'message'],
10128
10461
  properties: {
@@ -10142,6 +10475,8 @@ export const schemaDict = {
10142
10475
  },
10143
10476
  },
10144
10477
  logReadMessage: {
10478
+ description:
10479
+ 'DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message.',
10145
10480
  type: 'object',
10146
10481
  required: ['rev', 'convoId', 'message'],
10147
10482
  properties: {
@@ -10156,11 +10491,13 @@ export const schemaDict = {
10156
10491
  refs: [
10157
10492
  'lex:chat.bsky.convo.defs#messageView',
10158
10493
  'lex:chat.bsky.convo.defs#deletedMessageView',
10494
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10159
10495
  ],
10160
10496
  },
10161
10497
  },
10162
10498
  },
10163
10499
  logAddReaction: {
10500
+ description: 'Event indicating a reaction was added to a message.',
10164
10501
  type: 'object',
10165
10502
  required: ['rev', 'convoId', 'message', 'reaction'],
10166
10503
  properties: {
@@ -10184,6 +10521,7 @@ export const schemaDict = {
10184
10521
  },
10185
10522
  },
10186
10523
  logRemoveReaction: {
10524
+ description: 'Event indicating a reaction was removed from a message.',
10187
10525
  type: 'object',
10188
10526
  required: ['rev', 'convoId', 'message', 'reaction'],
10189
10527
  properties: {
@@ -10206,45 +10544,648 @@ export const schemaDict = {
10206
10544
  },
10207
10545
  },
10208
10546
  },
10209
- },
10210
- },
10211
- ChatBskyConvoDeleteMessageForSelf: {
10212
- lexicon: 1,
10213
- id: 'chat.bsky.convo.deleteMessageForSelf',
10214
- defs: {
10215
- main: {
10216
- type: 'procedure',
10217
- input: {
10218
- encoding: 'application/json',
10219
- schema: {
10220
- type: 'object',
10221
- required: ['convoId', 'messageId'],
10222
- properties: {
10223
- convoId: {
10224
- type: 'string',
10225
- },
10226
- messageId: {
10227
- type: 'string',
10228
- },
10229
- },
10547
+ logReadConvo: {
10548
+ description:
10549
+ '[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.',
10550
+ type: 'object',
10551
+ required: ['rev', 'convoId', 'message'],
10552
+ properties: {
10553
+ rev: {
10554
+ type: 'string',
10555
+ },
10556
+ convoId: {
10557
+ type: 'string',
10558
+ },
10559
+ message: {
10560
+ type: 'union',
10561
+ refs: [
10562
+ 'lex:chat.bsky.convo.defs#messageView',
10563
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
10564
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10565
+ ],
10230
10566
  },
10231
10567
  },
10232
- output: {
10233
- encoding: 'application/json',
10234
- schema: {
10568
+ },
10569
+ logAddMember: {
10570
+ description:
10571
+ '[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).',
10572
+ type: 'object',
10573
+ required: ['rev', 'convoId', 'message'],
10574
+ properties: {
10575
+ rev: {
10576
+ type: 'string',
10577
+ },
10578
+ convoId: {
10579
+ type: 'string',
10580
+ },
10581
+ message: {
10582
+ description:
10583
+ 'A system message with data of type #systemMessageDataAddMember',
10235
10584
  type: 'ref',
10236
- ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10585
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10237
10586
  },
10238
10587
  },
10239
10588
  },
10240
- },
10241
- },
10242
- ChatBskyConvoGetConvo: {
10243
- lexicon: 1,
10244
- id: 'chat.bsky.convo.getConvo',
10245
- defs: {
10246
- main: {
10589
+ logRemoveMember: {
10590
+ description:
10591
+ "[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).",
10592
+ type: 'object',
10593
+ required: ['rev', 'convoId', 'message'],
10594
+ properties: {
10595
+ rev: {
10596
+ type: 'string',
10597
+ },
10598
+ convoId: {
10599
+ type: 'string',
10600
+ },
10601
+ message: {
10602
+ description:
10603
+ 'A system message with data of type #systemMessageDataRemoveMember',
10604
+ type: 'ref',
10605
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10606
+ },
10607
+ },
10608
+ },
10609
+ logMemberJoin: {
10610
+ description:
10611
+ '[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).',
10612
+ type: 'object',
10613
+ required: ['rev', 'convoId', 'message'],
10614
+ properties: {
10615
+ rev: {
10616
+ type: 'string',
10617
+ },
10618
+ convoId: {
10619
+ type: 'string',
10620
+ },
10621
+ message: {
10622
+ description:
10623
+ 'A system message with data of type #systemMessageDataMemberJoin',
10624
+ type: 'ref',
10625
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10626
+ },
10627
+ },
10628
+ },
10629
+ logMemberLeave: {
10630
+ description:
10631
+ "[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).",
10632
+ type: 'object',
10633
+ required: ['rev', 'convoId', 'message'],
10634
+ properties: {
10635
+ rev: {
10636
+ type: 'string',
10637
+ },
10638
+ convoId: {
10639
+ type: 'string',
10640
+ },
10641
+ message: {
10642
+ description:
10643
+ 'A system message with data of type #systemMessageDataMemberLeave',
10644
+ type: 'ref',
10645
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10646
+ },
10647
+ },
10648
+ },
10649
+ logLockConvo: {
10650
+ description:
10651
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.',
10652
+ type: 'object',
10653
+ required: ['rev', 'convoId', 'message'],
10654
+ properties: {
10655
+ rev: {
10656
+ type: 'string',
10657
+ },
10658
+ convoId: {
10659
+ type: 'string',
10660
+ },
10661
+ message: {
10662
+ description:
10663
+ 'A system message with data of type #systemMessageDataLockConvo',
10664
+ type: 'ref',
10665
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10666
+ },
10667
+ },
10668
+ },
10669
+ logUnlockConvo: {
10670
+ description:
10671
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.',
10672
+ type: 'object',
10673
+ required: ['rev', 'convoId', 'message'],
10674
+ properties: {
10675
+ rev: {
10676
+ type: 'string',
10677
+ },
10678
+ convoId: {
10679
+ type: 'string',
10680
+ },
10681
+ message: {
10682
+ description:
10683
+ 'A system message with data of type #systemMessageDataUnlockConvo',
10684
+ type: 'ref',
10685
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10686
+ },
10687
+ },
10688
+ },
10689
+ logLockConvoPermanently: {
10690
+ description:
10691
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently.',
10692
+ type: 'object',
10693
+ required: ['rev', 'convoId', 'message'],
10694
+ properties: {
10695
+ rev: {
10696
+ type: 'string',
10697
+ },
10698
+ convoId: {
10699
+ type: 'string',
10700
+ },
10701
+ message: {
10702
+ description:
10703
+ 'A system message with data of type #systemMessageDataLockConvoPermanently',
10704
+ type: 'ref',
10705
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10706
+ },
10707
+ },
10708
+ },
10709
+ logEditGroup: {
10710
+ description:
10711
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited.',
10712
+ type: 'object',
10713
+ required: ['rev', 'convoId', 'message'],
10714
+ properties: {
10715
+ rev: {
10716
+ type: 'string',
10717
+ },
10718
+ convoId: {
10719
+ type: 'string',
10720
+ },
10721
+ message: {
10722
+ description:
10723
+ 'A system message with data of type #systemMessageDataEditGroup',
10724
+ type: 'ref',
10725
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10726
+ },
10727
+ },
10728
+ },
10729
+ logCreateJoinLink: {
10730
+ description:
10731
+ '[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.',
10732
+ type: 'object',
10733
+ required: ['rev', 'convoId', 'message'],
10734
+ properties: {
10735
+ rev: {
10736
+ type: 'string',
10737
+ },
10738
+ convoId: {
10739
+ type: 'string',
10740
+ },
10741
+ message: {
10742
+ description:
10743
+ 'A system message with data of type #systemMessageDataCreateJoinLink',
10744
+ type: 'ref',
10745
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10746
+ },
10747
+ },
10748
+ },
10749
+ logEditJoinLink: {
10750
+ description:
10751
+ '[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.',
10752
+ type: 'object',
10753
+ required: ['rev', 'convoId', 'message'],
10754
+ properties: {
10755
+ rev: {
10756
+ type: 'string',
10757
+ },
10758
+ convoId: {
10759
+ type: 'string',
10760
+ },
10761
+ message: {
10762
+ description:
10763
+ 'A system message with data of type #systemMessageDataEditJoinLink',
10764
+ type: 'ref',
10765
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10766
+ },
10767
+ },
10768
+ },
10769
+ logEnableJoinLink: {
10770
+ description:
10771
+ '[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.',
10772
+ type: 'object',
10773
+ required: ['rev', 'convoId', 'message'],
10774
+ properties: {
10775
+ rev: {
10776
+ type: 'string',
10777
+ },
10778
+ convoId: {
10779
+ type: 'string',
10780
+ },
10781
+ message: {
10782
+ description:
10783
+ 'A system message with data of type #systemMessageDataEnableJoinLink',
10784
+ type: 'ref',
10785
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10786
+ },
10787
+ },
10788
+ },
10789
+ logDisableJoinLink: {
10790
+ description:
10791
+ '[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.',
10792
+ type: 'object',
10793
+ required: ['rev', 'convoId', 'message'],
10794
+ properties: {
10795
+ rev: {
10796
+ type: 'string',
10797
+ },
10798
+ convoId: {
10799
+ type: 'string',
10800
+ },
10801
+ message: {
10802
+ description:
10803
+ 'A system message with data of type #systemMessageDataDisableJoinLink',
10804
+ type: 'ref',
10805
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10806
+ },
10807
+ },
10808
+ },
10809
+ logIncomingJoinRequest: {
10810
+ description:
10811
+ '[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.',
10812
+ type: 'object',
10813
+ required: ['rev', 'convoId', 'member'],
10814
+ properties: {
10815
+ rev: {
10816
+ type: 'string',
10817
+ },
10818
+ convoId: {
10819
+ type: 'string',
10820
+ },
10821
+ member: {
10822
+ description: 'Prospective member who requested to join.',
10823
+ type: 'ref',
10824
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10825
+ },
10826
+ },
10827
+ },
10828
+ logApproveJoinRequest: {
10829
+ description:
10830
+ '[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.',
10831
+ type: 'object',
10832
+ required: ['rev', 'convoId', 'member'],
10833
+ properties: {
10834
+ rev: {
10835
+ type: 'string',
10836
+ },
10837
+ convoId: {
10838
+ type: 'string',
10839
+ },
10840
+ member: {
10841
+ description: 'Prospective member who requested to join.',
10842
+ type: 'ref',
10843
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10844
+ },
10845
+ },
10846
+ },
10847
+ logRejectJoinRequest: {
10848
+ description:
10849
+ '[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.',
10850
+ type: 'object',
10851
+ required: ['rev', 'convoId', 'member'],
10852
+ properties: {
10853
+ rev: {
10854
+ type: 'string',
10855
+ },
10856
+ convoId: {
10857
+ type: 'string',
10858
+ },
10859
+ member: {
10860
+ description: 'Prospective member who requested to join.',
10861
+ type: 'ref',
10862
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10863
+ },
10864
+ },
10865
+ },
10866
+ logOutgoingJoinRequest: {
10867
+ description:
10868
+ '[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.',
10869
+ type: 'object',
10870
+ required: ['rev', 'convoId'],
10871
+ properties: {
10872
+ rev: {
10873
+ type: 'string',
10874
+ },
10875
+ convoId: {
10876
+ type: 'string',
10877
+ },
10878
+ },
10879
+ },
10880
+ },
10881
+ },
10882
+ ChatBskyConvoDeleteMessageForSelf: {
10883
+ lexicon: 1,
10884
+ id: 'chat.bsky.convo.deleteMessageForSelf',
10885
+ defs: {
10886
+ main: {
10887
+ type: 'procedure',
10888
+ description:
10889
+ "Marks a message as deleted for the viewer, so they won't see that message in future enumerations.",
10890
+ errors: [
10891
+ {
10892
+ name: 'InvalidConvo',
10893
+ },
10894
+ {
10895
+ name: 'MessageDeleteNotAllowed',
10896
+ description:
10897
+ 'Indicates that this message cannot be deleted, e.g. because it is a system message.',
10898
+ },
10899
+ ],
10900
+ input: {
10901
+ encoding: 'application/json',
10902
+ schema: {
10903
+ type: 'object',
10904
+ required: ['convoId', 'messageId'],
10905
+ properties: {
10906
+ convoId: {
10907
+ type: 'string',
10908
+ },
10909
+ messageId: {
10910
+ type: 'string',
10911
+ },
10912
+ },
10913
+ },
10914
+ },
10915
+ output: {
10916
+ encoding: 'application/json',
10917
+ schema: {
10918
+ type: 'ref',
10919
+ ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10920
+ },
10921
+ },
10922
+ },
10923
+ },
10924
+ },
10925
+ ChatBskyConvoGetConvo: {
10926
+ lexicon: 1,
10927
+ id: 'chat.bsky.convo.getConvo',
10928
+ defs: {
10929
+ main: {
10930
+ type: 'query',
10931
+ description: 'Gets an existing conversation by its ID.',
10932
+ errors: [
10933
+ {
10934
+ name: 'InvalidConvo',
10935
+ },
10936
+ ],
10937
+ parameters: {
10938
+ type: 'params',
10939
+ required: ['convoId'],
10940
+ properties: {
10941
+ convoId: {
10942
+ type: 'string',
10943
+ },
10944
+ },
10945
+ },
10946
+ output: {
10947
+ encoding: 'application/json',
10948
+ schema: {
10949
+ type: 'object',
10950
+ required: ['convo'],
10951
+ properties: {
10952
+ convo: {
10953
+ type: 'ref',
10954
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10955
+ },
10956
+ },
10957
+ },
10958
+ },
10959
+ },
10960
+ },
10961
+ },
10962
+ ChatBskyConvoGetConvoAvailability: {
10963
+ lexicon: 1,
10964
+ id: 'chat.bsky.convo.getConvoAvailability',
10965
+ defs: {
10966
+ main: {
10967
+ type: 'query',
10968
+ description:
10969
+ "Check whether the requester and the other members can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing convo is found for these members, it is returned. Does not create a new convo if it doesn't exist.",
10970
+ parameters: {
10971
+ type: 'params',
10972
+ required: ['members'],
10973
+ properties: {
10974
+ members: {
10975
+ type: 'array',
10976
+ minLength: 1,
10977
+ maxLength: 10,
10978
+ items: {
10979
+ type: 'string',
10980
+ format: 'did',
10981
+ },
10982
+ },
10983
+ },
10984
+ },
10985
+ output: {
10986
+ encoding: 'application/json',
10987
+ schema: {
10988
+ type: 'object',
10989
+ required: ['canChat'],
10990
+ properties: {
10991
+ canChat: {
10992
+ type: 'boolean',
10993
+ },
10994
+ convo: {
10995
+ type: 'ref',
10996
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10997
+ },
10998
+ },
10999
+ },
11000
+ },
11001
+ },
11002
+ },
11003
+ },
11004
+ ChatBskyConvoGetConvoForMembers: {
11005
+ lexicon: 1,
11006
+ id: 'chat.bsky.convo.getConvoForMembers',
11007
+ defs: {
11008
+ main: {
11009
+ type: 'query',
11010
+ description:
11011
+ 'Get or create a 1-1 conversation for the given members. Always returns the same direct (non-group) conversation. To create a group conversation, use createGroup.',
11012
+ errors: [
11013
+ {
11014
+ name: 'AccountSuspended',
11015
+ },
11016
+ {
11017
+ name: 'BlockedActor',
11018
+ },
11019
+ {
11020
+ name: 'MessagesDisabled',
11021
+ },
11022
+ {
11023
+ name: 'NotFollowedBySender',
11024
+ },
11025
+ {
11026
+ name: 'RecipientNotFound',
11027
+ },
11028
+ ],
11029
+ parameters: {
11030
+ type: 'params',
11031
+ required: ['members'],
11032
+ properties: {
11033
+ members: {
11034
+ type: 'array',
11035
+ minLength: 1,
11036
+ maxLength: 10,
11037
+ items: {
11038
+ type: 'string',
11039
+ format: 'did',
11040
+ },
11041
+ },
11042
+ },
11043
+ },
11044
+ output: {
11045
+ encoding: 'application/json',
11046
+ schema: {
11047
+ type: 'object',
11048
+ required: ['convo'],
11049
+ properties: {
11050
+ convo: {
11051
+ type: 'ref',
11052
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11053
+ },
11054
+ },
11055
+ },
11056
+ },
11057
+ },
11058
+ },
11059
+ },
11060
+ ChatBskyConvoGetConvoMembers: {
11061
+ lexicon: 1,
11062
+ id: 'chat.bsky.convo.getConvoMembers',
11063
+ defs: {
11064
+ main: {
11065
+ type: 'query',
11066
+ description: 'Returns a paginated list of members from a conversation.',
11067
+ errors: [
11068
+ {
11069
+ name: 'InvalidConvo',
11070
+ },
11071
+ ],
11072
+ parameters: {
11073
+ type: 'params',
11074
+ required: ['convoId'],
11075
+ properties: {
11076
+ convoId: {
11077
+ type: 'string',
11078
+ },
11079
+ limit: {
11080
+ type: 'integer',
11081
+ minimum: 1,
11082
+ maximum: 100,
11083
+ default: 50,
11084
+ },
11085
+ cursor: {
11086
+ type: 'string',
11087
+ },
11088
+ },
11089
+ },
11090
+ output: {
11091
+ encoding: 'application/json',
11092
+ schema: {
11093
+ type: 'object',
11094
+ required: ['members'],
11095
+ properties: {
11096
+ cursor: {
11097
+ type: 'string',
11098
+ },
11099
+ members: {
11100
+ type: 'array',
11101
+ items: {
11102
+ type: 'ref',
11103
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
11104
+ },
11105
+ },
11106
+ },
11107
+ },
11108
+ },
11109
+ },
11110
+ },
11111
+ },
11112
+ ChatBskyConvoGetLog: {
11113
+ lexicon: 1,
11114
+ id: 'chat.bsky.convo.getLog',
11115
+ defs: {
11116
+ main: {
11117
+ type: 'query',
11118
+ parameters: {
11119
+ type: 'params',
11120
+ required: [],
11121
+ properties: {
11122
+ cursor: {
11123
+ type: 'string',
11124
+ },
11125
+ },
11126
+ },
11127
+ output: {
11128
+ encoding: 'application/json',
11129
+ schema: {
11130
+ type: 'object',
11131
+ required: ['logs'],
11132
+ properties: {
11133
+ cursor: {
11134
+ type: 'string',
11135
+ },
11136
+ logs: {
11137
+ type: 'array',
11138
+ items: {
11139
+ type: 'union',
11140
+ refs: [
11141
+ 'lex:chat.bsky.convo.defs#logBeginConvo',
11142
+ 'lex:chat.bsky.convo.defs#logAcceptConvo',
11143
+ 'lex:chat.bsky.convo.defs#logLeaveConvo',
11144
+ 'lex:chat.bsky.convo.defs#logMuteConvo',
11145
+ 'lex:chat.bsky.convo.defs#logUnmuteConvo',
11146
+ 'lex:chat.bsky.convo.defs#logCreateMessage',
11147
+ 'lex:chat.bsky.convo.defs#logDeleteMessage',
11148
+ 'lex:chat.bsky.convo.defs#logReadMessage',
11149
+ 'lex:chat.bsky.convo.defs#logAddReaction',
11150
+ 'lex:chat.bsky.convo.defs#logRemoveReaction',
11151
+ 'lex:chat.bsky.convo.defs#logReadConvo',
11152
+ 'lex:chat.bsky.convo.defs#logAddMember',
11153
+ 'lex:chat.bsky.convo.defs#logRemoveMember',
11154
+ 'lex:chat.bsky.convo.defs#logMemberJoin',
11155
+ 'lex:chat.bsky.convo.defs#logMemberLeave',
11156
+ 'lex:chat.bsky.convo.defs#logLockConvo',
11157
+ 'lex:chat.bsky.convo.defs#logUnlockConvo',
11158
+ 'lex:chat.bsky.convo.defs#logLockConvoPermanently',
11159
+ 'lex:chat.bsky.convo.defs#logEditGroup',
11160
+ 'lex:chat.bsky.convo.defs#logCreateJoinLink',
11161
+ 'lex:chat.bsky.convo.defs#logEditJoinLink',
11162
+ 'lex:chat.bsky.convo.defs#logEnableJoinLink',
11163
+ 'lex:chat.bsky.convo.defs#logDisableJoinLink',
11164
+ 'lex:chat.bsky.convo.defs#logIncomingJoinRequest',
11165
+ 'lex:chat.bsky.convo.defs#logApproveJoinRequest',
11166
+ 'lex:chat.bsky.convo.defs#logRejectJoinRequest',
11167
+ 'lex:chat.bsky.convo.defs#logOutgoingJoinRequest',
11168
+ ],
11169
+ },
11170
+ },
11171
+ },
11172
+ },
11173
+ },
11174
+ },
11175
+ },
11176
+ },
11177
+ ChatBskyConvoGetMessages: {
11178
+ lexicon: 1,
11179
+ id: 'chat.bsky.convo.getMessages',
11180
+ defs: {
11181
+ main: {
10247
11182
  type: 'query',
11183
+ description: 'Returns a page of messages from a conversation.',
11184
+ errors: [
11185
+ {
11186
+ name: 'InvalidConvo',
11187
+ },
11188
+ ],
10248
11189
  parameters: {
10249
11190
  type: 'params',
10250
11191
  required: ['convoId'],
@@ -10252,6 +11193,482 @@ export const schemaDict = {
10252
11193
  convoId: {
10253
11194
  type: 'string',
10254
11195
  },
11196
+ limit: {
11197
+ type: 'integer',
11198
+ minimum: 1,
11199
+ maximum: 100,
11200
+ default: 50,
11201
+ },
11202
+ cursor: {
11203
+ type: 'string',
11204
+ },
11205
+ },
11206
+ },
11207
+ output: {
11208
+ encoding: 'application/json',
11209
+ schema: {
11210
+ type: 'object',
11211
+ required: ['messages'],
11212
+ properties: {
11213
+ cursor: {
11214
+ type: 'string',
11215
+ },
11216
+ messages: {
11217
+ type: 'array',
11218
+ items: {
11219
+ type: 'union',
11220
+ refs: [
11221
+ 'lex:chat.bsky.convo.defs#messageView',
11222
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
11223
+ 'lex:chat.bsky.convo.defs#systemMessageView',
11224
+ ],
11225
+ },
11226
+ },
11227
+ },
11228
+ },
11229
+ },
11230
+ },
11231
+ },
11232
+ },
11233
+ ChatBskyConvoLeaveConvo: {
11234
+ lexicon: 1,
11235
+ id: 'chat.bsky.convo.leaveConvo',
11236
+ defs: {
11237
+ main: {
11238
+ type: 'procedure',
11239
+ description:
11240
+ 'Leaves a conversation (direct or group). For group, this effectively removes membership. For direct, membership is never removed, only changed to remove from enumerations by the user who left.',
11241
+ errors: [
11242
+ {
11243
+ name: 'InvalidConvo',
11244
+ },
11245
+ {
11246
+ name: 'OwnerCannotLeave',
11247
+ description:
11248
+ 'The owner of a group conversation cannot leave before locking the group.',
11249
+ },
11250
+ ],
11251
+ input: {
11252
+ encoding: 'application/json',
11253
+ schema: {
11254
+ type: 'object',
11255
+ required: ['convoId'],
11256
+ properties: {
11257
+ convoId: {
11258
+ type: 'string',
11259
+ },
11260
+ },
11261
+ },
11262
+ },
11263
+ output: {
11264
+ encoding: 'application/json',
11265
+ schema: {
11266
+ type: 'object',
11267
+ required: ['convoId', 'rev'],
11268
+ properties: {
11269
+ convoId: {
11270
+ type: 'string',
11271
+ },
11272
+ rev: {
11273
+ type: 'string',
11274
+ },
11275
+ },
11276
+ },
11277
+ },
11278
+ },
11279
+ },
11280
+ },
11281
+ ChatBskyConvoListConvoRequests: {
11282
+ lexicon: 1,
11283
+ id: 'chat.bsky.convo.listConvoRequests',
11284
+ defs: {
11285
+ main: {
11286
+ type: 'query',
11287
+ description:
11288
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests are returned as joinRequestView.',
11289
+ parameters: {
11290
+ type: 'params',
11291
+ properties: {
11292
+ limit: {
11293
+ type: 'integer',
11294
+ minimum: 1,
11295
+ maximum: 100,
11296
+ default: 50,
11297
+ },
11298
+ cursor: {
11299
+ type: 'string',
11300
+ },
11301
+ },
11302
+ },
11303
+ output: {
11304
+ encoding: 'application/json',
11305
+ schema: {
11306
+ type: 'object',
11307
+ required: ['requests'],
11308
+ properties: {
11309
+ cursor: {
11310
+ type: 'string',
11311
+ },
11312
+ requests: {
11313
+ type: 'array',
11314
+ items: {
11315
+ type: 'union',
11316
+ refs: [
11317
+ 'lex:chat.bsky.convo.defs#convoView',
11318
+ 'lex:chat.bsky.group.defs#joinRequestView',
11319
+ ],
11320
+ },
11321
+ },
11322
+ },
11323
+ },
11324
+ },
11325
+ },
11326
+ },
11327
+ },
11328
+ ChatBskyConvoListConvos: {
11329
+ lexicon: 1,
11330
+ id: 'chat.bsky.convo.listConvos',
11331
+ defs: {
11332
+ main: {
11333
+ type: 'query',
11334
+ description:
11335
+ 'Returns a page of conversations (direct or group) for the user.',
11336
+ parameters: {
11337
+ type: 'params',
11338
+ properties: {
11339
+ limit: {
11340
+ type: 'integer',
11341
+ minimum: 1,
11342
+ maximum: 100,
11343
+ default: 50,
11344
+ },
11345
+ cursor: {
11346
+ type: 'string',
11347
+ },
11348
+ readState: {
11349
+ type: 'string',
11350
+ knownValues: ['unread'],
11351
+ },
11352
+ status: {
11353
+ description:
11354
+ 'Filter convos by their status. It is discouraged to call with "request" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user.',
11355
+ type: 'string',
11356
+ knownValues: ['request', 'accepted'],
11357
+ },
11358
+ kind: {
11359
+ type: 'string',
11360
+ description: 'Filter by conversation kind.',
11361
+ knownValues: ['direct', 'group'],
11362
+ },
11363
+ },
11364
+ },
11365
+ output: {
11366
+ encoding: 'application/json',
11367
+ schema: {
11368
+ type: 'object',
11369
+ required: ['convos'],
11370
+ properties: {
11371
+ cursor: {
11372
+ type: 'string',
11373
+ },
11374
+ convos: {
11375
+ type: 'array',
11376
+ items: {
11377
+ type: 'ref',
11378
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11379
+ },
11380
+ },
11381
+ },
11382
+ },
11383
+ },
11384
+ },
11385
+ },
11386
+ },
11387
+ ChatBskyConvoLockConvo: {
11388
+ lexicon: 1,
11389
+ id: 'chat.bsky.convo.lockConvo',
11390
+ defs: {
11391
+ main: {
11392
+ type: 'procedure',
11393
+ description:
11394
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Locks a group convo so no more content (messages, reactions) can be added to it.',
11395
+ errors: [
11396
+ {
11397
+ name: 'ConvoLocked',
11398
+ },
11399
+ {
11400
+ name: 'InvalidConvo',
11401
+ },
11402
+ {
11403
+ name: 'InsufficientRole',
11404
+ },
11405
+ ],
11406
+ input: {
11407
+ encoding: 'application/json',
11408
+ schema: {
11409
+ type: 'object',
11410
+ required: ['convoId'],
11411
+ properties: {
11412
+ convoId: {
11413
+ type: 'string',
11414
+ },
11415
+ },
11416
+ },
11417
+ },
11418
+ output: {
11419
+ encoding: 'application/json',
11420
+ schema: {
11421
+ type: 'object',
11422
+ required: ['convo'],
11423
+ properties: {
11424
+ convo: {
11425
+ type: 'ref',
11426
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11427
+ },
11428
+ },
11429
+ },
11430
+ },
11431
+ },
11432
+ },
11433
+ },
11434
+ ChatBskyConvoMuteConvo: {
11435
+ lexicon: 1,
11436
+ id: 'chat.bsky.convo.muteConvo',
11437
+ defs: {
11438
+ main: {
11439
+ type: 'procedure',
11440
+ description:
11441
+ 'Mutes a conversation, preventing notifications related to it.',
11442
+ errors: [
11443
+ {
11444
+ name: 'InvalidConvo',
11445
+ },
11446
+ ],
11447
+ input: {
11448
+ encoding: 'application/json',
11449
+ schema: {
11450
+ type: 'object',
11451
+ required: ['convoId'],
11452
+ properties: {
11453
+ convoId: {
11454
+ type: 'string',
11455
+ },
11456
+ },
11457
+ },
11458
+ },
11459
+ output: {
11460
+ encoding: 'application/json',
11461
+ schema: {
11462
+ type: 'object',
11463
+ required: ['convo'],
11464
+ properties: {
11465
+ convo: {
11466
+ type: 'ref',
11467
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11468
+ },
11469
+ },
11470
+ },
11471
+ },
11472
+ },
11473
+ },
11474
+ },
11475
+ ChatBskyConvoRemoveReaction: {
11476
+ lexicon: 1,
11477
+ id: 'chat.bsky.convo.removeReaction',
11478
+ defs: {
11479
+ main: {
11480
+ type: 'procedure',
11481
+ description:
11482
+ "Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.",
11483
+ input: {
11484
+ encoding: 'application/json',
11485
+ schema: {
11486
+ type: 'object',
11487
+ required: ['convoId', 'messageId', 'value'],
11488
+ properties: {
11489
+ convoId: {
11490
+ type: 'string',
11491
+ },
11492
+ messageId: {
11493
+ type: 'string',
11494
+ },
11495
+ value: {
11496
+ type: 'string',
11497
+ minLength: 1,
11498
+ maxLength: 64,
11499
+ minGraphemes: 1,
11500
+ maxGraphemes: 1,
11501
+ },
11502
+ },
11503
+ },
11504
+ },
11505
+ output: {
11506
+ encoding: 'application/json',
11507
+ schema: {
11508
+ type: 'object',
11509
+ required: ['message'],
11510
+ properties: {
11511
+ message: {
11512
+ type: 'ref',
11513
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11514
+ },
11515
+ },
11516
+ },
11517
+ },
11518
+ errors: [
11519
+ {
11520
+ name: 'InvalidConvo',
11521
+ },
11522
+ {
11523
+ name: 'ReactionNotAllowed',
11524
+ description:
11525
+ 'Indicates that reactions are not allowed on this message, e.g. because it is a system message.',
11526
+ },
11527
+ {
11528
+ name: 'ReactionMessageDeleted',
11529
+ description:
11530
+ 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
11531
+ },
11532
+ {
11533
+ name: 'ReactionInvalidValue',
11534
+ description:
11535
+ 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
11536
+ },
11537
+ ],
11538
+ },
11539
+ },
11540
+ },
11541
+ ChatBskyConvoSendMessage: {
11542
+ lexicon: 1,
11543
+ id: 'chat.bsky.convo.sendMessage',
11544
+ defs: {
11545
+ main: {
11546
+ type: 'procedure',
11547
+ description: 'Sends a message to a conversation.',
11548
+ errors: [
11549
+ {
11550
+ name: 'ConvoLocked',
11551
+ },
11552
+ {
11553
+ name: 'InvalidConvo',
11554
+ },
11555
+ ],
11556
+ input: {
11557
+ encoding: 'application/json',
11558
+ schema: {
11559
+ type: 'object',
11560
+ required: ['convoId', 'message'],
11561
+ properties: {
11562
+ convoId: {
11563
+ type: 'string',
11564
+ },
11565
+ message: {
11566
+ type: 'ref',
11567
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
11568
+ },
11569
+ },
11570
+ },
11571
+ },
11572
+ output: {
11573
+ encoding: 'application/json',
11574
+ schema: {
11575
+ type: 'ref',
11576
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11577
+ },
11578
+ },
11579
+ },
11580
+ },
11581
+ },
11582
+ ChatBskyConvoSendMessageBatch: {
11583
+ lexicon: 1,
11584
+ id: 'chat.bsky.convo.sendMessageBatch',
11585
+ defs: {
11586
+ main: {
11587
+ type: 'procedure',
11588
+ description: 'Sends a batch of messages to a conversation.',
11589
+ errors: [
11590
+ {
11591
+ name: 'ConvoLocked',
11592
+ },
11593
+ {
11594
+ name: 'InvalidConvo',
11595
+ },
11596
+ ],
11597
+ input: {
11598
+ encoding: 'application/json',
11599
+ schema: {
11600
+ type: 'object',
11601
+ required: ['items'],
11602
+ properties: {
11603
+ items: {
11604
+ type: 'array',
11605
+ maxLength: 100,
11606
+ items: {
11607
+ type: 'ref',
11608
+ ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
11609
+ },
11610
+ },
11611
+ },
11612
+ },
11613
+ },
11614
+ output: {
11615
+ encoding: 'application/json',
11616
+ schema: {
11617
+ type: 'object',
11618
+ required: ['items'],
11619
+ properties: {
11620
+ items: {
11621
+ type: 'array',
11622
+ items: {
11623
+ type: 'ref',
11624
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11625
+ },
11626
+ },
11627
+ },
11628
+ },
11629
+ },
11630
+ },
11631
+ batchItem: {
11632
+ type: 'object',
11633
+ required: ['convoId', 'message'],
11634
+ properties: {
11635
+ convoId: {
11636
+ type: 'string',
11637
+ },
11638
+ message: {
11639
+ type: 'ref',
11640
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
11641
+ },
11642
+ },
11643
+ },
11644
+ },
11645
+ },
11646
+ ChatBskyConvoUnlockConvo: {
11647
+ lexicon: 1,
11648
+ id: 'chat.bsky.convo.unlockConvo',
11649
+ defs: {
11650
+ main: {
11651
+ type: 'procedure',
11652
+ description:
11653
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Unlocks a group convo so it is able to receive new content.',
11654
+ errors: [
11655
+ {
11656
+ name: 'InvalidConvo',
11657
+ },
11658
+ {
11659
+ name: 'InsufficientRole',
11660
+ },
11661
+ ],
11662
+ input: {
11663
+ encoding: 'application/json',
11664
+ schema: {
11665
+ type: 'object',
11666
+ required: ['convoId'],
11667
+ properties: {
11668
+ convoId: {
11669
+ type: 'string',
11670
+ },
11671
+ },
10255
11672
  },
10256
11673
  },
10257
11674
  output: {
@@ -10270,25 +11687,27 @@ export const schemaDict = {
10270
11687
  },
10271
11688
  },
10272
11689
  },
10273
- ChatBskyConvoGetConvoAvailability: {
11690
+ ChatBskyConvoUnmuteConvo: {
10274
11691
  lexicon: 1,
10275
- id: 'chat.bsky.convo.getConvoAvailability',
11692
+ id: 'chat.bsky.convo.unmuteConvo',
10276
11693
  defs: {
10277
11694
  main: {
10278
- type: 'query',
11695
+ type: 'procedure',
10279
11696
  description:
10280
- 'Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.',
10281
- parameters: {
10282
- type: 'params',
10283
- required: ['members'],
10284
- properties: {
10285
- members: {
10286
- type: 'array',
10287
- minLength: 1,
10288
- maxLength: 10,
10289
- items: {
11697
+ 'Unmutes a conversation, allowing notifications related to it.',
11698
+ errors: [
11699
+ {
11700
+ name: 'InvalidConvo',
11701
+ },
11702
+ ],
11703
+ input: {
11704
+ encoding: 'application/json',
11705
+ schema: {
11706
+ type: 'object',
11707
+ required: ['convoId'],
11708
+ properties: {
11709
+ convoId: {
10290
11710
  type: 'string',
10291
- format: 'did',
10292
11711
  },
10293
11712
  },
10294
11713
  },
@@ -10297,11 +11716,88 @@ export const schemaDict = {
10297
11716
  encoding: 'application/json',
10298
11717
  schema: {
10299
11718
  type: 'object',
10300
- required: ['canChat'],
11719
+ required: ['convo'],
10301
11720
  properties: {
10302
- canChat: {
10303
- type: 'boolean',
11721
+ convo: {
11722
+ type: 'ref',
11723
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11724
+ },
11725
+ },
11726
+ },
11727
+ },
11728
+ },
11729
+ },
11730
+ },
11731
+ ChatBskyConvoUpdateAllRead: {
11732
+ lexicon: 1,
11733
+ id: 'chat.bsky.convo.updateAllRead',
11734
+ defs: {
11735
+ main: {
11736
+ type: 'procedure',
11737
+ description:
11738
+ 'Sets conversations from a user as read to the latest message, with filters.',
11739
+ input: {
11740
+ encoding: 'application/json',
11741
+ schema: {
11742
+ type: 'object',
11743
+ properties: {
11744
+ status: {
11745
+ type: 'string',
11746
+ knownValues: ['request', 'accepted'],
11747
+ },
11748
+ },
11749
+ },
11750
+ },
11751
+ output: {
11752
+ encoding: 'application/json',
11753
+ schema: {
11754
+ type: 'object',
11755
+ required: ['updatedCount'],
11756
+ properties: {
11757
+ updatedCount: {
11758
+ description: 'The count of updated convos.',
11759
+ type: 'integer',
11760
+ },
11761
+ },
11762
+ },
11763
+ },
11764
+ },
11765
+ },
11766
+ },
11767
+ ChatBskyConvoUpdateRead: {
11768
+ lexicon: 1,
11769
+ id: 'chat.bsky.convo.updateRead',
11770
+ defs: {
11771
+ main: {
11772
+ type: 'procedure',
11773
+ description:
11774
+ 'Updates the read state of a conversation from, optionally specifying the last read message.',
11775
+ errors: [
11776
+ {
11777
+ name: 'InvalidConvo',
11778
+ },
11779
+ ],
11780
+ input: {
11781
+ encoding: 'application/json',
11782
+ schema: {
11783
+ type: 'object',
11784
+ required: ['convoId'],
11785
+ properties: {
11786
+ convoId: {
11787
+ type: 'string',
11788
+ },
11789
+ messageId: {
11790
+ type: 'string',
10304
11791
  },
11792
+ },
11793
+ },
11794
+ },
11795
+ output: {
11796
+ encoding: 'application/json',
11797
+ schema: {
11798
+ type: 'object',
11799
+ required: ['convo'],
11800
+ properties: {
10305
11801
  convo: {
10306
11802
  type: 'ref',
10307
11803
  ref: 'lex:chat.bsky.convo.defs#convoView',
@@ -10312,21 +11808,115 @@ export const schemaDict = {
10312
11808
  },
10313
11809
  },
10314
11810
  },
10315
- ChatBskyConvoGetConvoForMembers: {
11811
+ ChatBskyGroupAddMembers: {
10316
11812
  lexicon: 1,
10317
- id: 'chat.bsky.convo.getConvoForMembers',
11813
+ id: 'chat.bsky.group.addMembers',
10318
11814
  defs: {
10319
11815
  main: {
10320
- type: 'query',
10321
- parameters: {
10322
- type: 'params',
10323
- required: ['members'],
10324
- properties: {
10325
- members: {
10326
- type: 'array',
10327
- minLength: 1,
10328
- maxLength: 10,
10329
- items: {
11816
+ type: 'procedure',
11817
+ description:
11818
+ "[NOTE: This is under active development and should be considered unstable while this note is here]. Adds members to a group. The members are added in 'request' status, so they have to accept it. This creates convo memberships.",
11819
+ errors: [
11820
+ {
11821
+ name: 'AccountSuspended',
11822
+ },
11823
+ {
11824
+ name: 'BlockedActor',
11825
+ },
11826
+ {
11827
+ name: 'GroupInvitesDisabled',
11828
+ },
11829
+ {
11830
+ name: 'ConvoLocked',
11831
+ },
11832
+ {
11833
+ name: 'InsufficientRole',
11834
+ },
11835
+ {
11836
+ name: 'InvalidConvo',
11837
+ },
11838
+ {
11839
+ name: 'MemberLimitReached',
11840
+ },
11841
+ {
11842
+ name: 'NotFollowedBySender',
11843
+ },
11844
+ {
11845
+ name: 'RecipientNotFound',
11846
+ },
11847
+ ],
11848
+ input: {
11849
+ encoding: 'application/json',
11850
+ schema: {
11851
+ type: 'object',
11852
+ required: ['convoId', 'members'],
11853
+ properties: {
11854
+ convoId: {
11855
+ type: 'string',
11856
+ },
11857
+ members: {
11858
+ type: 'array',
11859
+ items: {
11860
+ type: 'string',
11861
+ format: 'did',
11862
+ },
11863
+ minLength: 1,
11864
+ },
11865
+ },
11866
+ },
11867
+ },
11868
+ output: {
11869
+ encoding: 'application/json',
11870
+ schema: {
11871
+ type: 'object',
11872
+ required: ['convo'],
11873
+ properties: {
11874
+ convo: {
11875
+ type: 'ref',
11876
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11877
+ },
11878
+ addedMembers: {
11879
+ type: 'array',
11880
+ items: {
11881
+ type: 'ref',
11882
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
11883
+ },
11884
+ },
11885
+ },
11886
+ },
11887
+ },
11888
+ },
11889
+ },
11890
+ },
11891
+ ChatBskyGroupApproveJoinRequest: {
11892
+ lexicon: 1,
11893
+ id: 'chat.bsky.group.approveJoinRequest',
11894
+ defs: {
11895
+ main: {
11896
+ type: 'procedure',
11897
+ description:
11898
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Approves a request to join a group (via join link) the user owns. Action taken by the group owner.',
11899
+ errors: [
11900
+ {
11901
+ name: 'InvalidConvo',
11902
+ },
11903
+ {
11904
+ name: 'InsufficientRole',
11905
+ },
11906
+ {
11907
+ name: 'MemberLimitReached',
11908
+ },
11909
+ ],
11910
+ input: {
11911
+ encoding: 'application/json',
11912
+ schema: {
11913
+ type: 'object',
11914
+ required: ['convoId', 'member'],
11915
+ properties: {
11916
+ convoId: {
11917
+ type: 'string',
11918
+ },
11919
+ member: {
10330
11920
  type: 'string',
10331
11921
  format: 'did',
10332
11922
  },
@@ -10349,18 +11939,51 @@ export const schemaDict = {
10349
11939
  },
10350
11940
  },
10351
11941
  },
10352
- ChatBskyConvoGetLog: {
11942
+ ChatBskyGroupCreateGroup: {
10353
11943
  lexicon: 1,
10354
- id: 'chat.bsky.convo.getLog',
11944
+ id: 'chat.bsky.group.createGroup',
10355
11945
  defs: {
10356
11946
  main: {
10357
- type: 'query',
10358
- parameters: {
10359
- type: 'params',
10360
- required: [],
10361
- properties: {
10362
- cursor: {
10363
- type: 'string',
11947
+ type: 'procedure',
11948
+ description:
11949
+ "[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'pending' membership for all members, except the owner who is 'accepted'.",
11950
+ errors: [
11951
+ {
11952
+ name: 'AccountSuspended',
11953
+ },
11954
+ {
11955
+ name: 'BlockedActor',
11956
+ },
11957
+ {
11958
+ name: 'GroupInvitesDisabled',
11959
+ },
11960
+ {
11961
+ name: 'NotFollowedBySender',
11962
+ },
11963
+ {
11964
+ name: 'RecipientNotFound',
11965
+ },
11966
+ ],
11967
+ input: {
11968
+ encoding: 'application/json',
11969
+ schema: {
11970
+ type: 'object',
11971
+ required: ['members', 'name'],
11972
+ properties: {
11973
+ members: {
11974
+ type: 'array',
11975
+ maxLength: 49,
11976
+ items: {
11977
+ type: 'string',
11978
+ format: 'did',
11979
+ },
11980
+ },
11981
+ name: {
11982
+ type: 'string',
11983
+ minLength: 1,
11984
+ maxGraphemes: 128,
11985
+ maxLength: 1280,
11986
+ },
10364
11987
  },
10365
11988
  },
10366
11989
  },
@@ -10368,28 +11991,11 @@ export const schemaDict = {
10368
11991
  encoding: 'application/json',
10369
11992
  schema: {
10370
11993
  type: 'object',
10371
- required: ['logs'],
11994
+ required: ['convo'],
10372
11995
  properties: {
10373
- cursor: {
10374
- type: 'string',
10375
- },
10376
- logs: {
10377
- type: 'array',
10378
- items: {
10379
- type: 'union',
10380
- refs: [
10381
- 'lex:chat.bsky.convo.defs#logBeginConvo',
10382
- 'lex:chat.bsky.convo.defs#logAcceptConvo',
10383
- 'lex:chat.bsky.convo.defs#logLeaveConvo',
10384
- 'lex:chat.bsky.convo.defs#logMuteConvo',
10385
- 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10386
- 'lex:chat.bsky.convo.defs#logCreateMessage',
10387
- 'lex:chat.bsky.convo.defs#logDeleteMessage',
10388
- 'lex:chat.bsky.convo.defs#logReadMessage',
10389
- 'lex:chat.bsky.convo.defs#logAddReaction',
10390
- 'lex:chat.bsky.convo.defs#logRemoveReaction',
10391
- ],
10392
- },
11996
+ convo: {
11997
+ type: 'ref',
11998
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10393
11999
  },
10394
12000
  },
10395
12001
  },
@@ -10397,27 +12003,42 @@ export const schemaDict = {
10397
12003
  },
10398
12004
  },
10399
12005
  },
10400
- ChatBskyConvoGetMessages: {
12006
+ ChatBskyGroupCreateJoinLink: {
10401
12007
  lexicon: 1,
10402
- id: 'chat.bsky.convo.getMessages',
12008
+ id: 'chat.bsky.group.createJoinLink',
10403
12009
  defs: {
10404
12010
  main: {
10405
- type: 'query',
10406
- parameters: {
10407
- type: 'params',
10408
- required: ['convoId'],
10409
- properties: {
10410
- convoId: {
10411
- type: 'string',
10412
- },
10413
- limit: {
10414
- type: 'integer',
10415
- minimum: 1,
10416
- maximum: 100,
10417
- default: 50,
10418
- },
10419
- cursor: {
10420
- type: 'string',
12011
+ type: 'procedure',
12012
+ description:
12013
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a join link for the group convo.',
12014
+ errors: [
12015
+ {
12016
+ name: 'EnabledJoinLinkAlreadyExists',
12017
+ },
12018
+ {
12019
+ name: 'InvalidConvo',
12020
+ },
12021
+ {
12022
+ name: 'InsufficientRole',
12023
+ },
12024
+ ],
12025
+ input: {
12026
+ encoding: 'application/json',
12027
+ schema: {
12028
+ type: 'object',
12029
+ required: ['convoId', 'joinRule'],
12030
+ properties: {
12031
+ convoId: {
12032
+ type: 'string',
12033
+ },
12034
+ requireApproval: {
12035
+ type: 'boolean',
12036
+ default: false,
12037
+ },
12038
+ joinRule: {
12039
+ type: 'ref',
12040
+ ref: 'lex:chat.bsky.group.defs#joinRule',
12041
+ },
10421
12042
  },
10422
12043
  },
10423
12044
  },
@@ -10425,20 +12046,11 @@ export const schemaDict = {
10425
12046
  encoding: 'application/json',
10426
12047
  schema: {
10427
12048
  type: 'object',
10428
- required: ['messages'],
12049
+ required: ['joinLink'],
10429
12050
  properties: {
10430
- cursor: {
10431
- type: 'string',
10432
- },
10433
- messages: {
10434
- type: 'array',
10435
- items: {
10436
- type: 'union',
10437
- refs: [
10438
- 'lex:chat.bsky.convo.defs#messageView',
10439
- 'lex:chat.bsky.convo.defs#deletedMessageView',
10440
- ],
10441
- },
12051
+ joinLink: {
12052
+ type: 'ref',
12053
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10442
12054
  },
10443
12055
  },
10444
12056
  },
@@ -10446,12 +12058,107 @@ export const schemaDict = {
10446
12058
  },
10447
12059
  },
10448
12060
  },
10449
- ChatBskyConvoLeaveConvo: {
12061
+ ChatBskyGroupDefs: {
10450
12062
  lexicon: 1,
10451
- id: 'chat.bsky.convo.leaveConvo',
12063
+ id: 'chat.bsky.group.defs',
12064
+ description:
12065
+ '[NOTE: This is under active development and should be considered unstable while this note is here].',
12066
+ defs: {
12067
+ linkEnabledStatus: {
12068
+ type: 'string',
12069
+ knownValues: ['enabled', 'disabled'],
12070
+ },
12071
+ joinRule: {
12072
+ type: 'string',
12073
+ knownValues: ['anyone', 'followedByOwner'],
12074
+ },
12075
+ joinLinkView: {
12076
+ type: 'object',
12077
+ required: [
12078
+ 'code',
12079
+ 'enabledStatus',
12080
+ 'requireApproval',
12081
+ 'joinRule',
12082
+ 'createdAt',
12083
+ ],
12084
+ properties: {
12085
+ code: {
12086
+ type: 'string',
12087
+ },
12088
+ enabledStatus: {
12089
+ type: 'ref',
12090
+ ref: 'lex:chat.bsky.group.defs#linkEnabledStatus',
12091
+ },
12092
+ requireApproval: {
12093
+ type: 'boolean',
12094
+ },
12095
+ joinRule: {
12096
+ type: 'ref',
12097
+ ref: 'lex:chat.bsky.group.defs#joinRule',
12098
+ },
12099
+ createdAt: {
12100
+ type: 'string',
12101
+ format: 'datetime',
12102
+ },
12103
+ },
12104
+ },
12105
+ groupPublicView: {
12106
+ type: 'object',
12107
+ required: ['name', 'owner', 'memberCount', 'requireApproval'],
12108
+ properties: {
12109
+ name: {
12110
+ type: 'string',
12111
+ },
12112
+ owner: {
12113
+ type: 'ref',
12114
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
12115
+ },
12116
+ memberCount: {
12117
+ type: 'integer',
12118
+ },
12119
+ requireApproval: {
12120
+ type: 'boolean',
12121
+ },
12122
+ },
12123
+ },
12124
+ joinRequestView: {
12125
+ type: 'object',
12126
+ required: ['convoId', 'requestedBy', 'requestedAt'],
12127
+ properties: {
12128
+ convoId: {
12129
+ type: 'string',
12130
+ },
12131
+ requestedBy: {
12132
+ type: 'ref',
12133
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
12134
+ },
12135
+ requestedAt: {
12136
+ type: 'string',
12137
+ format: 'datetime',
12138
+ },
12139
+ },
12140
+ },
12141
+ },
12142
+ },
12143
+ ChatBskyGroupDisableJoinLink: {
12144
+ lexicon: 1,
12145
+ id: 'chat.bsky.group.disableJoinLink',
10452
12146
  defs: {
10453
12147
  main: {
10454
12148
  type: 'procedure',
12149
+ description:
12150
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Disables the active join link for the group convo.',
12151
+ errors: [
12152
+ {
12153
+ name: 'InvalidConvo',
12154
+ },
12155
+ {
12156
+ name: 'InsufficientRole',
12157
+ },
12158
+ {
12159
+ name: 'NoJoinLink',
12160
+ },
12161
+ ],
10455
12162
  input: {
10456
12163
  encoding: 'application/json',
10457
12164
  schema: {
@@ -10468,13 +12175,11 @@ export const schemaDict = {
10468
12175
  encoding: 'application/json',
10469
12176
  schema: {
10470
12177
  type: 'object',
10471
- required: ['convoId', 'rev'],
12178
+ required: ['joinLink'],
10472
12179
  properties: {
10473
- convoId: {
10474
- type: 'string',
10475
- },
10476
- rev: {
10477
- type: 'string',
12180
+ joinLink: {
12181
+ type: 'ref',
12182
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10478
12183
  },
10479
12184
  },
10480
12185
  },
@@ -10482,31 +12187,40 @@ export const schemaDict = {
10482
12187
  },
10483
12188
  },
10484
12189
  },
10485
- ChatBskyConvoListConvos: {
12190
+ ChatBskyGroupEditGroup: {
10486
12191
  lexicon: 1,
10487
- id: 'chat.bsky.convo.listConvos',
12192
+ id: 'chat.bsky.group.editGroup',
10488
12193
  defs: {
10489
12194
  main: {
10490
- type: 'query',
10491
- parameters: {
10492
- type: 'params',
10493
- properties: {
10494
- limit: {
10495
- type: 'integer',
10496
- minimum: 1,
10497
- maximum: 100,
10498
- default: 50,
10499
- },
10500
- cursor: {
10501
- type: 'string',
10502
- },
10503
- readState: {
10504
- type: 'string',
10505
- knownValues: ['unread'],
10506
- },
10507
- status: {
10508
- type: 'string',
10509
- knownValues: ['request', 'accepted'],
12195
+ type: 'procedure',
12196
+ description:
12197
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Edits group settings.',
12198
+ errors: [
12199
+ {
12200
+ name: 'ConvoLocked',
12201
+ },
12202
+ {
12203
+ name: 'InvalidConvo',
12204
+ },
12205
+ {
12206
+ name: 'InsufficientRole',
12207
+ },
12208
+ ],
12209
+ input: {
12210
+ encoding: 'application/json',
12211
+ schema: {
12212
+ type: 'object',
12213
+ required: ['convoId', 'name'],
12214
+ properties: {
12215
+ convoId: {
12216
+ type: 'string',
12217
+ },
12218
+ name: {
12219
+ type: 'string',
12220
+ minLength: 1,
12221
+ maxGraphemes: 128,
12222
+ maxLength: 1280,
12223
+ },
10510
12224
  },
10511
12225
  },
10512
12226
  },
@@ -10514,17 +12228,11 @@ export const schemaDict = {
10514
12228
  encoding: 'application/json',
10515
12229
  schema: {
10516
12230
  type: 'object',
10517
- required: ['convos'],
12231
+ required: ['convo'],
10518
12232
  properties: {
10519
- cursor: {
10520
- type: 'string',
10521
- },
10522
- convos: {
10523
- type: 'array',
10524
- items: {
10525
- type: 'ref',
10526
- ref: 'lex:chat.bsky.convo.defs#convoView',
10527
- },
12233
+ convo: {
12234
+ type: 'ref',
12235
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10528
12236
  },
10529
12237
  },
10530
12238
  },
@@ -10532,12 +12240,25 @@ export const schemaDict = {
10532
12240
  },
10533
12241
  },
10534
12242
  },
10535
- ChatBskyConvoMuteConvo: {
12243
+ ChatBskyGroupEditJoinLink: {
10536
12244
  lexicon: 1,
10537
- id: 'chat.bsky.convo.muteConvo',
12245
+ id: 'chat.bsky.group.editJoinLink',
10538
12246
  defs: {
10539
12247
  main: {
10540
12248
  type: 'procedure',
12249
+ description:
12250
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Edits the existing join link settings for the group convo.',
12251
+ errors: [
12252
+ {
12253
+ name: 'InvalidConvo',
12254
+ },
12255
+ {
12256
+ name: 'InsufficientRole',
12257
+ },
12258
+ {
12259
+ name: 'NoJoinLink',
12260
+ },
12261
+ ],
10541
12262
  input: {
10542
12263
  encoding: 'application/json',
10543
12264
  schema: {
@@ -10547,6 +12268,13 @@ export const schemaDict = {
10547
12268
  convoId: {
10548
12269
  type: 'string',
10549
12270
  },
12271
+ requireApproval: {
12272
+ type: 'boolean',
12273
+ },
12274
+ joinRule: {
12275
+ type: 'ref',
12276
+ ref: 'lex:chat.bsky.group.defs#joinRule',
12277
+ },
10550
12278
  },
10551
12279
  },
10552
12280
  },
@@ -10554,11 +12282,11 @@ export const schemaDict = {
10554
12282
  encoding: 'application/json',
10555
12283
  schema: {
10556
12284
  type: 'object',
10557
- required: ['convo'],
12285
+ required: ['joinLink'],
10558
12286
  properties: {
10559
- convo: {
12287
+ joinLink: {
10560
12288
  type: 'ref',
10561
- ref: 'lex:chat.bsky.convo.defs#convoView',
12289
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10562
12290
  },
10563
12291
  },
10564
12292
  },
@@ -10566,32 +12294,36 @@ export const schemaDict = {
10566
12294
  },
10567
12295
  },
10568
12296
  },
10569
- ChatBskyConvoRemoveReaction: {
12297
+ ChatBskyGroupEnableJoinLink: {
10570
12298
  lexicon: 1,
10571
- id: 'chat.bsky.convo.removeReaction',
12299
+ id: 'chat.bsky.group.enableJoinLink',
10572
12300
  defs: {
10573
12301
  main: {
10574
12302
  type: 'procedure',
10575
12303
  description:
10576
- "Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.",
12304
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Re-enables a previously disabled join link for the group convo.',
12305
+ errors: [
12306
+ {
12307
+ name: 'InvalidConvo',
12308
+ },
12309
+ {
12310
+ name: 'InsufficientRole',
12311
+ },
12312
+ {
12313
+ name: 'NoJoinLink',
12314
+ },
12315
+ {
12316
+ name: 'LinkAlreadyEnabled',
12317
+ },
12318
+ ],
10577
12319
  input: {
10578
12320
  encoding: 'application/json',
10579
- schema: {
10580
- type: 'object',
10581
- required: ['convoId', 'messageId', 'value'],
10582
- properties: {
10583
- convoId: {
10584
- type: 'string',
10585
- },
10586
- messageId: {
10587
- type: 'string',
10588
- },
10589
- value: {
12321
+ schema: {
12322
+ type: 'object',
12323
+ required: ['convoId'],
12324
+ properties: {
12325
+ convoId: {
10590
12326
  type: 'string',
10591
- minLength: 1,
10592
- maxLength: 64,
10593
- minGraphemes: 1,
10594
- maxGraphemes: 1,
10595
12327
  },
10596
12328
  },
10597
12329
  },
@@ -10600,82 +12332,87 @@ export const schemaDict = {
10600
12332
  encoding: 'application/json',
10601
12333
  schema: {
10602
12334
  type: 'object',
10603
- required: ['message'],
12335
+ required: ['joinLink'],
10604
12336
  properties: {
10605
- message: {
12337
+ joinLink: {
10606
12338
  type: 'ref',
10607
- ref: 'lex:chat.bsky.convo.defs#messageView',
12339
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10608
12340
  },
10609
12341
  },
10610
12342
  },
10611
12343
  },
10612
- errors: [
10613
- {
10614
- name: 'ReactionMessageDeleted',
10615
- description:
10616
- 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
10617
- },
10618
- {
10619
- name: 'ReactionInvalidValue',
10620
- description:
10621
- 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
10622
- },
10623
- ],
10624
12344
  },
10625
12345
  },
10626
12346
  },
10627
- ChatBskyConvoSendMessage: {
12347
+ ChatBskyGroupGetGroupPublicInfo: {
10628
12348
  lexicon: 1,
10629
- id: 'chat.bsky.convo.sendMessage',
12349
+ id: 'chat.bsky.group.getGroupPublicInfo',
10630
12350
  defs: {
10631
12351
  main: {
10632
- type: 'procedure',
10633
- input: {
12352
+ type: 'query',
12353
+ description:
12354
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about a group from an join link.',
12355
+ errors: [
12356
+ {
12357
+ name: 'InvalidCode',
12358
+ },
12359
+ ],
12360
+ parameters: {
12361
+ type: 'params',
12362
+ required: ['code'],
12363
+ properties: {
12364
+ code: {
12365
+ type: 'string',
12366
+ },
12367
+ },
12368
+ },
12369
+ output: {
10634
12370
  encoding: 'application/json',
10635
12371
  schema: {
10636
12372
  type: 'object',
10637
- required: ['convoId', 'message'],
12373
+ required: ['group'],
10638
12374
  properties: {
10639
- convoId: {
10640
- type: 'string',
10641
- },
10642
- message: {
12375
+ group: {
10643
12376
  type: 'ref',
10644
- ref: 'lex:chat.bsky.convo.defs#messageInput',
12377
+ ref: 'lex:chat.bsky.group.defs#groupPublicView',
10645
12378
  },
10646
12379
  },
10647
12380
  },
10648
12381
  },
10649
- output: {
10650
- encoding: 'application/json',
10651
- schema: {
10652
- type: 'ref',
10653
- ref: 'lex:chat.bsky.convo.defs#messageView',
10654
- },
10655
- },
10656
12382
  },
10657
12383
  },
10658
12384
  },
10659
- ChatBskyConvoSendMessageBatch: {
12385
+ ChatBskyGroupListJoinRequests: {
10660
12386
  lexicon: 1,
10661
- id: 'chat.bsky.convo.sendMessageBatch',
12387
+ id: 'chat.bsky.group.listJoinRequests',
10662
12388
  defs: {
10663
12389
  main: {
10664
- type: 'procedure',
10665
- input: {
10666
- encoding: 'application/json',
10667
- schema: {
10668
- type: 'object',
10669
- required: ['items'],
10670
- properties: {
10671
- items: {
10672
- type: 'array',
10673
- maxLength: 100,
10674
- items: {
10675
- type: 'ref',
10676
- ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
10677
- },
10678
- },
12390
+ type: 'query',
12391
+ description:
12392
+ "[NOTE: This is under active development and should be considered unstable while this note is here]. Lists a page of request to join a group (via join link) the user owns. Shows the data from the owner's point of view.",
12393
+ errors: [
12394
+ {
12395
+ name: 'InvalidConvo',
12396
+ },
12397
+ {
12398
+ name: 'InsufficientRole',
12399
+ },
12400
+ ],
12401
+ parameters: {
12402
+ type: 'params',
12403
+ required: ['convoId'],
12404
+ properties: {
12405
+ convoId: {
12406
+ type: 'string',
12407
+ },
12408
+ limit: {
12409
+ type: 'integer',
12410
+ minimum: 1,
12411
+ maximum: 100,
12412
+ default: 50,
12413
+ },
12414
+ cursor: {
12415
+ type: 'string',
10679
12416
  },
10680
12417
  },
10681
12418
  },
@@ -10683,49 +12420,53 @@ export const schemaDict = {
10683
12420
  encoding: 'application/json',
10684
12421
  schema: {
10685
12422
  type: 'object',
10686
- required: ['items'],
12423
+ required: ['requests'],
10687
12424
  properties: {
10688
- items: {
12425
+ cursor: {
12426
+ type: 'string',
12427
+ },
12428
+ requests: {
10689
12429
  type: 'array',
10690
12430
  items: {
10691
12431
  type: 'ref',
10692
- ref: 'lex:chat.bsky.convo.defs#messageView',
12432
+ ref: 'lex:chat.bsky.group.defs#joinRequestView',
10693
12433
  },
10694
12434
  },
10695
12435
  },
10696
12436
  },
10697
12437
  },
10698
12438
  },
10699
- batchItem: {
10700
- type: 'object',
10701
- required: ['convoId', 'message'],
10702
- properties: {
10703
- convoId: {
10704
- type: 'string',
10705
- },
10706
- message: {
10707
- type: 'ref',
10708
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10709
- },
10710
- },
10711
- },
10712
12439
  },
10713
12440
  },
10714
- ChatBskyConvoUnmuteConvo: {
12441
+ ChatBskyGroupRejectJoinRequest: {
10715
12442
  lexicon: 1,
10716
- id: 'chat.bsky.convo.unmuteConvo',
12443
+ id: 'chat.bsky.group.rejectJoinRequest',
10717
12444
  defs: {
10718
12445
  main: {
10719
12446
  type: 'procedure',
12447
+ description:
12448
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Rejects a request to join a group (via join link) the user owns. Action taken by the group owner.',
12449
+ errors: [
12450
+ {
12451
+ name: 'InvalidConvo',
12452
+ },
12453
+ {
12454
+ name: 'InsufficientRole',
12455
+ },
12456
+ ],
10720
12457
  input: {
10721
12458
  encoding: 'application/json',
10722
12459
  schema: {
10723
12460
  type: 'object',
10724
- required: ['convoId'],
12461
+ required: ['convoId', 'member'],
10725
12462
  properties: {
10726
12463
  convoId: {
10727
12464
  type: 'string',
10728
12465
  },
12466
+ member: {
12467
+ type: 'string',
12468
+ format: 'did',
12469
+ },
10729
12470
  },
10730
12471
  },
10731
12472
  },
@@ -10733,32 +12474,45 @@ export const schemaDict = {
10733
12474
  encoding: 'application/json',
10734
12475
  schema: {
10735
12476
  type: 'object',
10736
- required: ['convo'],
10737
- properties: {
10738
- convo: {
10739
- type: 'ref',
10740
- ref: 'lex:chat.bsky.convo.defs#convoView',
10741
- },
10742
- },
12477
+ required: [],
12478
+ properties: {},
10743
12479
  },
10744
12480
  },
10745
12481
  },
10746
12482
  },
10747
12483
  },
10748
- ChatBskyConvoUpdateAllRead: {
12484
+ ChatBskyGroupRemoveMembers: {
10749
12485
  lexicon: 1,
10750
- id: 'chat.bsky.convo.updateAllRead',
12486
+ id: 'chat.bsky.group.removeMembers',
10751
12487
  defs: {
10752
12488
  main: {
10753
12489
  type: 'procedure',
12490
+ description:
12491
+ "[NOTE: This is under active development and should be considered unstable while this note is here]. Removes members from a group. This deletes convo memberships, doesn't just set a status.",
12492
+ errors: [
12493
+ {
12494
+ name: 'InvalidConvo',
12495
+ },
12496
+ {
12497
+ name: 'InsufficientRole',
12498
+ },
12499
+ ],
10754
12500
  input: {
10755
12501
  encoding: 'application/json',
10756
12502
  schema: {
10757
12503
  type: 'object',
12504
+ required: ['convoId', 'members'],
10758
12505
  properties: {
10759
- status: {
12506
+ convoId: {
10760
12507
  type: 'string',
10761
- knownValues: ['request', 'accepted'],
12508
+ },
12509
+ members: {
12510
+ type: 'array',
12511
+ items: {
12512
+ type: 'string',
12513
+ format: 'did',
12514
+ },
12515
+ minLength: 1,
10762
12516
  },
10763
12517
  },
10764
12518
  },
@@ -10767,11 +12521,11 @@ export const schemaDict = {
10767
12521
  encoding: 'application/json',
10768
12522
  schema: {
10769
12523
  type: 'object',
10770
- required: ['updatedCount'],
12524
+ required: ['convo'],
10771
12525
  properties: {
10772
- updatedCount: {
10773
- description: 'The count of updated convos.',
10774
- type: 'integer',
12526
+ convo: {
12527
+ type: 'ref',
12528
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10775
12529
  },
10776
12530
  },
10777
12531
  },
@@ -10779,22 +12533,41 @@ export const schemaDict = {
10779
12533
  },
10780
12534
  },
10781
12535
  },
10782
- ChatBskyConvoUpdateRead: {
12536
+ ChatBskyGroupRequestJoin: {
10783
12537
  lexicon: 1,
10784
- id: 'chat.bsky.convo.updateRead',
12538
+ id: 'chat.bsky.group.requestJoin',
10785
12539
  defs: {
10786
12540
  main: {
10787
12541
  type: 'procedure',
12542
+ description:
12543
+ '[NOTE: This is under active development and should be considered unstable while this note is here]. Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member.',
12544
+ errors: [
12545
+ {
12546
+ name: 'ConvoLocked',
12547
+ },
12548
+ {
12549
+ name: 'FollowRequired',
12550
+ },
12551
+ {
12552
+ name: 'InvalidCode',
12553
+ },
12554
+ {
12555
+ name: 'LinkDisabled',
12556
+ },
12557
+ {
12558
+ name: 'MemberLimitReached',
12559
+ },
12560
+ {
12561
+ name: 'UserKicked',
12562
+ },
12563
+ ],
10788
12564
  input: {
10789
12565
  encoding: 'application/json',
10790
12566
  schema: {
10791
12567
  type: 'object',
10792
- required: ['convoId'],
12568
+ required: ['code'],
10793
12569
  properties: {
10794
- convoId: {
10795
- type: 'string',
10796
- },
10797
- messageId: {
12570
+ code: {
10798
12571
  type: 'string',
10799
12572
  },
10800
12573
  },
@@ -10804,9 +12577,15 @@ export const schemaDict = {
10804
12577
  encoding: 'application/json',
10805
12578
  schema: {
10806
12579
  type: 'object',
10807
- required: ['convo'],
12580
+ required: ['status'],
10808
12581
  properties: {
12582
+ status: {
12583
+ type: 'string',
12584
+ knownValues: ['joined', 'pending'],
12585
+ },
10809
12586
  convo: {
12587
+ description:
12588
+ 'The group convo joined. This is only present in the case of status=joined',
10810
12589
  type: 'ref',
10811
12590
  ref: 'lex:chat.bsky.convo.defs#convoView',
10812
12591
  },
@@ -10920,6 +12699,7 @@ export const schemaDict = {
10920
12699
  refs: [
10921
12700
  'lex:chat.bsky.convo.defs#messageView',
10922
12701
  'lex:chat.bsky.convo.defs#deletedMessageView',
12702
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10923
12703
  ],
10924
12704
  },
10925
12705
  },
@@ -10929,6 +12709,78 @@ export const schemaDict = {
10929
12709
  },
10930
12710
  },
10931
12711
  },
12712
+ ChatBskyModerationSubscribeModEvents: {
12713
+ lexicon: 1,
12714
+ id: 'chat.bsky.moderation.subscribeModEvents',
12715
+ defs: {
12716
+ main: {
12717
+ type: 'subscription',
12718
+ description:
12719
+ 'Subscribe to stream of chat events targeted to moderation. Private endpoint.',
12720
+ parameters: {
12721
+ type: 'params',
12722
+ properties: {
12723
+ cursor: {
12724
+ type: 'string',
12725
+ description:
12726
+ "The last known event seq number to backfill from. Use '2222222222222' to backfill from the beginning. Don't specify a cursor to listen only for new events.",
12727
+ },
12728
+ },
12729
+ },
12730
+ message: {
12731
+ schema: {
12732
+ type: 'union',
12733
+ refs: [
12734
+ 'lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage',
12735
+ ],
12736
+ },
12737
+ },
12738
+ errors: [
12739
+ {
12740
+ name: 'FutureCursor',
12741
+ },
12742
+ {
12743
+ name: 'ConsumerTooSlow',
12744
+ description:
12745
+ 'If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection.',
12746
+ },
12747
+ ],
12748
+ },
12749
+ eventConvoFirstMessage: {
12750
+ type: 'object',
12751
+ required: ['createdAt', 'rev', 'convoId', 'user', 'recipients'],
12752
+ properties: {
12753
+ convoId: {
12754
+ type: 'string',
12755
+ },
12756
+ createdAt: {
12757
+ type: 'string',
12758
+ format: 'datetime',
12759
+ },
12760
+ messageId: {
12761
+ type: 'string',
12762
+ },
12763
+ recipients: {
12764
+ description:
12765
+ 'The list of DIDs message recipients. Does not include the sender, which is in the `user` field',
12766
+ type: 'array',
12767
+ items: {
12768
+ type: 'string',
12769
+ format: 'did',
12770
+ },
12771
+ },
12772
+ rev: {
12773
+ type: 'string',
12774
+ },
12775
+ user: {
12776
+ description: 'The DID of the message author.',
12777
+ type: 'string',
12778
+ format: 'did',
12779
+ },
12780
+ },
12781
+ },
12782
+ },
12783
+ },
10932
12784
  ChatBskyModerationUpdateActorAccess: {
10933
12785
  lexicon: 1,
10934
12786
  id: 'chat.bsky.moderation.updateActorAccess',
@@ -21224,19 +23076,39 @@ export const ids = {
21224
23076
  ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo',
21225
23077
  ChatBskyConvoGetConvoAvailability: 'chat.bsky.convo.getConvoAvailability',
21226
23078
  ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers',
23079
+ ChatBskyConvoGetConvoMembers: 'chat.bsky.convo.getConvoMembers',
21227
23080
  ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
21228
23081
  ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
21229
23082
  ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
23083
+ ChatBskyConvoListConvoRequests: 'chat.bsky.convo.listConvoRequests',
21230
23084
  ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
23085
+ ChatBskyConvoLockConvo: 'chat.bsky.convo.lockConvo',
21231
23086
  ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
21232
23087
  ChatBskyConvoRemoveReaction: 'chat.bsky.convo.removeReaction',
21233
23088
  ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
21234
23089
  ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
23090
+ ChatBskyConvoUnlockConvo: 'chat.bsky.convo.unlockConvo',
21235
23091
  ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
21236
23092
  ChatBskyConvoUpdateAllRead: 'chat.bsky.convo.updateAllRead',
21237
23093
  ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
23094
+ ChatBskyGroupAddMembers: 'chat.bsky.group.addMembers',
23095
+ ChatBskyGroupApproveJoinRequest: 'chat.bsky.group.approveJoinRequest',
23096
+ ChatBskyGroupCreateGroup: 'chat.bsky.group.createGroup',
23097
+ ChatBskyGroupCreateJoinLink: 'chat.bsky.group.createJoinLink',
23098
+ ChatBskyGroupDefs: 'chat.bsky.group.defs',
23099
+ ChatBskyGroupDisableJoinLink: 'chat.bsky.group.disableJoinLink',
23100
+ ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
23101
+ ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
23102
+ ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
23103
+ ChatBskyGroupGetGroupPublicInfo: 'chat.bsky.group.getGroupPublicInfo',
23104
+ ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
23105
+ ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',
23106
+ ChatBskyGroupRemoveMembers: 'chat.bsky.group.removeMembers',
23107
+ ChatBskyGroupRequestJoin: 'chat.bsky.group.requestJoin',
21238
23108
  ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
21239
23109
  ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
23110
+ ChatBskyModerationSubscribeModEvents:
23111
+ 'chat.bsky.moderation.subscribeModEvents',
21240
23112
  ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
21241
23113
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
21242
23114
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',