@atproto/api 0.19.8 → 0.19.9

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