@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
@@ -182,6 +182,7 @@ export const schemaDict = {
182
182
  'lex:com.atproto.admin.defs#takedown',
183
183
  'lex:com.atproto.admin.defs#flag',
184
184
  'lex:com.atproto.admin.defs#acknowledge',
185
+ 'lex:com.atproto.admin.defs#escalate',
185
186
  ],
186
187
  },
187
188
  takedown: {
@@ -199,6 +200,11 @@ export const schemaDict = {
199
200
  description:
200
201
  'Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules.',
201
202
  },
203
+ escalate: {
204
+ type: 'token',
205
+ description:
206
+ 'Moderation action type: Escalate. Indicates that the content has been flagged for additional review.',
207
+ },
202
208
  reportView: {
203
209
  type: 'object',
204
210
  required: [
@@ -327,6 +333,9 @@ export const schemaDict = {
327
333
  type: 'ref',
328
334
  ref: 'lex:com.atproto.server.defs#inviteCode',
329
335
  },
336
+ invitesDisabled: {
337
+ type: 'boolean',
338
+ },
330
339
  },
331
340
  },
332
341
  repoViewDetail: {
@@ -382,6 +391,9 @@ export const schemaDict = {
382
391
  ref: 'lex:com.atproto.server.defs#inviteCode',
383
392
  },
384
393
  },
394
+ invitesDisabled: {
395
+ type: 'boolean',
396
+ },
385
397
  },
386
398
  },
387
399
  repoRef: {
@@ -583,6 +595,30 @@ export const schemaDict = {
583
595
  },
584
596
  },
585
597
  },
598
+ ComAtprotoAdminDisableAccountInvites: {
599
+ lexicon: 1,
600
+ id: 'com.atproto.admin.disableAccountInvites',
601
+ defs: {
602
+ main: {
603
+ type: 'procedure',
604
+ description:
605
+ 'Disable an account from receiving new invite codes, but does not invalidate existing codes',
606
+ input: {
607
+ encoding: 'application/json',
608
+ schema: {
609
+ type: 'object',
610
+ required: ['account'],
611
+ properties: {
612
+ account: {
613
+ type: 'string',
614
+ format: 'did',
615
+ },
616
+ },
617
+ },
618
+ },
619
+ },
620
+ },
621
+ },
586
622
  ComAtprotoAdminDisableInviteCodes: {
587
623
  lexicon: 1,
588
624
  id: 'com.atproto.admin.disableInviteCodes',
@@ -614,6 +650,29 @@ export const schemaDict = {
614
650
  },
615
651
  },
616
652
  },
653
+ ComAtprotoAdminEnableAccountInvites: {
654
+ lexicon: 1,
655
+ id: 'com.atproto.admin.enableAccountInvites',
656
+ defs: {
657
+ main: {
658
+ type: 'procedure',
659
+ description: 'Re-enable an accounts ability to receive invite codes',
660
+ input: {
661
+ encoding: 'application/json',
662
+ schema: {
663
+ type: 'object',
664
+ required: ['account'],
665
+ properties: {
666
+ account: {
667
+ type: 'string',
668
+ format: 'did',
669
+ },
670
+ },
671
+ },
672
+ },
673
+ },
674
+ },
675
+ },
617
676
  ComAtprotoAdminGetInviteCodes: {
618
677
  lexicon: 1,
619
678
  id: 'com.atproto.admin.getInviteCodes',
@@ -1953,6 +2012,41 @@ export const schemaDict = {
1953
2012
  },
1954
2013
  },
1955
2014
  },
