@atproto/api 0.20.0-next.0 → 0.20.1

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 (403) hide show
  1. package/CHANGELOG.md +26 -10
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +4 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +1030 -16
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +631 -7
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  13. package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
  14. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  16. package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
  17. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/group/addMembers.js +3 -3
  19. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  20. package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
  21. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  22. package/dist/client/types/chat/bsky/group/createGroup.js +3 -3
  23. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  24. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
  25. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
  26. package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
  27. package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
  28. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
  29. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  30. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  31. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
  32. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  33. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +63 -0
  34. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  35. package/dist/rich-text/detection.js +1 -1
  36. package/dist/rich-text/detection.js.map +1 -1
  37. package/jest.config.cjs +9 -2
  38. package/package.json +9 -8
  39. package/src/rich-text/detection.ts +1 -1
  40. package/tsconfig.build.tsbuildinfo +1 -1
  41. package/src/client/index.ts +0 -6408
  42. package/src/client/lexicons.ts +0 -25182
  43. package/src/client/types/app/bsky/actor/defs.ts +0 -716
  44. package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
  45. package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
  46. package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
  47. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
  48. package/src/client/types/app/bsky/actor/profile.ts +0 -52
  49. package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
  50. package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
  51. package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
  52. package/src/client/types/app/bsky/actor/status.ts +0 -46
  53. package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
  54. package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
  55. package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
  56. package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
  57. package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
  58. package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
  59. package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
  60. package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
  61. package/src/client/types/app/bsky/contact/defs.ts +0 -71
  62. package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
  63. package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
  64. package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
  65. package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
  66. package/src/client/types/app/bsky/contact/removeData.ts +0 -56
  67. package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
  68. package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
  69. package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
  70. package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
  71. package/src/client/types/app/bsky/draft/defs.ts +0 -212
  72. package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
  73. package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
  74. package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
  75. package/src/client/types/app/bsky/embed/defs.ts +0 -32
  76. package/src/client/types/app/bsky/embed/external.ts +0 -84
  77. package/src/client/types/app/bsky/embed/images.ts +0 -86
  78. package/src/client/types/app/bsky/embed/record.ts +0 -146
  79. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
  80. package/src/client/types/app/bsky/embed/video.ts +0 -75
  81. package/src/client/types/app/bsky/feed/defs.ts +0 -428
  82. package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
  83. package/src/client/types/app/bsky/feed/generator.ts +0 -51
  84. package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
  85. package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
  86. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
  87. package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
  88. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
  89. package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
  90. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
  91. package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
  92. package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
  93. package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
  94. package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
  95. package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
  96. package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
  97. package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
  98. package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
  99. package/src/client/types/app/bsky/feed/like.ts +0 -40
  100. package/src/client/types/app/bsky/feed/post.ts +0 -117
  101. package/src/client/types/app/bsky/feed/postgate.ts +0 -58
  102. package/src/client/types/app/bsky/feed/repost.ts +0 -40
  103. package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
  104. package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
  105. package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
  106. package/src/client/types/app/bsky/graph/block.ts +0 -39
  107. package/src/client/types/app/bsky/graph/defs.ts +0 -206
  108. package/src/client/types/app/bsky/graph/follow.ts +0 -40
  109. package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
  110. package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
  111. package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
  112. package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
  113. package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
  114. package/src/client/types/app/bsky/graph/getList.ts +0 -46
  115. package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
  116. package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
  117. package/src/client/types/app/bsky/graph/getLists.ts +0 -47
  118. package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
  119. package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
  120. package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
  121. package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
  122. package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
  123. package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
  124. package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
  125. package/src/client/types/app/bsky/graph/list.ts +0 -47
  126. package/src/client/types/app/bsky/graph/listblock.ts +0 -39
  127. package/src/client/types/app/bsky/graph/listitem.ts +0 -41
  128. package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
  129. package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
  130. package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
  131. package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
  132. package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
  133. package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
  134. package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
  135. package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
  136. package/src/client/types/app/bsky/graph/verification.ts +0 -44
  137. package/src/client/types/app/bsky/labeler/defs.ts +0 -100
  138. package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
  139. package/src/client/types/app/bsky/labeler/service.ts +0 -48
  140. package/src/client/types/app/bsky/notification/declaration.ts +0 -38
  141. package/src/client/types/app/bsky/notification/defs.ts +0 -142
  142. package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
  143. package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
  144. package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
  145. package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
  146. package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
  147. package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
  148. package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
  149. package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
  150. package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
  151. package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
  152. package/src/client/types/app/bsky/richtext/facet.ts +0 -97
  153. package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
  154. package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
  155. package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
  156. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
  157. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
  158. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
  159. package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
  160. package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
  161. package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
  162. package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
  163. package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
  164. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
  165. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
  166. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
  167. package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
  168. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
  169. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
  170. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
  171. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
  172. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
  173. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
  174. package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
  175. package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
  176. package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
  177. package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
  178. package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
  179. package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
  180. package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
  181. package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
  182. package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
  183. package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
  184. package/src/client/types/app/bsky/video/defs.ts +0 -38
  185. package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
  186. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
  187. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
  188. package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
  189. package/src/client/types/chat/bsky/actor/defs.ts +0 -96
  190. package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
  191. package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
  192. package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
  193. package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
  194. package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
  195. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
  196. package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
  197. package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
  198. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
  199. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
  200. package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
  201. package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
  202. package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
  203. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
  204. package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
  205. package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
  206. package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
  207. package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
  208. package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
  209. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
  210. package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
  211. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
  212. package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
  213. package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
  214. package/src/client/types/chat/bsky/group/addMembers.ts +0 -115
  215. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
  216. package/src/client/types/chat/bsky/group/createGroup.ts +0 -85
  217. package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
  218. package/src/client/types/chat/bsky/group/defs.ts +0 -75
  219. package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
  220. package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
  221. package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
  222. package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
  223. package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
  224. package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
  225. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
  226. package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
  227. package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
  228. package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
  229. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -50
  230. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -38
  231. package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
  232. package/src/client/types/com/atproto/admin/defs.ts +0 -106
  233. package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
  234. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
  235. package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
  236. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
  237. package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
  238. package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
  239. package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
  240. package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
  241. package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
  242. package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
  243. package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
  244. package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
  245. package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
  246. package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
  247. package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
  248. package/src/client/types/com/atproto/identity/defs.ts +0 -34
  249. package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
  250. package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
  251. package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
  252. package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
  253. package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
  254. package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
  255. package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
  256. package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
  257. package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
  258. package/src/client/types/com/atproto/label/defs.ts +0 -143
  259. package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
  260. package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
  261. package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
  262. package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
  263. package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
  264. package/src/client/types/com/atproto/moderation/defs.ts +0 -83
  265. package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
  266. package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
  267. package/src/client/types/com/atproto/repo/defs.ts +0 -31
  268. package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
  269. package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
  270. package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
  271. package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
  272. package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
  273. package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
  274. package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
  275. package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
  276. package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
  277. package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
  278. package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
  279. package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
  280. package/src/client/types/com/atproto/server/createAccount.ts +0 -115
  281. package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
  282. package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
  283. package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
  284. package/src/client/types/com/atproto/server/createSession.ts +0 -76
  285. package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
  286. package/src/client/types/com/atproto/server/defs.ts +0 -52
  287. package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
  288. package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
  289. package/src/client/types/com/atproto/server/describeServer.ts +0 -77
  290. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
  291. package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
  292. package/src/client/types/com/atproto/server/getSession.ts +0 -46
  293. package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
  294. package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
  295. package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
  296. package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
  297. package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
  298. package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
  299. package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
  300. package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
  301. package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
  302. package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
  303. package/src/client/types/com/atproto/sync/defs.ts +0 -23
  304. package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
  305. package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
  306. package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
  307. package/src/client/types/com/atproto/sync/getHead.ts +0 -51
  308. package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
  309. package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
  310. package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
  311. package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
  312. package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
  313. package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
  314. package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
  315. package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
  316. package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
  317. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
  318. package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
  319. package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
  320. package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
  321. package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
  322. package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
  323. package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
  324. package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
  325. package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
  326. package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
  327. package/src/client/types/com/germnetwork/declaration.ts +0 -63
  328. package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
  329. package/src/client/types/tools/ozone/communication/defs.ts +0 -43
  330. package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
  331. package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
  332. package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
  333. package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
  334. package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
  335. package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
  336. package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
  337. package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
  338. package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
  339. package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
  340. package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
  341. package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
  342. package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
  343. package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
  344. package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
  345. package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
  346. package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
  347. package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
  348. package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
  349. package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
  350. package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
  351. package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
  352. package/src/client/types/tools/ozone/queue/defs.ts +0 -99
  353. package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
  354. package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
  355. package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
  356. package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
  357. package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
  358. package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
  359. package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
  360. package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
  361. package/src/client/types/tools/ozone/report/defs.ts +0 -466
  362. package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
  363. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
  364. package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
  365. package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
  366. package/src/client/types/tools/ozone/report/getReport.ts +0 -49
  367. package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
  368. package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
  369. package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
  370. package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
  371. package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
  372. package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
  373. package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
  374. package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
  375. package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
  376. package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
  377. package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
  378. package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
  379. package/src/client/types/tools/ozone/set/addValues.ts +0 -41
  380. package/src/client/types/tools/ozone/set/defs.ts +0 -50
  381. package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
  382. package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
  383. package/src/client/types/tools/ozone/set/getValues.ts +0 -55
  384. package/src/client/types/tools/ozone/set/querySets.ts +0 -47
  385. package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
  386. package/src/client/types/tools/ozone/setting/defs.ts +0 -44
  387. package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
  388. package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
  389. package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
  390. package/src/client/types/tools/ozone/signature/defs.ts +0 -31
  391. package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
  392. package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
  393. package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
  394. package/src/client/types/tools/ozone/team/addMember.ts +0 -59
  395. package/src/client/types/tools/ozone/team/defs.ts +0 -51
  396. package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
  397. package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
  398. package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
  399. package/src/client/types/tools/ozone/verification/defs.ts +0 -59
  400. package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
  401. package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
  402. package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
  403. package/src/client/util.ts +0 -82
