@atproto/api 0.3.4 → 0.3.6

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 (304) hide show
  1. package/dist/client/lexicons.d.ts +4 -0
  2. package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
  3. package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
  4. package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
  5. package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
  6. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
  7. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
  8. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +47 -0
  9. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  10. package/dist/client/types/app/bsky/feed/describeFeedGenerator.d.ts +33 -0
  11. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
  12. package/dist/client/types/app/bsky/feed/generator.d.ts +13 -0
  13. package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
  14. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  15. package/dist/client/types/app/bsky/feed/getFeed.d.ts +25 -0
  16. package/dist/client/types/app/bsky/feed/getFeedGenerator.d.ts +21 -0
  17. package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +25 -0
  18. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
  19. package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
  20. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
  21. package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
  22. package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
  23. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  24. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
  25. package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
  26. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  27. package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  28. package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
  29. package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
  30. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
  31. package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
  32. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
  33. package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
  34. package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
  35. package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
  36. package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
  37. package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
  38. package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
  39. package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
  40. package/dist/client/types/app/bsky/system/declaration.d.ts +7 -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/getRoot.d.ts +18 -0
  73. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
  74. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  75. package/dist/index.js +8 -4
  76. package/dist/index.js.map +2 -2
  77. package/dist/session.d.ts +42 -0
  78. package/dist/src/client/index.d.ts +462 -0
  79. package/dist/src/client/lexicons.d.ts +2910 -0
  80. package/dist/src/client/schemas.d.ts +17 -0
  81. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  82. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  83. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  84. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  85. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  86. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  87. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  88. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  89. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  90. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  91. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  92. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  93. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  94. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  95. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  96. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  97. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  98. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  99. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  100. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  101. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  102. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  103. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  104. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  105. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  106. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  107. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  108. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  109. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  110. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  111. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  112. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  113. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  114. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  115. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  116. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  117. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  118. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  119. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  120. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  121. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  122. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  123. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  124. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  125. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  126. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  127. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  128. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  129. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  130. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  131. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  132. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  133. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  134. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  135. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  136. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  137. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  138. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  139. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  140. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  141. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  142. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  143. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  144. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  145. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  146. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  147. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  148. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  149. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  150. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  151. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  152. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  153. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  154. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  155. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  156. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  157. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  158. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  159. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  160. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  161. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  162. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  163. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  164. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  165. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  166. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  167. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  168. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  169. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  170. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  171. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  172. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  173. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  174. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  175. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  176. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  177. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  178. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  179. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  180. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  181. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  182. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  183. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  184. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  185. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  186. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  187. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  188. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  189. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  190. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  191. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  192. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  193. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  194. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  195. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  196. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  197. package/dist/src/index.d.ts +4 -0
  198. package/dist/src/schemas.d.ts +19 -0
  199. package/dist/src/session.d.ts +42 -0
  200. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  201. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  202. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  203. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  204. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  205. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  206. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  207. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  208. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  209. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  210. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  211. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  212. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  213. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  214. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  215. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  216. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  217. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  218. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  219. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  220. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  221. package/dist/src/types/app/bsky/like.d.ts +10 -0
  222. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  223. package/dist/src/types/app/bsky/post.d.ts +23 -0
  224. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  225. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  226. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  227. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  228. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  229. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  230. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  231. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  232. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  233. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  234. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  235. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  236. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  237. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  238. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  239. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  240. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  241. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  242. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  243. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  244. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  245. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  246. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  247. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  248. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  249. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  250. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  251. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  252. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  253. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  254. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  255. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  256. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  257. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  258. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  259. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  260. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  261. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  262. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  263. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  264. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  265. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  266. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  267. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  268. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  269. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  270. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  271. package/dist/src/types/todo/social/badge.d.ts +23 -0
  272. package/dist/src/types/todo/social/follow.d.ts +5 -0
  273. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  274. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  275. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  276. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  277. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  278. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  279. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  280. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  281. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  282. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  283. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  284. package/dist/src/types/todo/social/like.d.ts +5 -0
  285. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  286. package/dist/src/types/todo/social/post.d.ts +18 -0
  287. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  288. package/dist/src/types/todo/social/profile.d.ts +10 -0
  289. package/dist/src/types/todo/social/repost.d.ts +5 -0
  290. package/dist/tsconfig.build.tsbuildinfo +1 -0
  291. package/package.json +1 -1
  292. package/src/client/index.ts +143 -0
  293. package/src/client/lexicons.ts +463 -4
  294. package/src/client/types/app/bsky/actor/defs.ts +19 -0
  295. package/src/client/types/app/bsky/embed/record.ts +2 -0
  296. package/src/client/types/app/bsky/feed/defs.ts +90 -2
  297. package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +70 -0
  298. package/src/client/types/app/bsky/feed/generator.ts +31 -0
  299. package/src/client/types/app/bsky/feed/getActorFeeds.ts +39 -0
  300. package/src/client/types/app/bsky/feed/getFeed.ts +46 -0
  301. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +38 -0
  302. package/src/client/types/app/bsky/feed/getFeedGenerators.ts +36 -0
  303. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +46 -0
  304. package/tsconfig.build.tsbuildinfo +1 -1
