@atproto/api 0.2.11 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/README.md +2 -2
  2. package/dist/client/index.d.ts +77 -0
  3. package/dist/client/lexicons.d.ts +480 -0
  4. package/dist/client/types/app/bsky/actor/defs.d.ts +2 -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/updateProfile.d.ts +10 -3
  8. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  9. package/dist/client/types/app/bsky/feed/generator.d.ts +13 -0
  10. package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
  11. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  12. package/dist/client/types/app/bsky/feed/getFeed.d.ts +22 -0
  13. package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +22 -0
  14. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  15. package/dist/client/types/app/bsky/graph/defs.d.ts +42 -0
  16. package/dist/client/types/app/bsky/graph/getList.d.ts +23 -0
  17. package/dist/client/types/app/bsky/graph/getListMutes.d.ts +21 -0
  18. package/dist/client/types/app/bsky/graph/getLists.d.ts +22 -0
  19. package/dist/client/types/app/bsky/graph/list.d.ts +14 -0
  20. package/dist/client/types/app/bsky/graph/listitem.d.ts +9 -0
  21. package/dist/client/types/app/bsky/graph/muteActorList.d.ts +17 -0
  22. package/dist/client/types/app/bsky/graph/unmuteActorList.d.ts +17 -0
  23. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -0
  24. package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
  25. package/dist/client/types/com/atproto/admin/disableAccountInvites.d.ts +17 -0
  26. package/dist/client/types/com/atproto/admin/enableAccountInvites.d.ts +17 -0
  27. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
  28. package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
  29. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +21 -0
  30. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
  31. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
  32. package/dist/index.js +1997 -561
  33. package/dist/index.js.map +4 -4
  34. package/dist/src/client/index.d.ts +462 -0
  35. package/dist/src/client/lexicons.d.ts +2910 -0
  36. package/dist/src/client/schemas.d.ts +17 -0
  37. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  38. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  39. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  40. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  41. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  42. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  43. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  44. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  45. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  46. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  47. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  48. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  49. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  50. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  51. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  52. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  53. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  54. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  55. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  56. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  57. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  58. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  59. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  60. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  61. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  62. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  63. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  64. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  65. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  66. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  67. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  68. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  69. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  70. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  71. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  72. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  73. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  74. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  75. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  76. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  77. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  78. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  79. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  80. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  81. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  82. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  83. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  84. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  85. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  86. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  87. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  88. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  89. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  90. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  91. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  92. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  93. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  94. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  95. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  96. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  97. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  98. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  99. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  100. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  101. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  102. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  103. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  104. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  105. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  106. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  107. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  108. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  109. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  110. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  111. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  112. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  113. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  114. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  115. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  116. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  117. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  118. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  119. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  120. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  121. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  122. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  123. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  124. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  125. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  126. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  127. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  128. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  129. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  130. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  131. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  132. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  133. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  134. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  135. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  136. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  137. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  138. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  139. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  140. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  141. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  142. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  143. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  144. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  145. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  146. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  147. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  148. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  149. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  150. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  151. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  152. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  153. package/dist/src/index.d.ts +4 -0
  154. package/dist/src/schemas.d.ts +19 -0
  155. package/dist/src/session.d.ts +42 -0
  156. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  157. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  158. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  159. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  160. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  161. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  162. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  163. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  164. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  165. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  166. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  167. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  168. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  169. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  170. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  171. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  172. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  173. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  174. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  175. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  176. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  177. package/dist/src/types/app/bsky/like.d.ts +10 -0
  178. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  179. package/dist/src/types/app/bsky/post.d.ts +23 -0
  180. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  181. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  182. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  183. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  184. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  185. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  186. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  187. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  188. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  189. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  190. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  191. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  192. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  193. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  194. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  195. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  196. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  197. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  198. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  199. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  200. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  201. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  202. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  203. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  204. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  205. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  206. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  207. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  208. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  209. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  210. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  211. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  212. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  213. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  214. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  215. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  216. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  217. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  218. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  219. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  220. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  221. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  222. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  223. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  224. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  225. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  226. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  227. package/dist/src/types/todo/social/badge.d.ts +23 -0
  228. package/dist/src/types/todo/social/follow.d.ts +5 -0
  229. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  230. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  231. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  232. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  233. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  234. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  235. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  236. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  237. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  238. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  239. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  240. package/dist/src/types/todo/social/like.d.ts +5 -0
  241. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  242. package/dist/src/types/todo/social/post.d.ts +18 -0
  243. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  244. package/dist/src/types/todo/social/profile.d.ts +10 -0
  245. package/dist/src/types/todo/social/repost.d.ts +5 -0
  246. package/dist/tsconfig.build.tsbuildinfo +1 -0
  247. package/package.json +6 -1
  248. package/src/client/index.ts +240 -0
  249. package/src/client/lexicons.ts +488 -0
  250. package/src/client/types/app/bsky/actor/defs.ts +2 -0
  251. package/src/client/types/app/bsky/graph/defs.ts +95 -0
  252. package/src/client/types/app/bsky/graph/getList.ts +40 -0
  253. package/src/client/types/app/bsky/graph/getListMutes.ts +38 -0
  254. package/src/client/types/app/bsky/graph/getLists.ts +39 -0
  255. package/src/client/types/app/bsky/graph/list.ts +32 -0
  256. package/src/client/types/app/bsky/graph/listitem.ts +27 -0
  257. package/src/client/types/app/bsky/graph/muteActorList.ts +32 -0
  258. package/src/client/types/app/bsky/graph/unmuteActorList.ts +32 -0
  259. package/src/client/types/app/bsky/unspecced/getPopular.ts +1 -0
  260. package/src/client/types/com/atproto/admin/defs.ts +5 -0
  261. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +32 -0
  262. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +32 -0
  263. package/src/client/types/com/atproto/repo/rebaseRepo.ts +42 -0
  264. package/tsconfig.build.tsbuildinfo +1 -1
  265. package/dist/helpers/bsky.d.ts +0 -20
  266. package/dist/mixins/bsky.d.ts +0 -23
  267. package/dist/rich-text/sanitize.d.ts +0 -4
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyFeedDefs from './defs';
3
+ export interface QueryParams {
4
+ actor: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ feeds: AppBskyFeedDefs.GeneratorView[];
12
+ [k: string]: unknown;
13
+ }
14
+ export interface CallOptions {
15
+ headers?: Headers;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: Headers;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,21 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyFeedDefs from './defs';
3
+ export interface QueryParams {
4
+ limit?: number;
5
+ cursor?: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ cursor?: string;
10
+ feeds: AppBskyFeedDefs.GeneratorView[];
11
+ [k: string]: unknown;
12
+ }
13
+ export interface CallOptions {
14
+ headers?: Headers;
15
+ }
16
+ export interface Response {
17
+ success: boolean;
18
+ headers: Headers;
19
+ data: OutputSchema;
20
+ }
21
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyFeedDefs from './defs';
3
+ export interface QueryParams {
4
+ feed: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ feed: AppBskyFeedDefs.FeedViewPost[];
12
+ [k: string]: unknown;
13
+ }
14
+ export interface CallOptions {
15
+ headers?: Headers;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: Headers;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyFeedDefs from './defs';
3
+ export interface QueryParams {
4
+ feed: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ feed: AppBskyFeedDefs.SkeletonFeedPost[];
12
+ [k: string]: unknown;
13
+ }
14
+ export interface CallOptions {
15
+ headers?: Headers;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: Headers;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ feed: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,42 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyActorDefs from '../actor/defs';
3
+ import * as AppBskyRichtextFacet from '../richtext/facet';
4
+ export interface ListViewBasic {
5
+ uri: string;
6
+ name: string;
7
+ purpose: ListPurpose;
8
+ avatar?: string;
9
+ viewer?: ListViewerState;
10
+ indexedAt?: string;
11
+ [k: string]: unknown;
12
+ }
13
+ export declare function isListViewBasic(v: unknown): v is ListViewBasic;
14
+ export declare function validateListViewBasic(v: unknown): ValidationResult;
15
+ export interface ListView {
16
+ uri: string;
17
+ creator: AppBskyActorDefs.ProfileView;
18
+ name: string;
19
+ purpose: ListPurpose;
20
+ description?: string;
21
+ descriptionFacets?: AppBskyRichtextFacet.Main[];
22
+ avatar?: string;
23
+ viewer?: ListViewerState;
24
+ indexedAt: string;
25
+ [k: string]: unknown;
26
+ }
27
+ export declare function isListView(v: unknown): v is ListView;
28
+ export declare function validateListView(v: unknown): ValidationResult;
29
+ export interface ListItemView {
30
+ subject: AppBskyActorDefs.ProfileView;
31
+ [k: string]: unknown;
32
+ }
33
+ export declare function isListItemView(v: unknown): v is ListItemView;
34
+ export declare function validateListItemView(v: unknown): ValidationResult;
35
+ export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {});
36
+ export declare const MODLIST = "app.bsky.graph.defs#modlist";
37
+ export interface ListViewerState {
38
+ muted?: boolean;
39
+ [k: string]: unknown;
40
+ }
41
+ export declare function isListViewerState(v: unknown): v is ListViewerState;
42
+ export declare function validateListViewerState(v: unknown): ValidationResult;
@@ -0,0 +1,23 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyGraphDefs from './defs';
3
+ export interface QueryParams {
4
+ list: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ list: AppBskyGraphDefs.ListView;
12
+ items: AppBskyGraphDefs.ListItemView[];
13
+ [k: string]: unknown;
14
+ }
15
+ export interface CallOptions {
16
+ headers?: Headers;
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: Headers;
21
+ data: OutputSchema;
22
+ }
23
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,21 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyGraphDefs from './defs';
3
+ export interface QueryParams {
4
+ limit?: number;
5
+ cursor?: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ cursor?: string;
10
+ lists: AppBskyGraphDefs.ListView[];
11
+ [k: string]: unknown;
12
+ }
13
+ export interface CallOptions {
14
+ headers?: Headers;
15
+ }
16
+ export interface Response {
17
+ success: boolean;
18
+ headers: Headers;
19
+ data: OutputSchema;
20
+ }
21
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyGraphDefs from './defs';
3
+ export interface QueryParams {
4
+ actor: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ lists: AppBskyGraphDefs.ListView[];
12
+ [k: string]: unknown;
13
+ }
14
+ export interface CallOptions {
15
+ headers?: Headers;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: Headers;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,14 @@
1
+ import { ValidationResult, BlobRef } from '@atproto/lexicon';
2
+ import * as AppBskyGraphDefs from './defs';
3
+ import * as AppBskyRichtextFacet from '../richtext/facet';
4
+ export interface Record {
5
+ purpose: AppBskyGraphDefs.ListPurpose;
6
+ name: string;
7
+ description?: string;
8
+ descriptionFacets?: AppBskyRichtextFacet.Main[];
9
+ avatar?: BlobRef;
10
+ createdAt: string;
11
+ [k: string]: unknown;
12
+ }
13
+ export declare function isRecord(v: unknown): v is Record;
14
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -0,0 +1,9 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface Record {
3
+ subject: string;
4
+ list: string;
5
+ createdAt: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export declare function isRecord(v: unknown): v is Record;
9
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ list: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ list: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -1,6 +1,7 @@
1
1
  import { Headers } from '@atproto/xrpc';
2
2
  import * as AppBskyFeedDefs from '../feed/defs';
3
3
  export interface QueryParams {
4
+ includeNsfw?: boolean;
4
5
  limit?: number;
5
6
  cursor?: string;
6
7
  }
@@ -56,10 +56,11 @@ export interface ActionReversal {
56
56
  }
57
57
  export declare function isActionReversal(v: unknown): v is ActionReversal;
58
58
  export declare function validateActionReversal(v: unknown): ValidationResult;
59
- export declare type ActionType = 'lex:com.atproto.admin.defs#takedown' | 'lex:com.atproto.admin.defs#flag' | 'lex:com.atproto.admin.defs#acknowledge' | (string & {});
59
+ export declare type ActionType = 'lex:com.atproto.admin.defs#takedown' | 'lex:com.atproto.admin.defs#flag' | 'lex:com.atproto.admin.defs#acknowledge' | 'lex:com.atproto.admin.defs#escalate' | (string & {});
60
60
  export declare const TAKEDOWN = "com.atproto.admin.defs#takedown";
61
61
  export declare const FLAG = "com.atproto.admin.defs#flag";
62
62
  export declare const ACKNOWLEDGE = "com.atproto.admin.defs#acknowledge";
63
+ export declare const ESCALATE = "com.atproto.admin.defs#escalate";
63
64
  export interface ReportView {
64
65
  id: number;
65
66
  reasonType: ComAtprotoModerationDefs.ReasonType;
@@ -98,6 +99,7 @@ export interface RepoView {
98
99
  indexedAt: string;
99
100
  moderation: Moderation;
100
101
  invitedBy?: ComAtprotoServerDefs.InviteCode;
102
+ invitesDisabled?: boolean;
101
103
  [k: string]: unknown;
102
104
  }
103
105
  export declare function isRepoView(v: unknown): v is RepoView;
@@ -112,6 +114,7 @@ export interface RepoViewDetail {
112
114
  labels?: ComAtprotoLabelDefs.Label[];
113
115
  invitedBy?: ComAtprotoServerDefs.InviteCode;
114
116
  invites?: ComAtprotoServerDefs.InviteCode[];
117
+ invitesDisabled?: boolean;
115
118
  [k: string]: unknown;
116
119
  }
117
120
  export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ account: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ account: string;
6
+ [k: string]: unknown;
7
+ }
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ qp?: QueryParams;
11
+ encoding: 'application/json';
12
+ }
13
+ export interface Response {
14
+ success: boolean;
15
+ headers: Headers;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,29 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import { ValidationResult } from '@atproto/lexicon';
3
+ export interface QueryParams {
4
+ }
5
+ export declare type InputSchema = undefined;
6
+ export interface OutputSchema {
7
+ total: CodesDetail;
8
+ user: CodesDetail;
9
+ admin: CodesDetail;
10
+ [k: string]: unknown;
11
+ }
12
+ export interface CallOptions {
13
+ headers?: Headers;
14
+ }
15
+ export interface Response {
16
+ success: boolean;
17
+ headers: Headers;
18
+ data: OutputSchema;
19
+ }
20
+ export declare function toKnownErr(e: any): any;
21
+ export interface CodesDetail {
22
+ count: number;
23
+ available: number;
24
+ used: number;
25
+ disabled: number;
26
+ [k: string]: unknown;
27
+ }
28
+ export declare function isCodesDetail(v: unknown): v is CodesDetail;
29
+ export declare function validateCodesDetail(v: unknown): ValidationResult;
@@ -0,0 +1,19 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export declare type InputSchema = string | Uint8Array;
5
+ export interface OutputSchema {
6
+ head: string;
7
+ [k: string]: unknown;
8
+ }
9
+ export interface CallOptions {
10
+ headers?: Headers;
11
+ qp?: QueryParams;
12
+ encoding: 'application/vnd.ipld.car';
13
+ }
14
+ export interface Response {
15
+ success: boolean;
16
+ headers: Headers;
17
+ data: OutputSchema;
18
+ }
19
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,21 @@
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export interface InputSchema {
5
+ repo: string;
6
+ swapCommit?: string;
7
+ [k: string]: unknown;
8
+ }
9
+ export interface CallOptions {
10
+ headers?: Headers;
11
+ qp?: QueryParams;
12
+ encoding: 'application/json';
13
+ }
14
+ export interface Response {
15
+ success: boolean;
16
+ headers: Headers;
17
+ }
18
+ export declare class InvalidSwapError extends XRPCError {
19
+ constructor(src: XRPCError);
20
+ }
21
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,19 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ }
4
+ export declare type InputSchema = string | Uint8Array;
5
+ export interface OutputSchema {
6
+ head: string;
7
+ [k: string]: unknown;
8
+ }
9
+ export interface CallOptions {
10
+ headers?: Headers;
11
+ qp?: QueryParams;
12
+ encoding: 'application/vnd.ipld.car';
13
+ }
14
+ export interface Response {
15
+ success: boolean;
16
+ headers: Headers;
17
+ data: OutputSchema;
18
+ }
19
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,31 @@
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
+ import { ValidationResult } from '@atproto/lexicon';
3
+ export interface QueryParams {
4
+ includeUsed?: boolean;
5
+ createAvailable?: boolean;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ codes: Invite[];
10
+ [k: string]: unknown;
11
+ }
12
+ export interface CallOptions {
13
+ headers?: Headers;
14
+ }
15
+ export interface Response {
16
+ success: boolean;
17
+ headers: Headers;
18
+ data: OutputSchema;
19
+ }
20
+ export declare class DuplicateCreateError extends XRPCError {
21
+ constructor(src: XRPCError);
22
+ }
23
+ export declare function toKnownErr(e: any): any;
24
+ export interface Invite {
25
+ code: string;
26
+ available: number;
27
+ uses: number;
28
+ [k: string]: unknown;
29
+ }
30
+ export declare function isInvite(v: unknown): v is Invite;
31
+ export declare function validateInvite(v: unknown): ValidationResult;