2015
+ ComAtprotoRepoRebaseRepo: {
2016
+ lexicon: 1,
2017
+ id: 'com.atproto.repo.rebaseRepo',
2018
+ defs: {
2019
+ main: {
2020
+ type: 'procedure',
2021
+ description: 'Simple rebase of repo that deletes history',
2022
+ input: {
2023
+ encoding: 'application/json',
2024
+ schema: {
2025
+ type: 'object',
2026
+ required: ['repo'],
2027
+ properties: {
2028
+ repo: {
2029
+ type: 'string',
2030
+ format: 'at-identifier',
2031
+ description: 'The handle or DID of the repo.',
2032
+ },
2033
+ swapCommit: {
2034
+ type: 'string',
2035
+ format: 'cid',
2036
+ description:
2037
+ 'Compare and swap with the previous commit by cid.',
2038
+ },
2039
+ },
2040
+ },
2041
+ },
2042
+ errors: [
2043
+ {
2044
+ name: 'InvalidSwap',
2045
+ },
2046
+ ],
2047
+ },
2048
+ },
2049
+ },
1956
2050
  ComAtprotoRepoStrongRef: {
1957
2051
  lexicon: 1,
1958
2052
  id: 'com.atproto.repo.strongRef',
@@ -3394,6 +3488,10 @@ export const schemaDict = {
3394
3488
  muted: {
3395
3489
  type: 'boolean',
3396
3490
  },
3491
+ mutedByList: {
3492
+ type: 'ref',
3493
+ ref: 'lex:app.bsky.graph.defs#listViewBasic',
3494
+ },
3397
3495
  blockedBy: {
3398
3496
  type: 'boolean',
3399
3497
  },
@@ -4582,6 +4680,115 @@ export const schemaDict = {
4582
4680
  },
4583
4681
  },
4584
4682
  },
4683
+ AppBskyGraphDefs: {
4684
+ lexicon: 1,
4685
+ id: 'app.bsky.graph.defs',
4686
+ defs: {
4687
+ listViewBasic: {
4688
+ type: 'object',
4689
+ required: ['uri', 'creator', 'name', 'purpose'],
4690
+ properties: {
4691
+ uri: {
4692
+ type: 'string',
4693
+ format: 'at-uri',
4694
+ },
4695
+ name: {
4696
+ type: 'string',
4697
+ maxLength: 64,
4698
+ minLength: 1,
4699
+ },
4700
+ purpose: {
4701
+ type: 'ref',
4702
+ ref: 'lex:app.bsky.graph.defs#listPurpose',
4703
+ },
4704
+ avatar: {
4705
+ type: 'string',
4706
+ },
4707
+ viewer: {
4708
+ type: 'ref',
4709
+ ref: 'lex:app.bsky.graph.defs#listViewerState',
4710
+ },
4711
+ indexedAt: {
4712
+ type: 'string',
4713
+ format: 'datetime',
4714
+ },
4715
+ },
4716
+ },
4717
+ listView: {
4718
+ type: 'object',
4719
+ required: ['uri', 'creator', 'name', 'purpose', 'indexedAt'],
4720
+ properties: {
4721
+ uri: {
4722
+ type: 'string',
4723
+ format: 'at-uri',
4724
+ },
4725
+ creator: {
4726
+ type: 'ref',
4727
+ ref: 'lex:app.bsky.actor.defs#profileView',
4728
+ },
4729
+ name: {
4730
+ type: 'string',
4731
+ maxLength: 64,
4732
+ minLength: 1,
4733
+ },
4734
+ purpose: {
4735
+ type: 'ref',
4736
+ ref: 'lex:app.bsky.graph.defs#listPurpose',
4737
+ },
4738
+ description: {
4739
+ type: 'string',
4740
+ maxGraphemes: 300,
4741
+ maxLength: 3000,
4742
+ },
4743
+ descriptionFacets: {
4744
+ type: 'array',
4745
+ items: {
4746
+ type: 'ref',
4747
+ ref: 'lex:app.bsky.richtext.facet',
4748
+ },
4749
+ },
4750
+ avatar: {
4751
+ type: 'string',
4752
+ },
4753
+ viewer: {
4754
+ type: 'ref',
4755
+ ref: 'lex:app.bsky.graph.defs#listViewerState',
4756
+ },
4757
+ indexedAt: {
4758
+ type: 'string',
4759
+ format: 'datetime',
4760
+ },
4761
+ },
4762
+ },
4763
+ listItemView: {
4764
+ type: 'object',
4765
+ required: ['subject'],
4766
+ properties: {
4767
+ subject: {
4768
+ type: 'ref',
4769
+ ref: 'lex:app.bsky.actor.defs#profileView',
4770
+ },
4771
+ },
4772
+ },
4773
+ listPurpose: {
4774
+ type: 'string',
4775
+ knownValues: ['app.bsky.graph.defs#modlist'],
4776
+ },
4777
+ modlist: {
4778
+ type: 'token',
4779
+ description:
4780
+ 'A list of actors to apply an aggregate moderation action (mute/block) on',
4781
+ },
4782
+ listViewerState: {
4783
+ type: 'object',
4784
+ properties: {
4785
+ muted: {
4786
+ type: 'boolean',
4787
+ },
4788
+ },
4789
+ },
4790
+ },
4791
+ },
4585
4792
  AppBskyGraphFollow: {
4586
4793
  lexicon: 1,
4587
4794
  id: 'app.bsky.graph.follow',
@@ -4754,6 +4961,149 @@ export const schemaDict = {
4754
4961
  },
4755
4962
  },
