@atproto/api 0.19.8 → 0.19.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/client/index.d.ts +58 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +241 -16
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +7241 -4059
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +2053 -283
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/client/types/app/bsky/embed/images.d.ts +1 -1
  14. package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/embed/images.js.map +1 -1
  16. package/dist/client/types/chat/bsky/actor/declaration.d.ts +2 -0
  17. package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -1
  19. package/dist/client/types/chat/bsky/actor/defs.d.ts +20 -0
  20. package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
  21. package/dist/client/types/chat/bsky/actor/defs.js +18 -0
  22. package/dist/client/types/chat/bsky/actor/defs.js.map +1 -1
  23. package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts +4 -1
  24. package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts.map +1 -1
  25. package/dist/client/types/chat/bsky/convo/acceptConvo.js +15 -0
  26. package/dist/client/types/chat/bsky/convo/acceptConvo.js.map +1 -1
  27. package/dist/client/types/chat/bsky/convo/addReaction.d.ts +6 -0
  28. package/dist/client/types/chat/bsky/convo/addReaction.d.ts.map +1 -1
  29. package/dist/client/types/chat/bsky/convo/addReaction.js +17 -1
  30. package/dist/client/types/chat/bsky/convo/addReaction.js.map +1 -1
  31. package/dist/client/types/chat/bsky/convo/defs.d.ts +293 -3
  32. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  33. package/dist/client/types/chat/bsky/convo/defs.js +288 -0
  34. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  35. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts +7 -1
  36. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -1
  37. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js +23 -0
  38. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -1
  39. package/dist/client/types/chat/bsky/convo/getConvo.d.ts +4 -1
  40. package/dist/client/types/chat/bsky/convo/getConvo.d.ts.map +1 -1
  41. package/dist/client/types/chat/bsky/convo/getConvo.js +15 -0
  42. package/dist/client/types/chat/bsky/convo/getConvo.js.map +1 -1
  43. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts +16 -1
  44. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
  45. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js +47 -0
  46. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
  47. package/dist/client/types/chat/bsky/convo/getConvoMembers.d.ts +29 -0
  48. package/dist/client/types/chat/bsky/convo/getConvoMembers.d.ts.map +1 -0
  49. package/dist/client/types/chat/bsky/convo/getConvoMembers.js +26 -0
  50. package/dist/client/types/chat/bsky/convo/getConvoMembers.js.map +1 -0
  51. package/dist/client/types/chat/bsky/convo/getLog.d.ts +1 -1
  52. package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  53. package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -1
  54. package/dist/client/types/chat/bsky/convo/getMessages.d.ts +5 -2
  55. package/dist/client/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  56. package/dist/client/types/chat/bsky/convo/getMessages.js +15 -0
  57. package/dist/client/types/chat/bsky/convo/getMessages.js.map +1 -1
  58. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts +7 -1
  59. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -1
  60. package/dist/client/types/chat/bsky/convo/leaveConvo.js +23 -0
  61. package/dist/client/types/chat/bsky/convo/leaveConvo.js.map +1 -1
  62. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +29 -0
  63. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  64. package/dist/client/types/chat/bsky/convo/listConvoRequests.js +11 -0
  65. package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
  66. package/dist/client/types/chat/bsky/convo/listConvos.d.ts +3 -0
  67. package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  68. package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
  69. package/dist/client/types/chat/bsky/convo/lockConvo.d.ts +34 -0
  70. package/dist/client/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  71. package/dist/client/types/chat/bsky/convo/lockConvo.js +42 -0
  72. package/dist/client/types/chat/bsky/convo/lockConvo.js.map +1 -0
  73. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts +4 -1
  74. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts.map +1 -1
  75. package/dist/client/types/chat/bsky/convo/muteConvo.js +15 -0
  76. package/dist/client/types/chat/bsky/convo/muteConvo.js.map +1 -1
  77. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts +6 -0
  78. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts.map +1 -1
  79. package/dist/client/types/chat/bsky/convo/removeReaction.js +17 -1
  80. package/dist/client/types/chat/bsky/convo/removeReaction.js.map +1 -1
  81. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts +7 -1
  82. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
  83. package/dist/client/types/chat/bsky/convo/sendMessage.js +23 -0
  84. package/dist/client/types/chat/bsky/convo/sendMessage.js.map +1 -1
  85. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts +7 -1
  86. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
  87. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js +23 -0
  88. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
  89. package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts +31 -0
  90. package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  91. package/dist/client/types/chat/bsky/convo/unlockConvo.js +34 -0
  92. package/dist/client/types/chat/bsky/convo/unlockConvo.js.map +1 -0
  93. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts +4 -1
  94. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -1
  95. package/dist/client/types/chat/bsky/convo/unmuteConvo.js +15 -0
  96. package/dist/client/types/chat/bsky/convo/unmuteConvo.js.map +1 -1
  97. package/dist/client/types/chat/bsky/convo/updateRead.d.ts +4 -1
  98. package/dist/client/types/chat/bsky/convo/updateRead.d.ts.map +1 -1
  99. package/dist/client/types/chat/bsky/convo/updateRead.js +15 -0
  100. package/dist/client/types/chat/bsky/convo/updateRead.js.map +1 -1
  101. package/dist/client/types/chat/bsky/group/addMembers.d.ts +55 -0
  102. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -0
  103. package/dist/client/types/chat/bsky/group/addMembers.js +90 -0
  104. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -0
  105. package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts +35 -0
  106. package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  107. package/dist/client/types/chat/bsky/group/approveJoinRequest.js +42 -0
  108. package/dist/client/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
  109. package/dist/client/types/chat/bsky/group/createGroup.d.ts +41 -0
  110. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -0
  111. package/dist/client/types/chat/bsky/group/createGroup.js +58 -0
  112. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -0
  113. package/dist/client/types/chat/bsky/group/createJoinLink.d.ts +36 -0
  114. package/dist/client/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  115. package/dist/client/types/chat/bsky/group/createJoinLink.js +42 -0
  116. package/dist/client/types/chat/bsky/group/createJoinLink.js.map +1 -0
  117. package/dist/client/types/chat/bsky/group/defs.d.ts +35 -0
  118. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -0
  119. package/dist/client/types/chat/bsky/group/defs.js +34 -0
  120. package/dist/client/types/chat/bsky/group/defs.js.map +1 -0
  121. package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts +34 -0
  122. package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  123. package/dist/client/types/chat/bsky/group/disableJoinLink.js +42 -0
  124. package/dist/client/types/chat/bsky/group/disableJoinLink.js.map +1 -0
  125. package/dist/client/types/chat/bsky/group/editGroup.d.ts +35 -0
  126. package/dist/client/types/chat/bsky/group/editGroup.d.ts.map +1 -0
  127. package/dist/client/types/chat/bsky/group/editGroup.js +42 -0
  128. package/dist/client/types/chat/bsky/group/editGroup.js.map +1 -0
  129. package/dist/client/types/chat/bsky/group/editJoinLink.d.ts +36 -0
  130. package/dist/client/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  131. package/dist/client/types/chat/bsky/group/editJoinLink.js +42 -0
  132. package/dist/client/types/chat/bsky/group/editJoinLink.js.map +1 -0
  133. package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts +37 -0
  134. package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  135. package/dist/client/types/chat/bsky/group/enableJoinLink.js +50 -0
  136. package/dist/client/types/chat/bsky/group/enableJoinLink.js.map +1 -0
  137. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts +26 -0
  138. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  139. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js +26 -0
  140. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  141. package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts +32 -0
  142. package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  143. package/dist/client/types/chat/bsky/group/listJoinRequests.js +34 -0
  144. package/dist/client/types/chat/bsky/group/listJoinRequests.js.map +1 -0
  145. package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts +30 -0
  146. package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  147. package/dist/client/types/chat/bsky/group/rejectJoinRequest.js +34 -0
  148. package/dist/client/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  149. package/dist/client/types/chat/bsky/group/removeMembers.d.ts +32 -0
  150. package/dist/client/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
  151. package/dist/client/types/chat/bsky/group/removeMembers.js +34 -0
  152. package/dist/client/types/chat/bsky/group/removeMembers.js.map +1 -0
  153. package/dist/client/types/chat/bsky/group/requestJoin.d.ts +44 -0
  154. package/dist/client/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
  155. package/dist/client/types/chat/bsky/group/requestJoin.js +66 -0
  156. package/dist/client/types/chat/bsky/group/requestJoin.js.map +1 -0
  157. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
  158. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  159. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  160. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +15 -0
  161. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  162. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +16 -0
  163. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  164. package/package.json +3 -3
  165. package/src/client/index.ts +291 -51
  166. package/src/client/lexicons.ts +2151 -279
  167. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  168. package/src/client/types/app/bsky/embed/images.ts +1 -1
  169. package/src/client/types/chat/bsky/actor/declaration.ts +2 -0
  170. package/src/client/types/chat/bsky/actor/defs.ts +39 -0
  171. package/src/client/types/chat/bsky/convo/acceptConvo.ts +10 -0
  172. package/src/client/types/chat/bsky/convo/addReaction.ts +14 -0
  173. package/src/client/types/chat/bsky/convo/defs.ts +654 -2
  174. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +18 -0
  175. package/src/client/types/chat/bsky/convo/getConvo.ts +10 -0
  176. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +39 -0
  177. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +54 -0
  178. package/src/client/types/chat/bsky/convo/getLog.ts +17 -0
  179. package/src/client/types/chat/bsky/convo/getMessages.ts +11 -0
  180. package/src/client/types/chat/bsky/convo/leaveConvo.ts +17 -0
  181. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +48 -0
  182. package/src/client/types/chat/bsky/convo/listConvos.ts +3 -0
  183. package/src/client/types/chat/bsky/convo/lockConvo.ts +68 -0
  184. package/src/client/types/chat/bsky/convo/muteConvo.ts +10 -0
  185. package/src/client/types/chat/bsky/convo/removeReaction.ts +14 -0
  186. package/src/client/types/chat/bsky/convo/sendMessage.ts +17 -0
  187. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +17 -0
  188. package/src/client/types/chat/bsky/convo/unlockConvo.ts +61 -0
  189. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +10 -0
  190. package/src/client/types/chat/bsky/convo/updateRead.ts +10 -0
  191. package/src/client/types/chat/bsky/group/addMembers.ts +115 -0
  192. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +69 -0
  193. package/src/client/types/chat/bsky/group/createGroup.ts +85 -0
  194. package/src/client/types/chat/bsky/group/createJoinLink.ts +71 -0
  195. package/src/client/types/chat/bsky/group/defs.ts +73 -0
  196. package/src/client/types/chat/bsky/group/disableJoinLink.ts +68 -0
  197. package/src/client/types/chat/bsky/group/editGroup.ts +69 -0
  198. package/src/client/types/chat/bsky/group/editJoinLink.ts +70 -0
  199. package/src/client/types/chat/bsky/group/enableJoinLink.ts +75 -0
  200. package/src/client/types/chat/bsky/group/getGroupPublicInfo.ts +51 -0
  201. package/src/client/types/chat/bsky/group/listJoinRequests.ts +61 -0
  202. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +59 -0
  203. package/src/client/types/chat/bsky/group/removeMembers.ts +62 -0
  204. package/src/client/types/chat/bsky/group/requestJoin.ts +90 -0
  205. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +1 -0
  206. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +38 -0
  207. package/tsconfig.build.tsbuildinfo +1 -1
@@ -263,6 +263,10 @@ exports.schemaDict = {
263
263
  type: 'string',
264
264
  knownValues: ['all', 'none', 'following'],
265
265
  },
266
+ allowGroupInvites: {
267
+ type: 'string',
268
+ knownValues: ['all', 'none', 'following'],
269
+ },
266
270
  },
267
271
  },
268
272
  profileAssociatedGerm: {
@@ -2656,7 +2660,7 @@ exports.schemaDict = {
2656
2660
  properties: {
2657
2661
  image: {
2658
2662
  type: 'blob',
2659
- description: 'The raw image file. May be up to 2mb, formerly limited to 1mb.',
2663
+ description: 'The raw image file. May be up to 2 MB, formerly limited to 1 MB.',
2660
2664
  accept: ['image/*'],
2661
2665
  maxSize: 2000000,
2662
2666
  },
@@ -9325,6 +9329,11 @@ exports.schemaDict = {
9325
9329
  type: 'string',
9326
9330
  knownValues: ['all', 'none', 'following'],
9327
9331
  },
9332
+ allowGroupInvites: {
9333
+ description: '[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.',
9334
+ type: 'string',
9335
+ knownValues: ['all', 'none', 'following'],
9336
+ },
9328
9337
  },
9329
9338
  },
9330
9339
  },
