@atproto/ozone 0.1.169 → 0.1.171

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 (189) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/lexicon/index.d.ts +39 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +89 -2
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +16113 -13071
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +1978 -281
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/lexicon/types/app/bsky/embed/images.d.ts +1 -0
  14. package/dist/lexicon/types/app/bsky/embed/images.d.ts.map +1 -1
  15. package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
  16. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +2 -0
  17. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  18. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  19. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +20 -0
  20. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
  21. package/dist/lexicon/types/chat/bsky/actor/defs.js +18 -0
  22. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
  23. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.d.ts +1 -0
  24. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.d.ts.map +1 -1
  25. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.js.map +1 -1
  26. package/dist/lexicon/types/chat/bsky/convo/addReaction.d.ts +1 -1
  27. package/dist/lexicon/types/chat/bsky/convo/addReaction.d.ts.map +1 -1
  28. package/dist/lexicon/types/chat/bsky/convo/addReaction.js.map +1 -1
  29. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +290 -3
  30. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  31. package/dist/lexicon/types/chat/bsky/convo/defs.js +288 -0
  32. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  33. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +1 -0
  34. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -1
  35. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -1
  36. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +1 -0
  37. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -1
  38. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -1
  39. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +1 -0
  40. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
  41. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
  42. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +1 -1
  43. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  44. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -1
  45. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +2 -1
  46. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  47. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -1
  48. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +1 -0
  49. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -1
  50. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -1
  51. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.d.ts +28 -0
  52. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  53. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.js +7 -0
  54. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
  55. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +3 -0
  56. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  57. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -1
  58. package/dist/lexicon/types/chat/bsky/convo/lockConvo.d.ts +26 -0
  59. package/dist/lexicon/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  60. package/dist/lexicon/types/chat/bsky/convo/lockConvo.js +7 -0
  61. package/dist/lexicon/types/chat/bsky/convo/lockConvo.js.map +1 -0
  62. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +1 -0
  63. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -1
  64. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -1
  65. package/dist/lexicon/types/chat/bsky/convo/removeReaction.d.ts +1 -1
  66. package/dist/lexicon/types/chat/bsky/convo/removeReaction.d.ts.map +1 -1
  67. package/dist/lexicon/types/chat/bsky/convo/removeReaction.js.map +1 -1
  68. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +1 -0
  69. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
  70. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -1
  71. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +1 -0
  72. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
  73. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
  74. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.d.ts +26 -0
  75. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  76. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.js +7 -0
  77. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.js.map +1 -0
  78. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +1 -0
  79. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -1
  80. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -1
  81. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +1 -0
  82. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -1
  83. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -1
  84. package/dist/lexicon/types/chat/bsky/group/addMembers.d.ts +27 -0
  85. package/dist/lexicon/types/chat/bsky/group/addMembers.d.ts.map +1 -0
  86. package/dist/lexicon/types/chat/bsky/group/addMembers.js +7 -0
  87. package/dist/lexicon/types/chat/bsky/group/addMembers.js.map +1 -0
  88. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.d.ts +27 -0
  89. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  90. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.js +7 -0
  91. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
  92. package/dist/lexicon/types/chat/bsky/group/createGroup.d.ts +27 -0
  93. package/dist/lexicon/types/chat/bsky/group/createGroup.d.ts.map +1 -0
  94. package/dist/lexicon/types/chat/bsky/group/createGroup.js +7 -0
  95. package/dist/lexicon/types/chat/bsky/group/createGroup.js.map +1 -0
  96. package/dist/lexicon/types/chat/bsky/group/createJoinLink.d.ts +28 -0
  97. package/dist/lexicon/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  98. package/dist/lexicon/types/chat/bsky/group/createJoinLink.js +7 -0
  99. package/dist/lexicon/types/chat/bsky/group/createJoinLink.js.map +1 -0
  100. package/dist/lexicon/types/chat/bsky/group/defs.d.ts +35 -0
  101. package/dist/lexicon/types/chat/bsky/group/defs.d.ts.map +1 -0
  102. package/dist/lexicon/types/chat/bsky/group/defs.js +34 -0
  103. package/dist/lexicon/types/chat/bsky/group/defs.js.map +1 -0
  104. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.d.ts +26 -0
  105. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  106. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.js +7 -0
  107. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.js.map +1 -0
  108. package/dist/lexicon/types/chat/bsky/group/editGroup.d.ts +27 -0
  109. package/dist/lexicon/types/chat/bsky/group/editGroup.d.ts.map +1 -0
  110. package/dist/lexicon/types/chat/bsky/group/editGroup.js +7 -0
  111. package/dist/lexicon/types/chat/bsky/group/editGroup.js.map +1 -0
  112. package/dist/lexicon/types/chat/bsky/group/editJoinLink.d.ts +28 -0
  113. package/dist/lexicon/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  114. package/dist/lexicon/types/chat/bsky/group/editJoinLink.js +7 -0
  115. package/dist/lexicon/types/chat/bsky/group/editJoinLink.js.map +1 -0
  116. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.d.ts +26 -0
  117. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  118. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.js +7 -0
  119. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.js.map +1 -0
  120. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.d.ts +23 -0
  121. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  122. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.js +7 -0
  123. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  124. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.d.ts +26 -0
  125. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  126. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.js +7 -0
  127. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.js.map +1 -0
  128. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.d.ts +25 -0
  129. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  130. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.js +7 -0
  131. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  132. package/dist/lexicon/types/chat/bsky/group/removeMembers.d.ts +27 -0
  133. package/dist/lexicon/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
  134. package/dist/lexicon/types/chat/bsky/group/removeMembers.js +7 -0
  135. package/dist/lexicon/types/chat/bsky/group/removeMembers.js.map +1 -0
  136. package/dist/lexicon/types/chat/bsky/group/requestJoin.d.ts +27 -0
  137. package/dist/lexicon/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
  138. package/dist/lexicon/types/chat/bsky/group/requestJoin.js +7 -0
  139. package/dist/lexicon/types/chat/bsky/group/requestJoin.js.map +1 -0
  140. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
  141. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  142. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  143. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.d.ts +29 -0
  144. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  145. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.js +16 -0
  146. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  147. package/package.json +7 -7
  148. package/src/lexicon/index.ts +230 -0
  149. package/src/lexicon/lexicons.ts +2071 -285
  150. package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
  151. package/src/lexicon/types/app/bsky/embed/images.ts +1 -0
  152. package/src/lexicon/types/chat/bsky/actor/declaration.ts +2 -0
  153. package/src/lexicon/types/chat/bsky/actor/defs.ts +39 -0
  154. package/src/lexicon/types/chat/bsky/convo/acceptConvo.ts +1 -0
  155. package/src/lexicon/types/chat/bsky/convo/addReaction.ts +2 -0
  156. package/src/lexicon/types/chat/bsky/convo/defs.ts +651 -2
  157. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +1 -0
  158. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +1 -0
  159. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +6 -0
  160. package/src/lexicon/types/chat/bsky/convo/getLog.ts +17 -0
  161. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +2 -0
  162. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +1 -0
  163. package/src/lexicon/types/chat/bsky/convo/listConvoRequests.ts +47 -0
  164. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +3 -0
  165. package/src/lexicon/types/chat/bsky/convo/lockConvo.ts +45 -0
  166. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +1 -0
  167. package/src/lexicon/types/chat/bsky/convo/removeReaction.ts +5 -1
  168. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +1 -0
  169. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +1 -0
  170. package/src/lexicon/types/chat/bsky/convo/unlockConvo.ts +45 -0
  171. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +1 -0
  172. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +1 -0
  173. package/src/lexicon/types/chat/bsky/group/addMembers.ts +55 -0
  174. package/src/lexicon/types/chat/bsky/group/approveJoinRequest.ts +46 -0
  175. package/src/lexicon/types/chat/bsky/group/createGroup.ts +51 -0
  176. package/src/lexicon/types/chat/bsky/group/createJoinLink.ts +47 -0
  177. package/src/lexicon/types/chat/bsky/group/defs.ts +73 -0
  178. package/src/lexicon/types/chat/bsky/group/disableJoinLink.ts +45 -0
  179. package/src/lexicon/types/chat/bsky/group/editGroup.ts +46 -0
  180. package/src/lexicon/types/chat/bsky/group/editJoinLink.ts +47 -0
  181. package/src/lexicon/types/chat/bsky/group/enableJoinLink.ts +49 -0
  182. package/src/lexicon/types/chat/bsky/group/getGroupPublicInfo.ts +41 -0
  183. package/src/lexicon/types/chat/bsky/group/listJoinRequests.ts +44 -0
  184. package/src/lexicon/types/chat/bsky/group/rejectJoinRequest.ts +43 -0
  185. package/src/lexicon/types/chat/bsky/group/removeMembers.ts +46 -0
  186. package/src/lexicon/types/chat/bsky/group/requestJoin.ts +52 -0
  187. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +1 -0
  188. package/src/lexicon/types/chat/bsky/moderation/subscribeModEvents.ts +47 -0
  189. package/tsconfig.build.tsbuildinfo +1 -1
