@atproto/api 0.20.0-next.0 → 0.20.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 (403) hide show
  1. package/CHANGELOG.md +26 -10
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +4 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +1030 -16
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +631 -7
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  13. package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
  14. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  16. package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
  17. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/group/addMembers.js +3 -3
  19. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  20. package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
  21. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  22. package/dist/client/types/chat/bsky/group/createGroup.js +3 -3
  23. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  24. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
  25. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
  26. package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
  27. package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
  28. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
  29. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  30. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  31. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
  32. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  33. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +63 -0
  34. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  35. package/dist/rich-text/detection.js +1 -1
  36. package/dist/rich-text/detection.js.map +1 -1
  37. package/jest.config.cjs +9 -2
  38. package/package.json +9 -8
  39. package/src/rich-text/detection.ts +1 -1
  40. package/tsconfig.build.tsbuildinfo +1 -1
  41. package/src/client/index.ts +0 -6408
  42. package/src/client/lexicons.ts +0 -25182
  43. package/src/client/types/app/bsky/actor/defs.ts +0 -716
  44. package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
  45. package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
  46. package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
  47. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
  48. package/src/client/types/app/bsky/actor/profile.ts +0 -52
  49. package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
  50. package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
  51. package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
  52. package/src/client/types/app/bsky/actor/status.ts +0 -46
  53. package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
  54. package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
  55. package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
  56. package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
  57. package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
  58. package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
  59. package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
  60. package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
  61. package/src/client/types/app/bsky/contact/defs.ts +0 -71
  62. package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
  63. package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
  64. package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
  65. package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
  66. package/src/client/types/app/bsky/contact/removeData.ts +0 -56
  67. package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
  68. package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
  69. package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
  70. package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
  71. package/src/client/types/app/bsky/draft/defs.ts +0 -212
  72. package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
  73. package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
  74. package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
  75. package/src/client/types/app/bsky/embed/defs.ts +0 -32
  76. package/src/client/types/app/bsky/embed/external.ts +0 -84
  77. package/src/client/types/app/bsky/embed/images.ts +0 -86
  78. package/src/client/types/app/bsky/embed/record.ts +0 -146
  79. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
  80. package/src/client/types/app/bsky/embed/video.ts +0 -75
  81. package/src/client/types/app/bsky/feed/defs.ts +0 -428
  82. package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
  83. package/src/client/types/app/bsky/feed/generator.ts +0 -51
  84. package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
  85. package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
  86. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
  87. package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
  88. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
  89. package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
  90. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
  91. package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
  92. package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
  93. package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
  94. package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
  95. package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
  96. package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
  97. package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
  98. package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
  99. package/src/client/types/app/bsky/feed/like.ts +0 -40
  100. package/src/client/types/app/bsky/feed/post.ts +0 -117
  101. package/src/client/types/app/bsky/feed/postgate.ts +0 -58
  102. package/src/client/types/app/bsky/feed/repost.ts +0 -40
  103. package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
  104. package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
  105. package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
  106. package/src/client/types/app/bsky/graph/block.ts +0 -39
  107. package/src/client/types/app/bsky/graph/defs.ts +0 -206
  108. package/src/client/types/app/bsky/graph/follow.ts +0 -40
  109. package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
  110. package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
  111. package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
  112. package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
  113. package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
  114. package/src/client/types/app/bsky/graph/getList.ts +0 -46
  115. package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
  116. package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
  117. package/src/client/types/app/bsky/graph/getLists.ts +0 -47
  118. package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
  119. package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
  120. package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
  121. package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
  122. package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
  123. package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
  124. package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
  125. package/src/client/types/app/bsky/graph/list.ts +0 -47
  126. package/src/client/types/app/bsky/graph/listblock.ts +0 -39
  127. package/src/client/types/app/bsky/graph/listitem.ts +0 -41
  128. package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
  129. package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
  130. package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
  131. package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
  132. package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
  133. package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
  134. package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
  135. package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
  136. package/src/client/types/app/bsky/graph/verification.ts +0 -44
  137. package/src/client/types/app/bsky/labeler/defs.ts +0 -100
  138. package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
  139. package/src/client/types/app/bsky/labeler/service.ts +0 -48
  140. package/src/client/types/app/bsky/notification/declaration.ts +0 -38
  141. package/src/client/types/app/bsky/notification/defs.ts +0 -142
  142. package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
  143. package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
  144. package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
  145. package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
  146. package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
  147. package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
  148. package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
  149. package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
  150. package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
  151. package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
  152. package/src/client/types/app/bsky/richtext/facet.ts +0 -97
  153. package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
  154. package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
  155. package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
  156. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
  157. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
  158. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
  159. package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
  160. package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
  161. package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
  162. package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
  163. package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
  164. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
  165. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
  166. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
  167. package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
  168. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
  169. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
  170. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
  171. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
  172. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
  173. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
  174. package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
  175. package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
  176. package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
  177. package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
  178. package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
  179. package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
  180. package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
  181. package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
  182. package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
  183. package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
  184. package/src/client/types/app/bsky/video/defs.ts +0 -38
  185. package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
  186. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
  187. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
  188. package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
  189. package/src/client/types/chat/bsky/actor/defs.ts +0 -96
  190. package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
  191. package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
  192. package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
  193. package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
  194. package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
  195. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
  196. package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
  197. package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
  198. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
  199. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
  200. package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
  201. package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
  202. package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
  203. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
  204. package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
  205. package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
  206. package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
  207. package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
  208. package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
  209. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
  210. package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
  211. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
  212. package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
  213. package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
  214. package/src/client/types/chat/bsky/group/addMembers.ts +0 -115
  215. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
  216. package/src/client/types/chat/bsky/group/createGroup.ts +0 -85
  217. package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
  218. package/src/client/types/chat/bsky/group/defs.ts +0 -75
  219. package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
  220. package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
  221. package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
  222. package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
  223. package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
  224. package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
  225. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
  226. package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
  227. package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
  228. package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
  229. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -50
  230. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -38
  231. package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
  232. package/src/client/types/com/atproto/admin/defs.ts +0 -106
  233. package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
  234. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
  235. package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
  236. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
  237. package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
  238. package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
  239. package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
  240. package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
  241. package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
  242. package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
  243. package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
  244. package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
  245. package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
  246. package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
  247. package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
  248. package/src/client/types/com/atproto/identity/defs.ts +0 -34
  249. package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
  250. package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
  251. package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
  252. package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
  253. package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
  254. package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
  255. package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
  256. package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
  257. package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
  258. package/src/client/types/com/atproto/label/defs.ts +0 -143
  259. package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
  260. package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
  261. package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
  262. package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
  263. package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
  264. package/src/client/types/com/atproto/moderation/defs.ts +0 -83
  265. package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
  266. package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
  267. package/src/client/types/com/atproto/repo/defs.ts +0 -31
  268. package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
  269. package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
  270. package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
  271. package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
  272. package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
  273. package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
  274. package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
  275. package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
  276. package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
  277. package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
  278. package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
  279. package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
  280. package/src/client/types/com/atproto/server/createAccount.ts +0 -115
  281. package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
  282. package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
  283. package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
  284. package/src/client/types/com/atproto/server/createSession.ts +0 -76
  285. package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
  286. package/src/client/types/com/atproto/server/defs.ts +0 -52
  287. package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
  288. package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
  289. package/src/client/types/com/atproto/server/describeServer.ts +0 -77
  290. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
  291. package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
  292. package/src/client/types/com/atproto/server/getSession.ts +0 -46
  293. package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
  294. package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
  295. package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
  296. package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
  297. package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
  298. package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
  299. package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
  300. package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
  301. package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
  302. package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
  303. package/src/client/types/com/atproto/sync/defs.ts +0 -23
  304. package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
  305. package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
  306. package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
  307. package/src/client/types/com/atproto/sync/getHead.ts +0 -51
  308. package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
  309. package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
  310. package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
  311. package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
  312. package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
  313. package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
  314. package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
  315. package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
  316. package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
  317. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
  318. package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
  319. package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
  320. package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
  321. package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
  322. package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
  323. package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
  324. package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
  325. package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
  326. package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
  327. package/src/client/types/com/germnetwork/declaration.ts +0 -63
  328. package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
  329. package/src/client/types/tools/ozone/communication/defs.ts +0 -43
  330. package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
  331. package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
  332. package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
  333. package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
  334. package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
  335. package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
  336. package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
  337. package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
  338. package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
  339. package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
  340. package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
  341. package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
  342. package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
  343. package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
  344. package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
  345. package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
  346. package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
  347. package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
  348. package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
  349. package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
  350. package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
  351. package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
  352. package/src/client/types/tools/ozone/queue/defs.ts +0 -99
  353. package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
  354. package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
  355. package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
  356. package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
  357. package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
  358. package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
  359. package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
  360. package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
  361. package/src/client/types/tools/ozone/report/defs.ts +0 -466
  362. package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
  363. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
  364. package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
  365. package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
  366. package/src/client/types/tools/ozone/report/getReport.ts +0 -49
  367. package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
  368. package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
  369. package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
  370. package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
  371. package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
  372. package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
  373. package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
  374. package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
  375. package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
  376. package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
  377. package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
  378. package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
  379. package/src/client/types/tools/ozone/set/addValues.ts +0 -41
  380. package/src/client/types/tools/ozone/set/defs.ts +0 -50
  381. package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
  382. package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
  383. package/src/client/types/tools/ozone/set/getValues.ts +0 -55
  384. package/src/client/types/tools/ozone/set/querySets.ts +0 -47
  385. package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
  386. package/src/client/types/tools/ozone/setting/defs.ts +0 -44
  387. package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
  388. package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
  389. package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
  390. package/src/client/types/tools/ozone/signature/defs.ts +0 -31
  391. package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
  392. package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
  393. package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
  394. package/src/client/types/tools/ozone/team/addMember.ts +0 -59
  395. package/src/client/types/tools/ozone/team/defs.ts +0 -51
  396. package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
  397. package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
  398. package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
  399. package/src/client/types/tools/ozone/verification/defs.ts +0 -59
  400. package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
  401. package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
  402. package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
  403. package/src/client/util.ts +0 -82