@@ -9334,6 +9343,10 @@ exports.schemaDict = {
9334
9343
  lexicon: 1,
9335
9344
  id: 'chat.bsky.actor.defs',
9336
9345
  defs: {
9346
+ memberRole: {
9347
+ type: 'string',
9348
+ knownValues: ['owner', 'standard'],
9349
+ },
9337
9350
  profileViewBasic: {
9338
9351
  type: 'object',
9339
9352
  required: ['did', 'handle'],
@@ -9370,6 +9383,10 @@ exports.schemaDict = {
9370
9383
  ref: 'lex:com.atproto.label.defs#label',
9371
9384
  },
9372
9385
  },
9386
+ createdAt: {
9387
+ type: 'string',
9388
+ format: 'datetime',
9389
+ },
9373
9390
  chatDisabled: {
9374
9391
  type: 'boolean',
9375
9392
  description: 'Set to true when the actor cannot actively participate in conversations',
@@ -9378,6 +9395,36 @@ exports.schemaDict = {
9378
9395
  type: 'ref',
9379
9396
  ref: 'lex:app.bsky.actor.defs#verificationState',
9380
9397
  },
9398
+ kind: {
9399
+ description: 'Union field that has data specific to different kinds of convos.',
9400
+ type: 'union',
9401
+ refs: [
9402
+ 'lex:chat.bsky.actor.defs#directConvoMember',
9403
+ 'lex:chat.bsky.actor.defs#groupConvoMember',
9404
+ ],
9405
+ },
9406
+ },
9407
+ },
9408
+ directConvoMember: {
9409
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
9410
+ type: 'object',
9411
+ properties: {},
9412
+ },
9413
+ groupConvoMember: {
9414
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
9415
+ type: 'object',
9416
+ required: ['role'],
9417
+ properties: {
9418
+ addedBy: {
9419
+ description: 'Who added this member. Only present if the member was added (instead of joining via link).',
9420
+ type: 'ref',
9421
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9422
+ },
9423
+ role: {
9424
+ description: "The member's role within this conversation. Only present in group conversation member lists.",
9425
+ type: 'ref',
9426
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
9427
+ },
9381
9428
  },
9382
9429
  },
9383
9430
  },
