@atproto/api 0.3.12 → 0.4.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 (307) hide show
  1. package/dist/client/index.d.ts +5 -2
  2. package/dist/client/lexicons.d.ts +86 -14
  3. package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
  4. package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
  5. package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
  6. package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
  7. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
  8. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
  9. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +47 -0
  10. package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
  11. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  12. package/dist/client/types/app/bsky/feed/defs.d.ts +1 -1
  13. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
  14. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  15. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
  16. package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
  17. package/dist/client/types/app/bsky/feed/post.d.ts +1 -0
  18. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
  19. package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
  20. package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
  21. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  22. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
  23. package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
  24. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  25. package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  26. package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
  27. package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
  28. package/dist/client/types/app/bsky/graph/defs.d.ts +2 -0
  29. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
  30. package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
  31. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
  32. package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
  33. package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
  34. package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
  35. package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
  36. package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
  37. package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
  38. package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
  39. package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
  40. package/dist/client/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +24 -0
  41. package/dist/client/types/com/atproto/account/create.d.ts +41 -0
  42. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  43. package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
  44. package/dist/client/types/com/atproto/account/get.d.ts +12 -0
  45. package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
  46. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  47. package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  48. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  49. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
  50. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
  51. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  52. package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
  53. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  54. package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
  55. package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
  56. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  57. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
  58. package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
  59. package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
  60. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  61. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  62. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
  63. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  64. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  65. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  66. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
  67. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
  68. package/dist/client/types/com/atproto/session/create.d.ts +29 -0
  69. package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
  70. package/dist/client/types/com/atproto/session/get.d.ts +18 -0
  71. package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
  72. package/dist/client/types/com/atproto/sync/getHead.d.ts +4 -1
  73. package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  74. package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +5 -1
  75. package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +5 -1
  76. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
  77. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  78. package/dist/index.d.ts +1 -0
  79. package/dist/index.js +171 -27
  80. package/dist/index.js.map +4 -4
  81. package/dist/session.d.ts +42 -0
  82. package/dist/src/client/index.d.ts +462 -0
  83. package/dist/src/client/lexicons.d.ts +2910 -0
  84. package/dist/src/client/schemas.d.ts +17 -0
  85. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  86. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  87. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  88. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  89. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  90. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  91. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  92. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  93. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  94. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  95. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  96. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  97. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  98. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  99. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  100. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  101. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  102. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  103. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  104. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  105. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  106. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  107. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  108. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  109. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  110. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  111. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  112. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  113. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  114. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  115. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  116. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  117. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  118. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  119. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  120. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  121. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  122. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  123. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  124. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  125. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  126. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  127. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  128. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  129. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  130. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  131. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  132. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  133. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  134. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  135. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  136. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  137. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  138. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  139. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  140. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  141. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  142. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  143. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  144. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  145. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  146. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  147. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  148. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  149. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  150. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  151. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  152. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  153. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  154. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  155. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  156. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  157. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  158. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  159. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  160. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  161. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  162. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  163. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  164. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  165. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  166. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  167. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  168. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  169. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  170. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  171. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  172. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  173. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  174. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  175. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  176. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  177. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  178. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  179. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  180. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  181. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  182. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  183. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  184. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  185. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  186. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  187. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  188. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  189. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  190. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  191. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  192. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  193. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  194. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  195. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  196. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  197. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  198. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  199. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  200. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  201. package/dist/src/index.d.ts +4 -0
  202. package/dist/src/schemas.d.ts +19 -0
  203. package/dist/src/session.d.ts +42 -0
  204. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  205. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  206. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  207. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  208. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  209. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  210. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  211. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  212. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  213. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  214. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  215. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  216. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  217. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  218. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  219. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  220. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  221. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  222. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  223. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  224. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  225. package/dist/src/types/app/bsky/like.d.ts +10 -0
  226. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  227. package/dist/src/types/app/bsky/post.d.ts +23 -0
  228. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  229. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  230. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  231. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  232. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  233. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  234. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  235. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  236. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  237. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  238. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  239. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  240. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  241. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  242. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  243. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  244. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  245. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  246. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  247. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  248. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  249. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  250. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  251. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  252. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  253. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  254. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  255. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  256. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  257. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  258. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  259. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  260. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  261. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  262. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  263. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  264. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  265. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  266. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  267. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  268. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  269. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  270. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  271. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  272. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  273. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  274. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  275. package/dist/src/types/todo/social/badge.d.ts +23 -0
  276. package/dist/src/types/todo/social/follow.d.ts +5 -0
  277. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  278. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  279. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  280. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  281. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  282. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  283. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  284. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  285. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  286. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  287. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  288. package/dist/src/types/todo/social/like.d.ts +5 -0
  289. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  290. package/dist/src/types/todo/social/post.d.ts +18 -0
  291. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  292. package/dist/src/types/todo/social/profile.d.ts +10 -0
  293. package/dist/src/types/todo/social/repost.d.ts +5 -0
  294. package/dist/tsconfig.build.tsbuildinfo +1 -0
  295. package/package.json +1 -1
  296. package/src/client/index.ts +17 -4
  297. package/src/client/lexicons.ts +98 -21
  298. package/src/client/types/app/bsky/embed/record.ts +2 -0
  299. package/src/client/types/app/bsky/feed/defs.ts +1 -1
  300. package/src/client/types/app/bsky/feed/post.ts +1 -0
  301. package/src/client/types/app/bsky/graph/defs.ts +2 -0
  302. package/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts +45 -0
  303. package/src/client/types/com/atproto/sync/getHead.ts +7 -0
  304. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +6 -3
  305. package/src/client/types/com/atproto/sync/requestCrawl.ts +6 -3
  306. package/src/index.ts +1 -0
  307. package/tsconfig.build.tsbuildinfo +1 -1
