@atproto/api 0.20.0 → 0.20.2

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 (401) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/client/index.d.ts +9 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +12 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +488 -12
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +249 -6
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +45 -2
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js +21 -0
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +32 -0
  15. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js +8 -0
  17. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -0
  18. package/dist/client/types/chat/bsky/actor/getStatus.d.ts +23 -0
  19. package/dist/client/types/chat/bsky/actor/getStatus.d.ts.map +1 -0
  20. package/dist/client/types/chat/bsky/actor/getStatus.js +8 -0
  21. package/dist/client/types/chat/bsky/actor/getStatus.js.map +1 -0
  22. package/dist/client/types/chat/bsky/group/addMembers.d.ts +3 -3
  23. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  24. package/dist/client/types/chat/bsky/group/addMembers.js +7 -7
  25. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  26. package/dist/client/types/chat/bsky/group/createGroup.d.ts +4 -1
  27. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  28. package/dist/client/types/chat/bsky/group/createGroup.js +10 -3
  29. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  30. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
  31. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
  32. package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
  33. package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
  34. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +1 -1
  35. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  36. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  37. package/package.json +6 -5
  38. package/tsconfig.build.tsbuildinfo +1 -1
  39. package/src/client/index.ts +0 -6408
  40. package/src/client/lexicons.ts +0 -25781
  41. package/src/client/types/app/bsky/actor/defs.ts +0 -716
  42. package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
  43. package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
  44. package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
  45. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
  46. package/src/client/types/app/bsky/actor/profile.ts +0 -52
  47. package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
  48. package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
  49. package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
  50. package/src/client/types/app/bsky/actor/status.ts +0 -46
  51. package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
  52. package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
  53. package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
  54. package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
  55. package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
  56. package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
  57. package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
  58. package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
  59. package/src/client/types/app/bsky/contact/defs.ts +0 -71
  60. package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
  61. package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
  62. package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
  63. package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
  64. package/src/client/types/app/bsky/contact/removeData.ts +0 -56
  65. package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
  66. package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
  67. package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
  68. package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
  69. package/src/client/types/app/bsky/draft/defs.ts +0 -212
  70. package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
  71. package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
  72. package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
  73. package/src/client/types/app/bsky/embed/defs.ts +0 -32
  74. package/src/client/types/app/bsky/embed/external.ts +0 -85
  75. package/src/client/types/app/bsky/embed/images.ts +0 -86
  76. package/src/client/types/app/bsky/embed/record.ts +0 -146
  77. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
  78. package/src/client/types/app/bsky/embed/video.ts +0 -75
  79. package/src/client/types/app/bsky/feed/defs.ts +0 -428
  80. package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
  81. package/src/client/types/app/bsky/feed/generator.ts +0 -51
  82. package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
  83. package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
  84. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
  85. package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
  86. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
  87. package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
  88. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
  89. package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
  90. package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
  91. package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
  92. package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
  93. package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
  94. package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
  95. package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
  96. package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
  97. package/src/client/types/app/bsky/feed/like.ts +0 -40
  98. package/src/client/types/app/bsky/feed/post.ts +0 -117
  99. package/src/client/types/app/bsky/feed/postgate.ts +0 -58
  100. package/src/client/types/app/bsky/feed/repost.ts +0 -40
  101. package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
  102. package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
  103. package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
  104. package/src/client/types/app/bsky/graph/block.ts +0 -39
  105. package/src/client/types/app/bsky/graph/defs.ts +0 -206
  106. package/src/client/types/app/bsky/graph/follow.ts +0 -40
  107. package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
  108. package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
  109. package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
  110. package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
  111. package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
  112. package/src/client/types/app/bsky/graph/getList.ts +0 -46
  113. package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
  114. package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
  115. package/src/client/types/app/bsky/graph/getLists.ts +0 -47
  116. package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
  117. package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
  118. package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
  119. package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
  120. package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
  121. package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
  122. package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
  123. package/src/client/types/app/bsky/graph/list.ts +0 -47
  124. package/src/client/types/app/bsky/graph/listblock.ts +0 -39
  125. package/src/client/types/app/bsky/graph/listitem.ts +0 -41
  126. package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
  127. package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
  128. package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
  129. package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
  130. package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
  131. package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
  132. package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
  133. package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
  134. package/src/client/types/app/bsky/graph/verification.ts +0 -44
  135. package/src/client/types/app/bsky/labeler/defs.ts +0 -100
  136. package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
  137. package/src/client/types/app/bsky/labeler/service.ts +0 -48
  138. package/src/client/types/app/bsky/notification/declaration.ts +0 -38
  139. package/src/client/types/app/bsky/notification/defs.ts +0 -142
  140. package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
  141. package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
  142. package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
  143. package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
  144. package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
  145. package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
  146. package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
  147. package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
  148. package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
  149. package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
  150. package/src/client/types/app/bsky/richtext/facet.ts +0 -97
  151. package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
  152. package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
  153. package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
  154. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
  155. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
  156. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
  157. package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
  158. package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
  159. package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
  160. package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
  161. package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
  162. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
  163. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
  164. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
  165. package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
  166. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
  167. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
  168. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
  169. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
  170. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
  171. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
  172. package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
  173. package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
  174. package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
  175. package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
  176. package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
  177. package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
  178. package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
  179. package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
  180. package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
  181. package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
  182. package/src/client/types/app/bsky/video/defs.ts +0 -38
  183. package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
  184. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
  185. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
  186. package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
  187. package/src/client/types/chat/bsky/actor/defs.ts +0 -96
  188. package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
  189. package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
  190. package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
  191. package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
  192. package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
  193. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
  194. package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
  195. package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
  196. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
  197. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
  198. package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
  199. package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
  200. package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
  201. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
  202. package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
  203. package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
  204. package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
  205. package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
  206. package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
  207. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
  208. package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
  209. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
  210. package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
  211. package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
  212. package/src/client/types/chat/bsky/group/addMembers.ts +0 -114
  213. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
  214. package/src/client/types/chat/bsky/group/createGroup.ts +0 -84
  215. package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
  216. package/src/client/types/chat/bsky/group/defs.ts +0 -75
  217. package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
  218. package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
  219. package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
  220. package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
  221. package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
  222. package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
  223. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
  224. package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
  225. package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
  226. package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
  227. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -53
  228. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -366
  229. package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
  230. package/src/client/types/com/atproto/admin/defs.ts +0 -106
  231. package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
  232. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
  233. package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
  234. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
  235. package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
  236. package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
  237. package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
  238. package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
  239. package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
  240. package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
  241. package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
  242. package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
  243. package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
  244. package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
  245. package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
  246. package/src/client/types/com/atproto/identity/defs.ts +0 -34
  247. package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
  248. package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
  249. package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
  250. package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
  251. package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
  252. package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
  253. package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
  254. package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
  255. package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
  256. package/src/client/types/com/atproto/label/defs.ts +0 -143
  257. package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
  258. package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
  259. package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
  260. package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
  261. package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
  262. package/src/client/types/com/atproto/moderation/defs.ts +0 -83
  263. package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
  264. package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
  265. package/src/client/types/com/atproto/repo/defs.ts +0 -31
  266. package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
  267. package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
  268. package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
  269. package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
  270. package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
  271. package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
  272. package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
  273. package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
  274. package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
  275. package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
  276. package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
  277. package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
  278. package/src/client/types/com/atproto/server/createAccount.ts +0 -115
  279. package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
  280. package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
  281. package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
  282. package/src/client/types/com/atproto/server/createSession.ts +0 -76
  283. package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
  284. package/src/client/types/com/atproto/server/defs.ts +0 -52
  285. package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
  286. package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
  287. package/src/client/types/com/atproto/server/describeServer.ts +0 -77
  288. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
  289. package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
  290. package/src/client/types/com/atproto/server/getSession.ts +0 -46
  291. package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
  292. package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
  293. package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
  294. package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
  295. package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
  296. package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
  297. package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
  298. package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
  299. package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
  300. package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
  301. package/src/client/types/com/atproto/sync/defs.ts +0 -23
  302. package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
  303. package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
  304. package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
  305. package/src/client/types/com/atproto/sync/getHead.ts +0 -51
  306. package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
  307. package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
  308. package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
  309. package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
  310. package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
  311. package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
  312. package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
  313. package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
  314. package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
  315. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
  316. package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
  317. package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
  318. package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
  319. package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
  320. package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
  321. package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
  322. package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
  323. package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
  324. package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
  325. package/src/client/types/com/germnetwork/declaration.ts +0 -63
  326. package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
  327. package/src/client/types/tools/ozone/communication/defs.ts +0 -43
  328. package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
  329. package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
  330. package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
  331. package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
  332. package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
  333. package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
  334. package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
  335. package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
  336. package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
  337. package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
  338. package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
  339. package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
  340. package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
  341. package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
  342. package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
  343. package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
  344. package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
  345. package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
  346. package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
  347. package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
  348. package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
  349. package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
  350. package/src/client/types/tools/ozone/queue/defs.ts +0 -99
  351. package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
  352. package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
  353. package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
  354. package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
  355. package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
  356. package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
  357. package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
  358. package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
  359. package/src/client/types/tools/ozone/report/defs.ts +0 -466
  360. package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
  361. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
  362. package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
  363. package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
  364. package/src/client/types/tools/ozone/report/getReport.ts +0 -49
  365. package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
  366. package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
  367. package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
  368. package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
  369. package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
  370. package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
  371. package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
  372. package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
  373. package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
  374. package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
  375. package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
  376. package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
  377. package/src/client/types/tools/ozone/set/addValues.ts +0 -41
  378. package/src/client/types/tools/ozone/set/defs.ts +0 -50
  379. package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
  380. package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
  381. package/src/client/types/tools/ozone/set/getValues.ts +0 -55
  382. package/src/client/types/tools/ozone/set/querySets.ts +0 -47
  383. package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
  384. package/src/client/types/tools/ozone/setting/defs.ts +0 -44
  385. package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
  386. package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
  387. package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
  388. package/src/client/types/tools/ozone/signature/defs.ts +0 -31
  389. package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
  390. package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
  391. package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
  392. package/src/client/types/tools/ozone/team/addMember.ts +0 -59
  393. package/src/client/types/tools/ozone/team/defs.ts +0 -51
  394. package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
  395. package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
  396. package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
  397. package/src/client/types/tools/ozone/verification/defs.ts +0 -59
  398. package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
  399. package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
  400. package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
  401. package/src/client/util.ts +0 -82
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
5
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
+ import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
6
7
  /** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
7
8
  export interface Main {
8
9
  $type?: 'app.bsky.embed.external';
@@ -16,8 +17,8 @@ export interface External {
16
17
  title: string;
17
18
  description: string;
18
19
  thumb?: BlobRef;
19
- /** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */
20
- associatedRecords?: ComAtprotoRepoStrongRef.Main[];
20
+ /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
21
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
21
22
  }
