@atproto/api 0.2.11 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +2 -2
  2. package/dist/client/index.d.ts +10 -0
  3. package/dist/client/lexicons.d.ts +95 -0
  4. package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
  5. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
  6. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +10 -3
  7. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
  8. package/dist/client/types/app/bsky/feed/generator.d.ts +12 -0
  9. package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
  10. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
  11. package/dist/client/types/app/bsky/feed/getFeed.d.ts +22 -0
  12. package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +22 -0
  13. package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
  14. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -0
  15. package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
  16. package/dist/client/types/com/atproto/admin/disableAccountInvites.d.ts +17 -0
  17. package/dist/client/types/com/atproto/admin/enableAccountInvites.d.ts +17 -0
  18. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
  19. package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
  20. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +21 -0
  21. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
  22. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
  23. package/dist/index.js +386 -229
  24. package/dist/index.js.map +4 -4
  25. package/dist/src/client/index.d.ts +462 -0
  26. package/dist/src/client/lexicons.d.ts +2910 -0
  27. package/dist/src/client/schemas.d.ts +17 -0
  28. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  29. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  30. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  31. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  32. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  33. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  34. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  35. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  36. package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
  37. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
  38. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
  39. package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
  40. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  41. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  42. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  43. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  44. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  45. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  46. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  47. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  48. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  49. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  50. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  51. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  52. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  53. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  54. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  55. package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
  56. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
  57. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
  58. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
  59. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
  60. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
  61. package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
  62. package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
  63. package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
  64. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
  65. package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
  66. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
  67. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
  68. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
  69. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  70. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  71. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  72. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  73. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  74. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  75. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  76. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  77. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  78. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  79. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  80. package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
  81. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
  82. package/dist/src/client/types/app/bsky/like.d.ts +10 -0
  83. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
  84. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  85. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  86. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  87. package/dist/src/client/types/app/bsky/post.d.ts +23 -0
  88. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
  89. package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
  90. package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
  91. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  92. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  93. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  94. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  95. package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
  96. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  97. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  98. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  99. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  100. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  101. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  102. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  103. package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
  104. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
  105. package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
  106. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
  107. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
  108. package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
  109. package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
  110. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
  111. package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
  112. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  113. package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
  114. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  115. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  116. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  117. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  118. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  119. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  120. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  121. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  122. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
  123. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
  124. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
  125. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
  126. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
  127. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
  128. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
  129. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
  130. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
  131. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
  132. package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
  133. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  134. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  135. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  136. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  137. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  138. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  139. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  140. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  141. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
  142. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
  143. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
  144. package/dist/src/index.d.ts +4 -0
  145. package/dist/src/schemas.d.ts +19 -0
  146. package/dist/src/session.d.ts +42 -0
  147. package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
  148. package/dist/src/types/app/bsky/badge.d.ts +22 -0
  149. package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
  150. package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
  151. package/dist/src/types/app/bsky/declaration.d.ts +6 -0
  152. package/dist/src/types/app/bsky/follow.d.ts +9 -0
  153. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
  154. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
  155. package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
  156. package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
  157. package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
  158. package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
  159. package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
  160. package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
  161. package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
  162. package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
  163. package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
  164. package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
  165. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
  166. package/dist/src/types/app/bsky/invite.d.ts +10 -0
  167. package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
  168. package/dist/src/types/app/bsky/like.d.ts +10 -0
  169. package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
  170. package/dist/src/types/app/bsky/post.d.ts +23 -0
  171. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
  172. package/dist/src/types/app/bsky/profile.d.ts +11 -0
  173. package/dist/src/types/app/bsky/repost.d.ts +10 -0
  174. package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
  175. package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
  176. package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
  177. package/dist/src/types/com/atproto/createSession.d.ts +23 -0
  178. package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
  179. package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
  180. package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
  181. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
  182. package/dist/src/types/com/atproto/getSession.d.ts +17 -0
  183. package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
  184. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
  185. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
  186. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
  187. package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
  188. package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
  189. package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
  190. package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
  191. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
  192. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
  193. package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
  194. package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
  195. package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
  196. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
  197. package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
  198. package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
  199. package/dist/src/types/todo/adx/createSession.d.ts +22 -0
  200. package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
  201. package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
  202. package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
  203. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
  204. package/dist/src/types/todo/adx/getSession.d.ts +17 -0
  205. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
  206. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
  207. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
  208. package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
  209. package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
  210. package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
  211. package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
  212. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
  213. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
  214. package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
  215. package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
  216. package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
  217. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
  218. package/dist/src/types/todo/social/badge.d.ts +23 -0
  219. package/dist/src/types/todo/social/follow.d.ts +5 -0
  220. package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
  221. package/dist/src/types/todo/social/getFeed.d.ts +55 -0
  222. package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
  223. package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
  224. package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
  225. package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
  226. package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
  227. package/dist/src/types/todo/social/getProfile.d.ts +40 -0
  228. package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
  229. package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
  230. package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
  231. package/dist/src/types/todo/social/like.d.ts +5 -0
  232. package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
  233. package/dist/src/types/todo/social/post.d.ts +18 -0
  234. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
  235. package/dist/src/types/todo/social/profile.d.ts +10 -0
  236. package/dist/src/types/todo/social/repost.d.ts +5 -0
  237. package/dist/tsconfig.build.tsbuildinfo +1 -0
  238. package/package.json +6 -1
  239. package/src/client/index.ts +40 -0
  240. package/src/client/lexicons.ts +102 -0
  241. package/src/client/types/app/bsky/unspecced/getPopular.ts +1 -0
  242. package/src/client/types/com/atproto/admin/defs.ts +5 -0
  243. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +32 -0
  244. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +32 -0
  245. package/src/client/types/com/atproto/repo/rebaseRepo.ts +42 -0
  246. package/tsconfig.build.tsbuildinfo +1 -1
  247. package/dist/helpers/bsky.d.ts +0 -20
  248. package/dist/mixins/bsky.d.ts +0 -23
  249. package/dist/rich-text/sanitize.d.ts +0 -4