@@ -9416,6 +9463,12 @@ exports.schemaDict = {
9416
9463
  defs: {
9417
9464
  main: {
9418
9465
  type: 'procedure',
9466
+ description: 'Marks a conversation as accepted, so it is shown in the list of accepted convos instead on the request convos.',
9467
+ errors: [
9468
+ {
9469
+ name: 'InvalidConvo',
9470
+ },
9471
+ ],
9419
9472
  input: {
9420
9473
  encoding: 'application/json',
9421
9474
  schema: {
@@ -9486,6 +9539,13 @@ exports.schemaDict = {
9486
9539
  },
9487
9540
  },
9488
9541
  errors: [
9542
+ {
9543
+ name: 'InvalidConvo',
9544
+ },
9545
+ {
9546
+ name: 'ReactionNotAllowed',
9547
+ description: 'Indicates that reactions are not allowed on this message, e.g. because it is a system message.',
9548
+ },
9489
9549
  {
9490
9550
  name: 'ReactionMessageDeleted',
9491
9551
  description: 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
@@ -9506,6 +9566,18 @@ exports.schemaDict = {
9506
9566
  lexicon: 1,
9507
9567
  id: 'chat.bsky.convo.defs',
9508
9568
  defs: {
9569
+ convoKind: {
9570
+ type: 'string',
9571
+ knownValues: ['direct', 'group'],
9572
+ },
9573
+ convoLockStatus: {
9574
+ type: 'string',
9575
+ knownValues: ['unlocked', 'locked', 'locked-permanently'],
9576
+ },
9577
+ convoStatus: {
9578
+ type: 'string',
9579
+ knownValues: ['request', 'accepted'],
9580
+ },
9509
9581
  messageRef: {
9510
9582
  type: 'object',
9511
9583
  required: ['did', 'messageId', 'convoId'],
@@ -9590,6 +9662,181 @@ exports.schemaDict = {
9590
9662
  },
9591
9663
  },
9592
9664
  },
9665
+ systemMessageView: {
9666
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
9667
+ type: 'object',
9668
+ required: ['id', 'rev', 'sentAt', 'data'],
9669
+ properties: {
9670
+ id: {
9671
+ type: 'string',
9672
+ },
9673
+ rev: {
9674
+ type: 'string',
9675
+ },
9676
+ sentAt: {
9677
+ type: 'string',
9678
+ format: 'datetime',
9679
+ },
9680
+ data: {
9681
+ type: 'union',
9682
+ refs: [
9683
+ 'lex:chat.bsky.convo.defs#systemMessageDataAddMember',
9684
+ 'lex:chat.bsky.convo.defs#systemMessageDataRemoveMember',
9685
+ 'lex:chat.bsky.convo.defs#systemMessageDataMemberJoin',
9686
+ 'lex:chat.bsky.convo.defs#systemMessageDataMemberLeave',
9687
+ 'lex:chat.bsky.convo.defs#systemMessageDataLockConvo',
9688
+ 'lex:chat.bsky.convo.defs#systemMessageDataUnlockConvo',
9689
+ 'lex:chat.bsky.convo.defs#systemMessageDataLockConvoPermanently',
9690
+ 'lex:chat.bsky.convo.defs#systemMessageDataEditGroup',
9691
+ 'lex:chat.bsky.convo.defs#systemMessageDataCreateJoinLink',
9692
+ 'lex:chat.bsky.convo.defs#systemMessageDataEditJoinLink',
9693
+ 'lex:chat.bsky.convo.defs#systemMessageDataEnableJoinLink',
9694
+ 'lex:chat.bsky.convo.defs#systemMessageDataDisableJoinLink',
9695
+ ],
9696
+ },
9697
+ },
9698
+ },
9699
+ systemMessageDataAddMember: {
9700
+ description: '[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.',
9701
+ type: 'object',
9702
+ required: ['member', 'role', 'addedBy'],
9703
+ properties: {
9704
+ member: {
9705
+ description: 'Current view of the member who was added.',
9706
+ type: 'ref',
9707
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9708
+ },
9709
+ role: {
9710
+ description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.",
9711
+ type: 'ref',
9712
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
9713
+ },
9714
+ addedBy: {
9715
+ type: 'ref',
9716
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9717
+ },
9718
+ },
9719
+ },
9720
+ systemMessageDataRemoveMember: {
9721
+ description: '[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.',
9722
+ type: 'object',
9723
+ required: ['member', 'removedBy'],
9724
+ properties: {
9725
+ member: {
9726
+ description: 'Current view of the member who was removed.',
9727
+ type: 'ref',
9728
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9729
+ },
9730
+ removedBy: {
9731
+ type: 'ref',
9732
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9733
+ },
9734
+ },
9735
+ },
9736
+ systemMessageDataMemberJoin: {
9737
+ description: '[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.',
9738
+ type: 'object',
9739
+ required: ['member', 'role'],
9740
+ properties: {
9741
+ member: {
9742
+ description: 'Current view of the member who joined.',
9743
+ type: 'ref',
9744
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9745
+ },
9746
+ role: {
9747
+ description: "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.",
9748
+ type: 'ref',
9749
+ ref: 'lex:chat.bsky.actor.defs#memberRole',
9750
+ },
9751
+ approvedBy: {
9752
+ description: 'If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.',
9753
+ type: 'ref',
9754
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9755
+ },
9756
+ },
9757
+ },
9758
+ systemMessageDataMemberLeave: {
9759
+ description: '[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.',
9760
+ type: 'object',
9761
+ required: ['member'],
9762
+ properties: {
9763
+ member: {
9764
+ description: 'Current view of the member who left the group.',
9765
+ type: 'ref',
9766
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9767
+ },
9768
+ },
9769
+ },
9770
+ systemMessageDataLockConvo: {
9771
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked.',
9772
+ type: 'object',
9773
+ required: ['lockedBy'],
9774
+ properties: {
9775
+ lockedBy: {
9776
+ description: 'Current view of the member who locked the group.',
9777
+ type: 'ref',
9778
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9779
+ },
9780
+ },
9781
+ },
9782
+ systemMessageDataUnlockConvo: {
9783
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked.',
9784
+ type: 'object',
9785
+ required: ['unlockedBy'],
9786
+ properties: {
9787
+ unlockedBy: {
9788
+ description: 'Current view of the member who unlocked the group.',
9789
+ type: 'ref',
9790
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9791
+ },
9792
+ },
9793
+ },
9794
+ systemMessageDataLockConvoPermanently: {
9795
+ description: '[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.',
9796
+ type: 'object',
9797
+ required: ['lockedBy'],
9798
+ properties: {
9799
+ lockedBy: {
9800
+ description: 'Current view of the member who locked the group.',
9801
+ type: 'ref',
9802
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
9803
+ },
9804
+ },
9805
+ },
9806
+ systemMessageDataEditGroup: {
9807
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited.',
9808
+ type: 'object',
9809
+ properties: {
9810
+ oldName: {
9811
+ description: 'Group name that was replaced.',
9812
+ type: 'string',
9813
+ },
9814
+ newName: {
9815
+ description: 'Group name that replaced the old.',
9816
+ type: 'string',
9817
+ },
9818
+ },
9819
+ },
9820
+ systemMessageDataCreateJoinLink: {
9821
+ description: '[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.',
9822
+ type: 'object',
9823
+ properties: {},
9824
+ },
9825
+ systemMessageDataEditJoinLink: {
9826
+ description: '[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.',
9827
+ type: 'object',
9828
+ properties: {},
9829
+ },
9830
+ systemMessageDataEnableJoinLink: {
9831
+ description: '[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.',
9832
+ type: 'object',
9833
+ properties: {},
9834
+ },
9835
+ systemMessageDataDisableJoinLink: {
9836
+ description: '[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.',
9837
+ type: 'object',
9838
+ properties: {},
9839
+ },
9593
9840
  deletedMessageView: {
9594
9841
  type: 'object',
9595
9842
  required: ['id', 'rev', 'sender', 'sentAt'],
@@ -9672,6 +9919,7 @@ exports.schemaDict = {
9672
9919
  type: 'string',
9673
9920
  },
9674
9921
  members: {
9922
+ description: 'Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.',
9675
9923
  type: 'array',
9676
9924
  items: {
9677
9925
  type: 'ref',
@@ -9683,6 +9931,7 @@ exports.schemaDict = {
9683
9931
  refs: [
9684
9932
  'lex:chat.bsky.convo.defs#messageView',
9685
9933
  'lex:chat.bsky.convo.defs#deletedMessageView',
9934
+ 'lex:chat.bsky.convo.defs#systemMessageView',
9686
9935
  ],
9687
9936
  },
9688
9937
  lastReaction: {
@@ -9693,15 +9942,56 @@ exports.schemaDict = {
9693
9942
  type: 'boolean',
9694
9943
  },
9695
9944
  status: {
9696
- type: 'string',
9697
- knownValues: ['request', 'accepted'],
9945
+ description: 'Convo status for the viewer member (not the convo itself).',
9946
+ type: 'ref',
9947
+ ref: 'lex:chat.bsky.convo.defs#convoStatus',
9698
9948
  },
9699
9949
  unreadCount: {
9700
9950
  type: 'integer',
9701
9951
  },
9952
+ kind: {
9953
+ description: 'Union field that has data specific to different kinds of convos.',
9954
+ type: 'union',
9955
+ refs: [
9956
+ 'lex:chat.bsky.convo.defs#directConvo',
9957
+ 'lex:chat.bsky.convo.defs#groupConvo',
9958
+ ],
9959
+ },
9960
+ },
9961
+ },
9962
+ directConvo: {
9963
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
9964
+ type: 'object',
9965
+ properties: {},
9966
+ },
9967
+ groupConvo: {
9968
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
9969
+ type: 'object',
9970
+ required: ['name', 'lockStatus', 'memberCount'],
9971
+ properties: {
9972
+ name: {
9973
+ type: 'string',
9974
+ description: 'The display name of the group conversation.',
9975
+ maxGraphemes: 128,
9976
+ maxLength: 1280,
9977
+ },
9978
+ memberCount: {
9979
+ type: 'integer',
9980
+ description: 'The total number of members in the group conversation.',
9981
+ },
9982
+ joinLink: {
9983
+ type: 'ref',
9984
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
9985
+ },
9986
+ lockStatus: {
9987
+ description: 'The lock status of the conversation.',
9988
+ type: 'ref',
9989
+ ref: 'lex:chat.bsky.convo.defs#convoLockStatus',
9990
+ },
9702
9991
  },
9703
9992
  },
9704
9993
  logBeginConvo: {
9994
+ description: '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.',
9705
9995
  type: 'object',
9706
9996
  required: ['rev', 'convoId'],
9707
9997
  properties: {
@@ -9714,6 +10004,7 @@ exports.schemaDict = {
9714
10004
  },
9715
10005
  },
9716
10006
  logAcceptConvo: {
10007
+ description: 'Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group.',
9717
10008
  type: 'object',
9718
10009
  required: ['rev', 'convoId'],
9719
10010
  properties: {
@@ -9726,6 +10017,7 @@ exports.schemaDict = {
9726
10017
  },
9727
10018
  },
9728
10019
  logLeaveConvo: {
10020
+ description: 'Event indicating the viewer left a convo. Can be direct or group.',
9729
10021
  type: 'object',
9730
10022
  required: ['rev', 'convoId'],
9731
10023
  properties: {
@@ -9738,6 +10030,7 @@ exports.schemaDict = {
9738
10030
  },
9739
10031
  },
9740
10032
  logMuteConvo: {
10033
+ description: 'Event indicating the viewer muted a convo. Can be direct or group.',
9741
10034
  type: 'object',
9742
10035
  required: ['rev', 'convoId'],
9743
10036
  properties: {
@@ -9750,6 +10043,7 @@ exports.schemaDict = {
9750
10043
  },
9751
10044
  },
9752
10045
  logUnmuteConvo: {
10046
+ description: 'Event indicating the viewer unmuted a convo. Can be direct or group.',
9753
10047
  type: 'object',
9754
10048
  required: ['rev', 'convoId'],
9755
10049
  properties: {
@@ -9762,6 +10056,7 @@ exports.schemaDict = {
9762
10056
  },
9763
10057
  },
9764
10058
  logCreateMessage: {
10059
+ description: 'Event indicating a user-originated message was created. Is not emitted for system messages.',
9765
10060
  type: 'object',
9766
10061
  required: ['rev', 'convoId', 'message'],
9767
10062
  properties: {
@@ -9781,6 +10076,7 @@ exports.schemaDict = {
9781
10076
  },
9782
10077
  },
9783
10078
  logDeleteMessage: {
10079
+ description: 'Event indicating a user-originated message was deleted. Is not emitted for system messages.',
9784
10080
  type: 'object',
9785
10081
  required: ['rev', 'convoId', 'message'],
9786
10082
  properties: {
@@ -9800,6 +10096,7 @@ exports.schemaDict = {
9800
10096
  },
9801
10097
  },
9802
10098
  logReadMessage: {
10099
+ description: 'DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message.',
9803
10100
  type: 'object',
9804
10101
  required: ['rev', 'convoId', 'message'],
9805
10102
  properties: {
@@ -9814,11 +10111,13 @@ exports.schemaDict = {
9814
10111
  refs: [
9815
10112
  'lex:chat.bsky.convo.defs#messageView',
9816
10113
  'lex:chat.bsky.convo.defs#deletedMessageView',
10114
+ 'lex:chat.bsky.convo.defs#systemMessageView',
9817
10115
  ],
9818
10116
  },
9819
10117
  },
9820
10118
  },
9821
10119
  logAddReaction: {
10120
+ description: 'Event indicating a reaction was added to a message.',
9822
10121
  type: 'object',
9823
10122
  required: ['rev', 'convoId', 'message', 'reaction'],
9824
10123
  properties: {
@@ -9842,6 +10141,7 @@ exports.schemaDict = {
9842
10141
  },
9843
10142
  },
9844
10143
  logRemoveReaction: {
10144
+ description: 'Event indicating a reaction was removed from a message.',
9845
10145
  type: 'object',
9846
10146
  required: ['rev', 'convoId', 'message', 'reaction'],
9847
10147
  properties: {
@@ -9864,88 +10164,1084 @@ exports.schemaDict = {
9864
10164
  },
9865
10165
  },
9866
10166
  },
9867
- },
9868
- },
9869
- ChatBskyConvoDeleteMessageForSelf: {
9870
- lexicon: 1,
9871
- id: 'chat.bsky.convo.deleteMessageForSelf',
9872
- defs: {
9873
- main: {
9874
- type: 'procedure',
9875
- input: {
9876
- encoding: 'application/json',
9877
- schema: {
9878
- type: 'object',
9879
- required: ['convoId', 'messageId'],
9880
- properties: {
9881
- convoId: {
9882
- type: 'string',
9883
- },
9884
- messageId: {
9885
- type: 'string',
9886
- },
9887
- },
10167
+ logReadConvo: {
10168
+ description: '[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.',
10169
+ type: 'object',
10170
+ required: ['rev', 'convoId', 'message'],
10171
+ properties: {
10172
+ rev: {
10173
+ type: 'string',
10174
+ },
10175
+ convoId: {
10176
+ type: 'string',
10177
+ },
10178
+ message: {
10179
+ type: 'union',
10180
+ refs: [
10181
+ 'lex:chat.bsky.convo.defs#messageView',
10182
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
10183
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10184
+ ],
9888
10185
  },
9889
10186
  },
9890
- output: {
9891
- encoding: 'application/json',
9892
- schema: {
10187
+ },
10188
+ logAddMember: {
10189
+ description: '[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).',
10190
+ type: 'object',
10191
+ required: ['rev', 'convoId', 'message'],
10192
+ properties: {
10193
+ rev: {
10194
+ type: 'string',
10195
+ },
10196
+ convoId: {
10197
+ type: 'string',
10198
+ },
10199
+ message: {
10200
+ description: 'A system message with data of type #systemMessageDataAddMember',
9893
10201
  type: 'ref',
9894
- ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10202
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
9895
10203
  },
9896
10204
  },
9897
10205
  },
9898
- },
9899
- },
9900
- ChatBskyConvoGetConvo: {
9901
- lexicon: 1,
9902
- id: 'chat.bsky.convo.getConvo',
9903
- defs: {
9904
- main: {
9905
- type: 'query',
9906
- parameters: {
9907
- type: 'params',
9908
- required: ['convoId'],
9909
- properties: {
9910
- convoId: {
9911
- type: 'string',
9912
- },
10206
+ logRemoveMember: {
10207
+ description: "[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).",
10208
+ type: 'object',
10209
+ required: ['rev', 'convoId', 'message'],
10210
+ properties: {
10211
+ rev: {
10212
+ type: 'string',
9913
10213
  },
9914
- },
9915
- output: {
9916
- encoding: 'application/json',
9917
- schema: {
9918
- type: 'object',
9919
- required: ['convo'],
9920
- properties: {
9921
- convo: {
9922
- type: 'ref',
9923
- ref: 'lex:chat.bsky.convo.defs#convoView',
9924
- },
9925
- },
10214
+ convoId: {
10215
+ type: 'string',
10216
+ },
10217
+ message: {
10218
+ description: 'A system message with data of type #systemMessageDataRemoveMember',
10219
+ type: 'ref',
10220
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
9926
10221
  },
9927
10222
  },
9928
10223
  },
9929
- },
9930
- },
9931
- ChatBskyConvoGetConvoAvailability: {
9932
- lexicon: 1,
9933
- id: 'chat.bsky.convo.getConvoAvailability',
9934
- defs: {
9935
- main: {
9936
- type: 'query',
9937
- description: 'Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.',
9938
- parameters: {
9939
- type: 'params',
9940
- required: ['members'],
10224
+ logMemberJoin: {
10225
+ description: '[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).',
10226
+ type: 'object',
10227
+ required: ['rev', 'convoId', 'message'],
10228
+ properties: {
10229
+ rev: {
10230
+ type: 'string',
10231
+ },
10232
+ convoId: {
10233
+ type: 'string',
10234
+ },
10235
+ message: {
10236
+ description: 'A system message with data of type #systemMessageDataMemberJoin',
10237
+ type: 'ref',
10238
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10239
+ },
10240
+ },
10241
+ },
10242
+ logMemberLeave: {
10243
+ description: "[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).",
10244
+ type: 'object',
10245
+ required: ['rev', 'convoId', 'message'],
10246
+ properties: {
10247
+ rev: {
10248
+ type: 'string',
10249
+ },
10250
+ convoId: {
10251
+ type: 'string',
10252
+ },
10253
+ message: {
10254
+ description: 'A system message with data of type #systemMessageDataMemberLeave',
10255
+ type: 'ref',
10256
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10257
+ },
10258
+ },
10259
+ },
10260
+ logLockConvo: {
10261
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.',
10262
+ type: 'object',
10263
+ required: ['rev', 'convoId', 'message'],
10264
+ properties: {
10265
+ rev: {
10266
+ type: 'string',
10267
+ },
10268
+ convoId: {
10269
+ type: 'string',
10270
+ },
10271
+ message: {
10272
+ description: 'A system message with data of type #systemMessageDataLockConvo',
10273
+ type: 'ref',
10274
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10275
+ },
10276
+ },
10277
+ },
10278
+ logUnlockConvo: {
10279
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.',
10280
+ type: 'object',
10281
+ required: ['rev', 'convoId', 'message'],
10282
+ properties: {
10283
+ rev: {
10284
+ type: 'string',
10285
+ },
10286
+ convoId: {
10287
+ type: 'string',
10288
+ },
10289
+ message: {
10290
+ description: 'A system message with data of type #systemMessageDataUnlockConvo',
10291
+ type: 'ref',
10292
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10293
+ },
10294
+ },
10295
+ },
10296
+ logLockConvoPermanently: {
10297
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently.',
10298
+ type: 'object',
10299
+ required: ['rev', 'convoId', 'message'],
10300
+ properties: {
10301
+ rev: {
10302
+ type: 'string',
10303
+ },
10304
+ convoId: {
10305
+ type: 'string',
10306
+ },
10307
+ message: {
10308
+ description: 'A system message with data of type #systemMessageDataLockConvoPermanently',
10309
+ type: 'ref',
10310
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10311
+ },
10312
+ },
10313
+ },
10314
+ logEditGroup: {
10315
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited.',
10316
+ type: 'object',
10317
+ required: ['rev', 'convoId', 'message'],
10318
+ properties: {
10319
+ rev: {
10320
+ type: 'string',
10321
+ },
10322
+ convoId: {
10323
+ type: 'string',
10324
+ },
10325
+ message: {
10326
+ description: 'A system message with data of type #systemMessageDataEditGroup',
10327
+ type: 'ref',
10328
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10329
+ },
10330
+ },
10331
+ },
10332
+ logCreateJoinLink: {
10333
+ description: '[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.',
10334
+ type: 'object',
10335
+ required: ['rev', 'convoId', 'message'],
10336
+ properties: {
10337
+ rev: {
10338
+ type: 'string',
10339
+ },
10340
+ convoId: {
10341
+ type: 'string',
10342
+ },
10343
+ message: {
10344
+ description: 'A system message with data of type #systemMessageDataCreateJoinLink',
10345
+ type: 'ref',
10346
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10347
+ },
10348
+ },
10349
+ },
10350
+ logEditJoinLink: {
10351
+ description: '[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.',
10352
+ type: 'object',
10353
+ required: ['rev', 'convoId', 'message'],
10354
+ properties: {
10355
+ rev: {
10356
+ type: 'string',
10357
+ },
10358
+ convoId: {
10359
+ type: 'string',
10360
+ },
10361
+ message: {
10362
+ description: 'A system message with data of type #systemMessageDataEditJoinLink',
10363
+ type: 'ref',
10364
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10365
+ },
10366
+ },
10367
+ },
10368
+ logEnableJoinLink: {
10369
+ description: '[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.',
10370
+ type: 'object',
10371
+ required: ['rev', 'convoId', 'message'],
10372
+ properties: {
10373
+ rev: {
10374
+ type: 'string',
10375
+ },
10376
+ convoId: {
10377
+ type: 'string',
10378
+ },
10379
+ message: {
10380
+ description: 'A system message with data of type #systemMessageDataEnableJoinLink',
10381
+ type: 'ref',
10382
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10383
+ },
10384
+ },
10385
+ },
10386
+ logDisableJoinLink: {
10387
+ description: '[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.',
10388
+ type: 'object',
10389
+ required: ['rev', 'convoId', 'message'],
10390
+ properties: {
10391
+ rev: {
10392
+ type: 'string',
10393
+ },
10394
+ convoId: {
10395
+ type: 'string',
10396
+ },
10397
+ message: {
10398
+ description: 'A system message with data of type #systemMessageDataDisableJoinLink',
10399
+ type: 'ref',
10400
+ ref: 'lex:chat.bsky.convo.defs#systemMessageView',
10401
+ },
10402
+ },
10403
+ },
10404
+ logIncomingJoinRequest: {
10405
+ description: '[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.',
10406
+ type: 'object',
10407
+ required: ['rev', 'convoId', 'member'],
10408
+ properties: {
10409
+ rev: {
10410
+ type: 'string',
10411
+ },
10412
+ convoId: {
10413
+ type: 'string',
10414
+ },
10415
+ member: {
10416
+ description: 'Prospective member who requested to join.',
10417
+ type: 'ref',
10418
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10419
+ },
10420
+ },
10421
+ },
10422
+ logApproveJoinRequest: {
10423
+ description: '[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.',
10424
+ type: 'object',
10425
+ required: ['rev', 'convoId', 'member'],
10426
+ properties: {
10427
+ rev: {
10428
+ type: 'string',
10429
+ },
10430
+ convoId: {
10431
+ type: 'string',
10432
+ },
10433
+ member: {
10434
+ description: 'Prospective member who requested to join.',
10435
+ type: 'ref',
10436
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10437
+ },
10438
+ },
10439
+ },
10440
+ logRejectJoinRequest: {
10441
+ description: '[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.',
10442
+ type: 'object',
10443
+ required: ['rev', 'convoId', 'member'],
10444
+ properties: {
10445
+ rev: {
10446
+ type: 'string',
10447
+ },
10448
+ convoId: {
10449
+ type: 'string',
10450
+ },
10451
+ member: {
10452
+ description: 'Prospective member who requested to join.',
10453
+ type: 'ref',
10454
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10455
+ },
10456
+ },
10457
+ },
10458
+ logOutgoingJoinRequest: {
10459
+ description: '[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.',
10460
+ type: 'object',
10461
+ required: ['rev', 'convoId'],
10462
+ properties: {
10463
+ rev: {
10464
+ type: 'string',
10465
+ },
10466
+ convoId: {
10467
+ type: 'string',
10468
+ },
10469
+ },
10470
+ },
10471
+ },
10472
+ },
10473
+ ChatBskyConvoDeleteMessageForSelf: {
10474
+ lexicon: 1,
10475
+ id: 'chat.bsky.convo.deleteMessageForSelf',
10476
+ defs: {
10477
+ main: {
10478
+ type: 'procedure',
10479
+ description: "Marks a message as deleted for the viewer, so they won't see that message in future enumerations.",
10480
+ errors: [
10481
+ {
10482
+ name: 'InvalidConvo',
10483
+ },
10484
+ {
10485
+ name: 'MessageDeleteNotAllowed',
10486
+ description: 'Indicates that this message cannot be deleted, e.g. because it is a system message.',
10487
+ },
10488
+ ],
10489
+ input: {
10490
+ encoding: 'application/json',
10491
+ schema: {
10492
+ type: 'object',
10493
+ required: ['convoId', 'messageId'],
10494
+ properties: {
10495
+ convoId: {
10496
+ type: 'string',
10497
+ },
10498
+ messageId: {
10499
+ type: 'string',
10500
+ },
10501
+ },
10502
+ },
10503
+ },
10504
+ output: {
10505
+ encoding: 'application/json',
10506
+ schema: {
10507
+ type: 'ref',
10508
+ ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10509
+ },
10510
+ },
10511
+ },
10512
+ },
10513
+ },
10514
+ ChatBskyConvoGetConvo: {
10515
+ lexicon: 1,
10516
+ id: 'chat.bsky.convo.getConvo',
10517
+ defs: {
10518
+ main: {
10519
+ type: 'query',
10520
+ description: 'Gets an existing conversation by its ID.',
10521
+ errors: [
10522
+ {
10523
+ name: 'InvalidConvo',
10524
+ },
10525
+ ],
10526
+ parameters: {
10527
+ type: 'params',
10528
+ required: ['convoId'],
10529
+ properties: {
10530
+ convoId: {
10531
+ type: 'string',
10532
+ },
10533
+ },
10534
+ },
10535
+ output: {
10536
+ encoding: 'application/json',
10537
+ schema: {
10538
+ type: 'object',
10539
+ required: ['convo'],
10540
+ properties: {
10541
+ convo: {
10542
+ type: 'ref',
10543
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10544
+ },
10545
+ },
10546
+ },
10547
+ },
10548
+ },
10549
+ },
10550
+ },
10551
+ ChatBskyConvoGetConvoAvailability: {
10552
+ lexicon: 1,
10553
+ id: 'chat.bsky.convo.getConvoAvailability',
10554
+ defs: {
10555
+ main: {
10556
+ type: 'query',
10557
+ description: "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.",
10558
+ parameters: {
10559
+ type: 'params',
10560
+ required: ['members'],
10561
+ properties: {
10562
+ members: {
10563
+ type: 'array',
10564
+ minLength: 1,
10565
+ maxLength: 10,
10566
+ items: {
10567
+ type: 'string',
10568
+ format: 'did',
10569
+ },
10570
+ },
10571
+ },
10572
+ },
10573
+ output: {
10574
+ encoding: 'application/json',
10575
+ schema: {
10576
+ type: 'object',
10577
+ required: ['canChat'],
10578
+ properties: {
10579
+ canChat: {
10580
+ type: 'boolean',
10581
+ },
10582
+ convo: {
10583
+ type: 'ref',
10584
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10585
+ },
10586
+ },
10587
+ },
10588
+ },
10589
+ },
10590
+ },
10591
+ },
10592
+ ChatBskyConvoGetConvoForMembers: {
10593
+ lexicon: 1,
10594
+ id: 'chat.bsky.convo.getConvoForMembers',
10595
+ defs: {
10596
+ main: {
10597
+ type: 'query',
10598
+ description: '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.',
10599
+ errors: [
10600
+ {
10601
+ name: 'AccountSuspended',
10602
+ },
10603
+ {
10604
+ name: 'BlockedActor',
10605
+ },
10606
+ {
10607
+ name: 'MessagesDisabled',
10608
+ },
10609
+ {
10610
+ name: 'NotFollowedBySender',
10611
+ },
10612
+ {
10613
+ name: 'RecipientNotFound',
10614
+ },
10615
+ ],
10616
+ parameters: {
10617
+ type: 'params',
10618
+ required: ['members'],
10619
+ properties: {
10620
+ members: {
10621
+ type: 'array',
10622
+ minLength: 1,
10623
+ maxLength: 10,
10624
+ items: {
10625
+ type: 'string',
10626
+ format: 'did',
10627
+ },
10628
+ },
10629
+ },
10630
+ },
10631
+ output: {
10632
+ encoding: 'application/json',
10633
+ schema: {
10634
+ type: 'object',
10635
+ required: ['convo'],
10636
+ properties: {
10637
+ convo: {
10638
+ type: 'ref',
10639
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10640
+ },
10641
+ },
10642
+ },
10643
+ },
10644
+ },
10645
+ },
10646
+ },
10647
+ ChatBskyConvoGetConvoMembers: {
10648
+ lexicon: 1,
10649
+ id: 'chat.bsky.convo.getConvoMembers',
10650
+ defs: {
10651
+ main: {
10652
+ type: 'query',
10653
+ description: 'Returns a paginated list of members from a conversation.',
10654
+ errors: [
10655
+ {
10656
+ name: 'InvalidConvo',
10657
+ },
10658
+ ],
10659
+ parameters: {
10660
+ type: 'params',
10661
+ required: ['convoId'],
10662
+ properties: {
10663
+ convoId: {
10664
+ type: 'string',
10665
+ },
10666
+ limit: {
10667
+ type: 'integer',
10668
+ minimum: 1,
10669
+ maximum: 100,
10670
+ default: 50,
10671
+ },
10672
+ cursor: {
10673
+ type: 'string',
10674
+ },
10675
+ },
10676
+ },
10677
+ output: {
10678
+ encoding: 'application/json',
10679
+ schema: {
10680
+ type: 'object',
10681
+ required: ['members'],
10682
+ properties: {
10683
+ cursor: {
10684
+ type: 'string',
10685
+ },
10686
+ members: {
10687
+ type: 'array',
10688
+ items: {
10689
+ type: 'ref',
10690
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
10691
+ },
10692
+ },
10693
+ },
10694
+ },
10695
+ },
10696
+ },
10697
+ },
10698
+ },
10699
+ ChatBskyConvoGetLog: {
10700
+ lexicon: 1,
10701
+ id: 'chat.bsky.convo.getLog',
10702
+ defs: {
10703
+ main: {
10704
+ type: 'query',
10705
+ parameters: {
10706
+ type: 'params',
10707
+ required: [],
10708
+ properties: {
10709
+ cursor: {
10710
+ type: 'string',
10711
+ },
10712
+ },
10713
+ },
10714
+ output: {
10715
+ encoding: 'application/json',
10716
+ schema: {
10717
+ type: 'object',
10718
+ required: ['logs'],
10719
+ properties: {
10720
+ cursor: {
10721
+ type: 'string',
10722
+ },
10723
+ logs: {
10724
+ type: 'array',
10725
+ items: {
10726
+ type: 'union',
10727
+ refs: [
10728
+ 'lex:chat.bsky.convo.defs#logBeginConvo',
10729
+ 'lex:chat.bsky.convo.defs#logAcceptConvo',
10730
+ 'lex:chat.bsky.convo.defs#logLeaveConvo',
10731
+ 'lex:chat.bsky.convo.defs#logMuteConvo',
10732
+ 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10733
+ 'lex:chat.bsky.convo.defs#logCreateMessage',
10734
+ 'lex:chat.bsky.convo.defs#logDeleteMessage',
10735
+ 'lex:chat.bsky.convo.defs#logReadMessage',
10736
+ 'lex:chat.bsky.convo.defs#logAddReaction',
10737
+ 'lex:chat.bsky.convo.defs#logRemoveReaction',
10738
+ 'lex:chat.bsky.convo.defs#logReadConvo',
10739
+ 'lex:chat.bsky.convo.defs#logAddMember',
10740
+ 'lex:chat.bsky.convo.defs#logRemoveMember',
10741
+ 'lex:chat.bsky.convo.defs#logMemberJoin',
10742
+ 'lex:chat.bsky.convo.defs#logMemberLeave',
10743
+ 'lex:chat.bsky.convo.defs#logLockConvo',
10744
+ 'lex:chat.bsky.convo.defs#logUnlockConvo',
10745
+ 'lex:chat.bsky.convo.defs#logLockConvoPermanently',
10746
+ 'lex:chat.bsky.convo.defs#logEditGroup',
10747
+ 'lex:chat.bsky.convo.defs#logCreateJoinLink',
10748
+ 'lex:chat.bsky.convo.defs#logEditJoinLink',
10749
+ 'lex:chat.bsky.convo.defs#logEnableJoinLink',
10750
+ 'lex:chat.bsky.convo.defs#logDisableJoinLink',
10751
+ 'lex:chat.bsky.convo.defs#logIncomingJoinRequest',
10752
+ 'lex:chat.bsky.convo.defs#logApproveJoinRequest',
10753
+ 'lex:chat.bsky.convo.defs#logRejectJoinRequest',
10754
+ 'lex:chat.bsky.convo.defs#logOutgoingJoinRequest',
10755
+ ],
10756
+ },
10757
+ },
10758
+ },
10759
+ },
10760
+ },
10761
+ },
10762
+ },
10763
+ },
10764
+ ChatBskyConvoGetMessages: {
10765
+ lexicon: 1,
10766
+ id: 'chat.bsky.convo.getMessages',
10767
+ defs: {
10768
+ main: {
10769
+ type: 'query',
10770
+ description: 'Returns a page of messages from a conversation.',
10771
+ errors: [
10772
+ {
10773
+ name: 'InvalidConvo',
10774
+ },
10775
+ ],
10776
+ parameters: {
10777
+ type: 'params',
10778
+ required: ['convoId'],
10779
+ properties: {
10780
+ convoId: {
10781
+ type: 'string',
10782
+ },
10783
+ limit: {
10784
+ type: 'integer',
10785
+ minimum: 1,
10786
+ maximum: 100,
10787
+ default: 50,
10788
+ },
10789
+ cursor: {
10790
+ type: 'string',
10791
+ },
10792
+ },
10793
+ },
10794
+ output: {
10795
+ encoding: 'application/json',
10796
+ schema: {
10797
+ type: 'object',
10798
+ required: ['messages'],
10799
+ properties: {
10800
+ cursor: {
10801
+ type: 'string',
10802
+ },
10803
+ messages: {
10804
+ type: 'array',
10805
+ items: {
10806
+ type: 'union',
10807
+ refs: [
10808
+ 'lex:chat.bsky.convo.defs#messageView',
10809
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
10810
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10811
+ ],
10812
+ },
10813
+ },
10814
+ },
10815
+ },
10816
+ },
10817
+ },
10818
+ },
10819
+ },
10820
+ ChatBskyConvoLeaveConvo: {
10821
+ lexicon: 1,
10822
+ id: 'chat.bsky.convo.leaveConvo',
10823
+ defs: {
10824
+ main: {
10825
+ type: 'procedure',
10826
+ description: '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.',
10827
+ errors: [
10828
+ {
10829
+ name: 'InvalidConvo',
10830
+ },
10831
+ {
10832
+ name: 'OwnerCannotLeave',
10833
+ description: 'The owner of a group conversation cannot leave before locking the group.',
10834
+ },
10835
+ ],
10836
+ input: {
10837
+ encoding: 'application/json',
10838
+ schema: {
10839
+ type: 'object',
10840
+ required: ['convoId'],
10841
+ properties: {
10842
+ convoId: {
10843
+ type: 'string',
10844
+ },
10845
+ },
10846
+ },
10847
+ },
10848
+ output: {
10849
+ encoding: 'application/json',
10850
+ schema: {
10851
+ type: 'object',
10852
+ required: ['convoId', 'rev'],
10853
+ properties: {
10854
+ convoId: {
10855
+ type: 'string',
10856
+ },
10857
+ rev: {
10858
+ type: 'string',
10859
+ },
10860
+ },
10861
+ },
10862
+ },
10863
+ },
10864
+ },
10865
+ },
10866
+ ChatBskyConvoListConvoRequests: {
10867
+ lexicon: 1,
10868
+ id: 'chat.bsky.convo.listConvoRequests',
10869
+ defs: {
10870
+ main: {
10871
+ type: 'query',
10872
+ description: '[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.',
10873
+ parameters: {
10874
+ type: 'params',
10875
+ properties: {
10876
+ limit: {
10877
+ type: 'integer',
10878
+ minimum: 1,
10879
+ maximum: 100,
10880
+ default: 50,
10881
+ },
10882
+ cursor: {
10883
+ type: 'string',
10884
+ },
10885
+ },
10886
+ },
10887
+ output: {
10888
+ encoding: 'application/json',
10889
+ schema: {
10890
+ type: 'object',
10891
+ required: ['requests'],
10892
+ properties: {
10893
+ cursor: {
10894
+ type: 'string',
10895
+ },
10896
+ requests: {
10897
+ type: 'array',
10898
+ items: {
10899
+ type: 'union',
10900
+ refs: [
10901
+ 'lex:chat.bsky.convo.defs#convoView',
10902
+ 'lex:chat.bsky.group.defs#joinRequestView',
10903
+ ],
10904
+ },
10905
+ },
10906
+ },
10907
+ },
10908
+ },
10909
+ },
10910
+ },
10911
+ },
10912
+ ChatBskyConvoListConvos: {
10913
+ lexicon: 1,
10914
+ id: 'chat.bsky.convo.listConvos',
10915
+ defs: {
10916
+ main: {
10917
+ type: 'query',
10918
+ description: 'Returns a page of conversations (direct or group) for the user.',
10919
+ parameters: {
10920
+ type: 'params',
9941
10921
  properties: {
9942
- members: {
9943
- type: 'array',
9944
- minLength: 1,
9945
- maxLength: 10,
10922
+ limit: {
10923
+ type: 'integer',
10924
+ minimum: 1,
10925
+ maximum: 100,
10926
+ default: 50,
10927
+ },
10928
+ cursor: {
10929
+ type: 'string',
10930
+ },
10931
+ readState: {
10932
+ type: 'string',
10933
+ knownValues: ['unread'],
10934
+ },
10935
+ status: {
10936
+ description: '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.',
10937
+ type: 'string',
10938
+ knownValues: ['request', 'accepted'],
10939
+ },
10940
+ kind: {
10941
+ type: 'string',
10942
+ description: 'Filter by conversation kind.',
10943
+ knownValues: ['direct', 'group'],
10944
+ },
10945
+ },
10946
+ },
10947
+ output: {
10948
+ encoding: 'application/json',
10949
+ schema: {
10950
+ type: 'object',
10951
+ required: ['convos'],
10952
+ properties: {
10953
+ cursor: {
10954
+ type: 'string',
10955
+ },
10956
+ convos: {
10957
+ type: 'array',
10958
+ items: {
10959
+ type: 'ref',
10960
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10961
+ },
10962
+ },
10963
+ },
10964
+ },
10965
+ },
10966
+ },
10967
+ },
10968
+ },
10969
+ ChatBskyConvoLockConvo: {
10970
+ lexicon: 1,
10971
+ id: 'chat.bsky.convo.lockConvo',
10972
+ defs: {
10973
+ main: {
10974
+ type: 'procedure',
10975
+ description: '[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.',
10976
+ errors: [
10977
+ {
10978
+ name: 'ConvoLocked',
10979
+ },
10980
+ {
10981
+ name: 'InvalidConvo',
10982
+ },
10983
+ {
10984
+ name: 'InsufficientRole',
10985
+ },
10986
+ ],
10987
+ input: {
10988
+ encoding: 'application/json',
10989
+ schema: {
10990
+ type: 'object',
10991
+ required: ['convoId'],
10992
+ properties: {
10993
+ convoId: {
10994
+ type: 'string',
10995
+ },
10996
+ },
10997
+ },
10998
+ },
10999
+ output: {
11000
+ encoding: 'application/json',
11001
+ schema: {
11002
+ type: 'object',
11003
+ required: ['convo'],
11004
+ properties: {
11005
+ convo: {
11006
+ type: 'ref',
11007
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11008
+ },
11009
+ },
11010
+ },
11011
+ },
11012
+ },
11013
+ },
11014
+ },
11015
+ ChatBskyConvoMuteConvo: {
11016
+ lexicon: 1,
11017
+ id: 'chat.bsky.convo.muteConvo',
11018
+ defs: {
11019
+ main: {
11020
+ type: 'procedure',
11021
+ description: 'Mutes a conversation, preventing notifications related to it.',
11022
+ errors: [
11023
+ {
11024
+ name: 'InvalidConvo',
11025
+ },
11026
+ ],
11027
+ input: {
11028
+ encoding: 'application/json',
11029
+ schema: {
11030
+ type: 'object',
11031
+ required: ['convoId'],
11032
+ properties: {
11033
+ convoId: {
11034
+ type: 'string',
11035
+ },
11036
+ },
11037
+ },
11038
+ },
11039
+ output: {
11040
+ encoding: 'application/json',
11041
+ schema: {
11042
+ type: 'object',
11043
+ required: ['convo'],
11044
+ properties: {
11045
+ convo: {
11046
+ type: 'ref',
11047
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11048
+ },
11049
+ },
11050
+ },
11051
+ },
11052
+ },
11053
+ },
11054
+ },
11055
+ ChatBskyConvoRemoveReaction: {
11056
+ lexicon: 1,
11057
+ id: 'chat.bsky.convo.removeReaction',
11058
+ defs: {
11059
+ main: {
11060
+ type: 'procedure',
11061
+ description: "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.",
11062
+ input: {
11063
+ encoding: 'application/json',
11064
+ schema: {
11065
+ type: 'object',
11066
+ required: ['convoId', 'messageId', 'value'],
11067
+ properties: {
11068
+ convoId: {
11069
+ type: 'string',
11070
+ },
11071
+ messageId: {
11072
+ type: 'string',
11073
+ },
11074
+ value: {
11075
+ type: 'string',
11076
+ minLength: 1,
11077
+ maxLength: 64,
11078
+ minGraphemes: 1,
11079
+ maxGraphemes: 1,
11080
+ },
11081
+ },
11082
+ },
11083
+ },
11084
+ output: {
11085
+ encoding: 'application/json',
11086
+ schema: {
11087
+ type: 'object',
11088
+ required: ['message'],
11089
+ properties: {
11090
+ message: {
11091
+ type: 'ref',
11092
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11093
+ },
11094
+ },
11095
+ },
11096
+ },
11097
+ errors: [
11098
+ {
11099
+ name: 'InvalidConvo',
11100
+ },
11101
+ {
11102
+ name: 'ReactionNotAllowed',
11103
+ description: 'Indicates that reactions are not allowed on this message, e.g. because it is a system message.',
11104
+ },
11105
+ {
11106
+ name: 'ReactionMessageDeleted',
11107
+ description: 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
11108
+ },
11109
+ {
11110
+ name: 'ReactionInvalidValue',
11111
+ description: 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
11112
+ },
11113
+ ],
11114
+ },
11115
+ },
11116
+ },
11117
+ ChatBskyConvoSendMessage: {
11118
+ lexicon: 1,
11119
+ id: 'chat.bsky.convo.sendMessage',
11120
+ defs: {
11121
+ main: {
11122
+ type: 'procedure',
11123
+ description: 'Sends a message to a conversation.',
11124
+ errors: [
11125
+ {
11126
+ name: 'ConvoLocked',
11127
+ },
11128
+ {
11129
+ name: 'InvalidConvo',
11130
+ },
11131
+ ],
11132
+ input: {
11133
+ encoding: 'application/json',
11134
+ schema: {
11135
+ type: 'object',
11136
+ required: ['convoId', 'message'],
11137
+ properties: {
11138
+ convoId: {
11139
+ type: 'string',
11140
+ },
11141
+ message: {
11142
+ type: 'ref',
11143
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
11144
+ },
11145
+ },
11146
+ },
11147
+ },
11148
+ output: {
11149
+ encoding: 'application/json',
11150
+ schema: {
11151
+ type: 'ref',
11152
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11153
+ },
11154
+ },
11155
+ },
11156
+ },
11157
+ },
11158
+ ChatBskyConvoSendMessageBatch: {
11159
+ lexicon: 1,
11160
+ id: 'chat.bsky.convo.sendMessageBatch',
11161
+ defs: {
11162
+ main: {
11163
+ type: 'procedure',
11164
+ description: 'Sends a batch of messages to a conversation.',
11165
+ errors: [
11166
+ {
11167
+ name: 'ConvoLocked',
11168
+ },
11169
+ {
11170
+ name: 'InvalidConvo',
11171
+ },
11172
+ ],
11173
+ input: {
11174
+ encoding: 'application/json',
11175
+ schema: {
11176
+ type: 'object',
11177
+ required: ['items'],
11178
+ properties: {
11179
+ items: {
11180
+ type: 'array',
11181
+ maxLength: 100,
11182
+ items: {
11183
+ type: 'ref',
11184
+ ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
11185
+ },
11186
+ },
11187
+ },
11188
+ },
11189
+ },
11190
+ output: {
11191
+ encoding: 'application/json',
11192
+ schema: {
11193
+ type: 'object',
11194
+ required: ['items'],
11195
+ properties: {
9946
11196
  items: {
11197
+ type: 'array',
11198
+ items: {
11199
+ type: 'ref',
11200
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11201
+ },
11202
+ },
11203
+ },
11204
+ },
11205
+ },
11206
+ },
11207
+ batchItem: {
11208
+ type: 'object',
11209
+ required: ['convoId', 'message'],
11210
+ properties: {
11211
+ convoId: {
11212
+ type: 'string',
11213
+ },
11214
+ message: {
11215
+ type: 'ref',
11216
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
11217
+ },
11218
+ },
11219
+ },
11220
+ },
11221
+ },
11222
+ ChatBskyConvoUnlockConvo: {
11223
+ lexicon: 1,
11224
+ id: 'chat.bsky.convo.unlockConvo',
11225
+ defs: {
11226
+ main: {
11227
+ type: 'procedure',
11228
+ description: '[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.',
11229
+ errors: [
11230
+ {
11231
+ name: 'InvalidConvo',
11232
+ },
11233
+ {
11234
+ name: 'InsufficientRole',
11235
+ },
11236
+ ],
11237
+ input: {
11238
+ encoding: 'application/json',
11239
+ schema: {
11240
+ type: 'object',
11241
+ required: ['convoId'],
11242
+ properties: {
11243
+ convoId: {
9947
11244
  type: 'string',
9948
- format: 'did',
9949
11245
  },
9950
11246
  },
9951
11247
  },
@@ -9954,11 +11250,48 @@ exports.schemaDict = {
9954
11250
  encoding: 'application/json',
9955
11251
  schema: {
9956
11252
  type: 'object',
9957
- required: ['canChat'],
11253
+ required: ['convo'],
9958
11254
  properties: {
9959
- canChat: {
9960
- type: 'boolean',
11255
+ convo: {
11256
+ type: 'ref',
11257
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11258
+ },
11259
+ },
11260
+ },
11261
+ },
11262
+ },
11263
+ },
11264
+ },
11265
+ ChatBskyConvoUnmuteConvo: {
11266
+ lexicon: 1,
11267
+ id: 'chat.bsky.convo.unmuteConvo',
11268
+ defs: {
11269
+ main: {
11270
+ type: 'procedure',
11271
+ description: 'Unmutes a conversation, allowing notifications related to it.',
11272
+ errors: [
11273
+ {
11274
+ name: 'InvalidConvo',
11275
+ },
11276
+ ],
11277
+ input: {
11278
+ encoding: 'application/json',
11279
+ schema: {
11280
+ type: 'object',
11281
+ required: ['convoId'],
11282
+ properties: {
11283
+ convoId: {
11284
+ type: 'string',
9961
11285
  },
11286
+ },
11287
+ },
11288
+ },
11289
+ output: {
11290
+ encoding: 'application/json',
11291
+ schema: {
11292
+ type: 'object',
11293
+ required: ['convo'],
11294
+ properties: {
9962
11295
  convo: {
9963
11296
  type: 'ref',
9964
11297
  ref: 'lex:chat.bsky.convo.defs#convoView',
@@ -9969,23 +11302,64 @@ exports.schemaDict = {
9969
11302
  },
9970
11303
  },
9971
11304
  },
9972
- ChatBskyConvoGetConvoForMembers: {
11305
+ ChatBskyConvoUpdateAllRead: {
9973
11306
  lexicon: 1,
9974
- id: 'chat.bsky.convo.getConvoForMembers',
11307
+ id: 'chat.bsky.convo.updateAllRead',
9975
11308
  defs: {
9976
11309
  main: {
9977
- type: 'query',
9978
- parameters: {
9979
- type: 'params',
9980
- required: ['members'],
9981
- properties: {
9982
- members: {
9983
- type: 'array',
9984
- minLength: 1,
9985
- maxLength: 10,
9986
- items: {
11310
+ type: 'procedure',
11311
+ description: 'Sets conversations from a user as read to the latest message, with filters.',
11312
+ input: {
11313
+ encoding: 'application/json',
11314
+ schema: {
11315
+ type: 'object',
11316
+ properties: {
11317
+ status: {
11318
+ type: 'string',
11319
+ knownValues: ['request', 'accepted'],
11320
+ },
11321
+ },
11322
+ },
11323
+ },
11324
+ output: {
11325
+ encoding: 'application/json',
11326
+ schema: {
11327
+ type: 'object',
11328
+ required: ['updatedCount'],
11329
+ properties: {
11330
+ updatedCount: {
11331
+ description: 'The count of updated convos.',
11332
+ type: 'integer',
11333
+ },
11334
+ },
11335
+ },
11336
+ },
11337
+ },
11338
+ },
11339
+ },
11340
+ ChatBskyConvoUpdateRead: {
11341
+ lexicon: 1,
11342
+ id: 'chat.bsky.convo.updateRead',
11343
+ defs: {
11344
+ main: {
11345
+ type: 'procedure',
11346
+ description: 'Updates the read state of a conversation from, optionally specifying the last read message.',
11347
+ errors: [
11348
+ {
11349
+ name: 'InvalidConvo',
11350
+ },
11351
+ ],
11352
+ input: {
11353
+ encoding: 'application/json',
11354
+ schema: {
11355
+ type: 'object',
11356
+ required: ['convoId'],
11357
+ properties: {
11358
+ convoId: {
11359
+ type: 'string',
11360
+ },
11361
+ messageId: {
9987
11362
  type: 'string',
9988
- format: 'did',
9989
11363
  },
9990
11364
  },
9991
11365
  },
@@ -10006,18 +11380,116 @@ exports.schemaDict = {
10006
11380
  },
10007
11381
  },
10008
11382
  },
10009
- ChatBskyConvoGetLog: {
11383
+ ChatBskyGroupAddMembers: {
10010
11384
  lexicon: 1,
10011
- id: 'chat.bsky.convo.getLog',
11385
+ id: 'chat.bsky.group.addMembers',
10012
11386
  defs: {
10013
11387
  main: {
10014
- type: 'query',
10015
- parameters: {
10016
- type: 'params',
10017
- required: [],
10018
- properties: {
10019
- cursor: {
10020
- type: 'string',
11388
+ type: 'procedure',
11389
+ description: "[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.",
11390
+ errors: [
11391
+ {
11392
+ name: 'AccountSuspended',
11393
+ },
11394
+ {
11395
+ name: 'BlockedActor',
11396
+ },
11397
+ {
11398
+ name: 'GroupInvitesDisabled',
11399
+ },
11400
+ {
11401
+ name: 'ConvoLocked',
11402
+ },
11403
+ {
11404
+ name: 'InsufficientRole',
11405
+ },
11406
+ {
11407
+ name: 'InvalidConvo',
11408
+ },
11409
+ {
11410
+ name: 'MemberLimitReached',
11411
+ },
11412
+ {
11413
+ name: 'NotFollowedBySender',
11414
+ },
11415
+ {
11416
+ name: 'RecipientNotFound',
11417
+ },
11418
+ ],
11419
+ input: {
11420
+ encoding: 'application/json',
11421
+ schema: {
11422
+ type: 'object',
11423
+ required: ['convoId', 'members'],
11424
+ properties: {
11425
+ convoId: {
11426
+ type: 'string',
11427
+ },
11428
+ members: {
11429
+ type: 'array',
11430
+ items: {
11431
+ type: 'string',
11432
+ format: 'did',
11433
+ },
11434
+ minLength: 1,
11435
+ },
11436
+ },
11437
+ },
11438
+ },
11439
+ output: {
11440
+ encoding: 'application/json',
11441
+ schema: {
11442
+ type: 'object',
11443
+ required: ['convo'],
11444
+ properties: {
11445
+ convo: {
11446
+ type: 'ref',
11447
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11448
+ },
11449
+ addedMembers: {
11450
+ type: 'array',
11451
+ items: {
11452
+ type: 'ref',
11453
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
11454
+ },
11455
+ },
11456
+ },
11457
+ },
11458
+ },
11459
+ },
11460
+ },
11461
+ },
11462
+ ChatBskyGroupApproveJoinRequest: {
11463
+ lexicon: 1,
11464
+ id: 'chat.bsky.group.approveJoinRequest',
11465
+ defs: {
11466
+ main: {
11467
+ type: 'procedure',
11468
+ description: '[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.',
11469
+ errors: [
11470
+ {
11471
+ name: 'InvalidConvo',
11472
+ },
11473
+ {
11474
+ name: 'InsufficientRole',
11475
+ },
11476
+ {
11477
+ name: 'MemberLimitReached',
11478
+ },
11479
+ ],
11480
+ input: {
11481
+ encoding: 'application/json',
11482
+ schema: {
11483
+ type: 'object',
11484
+ required: ['convoId', 'member'],
11485
+ properties: {
11486
+ convoId: {
11487
+ type: 'string',
11488
+ },
11489
+ member: {
11490
+ type: 'string',
11491
+ format: 'did',
11492
+ },
10021
11493
  },
10022
11494
  },
10023
11495
  },
@@ -10025,28 +11497,11 @@ exports.schemaDict = {
10025
11497
  encoding: 'application/json',
10026
11498
  schema: {
10027
11499
  type: 'object',
10028
- required: ['logs'],
11500
+ required: ['convo'],
10029
11501
  properties: {
10030
- cursor: {
10031
- type: 'string',
10032
- },
10033
- logs: {
10034
- type: 'array',
10035
- items: {
10036
- type: 'union',
10037
- refs: [
10038
- 'lex:chat.bsky.convo.defs#logBeginConvo',
10039
- 'lex:chat.bsky.convo.defs#logAcceptConvo',
10040
- 'lex:chat.bsky.convo.defs#logLeaveConvo',
10041
- 'lex:chat.bsky.convo.defs#logMuteConvo',
10042
- 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10043
- 'lex:chat.bsky.convo.defs#logCreateMessage',
10044
- 'lex:chat.bsky.convo.defs#logDeleteMessage',
10045
- 'lex:chat.bsky.convo.defs#logReadMessage',
10046
- 'lex:chat.bsky.convo.defs#logAddReaction',
10047
- 'lex:chat.bsky.convo.defs#logRemoveReaction',
10048
- ],
10049
- },
11502
+ convo: {
11503
+ type: 'ref',
11504
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10050
11505
  },
10051
11506
  },
10052
11507
  },
@@ -10054,70 +11509,104 @@ exports.schemaDict = {
10054
11509
  },
10055
11510
  },
10056
11511
  },
10057
- ChatBskyConvoGetMessages: {
11512
+ ChatBskyGroupCreateGroup: {
10058
11513
  lexicon: 1,
10059
- id: 'chat.bsky.convo.getMessages',
11514
+ id: 'chat.bsky.group.createGroup',
10060
11515
  defs: {
10061
11516
  main: {
10062
- type: 'query',
10063
- parameters: {
10064
- type: 'params',
10065
- required: ['convoId'],
10066
- properties: {
10067
- convoId: {
10068
- type: 'string',
10069
- },
10070
- limit: {
10071
- type: 'integer',
10072
- minimum: 1,
10073
- maximum: 100,
10074
- default: 50,
10075
- },
10076
- cursor: {
10077
- type: 'string',
10078
- },
11517
+ type: 'procedure',
11518
+ description: "[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'.",
11519
+ errors: [
11520
+ {
11521
+ name: 'AccountSuspended',
10079
11522
  },
10080
- },
10081
- output: {
11523
+ {
11524
+ name: 'BlockedActor',
11525
+ },
11526
+ {
11527
+ name: 'GroupInvitesDisabled',
11528
+ },
11529
+ {
11530
+ name: 'NotFollowedBySender',
11531
+ },
11532
+ {
11533
+ name: 'RecipientNotFound',
11534
+ },
11535
+ ],
11536
+ input: {
10082
11537
  encoding: 'application/json',
10083
11538
  schema: {
10084
11539
  type: 'object',
10085
- required: ['messages'],
11540
+ required: ['members', 'name'],
10086
11541
  properties: {
10087
- cursor: {
10088
- type: 'string',
10089
- },
10090
- messages: {
11542
+ members: {
10091
11543
  type: 'array',
11544
+ maxLength: 49,
10092
11545
  items: {
10093
- type: 'union',
10094
- refs: [
10095
- 'lex:chat.bsky.convo.defs#messageView',
10096
- 'lex:chat.bsky.convo.defs#deletedMessageView',
10097
- ],
11546
+ type: 'string',
11547
+ format: 'did',
10098
11548
  },
10099
11549
  },
11550
+ name: {
11551
+ type: 'string',
11552
+ minLength: 1,
11553
+ maxGraphemes: 128,
11554
+ maxLength: 1280,
11555
+ },
11556
+ },
11557
+ },
11558
+ },
11559
+ output: {
11560
+ encoding: 'application/json',
11561
+ schema: {
11562
+ type: 'object',
11563
+ required: ['convo'],
11564
+ properties: {
11565
+ convo: {
11566
+ type: 'ref',
11567
+ ref: 'lex:chat.bsky.convo.defs#convoView',
11568
+ },
10100
11569
  },
10101
11570
  },
10102
11571
  },
10103
11572
  },
10104
11573
  },
10105
11574
  },
10106
- ChatBskyConvoLeaveConvo: {
11575
+ ChatBskyGroupCreateJoinLink: {
10107
11576
  lexicon: 1,
10108
- id: 'chat.bsky.convo.leaveConvo',
11577
+ id: 'chat.bsky.group.createJoinLink',
10109
11578
  defs: {
10110
11579
  main: {
10111
11580
  type: 'procedure',
11581
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a join link for the group convo.',
11582
+ errors: [
11583
+ {
11584
+ name: 'EnabledJoinLinkAlreadyExists',
11585
+ },
11586
+ {
11587
+ name: 'InvalidConvo',
11588
+ },
11589
+ {
11590
+ name: 'InsufficientRole',
11591
+ },
11592
+ ],
10112
11593
  input: {
10113
11594
  encoding: 'application/json',
10114
11595
  schema: {
10115
11596
  type: 'object',
10116
- required: ['convoId'],
11597
+ required: ['convoId', 'joinRule'],
10117
11598
  properties: {
10118
11599
  convoId: {
10119
11600
  type: 'string',
10120
11601
  },
11602
+ requireApproval: {
11603
+ type: 'boolean',
11604
+ default: false,
11605
+ },
11606
+ joinRule: {
11607
+ type: 'ref',
11608
+ ref: 'lex:chat.bsky.group.defs#joinRule',
11609
+ },
10121
11610
  },
10122
11611
  },
10123
11612
  },
@@ -10125,13 +11614,11 @@ exports.schemaDict = {
10125
11614
  encoding: 'application/json',
10126
11615
  schema: {
10127
11616
  type: 'object',
10128
- required: ['convoId', 'rev'],
11617
+ required: ['joinLink'],
10129
11618
  properties: {
10130
- convoId: {
10131
- type: 'string',
10132
- },
10133
- rev: {
10134
- type: 'string',
11619
+ joinLink: {
11620
+ type: 'ref',
11621
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10135
11622
  },
10136
11623
  },
10137
11624
  },
@@ -10139,31 +11626,114 @@ exports.schemaDict = {
10139
11626
  },
10140
11627
  },
10141
11628
  },
10142
- ChatBskyConvoListConvos: {
11629
+ ChatBskyGroupDefs: {
10143
11630
  lexicon: 1,
10144
- id: 'chat.bsky.convo.listConvos',
11631
+ id: 'chat.bsky.group.defs',
11632
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here].',
11633
+ defs: {
11634
+ linkEnabledStatus: {
11635
+ type: 'string',
11636
+ knownValues: ['enabled', 'disabled'],
11637
+ },
11638
+ joinRule: {
11639
+ type: 'string',
11640
+ knownValues: ['anyone', 'followedByOwner'],
11641
+ },
11642
+ joinLinkView: {
11643
+ type: 'object',
11644
+ required: [
11645
+ 'code',
11646
+ 'enabledStatus',
11647
+ 'requireApproval',
11648
+ 'joinRule',
11649
+ 'createdAt',
11650
+ ],
11651
+ properties: {
11652
+ code: {
11653
+ type: 'string',
11654
+ },
11655
+ enabledStatus: {
11656
+ type: 'ref',
11657
+ ref: 'lex:chat.bsky.group.defs#linkEnabledStatus',
11658
+ },
11659
+ requireApproval: {
11660
+ type: 'boolean',
11661
+ },
11662
+ joinRule: {
11663
+ type: 'ref',
11664
+ ref: 'lex:chat.bsky.group.defs#joinRule',
11665
+ },
11666
+ createdAt: {
11667
+ type: 'string',
11668
+ format: 'datetime',
11669
+ },
11670
+ },
11671
+ },
11672
+ groupPublicView: {
11673
+ type: 'object',
11674
+ required: ['name', 'owner', 'memberCount', 'requireApproval'],
11675
+ properties: {
11676
+ name: {
11677
+ type: 'string',
11678
+ },
11679
+ owner: {
11680
+ type: 'ref',
11681
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
11682
+ },
11683
+ memberCount: {
11684
+ type: 'integer',
11685
+ },
11686
+ requireApproval: {
11687
+ type: 'boolean',
11688
+ },
11689
+ },
11690
+ },
11691
+ joinRequestView: {
11692
+ type: 'object',
11693
+ required: ['convoId', 'requestedBy', 'requestedAt'],
11694
+ properties: {
11695
+ convoId: {
11696
+ type: 'string',
11697
+ },
11698
+ requestedBy: {
11699
+ type: 'ref',
11700
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
11701
+ },
11702
+ requestedAt: {
11703
+ type: 'string',
11704
+ format: 'datetime',
11705
+ },
11706
+ },
11707
+ },
11708
+ },
11709
+ },
11710
+ ChatBskyGroupDisableJoinLink: {
11711
+ lexicon: 1,
11712
+ id: 'chat.bsky.group.disableJoinLink',
10145
11713
  defs: {
10146
11714
  main: {
10147
- type: 'query',
10148
- parameters: {
10149
- type: 'params',
10150
- properties: {
10151
- limit: {
10152
- type: 'integer',
10153
- minimum: 1,
10154
- maximum: 100,
10155
- default: 50,
10156
- },
10157
- cursor: {
10158
- type: 'string',
10159
- },
10160
- readState: {
10161
- type: 'string',
10162
- knownValues: ['unread'],
10163
- },
10164
- status: {
10165
- type: 'string',
10166
- knownValues: ['request', 'accepted'],
11715
+ type: 'procedure',
11716
+ description: '[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.',
11717
+ errors: [
11718
+ {
11719
+ name: 'InvalidConvo',
11720
+ },
11721
+ {
11722
+ name: 'InsufficientRole',
11723
+ },
11724
+ {
11725
+ name: 'NoJoinLink',
11726
+ },
11727
+ ],
11728
+ input: {
11729
+ encoding: 'application/json',
11730
+ schema: {
11731
+ type: 'object',
11732
+ required: ['convoId'],
11733
+ properties: {
11734
+ convoId: {
11735
+ type: 'string',
11736
+ },
10167
11737
  },
10168
11738
  },
10169
11739
  },
@@ -10171,17 +11741,11 @@ exports.schemaDict = {
10171
11741
  encoding: 'application/json',
10172
11742
  schema: {
10173
11743
  type: 'object',
10174
- required: ['convos'],
11744
+ required: ['joinLink'],
10175
11745
  properties: {
10176
- cursor: {
10177
- type: 'string',
10178
- },
10179
- convos: {
10180
- type: 'array',
10181
- items: {
10182
- type: 'ref',
10183
- ref: 'lex:chat.bsky.convo.defs#convoView',
10184
- },
11746
+ joinLink: {
11747
+ type: 'ref',
11748
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10185
11749
  },
10186
11750
  },
10187
11751
  },
@@ -10189,21 +11753,39 @@ exports.schemaDict = {
10189
11753
  },
10190
11754
  },
10191
11755
  },
10192
- ChatBskyConvoMuteConvo: {
11756
+ ChatBskyGroupEditGroup: {
10193
11757
  lexicon: 1,
10194
- id: 'chat.bsky.convo.muteConvo',
11758
+ id: 'chat.bsky.group.editGroup',
10195
11759
  defs: {
10196
11760
  main: {
10197
11761
  type: 'procedure',
11762
+ description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Edits group settings.',
11763
+ errors: [
11764
+ {
11765
+ name: 'ConvoLocked',
11766
+ },
11767
+ {
11768
+ name: 'InvalidConvo',
11769
+ },
11770
+ {
11771
+ name: 'InsufficientRole',
11772
+ },
11773
+ ],
10198
11774
  input: {
10199
11775
  encoding: 'application/json',
10200
11776
  schema: {
10201
11777
  type: 'object',
10202
- required: ['convoId'],
11778
+ required: ['convoId', 'name'],
10203
11779
  properties: {
10204
11780
  convoId: {
10205
11781
  type: 'string',
10206
11782
  },
11783
+ name: {
11784
+ type: 'string',
11785
+ minLength: 1,
11786
+ maxGraphemes: 128,
11787
+ maxLength: 1280,
11788
+ },
10207
11789
  },
10208
11790
  },
10209
11791
  },
@@ -10223,31 +11805,39 @@ exports.schemaDict = {
10223
11805
  },
10224
11806
  },
10225
11807
  },
10226
- ChatBskyConvoRemoveReaction: {
11808
+ ChatBskyGroupEditJoinLink: {
10227
11809
  lexicon: 1,
10228
- id: 'chat.bsky.convo.removeReaction',
11810
+ id: 'chat.bsky.group.editJoinLink',
10229
11811
  defs: {
10230
11812
  main: {
10231
11813
  type: 'procedure',
10232
- description: "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.",
11814
+ description: '[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.',
11815
+ errors: [
11816
+ {
11817
+ name: 'InvalidConvo',
11818
+ },
11819
+ {
11820
+ name: 'InsufficientRole',
11821
+ },
11822
+ {
11823
+ name: 'NoJoinLink',
11824
+ },
11825
+ ],
10233
11826
  input: {
10234
11827
  encoding: 'application/json',
10235
11828
  schema: {
10236
11829
  type: 'object',
10237
- required: ['convoId', 'messageId', 'value'],
11830
+ required: ['convoId'],
10238
11831
  properties: {
10239
11832
  convoId: {
10240
11833
  type: 'string',
10241
- },
10242
- messageId: {
10243
- type: 'string',
10244
- },
10245
- value: {
10246
- type: 'string',
10247
- minLength: 1,
10248
- maxLength: 64,
10249
- minGraphemes: 1,
10250
- maxGraphemes: 1,
11834
+ },
11835
+ requireApproval: {
11836
+ type: 'boolean',
11837
+ },
11838
+ joinRule: {
11839
+ type: 'ref',
11840
+ ref: 'lex:chat.bsky.group.defs#joinRule',
10251
11841
  },
10252
11842
  },
10253
11843
  },
@@ -10256,130 +11846,187 @@ exports.schemaDict = {
10256
11846
  encoding: 'application/json',
10257
11847
  schema: {
10258
11848
  type: 'object',
10259
- required: ['message'],
11849
+ required: ['joinLink'],
10260
11850
  properties: {
10261
- message: {
11851
+ joinLink: {
10262
11852
  type: 'ref',
10263
- ref: 'lex:chat.bsky.convo.defs#messageView',
11853
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10264
11854
  },
10265
11855
  },
10266
11856
  },
10267
11857
  },
10268
- errors: [
10269
- {
10270
- name: 'ReactionMessageDeleted',
10271
- description: 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
10272
- },
10273
- {
10274
- name: 'ReactionInvalidValue',
10275
- description: 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
10276
- },
10277
- ],
10278
11858
  },
10279
11859
  },
10280
11860
  },
10281
- ChatBskyConvoSendMessage: {
11861
+ ChatBskyGroupEnableJoinLink: {
10282
11862
  lexicon: 1,
10283
- id: 'chat.bsky.convo.sendMessage',
11863
+ id: 'chat.bsky.group.enableJoinLink',
10284
11864
  defs: {
10285
11865
  main: {
10286
11866
  type: 'procedure',
11867
+ description: '[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.',
11868
+ errors: [
11869
+ {
11870
+ name: 'InvalidConvo',
11871
+ },
11872
+ {
11873
+ name: 'InsufficientRole',
11874
+ },
11875
+ {
11876
+ name: 'NoJoinLink',
11877
+ },
11878
+ {
11879
+ name: 'LinkAlreadyEnabled',
11880
+ },
11881
+ ],
10287
11882
  input: {
10288
11883
  encoding: 'application/json',
10289
11884
  schema: {
10290
11885
  type: 'object',
10291
- required: ['convoId', 'message'],
11886
+ required: ['convoId'],
10292
11887
  properties: {
10293
11888
  convoId: {
10294
11889
  type: 'string',
10295
11890
  },
10296
- message: {
10297
- type: 'ref',
10298
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10299
- },
10300
11891
  },
10301
11892
  },
10302
11893
  },
10303
11894
  output: {
10304
11895
  encoding: 'application/json',
10305
11896
  schema: {
10306
- type: 'ref',
10307
- ref: 'lex:chat.bsky.convo.defs#messageView',
11897
+ type: 'object',
11898
+ required: ['joinLink'],
11899
+ properties: {
11900
+ joinLink: {
11901
+ type: 'ref',
11902
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
11903
+ },
11904
+ },
10308
11905
  },
10309
11906
  },
10310
11907
  },
10311
11908
  },
10312
11909
  },
10313
- ChatBskyConvoSendMessageBatch: {
11910
+ ChatBskyGroupGetGroupPublicInfo: {
10314
11911
  lexicon: 1,
10315
- id: 'chat.bsky.convo.sendMessageBatch',
11912
+ id: 'chat.bsky.group.getGroupPublicInfo',
10316
11913
  defs: {
10317
11914
  main: {
10318
- type: 'procedure',
10319
- input: {
11915
+ type: 'query',
11916
+ description: '[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.',
11917
+ errors: [
11918
+ {
11919
+ name: 'InvalidCode',
11920
+ },
11921
+ ],
11922
+ parameters: {
11923
+ type: 'params',
11924
+ required: ['code'],
11925
+ properties: {
11926
+ code: {
11927
+ type: 'string',
11928
+ },
11929
+ },
11930
+ },
11931
+ output: {
10320
11932
  encoding: 'application/json',
10321
11933
  schema: {
10322
11934
  type: 'object',
10323
- required: ['items'],
11935
+ required: ['group'],
10324
11936
  properties: {
10325
- items: {
10326
- type: 'array',
10327
- maxLength: 100,
10328
- items: {
10329
- type: 'ref',
10330
- ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
10331
- },
11937
+ group: {
11938
+ type: 'ref',
11939
+ ref: 'lex:chat.bsky.group.defs#groupPublicView',
10332
11940
  },
10333
11941
  },
10334
11942
  },
10335
11943
  },
11944
+ },
11945
+ },
11946
+ },
11947
+ ChatBskyGroupListJoinRequests: {
11948
+ lexicon: 1,
11949
+ id: 'chat.bsky.group.listJoinRequests',
11950
+ defs: {
11951
+ main: {
11952
+ type: 'query',
11953
+ description: "[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.",
11954
+ errors: [
11955
+ {
11956
+ name: 'InvalidConvo',
11957
+ },
11958
+ {
11959
+ name: 'InsufficientRole',
11960
+ },
11961
+ ],
11962
+ parameters: {
11963
+ type: 'params',
11964
+ required: ['convoId'],
11965
+ properties: {
11966
+ convoId: {
11967
+ type: 'string',
11968
+ },
11969
+ limit: {
11970
+ type: 'integer',
11971
+ minimum: 1,
11972
+ maximum: 100,
11973
+ default: 50,
11974
+ },
11975
+ cursor: {
11976
+ type: 'string',
11977
+ },
11978
+ },
11979
+ },
10336
11980
  output: {
10337
11981
  encoding: 'application/json',
10338
11982
  schema: {
10339
11983
  type: 'object',
10340
- required: ['items'],
11984
+ required: ['requests'],
10341
11985
  properties: {
10342
- items: {
11986
+ cursor: {
11987
+ type: 'string',
11988
+ },
11989
+ requests: {
10343
11990
  type: 'array',
10344
11991
  items: {
10345
11992
  type: 'ref',
10346
- ref: 'lex:chat.bsky.convo.defs#messageView',
11993
+ ref: 'lex:chat.bsky.group.defs#joinRequestView',
10347
11994
  },
10348
11995
  },
10349
11996
  },
10350
11997
  },
10351
11998
  },
10352
11999
  },
10353
- batchItem: {
10354
- type: 'object',
10355
- required: ['convoId', 'message'],
10356
- properties: {
10357
- convoId: {
10358
- type: 'string',
10359
- },
10360
- message: {
10361
- type: 'ref',
10362
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10363
- },
10364
- },
10365
- },
10366
12000
  },
10367
12001
  },
10368
- ChatBskyConvoUnmuteConvo: {
12002
+ ChatBskyGroupRejectJoinRequest: {
10369
12003
  lexicon: 1,
10370
- id: 'chat.bsky.convo.unmuteConvo',
12004
+ id: 'chat.bsky.group.rejectJoinRequest',
10371
12005
  defs: {
10372
12006
  main: {
10373
12007
  type: 'procedure',
12008
+ description: '[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.',
12009
+ errors: [
12010
+ {
12011
+ name: 'InvalidConvo',
12012
+ },
12013
+ {
12014
+ name: 'InsufficientRole',
12015
+ },
12016
+ ],
10374
12017
  input: {
10375
12018
  encoding: 'application/json',
10376
12019
  schema: {
10377
12020
  type: 'object',
10378
- required: ['convoId'],
12021
+ required: ['convoId', 'member'],
10379
12022
  properties: {
10380
12023
  convoId: {
10381
12024
  type: 'string',
10382
12025
  },
12026
+ member: {
12027
+ type: 'string',
12028
+ format: 'did',
12029
+ },
10383
12030
  },
10384
12031
  },
10385
12032
  },
@@ -10387,32 +12034,44 @@ exports.schemaDict = {
10387
12034
  encoding: 'application/json',
10388
12035
  schema: {
10389
12036
  type: 'object',
10390
- required: ['convo'],
10391
- properties: {
10392
- convo: {
10393
- type: 'ref',
10394
- ref: 'lex:chat.bsky.convo.defs#convoView',
10395
- },
10396
- },
12037
+ required: [],
12038
+ properties: {},
10397
12039
  },
10398
12040
  },
10399
12041
  },
10400
12042
  },
10401
12043
  },
10402
- ChatBskyConvoUpdateAllRead: {
12044
+ ChatBskyGroupRemoveMembers: {
10403
12045
  lexicon: 1,
10404
- id: 'chat.bsky.convo.updateAllRead',
12046
+ id: 'chat.bsky.group.removeMembers',
10405
12047
  defs: {
10406
12048
  main: {
10407
12049
  type: 'procedure',
12050
+ description: "[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.",
12051
+ errors: [
12052
+ {
12053
+ name: 'InvalidConvo',
12054
+ },
12055
+ {
12056
+ name: 'InsufficientRole',
12057
+ },
12058
+ ],
10408
12059
  input: {
10409
12060
  encoding: 'application/json',
10410
12061
  schema: {
10411
12062
  type: 'object',
12063
+ required: ['convoId', 'members'],
10412
12064
  properties: {
10413
- status: {
12065
+ convoId: {
10414
12066
  type: 'string',
10415
- knownValues: ['request', 'accepted'],
12067
+ },
12068
+ members: {
12069
+ type: 'array',
12070
+ items: {
12071
+ type: 'string',
12072
+ format: 'did',
12073
+ },
12074
+ minLength: 1,
10416
12075
  },
10417
12076
  },
10418
12077
  },
@@ -10421,11 +12080,11 @@ exports.schemaDict = {
10421
12080
  encoding: 'application/json',
10422
12081
  schema: {
10423
12082
  type: 'object',
10424
- required: ['updatedCount'],
12083
+ required: ['convo'],
10425
12084
  properties: {
10426
- updatedCount: {
10427
- description: 'The count of updated convos.',
10428
- type: 'integer',
12085
+ convo: {
12086
+ type: 'ref',
12087
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10429
12088
  },
10430
12089
  },
10431
12090
  },
@@ -10433,22 +12092,40 @@ exports.schemaDict = {
10433
12092
  },
10434
12093
  },
10435
12094
  },
10436
- ChatBskyConvoUpdateRead: {
12095
+ ChatBskyGroupRequestJoin: {
10437
12096
  lexicon: 1,
10438
- id: 'chat.bsky.convo.updateRead',
12097
+ id: 'chat.bsky.group.requestJoin',
10439
12098
  defs: {
10440
12099
  main: {
10441
12100
  type: 'procedure',
12101
+ description: '[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.',
12102
+ errors: [
12103
+ {
12104
+ name: 'ConvoLocked',
12105
+ },
12106
+ {
12107
+ name: 'FollowRequired',
12108
+ },
12109
+ {
12110
+ name: 'InvalidCode',
12111
+ },
12112
+ {
12113
+ name: 'LinkDisabled',
12114
+ },
12115
+ {
12116
+ name: 'MemberLimitReached',
12117
+ },
12118
+ {
12119
+ name: 'UserKicked',
12120
+ },
12121
+ ],
10442
12122
  input: {
10443
12123
  encoding: 'application/json',
10444
12124
  schema: {
10445
12125
  type: 'object',
10446
- required: ['convoId'],
12126
+ required: ['code'],
10447
12127
  properties: {
10448
- convoId: {
10449
- type: 'string',
10450
- },
10451
- messageId: {
12128
+ code: {
10452
12129
  type: 'string',
10453
12130
  },
10454
12131
  },
@@ -10458,9 +12135,14 @@ exports.schemaDict = {
10458
12135
  encoding: 'application/json',
10459
12136
  schema: {
10460
12137
  type: 'object',
10461
- required: ['convo'],
12138
+ required: ['status'],
10462
12139
  properties: {
12140
+ status: {
12141
+ type: 'string',
12142
+ knownValues: ['joined', 'pending'],
12143
+ },
10463
12144
  convo: {
12145
+ description: 'The group convo joined. This is only present in the case of status=joined',
10464
12146
  type: 'ref',
10465
12147
  ref: 'lex:chat.bsky.convo.defs#convoView',
10466
12148
  },
@@ -10573,6 +12255,7 @@ exports.schemaDict = {
10573
12255
  refs: [
10574
12256
  'lex:chat.bsky.convo.defs#messageView',
10575
12257
  'lex:chat.bsky.convo.defs#deletedMessageView',
12258
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10576
12259
  ],
10577
12260
  },
10578
12261
  },
@@ -10582,6 +12265,74 @@ exports.schemaDict = {
10582
12265
  },
10583
12266
  },
10584
12267
  },
12268
+ ChatBskyModerationSubscribeModEvents: {
12269
+ lexicon: 1,
12270
+ id: 'chat.bsky.moderation.subscribeModEvents',
12271
+ defs: {
12272
+ main: {
12273
+ type: 'subscription',
12274
+ description: 'Subscribe to stream of chat events targeted to moderation. Private endpoint.',
12275
+ parameters: {
12276
+ type: 'params',
12277
+ properties: {
12278
+ cursor: {
12279
+ type: 'string',
12280
+ description: "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.",
12281
+ },
12282
+ },
12283
+ },
12284
+ message: {
12285
+ schema: {
12286
+ type: 'union',
12287
+ refs: [
12288
+ 'lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage',
12289
+ ],
12290
+ },
12291
+ },
12292
+ errors: [
12293
+ {
12294
+ name: 'FutureCursor',
12295
+ },
12296
+ {
12297
+ name: 'ConsumerTooSlow',
12298
+ description: 'If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection.',
12299
+ },
12300
+ ],
12301
+ },
12302
+ eventConvoFirstMessage: {
12303
+ type: 'object',
12304
+ required: ['createdAt', 'rev', 'convoId', 'user', 'recipients'],
12305
+ properties: {
12306
+ convoId: {
12307
+ type: 'string',
12308
+ },
12309
+ createdAt: {
12310
+ type: 'string',
12311
+ format: 'datetime',
12312
+ },
12313
+ messageId: {
12314
+ type: 'string',
12315
+ },
12316
+ recipients: {
12317
+ description: 'The list of DIDs message recipients. Does not include the sender, which is in the `user` field',
12318
+ type: 'array',
12319
+ items: {
12320
+ type: 'string',
12321
+ format: 'did',
12322
+ },
12323
+ },
12324
+ rev: {
12325
+ type: 'string',
12326
+ },
12327
+ user: {
12328
+ description: 'The DID of the message author.',
12329
+ type: 'string',
12330
+ format: 'did',
12331
+ },
12332
+ },
12333
+ },
12334
+ },
12335
+ },
10585
12336
  ChatBskyModerationUpdateActorAccess: {
10586
12337
  lexicon: 1,
10587
12338
  id: 'chat.bsky.moderation.updateActorAccess',
@@ -20466,19 +22217,38 @@ exports.ids = {
20466
22217
  ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo',
20467
22218
  ChatBskyConvoGetConvoAvailability: 'chat.bsky.convo.getConvoAvailability',
20468
22219
  ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers',
22220
+ ChatBskyConvoGetConvoMembers: 'chat.bsky.convo.getConvoMembers',
20469
22221
  ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
20470
22222
  ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
20471
22223
  ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
22224
+ ChatBskyConvoListConvoRequests: 'chat.bsky.convo.listConvoRequests',
20472
22225
  ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
22226
+ ChatBskyConvoLockConvo: 'chat.bsky.convo.lockConvo',
20473
22227
  ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
20474
22228
  ChatBskyConvoRemoveReaction: 'chat.bsky.convo.removeReaction',
20475
22229
  ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
20476
22230
  ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
22231
+ ChatBskyConvoUnlockConvo: 'chat.bsky.convo.unlockConvo',
20477
22232
  ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
20478
22233
  ChatBskyConvoUpdateAllRead: 'chat.bsky.convo.updateAllRead',
20479
22234
  ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
22235
+ ChatBskyGroupAddMembers: 'chat.bsky.group.addMembers',
22236
+ ChatBskyGroupApproveJoinRequest: 'chat.bsky.group.approveJoinRequest',
22237
+ ChatBskyGroupCreateGroup: 'chat.bsky.group.createGroup',
22238
+ ChatBskyGroupCreateJoinLink: 'chat.bsky.group.createJoinLink',
22239
+ ChatBskyGroupDefs: 'chat.bsky.group.defs',
22240
+ ChatBskyGroupDisableJoinLink: 'chat.bsky.group.disableJoinLink',
22241
+ ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
22242
+ ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
22243
+ ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
22244
+ ChatBskyGroupGetGroupPublicInfo: 'chat.bsky.group.getGroupPublicInfo',
22245
+ ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
22246
+ ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',
22247
+ ChatBskyGroupRemoveMembers: 'chat.bsky.group.removeMembers',
22248
+ ChatBskyGroupRequestJoin: 'chat.bsky.group.requestJoin',
20480
22249
  ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
20481
22250
  ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
22251
+ ChatBskyModerationSubscribeModEvents: 'chat.bsky.moderation.subscribeModEvents',
20482
22252
  ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
20483
22253
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
20484
22254
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',