22
23
  export declare function isExternal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "external">;
23
24
  export declare function validateExternal<V>(v: V): ValidationResult<External & V>;
@@ -33,7 +34,49 @@ export interface ViewExternal {
33
34
  title: string;
34
35
  description: string;
35
36
  thumb?: string;
37
+ /** When the external content was created, if available. Example: a publication date, for an article. */
38
+ createdAt?: string;
39
+ /** When the external content was updated, if available. */
40
+ updatedAt?: string;
41
+ /** Estimated reading time in minutes, if applicable and available. */
42
+ readingTime?: number;
43
+ labels?: ComAtprotoLabelDefs.Label[];
44
+ source?: ViewExternalSource;
45
+ /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
46
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
36
47
  }
37
48
  export declare function isViewExternal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternal">;
38
49
  export declare function validateViewExternal<V>(v: V): ValidationResult<ViewExternal & V>;
50
+ /** The source of an external embed, such as a standard.site publication. */
51
+ export interface ViewExternalSource {
52
+ $type?: 'app.bsky.embed.external#viewExternalSource';
53
+ /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */
54
+ uri?: string;
55
+ /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */
56
+ icon?: string;
57
+ title?: string;
58
+ description?: string;
59
+ theme?: ViewExternalSourceTheme;
60
+ }
61
+ export declare function isViewExternalSource<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternalSource">;
62
+ export declare function validateViewExternalSource<V>(v: V): ValidationResult<ViewExternalSource & V>;
63
+ /** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */
64
+ export interface ViewExternalSourceTheme {
65
+ $type?: 'app.bsky.embed.external#viewExternalSourceTheme';
66
+ backgroundRGB?: ColorRGB;
67
+ foregroundRGB?: ColorRGB;
68
+ accentRGB?: ColorRGB;
69
+ accentForegroundRGB?: ColorRGB;
70
+ }
71
+ export declare function isViewExternalSourceTheme<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternalSourceTheme">;
72
+ export declare function validateViewExternalSourceTheme<V>(v: V): ValidationResult<ViewExternalSourceTheme & V>;
73
+ /** RGB color definition, inspired by site.standard.theme.color#rgb */
74
+ export interface ColorRGB {
75
+ $type?: 'app.bsky.embed.external#colorRGB';
76
+ r: number;
77
+ g: number;
78
+ b: number;
79
+ }
80
+ export declare function isColorRGB<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "colorRGB">;
81
+ export declare function validateColorRGB<V>(v: V): ValidationResult<ColorRGB & V>;
39
82
  //# sourceMappingURL=external.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,mIAAmI;IACnI,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;CACnD;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,8BAA8B,CAAA;IACtC,QAAQ,EAAE,YAAY,CAAA;CACvB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,sCAAsC,CAAA;IAC9C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,K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AE,CAAC,EAAE,CAAC,6FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -30,4 +30,25 @@ export function isViewExternal(v) {
