@atproto/ozone 0.1.169 → 0.1.171

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/lexicon/index.d.ts +39 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +89 -2
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +16113 -13071
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +1978 -281
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/lexicon/types/app/bsky/embed/images.d.ts +1 -0
  14. package/dist/lexicon/types/app/bsky/embed/images.d.ts.map +1 -1
  15. package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
  16. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +2 -0
  17. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  18. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  19. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +20 -0
  20. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
  21. package/dist/lexicon/types/chat/bsky/actor/defs.js +18 -0
  22. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
  23. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.d.ts +1 -0
  24. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.d.ts.map +1 -1
  25. package/dist/lexicon/types/chat/bsky/convo/acceptConvo.js.map +1 -1
  26. package/dist/lexicon/types/chat/bsky/convo/addReaction.d.ts +1 -1
  27. package/dist/lexicon/types/chat/bsky/convo/addReaction.d.ts.map +1 -1
  28. package/dist/lexicon/types/chat/bsky/convo/addReaction.js.map +1 -1
  29. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +290 -3
  30. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  31. package/dist/lexicon/types/chat/bsky/convo/defs.js +288 -0
  32. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  33. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +1 -0
  34. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -1
  35. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -1
  36. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +1 -0
  37. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -1
  38. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -1
  39. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +1 -0
  40. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
  41. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
  42. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +1 -1
  43. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  44. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -1
  45. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +2 -1
  46. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  47. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -1
  48. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +1 -0
  49. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -1
  50. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -1
  51. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.d.ts +28 -0
  52. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  53. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.js +7 -0
  54. package/dist/lexicon/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
  55. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +3 -0
  56. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  57. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -1
  58. package/dist/lexicon/types/chat/bsky/convo/lockConvo.d.ts +26 -0
  59. package/dist/lexicon/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  60. package/dist/lexicon/types/chat/bsky/convo/lockConvo.js +7 -0
  61. package/dist/lexicon/types/chat/bsky/convo/lockConvo.js.map +1 -0
  62. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +1 -0
  63. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -1
  64. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -1
  65. package/dist/lexicon/types/chat/bsky/convo/removeReaction.d.ts +1 -1
  66. package/dist/lexicon/types/chat/bsky/convo/removeReaction.d.ts.map +1 -1
  67. package/dist/lexicon/types/chat/bsky/convo/removeReaction.js.map +1 -1
  68. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +1 -0
  69. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
  70. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -1
  71. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +1 -0
  72. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
  73. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
  74. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.d.ts +26 -0
  75. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  76. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.js +7 -0
  77. package/dist/lexicon/types/chat/bsky/convo/unlockConvo.js.map +1 -0
  78. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +1 -0
  79. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -1
  80. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -1
  81. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +1 -0
  82. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -1
  83. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -1
  84. package/dist/lexicon/types/chat/bsky/group/addMembers.d.ts +27 -0
  85. package/dist/lexicon/types/chat/bsky/group/addMembers.d.ts.map +1 -0
  86. package/dist/lexicon/types/chat/bsky/group/addMembers.js +7 -0
  87. package/dist/lexicon/types/chat/bsky/group/addMembers.js.map +1 -0
  88. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.d.ts +27 -0
  89. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  90. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.js +7 -0
  91. package/dist/lexicon/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
  92. package/dist/lexicon/types/chat/bsky/group/createGroup.d.ts +27 -0
  93. package/dist/lexicon/types/chat/bsky/group/createGroup.d.ts.map +1 -0
  94. package/dist/lexicon/types/chat/bsky/group/createGroup.js +7 -0
  95. package/dist/lexicon/types/chat/bsky/group/createGroup.js.map +1 -0
  96. package/dist/lexicon/types/chat/bsky/group/createJoinLink.d.ts +28 -0
  97. package/dist/lexicon/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  98. package/dist/lexicon/types/chat/bsky/group/createJoinLink.js +7 -0
  99. package/dist/lexicon/types/chat/bsky/group/createJoinLink.js.map +1 -0
  100. package/dist/lexicon/types/chat/bsky/group/defs.d.ts +35 -0
  101. package/dist/lexicon/types/chat/bsky/group/defs.d.ts.map +1 -0
  102. package/dist/lexicon/types/chat/bsky/group/defs.js +34 -0
  103. package/dist/lexicon/types/chat/bsky/group/defs.js.map +1 -0
  104. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.d.ts +26 -0
  105. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  106. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.js +7 -0
  107. package/dist/lexicon/types/chat/bsky/group/disableJoinLink.js.map +1 -0
  108. package/dist/lexicon/types/chat/bsky/group/editGroup.d.ts +27 -0
  109. package/dist/lexicon/types/chat/bsky/group/editGroup.d.ts.map +1 -0
  110. package/dist/lexicon/types/chat/bsky/group/editGroup.js +7 -0
  111. package/dist/lexicon/types/chat/bsky/group/editGroup.js.map +1 -0
  112. package/dist/lexicon/types/chat/bsky/group/editJoinLink.d.ts +28 -0
  113. package/dist/lexicon/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  114. package/dist/lexicon/types/chat/bsky/group/editJoinLink.js +7 -0
  115. package/dist/lexicon/types/chat/bsky/group/editJoinLink.js.map +1 -0
  116. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.d.ts +26 -0
  117. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  118. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.js +7 -0
  119. package/dist/lexicon/types/chat/bsky/group/enableJoinLink.js.map +1 -0
  120. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.d.ts +23 -0
  121. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  122. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.js +7 -0
  123. package/dist/lexicon/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  124. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.d.ts +26 -0
  125. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  126. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.js +7 -0
  127. package/dist/lexicon/types/chat/bsky/group/listJoinRequests.js.map +1 -0
  128. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.d.ts +25 -0
  129. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  130. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.js +7 -0
  131. package/dist/lexicon/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  132. package/dist/lexicon/types/chat/bsky/group/removeMembers.d.ts +27 -0
  133. package/dist/lexicon/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
  134. package/dist/lexicon/types/chat/bsky/group/removeMembers.js +7 -0
  135. package/dist/lexicon/types/chat/bsky/group/removeMembers.js.map +1 -0
  136. package/dist/lexicon/types/chat/bsky/group/requestJoin.d.ts +27 -0
  137. package/dist/lexicon/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
  138. package/dist/lexicon/types/chat/bsky/group/requestJoin.js +7 -0
  139. package/dist/lexicon/types/chat/bsky/group/requestJoin.js.map +1 -0
  140. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
  141. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  142. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  143. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.d.ts +29 -0
  144. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  145. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.js +16 -0
  146. package/dist/lexicon/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  147. package/package.json +7 -7
  148. package/src/lexicon/index.ts +230 -0
  149. package/src/lexicon/lexicons.ts +2071 -285
  150. package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
  151. package/src/lexicon/types/app/bsky/embed/images.ts +1 -0
  152. package/src/lexicon/types/chat/bsky/actor/declaration.ts +2 -0
  153. package/src/lexicon/types/chat/bsky/actor/defs.ts +39 -0
  154. package/src/lexicon/types/chat/bsky/convo/acceptConvo.ts +1 -0
  155. package/src/lexicon/types/chat/bsky/convo/addReaction.ts +2 -0
  156. package/src/lexicon/types/chat/bsky/convo/defs.ts +651 -2
  157. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +1 -0
  158. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +1 -0
  159. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +6 -0
  160. package/src/lexicon/types/chat/bsky/convo/getLog.ts +17 -0
  161. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +2 -0
  162. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +1 -0
  163. package/src/lexicon/types/chat/bsky/convo/listConvoRequests.ts +47 -0
  164. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +3 -0
  165. package/src/lexicon/types/chat/bsky/convo/lockConvo.ts +45 -0
  166. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +1 -0
  167. package/src/lexicon/types/chat/bsky/convo/removeReaction.ts +5 -1
  168. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +1 -0
  169. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +1 -0
  170. package/src/lexicon/types/chat/bsky/convo/unlockConvo.ts +45 -0
  171. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +1 -0
  172. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +1 -0
  173. package/src/lexicon/types/chat/bsky/group/addMembers.ts +55 -0
  174. package/src/lexicon/types/chat/bsky/group/approveJoinRequest.ts +46 -0
  175. package/src/lexicon/types/chat/bsky/group/createGroup.ts +51 -0
  176. package/src/lexicon/types/chat/bsky/group/createJoinLink.ts +47 -0
  177. package/src/lexicon/types/chat/bsky/group/defs.ts +73 -0
  178. package/src/lexicon/types/chat/bsky/group/disableJoinLink.ts +45 -0
  179. package/src/lexicon/types/chat/bsky/group/editGroup.ts +46 -0
  180. package/src/lexicon/types/chat/bsky/group/editJoinLink.ts +47 -0
  181. package/src/lexicon/types/chat/bsky/group/enableJoinLink.ts +49 -0
  182. package/src/lexicon/types/chat/bsky/group/getGroupPublicInfo.ts +41 -0
  183. package/src/lexicon/types/chat/bsky/group/listJoinRequests.ts +44 -0
  184. package/src/lexicon/types/chat/bsky/group/rejectJoinRequest.ts +43 -0
  185. package/src/lexicon/types/chat/bsky/group/removeMembers.ts +46 -0
  186. package/src/lexicon/types/chat/bsky/group/requestJoin.ts +52 -0
  187. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +1 -0
  188. package/src/lexicon/types/chat/bsky/moderation/subscribeModEvents.ts +47 -0
  189. package/tsconfig.build.tsbuildinfo +1 -1
