@atproto/api 0.0.5 → 0.0.7

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 (257) hide show
  1. package/dist/client/index.d.ts +72 -44
  2. package/dist/client/lexicons.d.ts +1034 -398
  3. package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -2
  4. package/dist/client/types/app/bsky/actor/search.d.ts +1 -1
  5. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +1 -1
  6. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -1
  7. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +1 -8
  8. package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -0
  9. package/dist/client/types/app/bsky/notification/list.d.ts +1 -1
  10. package/dist/client/types/app/bsky/system/declRef.d.ts +1 -1
  11. package/dist/client/types/app/bsky/system/declaration.d.ts +1 -1
  12. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
  13. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
  14. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
  15. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
  16. package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
  17. package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -0
  18. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +49 -0
  19. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  20. package/dist/client/types/com/atproto/admin/record.d.ts +40 -0
  21. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  22. package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
  23. package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
  24. package/dist/client/types/com/atproto/admin/searchRepos.d.ts +22 -0
  25. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +28 -0
  26. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  27. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  28. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  29. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  30. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  31. package/dist/client/types/com/atproto/session/create.d.ts +5 -2
  32. package/dist/client/types/com/atproto/session/refresh.d.ts +4 -1
  33. package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
  34. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
  35. package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
  36. package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
  37. package/dist/index.js +2040 -988
  38. package/dist/index.js.map +4 -4
  39. package/dist/src/client/index.d.ts +474 -0
  40. package/dist/src/client/lexicons.d.ts +3036 -0
  41. package/dist/src/client/schemas.d.ts +17 -0
  42. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  43. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  44. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  45. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  46. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  47. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  48. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  49. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  50. package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +16 -0
  51. package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +22 -0
  52. package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +27 -0
  53. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  54. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  55. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  56. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  57. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  58. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  59. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  60. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  61. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  62. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  63. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  64. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  65. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  66. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +15 -0
  67. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  68. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  69. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  70. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  71. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  72. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  73. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  74. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  75. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  76. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  77. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  78. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  79. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  80. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  81. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  82. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  83. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  84. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  85. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  86. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  87. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  88. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  89. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  90. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  91. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  92. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  93. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  94. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  95. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  96. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  97. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  98. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  99. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  100. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  101. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  102. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  103. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  104. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  105. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  106. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  107. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  108. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  109. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  110. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  111. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  112. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  113. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  114. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  115. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  116. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  117. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  118. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  119. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  120. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  121. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  122. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  123. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  124. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  125. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  126. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  127. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  128. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  129. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  130. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  131. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  132. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  133. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  134. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  135. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  136. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  137. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  138. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  139. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  140. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  141. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  142. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  143. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  144. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  145. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  146. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  147. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  148. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  149. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  150. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  151. package/dist/src/client/types/com/atproto/session/create.d.ts +29 -0
  152. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  153. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  154. package/dist/src/client/types/com/atproto/session/refresh.d.ts +24 -0
  155. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  156. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  157. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  158. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  159. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  160. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  161. package/dist/src/index.d.ts +4 -0
  162. package/dist/src/schemas.d.ts +19 -0
  163. package/dist/src/session.d.ts +42 -0
  164. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  165. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  166. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  167. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  168. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  169. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  170. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  171. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  172. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  173. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  174. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  175. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  176. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  177. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  178. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  179. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  180. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  181. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  182. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  183. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  184. package/dist/src/types/app/bsky/like.d.ts +10 -0
  185. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  186. package/dist/src/types/app/bsky/post.d.ts +23 -0
  187. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  188. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  189. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  190. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  191. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  192. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  193. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  194. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  195. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  196. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  197. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  198. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  199. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  200. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  201. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  202. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  203. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  204. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  205. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  206. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  207. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  208. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  209. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  210. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  211. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  212. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  213. package/dist/tsconfig.build.tsbuildinfo +1 -0
  214. package/package.json +1 -1
  215. package/src/client/index.ts +236 -142
  216. package/src/client/lexicons.ts +1151 -443
  217. package/src/client/types/app/bsky/actor/getProfile.ts +0 -2
  218. package/src/client/types/app/bsky/actor/search.ts +1 -1
  219. package/src/client/types/app/bsky/actor/searchTypeahead.ts +1 -1
  220. package/src/client/types/app/bsky/actor/updateProfile.ts +0 -1
  221. package/src/client/types/app/bsky/feed/feedViewPost.ts +1 -19
  222. package/src/client/types/app/bsky/graph/getFollows.ts +1 -0
  223. package/src/client/types/app/bsky/notification/list.ts +1 -2
  224. package/src/client/types/app/bsky/system/declRef.ts +1 -4
  225. package/src/client/types/app/bsky/system/declaration.ts +1 -4
  226. package/src/client/types/com/atproto/admin/getModerationAction.ts +31 -0
  227. package/src/client/types/com/atproto/admin/getModerationActions.ts +38 -0
  228. package/src/client/types/com/atproto/admin/getModerationReport.ts +31 -0
  229. package/src/client/types/com/atproto/admin/getModerationReports.ts +39 -0
  230. package/src/client/types/com/atproto/admin/getRecord.ts +32 -0
  231. package/src/client/types/com/atproto/admin/getRepo.ts +31 -0
  232. package/src/client/types/com/atproto/admin/moderationAction.ts +99 -0
  233. package/src/client/types/com/atproto/admin/moderationReport.ts +64 -0
  234. package/src/client/types/com/atproto/admin/record.ts +89 -0
  235. package/src/client/types/com/atproto/admin/repo.ts +103 -0
  236. package/src/client/types/com/atproto/admin/resolveModerationReports.ts +37 -0
  237. package/src/client/types/com/atproto/admin/reverseModerationAction.ts +37 -0
  238. package/src/client/types/com/atproto/admin/searchRepos.ts +38 -0
  239. package/src/client/types/com/atproto/admin/takeModerationAction.ts +47 -0
  240. package/src/client/types/com/atproto/repo/recordRef.ts +25 -0
  241. package/src/client/types/com/atproto/repo/repoRef.ts +24 -0
  242. package/src/client/types/com/atproto/report/create.ts +54 -0
  243. package/src/client/types/com/atproto/report/reasonType.ts +16 -0
  244. package/src/client/types/com/atproto/report/subject.ts +66 -0
  245. package/src/client/types/com/atproto/session/create.ts +9 -1
  246. package/src/client/types/com/atproto/session/refresh.ts +7 -0
  247. package/src/client/types/com/atproto/sync/{updateRepo.ts → getCheckout.ts} +4 -3
  248. package/src/client/types/com/atproto/sync/getCommitPath.ts +39 -0
  249. package/src/client/types/com/atproto/sync/{getRoot.ts → getHead.ts} +0 -0
  250. package/src/client/types/com/atproto/sync/getRecord.ts +34 -0
  251. package/tsconfig.build.tsbuildinfo +1 -1
  252. package/src/client/types/app/bsky/actor/createScene.ts +0 -55
  253. package/src/client/types/app/bsky/feed/trend.ts +0 -26
  254. package/src/client/types/app/bsky/graph/getAssertions.ts +0 -85
  255. package/src/client/types/app/bsky/graph/getMembers.ts +0 -62
  256. package/src/client/types/app/bsky/graph/getMemberships.ts +0 -62
  257. package/src/client/types/app/bsky/system/actorScene.ts +0 -9