4756
4963
  },
4964
+ AppBskyGraphGetList: {
4965
+ lexicon: 1,
4966
+ id: 'app.bsky.graph.getList',
4967
+ defs: {
4968
+ main: {
4969
+ type: 'query',
4970
+ description: 'Fetch a list of actors',
4971
+ parameters: {
4972
+ type: 'params',
4973
+ required: ['list'],
4974
+ properties: {
4975
+ list: {
4976
+ type: 'string',
4977
+ format: 'at-uri',
4978
+ },
4979
+ limit: {
4980
+ type: 'integer',
4981
+ minimum: 1,
4982
+ maximum: 100,
4983
+ default: 50,
4984
+ },
4985
+ cursor: {
4986
+ type: 'string',
4987
+ },
4988
+ },
4989
+ },
4990
+ output: {
4991
+ encoding: 'application/json',
4992
+ schema: {
4993
+ type: 'object',
4994
+ required: ['list', 'items'],
4995
+ properties: {
4996
+ cursor: {
4997
+ type: 'string',
4998
+ },
4999
+ list: {
5000
+ type: 'ref',
5001
+ ref: 'lex:app.bsky.graph.defs#listView',
5002
+ },
5003
+ items: {
5004
+ type: 'array',
5005
+ items: {
5006
+ type: 'ref',
5007
+ ref: 'lex:app.bsky.graph.defs#listItemView',
5008
+ },
5009
+ },
5010
+ },
5011
+ },
5012
+ },
5013
+ },
5014
+ },
5015
+ },
5016
+ AppBskyGraphGetListMutes: {
5017
+ lexicon: 1,
5018
+ id: 'app.bsky.graph.getListMutes',
5019
+ defs: {
5020
+ main: {
5021
+ type: 'query',
5022
+ description: "Which lists is the requester's account muting?",
5023
+ parameters: {
5024
+ type: 'params',
5025
+ properties: {
5026
+ limit: {
5027
+ type: 'integer',
5028
+ minimum: 1,
5029
+ maximum: 100,
5030
+ default: 50,
5031
+ },
5032
+ cursor: {
5033
+ type: 'string',
5034
+ },
5035
+ },
5036
+ },
5037
+ output: {
5038
+ encoding: 'application/json',
5039
+ schema: {
5040
+ type: 'object',
5041
+ required: ['lists'],
5042
+ properties: {
5043
+ cursor: {
5044
+ type: 'string',
5045
+ },
5046
+ lists: {
5047
+ type: 'array',
5048
+ items: {
5049
+ type: 'ref',
5050
+ ref: 'lex:app.bsky.graph.defs#listView',
5051
+ },
5052
+ },
5053
+ },
5054
+ },
5055
+ },
5056
+ },
5057
+ },
5058
+ },
5059
+ AppBskyGraphGetLists: {
5060
+ lexicon: 1,
5061
+ id: 'app.bsky.graph.getLists',
5062
+ defs: {
5063
+ main: {
5064
+ type: 'query',
5065
+ description: 'Fetch a list of lists that belong to an actor',
5066
+ parameters: {
5067
+ type: 'params',
5068
+ required: ['actor'],
5069
+ properties: {
5070
+ actor: {
5071
+ type: 'string',
5072
+ format: 'at-identifier',
5073
+ },
5074
+ limit: {
5075
+ type: 'integer',
5076
+ minimum: 1,
5077
+ maximum: 100,
5078
+ default: 50,
5079
+ },
5080
+ cursor: {
5081
+ type: 'string',
5082
+ },
5083
+ },
5084
+ },
5085
+ output: {
5086
+ encoding: 'application/json',
5087
+ schema: {
5088
+ type: 'object',
5089
+ required: ['lists'],
5090
+ properties: {
5091
+ cursor: {
5092
+ type: 'string',
5093
+ },
5094
+ lists: {
5095
+ type: 'array',
5096
+ items: {
5097
+ type: 'ref',
5098
+ ref: 'lex:app.bsky.graph.defs#listView',
5099
+ },
5100
+ },
5101
+ },
5102
+ },
5103
+ },
5104
+ },
5105
+ },
5106
+ },
4757
5107
  AppBskyGraphGetMutes: {
4758
5108
  lexicon: 1,
4759
5109
  id: 'app.bsky.graph.getMutes',
@@ -4797,6 +5147,82 @@ export const schemaDict = {
4797
5147
  },
4798
5148
  },