@@ -1,70 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.getRepo'
17
-
18
- export type QueryParams = {
19
- /** The DID of the repo. */
20
- did: string
21
- /** The revision ('rev') of the repo to create a diff from. */
22
- since?: string
23
- }
24
- export type InputSchema = undefined
25
-
26
- export interface CallOptions {
27
- signal?: AbortSignal
28
- headers?: HeadersMap
29
- }
30
-
31
- export interface Response {
32
- success: boolean
33
- headers: HeadersMap
34
- data: Uint8Array
35
- }
36
-
37
- export class RepoNotFoundError extends XRPCError {
38
- constructor(src: XRPCError) {
39
- super(src.status, src.error, src.message, src.headers, { cause: src })
40
- }
41
- }
42
-
43
- export class RepoTakendownError extends XRPCError {
44
- constructor(src: XRPCError) {
45
- super(src.status, src.error, src.message, src.headers, { cause: src })
46
- }
47
- }
48
-
49
- export class RepoSuspendedError extends XRPCError {
50
- constructor(src: XRPCError) {
51
- super(src.status, src.error, src.message, src.headers, { cause: src })
52
- }
53
- }
54
-
55
- export class RepoDeactivatedError extends XRPCError {
56
- constructor(src: XRPCError) {
57
- super(src.status, src.error, src.message, src.headers, { cause: src })
58
- }
59
- }
60
-
61
- export function toKnownErr(e: any) {
62
- if (e instanceof XRPCError) {
63
- if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
64
- if (e.error === 'RepoTakendown') return new RepoTakendownError(e)
65
- if (e.error === 'RepoSuspended') return new RepoSuspendedError(e)
66
- if (e.error === 'RepoDeactivated') return new RepoDeactivatedError(e)
67
- }
68
-
69
- return e
70
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.getRepoStatus'
17
-
18
- export type QueryParams = {
19
- /** The DID of the repo. */
20
- did: string
21
- }
22
- export type InputSchema = undefined
23
-
24
- export interface OutputSchema {
25
- did: string
26
- active: boolean
27
- /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
28
- status?:
29
- | 'takendown'
30
- | 'suspended'
31
- | 'deleted'
32
- | 'deactivated'
33
- | 'desynchronized'
34
- | 'throttled'
35
- | (string & {})
36
- /** Optional field, the current rev of the repo, if active=true */
37
- rev?: string
38
- }
39
-
40
- export interface CallOptions {
41
- signal?: AbortSignal
42
- headers?: HeadersMap
43
- }
44
-
45
- export interface Response {
46
- success: boolean
47
- headers: HeadersMap
48
- data: OutputSchema
49
- }
50
-
51
- export class RepoNotFoundError extends XRPCError {
52
- constructor(src: XRPCError) {
53
- super(src.status, src.error, src.message, src.headers, { cause: src })
54
- }
55
- }
56
-
57
- export function toKnownErr(e: any) {
58
- if (e instanceof XRPCError) {
59
- if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
60
- }
61
-
62
- return e
63
- }
@@ -1,77 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.listBlobs'
17
-
18
- export type QueryParams = {
19
- /** The DID of the repo. */
20
- did: string
21
- /** Optional revision of the repo to list blobs since. */
22
- since?: string
23
- limit?: number
24
- cursor?: string
25
- }
26
- export type InputSchema = undefined
27
-
28
- export interface OutputSchema {
29
- cursor?: string
30
- cids: string[]
31
- }
32
-
33
- export interface CallOptions {
34
- signal?: AbortSignal
35
- headers?: HeadersMap
36
- }
37
-
38
- export interface Response {
39
- success: boolean
40
- headers: HeadersMap
41
- data: OutputSchema
42
- }
43
-
44
- export class RepoNotFoundError extends XRPCError {
45
- constructor(src: XRPCError) {
46
- super(src.status, src.error, src.message, src.headers, { cause: src })
47
- }
48
- }
49
-
50
- export class RepoTakendownError extends XRPCError {
51
- constructor(src: XRPCError) {
52
- super(src.status, src.error, src.message, src.headers, { cause: src })
53
- }
54
- }
55
-
56
- export class RepoSuspendedError extends XRPCError {
57
- constructor(src: XRPCError) {
58
- super(src.status, src.error, src.message, src.headers, { cause: src })
59
- }
60
- }
61
-
62
- export class RepoDeactivatedError extends XRPCError {
63
- constructor(src: XRPCError) {
64
- super(src.status, src.error, src.message, src.headers, { cause: src })
65
- }
66
- }
67
-
68
- export function toKnownErr(e: any) {
69
- if (e instanceof XRPCError) {
70
- if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
71
- if (e.error === 'RepoTakendown') return new RepoTakendownError(e)
72
- if (e.error === 'RepoSuspended') return new RepoSuspendedError(e)
73
- if (e.error === 'RepoDeactivated') return new RepoDeactivatedError(e)
74
- }
75
-
76
- return e
77
- }
@@ -1,64 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
- import type * as ComAtprotoSyncDefs from './defs.js'
14
-
15
- const is$typed = _is$typed,
16
- validate = _validate
17
- const id = 'com.atproto.sync.listHosts'
18
-
19
- export type QueryParams = {
20
- limit?: number
21
- cursor?: string
22
- }
23
- export type InputSchema = undefined
24
-
25
- export interface OutputSchema {
26
- cursor?: string
27
- /** Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. */
28
- hosts: Host[]
29
- }
30
-
31
- export interface CallOptions {
32
- signal?: AbortSignal
33
- headers?: HeadersMap
34
- }
35
-
36
- export interface Response {
37
- success: boolean
38
- headers: HeadersMap
39
- data: OutputSchema
40
- }
41
-
42
- export function toKnownErr(e: any) {
43
- return e
44
- }
45
-
46
- export interface Host {
47
- $type?: 'com.atproto.sync.listHosts#host'
48
- /** hostname of server; not a URL (no scheme) */
49
- hostname: string
50
- /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
51
- seq?: number
52
- accountCount?: number
53
- status?: ComAtprotoSyncDefs.HostStatus
54
- }
55
-
56
- const hashHost = 'host'
57
-
58
- export function isHost<V>(v: V) {
59
- return is$typed(v, id, hashHost)
60
- }
61
-
62
- export function validateHost<V>(v: V) {
63
- return validate<Host & V>(v, id, hashHost)
64
- }
@@ -1,70 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.listRepos'
17
-
18
- export type QueryParams = {
19
- limit?: number
20
- cursor?: string
21
- }
22
- export type InputSchema = undefined
23
-
24
- export interface OutputSchema {
25
- cursor?: string
26
- repos: Repo[]
27
- }
28
-
29
- export interface CallOptions {
30
- signal?: AbortSignal
31
- headers?: HeadersMap
32
- }
33
-
34
- export interface Response {
35
- success: boolean
36
- headers: HeadersMap
37
- data: OutputSchema
38
- }
39
-
40
- export function toKnownErr(e: any) {
41
- return e
42
- }
43
-
44
- export interface Repo {
45
- $type?: 'com.atproto.sync.listRepos#repo'
46
- did: string
47
- /** Current repo commit CID */
48
- head: string
49
- rev: string
50
- active?: boolean
51
- /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
52
- status?:
53
- | 'takendown'
54
- | 'suspended'
55
- | 'deleted'
56
- | 'deactivated'
57
- | 'desynchronized'
58
- | 'throttled'
59
- | (string & {})
60
- }
61
-
62
- const hashRepo = 'repo'
63
-
64
- export function isRepo<V>(v: V) {
65
- return is$typed(v, id, hashRepo)
66
- }
67
-
68
- export function validateRepo<V>(v: V) {
69
- return validate<Repo & V>(v, id, hashRepo)
70
- }
@@ -1,59 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.listReposByCollection'
17
-
18
- export type QueryParams = {
19
- collection: string
20
- /** Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. */
21
- limit?: number
22
- cursor?: string
23
- }
24
- export type InputSchema = undefined
25
-
26
- export interface OutputSchema {
27
- cursor?: string
28
- repos: Repo[]
29
- }
30
-
31
- export interface CallOptions {
32
- signal?: AbortSignal
33
- headers?: HeadersMap
34
- }
35
-
36
- export interface Response {
37
- success: boolean
38
- headers: HeadersMap
39
- data: OutputSchema
40
- }
41
-
42
- export function toKnownErr(e: any) {
43
- return e
44
- }
45
-
46
- export interface Repo {
47
- $type?: 'com.atproto.sync.listReposByCollection#repo'
48
- did: string
49
- }
50
-
51
- const hashRepo = 'repo'
52
-
53
- export function isRepo<V>(v: V) {
54
- return is$typed(v, id, hashRepo)
55
- }
56
-
57
- export function validateRepo<V>(v: V) {
58
- return validate<Repo & V>(v, id, hashRepo)
59
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.notifyOfUpdate'
17
-
18
- export type QueryParams = {}
19
-
20
- export interface InputSchema {
21
- /** Hostname of the current service (usually a PDS) that is notifying of update. */
22
- hostname: string
23
- }
24
-
25
- export interface CallOptions {
26
- signal?: AbortSignal
27
- headers?: HeadersMap
28
- qp?: QueryParams
29
- encoding?: 'application/json'
30
- }
31
-
32
- export interface Response {
33
- success: boolean
34
- headers: HeadersMap
35
- }
36
-
37
- export function toKnownErr(e: any) {
38
- return e
39
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.requestCrawl'
17
-
18
- export type QueryParams = {}
19
-
20
- export interface InputSchema {
21
- /** Hostname of the current service (eg, PDS) that is requesting to be crawled. */
22
- hostname: string
23
- }
24
-
25
- export interface CallOptions {
26
- signal?: AbortSignal
27
- headers?: HeadersMap
28
- qp?: QueryParams
29
- encoding?: 'application/json'
30
- }
31
-
32
- export interface Response {
33
- success: boolean
34
- headers: HeadersMap
35
- }
36
-
37
- export class HostBannedError extends XRPCError {
38
- constructor(src: XRPCError) {
39
- super(src.status, src.error, src.message, src.headers, { cause: src })
40
- }
41
- }
42
-
43
- export function toKnownErr(e: any) {
44
- if (e instanceof XRPCError) {
45
- if (e.error === 'HostBanned') return new HostBannedError(e)
46
- }
47
-
48
- return e
49
- }
@@ -1,164 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.sync.subscribeRepos'
17
-
18
- /** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
19
- export interface Commit {
20
- $type?: 'com.atproto.sync.subscribeRepos#commit'
21
- /** The stream sequence number of this message. */
22
- seq: number
23
- /** DEPRECATED -- unused */
24
- rebase: boolean
25
- /** DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
26
- tooBig: boolean
27
- /** The repo this event comes from. Note that all other message types name this field 'did'. */
28
- repo: string
29
- /** Repo commit object CID. */
30
- commit: CID
31
- /** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
32
- rev: string
33
- /** The rev of the last emitted commit from this repo (if any). */
34
- since: string | null
35
- /** CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. */
36
- blocks: Uint8Array
37
- ops: RepoOp[]
38
- blobs: CID[]
39
- /** The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose. */
40
- prevData?: CID
41
- /** Timestamp of when this message was originally broadcast. */
42
- time: string
43
- }
44
-
45
- const hashCommit = 'commit'
46
-
47
- export function isCommit<V>(v: V) {
48
- return is$typed(v, id, hashCommit)
49
- }
50
-
51
- export function validateCommit<V>(v: V) {
52
- return validate<Commit & V>(v, id, hashCommit)
53
- }
54
-
55
- /** Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. */
56
- export interface Sync {
57
- $type?: 'com.atproto.sync.subscribeRepos#sync'
58
- /** The stream sequence number of this message. */
59
- seq: number
60
- /** The account this repo event corresponds to. Must match that in the commit object. */
61
- did: string
62
- /** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
63
- blocks: Uint8Array
64
- /** The rev of the commit. This value must match that in the commit object. */
65
- rev: string
66
- /** Timestamp of when this message was originally broadcast. */
67
- time: string
68
- }
69
-
70
- const hashSync = 'sync'
71
-
72
- export function isSync<V>(v: V) {
73
- return is$typed(v, id, hashSync)
74
- }
75
-
76
- export function validateSync<V>(v: V) {
77
- return validate<Sync & V>(v, id, hashSync)
78
- }
79
-
80
- /** Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. */
81
- export interface Identity {
82
- $type?: 'com.atproto.sync.subscribeRepos#identity'
83
- seq: number
84
- did: string
85
- time: string
86
- /** The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. */
87
- handle?: string
88
- }
89
-
90
- const hashIdentity = 'identity'
91
-
92
- export function isIdentity<V>(v: V) {
93
- return is$typed(v, id, hashIdentity)
94
- }
95
-
96
- export function validateIdentity<V>(v: V) {
97
- return validate<Identity & V>(v, id, hashIdentity)
98
- }
99
-
100
- /** Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. */
101
- export interface Account {
102
- $type?: 'com.atproto.sync.subscribeRepos#account'
103
- seq: number
104
- did: string
105
- time: string
106
- /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
107
- active: boolean
108
- /** If active=false, this optional field indicates a reason for why the account is not active. */
109
- status?:
110
- | 'takendown'
111
- | 'suspended'
112
- | 'deleted'
113
- | 'deactivated'
114
- | 'desynchronized'
115
- | 'throttled'
116
- | (string & {})
117
- }
118
-
119
- const hashAccount = 'account'
120
-
121
- export function isAccount<V>(v: V) {
122
- return is$typed(v, id, hashAccount)
123
- }
124
-
125
- export function validateAccount<V>(v: V) {
126
- return validate<Account & V>(v, id, hashAccount)
127
- }
128
-
129
- export interface Info {
130
- $type?: 'com.atproto.sync.subscribeRepos#info'
131
- name: 'OutdatedCursor' | (string & {})
132
- message?: string
133
- }
134
-
135
- const hashInfo = 'info'
136
-
137
- export function isInfo<V>(v: V) {
138
- return is$typed(v, id, hashInfo)
139
- }
140
-
141
- export function validateInfo<V>(v: V) {
142
- return validate<Info & V>(v, id, hashInfo)
143
- }
144
-
145
- /** A repo operation, ie a mutation of a single record. */
146
- export interface RepoOp {
147
- $type?: 'com.atproto.sync.subscribeRepos#repoOp'
148
- action: 'create' | 'update' | 'delete' | (string & {})
149
- path: string
150
- /** For creates and updates, the new record CID. For deletions, null. */
151
- cid: CID | null
152
- /** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
153
- prev?: CID
154
- }
155
-
156
- const hashRepoOp = 'repoOp'
157
-
158
- export function isRepoOp<V>(v: V) {
159
- return is$typed(v, id, hashRepoOp)
160
- }
161
-
162
- export function validateRepoOp<V>(v: V) {
163
- return validate<RepoOp & V>(v, id, hashRepoOp)
164
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
- import { CID } from 'multiformats/cid'
7
- import { validate as _validate } from '../../../../lexicons.js'
8
- import {
9
- type $Typed,
10
- is$typed as _is$typed,
11
- type OmitKey,
12
- } from '../../../../util.js'
13
-
14
- const is$typed = _is$typed,
15
- validate = _validate
16
- const id = 'com.atproto.temp.addReservedHandle'
17
-
18
- export type QueryParams = {}
19
-
20
- export interface InputSchema {
21
- handle: string
22
- }
23
-
24
- export interface OutputSchema {}
25
-
26
- export interface CallOptions {
27
- signal?: AbortSignal
28
- headers?: HeadersMap
29
- qp?: QueryParams
30
- encoding?: 'application/json'
31
- }
32
-
33
- export interface Response {
34
- success: boolean
35
- headers: HeadersMap
36
- data: OutputSchema
37
- }
38
-
39
- export function toKnownErr(e: any) {
40
- return e
41
- }