@atproto/api 0.19.7 → 0.19.9

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