@@ -3059,6 +3059,11 @@ export const schemaDict = {
3059
3059
  },
3060
3060
  },
3061
3061
  },
3062
+ errors: [
3063
+ {
3064
+ name: 'HeadNotFound',
3065
+ },
3066
+ ],
3062
3067
  },
3063
3068
  },
3064
3069
  },
@@ -3243,17 +3248,20 @@ export const schemaDict = {
3243
3248
  id: 'com.atproto.sync.notifyOfUpdate',
3244
3249
  defs: {
3245
3250
  main: {
3246
- type: 'query',
3251
+ type: 'procedure',
3247
3252
  description:
3248
3253
  'Notify a crawling service of a recent update. Often when a long break between updates causes the connection with the crawling service to break.',
3249
- parameters: {
3250
- type: 'params',
3251
- required: ['hostname'],
3252
- properties: {
3253
- hostname: {
3254
- type: 'string',
3255
- description:
3256
- 'Hostname of the service that is notifying of update.',
3254
+ input: {
3255
+ encoding: 'application/json',
3256
+ schema: {
3257
+ type: 'object',
3258
+ required: ['hostname'],
3259
+ properties: {
3260
+ hostname: {
3261
+ type: 'string',
3262
+ description:
3263
+ 'Hostname of the service that is notifying of update.',
3264
+ },
3257
3265
  },
3258
3266
  },
3259
3267
  },
@@ -3265,16 +3273,19 @@ export const schemaDict = {
3265
3273
  id: 'com.atproto.sync.requestCrawl',
3266
3274
  defs: {
3267
3275
  main: {
3268
- type: 'query',
3276
+ type: 'procedure',
3269
3277
  description: 'Request a service to persistently crawl hosted repos.',
3270
- parameters: {
3271
- type: 'params',
3272
- required: ['hostname'],
3273
- properties: {
3274
- hostname: {
3275
- type: 'string',
3276
- description:
3277
- 'Hostname of the service that is requesting to be crawled.',
3278
+ input: {
3279
+ encoding: 'application/json',
3280
+ schema: {
3281
+ type: 'object',
3282
+ required: ['hostname'],
3283
+ properties: {
3284
+ hostname: {
3285
+ type: 'string',
3286
+ description:
3287
+ 'Hostname of the service that is requesting to be crawled.',
3288
+ },
3278
3289
  },
3279
3290
  },
3280
3291
  },
@@ -4125,6 +4136,7 @@ export const schemaDict = {
4125
4136
  'lex:app.bsky.embed.record#viewNotFound',
4126
4137
  'lex:app.bsky.embed.record#viewBlocked',
4127
4138
  'lex:app.bsky.feed.defs#generatorView',
4139
+ 'lex:app.bsky.graph.defs#listView',
4128
4140
  ],
4129
4141
  },
4130
4142
  },
@@ -4418,7 +4430,7 @@ export const schemaDict = {
4418
4430
  },
4419
4431
  generatorView: {
4420
4432
  type: 'object',
4421
- required: ['uri', 'cid', 'creator', 'displayName', 'indexedAt'],
4433
+ required: ['uri', 'cid', 'did', 'creator', 'displayName', 'indexedAt'],
4422
4434
  properties: {
4423
4435
  uri: {
4424
4436
  type: 'string',
@@ -5239,6 +5251,14 @@ export const schemaDict = {
5239
5251
  'lex:app.bsky.embed.recordWithMedia',
5240
5252
  ],
5241
5253
  },
5254
+ langs: {
5255
+ type: 'array',
5256
+ maxLength: 3,
5257
+ items: {
5258
+ type: 'string',
5259
+ format: 'language',
5260
+ },
5261
+ },
5242
5262
  createdAt: {
5243
5263
  type: 'string',
5244
5264
  format: 'datetime',
@@ -5351,12 +5371,16 @@ export const schemaDict = {
5351
5371
  defs: {
5352
5372
  listViewBasic: {
5353
5373
  type: 'object',
5354
- required: ['uri', 'name', 'purpose'],
5374
+ required: ['uri', 'cid', 'name', 'purpose'],
5355
5375
  properties: {
5356
5376
  uri: {
5357
5377
  type: 'string',
5358
5378
  format: 'at-uri',
5359
5379
  },
5380
+ cid: {
5381
+ type: 'string',
5382
+ format: 'cid',
5383
+ },
5360
5384
  name: {
5361
5385
  type: 'string',
5362
5386
  maxLength: 64,
@@ -5381,12 +5405,16 @@ export const schemaDict = {
5381
5405
  },
5382
5406
  listView: {
5383
5407
  type: 'object',
5384
- required: ['uri', 'creator', 'name', 'purpose', 'indexedAt'],
5408
+ required: ['uri', 'cid', 'creator', 'name', 'purpose', 'indexedAt'],
5385
5409
  properties: {
5386
5410
  uri: {
5387
5411
  type: 'string',
5388
5412
  format: 'at-uri',
5389
5413
  },
5414
+ cid: {
5415
+ type: 'string',
5416
+ format: 'cid',
5417
+ },
5390
5418
  creator: {
5391
5419
  type: 'ref',
5392
5420
  ref: 'lex:app.bsky.actor.defs#profileView',
@@ -6276,6 +6304,54 @@ export const schemaDict = {
6276
6304
  },
6277
6305
  },
6278
6306
  },
6307
+ AppBskyUnspeccedGetTimelineSkeleton: {
6308
+ lexicon: 1,
6309
+ id: 'app.bsky.unspecced.getTimelineSkeleton',
6310
+ defs: {
6311
+ main: {
6312
+ type: 'query',
6313
+ description: 'A skeleton of a timeline',
6314
+ parameters: {
6315
+ type: 'params',
6316
+ properties: {
6317
+ limit: {
6318
+ type: 'integer',
6319
+ minimum: 1,
6320
+ maximum: 100,
6321
+ default: 50,
6322
+ },
6323
+ cursor: {
6324
+ type: 'string',
6325
+ },
6326
+ },
6327
+ },
6328
+ output: {
6329
+ encoding: 'application/json',
6330
+ schema: {
6331
+ type: 'object',
6332
+ required: ['feed'],
6333
+ properties: {
6334
+ cursor: {
6335
+ type: 'string',
6336
+ },
6337
+ feed: {
6338
+ type: 'array',
6339
+ items: {
6340
+ type: 'ref',
6341
+ ref: 'lex:app.bsky.feed.defs#skeletonFeedPost',
6342
+ },
6343
+ },
6344
+ },
6345
+ },
6346
+ },
6347
+ errors: [
6348
+ {
6349
+ name: 'UnknownFeed',
6350
+ },
6351
+ ],
6352
+ },
6353
+ },
6354
+ },
6279
6355
  }
6280
6356
  export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
6281
6357
  export const lexicons: Lexicons = new Lexicons(schemas)
@@ -6404,4 +6480,5 @@ export const ids = {
6404
6480
  AppBskyUnspeccedGetPopular: 'app.bsky.unspecced.getPopular',
6405
6481
  AppBskyUnspeccedGetPopularFeedGenerators:
6406
6482
  'app.bsky.unspecced.getPopularFeedGenerators',
6483
+ AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton',
6407
6484
  }
@@ -7,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
  import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
9
9
  import * as AppBskyFeedDefs from '../feed/defs'
10
+ import * as AppBskyGraphDefs from '../graph/defs'
10
11
  import * as AppBskyActorDefs from '../actor/defs'
11
12
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
12
13
  import * as AppBskyEmbedImages from './images'
@@ -37,6 +38,7 @@ export interface View {
37
38
  | ViewNotFound
38
39
  | ViewBlocked
39
40
  | AppBskyFeedDefs.GeneratorView
41
+ | AppBskyGraphDefs.ListView
40
42
  | { $type: string; [k: string]: unknown }
41
43
  [k: string]: unknown
42
44
  }
@@ -189,7 +189,7 @@ export function validateBlockedPost(v: unknown): ValidationResult {
189
189
  export interface GeneratorView {
190
190
  uri: string
191
191
  cid: string
192
- did?: string
192
+ did: string
193
193
  creator: AppBskyActorDefs.ProfileView
194
194
  displayName: string
195
195
  description?: string
@@ -24,6 +24,7 @@ export interface Record {
24
24
  | AppBskyEmbedRecord.Main
25
25
  | AppBskyEmbedRecordWithMedia.Main
26
26
  | { $type: string; [k: string]: unknown }
27
+ langs?: string[]
27
28
  createdAt: string
28
29
  [k: string]: unknown
29
30
  }
@@ -10,6 +10,7 @@ import * as AppBskyRichtextFacet from '../richtext/facet'
10
10
 
11
11
  export interface ListViewBasic {
12
12
  uri: string
13
+ cid: string
13
14
  name: string
14
15
  purpose: ListPurpose
15
16
  avatar?: string
@@ -32,6 +33,7 @@ export function validateListViewBasic(v: unknown): ValidationResult {
32
33
 
33
34
  export interface ListView {
34
35
  uri: string
36
+ cid: string
35
37
  creator: AppBskyActorDefs.ProfileView
36
38
  name: string
37
39
  purpose: ListPurpose
@@ -0,0 +1,45 @@
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
+ import * as AppBskyFeedDefs from '../feed/defs'
10
+
11
+ export interface QueryParams {
12
+ limit?: number
13
+ cursor?: string
14
+ }
15
+
16
+ export type InputSchema = undefined
17
+
18
+ export interface OutputSchema {
19
+ cursor?: string
20
+ feed: AppBskyFeedDefs.SkeletonFeedPost[]
21
+ [k: string]: unknown
22
+ }
23
+
24
+ export interface CallOptions {
25
+ headers?: Headers
26
+ }
27
+
28
+ export interface Response {
29
+ success: boolean
30
+ headers: Headers
31
+ data: OutputSchema
32
+ }
33
+
34
+ export class UnknownFeedError extends XRPCError {
35
+ constructor(src: XRPCError) {
36
+ super(src.status, src.error, src.message)
37
+ }
38
+ }
39
+
40
+ export function toKnownErr(e: any) {
41
+ if (e instanceof XRPCError) {
42
+ if (e.error === 'UnknownFeed') return new UnknownFeedError(e)
43
+ }
44
+ return e
45
+ }
@@ -29,8 +29,15 @@ export interface Response {
29
29
  data: OutputSchema
30
30
  }
31
31
 
32
+ export class HeadNotFoundError extends XRPCError {
33
+ constructor(src: XRPCError) {
34
+ super(src.status, src.error, src.message)
35
+ }
36
+ }
37
+
32
38
  export function toKnownErr(e: any) {
33
39
  if (e instanceof XRPCError) {
40
+ if (e.error === 'HeadNotFound') return new HeadNotFoundError(e)
34
41
  }
35
42
  return e
36
43
  }
@@ -7,15 +7,18 @@ import { isObj, hasProp } from '../../../../util'
7
7
  import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
9
 
10
- export interface QueryParams {
10
+ export interface QueryParams {}
11
+
12
+ export interface InputSchema {
11
13
  /** Hostname of the service that is notifying of update. */
12
14
  hostname: string
15
+ [k: string]: unknown
13
16
  }
14
17
 
15
- export type InputSchema = undefined
16
-
17
18
  export interface CallOptions {
18
19
  headers?: Headers
20
+ qp?: QueryParams
21
+ encoding: 'application/json'
19
22
  }
20
23
 
21
24
  export interface Response {
@@ -7,15 +7,18 @@ import { isObj, hasProp } from '../../../../util'
7
7
  import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
9
 
10
- export interface QueryParams {
10
+ export interface QueryParams {}
11
+
12
+ export interface InputSchema {
11
13
  /** Hostname of the service that is requesting to be crawled. */
12
14
  hostname: string
15
+ [k: string]: unknown
13
16
  }
14
17
 
15
- export type InputSchema = undefined
16
-
17
18
  export interface CallOptions {
18
19
  headers?: Headers
20
+ qp?: QueryParams
21
+ encoding: 'application/json'
19
22
  }
20
23
 
21
24
  export interface Response {
package/src/index.ts CHANGED
@@ -6,6 +6,7 @@ export {
6
6
  jsonToLex,
7
7
  jsonStringToLex,
8
8
  } from '@atproto/lexicon'
9
+ export { parseLanguage } from '@atproto/common-web'
9
10
  export * from './types'
10
11
  export * from './client'
11
12
  export * from './agent'