@@ -1,1058 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5
- import { CID } from 'multiformats/cid'
6
- import { validate as _validate } from '../../../../lexicons.js'
7
- import {
8
- type $Typed,
9
- is$typed as _is$typed,
10
- type OmitKey,
11
- } from '../../../../util.js'
12
- import type * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet.js'
13
- import type * as AppBskyEmbedRecord from '../../../app/bsky/embed/record.js'
14
- import type * as ChatBskyActorDefs from '../actor/defs.js'
15
- import type * as ChatBskyGroupDefs from '../group/defs.js'
16
-
17
- const is$typed = _is$typed,
18
- validate = _validate
19
- const id = 'chat.bsky.convo.defs'
20
-
21
- export type ConvoKind = 'direct' | 'group' | (string & {})
22
- export type ConvoLockStatus =
23
- | 'unlocked'
24
- | 'locked'
25
- | 'locked-permanently'
26
- | (string & {})
27
- export type ConvoStatus = 'request' | 'accepted' | (string & {})
28
-
29
- export interface ConvoRef {
30
- $type?: 'chat.bsky.convo.defs#convoRef'
31
- did: string
32
- convoId: string
33
- }
34
-
35
- const hashConvoRef = 'convoRef'
36
-
37
- export function isConvoRef<V>(v: V) {
38
- return is$typed(v, id, hashConvoRef)
39
- }
40
-
41
- export function validateConvoRef<V>(v: V) {
42
- return validate<ConvoRef & V>(v, id, hashConvoRef)
43
- }
44
-
45
- export interface MessageRef {
46
- $type?: 'chat.bsky.convo.defs#messageRef'
47
- did: string
48
- convoId: string
49
- messageId: string
50
- }
51
-
52
- const hashMessageRef = 'messageRef'
53
-
54
- export function isMessageRef<V>(v: V) {
55
- return is$typed(v, id, hashMessageRef)
56
- }
57
-
58
- export function validateMessageRef<V>(v: V) {
59
- return validate<MessageRef & V>(v, id, hashMessageRef)
60
- }
61
-
62
- export interface MessageInput {
63
- $type?: 'chat.bsky.convo.defs#messageInput'
64
- text: string
65
- /** Annotations of text (mentions, URLs, hashtags, etc) */
66
- facets?: AppBskyRichtextFacet.Main[]
67
- embed?: $Typed<AppBskyEmbedRecord.Main> | { $type: string }
68
- }
69
-
70
- const hashMessageInput = 'messageInput'
71
-
72
- export function isMessageInput<V>(v: V) {
73
- return is$typed(v, id, hashMessageInput)
74
- }
75
-
76
- export function validateMessageInput<V>(v: V) {
77
- return validate<MessageInput & V>(v, id, hashMessageInput)
78
- }
79
-
80
- export interface MessageView {
81
- $type?: 'chat.bsky.convo.defs#messageView'
82
- id: string
83
- rev: string
84
- text: string
85
- /** Annotations of text (mentions, URLs, hashtags, etc) */
86
- facets?: AppBskyRichtextFacet.Main[]
87
- embed?: $Typed<AppBskyEmbedRecord.View> | { $type: string }
88
- /** Reactions to this message, in ascending order of creation time. */
89
- reactions?: ReactionView[]
90
- sender: MessageViewSender
91
- sentAt: string
92
- }
93
-
94
- const hashMessageView = 'messageView'
95
-
96
- export function isMessageView<V>(v: V) {
97
- return is$typed(v, id, hashMessageView)
98
- }
99
-
100
- export function validateMessageView<V>(v: V) {
101
- return validate<MessageView & V>(v, id, hashMessageView)
102
- }
103
-
104
- export interface SystemMessageReferredUser {
105
- $type?: 'chat.bsky.convo.defs#systemMessageReferredUser'
106
- did: string
107
- }
108
-
109
- const hashSystemMessageReferredUser = 'systemMessageReferredUser'
110
-
111
- export function isSystemMessageReferredUser<V>(v: V) {
112
- return is$typed(v, id, hashSystemMessageReferredUser)
113
- }
114
-
115
- export function validateSystemMessageReferredUser<V>(v: V) {
116
- return validate<SystemMessageReferredUser & V>(
117
- v,
118
- id,
119
- hashSystemMessageReferredUser,
120
- )
121
- }
122
-
123
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
124
- export interface SystemMessageView {
125
- $type?: 'chat.bsky.convo.defs#systemMessageView'
126
- id: string
127
- rev: string
128
- sentAt: string
129
- data:
130
- | $Typed<SystemMessageDataAddMember>
131
- | $Typed<SystemMessageDataRemoveMember>
132
- | $Typed<SystemMessageDataMemberJoin>
133
- | $Typed<SystemMessageDataMemberLeave>
134
- | $Typed<SystemMessageDataLockConvo>
135
- | $Typed<SystemMessageDataUnlockConvo>
136
- | $Typed<SystemMessageDataLockConvoPermanently>
137
- | $Typed<SystemMessageDataEditGroup>
138
- | $Typed<SystemMessageDataCreateJoinLink>
139
- | $Typed<SystemMessageDataEditJoinLink>
140
- | $Typed<SystemMessageDataEnableJoinLink>
141
- | $Typed<SystemMessageDataDisableJoinLink>
142
- | { $type: string }
143
- }
144
-
145
- const hashSystemMessageView = 'systemMessageView'
146
-
147
- export function isSystemMessageView<V>(v: V) {
148
- return is$typed(v, id, hashSystemMessageView)
149
- }
150
-
151
- export function validateSystemMessageView<V>(v: V) {
152
- return validate<SystemMessageView & V>(v, id, hashSystemMessageView)
153
- }
154
-
155
- /** [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. */
156
- export interface SystemMessageDataAddMember {
157
- $type?: 'chat.bsky.convo.defs#systemMessageDataAddMember'
158
- member: SystemMessageReferredUser
159
- role: ChatBskyActorDefs.MemberRole
160
- addedBy: SystemMessageReferredUser
161
- }
162
-
163
- const hashSystemMessageDataAddMember = 'systemMessageDataAddMember'
164
-
165
- export function isSystemMessageDataAddMember<V>(v: V) {
166
- return is$typed(v, id, hashSystemMessageDataAddMember)
167
- }
168
-
169
- export function validateSystemMessageDataAddMember<V>(v: V) {
170
- return validate<SystemMessageDataAddMember & V>(
171
- v,
172
- id,
173
- hashSystemMessageDataAddMember,
174
- )
175
- }
176
-
177
- /** [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. */
178
- export interface SystemMessageDataRemoveMember {
179
- $type?: 'chat.bsky.convo.defs#systemMessageDataRemoveMember'
180
- member: SystemMessageReferredUser
181
- removedBy: SystemMessageReferredUser
182
- }
183
-
184
- const hashSystemMessageDataRemoveMember = 'systemMessageDataRemoveMember'
185
-
186
- export function isSystemMessageDataRemoveMember<V>(v: V) {
187
- return is$typed(v, id, hashSystemMessageDataRemoveMember)
188
- }
189
-
190
- export function validateSystemMessageDataRemoveMember<V>(v: V) {
191
- return validate<SystemMessageDataRemoveMember & V>(
192
- v,
193
- id,
194
- hashSystemMessageDataRemoveMember,
195
- )
196
- }
197
-
198
- /** [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. */
199
- export interface SystemMessageDataMemberJoin {
200
- $type?: 'chat.bsky.convo.defs#systemMessageDataMemberJoin'
201
- member: SystemMessageReferredUser
202
- role: ChatBskyActorDefs.MemberRole
203
- approvedBy?: SystemMessageReferredUser
204
- }
205
-
206
- const hashSystemMessageDataMemberJoin = 'systemMessageDataMemberJoin'
207
-
208
- export function isSystemMessageDataMemberJoin<V>(v: V) {
209
- return is$typed(v, id, hashSystemMessageDataMemberJoin)
210
- }
211
-
212
- export function validateSystemMessageDataMemberJoin<V>(v: V) {
213
- return validate<SystemMessageDataMemberJoin & V>(
214
- v,
215
- id,
216
- hashSystemMessageDataMemberJoin,
217
- )
218
- }
219
-
220
- /** [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. */
221
- export interface SystemMessageDataMemberLeave {
222
- $type?: 'chat.bsky.convo.defs#systemMessageDataMemberLeave'
223
- member: SystemMessageReferredUser
224
- }
225
-
226
- const hashSystemMessageDataMemberLeave = 'systemMessageDataMemberLeave'
227
-
228
- export function isSystemMessageDataMemberLeave<V>(v: V) {
229
- return is$typed(v, id, hashSystemMessageDataMemberLeave)
230
- }
231
-
232
- export function validateSystemMessageDataMemberLeave<V>(v: V) {
233
- return validate<SystemMessageDataMemberLeave & V>(
234
- v,
235
- id,
236
- hashSystemMessageDataMemberLeave,
237
- )
238
- }
239
-
240
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked. */
241
- export interface SystemMessageDataLockConvo {
242
- $type?: 'chat.bsky.convo.defs#systemMessageDataLockConvo'
243
- lockedBy: SystemMessageReferredUser
244
- }
245
-
246
- const hashSystemMessageDataLockConvo = 'systemMessageDataLockConvo'
247
-
248
- export function isSystemMessageDataLockConvo<V>(v: V) {
249
- return is$typed(v, id, hashSystemMessageDataLockConvo)
250
- }
251
-
252
- export function validateSystemMessageDataLockConvo<V>(v: V) {
253
- return validate<SystemMessageDataLockConvo & V>(
254
- v,
255
- id,
256
- hashSystemMessageDataLockConvo,
257
- )
258
- }
259
-
260
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked. */
261
- export interface SystemMessageDataUnlockConvo {
262
- $type?: 'chat.bsky.convo.defs#systemMessageDataUnlockConvo'
263
- unlockedBy: SystemMessageReferredUser
264
- }
265
-
266
- const hashSystemMessageDataUnlockConvo = 'systemMessageDataUnlockConvo'
267
-
268
- export function isSystemMessageDataUnlockConvo<V>(v: V) {
269
- return is$typed(v, id, hashSystemMessageDataUnlockConvo)
270
- }
271
-
272
- export function validateSystemMessageDataUnlockConvo<V>(v: V) {
273
- return validate<SystemMessageDataUnlockConvo & V>(
274
- v,
275
- id,
276
- hashSystemMessageDataUnlockConvo,
277
- )
278
- }
279
-
280
- /** [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. */
281
- export interface SystemMessageDataLockConvoPermanently {
282
- $type?: 'chat.bsky.convo.defs#systemMessageDataLockConvoPermanently'
283
- lockedBy: SystemMessageReferredUser
284
- }
285
-
286
- const hashSystemMessageDataLockConvoPermanently =
287
- 'systemMessageDataLockConvoPermanently'
288
-
289
- export function isSystemMessageDataLockConvoPermanently<V>(v: V) {
290
- return is$typed(v, id, hashSystemMessageDataLockConvoPermanently)
291
- }
292
-
293
- export function validateSystemMessageDataLockConvoPermanently<V>(v: V) {
294
- return validate<SystemMessageDataLockConvoPermanently & V>(
295
- v,
296
- id,
297
- hashSystemMessageDataLockConvoPermanently,
298
- )
299
- }
300
-
301
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited. */
302
- export interface SystemMessageDataEditGroup {
303
- $type?: 'chat.bsky.convo.defs#systemMessageDataEditGroup'
304
- /** Group name that was replaced. */
305
- oldName?: string
306
- /** Group name that replaced the old. */
307
- newName?: string
308
- }
309
-
310
- const hashSystemMessageDataEditGroup = 'systemMessageDataEditGroup'
311
-
312
- export function isSystemMessageDataEditGroup<V>(v: V) {
313
- return is$typed(v, id, hashSystemMessageDataEditGroup)
314
- }
315
-
316
- export function validateSystemMessageDataEditGroup<V>(v: V) {
317
- return validate<SystemMessageDataEditGroup & V>(
318
- v,
319
- id,
320
- hashSystemMessageDataEditGroup,
321
- )
322
- }
323
-
324
- /** [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. */
325
- export interface SystemMessageDataCreateJoinLink {
326
- $type?: 'chat.bsky.convo.defs#systemMessageDataCreateJoinLink'
327
- }
328
-
329
- const hashSystemMessageDataCreateJoinLink = 'systemMessageDataCreateJoinLink'
330
-
331
- export function isSystemMessageDataCreateJoinLink<V>(v: V) {
332
- return is$typed(v, id, hashSystemMessageDataCreateJoinLink)
333
- }
334
-
335
- export function validateSystemMessageDataCreateJoinLink<V>(v: V) {
336
- return validate<SystemMessageDataCreateJoinLink & V>(
337
- v,
338
- id,
339
- hashSystemMessageDataCreateJoinLink,
340
- )
341
- }
342
-
343
- /** [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. */
344
- export interface SystemMessageDataEditJoinLink {
345
- $type?: 'chat.bsky.convo.defs#systemMessageDataEditJoinLink'
346
- }
347
-
348
- const hashSystemMessageDataEditJoinLink = 'systemMessageDataEditJoinLink'
349
-
350
- export function isSystemMessageDataEditJoinLink<V>(v: V) {
351
- return is$typed(v, id, hashSystemMessageDataEditJoinLink)
352
- }
353
-
354
- export function validateSystemMessageDataEditJoinLink<V>(v: V) {
355
- return validate<SystemMessageDataEditJoinLink & V>(
356
- v,
357
- id,
358
- hashSystemMessageDataEditJoinLink,
359
- )
360
- }
361
-
362
- /** [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. */
363
- export interface SystemMessageDataEnableJoinLink {
364
- $type?: 'chat.bsky.convo.defs#systemMessageDataEnableJoinLink'
365
- }
366
-
367
- const hashSystemMessageDataEnableJoinLink = 'systemMessageDataEnableJoinLink'
368
-
369
- export function isSystemMessageDataEnableJoinLink<V>(v: V) {
370
- return is$typed(v, id, hashSystemMessageDataEnableJoinLink)
371
- }
372
-
373
- export function validateSystemMessageDataEnableJoinLink<V>(v: V) {
374
- return validate<SystemMessageDataEnableJoinLink & V>(
375
- v,
376
- id,
377
- hashSystemMessageDataEnableJoinLink,
378
- )
379
- }
380
-
381
- /** [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. */
382
- export interface SystemMessageDataDisableJoinLink {
383
- $type?: 'chat.bsky.convo.defs#systemMessageDataDisableJoinLink'
384
- }
385
-
386
- const hashSystemMessageDataDisableJoinLink = 'systemMessageDataDisableJoinLink'
387
-
388
- export function isSystemMessageDataDisableJoinLink<V>(v: V) {
389
- return is$typed(v, id, hashSystemMessageDataDisableJoinLink)
390
- }
391
-
392
- export function validateSystemMessageDataDisableJoinLink<V>(v: V) {
393
- return validate<SystemMessageDataDisableJoinLink & V>(
394
- v,
395
- id,
396
- hashSystemMessageDataDisableJoinLink,
397
- )
398
- }
399
-
400
- export interface DeletedMessageView {
401
- $type?: 'chat.bsky.convo.defs#deletedMessageView'
402
- id: string
403
- rev: string
404
- sender: MessageViewSender
405
- sentAt: string
406
- }
407
-
408
- const hashDeletedMessageView = 'deletedMessageView'
409
-
410
- export function isDeletedMessageView<V>(v: V) {
411
- return is$typed(v, id, hashDeletedMessageView)
412
- }
413
-
414
- export function validateDeletedMessageView<V>(v: V) {
415
- return validate<DeletedMessageView & V>(v, id, hashDeletedMessageView)
416
- }
417
-
418
- export interface MessageViewSender {
419
- $type?: 'chat.bsky.convo.defs#messageViewSender'
420
- did: string
421
- }
422
-
423
- const hashMessageViewSender = 'messageViewSender'
424
-
425
- export function isMessageViewSender<V>(v: V) {
426
- return is$typed(v, id, hashMessageViewSender)
427
- }
428
-
429
- export function validateMessageViewSender<V>(v: V) {
430
- return validate<MessageViewSender & V>(v, id, hashMessageViewSender)
431
- }
432
-
433
- export interface ReactionView {
434
- $type?: 'chat.bsky.convo.defs#reactionView'
435
- value: string
436
- sender: ReactionViewSender
437
- createdAt: string
438
- }
439
-
440
- const hashReactionView = 'reactionView'
441
-
442
- export function isReactionView<V>(v: V) {
443
- return is$typed(v, id, hashReactionView)
444
- }
445
-
446
- export function validateReactionView<V>(v: V) {
447
- return validate<ReactionView & V>(v, id, hashReactionView)
448
- }
449
-
450
- export interface ReactionViewSender {
451
- $type?: 'chat.bsky.convo.defs#reactionViewSender'
452
- did: string
453
- }
454
-
455
- const hashReactionViewSender = 'reactionViewSender'
456
-
457
- export function isReactionViewSender<V>(v: V) {
458
- return is$typed(v, id, hashReactionViewSender)
459
- }
460
-
461
- export function validateReactionViewSender<V>(v: V) {
462
- return validate<ReactionViewSender & V>(v, id, hashReactionViewSender)
463
- }
464
-
465
- export interface MessageAndReactionView {
466
- $type?: 'chat.bsky.convo.defs#messageAndReactionView'
467
- message: MessageView
468
- reaction: ReactionView
469
- }
470
-
471
- const hashMessageAndReactionView = 'messageAndReactionView'
472
-
473
- export function isMessageAndReactionView<V>(v: V) {
474
- return is$typed(v, id, hashMessageAndReactionView)
475
- }
476
-
477
- export function validateMessageAndReactionView<V>(v: V) {
478
- return validate<MessageAndReactionView & V>(v, id, hashMessageAndReactionView)
479
- }
480
-
481
- export interface ConvoView {
482
- $type?: 'chat.bsky.convo.defs#convoView'
483
- id: string
484
- rev: string
485
- /** Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members. */
486
- members: ChatBskyActorDefs.ProfileViewBasic[]
487
- lastMessage?:
488
- | $Typed<MessageView>
489
- | $Typed<DeletedMessageView>
490
- | $Typed<SystemMessageView>
491
- | { $type: string }
492
- lastReaction?: $Typed<MessageAndReactionView> | { $type: string }
493
- muted: boolean
494
- status?: ConvoStatus
495
- unreadCount: number
496
- kind?: $Typed<DirectConvo> | $Typed<GroupConvo> | { $type: string }
497
- }
498
-
499
- const hashConvoView = 'convoView'
500
-
501
- export function isConvoView<V>(v: V) {
502
- return is$typed(v, id, hashConvoView)
503
- }
504
-
505
- export function validateConvoView<V>(v: V) {
506
- return validate<ConvoView & V>(v, id, hashConvoView)
507
- }
508
-
509
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
510
- export interface DirectConvo {
511
- $type?: 'chat.bsky.convo.defs#directConvo'
512
- }
513
-
514
- const hashDirectConvo = 'directConvo'
515
-
516
- export function isDirectConvo<V>(v: V) {
517
- return is$typed(v, id, hashDirectConvo)
518
- }
519
-
520
- export function validateDirectConvo<V>(v: V) {
521
- return validate<DirectConvo & V>(v, id, hashDirectConvo)
522
- }
523
-
524
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
525
- export interface GroupConvo {
526
- $type?: 'chat.bsky.convo.defs#groupConvo'
527
- /** The display name of the group conversation. */
528
- name: string
529
- /** The total number of members in the group conversation. */
530
- memberCount: number
531
- createdAt: string
532
- joinLink?: ChatBskyGroupDefs.JoinLinkView
533
- lockStatus: ConvoLockStatus
534
- }
535
-
536
- const hashGroupConvo = 'groupConvo'
537
-
538
- export function isGroupConvo<V>(v: V) {
539
- return is$typed(v, id, hashGroupConvo)
540
- }
541
-
542
- export function validateGroupConvo<V>(v: V) {
543
- return validate<GroupConvo & V>(v, id, hashGroupConvo)
544
- }
545
-
546
- /** 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. */
547
- export interface LogBeginConvo {
548
- $type?: 'chat.bsky.convo.defs#logBeginConvo'
549
- rev: string
550
- convoId: string
551
- }
552
-
553
- const hashLogBeginConvo = 'logBeginConvo'
554
-
555
- export function isLogBeginConvo<V>(v: V) {
556
- return is$typed(v, id, hashLogBeginConvo)
557
- }
558
-
559
- export function validateLogBeginConvo<V>(v: V) {
560
- return validate<LogBeginConvo & V>(v, id, hashLogBeginConvo)
561
- }
562
-
563
- /** Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group. */
564
- export interface LogAcceptConvo {
565
- $type?: 'chat.bsky.convo.defs#logAcceptConvo'
566
- rev: string
567
- convoId: string
568
- }
569
-
570
- const hashLogAcceptConvo = 'logAcceptConvo'
571
-
572
- export function isLogAcceptConvo<V>(v: V) {
573
- return is$typed(v, id, hashLogAcceptConvo)
574
- }
575
-
576
- export function validateLogAcceptConvo<V>(v: V) {
577
- return validate<LogAcceptConvo & V>(v, id, hashLogAcceptConvo)
578
- }
579
-
580
- /** Event indicating the viewer left a convo. Can be direct or group. */
581
- export interface LogLeaveConvo {
582
- $type?: 'chat.bsky.convo.defs#logLeaveConvo'
583
- rev: string
584
- convoId: string
585
- }
586
-
587
- const hashLogLeaveConvo = 'logLeaveConvo'
588
-
589
- export function isLogLeaveConvo<V>(v: V) {
590
- return is$typed(v, id, hashLogLeaveConvo)
591
- }
592
-
593
- export function validateLogLeaveConvo<V>(v: V) {
594
- return validate<LogLeaveConvo & V>(v, id, hashLogLeaveConvo)
595
- }
596
-
597
- /** Event indicating the viewer muted a convo. Can be direct or group. */
598
- export interface LogMuteConvo {
599
- $type?: 'chat.bsky.convo.defs#logMuteConvo'
600
- rev: string
601
- convoId: string
602
- }
603
-
604
- const hashLogMuteConvo = 'logMuteConvo'
605
-
606
- export function isLogMuteConvo<V>(v: V) {
607
- return is$typed(v, id, hashLogMuteConvo)
608
- }
609
-
610
- export function validateLogMuteConvo<V>(v: V) {
611
- return validate<LogMuteConvo & V>(v, id, hashLogMuteConvo)
612
- }
613
-
614
- /** Event indicating the viewer unmuted a convo. Can be direct or group. */
615
- export interface LogUnmuteConvo {
616
- $type?: 'chat.bsky.convo.defs#logUnmuteConvo'
617
- rev: string
618
- convoId: string
619
- }
620
-
621
- const hashLogUnmuteConvo = 'logUnmuteConvo'
622
-
623
- export function isLogUnmuteConvo<V>(v: V) {
624
- return is$typed(v, id, hashLogUnmuteConvo)
625
- }
626
-
627
- export function validateLogUnmuteConvo<V>(v: V) {
628
- return validate<LogUnmuteConvo & V>(v, id, hashLogUnmuteConvo)
629
- }
630
-
631
- /** Event indicating a user-originated message was created. Is not emitted for system messages. */
632
- export interface LogCreateMessage {
633
- $type?: 'chat.bsky.convo.defs#logCreateMessage'
634
- rev: string
635
- convoId: string
636
- message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
637
- /** Profiles referred to in the message view. This isn't required for compatibility, because it was added later, but should generally be present. */
638
- relatedProfiles?: ChatBskyActorDefs.ProfileViewBasic[]
639
- }
640
-
641
- const hashLogCreateMessage = 'logCreateMessage'
642
-
643
- export function isLogCreateMessage<V>(v: V) {
644
- return is$typed(v, id, hashLogCreateMessage)
645
- }
646
-
647
- export function validateLogCreateMessage<V>(v: V) {
648
- return validate<LogCreateMessage & V>(v, id, hashLogCreateMessage)
649
- }
650
-
651
- /** Event indicating a user-originated message was deleted. Is not emitted for system messages. */
652
- export interface LogDeleteMessage {
653
- $type?: 'chat.bsky.convo.defs#logDeleteMessage'
654
- rev: string
655
- convoId: string
656
- message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
657
- }
658
-
659
- const hashLogDeleteMessage = 'logDeleteMessage'
660
-
661
- export function isLogDeleteMessage<V>(v: V) {
662
- return is$typed(v, id, hashLogDeleteMessage)
663
- }
664
-
665
- export function validateLogDeleteMessage<V>(v: V) {
666
- return validate<LogDeleteMessage & V>(v, id, hashLogDeleteMessage)
667
- }
668
-
669
- /** DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message. */
670
- export interface LogReadMessage {
671
- $type?: 'chat.bsky.convo.defs#logReadMessage'
672
- rev: string
673
- convoId: string
674
- message:
675
- | $Typed<MessageView>
676
- | $Typed<DeletedMessageView>
677
- | $Typed<SystemMessageView>
678
- | { $type: string }
679
- }
680
-
681
- const hashLogReadMessage = 'logReadMessage'
682
-
683
- export function isLogReadMessage<V>(v: V) {
684
- return is$typed(v, id, hashLogReadMessage)
685
- }
686
-
687
- export function validateLogReadMessage<V>(v: V) {
688
- return validate<LogReadMessage & V>(v, id, hashLogReadMessage)
689
- }
690
-
691
- /** Event indicating a reaction was added to a message. */
692
- export interface LogAddReaction {
693
- $type?: 'chat.bsky.convo.defs#logAddReaction'
694
- rev: string
695
- convoId: string
696
- message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
697
- reaction: ReactionView
698
- /** Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present. */
699
- relatedProfiles?: ChatBskyActorDefs.ProfileViewBasic[]
700
- }
701
-
702
- const hashLogAddReaction = 'logAddReaction'
703
-
704
- export function isLogAddReaction<V>(v: V) {
705
- return is$typed(v, id, hashLogAddReaction)
706
- }
707
-
708
- export function validateLogAddReaction<V>(v: V) {
709
- return validate<LogAddReaction & V>(v, id, hashLogAddReaction)
710
- }
711
-
712
- /** Event indicating a reaction was removed from a message. */
713
- export interface LogRemoveReaction {
714
- $type?: 'chat.bsky.convo.defs#logRemoveReaction'
715
- rev: string
716
- convoId: string
717
- message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
718
- reaction: ReactionView
719
- /** Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present. */
720
- relatedProfiles?: ChatBskyActorDefs.ProfileViewBasic[]
721
- }
722
-
723
- const hashLogRemoveReaction = 'logRemoveReaction'
724
-
725
- export function isLogRemoveReaction<V>(v: V) {
726
- return is$typed(v, id, hashLogRemoveReaction)
727
- }
728
-
729
- export function validateLogRemoveReaction<V>(v: V) {
730
- return validate<LogRemoveReaction & V>(v, id, hashLogRemoveReaction)
731
- }
732
-
733
- /** [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. */
734
- export interface LogReadConvo {
735
- $type?: 'chat.bsky.convo.defs#logReadConvo'
736
- rev: string
737
- convoId: string
738
- message:
739
- | $Typed<MessageView>
740
- | $Typed<DeletedMessageView>
741
- | $Typed<SystemMessageView>
742
- | { $type: string }
743
- }
744
-
745
- const hashLogReadConvo = 'logReadConvo'
746
-
747
- export function isLogReadConvo<V>(v: V) {
748
- return is$typed(v, id, hashLogReadConvo)
749
- }
750
-
751
- export function validateLogReadConvo<V>(v: V) {
752
- return validate<LogReadConvo & V>(v, id, hashLogReadConvo)
753
- }
754
-
755
- /** [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). */
756
- export interface LogAddMember {
757
- $type?: 'chat.bsky.convo.defs#logAddMember'
758
- rev: string
759
- convoId: string
760
- message: SystemMessageView
761
- /** Profiles referred in the system message. */
762
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
763
- }
764
-
765
- const hashLogAddMember = 'logAddMember'
766
-
767
- export function isLogAddMember<V>(v: V) {
768
- return is$typed(v, id, hashLogAddMember)
769
- }
770
-
771
- export function validateLogAddMember<V>(v: V) {
772
- return validate<LogAddMember & V>(v, id, hashLogAddMember)
773
- }
774
-
775
- /** [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). */
776
- export interface LogRemoveMember {
777
- $type?: 'chat.bsky.convo.defs#logRemoveMember'
778
- rev: string
779
- convoId: string
780
- message: SystemMessageView
781
- /** Profiles referred in the system message. */
782
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
783
- }
784
-
785
- const hashLogRemoveMember = 'logRemoveMember'
786
-
787
- export function isLogRemoveMember<V>(v: V) {
788
- return is$typed(v, id, hashLogRemoveMember)
789
- }
790
-
791
- export function validateLogRemoveMember<V>(v: V) {
792
- return validate<LogRemoveMember & V>(v, id, hashLogRemoveMember)
793
- }
794
-
795
- /** [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). */
796
- export interface LogMemberJoin {
797
- $type?: 'chat.bsky.convo.defs#logMemberJoin'
798
- rev: string
799
- convoId: string
800
- message: SystemMessageView
801
- /** Profiles referred in the system message. */
802
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
803
- }
804
-
805
- const hashLogMemberJoin = 'logMemberJoin'
806
-
807
- export function isLogMemberJoin<V>(v: V) {
808
- return is$typed(v, id, hashLogMemberJoin)
809
- }
810
-
811
- export function validateLogMemberJoin<V>(v: V) {
812
- return validate<LogMemberJoin & V>(v, id, hashLogMemberJoin)
813
- }
814
-
815
- /** [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). */
816
- export interface LogMemberLeave {
817
- $type?: 'chat.bsky.convo.defs#logMemberLeave'
818
- rev: string
819
- convoId: string
820
- message: SystemMessageView
821
- /** Profiles referred in the system message. */
822
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
823
- }
824
-
825
- const hashLogMemberLeave = 'logMemberLeave'
826
-
827
- export function isLogMemberLeave<V>(v: V) {
828
- return is$typed(v, id, hashLogMemberLeave)
829
- }
830
-
831
- export function validateLogMemberLeave<V>(v: V) {
832
- return validate<LogMemberLeave & V>(v, id, hashLogMemberLeave)
833
- }
834
-
835
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked. */
836
- export interface LogLockConvo {
837
- $type?: 'chat.bsky.convo.defs#logLockConvo'
838
- rev: string
839
- convoId: string
840
- message: SystemMessageView
841
- /** Profiles referred in the system message. */
842
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
843
- }
844
-
845
- const hashLogLockConvo = 'logLockConvo'
846
-
847
- export function isLogLockConvo<V>(v: V) {
848
- return is$typed(v, id, hashLogLockConvo)
849
- }
850
-
851
- export function validateLogLockConvo<V>(v: V) {
852
- return validate<LogLockConvo & V>(v, id, hashLogLockConvo)
853
- }
854
-
855
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked. */
856
- export interface LogUnlockConvo {
857
- $type?: 'chat.bsky.convo.defs#logUnlockConvo'
858
- rev: string
859
- convoId: string
860
- message: SystemMessageView
861
- /** Profiles referred in the system message. */
862
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
863
- }
864
-
865
- const hashLogUnlockConvo = 'logUnlockConvo'
866
-
867
- export function isLogUnlockConvo<V>(v: V) {
868
- return is$typed(v, id, hashLogUnlockConvo)
869
- }
870
-
871
- export function validateLogUnlockConvo<V>(v: V) {
872
- return validate<LogUnlockConvo & V>(v, id, hashLogUnlockConvo)
873
- }
874
-
875
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently. */
876
- export interface LogLockConvoPermanently {
877
- $type?: 'chat.bsky.convo.defs#logLockConvoPermanently'
878
- rev: string
879
- convoId: string
880
- message: SystemMessageView
881
- /** Profiles referred in the system message. */
882
- relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
883
- }
884
-
885
- const hashLogLockConvoPermanently = 'logLockConvoPermanently'
886
-
887
- export function isLogLockConvoPermanently<V>(v: V) {
888
- return is$typed(v, id, hashLogLockConvoPermanently)
889
- }
890
-
891
- export function validateLogLockConvoPermanently<V>(v: V) {
892
- return validate<LogLockConvoPermanently & V>(
893
- v,
894
- id,
895
- hashLogLockConvoPermanently,
896
- )
897
- }
898
-
899
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited. */
900
- export interface LogEditGroup {
901
- $type?: 'chat.bsky.convo.defs#logEditGroup'
902
- rev: string
903
- convoId: string
904
- message: SystemMessageView
905
- }
906
-
907
- const hashLogEditGroup = 'logEditGroup'
908
-
909
- export function isLogEditGroup<V>(v: V) {
910
- return is$typed(v, id, hashLogEditGroup)
911
- }
912
-
913
- export function validateLogEditGroup<V>(v: V) {
914
- return validate<LogEditGroup & V>(v, id, hashLogEditGroup)
915
- }
916
-
917
- /** [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. */
918
- export interface LogCreateJoinLink {
919
- $type?: 'chat.bsky.convo.defs#logCreateJoinLink'
920
- rev: string
921
- convoId: string
922
- message: SystemMessageView
923
- }
924
-
925
- const hashLogCreateJoinLink = 'logCreateJoinLink'
926
-
927
- export function isLogCreateJoinLink<V>(v: V) {
928
- return is$typed(v, id, hashLogCreateJoinLink)
929
- }
930
-
931
- export function validateLogCreateJoinLink<V>(v: V) {
932
- return validate<LogCreateJoinLink & V>(v, id, hashLogCreateJoinLink)
933
- }
934
-
935
- /** [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. */
936
- export interface LogEditJoinLink {
937
- $type?: 'chat.bsky.convo.defs#logEditJoinLink'
938
- rev: string
939
- convoId: string
940
- message: SystemMessageView
941
- }
942
-
943
- const hashLogEditJoinLink = 'logEditJoinLink'
944
-
945
- export function isLogEditJoinLink<V>(v: V) {
946
- return is$typed(v, id, hashLogEditJoinLink)
947
- }
948
-
949
- export function validateLogEditJoinLink<V>(v: V) {
950
- return validate<LogEditJoinLink & V>(v, id, hashLogEditJoinLink)
951
- }
952
-
953
- /** [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. */
954
- export interface LogEnableJoinLink {
955
- $type?: 'chat.bsky.convo.defs#logEnableJoinLink'
956
- rev: string
957
- convoId: string
958
- message: SystemMessageView
959
- }
960
-
961
- const hashLogEnableJoinLink = 'logEnableJoinLink'
962
-
963
- export function isLogEnableJoinLink<V>(v: V) {
964
- return is$typed(v, id, hashLogEnableJoinLink)
965
- }
966
-
967
- export function validateLogEnableJoinLink<V>(v: V) {
968
- return validate<LogEnableJoinLink & V>(v, id, hashLogEnableJoinLink)
969
- }
970
-
971
- /** [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. */
972
- export interface LogDisableJoinLink {
973
- $type?: 'chat.bsky.convo.defs#logDisableJoinLink'
974
- rev: string
975
- convoId: string
976
- message: SystemMessageView
977
- }
978
-
979
- const hashLogDisableJoinLink = 'logDisableJoinLink'
980
-
981
- export function isLogDisableJoinLink<V>(v: V) {
982
- return is$typed(v, id, hashLogDisableJoinLink)
983
- }
984
-
985
- export function validateLogDisableJoinLink<V>(v: V) {
986
- return validate<LogDisableJoinLink & V>(v, id, hashLogDisableJoinLink)
987
- }
988
-
989
- /** [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. */
990
- export interface LogIncomingJoinRequest {
991
- $type?: 'chat.bsky.convo.defs#logIncomingJoinRequest'
992
- rev: string
993
- convoId: string
994
- member: ChatBskyActorDefs.ProfileViewBasic
995
- }
996
-
997
- const hashLogIncomingJoinRequest = 'logIncomingJoinRequest'
998
-
999
- export function isLogIncomingJoinRequest<V>(v: V) {
1000
- return is$typed(v, id, hashLogIncomingJoinRequest)
1001
- }
1002
-
1003
- export function validateLogIncomingJoinRequest<V>(v: V) {
1004
- return validate<LogIncomingJoinRequest & V>(v, id, hashLogIncomingJoinRequest)
1005
- }
1006
-
1007
- /** [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. */
1008
- export interface LogApproveJoinRequest {
1009
- $type?: 'chat.bsky.convo.defs#logApproveJoinRequest'
1010
- rev: string
1011
- convoId: string
1012
- member: ChatBskyActorDefs.ProfileViewBasic
1013
- }
1014
-
1015
- const hashLogApproveJoinRequest = 'logApproveJoinRequest'
1016
-
1017
- export function isLogApproveJoinRequest<V>(v: V) {
1018
- return is$typed(v, id, hashLogApproveJoinRequest)
1019
- }
1020
-
1021
- export function validateLogApproveJoinRequest<V>(v: V) {
1022
- return validate<LogApproveJoinRequest & V>(v, id, hashLogApproveJoinRequest)
1023
- }
1024
-
1025
- /** [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. */
1026
- export interface LogRejectJoinRequest {
1027
- $type?: 'chat.bsky.convo.defs#logRejectJoinRequest'
1028
- rev: string
1029
- convoId: string
1030
- member: ChatBskyActorDefs.ProfileViewBasic
1031
- }
1032
-
1033
- const hashLogRejectJoinRequest = 'logRejectJoinRequest'
1034
-
1035
- export function isLogRejectJoinRequest<V>(v: V) {
1036
- return is$typed(v, id, hashLogRejectJoinRequest)
1037
- }
1038
-
1039
- export function validateLogRejectJoinRequest<V>(v: V) {
1040
- return validate<LogRejectJoinRequest & V>(v, id, hashLogRejectJoinRequest)
1041
- }
1042
-
1043
- /** [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. */
1044
- export interface LogOutgoingJoinRequest {
1045
- $type?: 'chat.bsky.convo.defs#logOutgoingJoinRequest'
1046
- rev: string
1047
- convoId: string
1048
- }
1049
-
1050
- const hashLogOutgoingJoinRequest = 'logOutgoingJoinRequest'
1051
-
1052
- export function isLogOutgoingJoinRequest<V>(v: V) {
1053
- return is$typed(v, id, hashLogOutgoingJoinRequest)
1054
- }
1055
-
1056
- export function validateLogOutgoingJoinRequest<V>(v: V) {
1057
- return validate<LogOutgoingJoinRequest & V>(v, id, hashLogOutgoingJoinRequest)
1058
- }