@@ -3569,6 +3569,7 @@ export const schemaDict = {
3569
3569
  refs: [
3570
3570
  'lex:app.bsky.actor.defs#adultContentPref',
3571
3571
  'lex:app.bsky.actor.defs#contentLabelPref',
3572
+ 'lex:app.bsky.actor.defs#savedFeedsPref',
3572
3573
  ],
3573
3574
  },
3574
3575
  },
@@ -3595,6 +3596,26 @@ export const schemaDict = {
3595
3596
  },
3596
3597
  },
3597
3598
  },
3599
+ savedFeedsPref: {
3600
+ type: 'object',
3601
+ required: ['pinned', 'saved'],
3602
+ properties: {
3603
+ pinned: {
3604
+ type: 'array',
3605
+ items: {
3606
+ type: 'string',
3607
+ format: 'at-uri',
3608
+ },
3609
+ },
3610
+ saved: {
3611
+ type: 'array',
3612
+ items: {
3613
+ type: 'string',
3614
+ format: 'at-uri',
3615
+ },
3616
+ },
3617
+ },
3618
+ },
3598
3619
  },
3599
3620
  },
3600
3621
  AppBskyActorGetPreferences: {
@@ -4035,6 +4056,7 @@ export const schemaDict = {
4035
4056
  'lex:app.bsky.embed.record#viewRecord',
4036
4057
  'lex:app.bsky.embed.record#viewNotFound',
4037
4058
  'lex:app.bsky.embed.record#viewBlocked',
4059
+ 'lex:app.bsky.feed.defs#generatorView',
4038
4060
  ],
4039
4061
  },
4040
4062
  },
@@ -4238,12 +4260,20 @@ export const schemaDict = {
4238
4260
  required: ['root', 'parent'],
4239
4261
  properties: {
4240
4262
  root: {
4241
- type: 'ref',
4242
- ref: 'lex:app.bsky.feed.defs#postView',
4263
+ type: 'union',
4264
+ refs: [
4265
+ 'lex:app.bsky.feed.defs#postView',
4266
+ 'lex:app.bsky.feed.defs#notFoundPost',
4267
+ 'lex:app.bsky.feed.defs#blockedPost',
4268
+ ],
4243
4269
  },
4244
4270
  parent: {
4245
- type: 'ref',
4246
- ref: 'lex:app.bsky.feed.defs#postView',
4271
+ type: 'union',
4272
+ refs: [
4273
+ 'lex:app.bsky.feed.defs#postView',
4274
+ 'lex:app.bsky.feed.defs#notFoundPost',
4275
+ 'lex:app.bsky.feed.defs#blockedPost',
4276
+ ],
4247
4277
  },
4248
4278
  },
4249
4279
  },
