@atproto/api 0.8.0 → 0.9.0

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 (405) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +2 -2
  3. package/dist/client/index.d.ts +40 -37
  4. package/dist/client/lexicons.d.ts +78 -48
  5. package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
  6. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -1
  7. package/dist/client/types/app/bsky/actor/getPreferences.d.ts +1 -1
  8. package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -2
  9. package/dist/client/types/app/bsky/actor/getProfiles.d.ts +1 -1
  10. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +1 -1
  11. package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
  12. package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
  13. package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
  14. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
  15. package/dist/client/types/app/bsky/actor/searchActors.d.ts +1 -1
  16. package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -1
  17. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
  18. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +47 -0
  19. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  20. package/dist/client/types/app/bsky/feed/describeFeedGenerator.d.ts +1 -1
  21. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
  22. package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +1 -1
  23. package/dist/client/types/app/bsky/feed/getActorLikes.d.ts +1 -1
  24. package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -1
  25. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  26. package/dist/client/types/app/bsky/feed/getFeed.d.ts +1 -1
  27. package/dist/client/types/app/bsky/feed/getFeedGenerator.d.ts +1 -1
  28. package/dist/client/types/app/bsky/feed/getFeedGenerators.d.ts +1 -1
  29. package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +1 -1
  30. package/dist/client/types/app/bsky/feed/getLikes.d.ts +1 -1
  31. package/dist/client/types/app/bsky/feed/getListFeed.d.ts +1 -1
  32. package/dist/client/types/app/bsky/feed/getPostThread.d.ts +1 -1
  33. package/dist/client/types/app/bsky/feed/getPosts.d.ts +1 -1
  34. package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +1 -1
  35. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
  36. package/dist/client/types/app/bsky/feed/getSuggestedFeeds.d.ts +1 -1
  37. package/dist/client/types/app/bsky/feed/getTimeline.d.ts +1 -1
  38. package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
  39. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
  40. package/dist/client/types/app/bsky/feed/searchPosts.d.ts +1 -1
  41. package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
  42. package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
  43. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  44. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
  45. package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
  46. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  47. package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  48. package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
  49. package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
  50. package/dist/client/types/app/bsky/graph/defs.d.ts +1 -1
  51. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
  52. package/dist/client/types/app/bsky/graph/getBlocks.d.ts +1 -1
  53. package/dist/client/types/app/bsky/graph/getFollowers.d.ts +1 -1
  54. package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -1
  55. package/dist/client/types/app/bsky/graph/getList.d.ts +1 -1
  56. package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +1 -1
  57. package/dist/client/types/app/bsky/graph/getListMutes.d.ts +1 -1
  58. package/dist/client/types/app/bsky/graph/getLists.d.ts +1 -1
  59. package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
  60. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
  61. package/dist/client/types/app/bsky/graph/getMutes.d.ts +1 -1
  62. package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +1 -1
  63. package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
  64. package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
  65. package/dist/client/types/app/bsky/moderation/defs.d.ts +49 -0
  66. package/dist/client/types/app/bsky/moderation/getService.d.ts +16 -0
  67. package/dist/client/types/app/bsky/moderation/getServices.d.ts +19 -0
  68. package/dist/client/types/app/bsky/moderation/service.d.ts +17 -0
  69. package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
  70. package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -1
  71. package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
  72. package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -1
  73. package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
  74. package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
  75. package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
  76. package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
  77. package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +18 -0
  78. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -1
  79. package/dist/client/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +1 -1
  80. package/dist/client/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +1 -1
  81. package/dist/client/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +1 -1
  82. package/dist/client/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +1 -1
  83. package/dist/client/types/com/atproto/account/create.d.ts +41 -0
  84. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  85. package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
  86. package/dist/client/types/com/atproto/account/get.d.ts +12 -0
  87. package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
  88. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  89. package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  90. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  91. package/dist/client/types/com/atproto/admin/defs.d.ts +2 -1
  92. package/dist/client/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
  93. package/dist/client/types/com/atproto/admin/getAccountInfo.d.ts +2 -2
  94. package/dist/client/types/com/atproto/admin/getAccountInfos.d.ts +19 -0
  95. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
  96. package/dist/client/types/com/atproto/admin/getInviteCodes.d.ts +1 -1
  97. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
  98. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
  99. package/dist/client/types/com/atproto/admin/getModerationEvent.d.ts +2 -2
  100. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
  101. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +28 -0
  102. package/dist/client/types/com/atproto/admin/getRecord.d.ts +2 -2
  103. package/dist/client/types/com/atproto/admin/getRepo.d.ts +2 -2
  104. package/dist/client/types/com/atproto/admin/getSubjectState.d.ts +26 -0
  105. package/dist/client/types/com/atproto/admin/getSubjectStatus.d.ts +1 -1
  106. package/dist/client/types/com/atproto/admin/getUserAccountInfo.d.ts +16 -0
  107. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
  108. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  109. package/dist/client/types/com/atproto/admin/queryModerationEvents.d.ts +1 -1
  110. package/dist/client/types/com/atproto/admin/queryModerationStatuses.d.ts +1 -1
  111. package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +24 -0
  112. package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
  113. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  114. package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
  115. package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
  116. package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -1
  117. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +34 -0
  118. package/dist/client/types/com/atproto/admin/updateSubjectState.d.ts +32 -0
  119. package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
  120. package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
  121. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  122. package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +1 -1
  123. package/dist/client/types/com/atproto/label/queryLabels.d.ts +1 -1
  124. package/dist/client/types/com/atproto/moderation/defs.d.ts +1 -1
  125. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
  126. package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
  127. package/dist/client/types/com/atproto/repo/describeRepo.d.ts +1 -1
  128. package/dist/client/types/com/atproto/repo/getRecord.d.ts +1 -1
  129. package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
  130. package/dist/client/types/com/atproto/repo/listRecords.d.ts +1 -1
  131. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +24 -0
  132. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  133. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  134. package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +1 -1
  135. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
  136. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  137. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  138. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  139. package/dist/client/types/com/atproto/server/createAccount.d.ts +2 -0
  140. package/dist/client/types/com/atproto/server/createAppPassword.d.ts +1 -1
  141. package/dist/client/types/com/atproto/server/deleteSession.d.ts +1 -1
  142. package/dist/client/types/com/atproto/server/describeServer.d.ts +2 -1
  143. package/dist/client/types/com/atproto/server/getAccountInviteCodes.d.ts +1 -1
  144. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
  145. package/dist/client/types/com/atproto/server/getSession.d.ts +1 -1
  146. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
  147. package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +1 -1
  148. package/dist/client/types/com/atproto/server/refreshSession.d.ts +1 -1
  149. package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +1 -1
  150. package/dist/client/types/com/atproto/server/requestEmailConfirmation.d.ts +1 -1
  151. package/dist/client/types/com/atproto/server/requestEmailUpdate.d.ts +1 -1
  152. package/dist/client/types/com/atproto/session/create.d.ts +29 -0
  153. package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
  154. package/dist/client/types/com/atproto/session/get.d.ts +18 -0
  155. package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
  156. package/dist/client/types/com/atproto/sync/getBlob.d.ts +1 -1
  157. package/dist/client/types/com/atproto/sync/getBlocks.d.ts +1 -1
  158. package/dist/client/types/com/atproto/sync/getCheckout.d.ts +1 -1
  159. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
  160. package/dist/client/types/com/atproto/sync/getCurrent.d.ts +22 -0
  161. package/dist/client/types/com/atproto/sync/getHead.d.ts +1 -1
  162. package/dist/client/types/com/atproto/sync/getLatestCommit.d.ts +1 -1
  163. package/dist/client/types/com/atproto/sync/getRecord.d.ts +1 -1
  164. package/dist/client/types/com/atproto/sync/getRepo.d.ts +1 -1
  165. package/dist/client/types/com/atproto/sync/getRoot.d.ts +21 -0
  166. package/dist/client/types/com/atproto/sync/importRepo.d.ts +16 -0
  167. package/dist/client/types/com/atproto/sync/listBlobs.d.ts +1 -1
  168. package/dist/client/types/com/atproto/sync/listRepos.d.ts +1 -1
  169. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
  170. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  171. package/dist/client/types/com/atproto/temp/fetchLabels.d.ts +1 -1
  172. package/dist/client/types/com/atproto/temp/importRepo.d.ts +1 -1
  173. package/dist/client/types/com/atproto/temp/pushBlob.d.ts +1 -1
  174. package/dist/client/types/com/atproto/temp/requestPhoneVerification.d.ts +17 -0
  175. package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +18 -0
  176. package/dist/index.js +473 -427
  177. package/dist/index.js.map +3 -3
  178. package/dist/moderation/types.d.ts +14 -14
  179. package/dist/rich-text/detection.d.ts +1 -1
  180. package/dist/rich-text/rich-text.d.ts +5 -5
  181. package/dist/session.d.ts +42 -0
  182. package/dist/src/client/index.d.ts +462 -0
  183. package/dist/src/client/lexicons.d.ts +2910 -0
  184. package/dist/src/client/schemas.d.ts +17 -0
  185. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  186. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  187. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  188. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  189. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  190. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  191. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  192. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  193. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  194. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  195. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  196. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  197. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  198. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  199. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  200. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  201. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  202. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  203. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  204. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  205. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  206. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  207. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  208. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  209. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  210. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  211. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  212. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  213. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  214. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  215. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  216. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  217. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  218. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  219. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  220. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  221. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  222. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  223. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  224. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  225. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  226. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  227. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  228. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  229. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  230. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  231. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  232. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  233. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  234. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  235. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  236. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  237. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  238. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  239. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  240. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  241. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  242. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  243. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  244. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  245. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  246. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  247. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  248. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  249. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  250. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  251. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  252. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  253. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  254. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  255. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  256. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  257. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  258. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  259. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  260. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  261. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  262. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  263. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  264. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  265. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  266. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  267. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  268. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  269. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  270. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  271. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  272. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  273. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  274. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  275. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  276. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  277. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  278. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  279. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  280. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  281. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  282. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  283. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  284. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  285. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  286. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  287. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  288. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  289. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  290. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  291. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  292. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  293. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  294. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  295. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  296. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  297. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  298. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  299. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  300. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  301. package/dist/src/index.d.ts +4 -0
  302. package/dist/src/schemas.d.ts +19 -0
  303. package/dist/src/session.d.ts +42 -0
  304. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  305. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  306. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  307. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  308. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  309. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  310. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  311. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  312. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  313. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  314. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  315. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  316. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  317. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  318. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  319. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  320. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  321. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  322. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  323. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  324. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  325. package/dist/src/types/app/bsky/like.d.ts +10 -0
  326. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  327. package/dist/src/types/app/bsky/post.d.ts +23 -0
  328. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  329. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  330. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  331. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  332. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  333. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  334. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  335. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  336. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  337. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  338. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  339. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  340. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  341. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  342. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  343. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  344. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  345. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  346. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  347. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  348. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  349. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  350. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  351. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  352. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  353. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  354. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  355. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  356. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  357. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  358. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  359. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  360. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  361. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  362. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  363. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  364. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  365. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  366. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  367. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  368. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  369. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  370. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  371. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  372. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  373. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  374. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  375. package/dist/src/types/todo/social/badge.d.ts +23 -0
  376. package/dist/src/types/todo/social/follow.d.ts +5 -0
  377. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  378. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  379. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  380. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  381. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  382. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  383. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  384. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  385. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  386. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  387. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  388. package/dist/src/types/todo/social/like.d.ts +5 -0
  389. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  390. package/dist/src/types/todo/social/post.d.ts +18 -0
  391. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  392. package/dist/src/types/todo/social/profile.d.ts +10 -0
  393. package/dist/src/types/todo/social/repost.d.ts +5 -0
  394. package/dist/types.d.ts +5 -5
  395. package/docs/moderation.md +3 -3
  396. package/package.json +6 -6
  397. package/src/client/index.ts +77 -64
  398. package/src/client/lexicons.ts +80 -49
  399. package/src/client/types/com/atproto/admin/defs.ts +1 -0
  400. package/src/client/types/{app/bsky/unspecced/getPopular.ts → com/atproto/admin/getAccountInfos.ts} +3 -6
  401. package/src/client/types/com/atproto/server/createAccount.ts +2 -0
  402. package/src/client/types/com/atproto/server/describeServer.ts +1 -0
  403. package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +32 -0
  404. package/src/moderation/index.ts +4 -4
  405. package/tests/moderation.test.ts +1 -1