30
30
  export function validateViewExternal(v) {
31
31
  return validate(v, id, hashViewExternal);
32
32
  }
33
+ const hashViewExternalSource = 'viewExternalSource';
34
+ export function isViewExternalSource(v) {
35
+ return is$typed(v, id, hashViewExternalSource);
36
+ }
37
+ export function validateViewExternalSource(v) {
38
+ return validate(v, id, hashViewExternalSource);
39
+ }
40
+ const hashViewExternalSourceTheme = 'viewExternalSourceTheme';
41
+ export function isViewExternalSourceTheme(v) {
42
+ return is$typed(v, id, hashViewExternalSourceTheme);
43
+ }
44
+ export function validateViewExternalSourceTheme(v) {
45
+ return validate(v, id, hashViewExternalSourceTheme);
46
+ }
47
+ const hashColorRGB = 'colorRGB';
48
+ export function isColorRGB(v) {
49
+ return is$typed(v, id, hashColorRGB);
50
+ }
51
+ export function validateColorRGB(v) {
52
+ return validate(v, id, hashColorRGB);
53
+ }
33
54
  //# sourceMappingURL=external.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAQpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAYD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,MAAM,UAAU,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAOD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAUD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */\n associatedRecords?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n"]}
1
+ {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAQpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IA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O,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAWD,MAAM,2BAA2B,GAAG,yBAAyB,CAAA;AAE7D,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,2BAA2B,CAC5B,CAAA;AACH,CAAC;AAUD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,MAAM,UAAU,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri?: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title?: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n"]}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as AppBskyEmbedExternal from './external.js';
6
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
7
+ export type QueryParams = {
8
+ /** The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future. */
9
+ url: string;
10
+ /** AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication. */
11
+ uris: string[];
12
+ };
13
+ export type InputSchema = undefined;
14
+ export interface OutputSchema {
15
+ view?: AppBskyEmbedExternal.View;
16
+ /** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */
17
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
18
+ associatedRecords?: {
19
+ [_ in string]: unknown;
20
+ }[];
21
+ }
22
+ export interface CallOptions {
23
+ signal?: AbortSignal;
24
+ headers?: HeadersMap;
25
+ }
26
+ export interface Response {
27
+ success: boolean;
28
+ headers: HeadersMap;
29
+ data: OutputSchema;
30
+ }
31
+ export declare function toKnownErr(e: any): any;
32
+ //# sourceMappingURL=getEmbedExternalView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmbedExternalView.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,MAAM,WAAW,GAAG;IACxB,qLAAqL;IACrL,GAAG,EAAE,MAAM,CAAA;IACX,mMAAmM;IACnM,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAA;IAChC,0IAA0I;IAC1I,cAAc,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IAC/C,iBAAiB,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,EAAE,CAAA;CACjD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,8 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'app.bsky.embed.getEmbedExternalView';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
8
+ //# sourceMappingURL=getEmbedExternalView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmbedExternalView.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AA4BhD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyEmbedExternal from './external.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.getEmbedExternalView'\n\nexport type QueryParams = {\n /** The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future. */\n url: string\n /** AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication. */\n uris: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n view?: AppBskyEmbedExternal.View\n /** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedRecords?: { [_ in string]: unknown }[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export type InputSchema = undefined;
7
+ export interface OutputSchema {
8
+ /** True when the viewer's account is disabled and cannot actively participate in chat. */
9
+ chatDisabled: boolean;
10
+ /** Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups. */
11
+ canCreateGroups: boolean;
12
+ }
13
+ export interface CallOptions {
14
+ signal?: AbortSignal;
15
+ headers?: HeadersMap;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: HeadersMap;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
23
+ //# sourceMappingURL=getStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/actor/getStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,0FAA0F;IAC1F,YAAY,EAAE,OAAO,CAAA;IACrB,uHAAuH;IACvH,eAAe,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,8 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'chat.bsky.actor.getStatus';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
8
+ //# sourceMappingURL=getStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/actor/getStatus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2BAA2B,CAAA;AAuBtC,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.actor.getStatus'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** True when the viewer's account is disabled and cannot actively participate in chat. */\n chatDisabled: boolean\n /** Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups. */\n canCreateGroups: boolean\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -30,9 +30,6 @@ export declare class AccountSuspendedError extends XRPCError {
30
30
  export declare class BlockedActorError extends XRPCError {
31
31
  constructor(src: XRPCError);
32
32
  }
33
- export declare class UserForbidsGroupsError extends XRPCError {
34
- constructor(src: XRPCError);
35
- }
36
33
  export declare class ConvoLockedError extends XRPCError {
37
34
  constructor(src: XRPCError);
38
35
  }
@@ -51,5 +48,8 @@ export declare class NotFollowedBySenderError extends XRPCError {
51
48
  export declare class RecipientNotFoundError extends XRPCError {
52
49
  constructor(src: XRPCError);
53
50
  }
51
+ export declare class UserForbidsGroupsError extends XRPCError {
52
+ constructor(src: XRPCError);
53
+ }
54
54
  export declare function toKnownErr(e: any): any;
55
55
  //# sourceMappingURL=addMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/addMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAA;IAClC,YAAY,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,CAAA;CACpD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAA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, { cause: src });
17
17
  }
18
18
  }
19
- export class UserForbidsGroupsError extends XRPCError {
20
- constructor(src) {
21
- super(src.status, src.error, src.message, src.headers, { cause: src });
22
- }
23
- }
24
19
  export class ConvoLockedError extends XRPCError {
25
20
  constructor(src) {
26
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -51,14 +46,17 @@ export class RecipientNotFoundError extends XRPCError {
51
46
  super(src.status, src.error, src.message, src.headers, { cause: src });
52
47
  }
53
48
  }
49
+ export class UserForbidsGroupsError extends XRPCError {
50
+ constructor(src) {
51
+ super(src.status, src.error, src.message, src.headers, { cause: src });
52
+ }
53
+ }
54
54
  export function toKnownErr(e) {
55
55
  if (e instanceof XRPCError) {
56
56
  if (e.error === 'AccountSuspended')
57
57
  return new AccountSuspendedError(e);
58
58
  if (e.error === 'BlockedActor')
59
59
  return new BlockedActorError(e);
60
- if (e.error === 'UserForbidsGroups')
61
- return new UserForbidsGroupsError(e);
62
60
  if (e.error === 'ConvoLocked')
63
61
  return new ConvoLockedError(e);
64
62
  if (e.error === 'InsufficientRole')
@@ -71,6 +69,8 @@ export function toKnownErr(e) {
71
69
  return new NotFollowedBySenderError(e);
72
70
  if (e.error === 'RecipientNotFound')
73
71
  return new RecipientNotFoundError(e);
72
+ if (e.error === 'UserForbidsGroups')
73
+ return new UserForbidsGroupsError(e);
74
74
  }
75
75
  return e;
76
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/addMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAA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zE,IAAI,CAAC,CAAC,KAAK,KAAK,aAAa;YAAE,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,IAAI,CAAC,CAAC,KAAK,KAAK,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;QACxC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.addMembers'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n members: string[]\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n addedMembers?: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConvoLockedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InsufficientRoleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class MemberLimitReachedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n if (e.error === 'ConvoLocked') return new ConvoLockedError(e)\n if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n if (e.error === 'MemberLimitReached') return new MemberLimitReachedError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"addMembers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C,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,aAAa;YAAE,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,IAAI,CAAC,CAAC,KAAK,KAAK,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;QACxC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.addMembers'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n members: string[]\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n addedMembers?: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConvoLockedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InsufficientRoleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class MemberLimitReachedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'ConvoLocked') return new ConvoLockedError(e)\n if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n if (e.error === 'MemberLimitReached') return new MemberLimitReachedError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n }\n\n return e\n}\n"]}
@@ -28,7 +28,7 @@ export declare class AccountSuspendedError extends XRPCError {
28
28
  export declare class BlockedActorError extends XRPCError {
29
29
  constructor(src: XRPCError);
30
30
  }
31
- export declare class UserForbidsGroupsError extends XRPCError {
31
+ export declare class NewAccountCannotCreateGroupError extends XRPCError {
32
32
  constructor(src: XRPCError);
33
33
  }
34
34
  export declare class NotFollowedBySenderError extends XRPCError {
@@ -37,5 +37,8 @@ export declare class NotFollowedBySenderError extends XRPCError {
37
37
  export declare class RecipientNotFoundError extends XRPCError {
38
38
  constructor(src: XRPCError);
39
39
  }
40
+ export declare class UserForbidsGroupsError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
40
43
  export declare function toKnownErr(e: any): any;
41
44
  //# sourceMappingURL=createGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,qBAAsB,SAAQ,SAAS;gBACtC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAWhC"}
1
+ {"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,qBAAsB,SAAQ,SAAS;gBACtC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,gCAAiC,SAAQ,SAAS;gBACjD,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAahC"}
@@ -16,7 +16,7 @@ export class BlockedActorError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
- export class UserForbidsGroupsError extends XRPCError {
19
+ export class NewAccountCannotCreateGroupError extends XRPCError {
20
20
  constructor(src) {
21
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
22
22
  }
@@ -31,18 +31,25 @@ export class RecipientNotFoundError extends XRPCError {
31
31
  super(src.status, src.error, src.message, src.headers, { cause: src });
32
32
  }
33
33
  }
34
+ export class UserForbidsGroupsError extends XRPCError {
35
+ constructor(src) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src });
37
+ }
38
+ }
34
39
  export function toKnownErr(e) {
35
40
  if (e instanceof XRPCError) {
36
41
  if (e.error === 'AccountSuspended')
37
42
  return new AccountSuspendedError(e);
38
43
  if (e.error === 'BlockedActor')
39
44
  return new BlockedActorError(e);
40
- if (e.error === 'UserForbidsGroups')
41
- return new UserForbidsGroupsError(e);
45
+ if (e.error === 'NewAccountCannotCreateGroup')
46
+ return new NewAccountCannotCreateGroupError(e);
42
47
  if (e.error === 'NotFollowedBySender')
43
48
  return new NotFollowedBySenderError(e);
44
49
  if (e.error === 'RecipientNotFound')
45
50
  return new RecipientNotFoundError(e);
51
+ if (e.error === 'UserForbidsGroups')
52
+ return new UserForbidsGroupsError(e);
46
53
  }
47
54
  return e;
48
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createGroup.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACnD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EA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Y\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.createGroup'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n members: string[]\n name: string\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":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* GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.createGroup'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n members: string[]\n name: string\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NewAccountCannotCreateGroupError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'NewAccountCannotCreateGroup')\n return new NewAccountCannotCreateGroupError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ChatBskyConvoDefs from '../convo/defs.js';
6
+ export type QueryParams = {
7
+ subject: string;
8
+ limit?: number;
9
+ cursor?: string;
10
+ };
11
+ export type InputSchema = undefined;
12
+ export interface OutputSchema {
13
+ cursor?: string;
14
+ convos: ChatBskyConvoDefs.ConvoView[];
15
+ }
16
+ export interface CallOptions {
17
+ signal?: AbortSignal;
18
+ headers?: HeadersMap;
19
+ }
20
+ export interface Response {
21
+ success: boolean;
22
+ headers: HeadersMap;
23
+ data: OutputSchema;
24
+ }
25
+ export declare function toKnownErr(e: any): any;
26
+ //# sourceMappingURL=listMutualGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listMutualGroups.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/listMutualGroups.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,iBAAiB,CAAC,SAAS,EAAE,CAAA;CACtC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,8 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'chat.bsky.group.listMutualGroups';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
8
+ //# sourceMappingURL=listMutualGroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listMutualGroups.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/listMutualGroups.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA;AAyB7C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.listMutualGroups'\n\nexport type QueryParams = {\n subject: string\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n convos: ChatBskyConvoDefs.ConvoView[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -205,7 +205,7 @@ export interface EventGroupChatUpdated {
205
205
  /** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */
206
206
  joinLinkRequiresApproval?: boolean;
207
207
  /** Why the group was locked. Only present when updateType is 'locked'. */
208
- lockReason?: 'owner_action' | 'owner_left' | 'owner_deactivated' | 'owner_deleted' | 'owner_taken_down' | 'label_applied' | (string & {});
208
+ lockReason?: 'owner_action' | 'owner_left' | 'owner_deactivated' | 'owner_deleted' | 'owner_suspended' | 'owner_taken_down' | 'label_applied' | (string & {});
209
209
  /** The new group name. Only present when updateType is 'name_changed'. */
210
210
  newName?: string;
211
211
  /** The previous group name. Only present when updateType is 'name_changed'. */
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeModEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,gEAAgE,CAAA;IACxE,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qGAAqG;IACrG,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;CACb;AAID,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2HAE/C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,CAAC,EAAE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AAED,4DAA4D;AAC5D,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,+DAA+D,CAAA;IACvE,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAA;IACxB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wHAAwH;IACxH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,gHAAgH;IAChH,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,0EAA0E;IAC1E,UAAU,CAAC,EACP,cAAc,GACd,YAAY,GACZ,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB;IACpB,UAAU,EACN,cAAc,GACd,QAAQ,GACR,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,oBAAoB,GACpB,4BAA4B,GAC5B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAClB;AAID,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE9C;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+CAEpD"}
1
+ {"version":3,"file":"subscribeModEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,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Q,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB;IACpB,UAAU,EACN,cAAc,GACd,QAAQ,GACR,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,oBAAoB,GACpB,4BAA4B,GAC5B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAClB;AAID,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE9C;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAepD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAI,CAAI;IACpD,OAAO,QAAQ,CAA6B,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AAChF,CAAC;AAsBD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAA4B,CAAC,EAAE,EAAE,EA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I;IACzD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qCAAqC,CAAC,CAAA;AAC/D,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAI,CAAI;IAC/D,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,qCAAqC,CACtC,CAAA;AACH,CAAC;AAsBD,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC;AAuBD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC;AAiDD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAA4B,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AAC9E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.subscribeModEvents'\n\n/** Fired when the first message was sent on a convo. */\nexport interface EventConvoFirstMessage {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'\n convoId: string\n createdAt: string\n messageId?: string\n /** The list of DIDs message recipients. Does not include the sender, which is in the `user` field */\n recipients: string[]\n rev: string\n /** The DID of the message author. */\n user: string\n}\n\nconst hashEventConvoFirstMessage = 'eventConvoFirstMessage'\n\nexport function isEventConvoFirstMessage<V>(v: V) {\n return is$typed(v, id, hashEventConvoFirstMessage)\n}\n\nexport function validateEventConvoFirstMessage<V>(v: V) {\n return validate<EventConvoFirstMessage & V>(v, id, hashEventConvoFirstMessage)\n}\n\n/** Fire when a group chat is created. */\nexport interface EventGroupChatCreated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** The name set at creation time. */\n groupName: string\n /** DIDs of everyone added at creation time. */\n initialMemberDids: string[]\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n}\n\nconst hashEventGroupChatCreated = 'eventGroupChatCreated'\n\nexport function isEventGroupChatCreated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatCreated)\n}\n\nexport function validateEventGroupChatCreated<V>(v: V) {\n return validate<EventGroupChatCreated & V>(v, id, hashEventGroupChatCreated)\n}\n\n/** Fired when a member is added to a group chat. Note that members are added in the 'request' state. */\nexport interface EventGroupChatMemberAdded {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n /** The number of members who have not yet accepted the convo. */\n requestMembersCount: number\n rev: string\n /** The DID of the member who was added. */\n subjectDid: string\n /** Whether the added member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberAdded = 'eventGroupChatMemberAdded'\n\nexport function isEventGroupChatMemberAdded<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberAdded)\n}\n\nexport function validateEventGroupChatMemberAdded<V>(v: V) {\n return validate<EventGroupChatMemberAdded & V>(\n v,\n id,\n hashEventGroupChatMemberAdded,\n )\n}\n\n/** Fired when a member joins a group chat via an join link that does not require approval. */\nexport interface EventGroupChatMemberJoined {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined'\n /** The DID of the person joining. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to join. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the joining member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberJoined = 'eventGroupChatMemberJoined'\n\nexport function isEventGroupChatMemberJoined<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberJoined)\n}\n\nexport function validateEventGroupChatMemberJoined<V>(v: V) {\n return validate<EventGroupChatMemberJoined & V>(\n v,\n id,\n hashEventGroupChatMemberJoined,\n )\n}\n\n/** Fired when a user requests to join a group chat via an join link that requires approval. */\nexport interface EventGroupChatJoinRequest {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest'\n /** The DID of the person requesting to join. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to request joining. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the requesting member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatJoinRequest = 'eventGroupChatJoinRequest'\n\nexport function isEventGroupChatJoinRequest<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequest)\n}\n\nexport function validateEventGroupChatJoinRequest<V>(v: V) {\n return validate<EventGroupChatJoinRequest & V>(\n v,\n id,\n hashEventGroupChatJoinRequest,\n )\n}\n\n/** Fired when a join request is approved by the group owner. */\nexport interface EventGroupChatJoinRequestApproved {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved'\n /** The DID of the owner approving the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was approved. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestApproved =\n 'eventGroupChatJoinRequestApproved'\n\nexport function isEventGroupChatJoinRequestApproved<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestApproved)\n}\n\nexport function validateEventGroupChatJoinRequestApproved<V>(v: V) {\n return validate<EventGroupChatJoinRequestApproved & V>(\n v,\n id,\n hashEventGroupChatJoinRequestApproved,\n )\n}\n\n/** Fired when a join request is rejected by the group owner. */\nexport interface EventGroupChatJoinRequestRejected {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected'\n /** The DID of the owner rejecting the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was rejected. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestRejected =\n 'eventGroupChatJoinRequestRejected'\n\nexport function isEventGroupChatJoinRequestRejected<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestRejected)\n}\n\nexport function validateEventGroupChatJoinRequestRejected<V>(v: V) {\n return validate<EventGroupChatJoinRequestRejected & V>(\n v,\n id,\n hashEventGroupChatJoinRequestRejected,\n )\n}\n\n/** Fired when a user accepts a chat convo, either explicitly or by sending a message. */\nexport interface EventChatAccepted {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventChatAccepted'\n /** The DID of the person accepting the convo. */\n actorDid: string\n /** When the convo was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. Only present for group convos. */\n groupMemberCount?: number\n /** The name of the group chat. Only present for group convos. */\n groupName?: string\n /** How the convo was accepted. */\n method: 'explicit' | 'message' | (string & {})\n /** The DID of the group chat owner. Only present for group convos. */\n ownerDid?: string\n rev: string\n}\n\nconst hashEventChatAccepted = 'eventChatAccepted'\n\nexport function isEventChatAccepted<V>(v: V) {\n return is$typed(v, id, hashEventChatAccepted)\n}\n\nexport function validateEventChatAccepted<V>(v: V) {\n return validate<EventChatAccepted & V>(v, id, hashEventChatAccepted)\n}\n\n/** Fired when a member leaves or is removed from a group chat. */\nexport interface EventGroupChatMemberLeft {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft'\n /** The DID of the actor. For voluntary: the person leaving. For kicked: the owner. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** How the member left. */\n leaveMethod: 'voluntary' | 'kicked' | (string & {})\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member who left or was removed. */\n subjectDid: string\n}\n\nconst hashEventGroupChatMemberLeft = 'eventGroupChatMemberLeft'\n\nexport function isEventGroupChatMemberLeft<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberLeft)\n}\n\nexport function validateEventGroupChatMemberLeft<V>(v: V) {\n return validate<EventGroupChatMemberLeft & V>(\n v,\n id,\n hashEventGroupChatMemberLeft,\n )\n}\n\n/** Fired when a group chat's metadata or status changes. */\nexport interface EventGroupChatUpdated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated'\n /** The DID of the actor performing the action (the owner). */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** Current group name. */\n groupName: string\n /** The code of the join link. Only present when updateType is join-link-related. */\n joinLinkCode?: string\n /** Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. */\n joinLinkFollowersOnly?: boolean\n /** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */\n joinLinkRequiresApproval?: boolean\n /** Why the group was locked. Only present when updateType is 'locked'. */\n lockReason?:\n | 'owner_action'\n | 'owner_left'\n | 'owner_deactivated'\n | 'owner_deleted'\n | 'owner_taken_down'\n | 'label_applied'\n | (string & {})\n /** The new group name. Only present when updateType is 'name_changed'. */\n newName?: string\n /** The previous group name. Only present when updateType is 'name_changed'. */\n oldName?: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** What changed. */\n updateType:\n | 'name_changed'\n | 'locked'\n | 'locked_permanently'\n | 'unlocked'\n | 'join_link_created'\n | 'join_link_disabled'\n | 'join_link_settings_changed'\n | (string & {})\n}\n\nconst hashEventGroupChatUpdated = 'eventGroupChatUpdated'\n\nexport function isEventGroupChatUpdated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatUpdated)\n}\n\nexport function validateEventGroupChatUpdated<V>(v: V) {\n return validate<EventGroupChatUpdated & V>(v, id, hashEventGroupChatUpdated)\n}\n"]}
1
+ {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/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,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC;AAkDD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAA4B,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AAC9E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.subscribeModEvents'\n\n/** Fired when the first message was sent on a convo. */\nexport interface EventConvoFirstMessage {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'\n convoId: string\n createdAt: string\n messageId?: string\n /** The list of DIDs message recipients. Does not include the sender, which is in the `user` field */\n recipients: string[]\n rev: string\n /** The DID of the message author. */\n user: string\n}\n\nconst hashEventConvoFirstMessage = 'eventConvoFirstMessage'\n\nexport function isEventConvoFirstMessage<V>(v: V) {\n return is$typed(v, id, hashEventConvoFirstMessage)\n}\n\nexport function validateEventConvoFirstMessage<V>(v: V) {\n return validate<EventConvoFirstMessage & V>(v, id, hashEventConvoFirstMessage)\n}\n\n/** Fire when a group chat is created. */\nexport interface EventGroupChatCreated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** The name set at creation time. */\n groupName: string\n /** DIDs of everyone added at creation time. */\n initialMemberDids: string[]\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n}\n\nconst hashEventGroupChatCreated = 'eventGroupChatCreated'\n\nexport function isEventGroupChatCreated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatCreated)\n}\n\nexport function validateEventGroupChatCreated<V>(v: V) {\n return validate<EventGroupChatCreated & V>(v, id, hashEventGroupChatCreated)\n}\n\n/** Fired when a member is added to a group chat. Note that members are added in the 'request' state. */\nexport interface EventGroupChatMemberAdded {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n /** The number of members who have not yet accepted the convo. */\n requestMembersCount: number\n rev: string\n /** The DID of the member who was added. */\n subjectDid: string\n /** Whether the added member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberAdded = 'eventGroupChatMemberAdded'\n\nexport function isEventGroupChatMemberAdded<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberAdded)\n}\n\nexport function validateEventGroupChatMemberAdded<V>(v: V) {\n return validate<EventGroupChatMemberAdded & V>(\n v,\n id,\n hashEventGroupChatMemberAdded,\n )\n}\n\n/** Fired when a member joins a group chat via an join link that does not require approval. */\nexport interface EventGroupChatMemberJoined {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined'\n /** The DID of the person joining. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to join. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the joining member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberJoined = 'eventGroupChatMemberJoined'\n\nexport function isEventGroupChatMemberJoined<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberJoined)\n}\n\nexport function validateEventGroupChatMemberJoined<V>(v: V) {\n return validate<EventGroupChatMemberJoined & V>(\n v,\n id,\n hashEventGroupChatMemberJoined,\n )\n}\n\n/** Fired when a user requests to join a group chat via an join link that requires approval. */\nexport interface EventGroupChatJoinRequest {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest'\n /** The DID of the person requesting to join. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to request joining. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the requesting member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatJoinRequest = 'eventGroupChatJoinRequest'\n\nexport function isEventGroupChatJoinRequest<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequest)\n}\n\nexport function validateEventGroupChatJoinRequest<V>(v: V) {\n return validate<EventGroupChatJoinRequest & V>(\n v,\n id,\n hashEventGroupChatJoinRequest,\n )\n}\n\n/** Fired when a join request is approved by the group owner. */\nexport interface EventGroupChatJoinRequestApproved {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved'\n /** The DID of the owner approving the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was approved. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestApproved =\n 'eventGroupChatJoinRequestApproved'\n\nexport function isEventGroupChatJoinRequestApproved<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestApproved)\n}\n\nexport function validateEventGroupChatJoinRequestApproved<V>(v: V) {\n return validate<EventGroupChatJoinRequestApproved & V>(\n v,\n id,\n hashEventGroupChatJoinRequestApproved,\n )\n}\n\n/** Fired when a join request is rejected by the group owner. */\nexport interface EventGroupChatJoinRequestRejected {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected'\n /** The DID of the owner rejecting the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was rejected. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestRejected =\n 'eventGroupChatJoinRequestRejected'\n\nexport function isEventGroupChatJoinRequestRejected<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestRejected)\n}\n\nexport function validateEventGroupChatJoinRequestRejected<V>(v: V) {\n return validate<EventGroupChatJoinRequestRejected & V>(\n v,\n id,\n hashEventGroupChatJoinRequestRejected,\n )\n}\n\n/** Fired when a user accepts a chat convo, either explicitly or by sending a message. */\nexport interface EventChatAccepted {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventChatAccepted'\n /** The DID of the person accepting the convo. */\n actorDid: string\n /** When the convo was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. Only present for group convos. */\n groupMemberCount?: number\n /** The name of the group chat. Only present for group convos. */\n groupName?: string\n /** How the convo was accepted. */\n method: 'explicit' | 'message' | (string & {})\n /** The DID of the group chat owner. Only present for group convos. */\n ownerDid?: string\n rev: string\n}\n\nconst hashEventChatAccepted = 'eventChatAccepted'\n\nexport function isEventChatAccepted<V>(v: V) {\n return is$typed(v, id, hashEventChatAccepted)\n}\n\nexport function validateEventChatAccepted<V>(v: V) {\n return validate<EventChatAccepted & V>(v, id, hashEventChatAccepted)\n}\n\n/** Fired when a member leaves or is removed from a group chat. */\nexport interface EventGroupChatMemberLeft {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft'\n /** The DID of the actor. For voluntary: the person leaving. For kicked: the owner. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** How the member left. */\n leaveMethod: 'voluntary' | 'kicked' | (string & {})\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member who left or was removed. */\n subjectDid: string\n}\n\nconst hashEventGroupChatMemberLeft = 'eventGroupChatMemberLeft'\n\nexport function isEventGroupChatMemberLeft<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberLeft)\n}\n\nexport function validateEventGroupChatMemberLeft<V>(v: V) {\n return validate<EventGroupChatMemberLeft & V>(\n v,\n id,\n hashEventGroupChatMemberLeft,\n )\n}\n\n/** Fired when a group chat's metadata or status changes. */\nexport interface EventGroupChatUpdated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated'\n /** The DID of the actor performing the action (the owner). */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** Current group name. */\n groupName: string\n /** The code of the join link. Only present when updateType is join-link-related. */\n joinLinkCode?: string\n /** Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. */\n joinLinkFollowersOnly?: boolean\n /** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */\n joinLinkRequiresApproval?: boolean\n /** Why the group was locked. Only present when updateType is 'locked'. */\n lockReason?:\n | 'owner_action'\n | 'owner_left'\n | 'owner_deactivated'\n | 'owner_deleted'\n | 'owner_suspended'\n | 'owner_taken_down'\n | 'label_applied'\n | (string & {})\n /** The new group name. Only present when updateType is 'name_changed'. */\n newName?: string\n /** The previous group name. Only present when updateType is 'name_changed'. */\n oldName?: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** What changed. */\n updateType:\n | 'name_changed'\n | 'locked'\n | 'locked_permanently'\n | 'unlocked'\n | 'join_link_created'\n | 'join_link_disabled'\n | 'join_link_settings_changed'\n | (string & {})\n}\n\nconst hashEventGroupChatUpdated = 'eventGroupChatUpdated'\n\nexport function isEventGroupChatUpdated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatUpdated)\n}\n\nexport function validateEventGroupChatUpdated<V>(v: V) {\n return validate<EventGroupChatUpdated & V>(v, id, hashEventGroupChatUpdated)\n}\n"]}