@@ -4318,6 +4348,242 @@ export const schemaDict = {
4318
4348
  },
4319
4349
  },
4320
4350
  },
4351
+ generatorView: {
4352
+ type: 'object',
4353
+ required: ['uri', 'cid', 'creator', 'displayName', 'indexedAt'],
4354
+ properties: {
4355
+ uri: {
4356
+ type: 'string',
4357
+ format: 'at-uri',
4358
+ },
4359
+ cid: {
4360
+ type: 'string',
4361
+ format: 'cid',
4362
+ },
4363
+ did: {
4364
+ type: 'string',
4365
+ format: 'did',
4366
+ },
4367
+ creator: {
4368
+ type: 'ref',
4369
+ ref: 'lex:app.bsky.actor.defs#profileView',
4370
+ },
4371
+ displayName: {
4372
+ type: 'string',
4373
+ },
4374
+ description: {
4375
+ type: 'string',
4376
+ maxGraphemes: 300,
4377
+ maxLength: 3000,
4378
+ },
4379
+ descriptionFacets: {
4380
+ type: 'array',
4381
+ items: {
4382
+ type: 'ref',
4383
+ ref: 'lex:app.bsky.richtext.facet',
4384
+ },
4385
+ },
4386
+ avatar: {
4387
+ type: 'string',
4388
+ },
4389
+ likeCount: {
4390
+ type: 'integer',
4391
+ minimum: 0,
4392
+ },
4393
+ viewer: {
4394
+ type: 'ref',
4395
+ ref: 'lex:app.bsky.feed.defs#generatorViewerState',
4396
+ },
4397
+ indexedAt: {
4398
+ type: 'string',
4399
+ format: 'datetime',
4400
+ },
4401
+ },
4402
+ },
4403
+ generatorViewerState: {
4404
+ type: 'object',
4405
+ properties: {
4406
+ like: {
4407
+ type: 'string',
4408
+ format: 'at-uri',
4409
+ },
4410
+ },
4411
+ },
4412
+ skeletonFeedPost: {
4413
+ type: 'object',
4414
+ required: ['post'],
4415
+ properties: {
4416
+ post: {
4417
+ type: 'string',
4418
+ format: 'at-uri',
4419
+ },
4420
+ reason: {
4421
+ type: 'union',
4422
+ refs: ['lex:app.bsky.feed.defs#skeletonReasonRepost'],
4423
+ },
4424
+ },
4425
+ },
4426
+ skeletonReasonRepost: {
4427
+ type: 'object',
4428
+ required: ['repost'],
4429
+ properties: {
4430
+ repost: {
4431
+ type: 'string',
4432
+ ref: 'at-uri',
4433
+ },
4434
+ },
4435
+ },
4436
+ },
4437
+ },
4438
+ AppBskyFeedDescribeFeedGenerator: {
4439
+ lexicon: 1,
4440
+ id: 'app.bsky.feed.describeFeedGenerator',
4441
+ defs: {
4442
+ main: {
4443
+ type: 'query',
4444
+ description:
4445
+ 'Returns information about a given feed generator including TOS & offered feed URIs',
4446
+ output: {
4447
+ encoding: 'application/json',
4448
+ schema: {
4449
+ type: 'object',
4450
+ required: ['did', 'feeds'],
4451
+ properties: {
4452
+ did: {
4453
+ type: 'string',
4454
+ format: 'did',
4455
+ },
4456
+ feeds: {
4457
+ type: 'array',
4458
+ items: {
4459
+ type: 'ref',
4460
+ ref: 'lex:app.bsky.feed.describeFeedGenerator#feed',
4461
+ },
4462
+ },
4463
+ links: {
4464
+ type: 'ref',
4465
+ ref: 'lex:app.bsky.feed.describeFeedGenerator#links',
4466
+ },
4467
+ },
4468
+ },
4469
+ },
4470
+ },
4471
+ feed: {
4472
+ type: 'object',
4473
+ required: ['uri'],
4474
+ properties: {
4475
+ uri: {
4476
+ type: 'string',
4477
+ format: 'at-uri',
4478
+ },
4479
+ },
4480
+ },
4481
+ links: {
4482
+ type: 'object',
4483
+ properties: {
4484
+ privacyPolicy: {
4485
+ type: 'string',
4486
+ },
4487
+ termsOfService: {
4488
+ type: 'string',
4489
+ },
4490
+ },
4491
+ },
4492
+ },
4493
+ },
4494
+ AppBskyFeedGenerator: {
4495
+ lexicon: 1,
4496
+ id: 'app.bsky.feed.generator',
4497
+ defs: {
4498
+ main: {
4499
+ type: 'record',
4500
+ description: 'A declaration of the existence of a feed generator',
4501
+ key: 'any',
4502
+ record: {
4503
+ type: 'object',
4504
+ required: ['did', 'displayName', 'createdAt'],
4505
+ properties: {
4506
+ did: {
4507
+ type: 'string',
4508
+ format: 'did',
4509
+ },
4510
+ displayName: {
4511
+ type: 'string',
4512
+ maxGraphemes: 24,
4513
+ maxLength: 240,
4514
+ },
4515
+ description: {
4516
+ type: 'string',
4517
+ maxGraphemes: 300,
4518
+ maxLength: 3000,
4519
+ },
4520
+ descriptionFacets: {
4521
+ type: 'array',
4522
+ items: {
4523
+ type: 'ref',
4524
+ ref: 'lex:app.bsky.richtext.facet',
4525
+ },
4526
+ },
4527
+ avatar: {
4528
+ type: 'blob',
4529
+ accept: ['image/png', 'image/jpeg'],
4530
+ maxSize: 1000000,
4531
+ },
4532
+ createdAt: {
4533
+ type: 'string',
4534
+ format: 'datetime',
4535
+ },
4536
+ },
4537
+ },
4538
+ },
4539
+ },
4540
+ },
4541
+ AppBskyFeedGetActorFeeds: {
4542
+ lexicon: 1,
4543
+ id: 'app.bsky.feed.getActorFeeds',
4544
+ defs: {
4545
+ main: {
4546
+ type: 'query',
4547
+ description: 'Retrieve a list of feeds created by a given actor',
4548
+ parameters: {
4549
+ type: 'params',
4550
+ required: ['actor'],
4551
+ properties: {
4552
+ actor: {
4553
+ type: 'string',
4554
+ format: 'at-identifier',
4555
+ },
4556
+ limit: {
4557
+ type: 'integer',
4558
+ minimum: 1,
4559
+ maximum: 100,
4560
+ default: 50,
4561
+ },
4562
+ cursor: {
4563
+ type: 'string',
4564
+ },
4565
+ },
4566
+ },
4567
+ output: {
4568
+ encoding: 'application/json',
4569
+ schema: {
4570
+ type: 'object',
4571
+ required: ['feeds'],
4572
+ properties: {
4573
+ cursor: {
4574
+ type: 'string',
4575
+ },
4576
+ feeds: {
4577
+ type: 'array',
4578
+ items: {
4579
+ type: 'ref',
4580
+ ref: 'lex:app.bsky.feed.defs#generatorView',
4581
+ },
4582
+ },
4583
+ },
4584
+ },
4585
+ },
4586
+ },
4321
4587
  },
4322
4588
  },