@@ -16,7 +16,6 @@ export interface OutputSchema {
16
16
  banner?: string;
17
17
  followersCount: number;
18
18
  followsCount: number;
19
- membersCount: number;
20
19
  postsCount: number;
21
20
  myState?: MyState;
22
21
  [k: string]: unknown;
@@ -32,7 +31,6 @@ export interface Response {
32
31
  export declare function toKnownErr(e: any): any;
33
32
  export interface MyState {
34
33
  follow?: string;
35
- member?: string;
36
34
  muted?: boolean;
37
35
  [k: string]: unknown;
38
36
  }
@@ -2,7 +2,7 @@ import { Headers } from '@atproto/xrpc';
2
2
  import { ValidationResult } from '@atproto/lexicon';
3
3
  import * as AppBskySystemDeclRef from '../system/declRef';
4
4
  export interface QueryParams {
5
- term: string;
5
+ term?: string;
6
6
  limit?: number;
7
7
  before?: string;
8
8
  }
@@ -2,7 +2,7 @@ import { Headers } from '@atproto/xrpc';
2
2
  import { ValidationResult } from '@atproto/lexicon';
3
3
  import * as AppBskySystemDeclRef from '../system/declRef';
4
4
  export interface QueryParams {
5
- term: string;
5
+ term?: string;
6
6
  limit?: number;
7
7
  }
8
8
  export declare type InputSchema = undefined;
@@ -2,7 +2,6 @@ import { Headers, XRPCError } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export interface InputSchema {
5
- did?: string;
6
5
  displayName?: string;
7
6
  description?: string;
8
7
  avatar?: {
@@ -4,7 +4,7 @@ import * as AppBskyActorRef from '../actor/ref';
4
4
  export interface Main {
5
5
  post: AppBskyFeedPost.View;
6
6
  reply?: ReplyRef;
7
- reason?: ReasonTrend | ReasonRepost | {
7
+ reason?: ReasonRepost | {
8
8
  $type: string;
9
9
  [k: string]: unknown;
10
10
  };
@@ -19,13 +19,6 @@ export interface ReplyRef {
19
19
  }
20
20
  export declare function isReplyRef(v: unknown): v is ReplyRef;
21
21
  export declare function validateReplyRef(v: unknown): ValidationResult;
22
- export interface ReasonTrend {
23
- by: AppBskyActorRef.WithInfo;
24
- indexedAt: string;
25
- [k: string]: unknown;
26
- }
27
- export declare function isReasonTrend(v: unknown): v is ReasonTrend;
28
- export declare function validateReasonTrend(v: unknown): ValidationResult;
29
22
  export interface ReasonRepost {
30
23
  by: AppBskyActorRef.WithInfo;
31
24
  indexedAt: string;
@@ -28,6 +28,7 @@ export interface Follow {
28
28
  declaration: AppBskySystemDeclRef.Main;
29
29
  handle: string;
30
30
  displayName?: string;
31
+ avatar?: string;
31
32
  createdAt?: string;
32
33
  indexedAt: string;
33
34
  [k: string]: unknown;
@@ -24,7 +24,7 @@ export interface Notification {
24
24
  uri: string;
25
25
  cid: string;
26
26
  author: AppBskyActorRef.WithInfo;
27
- reason: 'vote' | 'repost' | 'trend' | 'follow' | 'invite' | 'mention' | 'reply' | (string & {});
27
+ reason: 'vote' | 'repost' | 'follow' | 'invite' | 'mention' | 'reply' | (string & {});
28
28
  reasonSubject?: string;
29
29
  record: {};
30
30
  isRead: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
2
  export interface Main {
3
3
  cid: string;
4
- actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
4
+ actorType: 'app.bsky.system.actorUser' | (string & {});
5
5
  [k: string]: unknown;
6
6
  }
7
7
  export declare function isMain(v: unknown): v is Main;
@@ -1,6 +1,6 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
2
  export interface Record {
3
- actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
3
+ actorType: 'app.bsky.system.actorUser' | (string & {});
4
4
  [k: string]: unknown;
5
5
  }
6
6
  export declare function isRecord(v: unknown): v is Record;
@@ -0,0 +1,16 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
3
+ export interface QueryParams {
4
+ id: number;
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export declare type OutputSchema = ComAtprotoAdminModerationAction.ViewDetail;
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ data: OutputSchema;
15
+ }
16
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
3
+ export interface QueryParams {
4
+ subject?: string;
5
+ limit?: number;
6
+ before?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ actions: ComAtprotoAdminModerationAction.View[];
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,16 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminModerationReport from './moderationReport';
3
+ export interface QueryParams {
4
+ id: number;
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export declare type OutputSchema = ComAtprotoAdminModerationReport.ViewDetail;
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ data: OutputSchema;
15
+ }
16
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,23 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminModerationReport from './moderationReport';
3
+ export interface QueryParams {
4
+ subject?: string;
5
+ resolved?: boolean;
6
+ limit?: number;
7
+ before?: string;
8
+ }
9
+ export declare type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ cursor?: string;
12
+ reports: ComAtprotoAdminModerationReport.View[];
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,17 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminRecord from './record';
3
+ export interface QueryParams {
4
+ uri: string;
5
+ cid?: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export declare type OutputSchema = ComAtprotoAdminRecord.ViewDetail;
9
+ export interface CallOptions {
10
+ headers?: Headers;
11
+ }
12
+ export interface Response {
13
+ success: boolean;
14
+ headers: Headers;
15
+ data: OutputSchema;
16
+ }
17
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,16 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminRepo from './repo';
3
+ export interface QueryParams {
4
+ did: string;
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export declare type OutputSchema = ComAtprotoAdminRepo.ViewDetail;
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ data: OutputSchema;
15
+ }
16
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,49 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
3
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
4
+ import * as ComAtprotoAdminRepo from './repo';
5
+ import * as ComAtprotoAdminRecord from './record';
6
+ import * as ComAtprotoAdminModerationReport from './moderationReport';
7
+ export interface View {
8
+ id: number;
9
+ action: 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
10
+ subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
11
+ $type: string;
12
+ [k: string]: unknown;
13
+ };
14
+ reason: string;
15
+ createdBy: string;
16
+ createdAt: string;
17
+ reversal?: Reversal;
18
+ resolvedReportIds: number[];
19
+ [k: string]: unknown;
20
+ }
21
+ export declare function isView(v: unknown): v is View;
22
+ export declare function validateView(v: unknown): ValidationResult;
23
+ export interface ViewDetail {
24
+ id: number;
25
+ action: 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
26
+ subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
27
+ $type: string;
28
+ [k: string]: unknown;
29
+ };
30
+ reason: string;
31
+ createdBy: string;
32
+ createdAt: string;
33
+ reversal?: Reversal;
34
+ resolvedReports: ComAtprotoAdminModerationReport.View[];
35
+ [k: string]: unknown;
36
+ }
37
+ export declare function isViewDetail(v: unknown): v is ViewDetail;
38
+ export declare function validateViewDetail(v: unknown): ValidationResult;
39
+ export interface Reversal {
40
+ reason: string;
41
+ createdBy: string;
42
+ createdAt: string;
43
+ [k: string]: unknown;
44
+ }
45
+ export declare function isReversal(v: unknown): v is Reversal;
46
+ export declare function validateReversal(v: unknown): ValidationResult;
47
+ export declare const TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
48
+ export declare const FLAG = "com.atproto.admin.moderationAction#flag";
49
+ export declare const ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
@@ -0,0 +1,37 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoReportReasonType from '../report/reasonType';
3
+ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
4
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
5
+ import * as ComAtprotoAdminRepo from './repo';
6
+ import * as ComAtprotoAdminRecord from './record';
7
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
8
+ export interface View {
9
+ id: number;
10
+ reasonType: ComAtprotoReportReasonType.Main;
11
+ reason?: string;
12
+ subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
13
+ $type: string;
14
+ [k: string]: unknown;
15
+ };
16
+ reportedByDid: string;
17
+ createdAt: string;
18
+ resolvedByActionIds: number[];
19
+ [k: string]: unknown;
20
+ }
21
+ export declare function isView(v: unknown): v is View;
22
+ export declare function validateView(v: unknown): ValidationResult;
23
+ export interface ViewDetail {
24
+ id: number;
25
+ reasonType: ComAtprotoReportReasonType.Main;
26
+ reason?: string;
27
+ subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
28
+ $type: string;
29
+ [k: string]: unknown;
30
+ };
31
+ reportedByDid: string;
32
+ createdAt: string;
33
+ resolvedByActions: ComAtprotoAdminModerationAction.View[];
34
+ [k: string]: unknown;
35
+ }
36
+ export declare function isViewDetail(v: unknown): v is ViewDetail;
37
+ export declare function validateViewDetail(v: unknown): ValidationResult;
@@ -0,0 +1,40 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoAdminRepo from './repo';
3
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
4
+ import * as ComAtprotoAdminModerationReport from './moderationReport';
5
+ export interface View {
6
+ uri: string;
7
+ cid: string;
8
+ value: {};
9
+ indexedAt: string;
10
+ moderation: Moderation;
11
+ repo: ComAtprotoAdminRepo.View;
12
+ [k: string]: unknown;
13
+ }
14
+ export declare function isView(v: unknown): v is View;
15
+ export declare function validateView(v: unknown): ValidationResult;
16
+ export interface ViewDetail {
17
+ uri: string;
18
+ cid: string;
19
+ value: {};
20
+ indexedAt: string;
21
+ moderation: ModerationDetail;
22
+ repo: ComAtprotoAdminRepo.View;
23
+ [k: string]: unknown;
24
+ }
25
+ export declare function isViewDetail(v: unknown): v is ViewDetail;
26
+ export declare function validateViewDetail(v: unknown): ValidationResult;
27
+ export interface Moderation {
28
+ takedownId?: number;
29
+ [k: string]: unknown;
30
+ }
31
+ export declare function isModeration(v: unknown): v is Moderation;
32
+ export declare function validateModeration(v: unknown): ValidationResult;
33
+ export interface ModerationDetail {
34
+ actions: ComAtprotoAdminModerationAction.View[];
35
+ reports: ComAtprotoAdminModerationReport.View[];
36
+ takedownId?: number;
37
+ [k: string]: unknown;
38
+ }
39
+ export declare function isModerationDetail(v: unknown): v is ModerationDetail;
40
+ export declare function validateModerationDetail(v: unknown): ValidationResult;
@@ -0,0 +1,45 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
3
+ import * as ComAtprotoAdminModerationReport from './moderationReport';
4
+ export interface View {
5
+ did: string;
6
+ handle: string;
7
+ account?: Account;
8
+ relatedRecords: {}[];
9
+ indexedAt: string;
10
+ moderation: Moderation;
11
+ [k: string]: unknown;
12
+ }
13
+ export declare function isView(v: unknown): v is View;
14
+ export declare function validateView(v: unknown): ValidationResult;
15
+ export interface ViewDetail {
16
+ did: string;
17
+ handle: string;
18
+ account?: Account;
19
+ relatedRecords: {}[];
20
+ indexedAt: string;
21
+ moderation: ModerationDetail;
22
+ [k: string]: unknown;
23
+ }
24
+ export declare function isViewDetail(v: unknown): v is ViewDetail;
25
+ export declare function validateViewDetail(v: unknown): ValidationResult;
26
+ export interface Account {
27
+ email: string;
28
+ [k: string]: unknown;
29
+ }
30
+ export declare function isAccount(v: unknown): v is Account;
31
+ export declare function validateAccount(v: unknown): ValidationResult;
32
+ export interface Moderation {
33
+ takedownId?: number;
34
+ [k: string]: unknown;
35
+ }
36
+ export declare function isModeration(v: unknown): v is Moderation;
37
+ export declare function validateModeration(v: unknown): ValidationResult;
38
+ export interface ModerationDetail {
39
+ actions: ComAtprotoAdminModerationAction.View[];
40
+ reports: ComAtprotoAdminModerationReport.View[];
41
+ takedownId?: number;
42
+ [k: string]: unknown;
43
+ }
44
+ export declare function isModerationDetail(v: unknown): v is ModerationDetail;
45
+ export declare function validateModerationDetail(v: unknown): ValidationResult;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
3
+ export interface QueryParams {
4
+ }
5
+ export interface InputSchema {
6
+ actionId: number;
7
+ reportIds: number[];
8
+ createdBy: string;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare type OutputSchema = ComAtprotoAdminModerationAction.View;
12
+ export interface CallOptions {
13
+ headers?: Headers;
14
+ qp?: QueryParams;
15
+ encoding: 'application/json';
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 ComAtprotoAdminModerationAction from './moderationAction';
3
+ export interface QueryParams {
4
+ }
5
+ export interface InputSchema {
6
+ id: number;
7
+ reason: string;
8
+ createdBy: string;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare type OutputSchema = ComAtprotoAdminModerationAction.View;
12
+ export interface CallOptions {
13
+ headers?: Headers;
14
+ qp?: QueryParams;
15
+ encoding: 'application/json';
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 ComAtprotoAdminRepo from './repo';
3
+ export interface QueryParams {
4
+ term?: string;
5
+ limit?: number;
6
+ before?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ repos: ComAtprotoAdminRepo.View[];
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,28 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
3
+ import * as ComAtprotoRepoRecordRef from '../repo/recordRef';
4
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
5
+ export interface QueryParams {
6
+ }
7
+ export interface InputSchema {
8
+ action: 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
9
+ subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoRecordRef.Main | {
10
+ $type: string;
11
+ [k: string]: unknown;
12
+ };
13
+ reason: string;
14
+ createdBy: string;
15
+ [k: string]: unknown;
16
+ }
17
+ export declare type OutputSchema = ComAtprotoAdminModerationAction.View;
18
+ export interface CallOptions {
19
+ headers?: Headers;
20
+ qp?: QueryParams;
21
+ encoding: 'application/json';
22
+ }
23
+ export interface Response {
24
+ success: boolean;
25
+ headers: Headers;
26
+ data: OutputSchema;
27
+ }
28
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,8 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface Main {
3
+ uri: string;
4
+ cid?: string;
5
+ [k: string]: unknown;
6
+ }
7
+ export declare function isMain(v: unknown): v is Main;
8
+ export declare function validateMain(v: unknown): ValidationResult;
@@ -0,0 +1,7 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface Main {
3
+ did: string;
4
+ [k: string]: unknown;
5
+ }
6
+ export declare function isMain(v: unknown): v is Main;
7
+ export declare function validateMain(v: unknown): ValidationResult;
@@ -0,0 +1,39 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoReportReasonType from './reasonType';
3
+ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
4
+ import * as ComAtprotoRepoRecordRef from '../repo/recordRef';
5
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
6
+ export interface QueryParams {
7
+ }
8
+ export interface InputSchema {
9
+ reasonType: ComAtprotoReportReasonType.Main;
10
+ reason?: string;
11
+ subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoRecordRef.Main | {
12
+ $type: string;
13
+ [k: string]: unknown;
14
+ };
15
+ [k: string]: unknown;
16
+ }
17
+ export interface OutputSchema {
18
+ id: number;
19
+ reasonType: ComAtprotoReportReasonType.Main;
20
+ reason?: string;
21
+ subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
22
+ $type: string;
23
+ [k: string]: unknown;
24
+ };
25
+ reportedByDid: string;
26
+ createdAt: string;
27
+ [k: string]: unknown;
28
+ }
29
+ export interface CallOptions {
30
+ headers?: Headers;
31
+ qp?: QueryParams;
32
+ encoding: 'application/json';
33
+ }
34
+ export interface Response {
35
+ success: boolean;
36
+ headers: Headers;
37
+ data: OutputSchema;
38
+ }
39
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,3 @@
1
+ export declare type Main = 'com.atproto.report.reason#spam' | 'com.atproto.report.reason#other' | (string & {});
2
+ export declare const SPAM = "com.atproto.report.reasonType#spam";
3
+ export declare const OTHER = "com.atproto.report.reasonType#other";
@@ -0,0 +1,23 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface Repo {
3
+ did: string;
4
+ [k: string]: unknown;
5
+ }
6
+ export declare function isRepo(v: unknown): v is Repo;
7
+ export declare function validateRepo(v: unknown): ValidationResult;
8
+ export interface Record {
9
+ did: string;
10
+ collection: string;
11
+ rkey: string;
12
+ cid?: string;
13
+ [k: string]: unknown;
14
+ }
15
+ export declare function isRecord(v: unknown): v is Record;
16
+ export declare function validateRecord(v: unknown): ValidationResult;
17
+ export interface RecordRef {
18
+ uri: string;
19
+ cid: string;
20
+ [k: string]: unknown;
21
+ }
22
+ export declare function isRecordRef(v: unknown): v is RecordRef;
23
+ export declare function validateRecordRef(v: unknown): ValidationResult;
@@ -1,8 +1,8 @@
1
- import { Headers } from '@atproto/xrpc';
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export interface InputSchema {
5
- handle: string;
5
+ identifier?: string;
6
6
  password: string;
7
7
  [k: string]: unknown;
8
8
  }
@@ -23,4 +23,7 @@ export interface Response {
23
23
  headers: Headers;
24
24
  data: OutputSchema;
25
25
  }
26
+ export declare class AccountTakedownError extends XRPCError {
27
+ constructor(src: XRPCError);
28
+ }
26
29
  export declare function toKnownErr(e: any): any;
@@ -1,4 +1,4 @@
1
- import { Headers } from '@atproto/xrpc';
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export declare type InputSchema = undefined;
@@ -18,4 +18,7 @@ export interface Response {
18
18
  headers: Headers;
19
19
  data: OutputSchema;
20
20
  }
21
+ export declare class AccountTakedownError extends XRPCError {
22
+ constructor(src: XRPCError);
23
+ }
21
24
  export declare function toKnownErr(e: any): any;
@@ -0,0 +1,15 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ did: string;
4
+ commit?: string;
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export interface CallOptions {
8
+ headers?: Headers;
9
+ }
10
+ export interface Response {
11
+ success: boolean;
12
+ headers: Headers;
13
+ data: Uint8Array;
14
+ }
15
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,20 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ export interface QueryParams {
3
+ did: string;
4
+ latest?: string;
5
+ earliest?: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ commits: string[];
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;