package/README.md CHANGED
@@ -176,7 +176,7 @@ const res1 = await agent.com.atproto.repo.createRecord(
176
176
  record: {
177
177
  $type: 'app.bsky.feed.post',
178
178
  text: 'Hello, world!',
179
- createdAt: (new Date()).toISOString()
179
+ createdAt: new Date().toISOString()
180
180
  }
181
181
  }
182
182
  )
@@ -184,7 +184,7 @@ const res2 = await agent.com.atproto.repo.listRecords({repo: alice.did, collecti
184
184
 
185
185
  const res3 = await agent.app.bsky.feed.post.create({repo: alice.did}, {
186
186
  text: 'Hello, world!',
187
- createdAt: (new Date()).toISOString()
187
+ createdAt: new Date().toISOString()
188
188
  })
189
189
  const res4 = await agent.app.bsky.feed.post.list({repo: alice.did})
190
190
  ```
@@ -1,5 +1,7 @@
1
1
  import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
2
3
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
4
+ import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
3
5
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
4
6
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
5
7
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
@@ -24,6 +26,7 @@ import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
24
26
  import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
25
27
  import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
26
28
  import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
29
+ import * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo';
27
30
  import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
28
31
  import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
29
32
  import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
@@ -80,7 +83,9 @@ import * as AppBskyNotificationListNotifications from './types/app/bsky/notifica
80
83
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
81
84
  import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
82
85
  export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
86
+ export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
83
87
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
88
+ export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
84
89
  export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
85
90
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
86
91
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
@@ -108,6 +113,7 @@ export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
108
113
  export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
109
114
  export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
110
115
  export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
116
+ export * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo';
111
117
  export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef';
112
118
  export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
113
119
  export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
@@ -177,6 +183,7 @@ export declare const COM_ATPROTO_ADMIN: {
177
183
  DefsTakedown: string;
178
184
  DefsFlag: string;
179
185
  DefsAcknowledge: string;
186
+ DefsEscalate: string;
180
187
  };
181
188
  export declare const COM_ATPROTO_MODERATION: {
182
189
  DefsReasonSpam: string;
@@ -218,7 +225,9 @@ export declare class AtprotoNS {
218
225
  export declare class AdminNS {
219
226
  _service: AtpServiceClient;
220
227
  constructor(service: AtpServiceClient);
228
+ disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>;
221
229
  disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
230
+ enableAccountInvites(data?: ComAtprotoAdminEnableAccountInvites.InputSchema, opts?: ComAtprotoAdminEnableAccountInvites.CallOptions): Promise<ComAtprotoAdminEnableAccountInvites.Response>;
222
231
  getInviteCodes(params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions): Promise<ComAtprotoAdminGetInviteCodes.Response>;
223
232
  getModerationAction(params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions): Promise<ComAtprotoAdminGetModerationAction.Response>;
224
233
  getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
@@ -259,6 +268,7 @@ export declare class RepoNS {
259
268
  getRecord(params?: ComAtprotoRepoGetRecord.QueryParams, opts?: ComAtprotoRepoGetRecord.CallOptions): Promise<ComAtprotoRepoGetRecord.Response>;
260
269
  listRecords(params?: ComAtprotoRepoListRecords.QueryParams, opts?: ComAtprotoRepoListRecords.CallOptions): Promise<ComAtprotoRepoListRecords.Response>;
261
270
  putRecord(data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions): Promise<ComAtprotoRepoPutRecord.Response>;
271
+ rebaseRepo(data?: ComAtprotoRepoRebaseRepo.InputSchema, opts?: ComAtprotoRepoRebaseRepo.CallOptions): Promise<ComAtprotoRepoRebaseRepo.Response>;
262
272
  uploadBlob(data?: ComAtprotoRepoUploadBlob.InputSchema, opts?: ComAtprotoRepoUploadBlob.CallOptions): Promise<ComAtprotoRepoUploadBlob.Response>;
263
273
  }
264
274
  export declare class ServerNS {
@@ -164,6 +164,10 @@ export declare const schemaDict: {
164
164
  type: string;
165
165
  description: string;
166
166
  };
167
+ escalate: {
168
+ type: string;
169
+ description: string;
170
+ };
167
171
  reportView: {
168
172
  type: string;
169
173
  required: string[];
@@ -266,6 +270,9 @@ export declare const schemaDict: {
266
270
  type: string;
267
271
  ref: string;
268
272
  };
273
+ invitesDisabled: {
274
+ type: string;
275
+ };
269
276
  };
270
277
  };
271
278
  repoViewDetail: {
@@ -315,6 +322,9 @@ export declare const schemaDict: {
315
322
  ref: string;
316
323
  };
317
324
  };
325
+ invitesDisabled: {
326
+ type: string;
327
+ };
318
328
  };
319
329
  };
320
330
  repoRef: {
@@ -497,6 +507,29 @@ export declare const schemaDict: {
497
507
  };
498
508
  };
499
509
  };
510
+ ComAtprotoAdminDisableAccountInvites: {
511
+ lexicon: number;
512
+ id: string;
513
+ defs: {
514
+ main: {
515
+ type: string;
516
+ description: string;
517
+ input: {
518
+ encoding: string;
519
+ schema: {
520
+ type: string;
521
+ required: string[];
522
+ properties: {
523
+ account: {
524
+ type: string;
525
+ format: string;
526
+ };
527
+ };
528
+ };
529
+ };
530
+ };
531
+ };
532
+ };
500
533
  ComAtprotoAdminDisableInviteCodes: {
501
534
  lexicon: number;
502
535
  id: string;
@@ -527,6 +560,29 @@ export declare const schemaDict: {
527
560
  };
528
561
  };
529
562
  };
563
+ ComAtprotoAdminEnableAccountInvites: {
564
+ lexicon: number;
565
+ id: string;
566
+ defs: {
567
+ main: {
568
+ type: string;
569
+ description: string;
570
+ input: {
571
+ encoding: string;
572
+ schema: {
573
+ type: string;
574
+ required: string[];
575
+ properties: {
576
+ account: {
577
+ type: string;
578
+ format: string;
579
+ };
580
+ };
581
+ };
582
+ };
583
+ };
584
+ };
585
+ };
530
586
  ComAtprotoAdminGetInviteCodes: {
531
587
  lexicon: number;
532
588
  id: string;
@@ -1798,6 +1854,38 @@ export declare const schemaDict: {
1798
1854
  };
1799
1855
  };
1800
1856
  };
1857
+ ComAtprotoRepoRebaseRepo: {
1858
+ lexicon: number;
1859
+ id: string;
1860
+ defs: {
1861
+ main: {
1862
+ type: string;
1863
+ description: string;
1864
+ input: {
1865
+ encoding: string;
1866
+ schema: {
1867
+ type: string;
1868
+ required: string[];
1869
+ properties: {
1870
+ repo: {
1871
+ type: string;
1872
+ format: string;
1873
+ description: string;
1874
+ };
1875
+ swapCommit: {
1876
+ type: string;
1877
+ format: string;
1878
+ description: string;
1879
+ };
1880
+ };
1881
+ };
1882
+ };
1883
+ errors: {
1884
+ name: string;
1885
+ }[];
1886
+ };
1887
+ };
1888
+ };
1801
1889
  ComAtprotoRepoStrongRef: {
1802
1890
  lexicon: number;
1803
1891
  id: string;
@@ -4785,6 +4873,10 @@ export declare const schemaDict: {
4785
4873
  parameters: {
4786
4874
  type: string;
4787
4875
  properties: {
4876
+ includeNsfw: {
4877
+ type: string;
4878
+ default: boolean;
4879
+ };
4788
4880
  limit: {
4789
4881
  type: string;
4790
4882
  minimum: number;
@@ -4823,7 +4915,9 @@ export declare const schemas: LexiconDoc[];
4823
4915
  export declare const lexicons: Lexicons;
4824
4916
  export declare const ids: {
4825
4917
  ComAtprotoAdminDefs: string;
4918
+ ComAtprotoAdminDisableAccountInvites: string;
4826
4919
  ComAtprotoAdminDisableInviteCodes: string;
4920
+ ComAtprotoAdminEnableAccountInvites: string;
4827
4921
  ComAtprotoAdminGetInviteCodes: string;
4828
4922
  ComAtprotoAdminGetModerationAction: string;
4829
4923
  ComAtprotoAdminGetModerationActions: string;
@@ -4851,6 +4945,7 @@ export declare const ids: {
4851
4945
  ComAtprotoRepoGetRecord: string;
4852
4946
  ComAtprotoRepoListRecords: string;
4853
4947
  ComAtprotoRepoPutRecord: string;
4948
+ ComAtprotoRepoRebaseRepo: string;
4854
4949
  ComAtprotoRepoStrongRef: string;
4855
4950
  ComAtprotoRepoUploadBlob: string;
4856
4951
  ComAtprotoServerCreateAccount: string;
@@ -0,0 +1,22 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyActorDefs from './defs';
3
+ export interface QueryParams {
4
+ term?: string;
5
+ limit?: number;
6
+ cursor?: string;
7
+ }
8
+ export declare type InputSchema = undefined;
9
+ export interface OutputSchema {
10
+ cursor?: string;
11
+ actors: AppBskyActorDefs.ProfileViewBasic[];
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,20 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyActorDefs from './defs';
3
+ export interface QueryParams {
4
+ term?: string;
5
+ limit?: number;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ actors: AppBskyActorDefs.WithInfo[];
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;
@@ -1,12 +1,19 @@
1
1
  import { Headers, XRPCError } from '@atproto/xrpc';
2
- import { BlobRef } from '@atproto/lexicon';
3
2
  export interface QueryParams {
4
3
  }
5
4
  export interface InputSchema {
6
5
  displayName?: string;
7
6
  description?: string | null;
8
- avatar?: BlobRef | null;
9
- banner?: BlobRef | null;
7
+ avatar?: {
8
+ cid: string;
9
+ mimeType: string;
10
+ [k: string]: unknown;
11
+ } | null;
12
+ banner?: {
13
+ cid: string;
14
+ mimeType: string;
15
+ [k: string]: unknown;
16
+ } | null;
10
17
  [k: string]: unknown;
11
18
  }
12
19
  export interface OutputSchema {
@@ -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,12 @@
1
+ import { ValidationResult, BlobRef } from '@atproto/lexicon';
2
+ import * as AppBskyRichtextFacet from '../richtext/facet';
3
+ export interface Record {
4
+ did: string;
5
+ description?: string;
6
+ descriptionFacets?: AppBskyRichtextFacet.Main[];
7
+ avatar?: BlobRef;
8
+ createdAt: string;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare function isRecord(v: unknown): v is Record;
12
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -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;
@@ -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;