4323
4589
  AppBskyFeedGetAuthorFeed: {
@@ -4376,6 +4642,192 @@ export const schemaDict = {
4376
4642
  },
4377
4643
  },
4378
4644
  },
4645
+ AppBskyFeedGetFeed: {
4646
+ lexicon: 1,
4647
+ id: 'app.bsky.feed.getFeed',
4648
+ defs: {
4649
+ main: {
4650
+ type: 'query',
4651
+ description:
4652
+ "Compose and hydrate a feed from a user's selected feed generator",
4653
+ parameters: {
4654
+ type: 'params',
4655
+ required: ['feed'],
4656
+ properties: {
4657
+ feed: {
4658
+ type: 'string',
4659
+ format: 'at-uri',
4660
+ },
4661
+ limit: {
4662
+ type: 'integer',
4663
+ minimum: 1,
4664
+ maximum: 100,
4665
+ default: 50,
4666
+ },
4667
+ cursor: {
4668
+ type: 'string',
4669
+ },
4670
+ },
4671
+ },
4672
+ output: {
4673
+ encoding: 'application/json',
4674
+ schema: {
4675
+ type: 'object',
4676
+ required: ['feed'],
4677
+ properties: {
4678
+ cursor: {
4679
+ type: 'string',
4680
+ },
4681
+ feed: {
4682
+ type: 'array',
4683
+ items: {
4684
+ type: 'ref',
4685
+ ref: 'lex:app.bsky.feed.defs#feedViewPost',
4686
+ },
4687
+ },
4688
+ },
4689
+ },
4690
+ },
4691
+ errors: [
4692
+ {
4693
+ name: 'UnknownFeed',
4694
+ },
4695
+ ],
4696
+ },
4697
+ },
4698
+ },
4699
+ AppBskyFeedGetFeedGenerator: {
4700
+ lexicon: 1,
4701
+ id: 'app.bsky.feed.getFeedGenerator',
4702
+ defs: {
4703
+ main: {
4704
+ type: 'query',
4705
+ description:
4706
+ 'Get information about a specific feed offered by a feed generator, such as its online status',
4707
+ parameters: {
4708
+ type: 'params',
4709
+ required: ['feed'],
4710
+ properties: {
4711
+ feed: {
4712
+ type: 'string',
4713
+ format: 'at-uri',
4714
+ },
4715
+ },
4716
+ },
4717
+ output: {
4718
+ encoding: 'application/json',
4719
+ schema: {
4720
+ type: 'object',
4721
+ required: ['view', 'isOnline', 'isValid'],
4722
+ properties: {
4723
+ view: {
4724
+ type: 'ref',
4725
+ ref: 'lex:app.bsky.feed.defs#generatorView',
4726
+ },
4727
+ isOnline: {
4728
+ type: 'boolean',
4729
+ },
4730
+ isValid: {
4731
+ type: 'boolean',
4732
+ },
4733
+ },
4734
+ },
4735
+ },
4736
+ },
4737
+ },
4738
+ },
4739
+ AppBskyFeedGetFeedGenerators: {
4740
+ lexicon: 1,
4741
+ id: 'app.bsky.feed.getFeedGenerators',
4742
+ defs: {
4743
+ main: {
4744
+ type: 'query',
4745
+ description: 'Get information about a list of feed generators',
4746
+ parameters: {
4747
+ type: 'params',
4748
+ required: ['feeds'],
4749
+ properties: {
4750
+ feeds: {
4751
+ type: 'array',
4752
+ items: {
4753
+ type: 'string',
4754
+ format: 'at-uri',
4755
+ },
4756
+ },
4757
+ },
4758
+ },
4759
+ output: {
4760
+ encoding: 'application/json',
4761
+ schema: {
4762
+ type: 'object',
4763
+ required: ['feeds'],
4764
+ properties: {
4765
+ feeds: {
4766
+ type: 'array',
4767
+ items: {
4768
+ type: 'ref',
4769
+ ref: 'lex:app.bsky.feed.defs#generatorView',
4770
+ },
4771
+ },
4772
+ },
4773
+ },
4774
+ },
4775
+ },
4776
+ },
4777
+ },
4778
+ AppBskyFeedGetFeedSkeleton: {
4779
+ lexicon: 1,
4780
+ id: 'app.bsky.feed.getFeedSkeleton',
4781
+ defs: {
4782
+ main: {
4783
+ type: 'query',
4784
+ description: 'A skeleton of a feed provided by a feed generator',
4785
+ parameters: {
4786
+ type: 'params',
4787
+ required: ['feed'],
4788
+ properties: {
4789
+ feed: {
4790
+ type: 'string',
4791
+ format: 'at-uri',
4792
+ },
4793
+ limit: {
4794
+ type: 'integer',
4795
+ minimum: 1,
4796
+ maximum: 100,
4797
+ default: 50,
4798
+ },
4799
+ cursor: {
4800
+ type: 'string',
4801
+ },
4802
+ },
4803
+ },
4804
+ output: {
4805
+ encoding: 'application/json',
4806
+ schema: {
4807
+ type: 'object',
4808
+ required: ['feed'],
4809
+ properties: {
4810
+ cursor: {
4811
+ type: 'string',
4812
+ },
4813
+ feed: {
4814
+ type: 'array',
4815
+ items: {
4816
+ type: 'ref',
4817
+ ref: 'lex:app.bsky.feed.defs#skeletonFeedPost',
4818
+ },
4819
+ },
4820
+ },
4821
+ },
4822
+ },
4823
+ errors: [
4824
+ {
4825
+ name: 'UnknownFeed',
4826
+ },
4827
+ ],
4828
+ },
4829
+ },
4830
+ },
4379
4831
  AppBskyFeedGetLikes: {
4380
4832
  lexicon: 1,
4381
4833
  id: 'app.bsky.feed.getLikes',
@@ -5808,7 +6260,14 @@ export const ids = {
5808
6260
  AppBskyEmbedRecord: 'app.bsky.embed.record',
5809
6261
  AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
5810
6262
  AppBskyFeedDefs: 'app.bsky.feed.defs',
6263
+ AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
6264
+ AppBskyFeedGenerator: 'app.bsky.feed.generator',
6265
+ AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds',
5811
6266
  AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed',
6267
+ AppBskyFeedGetFeed: 'app.bsky.feed.getFeed',
6268
+ AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator',
6269
+ AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators',
6270
+ AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
5812
6271
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
5813
6272
  AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
5814
6273
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
@@ -107,6 +107,7 @@ export function validateViewerState(v: unknown): ValidationResult {
107
107
  export type Preferences = (
108
108
  | AdultContentPref
109
109
  | ContentLabelPref
110
+ | SavedFeedsPref
110
111
  | { $type: string; [k: string]: unknown }
111
112
  )[]
112
113
 
@@ -144,3 +145,21 @@ export function isContentLabelPref(v: unknown): v is ContentLabelPref {
144
145
  export function validateContentLabelPref(v: unknown): ValidationResult {
145
146
  return lexicons.validate('app.bsky.actor.defs#contentLabelPref', v)
146
147
  }
148
+
149
+ export interface SavedFeedsPref {
150
+ pinned: string[]
151
+ saved: string[]
152
+ [k: string]: unknown
153
+ }
154
+
155
+ export function isSavedFeedsPref(v: unknown): v is SavedFeedsPref {
156
+ return (
157
+ isObj(v) &&
158
+ hasProp(v, '$type') &&
159
+ v.$type === 'app.bsky.actor.defs#savedFeedsPref'
160
+ )
161
+ }
162
+
163
+ export function validateSavedFeedsPref(v: unknown): ValidationResult {
164
+ return lexicons.validate('app.bsky.actor.defs#savedFeedsPref', v)
165
+ }
@@ -6,6 +6,7 @@ import { isObj, hasProp } from '../../../../util'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
  import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
9
+ import * as AppBskyFeedDefs from '../feed/defs'
9
10
  import * as AppBskyActorDefs from '../actor/defs'
10
11
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
11
12
  import * as AppBskyEmbedImages from './images'
@@ -35,6 +36,7 @@ export interface View {
35
36
  | ViewRecord
36
37
  | ViewNotFound
37
38
  | ViewBlocked
39
+ | AppBskyFeedDefs.GeneratorView
38
40
  | { $type: string; [k: string]: unknown }
39
41
  [k: string]: unknown
40
42
  }
@@ -11,6 +11,7 @@ import * as AppBskyEmbedExternal from '../embed/external'
11
11
  import * as AppBskyEmbedRecord from '../embed/record'
12
12
  import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
13
13
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
14
+ import * as AppBskyRichtextFacet from '../richtext/facet'
14
15
 
15
16
  export interface PostView {
16
17
  uri: string
@@ -80,8 +81,16 @@ export function validateFeedViewPost(v: unknown): ValidationResult {
80
81
  }
81
82
 
82
83
  export interface ReplyRef {
83
- root: PostView
84
- parent: PostView
84
+ root:
85
+ | PostView
86
+ | NotFoundPost
87
+ | BlockedPost
88
+ | { $type: string; [k: string]: unknown }
89
+ parent:
90
+ | PostView
91
+ | NotFoundPost
92
+ | BlockedPost
93
+ | { $type: string; [k: string]: unknown }
85
94
  [k: string]: unknown
86
95
  }
87
96
 
@@ -176,3 +185,82 @@ export function isBlockedPost(v: unknown): v is BlockedPost {
176
185
  export function validateBlockedPost(v: unknown): ValidationResult {
177
186
  return lexicons.validate('app.bsky.feed.defs#blockedPost', v)
178
187
  }
188
+
189
+ export interface GeneratorView {
190
+ uri: string
191
+ cid: string
192
+ did?: string
193
+ creator: AppBskyActorDefs.ProfileView
194
+ displayName: string
195
+ description?: string
196
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
197
+ avatar?: string
198
+ likeCount?: number
199
+ viewer?: GeneratorViewerState
200
+ indexedAt: string
201
+ [k: string]: unknown
202
+ }
203
+
204
+ export function isGeneratorView(v: unknown): v is GeneratorView {
205
+ return (
206
+ isObj(v) &&
207
+ hasProp(v, '$type') &&
208
+ v.$type === 'app.bsky.feed.defs#generatorView'
209
+ )
210
+ }
211
+
212
+ export function validateGeneratorView(v: unknown): ValidationResult {
213
+ return lexicons.validate('app.bsky.feed.defs#generatorView', v)
214
+ }
215
+
216
+ export interface GeneratorViewerState {
217
+ like?: string
218
+ [k: string]: unknown
219
+ }
220
+
221
+ export function isGeneratorViewerState(v: unknown): v is GeneratorViewerState {
222
+ return (
223
+ isObj(v) &&
224
+ hasProp(v, '$type') &&
225
+ v.$type === 'app.bsky.feed.defs#generatorViewerState'
226
+ )
227
+ }
228
+
229
+ export function validateGeneratorViewerState(v: unknown): ValidationResult {
230
+ return lexicons.validate('app.bsky.feed.defs#generatorViewerState', v)
231
+ }
232
+
233
+ export interface SkeletonFeedPost {
234
+ post: string
235
+ reason?: SkeletonReasonRepost | { $type: string; [k: string]: unknown }
236
+ [k: string]: unknown
237
+ }
238
+
239
+ export function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost {
240
+ return (
241
+ isObj(v) &&
242
+ hasProp(v, '$type') &&
243
+ v.$type === 'app.bsky.feed.defs#skeletonFeedPost'
244
+ )
245
+ }
246
+
247
+ export function validateSkeletonFeedPost(v: unknown): ValidationResult {
248
+ return lexicons.validate('app.bsky.feed.defs#skeletonFeedPost', v)
249
+ }
250
+
251
+ export interface SkeletonReasonRepost {
252
+ repost: string
253
+ [k: string]: unknown
254
+ }
255
+
256
+ export function isSkeletonReasonRepost(v: unknown): v is SkeletonReasonRepost {
257
+ return (
258
+ isObj(v) &&
259
+ hasProp(v, '$type') &&
260
+ v.$type === 'app.bsky.feed.defs#skeletonReasonRepost'
261
+ )
262
+ }
263
+
264
+ export function validateSkeletonReasonRepost(v: unknown): ValidationResult {
265
+ return lexicons.validate('app.bsky.feed.defs#skeletonReasonRepost', v)
266
+ }