4799
5149
  },
5150
+ AppBskyGraphList: {
5151
+ lexicon: 1,
5152
+ id: 'app.bsky.graph.list',
5153
+ defs: {
5154
+ main: {
5155
+ type: 'record',
5156
+ description: 'A declaration of a list of actors.',
5157
+ key: 'tid',
5158
+ record: {
5159
+ type: 'object',
5160
+ required: ['name', 'purpose', 'createdAt'],
5161
+ properties: {
5162
+ purpose: {
5163
+ type: 'ref',
5164
+ ref: 'lex:app.bsky.graph.defs#listPurpose',
5165
+ },
5166
+ name: {
5167
+ type: 'string',
5168
+ maxLength: 64,
5169
+ minLength: 1,
5170
+ },
5171
+ description: {
5172
+ type: 'string',
5173
+ maxGraphemes: 300,
5174
+ maxLength: 3000,
5175
+ },
5176
+ descriptionFacets: {
5177
+ type: 'array',
5178
+ items: {
5179
+ type: 'ref',
5180
+ ref: 'lex:app.bsky.richtext.facet',
5181
+ },
5182
+ },
5183
+ avatar: {
5184
+ type: 'blob',
5185
+ accept: ['image/png', 'image/jpeg'],
5186
+ maxSize: 1000000,
5187
+ },
5188
+ createdAt: {
5189
+ type: 'string',
5190
+ format: 'datetime',
5191
+ },
5192
+ },
5193
+ },
5194
+ },
5195
+ },
5196
+ },
5197
+ AppBskyGraphListitem: {
5198
+ lexicon: 1,
5199
+ id: 'app.bsky.graph.listitem',
5200
+ defs: {
5201
+ main: {
5202
+ type: 'record',
5203
+ description: 'An item under a declared list of actors',
5204
+ key: 'tid',
5205
+ record: {
5206
+ type: 'object',
5207
+ required: ['subject', 'list', 'createdAt'],
5208
+ properties: {
5209
+ subject: {
5210
+ type: 'string',
5211
+ format: 'did',
5212
+ },
5213
+ list: {
5214
+ type: 'string',
5215
+ format: 'at-uri',
5216
+ },
5217
+ createdAt: {
5218
+ type: 'string',
5219
+ format: 'datetime',
5220
+ },
5221
+ },
5222
+ },
5223
+ },
5224
+ },
5225
+ },
4800
5226
  AppBskyGraphMuteActor: {
4801
5227
  lexicon: 1,
4802
5228
  id: 'app.bsky.graph.muteActor',
@@ -4820,6 +5246,29 @@ export const schemaDict = {
4820
5246
  },
4821
5247
  },