@@ -14,6 +14,7 @@ import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/di
14
14
  import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
15
15
  import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
16
16
  import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
17
+ import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
17
18
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
18
19
  import * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent'
19
20
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
@@ -79,6 +80,7 @@ import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscrib
79
80
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
80
81
  import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
81
82
  import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
83
+ import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
82
84
  import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
83
85
  import * as AppBskyActorDefs from './types/app/bsky/actor/defs'
84
86
  import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
@@ -140,7 +142,6 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
140
142
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
141
143
  import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
142
144
  import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
143
- import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
144
145
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
145
146
  import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
146
147
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
@@ -153,6 +154,7 @@ export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/di
153
154
  export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
154
155
  export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
155
156
  export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
157
+ export * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
156
158
  export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
157
159
  export * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent'
158
160
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
@@ -218,6 +220,7 @@ export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscrib
218
220
  export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
219
221
  export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
220
222
  export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
223
+ export * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
221
224
  export * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
222
225
  export * as AppBskyActorDefs from './types/app/bsky/actor/defs'
223
226
  export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
@@ -279,7 +282,6 @@ export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
279
282
  export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
280
283
  export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
281
284
  export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
282
- export * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
283
285
  export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
284
286
  export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
285
287
  export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
@@ -336,39 +338,39 @@ export class AtpServiceClient {
336
338
 
337
339
  export class ComNS {
338
340
  _service: AtpServiceClient
339
- atproto: AtprotoNS
341
+ atproto: ComAtprotoNS
340
342
 
341
343
  constructor(service: AtpServiceClient) {
342
344
  this._service = service
343
- this.atproto = new AtprotoNS(service)
345
+ this.atproto = new ComAtprotoNS(service)
344
346
  }
345
347
  }
346
348
 
347
- export class AtprotoNS {
349
+ export class ComAtprotoNS {
348
350
  _service: AtpServiceClient
349
- admin: AdminNS
350
- identity: IdentityNS
351
- label: LabelNS
352
- moderation: ModerationNS
353
- repo: RepoNS
354
- server: ServerNS
355
- sync: SyncNS
356
- temp: TempNS
351
+ admin: ComAtprotoAdminNS
352
+ identity: ComAtprotoIdentityNS
353
+ label: ComAtprotoLabelNS
354
+ moderation: ComAtprotoModerationNS
355
+ repo: ComAtprotoRepoNS
356
+ server: ComAtprotoServerNS
357
+ sync: ComAtprotoSyncNS
358
+ temp: ComAtprotoTempNS
357
359
 
358
360
  constructor(service: AtpServiceClient) {
359
361
  this._service = service
360
- this.admin = new AdminNS(service)
361
- this.identity = new IdentityNS(service)
362
- this.label = new LabelNS(service)
363
- this.moderation = new ModerationNS(service)
364
- this.repo = new RepoNS(service)
365
- this.server = new ServerNS(service)
366
- this.sync = new SyncNS(service)
367
- this.temp = new TempNS(service)
362
+ this.admin = new ComAtprotoAdminNS(service)
363
+ this.identity = new ComAtprotoIdentityNS(service)
364
+ this.label = new ComAtprotoLabelNS(service)
365
+ this.moderation = new ComAtprotoModerationNS(service)
366
+ this.repo = new ComAtprotoRepoNS(service)
367
+ this.server = new ComAtprotoServerNS(service)
368
+ this.sync = new ComAtprotoSyncNS(service)
369
+ this.temp = new ComAtprotoTempNS(service)
368
370
  }
369
371
  }
370
372
 
371
- export class AdminNS {
373
+ export class ComAtprotoAdminNS {
372
374
  _service: AtpServiceClient
373
375
 
374
376
  constructor(service: AtpServiceClient) {
@@ -441,6 +443,17 @@ export class AdminNS {
441
443
  })
442
444
  }
443
445
 
446
+ getAccountInfos(
447
+ params?: ComAtprotoAdminGetAccountInfos.QueryParams,
448
+ opts?: ComAtprotoAdminGetAccountInfos.CallOptions,
449
+ ): Promise<ComAtprotoAdminGetAccountInfos.Response> {
450
+ return this._service.xrpc
451
+ .call('com.atproto.admin.getAccountInfos', params, undefined, opts)
452
+ .catch((e) => {
453
+ throw ComAtprotoAdminGetAccountInfos.toKnownErr(e)
454
+ })
455
+ }
456
+
444
457
  getInviteCodes(
445
458
  params?: ComAtprotoAdminGetInviteCodes.QueryParams,
446
459
  opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
@@ -579,7 +592,7 @@ export class AdminNS {
579
592
  }
580
593
  }
581
594
 
582
- export class IdentityNS {
595
+ export class ComAtprotoIdentityNS {
583
596
  _service: AtpServiceClient
584
597
 
585
598
  constructor(service: AtpServiceClient) {
@@ -609,7 +622,7 @@ export class IdentityNS {
609
622
  }
610
623
  }
611
624
 
612
- export class LabelNS {
625
+ export class ComAtprotoLabelNS {
613
626
  _service: AtpServiceClient
614
627
 
615
628
  constructor(service: AtpServiceClient) {
@@ -628,7 +641,7 @@ export class LabelNS {
628
641
  }
629
642
  }
630
643
 
631
- export class ModerationNS {
644
+ export class ComAtprotoModerationNS {
632
645
  _service: AtpServiceClient
633
646
 
634
647
  constructor(service: AtpServiceClient) {
@@ -647,7 +660,7 @@ export class ModerationNS {
647
660
  }
648
661
  }
649
662
 
650
- export class RepoNS {
663
+ export class ComAtprotoRepoNS {
651
664
  _service: AtpServiceClient
652
665
 
653
666
  constructor(service: AtpServiceClient) {
@@ -743,7 +756,7 @@ export class RepoNS {
743
756
  }
744
757
  }
745
758
 
746
- export class ServerNS {
759
+ export class ComAtprotoServerNS {
747
760
  _service: AtpServiceClient
748
761
 
749
762
  constructor(service: AtpServiceClient) {
@@ -982,7 +995,7 @@ export class ServerNS {
982
995
  }
983
996
  }
984
997
 
985
- export class SyncNS {
998
+ export class ComAtprotoSyncNS {
986
999
  _service: AtpServiceClient
987
1000
 
988
1001
  constructor(service: AtpServiceClient) {
@@ -1111,7 +1124,7 @@ export class SyncNS {
1111
1124
  }
1112
1125
  }
1113
1126
 
1114
- export class TempNS {
1127
+ export class ComAtprotoTempNS {
1115
1128
  _service: AtpServiceClient
1116
1129
 
1117
1130
  constructor(service: AtpServiceClient) {
@@ -1151,6 +1164,17 @@ export class TempNS {
1151
1164
  })
1152
1165
  }
1153
1166
 
1167
+ requestPhoneVerification(
1168
+ data?: ComAtprotoTempRequestPhoneVerification.InputSchema,
1169
+ opts?: ComAtprotoTempRequestPhoneVerification.CallOptions,
1170
+ ): Promise<ComAtprotoTempRequestPhoneVerification.Response> {
1171
+ return this._service.xrpc
1172
+ .call('com.atproto.temp.requestPhoneVerification', opts?.qp, data, opts)
1173
+ .catch((e) => {
1174
+ throw ComAtprotoTempRequestPhoneVerification.toKnownErr(e)
1175
+ })
1176
+ }
1177
+
1154
1178
  transferAccount(
1155
1179
  data?: ComAtprotoTempTransferAccount.InputSchema,
1156
1180
  opts?: ComAtprotoTempTransferAccount.CallOptions,
@@ -1165,37 +1189,37 @@ export class TempNS {
1165
1189
 
1166
1190
  export class AppNS {
1167
1191
  _service: AtpServiceClient
1168
- bsky: BskyNS
1192
+ bsky: AppBskyNS
1169
1193
 
1170
1194
  constructor(service: AtpServiceClient) {
1171
1195
  this._service = service
1172
- this.bsky = new BskyNS(service)
1196
+ this.bsky = new AppBskyNS(service)
1173
1197
  }
1174
1198
  }
1175
1199
 
1176
- export class BskyNS {
1200
+ export class AppBskyNS {
1177
1201
  _service: AtpServiceClient
1178
- actor: ActorNS
1179
- embed: EmbedNS
1180
- feed: FeedNS
1181
- graph: GraphNS
1182
- notification: NotificationNS
1183
- richtext: RichtextNS
1184
- unspecced: UnspeccedNS
1202
+ actor: AppBskyActorNS
1203
+ embed: AppBskyEmbedNS
1204
+ feed: AppBskyFeedNS
1205
+ graph: AppBskyGraphNS
1206
+ notification: AppBskyNotificationNS
1207
+ richtext: AppBskyRichtextNS
1208
+ unspecced: AppBskyUnspeccedNS
1185
1209
 
1186
1210
  constructor(service: AtpServiceClient) {
1187
1211
  this._service = service
1188
- this.actor = new ActorNS(service)
1189
- this.embed = new EmbedNS(service)
1190
- this.feed = new FeedNS(service)
1191
- this.graph = new GraphNS(service)
1192
- this.notification = new NotificationNS(service)
1193
- this.richtext = new RichtextNS(service)
1194
- this.unspecced = new UnspeccedNS(service)
1212
+ this.actor = new AppBskyActorNS(service)
1213
+ this.embed = new AppBskyEmbedNS(service)
1214
+ this.feed = new AppBskyFeedNS(service)
1215
+ this.graph = new AppBskyGraphNS(service)
1216
+ this.notification = new AppBskyNotificationNS(service)
1217
+ this.richtext = new AppBskyRichtextNS(service)
1218
+ this.unspecced = new AppBskyUnspeccedNS(service)
1195
1219
  }
1196
1220
  }
1197
1221
 
1198
- export class ActorNS {
1222
+ export class AppBskyActorNS {
1199
1223
  _service: AtpServiceClient
1200
1224
  profile: ProfileRecord
1201
1225
 
@@ -1343,7 +1367,7 @@ export class ProfileRecord {
1343
1367
  }
1344
1368
  }
1345
1369
 
1346
- export class EmbedNS {
1370
+ export class AppBskyEmbedNS {
1347
1371
  _service: AtpServiceClient
1348
1372
 
1349
1373
  constructor(service: AtpServiceClient) {
@@ -1351,7 +1375,7 @@ export class EmbedNS {
1351
1375
  }
1352
1376
  }
1353
1377
 
1354
- export class FeedNS {
1378
+ export class AppBskyFeedNS {
1355
1379
  _service: AtpServiceClient
1356
1380
  generator: GeneratorRecord
1357
1381
  like: LikeRecord
@@ -1854,7 +1878,7 @@ export class ThreadgateRecord {
1854
1878
  }
1855
1879
  }
1856
1880
 
1857
- export class GraphNS {
1881
+ export class AppBskyGraphNS {
1858
1882
  _service: AtpServiceClient
1859
1883
  block: BlockRecord
1860
1884
  follow: FollowRecord
@@ -2329,7 +2353,7 @@ export class ListitemRecord {
2329
2353
  }
2330
2354
  }
2331
2355
 
2332
- export class NotificationNS {
2356
+ export class AppBskyNotificationNS {
2333
2357
  _service: AtpServiceClient
2334
2358
 
2335
2359
  constructor(service: AtpServiceClient) {
@@ -2381,7 +2405,7 @@ export class NotificationNS {
2381
2405
  }
2382
2406
  }
2383
2407
 
2384
- export class RichtextNS {
2408
+ export class AppBskyRichtextNS {
2385
2409
  _service: AtpServiceClient
2386
2410
 
2387
2411
  constructor(service: AtpServiceClient) {
@@ -2389,24 +2413,13 @@ export class RichtextNS {
2389
2413
  }
2390
2414
  }
2391
2415
 
2392
- export class UnspeccedNS {
2416
+ export class AppBskyUnspeccedNS {
2393
2417
  _service: AtpServiceClient
2394
2418
 
2395
2419
  constructor(service: AtpServiceClient) {
2396
2420
  this._service = service
2397
2421
  }
2398
2422
 
2399
- getPopular(
2400
- params?: AppBskyUnspeccedGetPopular.QueryParams,
2401
- opts?: AppBskyUnspeccedGetPopular.CallOptions,
2402
- ): Promise<AppBskyUnspeccedGetPopular.Response> {
2403
- return this._service.xrpc
2404
- .call('app.bsky.unspecced.getPopular', params, undefined, opts)
2405
- .catch((e) => {
2406
- throw AppBskyUnspeccedGetPopular.toKnownErr(e)
2407
- })
2408
- }
2409
-
2410
2423
  getPopularFeedGenerators(
2411
2424
  params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams,
2412
2425
  opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions,
@@ -436,6 +436,12 @@ export const schemaDict = {
436
436
  email: {
437
437
  type: 'string',
438
438
  },
439
+ relatedRecords: {
440
+ type: 'array',
441
+ items: {
442
+ type: 'unknown',
443
+ },
444
+ },
439
445
  indexedAt: {
440
446
  type: 'string',
441
447
  format: 'datetime',
@@ -1046,6 +1052,45 @@ export const schemaDict = {
1046
1052
  },
1047
1053
  },
1048
1054
  },
1055
+ ComAtprotoAdminGetAccountInfos: {
1056
+ lexicon: 1,
1057
+ id: 'com.atproto.admin.getAccountInfos',
1058
+ defs: {
1059
+ main: {
1060
+ type: 'query',
1061
+ description: 'Get details about some accounts.',
1062
+ parameters: {
1063
+ type: 'params',
1064
+ required: ['dids'],
1065
+ properties: {
1066
+ dids: {
1067
+ type: 'array',
1068
+ items: {
1069
+ type: 'string',
1070
+ format: 'did',
1071
+ },
1072
+ },
1073
+ },
1074
+ },
1075
+ output: {
1076
+ encoding: 'application/json',
1077
+ schema: {
1078
+ type: 'object',
1079
+ required: ['infos'],
1080
+ properties: {
1081
+ infos: {
1082
+ type: 'array',
1083
+ items: {
1084
+ type: 'ref',
1085
+ ref: 'lex:com.atproto.admin.defs#accountView',
1086
+ },
1087
+ },
1088
+ },
1089
+ },
1090
+ },
1091
+ },
1092
+ },
1093
+ },
1049
1094
  ComAtprotoAdminGetInviteCodes: {
1050
1095
  lexicon: 1,
1051
1096
  id: 'com.atproto.admin.getInviteCodes',
@@ -2619,6 +2664,12 @@ export const schemaDict = {
2619
2664
  inviteCode: {
2620
2665
  type: 'string',
2621
2666
  },
2667
+ verificationCode: {
2668
+ type: 'string',
2669
+ },
2670
+ verificationPhone: {
2671
+ type: 'string',
2672
+ },
2622
2673
  password: {
2623
2674
  type: 'string',
2624
2675
  },
@@ -3023,6 +3074,9 @@ export const schemaDict = {
3023
3074
  inviteCodeRequired: {
3024
3075
  type: 'boolean',
3025
3076
  },
3077
+ phoneVerificationRequired: {
3078
+ type: 'boolean',
3079
+ },
3026
3080
  availableUserDomains: {
3027
3081
  type: 'array',
3028
3082
  items: {
@@ -4095,6 +4149,29 @@ export const schemaDict = {
4095
4149
  },
4096
4150
  },
4097
4151
  },
4152
+ ComAtprotoTempRequestPhoneVerification: {
4153
+ lexicon: 1,
4154
+ id: 'com.atproto.temp.requestPhoneVerification',
4155
+ defs: {
4156
+ main: {
4157
+ type: 'procedure',
4158
+ description:
4159
+ 'Request a verification code to be sent to the supplied phone number',
4160
+ input: {
4161
+ encoding: 'application/json',
4162
+ schema: {
4163
+ type: 'object',
4164
+ required: ['phoneNumber'],
4165
+ properties: {
4166
+ phoneNumber: {
4167
+ type: 'string',
4168
+ },
4169
+ },
4170
+ },
4171
+ },
4172
+ },
4173
+ },
4174
+ },
4098
4175
  ComAtprotoTempTransferAccount: {
4099
4176
  lexicon: 1,
4100
4177
  id: 'com.atproto.temp.transferAccount',
@@ -7594,54 +7671,6 @@ export const schemaDict = {
7594
7671
  },
7595
7672
  },
7596
7673
  },
7597
- AppBskyUnspeccedGetPopular: {
7598
- lexicon: 1,
7599
- id: 'app.bsky.unspecced.getPopular',
7600
- defs: {
7601
- main: {
7602
- type: 'query',
7603
- description:
7604
- 'DEPRECATED: will be removed soon. Use a feed generator alternative.',
7605
- parameters: {
7606
- type: 'params',
7607
- properties: {
7608
- includeNsfw: {
7609
- type: 'boolean',
7610
- default: false,
7611
- },
7612
- limit: {
7613
- type: 'integer',
7614
- minimum: 1,
7615
- maximum: 100,
7616
- default: 50,
7617
- },
7618
- cursor: {
7619
- type: 'string',
7620
- },
7621
- },
7622
- },
7623
- output: {
7624
- encoding: 'application/json',
7625
- schema: {
7626
- type: 'object',
7627
- required: ['feed'],
7628
- properties: {
7629
- cursor: {
7630
- type: 'string',
7631
- },
7632
- feed: {
7633
- type: 'array',
7634
- items: {
7635
- type: 'ref',
7636
- ref: 'lex:app.bsky.feed.defs#feedViewPost',
7637
- },
7638
- },
7639
- },
7640
- },
7641
- },
7642
- },
7643
- },
7644
- },
7645
7674
  AppBskyUnspeccedGetPopularFeedGenerators: {
7646
7675
  lexicon: 1,
7647
7676
  id: 'app.bsky.unspecced.getPopularFeedGenerators',
@@ -7875,6 +7904,7 @@ export const ids = {
7875
7904
  ComAtprotoAdminEmitModerationEvent: 'com.atproto.admin.emitModerationEvent',
7876
7905
  ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
7877
7906
  ComAtprotoAdminGetAccountInfo: 'com.atproto.admin.getAccountInfo',
7907
+ ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
7878
7908
  ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
7879
7909
  ComAtprotoAdminGetModerationEvent: 'com.atproto.admin.getModerationEvent',
7880
7910
  ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
@@ -7946,6 +7976,8 @@ export const ids = {
7946
7976
  ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
7947
7977
  ComAtprotoTempImportRepo: 'com.atproto.temp.importRepo',
7948
7978
  ComAtprotoTempPushBlob: 'com.atproto.temp.pushBlob',
7979
+ ComAtprotoTempRequestPhoneVerification:
7980
+ 'com.atproto.temp.requestPhoneVerification',
7949
7981
  ComAtprotoTempTransferAccount: 'com.atproto.temp.transferAccount',
7950
7982
  AppBskyActorDefs: 'app.bsky.actor.defs',
7951
7983
  AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences',
@@ -8009,7 +8041,6 @@ export const ids = {
8009
8041
  AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
8010
8042
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
8011
8043
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
8012
- AppBskyUnspeccedGetPopular: 'app.bsky.unspecced.getPopular',
8013
8044
  AppBskyUnspeccedGetPopularFeedGenerators:
8014
8045
  'app.bsky.unspecced.getPopularFeedGenerators',
8015
8046
  AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton',
@@ -255,6 +255,7 @@ export interface AccountView {
255
255
  did: string
256
256
  handle: string
257
257
  email?: string
258
+ relatedRecords?: {}[]
258
259
  indexedAt: string
259
260
  invitedBy?: ComAtprotoServerDefs.InviteCode
260
261
  invites?: ComAtprotoServerDefs.InviteCode[]
@@ -6,19 +6,16 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { isObj, hasProp } from '../../../../util'
7
7
  import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
- import * as AppBskyFeedDefs from '../feed/defs'
9
+ import * as ComAtprotoAdminDefs from './defs'
10
10
 
11
11
  export interface QueryParams {
12
- includeNsfw?: boolean
13
- limit?: number
14
- cursor?: string
12
+ dids: string[]
15
13
  }
16
14
 
17
15
  export type InputSchema = undefined
18
16
 
19
17
  export interface OutputSchema {
20
- cursor?: string
21
- feed: AppBskyFeedDefs.FeedViewPost[]
18
+ infos: ComAtprotoAdminDefs.AccountView[]
22
19
  [k: string]: unknown
23
20
  }
24
21
 
@@ -14,6 +14,8 @@ export interface InputSchema {
14
14
  handle: string
15
15
  did?: string
16
16
  inviteCode?: string
17
+ verificationCode?: string
18
+ verificationPhone?: string
17
19
  password?: string
18
20
  recoveryKey?: string
19
21
  plcOp?: {}
@@ -13,6 +13,7 @@ export type InputSchema = undefined
13
13
 
14
14
  export interface OutputSchema {
15
15
  inviteCodeRequired?: boolean
16
+ phoneVerificationRequired?: boolean
16
17
  availableUserDomains: string[]
17
18
  links?: Links
18
19
  [k: string]: unknown
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export interface InputSchema {
13
+ phoneNumber: string
14
+ [k: string]: unknown
15
+ }
16
+
17
+ export interface CallOptions {
18
+ headers?: Headers
19
+ qp?: QueryParams
20
+ encoding: 'application/json'
21
+ }
22
+
23
+ export interface Response {
24
+ success: boolean
25
+ headers: Headers
26
+ }
27
+
28
+ export function toKnownErr(e: any) {
29
+ if (e instanceof XRPCError) {
30
+ }
31
+ return e
32
+ }
@@ -56,7 +56,7 @@ export function moderateProfile(
56
56
  account.blur = true
57
57
  }
58
58
 
59
- // dont give profile.filter because that is meaningless
59
+ // don't give profile.filter because that is meaningless
60
60
  profile.filter = false
61
61
 
62
62
  // downgrade based on authorship
@@ -67,7 +67,7 @@ export function moderateProfile(
67
67
  downgradeDecision(profile, 'alert')
68
68
  }
69
69
 
70
- // derive avatar blurring from account & profile, but override for mutes because that shouldnt blur
70
+ // derive avatar blurring from account & profile, but override for mutes because that shouldn't blur
71
71
  let avatarBlur = false
72
72
  let avatarNoOverride = false
73
73
  if ((account.blur || account.blurMedia) && account.cause?.type !== 'muted') {
@@ -78,7 +78,7 @@ export function moderateProfile(
78
78
  avatarNoOverride = account.noOverride || profile.noOverride
79
79
  }
80
80
 
81
- // dont blur the account for blocking & muting
81
+ // don't blur the account for blocking & muting
82
82
  if (
83
83
  account.cause?.type === 'blocking' ||
84
84
  account.cause?.type === 'blocked-by' ||
@@ -188,7 +188,7 @@ export function moderatePost(
188
188
  // derive embed blurring from the quoted post and the quoted post author's account
189
189
  const mergedQuote = takeHighestPriorityDecision(quote, quotedAccount)
190
190
 
191
- // derive avatar blurring from account & profile, but override for mutes because that shouldnt blur
191
+ // derive avatar blurring from account & profile, but override for mutes because that shouldn't blur
192
192
  let blurAvatar = false
193
193
  if ((account.blur || account.blurMedia) && account.cause?.type !== 'muted') {
194
194
  blurAvatar = true
@@ -300,7 +300,7 @@ describe('Moderation', () => {
300
300
  })
301
301
 
302
302
  /*
303
- TODO enable when 3P labeler support is addded
303
+ TODO enable when 3P labeler support is added
304
304
  it('Ignores labels from unknown labelers', () => {
305
305
  const res1 = moderateProfile(
306
306
  mock.profileViewBasic({