@@ -841,6 +841,13 @@ exports.schemaDict = {
841
841
  description: 'An optional embed associated with the status.',
842
842
  refs: ['lex:app.bsky.embed.external#view'],
843
843
  },
844
+ labels: {
845
+ type: 'array',
846
+ items: {
847
+ type: 'ref',
848
+ ref: 'lex:com.atproto.label.defs#label',
849
+ },
850
+ },
844
851
  expiresAt: {
845
852
  type: 'string',
846
853
  description: 'The date when this status will expire. The application might choose to no longer return the status after expiration.',
@@ -2649,8 +2656,9 @@ exports.schemaDict = {
2649
2656
  properties: {
2650
2657
  image: {
2651
2658
  type: 'blob',
2659
+ description: 'The raw image file. May be up to 2 MB, formerly limited to 1 MB.',
2652
2660
  accept: ['image/*'],
2653
- maxSize: 1000000,
2661
+ maxSize: 2000000,
2654
2662
  },
2655
2663
  alt: {
2656
2664
  type: 'string',
@@ -9317,6 +9325,11 @@ exports.schemaDict = {
9317
9325
  type: 'string',
9318
9326
  knownValues: ['all', 'none', 'following'],
9319
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
+ },
9320
9333
  },
9321
9334
  },
9322
9335
  },
@@ -9326,6 +9339,10 @@ exports.schemaDict = {
9326
9339
  lexicon: 1,
9327
9340
  id: 'chat.bsky.actor.defs',
9328
9341
  defs: {
9342
+ memberRole: {
9343
+ type: 'string',
9344
+ knownValues: ['owner', 'standard'],
9345
+ },
9329
9346
  profileViewBasic: {
9330
9347
  type: 'object',
9331
9348
  required: ['did', 'handle'],
@@ -9362,6 +9379,10 @@ exports.schemaDict = {
9362
9379
  ref: 'lex:com.atproto.label.defs#label',
9363
9380
  },
9364
9381
  },
9382
+ createdAt: {
9383
+ type: 'string',
9384
+ format: 'datetime',
9385
+ },
9365
9386
  chatDisabled: {
9366
9387
  type: 'boolean',
9367
9388
  description: 'Set to true when the actor cannot actively participate in conversations',
@@ -9370,6 +9391,36 @@ exports.schemaDict = {
9370
9391
  type: 'ref',
9371
9392
  ref: 'lex:app.bsky.actor.defs#verificationState',
9372
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
+ },
9373
9424
  },
9374
9425
  },
9375
9426
  },
@@ -9408,6 +9459,12 @@ exports.schemaDict = {
9408
9459
  defs: {
9409
9460
  main: {
9410
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
+ ],
9411
9468
  input: {
9412
9469
  encoding: 'application/json',
9413
9470
  schema: {
@@ -9478,6 +9535,13 @@ exports.schemaDict = {
9478
9535
  },
9479
9536
  },
9480
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
+ },
9481
9545
  {
9482
9546
  name: 'ReactionMessageDeleted',
9483
9547
  description: 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
@@ -9498,6 +9562,18 @@ exports.schemaDict = {
9498
9562
  lexicon: 1,
9499
9563
  id: 'chat.bsky.convo.defs',
9500
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
+ },
9501
9577
  messageRef: {
9502
9578
  type: 'object',
9503
9579
  required: ['did', 'messageId', 'convoId'],
@@ -9582,6 +9658,181 @@ exports.schemaDict = {
9582
9658
  },
9583
9659
  },
9584
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
+ },
9585
9836
  deletedMessageView: {
9586
9837
  type: 'object',
9587
9838
  required: ['id', 'rev', 'sender', 'sentAt'],
@@ -9675,6 +9926,7 @@ exports.schemaDict = {
9675
9926
  refs: [
9676
9927
  'lex:chat.bsky.convo.defs#messageView',
9677
9928
  'lex:chat.bsky.convo.defs#deletedMessageView',
9929
+ 'lex:chat.bsky.convo.defs#systemMessageView',
9678
9930
  ],
9679
9931
  },
9680
9932
  lastReaction: {
@@ -9685,15 +9937,52 @@ exports.schemaDict = {
9685
9937
  type: 'boolean',
9686
9938
  },
9687
9939
  status: {
9688
- type: 'string',
9689
- 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',
9690
9943
  },
9691
9944
  unreadCount: {
9692
9945
  type: 'integer',
9693
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
+ },
9694
9982
  },
9695
9983
  },
9696
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.',
9697
9986
  type: 'object',
9698
9987
  required: ['rev', 'convoId'],
9699
9988
  properties: {
@@ -9706,6 +9995,7 @@ exports.schemaDict = {
9706
9995
  },
9707
9996
  },
9708
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.',
9709
9999
  type: 'object',
9710
10000
  required: ['rev', 'convoId'],
9711
10001
  properties: {
@@ -9718,6 +10008,7 @@ exports.schemaDict = {
9718
10008
  },
9719
10009
  },
9720
10010
  logLeaveConvo: {
10011
+ description: 'Event indicating the viewer left a convo. Can be direct or group.',
9721
10012
  type: 'object',
9722
10013
  required: ['rev', 'convoId'],
9723
10014
  properties: {
@@ -9730,6 +10021,7 @@ exports.schemaDict = {
9730
10021
  },
9731
10022
  },
9732
10023
  logMuteConvo: {
10024
+ description: 'Event indicating the viewer muted a convo. Can be direct or group.',
9733
10025
  type: 'object',
9734
10026
  required: ['rev', 'convoId'],
9735
10027
  properties: {
@@ -9742,6 +10034,7 @@ exports.schemaDict = {
9742
10034
  },
9743
10035
  },
9744
10036
  logUnmuteConvo: {
10037
+ description: 'Event indicating the viewer unmuted a convo. Can be direct or group.',
9745
10038
  type: 'object',
9746
10039
  required: ['rev', 'convoId'],
9747
10040
  properties: {
@@ -9754,6 +10047,7 @@ exports.schemaDict = {
9754
10047
  },
9755
10048
  },
9756
10049
  logCreateMessage: {
10050
+ description: 'Event indicating a user-originated message was created. Is not emitted for system messages.',
9757
10051
  type: 'object',
9758
10052
  required: ['rev', 'convoId', 'message'],
9759
10053
  properties: {
@@ -9773,6 +10067,7 @@ exports.schemaDict = {
9773
10067
  },
9774
10068
  },
9775
10069
  logDeleteMessage: {
10070
+ description: 'Event indicating a user-originated message was deleted. Is not emitted for system messages.',
9776
10071
  type: 'object',
9777
10072
  required: ['rev', 'convoId', 'message'],
9778
10073
  properties: {
@@ -9792,6 +10087,7 @@ exports.schemaDict = {
9792
10087
  },
9793
10088
  },
9794
10089
  logReadMessage: {
10090
+ description: 'DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message.',
9795
10091
  type: 'object',
9796
10092
  required: ['rev', 'convoId', 'message'],
9797
10093
  properties: {
@@ -9806,11 +10102,13 @@ exports.schemaDict = {
9806
10102
  refs: [
9807
10103
  'lex:chat.bsky.convo.defs#messageView',
9808
10104
  'lex:chat.bsky.convo.defs#deletedMessageView',
10105
+ 'lex:chat.bsky.convo.defs#systemMessageView',
9809
10106
  ],
9810
10107
  },
9811
10108
  },
9812
10109
  },
9813
10110
  logAddReaction: {
10111
+ description: 'Event indicating a reaction was added to a message.',
9814
10112
  type: 'object',
9815
10113
  required: ['rev', 'convoId', 'message', 'reaction'],
9816
10114
  properties: {
@@ -9834,6 +10132,7 @@ exports.schemaDict = {
9834
10132
  },
9835
10133
  },
9836
10134
  logRemoveReaction: {
10135
+ description: 'Event indicating a reaction was removed from a message.',
9837
10136
  type: 'object',
9838
10137
  required: ['rev', 'convoId', 'message', 'reaction'],
9839
10138
  properties: {
@@ -9856,88 +10155,1020 @@ exports.schemaDict = {
9856
10155
  },
9857
10156
  },
9858
10157
  },
9859
- },
9860
- },
9861
- ChatBskyConvoDeleteMessageForSelf: {
9862
- lexicon: 1,
9863
- id: 'chat.bsky.convo.deleteMessageForSelf',
9864
- defs: {
9865
- main: {
9866
- type: 'procedure',
9867
- input: {
9868
- encoding: 'application/json',
9869
- schema: {
9870
- type: 'object',
9871
- required: ['convoId', 'messageId'],
9872
- properties: {
9873
- convoId: {
9874
- type: 'string',
9875
- },
9876
- messageId: {
9877
- type: 'string',
9878
- },
9879
- },
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
+ ],
9880
10176
  },
9881
10177
  },
9882
- output: {
9883
- encoding: 'application/json',
9884
- 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: {
9885
10191
  type: 'ref',
9886
- ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
10192
+ ref: 'lex:chat.bsky.convo.defs#systemMessageDataAddMember',
9887
10193
  },
9888
10194
  },
9889
10195
  },
9890
- },
9891
- },
9892
- ChatBskyConvoGetConvo: {
9893
- lexicon: 1,
9894
- id: 'chat.bsky.convo.getConvo',
9895
- defs: {
9896
- main: {
9897
- type: 'query',
9898
- parameters: {
9899
- type: 'params',
9900
- required: ['convoId'],
9901
- properties: {
9902
- convoId: {
9903
- type: 'string',
9904
- },
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',
9905
10203
  },
9906
- },
9907
- output: {
9908
- encoding: 'application/json',
9909
- schema: {
9910
- type: 'object',
9911
- required: ['convo'],
9912
- properties: {
9913
- convo: {
9914
- type: 'ref',
9915
- ref: 'lex:chat.bsky.convo.defs#convoView',
9916
- },
9917
- },
10204
+ convoId: {
10205
+ type: 'string',
10206
+ },
10207
+ message: {
10208
+ type: 'ref',
10209
+ ref: 'lex:chat.bsky.convo.defs#systemMessageDataRemoveMember',
9918
10210
  },
9919
10211
  },
9920
10212
  },
9921
- },
9922
- },
9923
- ChatBskyConvoGetConvoAvailability: {
9924
- lexicon: 1,
9925
- id: 'chat.bsky.convo.getConvoAvailability',
9926
- defs: {
9927
- main: {
9928
- type: 'query',
9929
- description: 'Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.',
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',
10227
+ },
10228
+ },
10229
+ },
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',
10496
+ defs: {
10497
+ main: {
10498
+ type: 'query',
10499
+ description: 'Gets an existing conversation by its ID.',
10500
+ errors: [
10501
+ {
10502
+ name: 'InvalidConvo',
10503
+ },
10504
+ ],
10505
+ parameters: {
10506
+ type: 'params',
10507
+ required: ['convoId'],
10508
+ properties: {
10509
+ convoId: {
10510
+ type: 'string',
10511
+ },
10512
+ },
10513
+ },
10514
+ output: {
10515
+ encoding: 'application/json',
10516
+ schema: {
10517
+ type: 'object',
10518
+ required: ['convo'],
10519
+ properties: {
10520
+ convo: {
10521
+ type: 'ref',
10522
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10523
+ },
10524
+ },
10525
+ },
10526
+ },
10527
+ },
10528
+ },
10529
+ },
10530
+ ChatBskyConvoGetConvoAvailability: {
10531
+ lexicon: 1,
10532
+ id: 'chat.bsky.convo.getConvoAvailability',
10533
+ defs: {
10534
+ main: {
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.",
10537
+ parameters: {
10538
+ type: 'params',
10539
+ required: ['members'],
10540
+ properties: {
10541
+ members: {
10542
+ type: 'array',
10543
+ minLength: 1,
10544
+ maxLength: 10,
10545
+ items: {
10546
+ type: 'string',
10547
+ format: 'did',
10548
+ },
10549
+ },
10550
+ },
10551
+ },
10552
+ output: {
10553
+ encoding: 'application/json',
10554
+ schema: {
10555
+ type: 'object',
10556
+ required: ['canChat'],
10557
+ properties: {
10558
+ canChat: {
10559
+ type: 'boolean',
10560
+ },
10561
+ convo: {
10562
+ type: 'ref',
10563
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10564
+ },
10565
+ },
10566
+ },
10567
+ },
10568
+ },
10569
+ },
10570
+ },
10571
+ ChatBskyConvoGetConvoForMembers: {
10572
+ lexicon: 1,
10573
+ id: 'chat.bsky.convo.getConvoForMembers',
10574
+ defs: {
10575
+ main: {
10576
+ type: 'query',
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.',
9930
10846
  parameters: {
9931
10847
  type: 'params',
9932
- required: ['members'],
9933
10848
  properties: {
9934
- members: {
9935
- type: 'array',
9936
- minLength: 1,
9937
- maxLength: 10,
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: {
9938
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: {
9939
11171
  type: 'string',
9940
- format: 'did',
9941
11172
  },
9942
11173
  },
9943
11174
  },
@@ -9946,11 +11177,48 @@ exports.schemaDict = {
9946
11177
  encoding: 'application/json',
9947
11178
  schema: {
9948
11179
  type: 'object',
9949
- required: ['canChat'],
11180
+ required: ['convo'],
9950
11181
  properties: {
9951
- canChat: {
9952
- type: 'boolean',
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',
9953
11212
  },
11213
+ },
11214
+ },
11215
+ },
11216
+ output: {
11217
+ encoding: 'application/json',
11218
+ schema: {
11219
+ type: 'object',
11220
+ required: ['convo'],
11221
+ properties: {
9954
11222
  convo: {
9955
11223
  type: 'ref',
9956
11224
  ref: 'lex:chat.bsky.convo.defs#convoView',
@@ -9961,23 +11229,64 @@ exports.schemaDict = {
9961
11229
  },
9962
11230
  },
9963
11231
  },
9964
- ChatBskyConvoGetConvoForMembers: {
11232
+ ChatBskyConvoUpdateAllRead: {
9965
11233
  lexicon: 1,
9966
- id: 'chat.bsky.convo.getConvoForMembers',
11234
+ id: 'chat.bsky.convo.updateAllRead',
9967
11235
  defs: {
9968
11236
  main: {
9969
- type: 'query',
9970
- parameters: {
9971
- type: 'params',
9972
- required: ['members'],
9973
- properties: {
9974
- members: {
9975
- type: 'array',
9976
- minLength: 1,
9977
- maxLength: 10,
9978
- items: {
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: {
9979
11289
  type: 'string',
9980
- format: 'did',
9981
11290
  },
9982
11291
  },
9983
11292
  },
@@ -9998,18 +11307,109 @@ exports.schemaDict = {
9998
11307
  },
9999
11308
  },
10000
11309
  },
10001
- ChatBskyConvoGetLog: {
11310
+ ChatBskyGroupAddMembers: {
10002
11311
  lexicon: 1,
10003
- id: 'chat.bsky.convo.getLog',
11312
+ id: 'chat.bsky.group.addMembers',
10004
11313
  defs: {
10005
11314
  main: {
10006
- type: 'query',
10007
- parameters: {
10008
- type: 'params',
10009
- required: [],
10010
- properties: {
10011
- cursor: {
10012
- type: 'string',
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
+ },
10013
11413
  },
10014
11414
  },
10015
11415
  },
@@ -10017,28 +11417,11 @@ exports.schemaDict = {
10017
11417
  encoding: 'application/json',
10018
11418
  schema: {
10019
11419
  type: 'object',
10020
- required: ['logs'],
11420
+ required: ['convo'],
10021
11421
  properties: {
10022
- cursor: {
10023
- type: 'string',
10024
- },
10025
- logs: {
10026
- type: 'array',
10027
- items: {
10028
- type: 'union',
10029
- refs: [
10030
- 'lex:chat.bsky.convo.defs#logBeginConvo',
10031
- 'lex:chat.bsky.convo.defs#logAcceptConvo',
10032
- 'lex:chat.bsky.convo.defs#logLeaveConvo',
10033
- 'lex:chat.bsky.convo.defs#logMuteConvo',
10034
- 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10035
- 'lex:chat.bsky.convo.defs#logCreateMessage',
10036
- 'lex:chat.bsky.convo.defs#logDeleteMessage',
10037
- 'lex:chat.bsky.convo.defs#logReadMessage',
10038
- 'lex:chat.bsky.convo.defs#logAddReaction',
10039
- 'lex:chat.bsky.convo.defs#logRemoveReaction',
10040
- ],
10041
- },
11422
+ convo: {
11423
+ type: 'ref',
11424
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10042
11425
  },
10043
11426
  },
10044
11427
  },
@@ -10046,70 +11429,104 @@ exports.schemaDict = {
10046
11429
  },
10047
11430
  },
10048
11431
  },
10049
- ChatBskyConvoGetMessages: {
11432
+ ChatBskyGroupCreateGroup: {
10050
11433
  lexicon: 1,
10051
- id: 'chat.bsky.convo.getMessages',
11434
+ id: 'chat.bsky.group.createGroup',
10052
11435
  defs: {
10053
11436
  main: {
10054
- type: 'query',
10055
- parameters: {
10056
- type: 'params',
10057
- required: ['convoId'],
10058
- properties: {
10059
- convoId: {
10060
- type: 'string',
10061
- },
10062
- limit: {
10063
- type: 'integer',
10064
- minimum: 1,
10065
- maximum: 100,
10066
- default: 50,
10067
- },
10068
- cursor: {
10069
- type: 'string',
10070
- },
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',
10071
11442
  },
10072
- },
10073
- output: {
11443
+ {
11444
+ name: 'BlockedActor',
11445
+ },
11446
+ {
11447
+ name: 'GroupInvitesDisabled',
11448
+ },
11449
+ {
11450
+ name: 'NotFollowedBySender',
11451
+ },
11452
+ {
11453
+ name: 'RecipientNotFound',
11454
+ },
11455
+ ],
11456
+ input: {
10074
11457
  encoding: 'application/json',
10075
11458
  schema: {
10076
11459
  type: 'object',
10077
- required: ['messages'],
11460
+ required: ['members', 'name'],
10078
11461
  properties: {
10079
- cursor: {
10080
- type: 'string',
10081
- },
10082
- messages: {
11462
+ members: {
10083
11463
  type: 'array',
11464
+ maxLength: 49,
10084
11465
  items: {
10085
- type: 'union',
10086
- refs: [
10087
- 'lex:chat.bsky.convo.defs#messageView',
10088
- 'lex:chat.bsky.convo.defs#deletedMessageView',
10089
- ],
11466
+ type: 'string',
11467
+ format: 'did',
10090
11468
  },
10091
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
+ },
10092
11489
  },
10093
11490
  },
10094
11491
  },
10095
11492
  },
10096
11493
  },
10097
11494
  },
10098
- ChatBskyConvoLeaveConvo: {
11495
+ ChatBskyGroupCreateJoinLink: {
10099
11496
  lexicon: 1,
10100
- id: 'chat.bsky.convo.leaveConvo',
11497
+ id: 'chat.bsky.group.createJoinLink',
10101
11498
  defs: {
10102
11499
  main: {
10103
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
+ ],
10104
11513
  input: {
10105
11514
  encoding: 'application/json',
10106
11515
  schema: {
10107
11516
  type: 'object',
10108
- required: ['convoId'],
11517
+ required: ['convoId', 'joinRule'],
10109
11518
  properties: {
10110
11519
  convoId: {
10111
11520
  type: 'string',
10112
11521
  },
11522
+ requireApproval: {
11523
+ type: 'boolean',
11524
+ default: false,
11525
+ },
11526
+ joinRule: {
11527
+ type: 'ref',
11528
+ ref: 'lex:chat.bsky.group.defs#joinRule',
11529
+ },
10113
11530
  },
10114
11531
  },
10115
11532
  },
@@ -10117,13 +11534,11 @@ exports.schemaDict = {
10117
11534
  encoding: 'application/json',
10118
11535
  schema: {
10119
11536
  type: 'object',
10120
- required: ['convoId', 'rev'],
11537
+ required: ['joinLink'],
10121
11538
  properties: {
10122
- convoId: {
10123
- type: 'string',
10124
- },
10125
- rev: {
10126
- type: 'string',
11539
+ joinLink: {
11540
+ type: 'ref',
11541
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10127
11542
  },
10128
11543
  },
10129
11544
  },
@@ -10131,31 +11546,114 @@ exports.schemaDict = {
10131
11546
  },
10132
11547
  },
10133
11548
  },
10134
- ChatBskyConvoListConvos: {
11549
+ ChatBskyGroupDefs: {
10135
11550
  lexicon: 1,
10136
- 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',
10137
11633
  defs: {
10138
11634
  main: {
10139
- type: 'query',
10140
- parameters: {
10141
- type: 'params',
10142
- properties: {
10143
- limit: {
10144
- type: 'integer',
10145
- minimum: 1,
10146
- maximum: 100,
10147
- default: 50,
10148
- },
10149
- cursor: {
10150
- type: 'string',
10151
- },
10152
- readState: {
10153
- type: 'string',
10154
- knownValues: ['unread'],
10155
- },
10156
- status: {
10157
- type: 'string',
10158
- 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
+ },
10159
11657
  },
10160
11658
  },
10161
11659
  },
@@ -10163,17 +11661,11 @@ exports.schemaDict = {
10163
11661
  encoding: 'application/json',
10164
11662
  schema: {
10165
11663
  type: 'object',
10166
- required: ['convos'],
11664
+ required: ['joinLink'],
10167
11665
  properties: {
10168
- cursor: {
10169
- type: 'string',
10170
- },
10171
- convos: {
10172
- type: 'array',
10173
- items: {
10174
- type: 'ref',
10175
- ref: 'lex:chat.bsky.convo.defs#convoView',
10176
- },
11666
+ joinLink: {
11667
+ type: 'ref',
11668
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10177
11669
  },
10178
11670
  },
10179
11671
  },
@@ -10181,21 +11673,39 @@ exports.schemaDict = {
10181
11673
  },
10182
11674
  },
10183
11675
  },
10184
- ChatBskyConvoMuteConvo: {
11676
+ ChatBskyGroupEditGroup: {
10185
11677
  lexicon: 1,
10186
- id: 'chat.bsky.convo.muteConvo',
11678
+ id: 'chat.bsky.group.editGroup',
10187
11679
  defs: {
10188
11680
  main: {
10189
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
+ ],
10190
11694
  input: {
10191
11695
  encoding: 'application/json',
10192
11696
  schema: {
10193
11697
  type: 'object',
10194
- required: ['convoId'],
11698
+ required: ['convoId', 'name'],
10195
11699
  properties: {
10196
11700
  convoId: {
10197
11701
  type: 'string',
10198
11702
  },
11703
+ name: {
11704
+ type: 'string',
11705
+ minLength: 1,
11706
+ maxGraphemes: 128,
11707
+ maxLength: 1280,
11708
+ },
10199
11709
  },
10200
11710
  },
10201
11711
  },
@@ -10215,31 +11725,39 @@ exports.schemaDict = {
10215
11725
  },
10216
11726
  },
10217
11727
  },
10218
- ChatBskyConvoRemoveReaction: {
11728
+ ChatBskyGroupEditJoinLink: {
10219
11729
  lexicon: 1,
10220
- id: 'chat.bsky.convo.removeReaction',
11730
+ id: 'chat.bsky.group.editJoinLink',
10221
11731
  defs: {
10222
11732
  main: {
10223
11733
  type: 'procedure',
10224
- 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
+ ],
10225
11746
  input: {
10226
11747
  encoding: 'application/json',
10227
11748
  schema: {
10228
11749
  type: 'object',
10229
- required: ['convoId', 'messageId', 'value'],
11750
+ required: ['convoId'],
10230
11751
  properties: {
10231
11752
  convoId: {
10232
11753
  type: 'string',
10233
- },
10234
- messageId: {
10235
- type: 'string',
10236
- },
10237
- value: {
10238
- type: 'string',
10239
- minLength: 1,
10240
- maxLength: 64,
10241
- minGraphemes: 1,
10242
- maxGraphemes: 1,
11754
+ },
11755
+ requireApproval: {
11756
+ type: 'boolean',
11757
+ },
11758
+ joinRule: {
11759
+ type: 'ref',
11760
+ ref: 'lex:chat.bsky.group.defs#joinRule',
10243
11761
  },
10244
11762
  },
10245
11763
  },
@@ -10248,130 +11766,187 @@ exports.schemaDict = {
10248
11766
  encoding: 'application/json',
10249
11767
  schema: {
10250
11768
  type: 'object',
10251
- required: ['message'],
11769
+ required: ['joinLink'],
10252
11770
  properties: {
10253
- message: {
11771
+ joinLink: {
10254
11772
  type: 'ref',
10255
- ref: 'lex:chat.bsky.convo.defs#messageView',
11773
+ ref: 'lex:chat.bsky.group.defs#joinLinkView',
10256
11774
  },
10257
11775
  },
10258
11776
  },
10259
11777
  },
10260
- errors: [
10261
- {
10262
- name: 'ReactionMessageDeleted',
10263
- description: 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
10264
- },
10265
- {
10266
- name: 'ReactionInvalidValue',
10267
- description: 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
10268
- },
10269
- ],
10270
11778
  },
10271
11779
  },
10272
11780
  },
10273
- ChatBskyConvoSendMessage: {
11781
+ ChatBskyGroupEnableJoinLink: {
10274
11782
  lexicon: 1,
10275
- id: 'chat.bsky.convo.sendMessage',
11783
+ id: 'chat.bsky.group.enableJoinLink',
10276
11784
  defs: {
10277
11785
  main: {
10278
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
+ ],
10279
11802
  input: {
10280
11803
  encoding: 'application/json',
10281
11804
  schema: {
10282
11805
  type: 'object',
10283
- required: ['convoId', 'message'],
11806
+ required: ['convoId'],
10284
11807
  properties: {
10285
11808
  convoId: {
10286
11809
  type: 'string',
10287
11810
  },
10288
- message: {
10289
- type: 'ref',
10290
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10291
- },
10292
11811
  },
10293
11812
  },
10294
11813
  },
10295
11814
  output: {
10296
11815
  encoding: 'application/json',
10297
11816
  schema: {
10298
- type: 'ref',
10299
- 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
+ },
10300
11825
  },
10301
11826
  },
10302
11827
  },
10303
11828
  },
10304
11829
  },
10305
- ChatBskyConvoSendMessageBatch: {
11830
+ ChatBskyGroupGetGroupPublicInfo: {
10306
11831
  lexicon: 1,
10307
- id: 'chat.bsky.convo.sendMessageBatch',
11832
+ id: 'chat.bsky.group.getGroupPublicInfo',
10308
11833
  defs: {
10309
11834
  main: {
10310
- type: 'procedure',
10311
- 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: {
10312
11852
  encoding: 'application/json',
10313
11853
  schema: {
10314
11854
  type: 'object',
10315
- required: ['items'],
11855
+ required: ['group'],
10316
11856
  properties: {
10317
- items: {
10318
- type: 'array',
10319
- maxLength: 100,
10320
- items: {
10321
- type: 'ref',
10322
- ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
10323
- },
11857
+ group: {
11858
+ type: 'ref',
11859
+ ref: 'lex:chat.bsky.group.defs#groupPublicView',
10324
11860
  },
10325
11861
  },
10326
11862
  },
10327
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
+ },
10328
11900
  output: {
10329
11901
  encoding: 'application/json',
10330
11902
  schema: {
10331
11903
  type: 'object',
10332
- required: ['items'],
11904
+ required: ['requests'],
10333
11905
  properties: {
10334
- items: {
11906
+ cursor: {
11907
+ type: 'string',
11908
+ },
11909
+ requests: {
10335
11910
  type: 'array',
10336
11911
  items: {
10337
11912
  type: 'ref',
10338
- ref: 'lex:chat.bsky.convo.defs#messageView',
11913
+ ref: 'lex:chat.bsky.group.defs#joinRequestView',
10339
11914
  },
10340
11915
  },
10341
11916
  },
10342
11917
  },
10343
11918
  },
10344
11919
  },
10345
- batchItem: {
10346
- type: 'object',
10347
- required: ['convoId', 'message'],
10348
- properties: {
10349
- convoId: {
10350
- type: 'string',
10351
- },
10352
- message: {
10353
- type: 'ref',
10354
- ref: 'lex:chat.bsky.convo.defs#messageInput',
10355
- },
10356
- },
10357
- },
10358
11920
  },
10359
11921
  },
10360
- ChatBskyConvoUnmuteConvo: {
11922
+ ChatBskyGroupRejectJoinRequest: {
10361
11923
  lexicon: 1,
10362
- id: 'chat.bsky.convo.unmuteConvo',
11924
+ id: 'chat.bsky.group.rejectJoinRequest',
10363
11925
  defs: {
10364
11926
  main: {
10365
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
+ ],
10366
11937
  input: {
10367
11938
  encoding: 'application/json',
10368
11939
  schema: {
10369
11940
  type: 'object',
10370
- required: ['convoId'],
11941
+ required: ['convoId', 'member'],
10371
11942
  properties: {
10372
11943
  convoId: {
10373
11944
  type: 'string',
10374
11945
  },
11946
+ member: {
11947
+ type: 'string',
11948
+ format: 'did',
11949
+ },
10375
11950
  },
10376
11951
  },
10377
11952
  },
@@ -10379,32 +11954,44 @@ exports.schemaDict = {
10379
11954
  encoding: 'application/json',
10380
11955
  schema: {
10381
11956
  type: 'object',
10382
- required: ['convo'],
10383
- properties: {
10384
- convo: {
10385
- type: 'ref',
10386
- ref: 'lex:chat.bsky.convo.defs#convoView',
10387
- },
10388
- },
11957
+ required: [],
11958
+ properties: {},
10389
11959
  },
10390
11960
  },
10391
11961
  },
10392
11962
  },
10393
11963
  },
10394
- ChatBskyConvoUpdateAllRead: {
11964
+ ChatBskyGroupRemoveMembers: {
10395
11965
  lexicon: 1,
10396
- id: 'chat.bsky.convo.updateAllRead',
11966
+ id: 'chat.bsky.group.removeMembers',
10397
11967
  defs: {
10398
11968
  main: {
10399
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
+ ],
10400
11979
  input: {
10401
11980
  encoding: 'application/json',
10402
11981
  schema: {
10403
11982
  type: 'object',
11983
+ required: ['convoId', 'members'],
10404
11984
  properties: {
10405
- status: {
11985
+ convoId: {
10406
11986
  type: 'string',
10407
- knownValues: ['request', 'accepted'],
11987
+ },
11988
+ members: {
11989
+ type: 'array',
11990
+ items: {
11991
+ type: 'string',
11992
+ format: 'did',
11993
+ },
11994
+ minLength: 1,
10408
11995
  },
10409
11996
  },
10410
11997
  },
@@ -10413,11 +12000,11 @@ exports.schemaDict = {
10413
12000
  encoding: 'application/json',
10414
12001
  schema: {
10415
12002
  type: 'object',
10416
- required: ['updatedCount'],
12003
+ required: ['convo'],
10417
12004
  properties: {
10418
- updatedCount: {
10419
- description: 'The count of updated convos.',
10420
- type: 'integer',
12005
+ convo: {
12006
+ type: 'ref',
12007
+ ref: 'lex:chat.bsky.convo.defs#convoView',
10421
12008
  },
10422
12009
  },
10423
12010
  },
@@ -10425,22 +12012,40 @@ exports.schemaDict = {
10425
12012
  },
10426
12013
  },
10427
12014
  },
10428
- ChatBskyConvoUpdateRead: {
12015
+ ChatBskyGroupRequestJoin: {
10429
12016
  lexicon: 1,
10430
- id: 'chat.bsky.convo.updateRead',
12017
+ id: 'chat.bsky.group.requestJoin',
10431
12018
  defs: {
10432
12019
  main: {
10433
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
+ ],
10434
12042
  input: {
10435
12043
  encoding: 'application/json',
10436
12044
  schema: {
10437
12045
  type: 'object',
10438
- required: ['convoId'],
12046
+ required: ['code'],
10439
12047
  properties: {
10440
- convoId: {
10441
- type: 'string',
10442
- },
10443
- messageId: {
12048
+ code: {
10444
12049
  type: 'string',
10445
12050
  },
10446
12051
  },
@@ -10450,9 +12055,14 @@ exports.schemaDict = {
10450
12055
  encoding: 'application/json',
10451
12056
  schema: {
10452
12057
  type: 'object',
10453
- required: ['convo'],
12058
+ required: ['status'],
10454
12059
  properties: {
12060
+ status: {
12061
+ type: 'string',
12062
+ knownValues: ['joined', 'pending'],
12063
+ },
10455
12064
  convo: {
12065
+ description: 'The group convo joined. This is only present in the case of status=joined',
10456
12066
  type: 'ref',
10457
12067
  ref: 'lex:chat.bsky.convo.defs#convoView',
10458
12068
  },
@@ -10565,6 +12175,7 @@ exports.schemaDict = {
10565
12175
  refs: [
10566
12176
  'lex:chat.bsky.convo.defs#messageView',
10567
12177
  'lex:chat.bsky.convo.defs#deletedMessageView',
12178
+ 'lex:chat.bsky.convo.defs#systemMessageView',
10568
12179
  ],
10569
12180
  },
10570
12181
  },
@@ -10574,6 +12185,74 @@ exports.schemaDict = {
10574
12185
  },
10575
12186
  },
10576
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
+ },
10577
12256
  ChatBskyModerationUpdateActorAccess: {
10578
12257
  lexicon: 1,
10579
12258
  id: 'chat.bsky.moderation.updateActorAccess',
@@ -20397,16 +22076,34 @@ exports.ids = {
20397
22076
  ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
20398
22077
  ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
20399
22078
  ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
22079
+ ChatBskyConvoListConvoRequests: 'chat.bsky.convo.listConvoRequests',
20400
22080
  ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
22081
+ ChatBskyConvoLockConvo: 'chat.bsky.convo.lockConvo',
20401
22082
  ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
20402
22083
  ChatBskyConvoRemoveReaction: 'chat.bsky.convo.removeReaction',
20403
22084
  ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
20404
22085
  ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
22086
+ ChatBskyConvoUnlockConvo: 'chat.bsky.convo.unlockConvo',
20405
22087
  ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
20406
22088
  ChatBskyConvoUpdateAllRead: 'chat.bsky.convo.updateAllRead',
20407
22089
  ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
22090
+ ChatBskyGroupAddMembers: 'chat.bsky.group.addMembers',
22091
+ ChatBskyGroupApproveJoinRequest: 'chat.bsky.group.approveJoinRequest',
22092
+ ChatBskyGroupCreateGroup: 'chat.bsky.group.createGroup',
22093
+ ChatBskyGroupCreateJoinLink: 'chat.bsky.group.createJoinLink',
22094
+ ChatBskyGroupDefs: 'chat.bsky.group.defs',
22095
+ ChatBskyGroupDisableJoinLink: 'chat.bsky.group.disableJoinLink',
22096
+ ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
22097
+ ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
22098
+ ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
22099
+ ChatBskyGroupGetGroupPublicInfo: 'chat.bsky.group.getGroupPublicInfo',
22100
+ ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
22101
+ ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',
22102
+ ChatBskyGroupRemoveMembers: 'chat.bsky.group.removeMembers',
22103
+ ChatBskyGroupRequestJoin: 'chat.bsky.group.requestJoin',
20408
22104
  ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
20409
22105
  ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
22106
+ ChatBskyModerationSubscribeModEvents: 'chat.bsky.moderation.subscribeModEvents',
20410
22107
  ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
20411
22108
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
20412
22109
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',