4822
5248
  },
5249
+ AppBskyGraphMuteActorList: {
5250
+ lexicon: 1,
5251
+ id: 'app.bsky.graph.muteActorList',
5252
+ defs: {
5253
+ main: {
5254
+ type: 'procedure',
5255
+ description: 'Mute a list of actors.',
5256
+ input: {
5257
+ encoding: 'application/json',
5258
+ schema: {
5259
+ type: 'object',
5260
+ required: ['list'],
5261
+ properties: {
5262
+ list: {
5263
+ type: 'string',
5264
+ format: 'at-uri',
5265
+ },
5266
+ },
5267
+ },
5268
+ },
5269
+ },
5270
+ },
5271
+ },
4823
5272
  AppBskyGraphUnmuteActor: {
4824
5273
  lexicon: 1,
4825
5274
  id: 'app.bsky.graph.unmuteActor',
@@ -4843,6 +5292,29 @@ export const schemaDict = {
4843
5292
  },
4844
5293
  },
4845
5294
  },
5295
+ AppBskyGraphUnmuteActorList: {
5296
+ lexicon: 1,
5297
+ id: 'app.bsky.graph.unmuteActorList',
5298
+ defs: {
5299
+ main: {
5300
+ type: 'procedure',
5301
+ description: 'Unmute a list of actors.',
5302
+ input: {
5303
+ encoding: 'application/json',
5304
+ schema: {
5305
+ type: 'object',
5306
+ required: ['list'],
5307
+ properties: {
5308
+ list: {
5309
+ type: 'string',
5310
+ format: 'at-uri',
5311
+ },
5312
+ },
5313
+ },
5314
+ },
5315
+ },
5316
+ },
5317
+ },
4846
5318
  AppBskyNotificationGetUnreadCount: {
4847
5319
  lexicon: 1,
4848
5320
  id: 'app.bsky.notification.getUnreadCount',
@@ -5076,6 +5548,10 @@ export const schemaDict = {
5076
5548
  parameters: {
5077
5549
  type: 'params',
5078
5550
  properties: {
5551
+ includeNsfw: {
5552
+ type: 'boolean',
5553
+ default: false,
5554
+ },
5079
5555
  limit: {
5080
5556
  type: 'integer',
5081
5557
  minimum: 1,
@@ -5114,7 +5590,10 @@ export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
5114
5590
  export const lexicons: Lexicons = new Lexicons(schemas)
5115
5591
  export const ids = {
5116
5592
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
5593
+ ComAtprotoAdminDisableAccountInvites:
5594
+ 'com.atproto.admin.disableAccountInvites',
5117
5595
  ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
5596
+ ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
5118
5597
  ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
5119
5598
  ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction',
5120
5599
  ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions',
@@ -5144,6 +5623,7 @@ export const ids = {
5144
5623
  ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
5145
5624
  ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
5146
5625
  ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
5626
+ ComAtprotoRepoRebaseRepo: 'com.atproto.repo.rebaseRepo',
5147
5627
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
5148
5628
  ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
5149
5629
  ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
@@ -5200,13 +5680,21 @@ export const ids = {
5200
5680
  AppBskyFeedPost: 'app.bsky.feed.post',
5201
5681
  AppBskyFeedRepost: 'app.bsky.feed.repost',
5202
5682
  AppBskyGraphBlock: 'app.bsky.graph.block',
5683
+ AppBskyGraphDefs: 'app.bsky.graph.defs',
5203
5684
  AppBskyGraphFollow: 'app.bsky.graph.follow',
5204
5685
  AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
5205
5686
  AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
5206
5687
  AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
5688
+ AppBskyGraphGetList: 'app.bsky.graph.getList',
5689
+ AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
5690
+ AppBskyGraphGetLists: 'app.bsky.graph.getLists',
5207
5691
  AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
5692
+ AppBskyGraphList: 'app.bsky.graph.list',
5693
+ AppBskyGraphListitem: 'app.bsky.graph.listitem',
5208
5694
  AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
5695
+ AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
5209
5696
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
5697
+ AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
5210
5698
  AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
5211
5699
  AppBskyNotificationListNotifications:
5212
5700
  'app.bsky.notification.listNotifications',
@@ -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 ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
9
+ import * as AppBskyGraphDefs from '../graph/defs'
9
10
 
10
11
  export interface ProfileViewBasic {
11
12
  did: string
@@ -83,6 +84,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
83
84
 
84
85
  export interface ViewerState {
85
86
  muted?: boolean
87
+ mutedByList?: AppBskyGraphDefs.ListViewBasic
86
88
  blockedBy?: boolean
87
89
  blocking?: string
88
90
  following?: string
@@ -0,0 +1,95 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+ import * as AppBskyActorDefs from '../actor/defs'
9
+ import * as AppBskyRichtextFacet from '../richtext/facet'
10
+
11
+ export interface ListViewBasic {
12
+ uri: string
13
+ name: string
14
+ purpose: ListPurpose
15
+ avatar?: string
16
+ viewer?: ListViewerState
17
+ indexedAt?: string
18
+ [k: string]: unknown
19
+ }
20
+
21
+ export function isListViewBasic(v: unknown): v is ListViewBasic {
22
+ return (
23
+ isObj(v) &&
24
+ hasProp(v, '$type') &&
25
+ v.$type === 'app.bsky.graph.defs#listViewBasic'
26
+ )
27
+ }
28
+
29
+ export function validateListViewBasic(v: unknown): ValidationResult {
30
+ return lexicons.validate('app.bsky.graph.defs#listViewBasic', v)
31
+ }
32
+
33
+ export interface ListView {
34
+ uri: string
35
+ creator: AppBskyActorDefs.ProfileView
36
+ name: string
37
+ purpose: ListPurpose
38
+ description?: string
39
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
40
+ avatar?: string
41
+ viewer?: ListViewerState
42
+ indexedAt: string
43
+ [k: string]: unknown
44
+ }
45
+
46
+ export function isListView(v: unknown): v is ListView {
47
+ return (
48
+ isObj(v) &&
49
+ hasProp(v, '$type') &&
50
+ v.$type === 'app.bsky.graph.defs#listView'
51
+ )
52
+ }
53
+
54
+ export function validateListView(v: unknown): ValidationResult {
55
+ return lexicons.validate('app.bsky.graph.defs#listView', v)
56
+ }
57
+
58
+ export interface ListItemView {
59
+ subject: AppBskyActorDefs.ProfileView
60
+ [k: string]: unknown
61
+ }
62
+
63
+ export function isListItemView(v: unknown): v is ListItemView {
64
+ return (
65
+ isObj(v) &&
66
+ hasProp(v, '$type') &&
67
+ v.$type === 'app.bsky.graph.defs#listItemView'
68
+ )
69
+ }
70
+
71
+ export function validateListItemView(v: unknown): ValidationResult {
72
+ return lexicons.validate('app.bsky.graph.defs#listItemView', v)
73
+ }
74
+
75
+ export type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {})
76
+
77
+ /** A list of actors to apply an aggregate moderation action (mute/block) on */
78
+ export const MODLIST = 'app.bsky.graph.defs#modlist'
79
+
80
+ export interface ListViewerState {
81
+ muted?: boolean
82
+ [k: string]: unknown
83
+ }
84
+
85
+ export function isListViewerState(v: unknown): v is ListViewerState {
86
+ return (
87
+ isObj(v) &&
88
+ hasProp(v, '$type') &&
89
+ v.$type === 'app.bsky.graph.defs#listViewerState'
90
+ )
91
+ }
92
+
93
+ export function validateListViewerState(v: unknown): ValidationResult {
94
+ return lexicons.validate('app.bsky.graph.defs#listViewerState', v)
95
+ }