@@ -871,6 +871,13 @@ export const schemaDict = {
871
871
  description: 'An optional embed associated with the status.',
872
872
  refs: ['lex:app.bsky.embed.external#view'],
873
873
  },
874
+ labels: {
875
+ type: 'array',
876
+ items: {
877
+ type: 'ref',
878
+ ref: 'lex:com.atproto.label.defs#label',
879
+ },
880
+ },
874
881
  expiresAt: {
875
882
  type: 'string',
876
883
  description:
@@ -2758,8 +2765,10 @@ export const schemaDict = {
2758
2765
  properties: {
2759
2766
  image: {
2760
2767
  type: 'blob',
2768
+ description:
2769
+ 'The raw image file. May be up to 2 MB, formerly limited to 1 MB.',
2761
2770
  accept: ['image/*'],
2762
- maxSize: 1000000,
2771
+ maxSize: 2000000,
2763
2772
  },
2764
2773
  alt: {
2765
2774
  type: 'string',
@@ -9651,6 +9660,12 @@ export const schemaDict = {
9651
9660
  type: 'string',
9652
9661
  knownValues: ['all', 'none', 'following'],
9653
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
+ },
9654
9669
  },
9655
9670
  },
9656
9671
  },
@@ -9660,6 +9675,10 @@ export const schemaDict = {
9660
9675
  lexicon: 1,
9661
9676
  id: 'chat.bsky.actor.defs',
9662
9677
  defs: {
9678
+ memberRole: {
9679
+ type: 'string',
9680
+ knownValues: ['owner', 'standard'],
9681
+ },
9663
9682
  profileViewBasic: {
9664
9683
  type: 'object',
9665
9684
  required: ['did', 'handle'],
@@ -9696,6 +9715,10 @@ export const schemaDict = {
9696
9715
  ref: 'lex:com.atproto.label.defs#label',
9697
9716
  },
9698
9717
  },
9718
+ createdAt: {
9719
+ type: 'string',
9720
+ format: 'datetime',
9721
+ },
9699
9722
  chatDisabled: {
9700
9723
  type: 'boolean',
9701
9724
  description:
@@ -9705,6 +9728,41 @@ export const schemaDict = {
9705
9728
  type: 'ref',
9706
9729
  ref: 'lex:app.bsky.actor.defs#verificationState',
9707
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
+ },
9708
9766
  },
9709
9767
  },
9710
9768
  },
@@ -9743,6 +9801,13 @@ export const schemaDict = {
9743
9801
  defs: {
9744
9802
  main: {
9745
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
+ ],
9746
9811
  input: {
9747
9812
  encoding: 'application/json',
9748
9813
  schema: {
@@ -9815,6 +9880,14 @@ export const schemaDict = {
9815
9880
  },
9816
9881
  },
9817
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
+ },
9818
9891
  {
9819
9892
  name: 'ReactionMessageDeleted',
9820
9893
  description:
@@ -9838,6 +9911,18 @@ export const schemaDict = {
9838
9911
  lexicon: 1,
9839
9912
  id: 'chat.bsky.convo.defs',
9840
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
+ },
9841
9926
  messageRef: {
9842
9927
  type: 'object',
9843
9928
  required: ['did', 'messageId', 'convoId'],
@@ -9923,6 +10008,197 @@ export const schemaDict = {
9923
10008
  },
9924
10009
  },
9925
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
+ },
9926
10202
  deletedMessageView: {
9927
10203
  type: 'object',
9928
10204
  required: ['id', 'rev', 'sender', 'sentAt'],
@@ -10016,6 +10292,7 @@ export const schemaDict = {
10016
10292
  refs: [
10017
10293
  'lex:chat.bsky.convo.defs#messageView',
10018
10294
  'lex:chat.bsky.convo.defs#deletedMessageView',
10295
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10019
10296
  ],
10020
10297
  },
10021
10298
  lastReaction: {
@@ -10026,15 +10303,57 @@ export const schemaDict = {
10026
10303
  type: 'boolean',
10027
10304
  },
10028
10305
  status: {
10029
- type: 'string',
10030
- 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',
10031
10310
  },
10032
10311
  unreadCount: {
10033
10312
  type: 'integer',
10034
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
+ },
10035
10352
  },
10036
10353
  },
10037
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.',
10038
10357
  type: 'object',
10039
10358
  required: ['rev', 'convoId'],
10040
10359
  properties: {
@@ -10047,6 +10366,8 @@ export const schemaDict = {
10047
10366
  },
10048
10367
  },
10049
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.',
10050
10371
  type: 'object',
10051
10372
  required: ['rev', 'convoId'],
10052
10373
  properties: {
@@ -10059,6 +10380,8 @@ export const schemaDict = {
10059
10380
  },
10060
10381
  },
10061
10382
  logLeaveConvo: {
10383
+ description:
10384
+ 'Event indicating the viewer left a convo. Can be direct or group.',
10062
10385
  type: 'object',
10063
10386
  required: ['rev', 'convoId'],
10064
10387
  properties: {
@@ -10071,6 +10394,8 @@ export const schemaDict = {
10071
10394
  },
10072
10395
  },
10073
10396
  logMuteConvo: {
10397
+ description:
10398
+ 'Event indicating the viewer muted a convo. Can be direct or group.',
10074
10399
  type: 'object',
10075
10400
  required: ['rev', 'convoId'],
10076
10401
  properties: {
@@ -10083,6 +10408,8 @@ export const schemaDict = {
10083
10408
  },
10084
10409
  },
10085
10410
  logUnmuteConvo: {
10411
+ description:
10412
+ 'Event indicating the viewer unmuted a convo. Can be direct or group.',
10086
10413
  type: 'object',
10087
10414
  required: ['rev', 'convoId'],
10088
10415
  properties: {
@@ -10095,6 +10422,8 @@ export const schemaDict = {
10095
10422
  },
10096
10423
  },
10097
10424
  logCreateMessage: {
10425
+ description:
10426
+ 'Event indicating a user-originated message was created. Is not emitted for system messages.',
10098
10427
  type: 'object',
10099
10428
  required: ['rev', 'convoId', 'message'],
10100
10429
  properties: {
@@ -10114,6 +10443,8 @@ export const schemaDict = {
10114
10443
  },
10115
10444
  },
10116
10445
  logDeleteMessage: {
10446
+ description:
10447
+ 'Event indicating a user-originated message was deleted. Is not emitted for system messages.',
10117
10448
  type: 'object',
10118
10449
  required: ['rev', 'convoId', 'message'],
10119
10450
  properties: {
@@ -10133,6 +10464,8 @@ export const schemaDict = {
10133
10464
  },
10134
10465
  },
10135
10466
  logReadMessage: {
10467
+ description:
10468
+ 'DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message.',
10136
10469
  type: 'object',
10137
10470
  required: ['rev', 'convoId', 'message'],
10138
10471
  properties: {
@@ -10147,11 +10480,13 @@ export const schemaDict = {
10147
10480
  refs: [
10148
10481
  'lex:chat.bsky.convo.defs#messageView',
10149
10482
  'lex:chat.bsky.convo.defs#deletedMessageView',
10483
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10150
10484
  ],
10151
10485
  },
10152
10486
  },
10153
10487
  },
10154
10488
  logAddReaction: {
10489
+ description: 'Event indicating a reaction was added to a message.',
10155
10490
  type: 'object',
10156
10491
  required: ['rev', 'convoId', 'message', 'reaction'],
10157
10492
  properties: {
@@ -10175,6 +10510,7 @@ export const schemaDict = {
10175
10510
  },
10176
10511
  },
10177
10512
  logRemoveReaction: {
10513
+ description: 'Event indicating a reaction was removed from a message.',
10178
10514
  type: 'object',
10179
10515
  required: ['rev', 'convoId', 'message', 'reaction'],
10180
10516
  properties: {
@@ -10197,51 +10533,1095 @@ export const schemaDict = {
10197
10533
  },
10198
10534
  },
10199
10535
  },
10200
- },
10201
- },
10202
- ChatBskyConvoDeleteMessageForSelf: {
10203
- lexicon: 1,
10204
- id: 'chat.bsky.convo.deleteMessageForSelf',
10205
- defs: {
10206
- main: {
10207
- type: 'procedure',
10208
- input: {
10209
- encoding: 'application/json',
10210
- schema: {
10211
- type: 'object',
10212
- required: ['convoId', 'messageId'],
10213
- properties: {
10214
- convoId: {
10215
- type: 'string',
10216
- },
10217
- messageId: {
10218
- type: 'string',
10219
- },
10220
- },
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
+ ],
10221
10555
  },
10222
10556
  },
10223
- output: {
10224
- encoding: 'application/json',
10225
- 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: {
10226
10571
  type: 'ref',
10227
- ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10572
+ ref: 'lex:chat.bsky.convo.defs#systemMessageDataAddMember',
10228
10573
  },
10229
10574
  },
10230
10575
  },
10231
- },
10232
- },
10233
- ChatBskyConvoGetConvo: {
10234
- lexicon: 1,
10235
- id: 'chat.bsky.convo.getConvo',
10236
- defs: {
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
+ },
11585
+ },
11586
+ },
11587
+ output: {
11588
+ encoding: 'application/json',
11589
+ schema: {
11590
+ type: 'object',
11591
+ required: ['convo'],
11592
+ properties: {
11593
+ convo: {
11594
+ type: 'ref',
11595
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11596
+ },
11597
+ },
11598
+ },
11599
+ },
11600
+ },
11601
+ },
11602
+ },
11603
+ ChatBskyConvoUnmuteConvo: {
11604
+ lexicon: 1,
11605
+ id: 'chat.bsky.convo.unmuteConvo',
11606
+ defs: {
10237
11607
  main: {
10238
- type: 'query',
10239
- parameters: {
10240
- type: 'params',
10241
- required: ['convoId'],
10242
- properties: {
10243
- convoId: {
10244
- type: 'string',
11608
+ type: 'procedure',
11609
+ description:
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: {
11623
+ type: 'string',
11624
+ },
10245
11625
  },
10246
11626
  },
10247
11627
  },
@@ -10261,25 +11641,22 @@ export const schemaDict = {
10261
11641
  },
10262
11642
  },
10263
11643
  },
10264
- ChatBskyConvoGetConvoAvailability: {
11644
+ ChatBskyConvoUpdateAllRead: {
10265
11645
  lexicon: 1,
10266
- id: 'chat.bsky.convo.getConvoAvailability',
11646
+ id: 'chat.bsky.convo.updateAllRead',
10267
11647
  defs: {
10268
11648
  main: {
10269
- type: 'query',
11649
+ type: 'procedure',
10270
11650
  description:
10271
- 'Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.',
10272
- parameters: {
10273
- type: 'params',
10274
- required: ['members'],
10275
- properties: {
10276
- members: {
10277
- type: 'array',
10278
- minLength: 1,
10279
- maxLength: 10,
10280
- items: {
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: {
10281
11658
  type: 'string',
10282
- format: 'did',
11659
+ knownValues: ['request', 'accepted'],
10283
11660
  },
10284
11661
  },
10285
11662
  },
@@ -10288,11 +11665,125 @@ export const schemaDict = {
10288
11665
  encoding: 'application/json',
10289
11666
  schema: {
10290
11667
  type: 'object',
10291
- required: ['canChat'],
11668
+ required: ['updatedCount'],
10292
11669
  properties: {
10293
- canChat: {
10294
- type: 'boolean',
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,
10295
11777
  },
11778
+ },
11779
+ },
11780
+ },
11781
+ output: {
11782
+ encoding: 'application/json',
11783
+ schema: {
11784
+ type: 'object',
11785
+ required: ['convo'],
11786
+ properties: {
10296
11787
  convo: {
10297
11788
  type: 'ref',
10298
11789
  ref: 'lex:chat.bsky.convo.defs#convoView',
@@ -10303,21 +11794,35 @@ export const schemaDict = {
10303
11794
  },
10304
11795
  },
10305
11796
  },
10306
- ChatBskyConvoGetConvoForMembers: {
11797
+ ChatBskyGroupApproveJoinRequest: {
10307
11798
  lexicon: 1,
10308
- id: 'chat.bsky.convo.getConvoForMembers',
11799
+ id: 'chat.bsky.group.approveJoinRequest',
10309
11800
  defs: {
10310
11801
  main: {
10311
- type: 'query',
10312
- parameters: {
10313
- type: 'params',
10314
- required: ['members'],
10315
- properties: {
10316
- members: {
10317
- type: 'array',
10318
- minLength: 1,
10319
- maxLength: 10,
10320
- 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: {
10321
11826
  type: 'string',
10322
11827
  format: 'did',
10323
11828
  },
@@ -10340,18 +11845,51 @@ export const schemaDict = {
10340
11845
  },
10341
11846
  },
10342
11847
  },
10343
- ChatBskyConvoGetLog: {
11848
+ ChatBskyGroupCreateGroup: {
10344
11849
  lexicon: 1,
10345
- id: 'chat.bsky.convo.getLog',
11850
+ id: 'chat.bsky.group.createGroup',
10346
11851
  defs: {
10347
11852
  main: {
10348
- type: 'query',
10349
- parameters: {
10350
- type: 'params',
10351
- required: [],
10352
- properties: {
10353
- cursor: {
10354
- 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
+ },
10355
11893
  },
10356
11894
  },
10357
11895
  },
@@ -10359,28 +11897,11 @@ export const schemaDict = {
10359
11897
  encoding: 'application/json',
10360
11898
  schema: {
10361
11899
  type: 'object',
10362
- required: ['logs'],
11900
+ required: ['convo'],
10363
11901
  properties: {
10364
- cursor: {
10365
- type: 'string',
10366
- },
10367
- logs: {
10368
- type: 'array',
10369
- items: {
10370
- type: 'union',
10371
- refs: [
10372
- 'lex:chat.bsky.convo.defs#logBeginConvo',
10373
- 'lex:chat.bsky.convo.defs#logAcceptConvo',
10374
- 'lex:chat.bsky.convo.defs#logLeaveConvo',
10375
- 'lex:chat.bsky.convo.defs#logMuteConvo',
10376
- 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10377
- 'lex:chat.bsky.convo.defs#logCreateMessage',
10378
- 'lex:chat.bsky.convo.defs#logDeleteMessage',
10379
- 'lex:chat.bsky.convo.defs#logReadMessage',
10380
- 'lex:chat.bsky.convo.defs#logAddReaction',
10381
- 'lex:chat.bsky.convo.defs#logRemoveReaction',
10382
- ],
10383
- },
11902
+ convo: {
11903
+ type: 'ref',
11904
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10384
11905
  },
10385
11906
  },
10386
11907
  },
@@ -10388,27 +11909,42 @@ export const schemaDict = {
10388
11909
  },
10389
11910
  },
10390
11911
  },
10391
- ChatBskyConvoGetMessages: {
11912
+ ChatBskyGroupCreateJoinLink: {
10392
11913
  lexicon: 1,
10393
- id: 'chat.bsky.convo.getMessages',
11914
+ id: 'chat.bsky.group.createJoinLink',
10394
11915
  defs: {
10395
11916
  main: {
10396
- type: 'query',
10397
- parameters: {
10398
- type: 'params',
10399
- required: ['convoId'],
10400
- properties: {
10401
- convoId: {
10402
- type: 'string',
10403
- },
10404
- limit: {
10405
- type: 'integer',
10406
- minimum: 1,
10407
- maximum: 100,
10408
- default: 50,
10409
- },
10410
- cursor: {
10411
- 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
+ },
10412
11948
  },
10413
11949
  },
10414
11950
  },
@@ -10416,20 +11952,11 @@ export const schemaDict = {
10416
11952
  encoding: 'application/json',
10417
11953
  schema: {
10418
11954
  type: 'object',
10419
- required: ['messages'],
11955
+ required: ['joinLink'],
10420
11956
  properties: {
10421
- cursor: {
10422
- type: 'string',
10423
- },
10424
- messages: {
10425
- type: 'array',
10426
- items: {
10427
- type: 'union',
10428
- refs: [
10429
- 'lex:chat.bsky.convo.defs#messageView',
10430
- 'lex:chat.bsky.convo.defs#deletedMessageView',
10431
- ],
10432
- },
11957
+ joinLink: {
11958
+ type: 'ref',
11959
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10433
11960
  },
10434
11961
  },
10435
11962
  },
@@ -10437,12 +11964,107 @@ export const schemaDict = {
10437
11964
  },
10438
11965
  },
10439
11966
  },
10440
- ChatBskyConvoLeaveConvo: {
11967
+ ChatBskyGroupDefs: {
10441
11968
  lexicon: 1,
10442
- 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',
10443
12052
  defs: {
10444
12053
  main: {
10445
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
+ ],
10446
12068
  input: {
10447
12069
  encoding: 'application/json',
10448
12070
  schema: {
@@ -10459,13 +12081,11 @@ export const schemaDict = {
10459
12081
  encoding: 'application/json',
10460
12082
  schema: {
10461
12083
  type: 'object',
10462
- required: ['convoId', 'rev'],
12084
+ required: ['joinLink'],
10463
12085
  properties: {
10464
- convoId: {
10465
- type: 'string',
10466
- },
10467
- rev: {
10468
- type: 'string',
12086
+ joinLink: {
12087
+ type: 'ref',
12088
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10469
12089
  },
10470
12090
  },
10471
12091
  },
@@ -10473,31 +12093,40 @@ export const schemaDict = {
10473
12093
  },
10474
12094
  },
10475
12095
  },
10476
- ChatBskyConvoListConvos: {
12096
+ ChatBskyGroupEditGroup: {
10477
12097
  lexicon: 1,
10478
- id: 'chat.bsky.convo.listConvos',
12098
+ id: 'chat.bsky.group.editGroup',
10479
12099
  defs: {
10480
12100
  main: {
10481
- type: 'query',
10482
- parameters: {
10483
- type: 'params',
10484
- properties: {
10485
- limit: {
10486
- type: 'integer',
10487
- minimum: 1,
10488
- maximum: 100,
10489
- default: 50,
10490
- },
10491
- cursor: {
10492
- type: 'string',
10493
- },
10494
- readState: {
10495
- type: 'string',
10496
- knownValues: ['unread'],
10497
- },
10498
- status: {
10499
- type: 'string',
10500
- 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
+ },
10501
12130
  },
10502
12131
  },
10503
12132
  },
@@ -10505,17 +12134,11 @@ export const schemaDict = {
10505
12134
  encoding: 'application/json',
10506
12135
  schema: {
10507
12136
  type: 'object',
10508
- required: ['convos'],
12137
+ required: ['convo'],
10509
12138
  properties: {
10510
- cursor: {
10511
- type: 'string',
10512
- },
10513
- convos: {
10514
- type: 'array',
10515
- items: {
10516
- type: 'ref',
10517
- ref: 'lex:chat.bsky.convo.defs#convoView',
10518
- },
12139
+ convo: {
12140
+ type: 'ref',
12141
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10519
12142
  },
10520
12143
  },
10521
12144
  },
@@ -10523,12 +12146,25 @@ export const schemaDict = {
10523
12146
  },
10524
12147
  },
10525
12148
  },
10526
- ChatBskyConvoMuteConvo: {
12149
+ ChatBskyGroupEditJoinLink: {
10527
12150
  lexicon: 1,
10528
- id: 'chat.bsky.convo.muteConvo',
12151
+ id: 'chat.bsky.group.editJoinLink',
10529
12152
  defs: {
10530
12153
  main: {
10531
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
+ ],
10532
12168
  input: {
10533
12169
  encoding: 'application/json',
10534
12170
  schema: {
@@ -10538,6 +12174,13 @@ export const schemaDict = {
10538
12174
  convoId: {
10539
12175
  type: 'string',
10540
12176
  },
12177
+ requireApproval: {
12178
+ type: 'boolean',
12179
+ },
12180
+ joinRule: {
12181
+ type: 'ref',
12182
+ ref: 'lex:chat.bsky.group.defs#joinRule',
12183
+ },
10541
12184
  },
10542
12185
  },
10543
12186
  },
@@ -10545,11 +12188,11 @@ export const schemaDict = {
10545
12188
  encoding: 'application/json',
10546
12189
  schema: {
10547
12190
  type: 'object',
10548
- required: ['convo'],
12191
+ required: ['joinLink'],
10549
12192
  properties: {
10550
- convo: {
12193
+ joinLink: {
10551
12194
  type: 'ref',
10552
- ref: 'lex:chat.bsky.convo.defs#convoView',
12195
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10553
12196
  },
10554
12197
  },
10555
12198
  },
@@ -10557,32 +12200,36 @@ export const schemaDict = {
10557
12200
  },
10558
12201
  },
10559
12202
  },
10560
- ChatBskyConvoRemoveReaction: {
12203
+ ChatBskyGroupEnableJoinLink: {
10561
12204
  lexicon: 1,
10562
- id: 'chat.bsky.convo.removeReaction',
12205
+ id: 'chat.bsky.group.enableJoinLink',
10563
12206
  defs: {
10564
12207
  main: {
10565
12208
  type: 'procedure',
10566
12209
  description:
10567
- "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
+ ],
10568
12225
  input: {
10569
12226
  encoding: 'application/json',
10570
- schema: {
10571
- type: 'object',
10572
- required: ['convoId', 'messageId', 'value'],
10573
- properties: {
10574
- convoId: {
10575
- type: 'string',
10576
- },
10577
- messageId: {
10578
- type: 'string',
10579
- },
10580
- value: {
12227
+ schema: {
12228
+ type: 'object',
12229
+ required: ['convoId'],
12230
+ properties: {
12231
+ convoId: {
10581
12232
  type: 'string',
10582
- minLength: 1,
10583
- maxLength: 64,
10584
- minGraphemes: 1,
10585
- maxGraphemes: 1,
10586
12233
  },
10587
12234
  },
10588
12235
  },
@@ -10591,82 +12238,87 @@ export const schemaDict = {
10591
12238
  encoding: 'application/json',
10592
12239
  schema: {
10593
12240
  type: 'object',
10594
- required: ['message'],
12241
+ required: ['joinLink'],
10595
12242
  properties: {
10596
- message: {
12243
+ joinLink: {
10597
12244
  type: 'ref',
10598
- ref: 'lex:chat.bsky.convo.defs#messageView',
12245
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10599
12246
  },
10600
12247
  },
10601
12248
  },
10602
12249
  },
10603
- errors: [
10604
- {
10605
- name: 'ReactionMessageDeleted',
10606
- description:
10607
- 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
10608
- },
10609
- {
10610
- name: 'ReactionInvalidValue',
10611
- description:
10612
- 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
10613
- },
10614
- ],
10615
12250
  },
10616
12251
  },
10617
12252
  },
10618
- ChatBskyConvoSendMessage: {
12253
+ ChatBskyGroupGetGroupPublicInfo: {
10619
12254
  lexicon: 1,
10620
- id: 'chat.bsky.convo.sendMessage',
12255
+ id: 'chat.bsky.group.getGroupPublicInfo',
10621
12256
  defs: {
10622
12257
  main: {
10623
- type: 'procedure',
10624
- 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: {
10625
12276
  encoding: 'application/json',
10626
12277
  schema: {
10627
12278
  type: 'object',
10628
- required: ['convoId', 'message'],
12279
+ required: ['group'],
10629
12280
  properties: {
10630
- convoId: {
10631
- type: 'string',
10632
- },
10633
- message: {
12281
+ group: {
10634
12282
  type: 'ref',
10635
- ref: 'lex:chat.bsky.convo.defs#messageInput',
12283
+ ref: 'lex:chat.bsky.group.defs#groupPublicView',
10636
12284
  },
10637
12285
  },
10638
12286
  },
10639
12287
  },
10640
- output: {
10641
- encoding: 'application/json',
10642
- schema: {
10643
- type: 'ref',
10644
- ref: 'lex:chat.bsky.convo.defs#messageView',
10645
- },
10646
- },
10647
12288
  },
10648
12289
  },
10649
12290
  },
10650
- ChatBskyConvoSendMessageBatch: {
12291
+ ChatBskyGroupListJoinRequests: {
10651
12292
  lexicon: 1,
10652
- id: 'chat.bsky.convo.sendMessageBatch',
12293
+ id: 'chat.bsky.group.listJoinRequests',
10653
12294
  defs: {
10654
12295
  main: {
10655
- type: 'procedure',
10656
- input: {
10657
- encoding: 'application/json',
10658
- schema: {
10659
- type: 'object',
10660
- required: ['items'],
10661
- properties: {
10662
- items: {
10663
- type: 'array',
10664
- maxLength: 100,
10665
- items: {
10666
- type: 'ref',
10667
- ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
10668
- },
10669
- },
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',
10670
12322
  },
10671
12323
  },
10672
12324
  },
@@ -10674,49 +12326,53 @@ export const schemaDict = {
10674
12326
  encoding: 'application/json',
10675
12327
  schema: {
10676
12328
  type: 'object',
10677
- required: ['items'],
12329
+ required: ['requests'],
10678
12330
  properties: {
10679
- items: {
12331
+ cursor: {
12332
+ type: 'string',
12333
+ },
12334
+ requests: {
10680
12335
  type: 'array',
10681
12336
  items: {
10682
12337
  type: 'ref',
10683
- ref: 'lex:chat.bsky.convo.defs#messageView',
12338
+ ref: 'lex:chat.bsky.group.defs#joinRequestView',
10684
12339
  },
10685
12340
  },
10686
12341
  },
10687
12342
  },
10688
12343
  },
10689
12344
  },
10690
- batchItem: {
10691
- type: 'object',
10692
- required: ['convoId', 'message'],
10693
- properties: {
10694
- convoId: {
10695
- type: 'string',
10696
- },
10697
- message: {
10698
- type: 'ref',
10699
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10700
- },
10701
- },
10702
- },
10703
12345
  },
10704
12346
  },
10705
- ChatBskyConvoUnmuteConvo: {
12347
+ ChatBskyGroupRejectJoinRequest: {
10706
12348
  lexicon: 1,
10707
- id: 'chat.bsky.convo.unmuteConvo',
12349
+ id: 'chat.bsky.group.rejectJoinRequest',
10708
12350
  defs: {
10709
12351
  main: {
10710
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
+ ],
10711
12363
  input: {
10712
12364
  encoding: 'application/json',
10713
12365
  schema: {
10714
12366
  type: 'object',
10715
- required: ['convoId'],
12367
+ required: ['convoId', 'member'],
10716
12368
  properties: {
10717
12369
  convoId: {
10718
12370
  type: 'string',
10719
12371
  },
12372
+ member: {
12373
+ type: 'string',
12374
+ format: 'did',
12375
+ },
10720
12376
  },
10721
12377
  },
10722
12378
  },
@@ -10724,32 +12380,45 @@ export const schemaDict = {
10724
12380
  encoding: 'application/json',
10725
12381
  schema: {
10726
12382
  type: 'object',
10727
- required: ['convo'],
10728
- properties: {
10729
- convo: {
10730
- type: 'ref',
10731
- ref: 'lex:chat.bsky.convo.defs#convoView',
10732
- },
10733
- },
12383
+ required: [],
12384
+ properties: {},
10734
12385
  },
10735
12386
  },
10736
12387
  },
10737
12388
  },
10738
12389
  },
10739
- ChatBskyConvoUpdateAllRead: {
12390
+ ChatBskyGroupRemoveMembers: {
10740
12391
  lexicon: 1,
10741
- id: 'chat.bsky.convo.updateAllRead',
12392
+ id: 'chat.bsky.group.removeMembers',
10742
12393
  defs: {
10743
12394
  main: {
10744
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
+ ],
10745
12406
  input: {
10746
12407
  encoding: 'application/json',
10747
12408
  schema: {
10748
12409
  type: 'object',
12410
+ required: ['convoId', 'members'],
10749
12411
  properties: {
10750
- status: {
12412
+ convoId: {
10751
12413
  type: 'string',
10752
- knownValues: ['request', 'accepted'],
12414
+ },
12415
+ members: {
12416
+ type: 'array',
12417
+ items: {
12418
+ type: 'string',
12419
+ format: 'did',
12420
+ },
12421
+ minLength: 1,
10753
12422
  },
10754
12423
  },
10755
12424
  },
@@ -10758,11 +12427,11 @@ export const schemaDict = {
10758
12427
  encoding: 'application/json',
10759
12428
  schema: {
10760
12429
  type: 'object',
10761
- required: ['updatedCount'],
12430
+ required: ['convo'],
10762
12431
  properties: {
10763
- updatedCount: {
10764
- description: 'The count of updated convos.',
10765
- type: 'integer',
12432
+ convo: {
12433
+ type: 'ref',
12434
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10766
12435
  },
10767
12436
  },
10768
12437
  },
@@ -10770,22 +12439,41 @@ export const schemaDict = {
10770
12439
  },
10771
12440
  },
10772
12441
  },
10773
- ChatBskyConvoUpdateRead: {
12442
+ ChatBskyGroupRequestJoin: {
10774
12443
  lexicon: 1,
10775
- id: 'chat.bsky.convo.updateRead',
12444
+ id: 'chat.bsky.group.requestJoin',
10776
12445
  defs: {
10777
12446
  main: {
10778
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
+ ],
10779
12470
  input: {
10780
12471
  encoding: 'application/json',
10781
12472
  schema: {
10782
12473
  type: 'object',
10783
- required: ['convoId'],
12474
+ required: ['code'],
10784
12475
  properties: {
10785
- convoId: {
10786
- type: 'string',
10787
- },
10788
- messageId: {
12476
+ code: {
10789
12477
  type: 'string',
10790
12478
  },
10791
12479
  },
@@ -10795,9 +12483,15 @@ export const schemaDict = {
10795
12483
  encoding: 'application/json',
10796
12484
  schema: {
10797
12485
  type: 'object',
10798
- required: ['convo'],
12486
+ required: ['status'],
10799
12487
  properties: {
12488
+ status: {
12489
+ type: 'string',
12490
+ knownValues: ['joined', 'pending'],
12491
+ },
10800
12492
  convo: {
12493
+ description:
12494
+ 'The group convo joined. This is only present in the case of status=joined',
10801
12495
  type: 'ref',
10802
12496
  ref: 'lex:chat.bsky.convo.defs#convoView',
10803
12497
  },
@@ -10911,6 +12605,7 @@ export const schemaDict = {
10911
12605
  refs: [
10912
12606
  'lex:chat.bsky.convo.defs#messageView',
10913
12607
  'lex:chat.bsky.convo.defs#deletedMessageView',
12608
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10914
12609
  ],
10915
12610
  },
10916
12611
  },
@@ -10920,6 +12615,78 @@ export const schemaDict = {
10920
12615
  },
10921
12616
  },
10922
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
+ },
10923
12690
  ChatBskyModerationUpdateActorAccess: {
10924
12691
  lexicon: 1,
10925
12692
  id: 'chat.bsky.moderation.updateActorAccess',
@@ -21149,16 +22916,35 @@ export const ids = {
21149
22916
  ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
21150
22917
  ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
21151
22918
  ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
22919
+ ChatBskyConvoListConvoRequests: 'chat.bsky.convo.listConvoRequests',
21152
22920
  ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
22921
+ ChatBskyConvoLockConvo: 'chat.bsky.convo.lockConvo',
21153
22922
  ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
21154
22923
  ChatBskyConvoRemoveReaction: 'chat.bsky.convo.removeReaction',
21155
22924
  ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
21156
22925
  ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
22926
+ ChatBskyConvoUnlockConvo: 'chat.bsky.convo.unlockConvo',
21157
22927
  ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
21158
22928
  ChatBskyConvoUpdateAllRead: 'chat.bsky.convo.updateAllRead',
21159
22929
  ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
22930
+ ChatBskyGroupAddMembers: 'chat.bsky.group.addMembers',
22931
+ ChatBskyGroupApproveJoinRequest: 'chat.bsky.group.approveJoinRequest',
22932
+ ChatBskyGroupCreateGroup: 'chat.bsky.group.createGroup',
22933
+ ChatBskyGroupCreateJoinLink: 'chat.bsky.group.createJoinLink',
22934
+ ChatBskyGroupDefs: 'chat.bsky.group.defs',
22935
+ ChatBskyGroupDisableJoinLink: 'chat.bsky.group.disableJoinLink',
22936
+ ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
22937
+ ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
22938
+ ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
22939
+ ChatBskyGroupGetGroupPublicInfo: 'chat.bsky.group.getGroupPublicInfo',
22940
+ ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
22941
+ ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',
22942
+ ChatBskyGroupRemoveMembers: 'chat.bsky.group.removeMembers',
22943
+ ChatBskyGroupRequestJoin: 'chat.bsky.group.requestJoin',
21160
22944
  ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
21161
22945
  ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
22946
+ ChatBskyModerationSubscribeModEvents:
22947
+ 'chat.bsky.moderation.subscribeModEvents',
21162
22948
  ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
21163
22949
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
21164
22950
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',