@atproto/bsky 0.0.29 → 0.0.31

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 (239) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +1 -0
  3. package/dist/db/index.js +285 -15
  4. package/dist/db/index.js.map +3 -3
  5. package/dist/index.js +1010 -415
  6. package/dist/index.js.map +3 -3
  7. package/dist/lexicon/lexicons.d.ts +153 -5
  8. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  9. package/dist/lexicon/types/app/bsky/actor/getPreferences.d.ts +2 -2
  10. package/dist/lexicon/types/app/bsky/actor/getProfile.d.ts +2 -2
  11. package/dist/lexicon/types/app/bsky/actor/getProfiles.d.ts +2 -2
  12. package/dist/lexicon/types/app/bsky/actor/getSuggestions.d.ts +2 -2
  13. package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +2 -2
  14. package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +2 -2
  15. package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.d.ts +2 -2
  16. package/dist/lexicon/types/app/bsky/feed/getActorFeeds.d.ts +2 -2
  17. package/dist/lexicon/types/app/bsky/feed/getActorLikes.d.ts +2 -2
  18. package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +2 -2
  19. package/dist/lexicon/types/app/bsky/feed/getFeed.d.ts +2 -2
  20. package/dist/lexicon/types/app/bsky/feed/getFeedGenerator.d.ts +2 -2
  21. package/dist/lexicon/types/app/bsky/feed/getFeedGenerators.d.ts +2 -2
  22. package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts +2 -2
  23. package/dist/lexicon/types/app/bsky/feed/getLikes.d.ts +2 -2
  24. package/dist/lexicon/types/app/bsky/feed/getListFeed.d.ts +2 -2
  25. package/dist/lexicon/types/app/bsky/feed/getPostThread.d.ts +2 -2
  26. package/dist/lexicon/types/app/bsky/feed/getPosts.d.ts +2 -2
  27. package/dist/lexicon/types/app/bsky/feed/getRepostedBy.d.ts +2 -2
  28. package/dist/lexicon/types/app/bsky/feed/getSuggestedFeeds.d.ts +2 -2
  29. package/dist/lexicon/types/app/bsky/feed/getTimeline.d.ts +2 -2
  30. package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +2 -2
  31. package/dist/lexicon/types/app/bsky/graph/getBlocks.d.ts +2 -2
  32. package/dist/lexicon/types/app/bsky/graph/getFollowers.d.ts +2 -2
  33. package/dist/lexicon/types/app/bsky/graph/getFollows.d.ts +2 -2
  34. package/dist/lexicon/types/app/bsky/graph/getList.d.ts +2 -2
  35. package/dist/lexicon/types/app/bsky/graph/getListBlocks.d.ts +2 -2
  36. package/dist/lexicon/types/app/bsky/graph/getListMutes.d.ts +2 -2
  37. package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +2 -2
  38. package/dist/lexicon/types/app/bsky/graph/getMutes.d.ts +2 -2
  39. package/dist/lexicon/types/app/bsky/graph/getRelationships.d.ts +2 -2
  40. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -2
  41. package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +2 -2
  42. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -2
  43. package/dist/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +2 -2
  44. package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.d.ts +2 -2
  45. package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +2 -2
  46. package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +2 -2
  47. package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +2 -2
  48. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +9 -0
  49. package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +3 -3
  50. package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +2 -2
  51. package/dist/lexicon/types/com/atproto/admin/getAccountInfos.d.ts +2 -2
  52. package/dist/lexicon/types/com/atproto/admin/getInviteCodes.d.ts +2 -2
  53. package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +2 -2
  54. package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +2 -2
  55. package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +2 -2
  56. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +2 -2
  57. package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +2 -2
  58. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +4 -2
  59. package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +4 -2
  60. package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +2 -2
  61. package/dist/lexicon/types/com/atproto/admin/sendEmail.d.ts +2 -2
  62. package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +2 -2
  63. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +2 -2
  64. package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +2 -2
  65. package/dist/lexicon/types/com/atproto/label/queryLabels.d.ts +2 -2
  66. package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts +2 -2
  67. package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +2 -2
  68. package/dist/lexicon/types/com/atproto/repo/describeRepo.d.ts +2 -2
  69. package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +2 -2
  70. package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +2 -2
  71. package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +2 -2
  72. package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +2 -2
  73. package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +2 -2
  74. package/dist/lexicon/types/com/atproto/server/createAppPassword.d.ts +2 -2
  75. package/dist/lexicon/types/com/atproto/server/createInviteCode.d.ts +2 -2
  76. package/dist/lexicon/types/com/atproto/server/createInviteCodes.d.ts +2 -2
  77. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -2
  78. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +2 -2
  79. package/dist/lexicon/types/com/atproto/server/getAccountInviteCodes.d.ts +2 -2
  80. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +2 -2
  81. package/dist/lexicon/types/com/atproto/server/listAppPasswords.d.ts +2 -2
  82. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +2 -2
  83. package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +2 -2
  84. package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +2 -2
  85. package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +2 -2
  86. package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +2 -2
  87. package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +2 -2
  88. package/dist/lexicon/types/com/atproto/sync/getHead.d.ts +2 -2
  89. package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts +2 -2
  90. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +2 -2
  91. package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +2 -2
  92. package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts +2 -2
  93. package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +2 -2
  94. package/dist/lexicon/types/com/atproto/temp/checkSignupQueue.d.ts +2 -2
  95. package/dist/lexicon/types/com/atproto/temp/fetchLabels.d.ts +2 -2
  96. package/dist/lexicon/types/com/atproto/temp/importRepo.d.ts +2 -2
  97. package/dist/lexicon/types/com/atproto/temp/transferAccount.d.ts +2 -2
  98. package/dist/services/feed/index.d.ts +2 -1
  99. package/package.json +7 -7
  100. package/src/api/app/bsky/feed/getAuthorFeed.ts +12 -4
  101. package/src/lexicon/lexicons.ts +401 -123
  102. package/src/lexicon/types/app/bsky/actor/defs.ts +2 -0
  103. package/src/lexicon/types/app/bsky/actor/getPreferences.ts +2 -2
  104. package/src/lexicon/types/app/bsky/actor/getProfile.ts +3 -2
  105. package/src/lexicon/types/app/bsky/actor/getProfiles.ts +2 -2
  106. package/src/lexicon/types/app/bsky/actor/getSuggestions.ts +2 -2
  107. package/src/lexicon/types/app/bsky/actor/profile.ts +3 -0
  108. package/src/lexicon/types/app/bsky/actor/putPreferences.ts +1 -1
  109. package/src/lexicon/types/app/bsky/actor/searchActors.ts +2 -2
  110. package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +2 -2
  111. package/src/lexicon/types/app/bsky/embed/external.ts +1 -0
  112. package/src/lexicon/types/app/bsky/embed/images.ts +4 -0
  113. package/src/lexicon/types/app/bsky/embed/record.ts +1 -0
  114. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
  115. package/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts +2 -2
  116. package/src/lexicon/types/app/bsky/feed/getActorFeeds.ts +2 -2
  117. package/src/lexicon/types/app/bsky/feed/getActorLikes.ts +2 -2
  118. package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +3 -2
  119. package/src/lexicon/types/app/bsky/feed/getFeed.ts +2 -2
  120. package/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts +5 -2
  121. package/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts +2 -2
  122. package/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +3 -2
  123. package/src/lexicon/types/app/bsky/feed/getLikes.ts +4 -2
  124. package/src/lexicon/types/app/bsky/feed/getListFeed.ts +3 -2
  125. package/src/lexicon/types/app/bsky/feed/getPostThread.ts +5 -2
  126. package/src/lexicon/types/app/bsky/feed/getPosts.ts +3 -2
  127. package/src/lexicon/types/app/bsky/feed/getRepostedBy.ts +4 -2
  128. package/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts +2 -2
  129. package/src/lexicon/types/app/bsky/feed/getTimeline.ts +3 -2
  130. package/src/lexicon/types/app/bsky/feed/post.ts +5 -1
  131. package/src/lexicon/types/app/bsky/feed/searchPosts.ts +2 -2
  132. package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
  133. package/src/lexicon/types/app/bsky/graph/block.ts +1 -0
  134. package/src/lexicon/types/app/bsky/graph/getBlocks.ts +2 -2
  135. package/src/lexicon/types/app/bsky/graph/getFollowers.ts +2 -2
  136. package/src/lexicon/types/app/bsky/graph/getFollows.ts +2 -2
  137. package/src/lexicon/types/app/bsky/graph/getList.ts +3 -2
  138. package/src/lexicon/types/app/bsky/graph/getListBlocks.ts +2 -2
  139. package/src/lexicon/types/app/bsky/graph/getListMutes.ts +2 -2
  140. package/src/lexicon/types/app/bsky/graph/getLists.ts +3 -2
  141. package/src/lexicon/types/app/bsky/graph/getMutes.ts +2 -2
  142. package/src/lexicon/types/app/bsky/graph/getRelationships.ts +4 -2
  143. package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -2
  144. package/src/lexicon/types/app/bsky/graph/list.ts +1 -0
  145. package/src/lexicon/types/app/bsky/graph/listblock.ts +1 -0
  146. package/src/lexicon/types/app/bsky/graph/listitem.ts +2 -0
  147. package/src/lexicon/types/app/bsky/graph/muteActor.ts +1 -1
  148. package/src/lexicon/types/app/bsky/graph/muteActorList.ts +1 -1
  149. package/src/lexicon/types/app/bsky/graph/unmuteActor.ts +1 -1
  150. package/src/lexicon/types/app/bsky/graph/unmuteActorList.ts +1 -1
  151. package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +2 -2
  152. package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -2
  153. package/src/lexicon/types/app/bsky/notification/registerPush.ts +1 -1
  154. package/src/lexicon/types/app/bsky/notification/updateSeen.ts +1 -1
  155. package/src/lexicon/types/app/bsky/richtext/facet.ts +5 -4
  156. package/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts +2 -2
  157. package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +2 -2
  158. package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +2 -2
  159. package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +2 -2
  160. package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +2 -2
  161. package/src/lexicon/types/com/atproto/admin/defs.ts +24 -0
  162. package/src/lexicon/types/com/atproto/admin/deleteAccount.ts +1 -1
  163. package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +1 -1
  164. package/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +1 -1
  165. package/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts +1 -1
  166. package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +3 -2
  167. package/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +1 -1
  168. package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +2 -2
  169. package/src/lexicon/types/com/atproto/admin/getAccountInfos.ts +2 -2
  170. package/src/lexicon/types/com/atproto/admin/getInviteCodes.ts +2 -2
  171. package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +2 -2
  172. package/src/lexicon/types/com/atproto/admin/getRecord.ts +2 -2
  173. package/src/lexicon/types/com/atproto/admin/getRepo.ts +2 -2
  174. package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +2 -2
  175. package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +2 -2
  176. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +6 -2
  177. package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +4 -2
  178. package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -2
  179. package/src/lexicon/types/com/atproto/admin/sendEmail.ts +2 -2
  180. package/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts +1 -1
  181. package/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts +1 -1
  182. package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +2 -2
  183. package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +2 -2
  184. package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +2 -2
  185. package/src/lexicon/types/com/atproto/identity/updateHandle.ts +2 -1
  186. package/src/lexicon/types/com/atproto/label/queryLabels.ts +2 -2
  187. package/src/lexicon/types/com/atproto/label/subscribeLabels.ts +1 -1
  188. package/src/lexicon/types/com/atproto/moderation/createReport.ts +3 -2
  189. package/src/lexicon/types/com/atproto/repo/applyWrites.ts +7 -6
  190. package/src/lexicon/types/com/atproto/repo/createRecord.ts +6 -6
  191. package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +3 -3
  192. package/src/lexicon/types/com/atproto/repo/describeRepo.ts +5 -2
  193. package/src/lexicon/types/com/atproto/repo/getRecord.ts +3 -3
  194. package/src/lexicon/types/com/atproto/repo/listRecords.ts +2 -2
  195. package/src/lexicon/types/com/atproto/repo/putRecord.ts +6 -6
  196. package/src/lexicon/types/com/atproto/repo/uploadBlob.ts +2 -2
  197. package/src/lexicon/types/com/atproto/server/confirmEmail.ts +1 -1
  198. package/src/lexicon/types/com/atproto/server/createAccount.ts +10 -2
  199. package/src/lexicon/types/com/atproto/server/createAppPassword.ts +3 -2
  200. package/src/lexicon/types/com/atproto/server/createInviteCode.ts +2 -2
  201. package/src/lexicon/types/com/atproto/server/createInviteCodes.ts +2 -2
  202. package/src/lexicon/types/com/atproto/server/createSession.ts +2 -2
  203. package/src/lexicon/types/com/atproto/server/deleteAccount.ts +1 -1
  204. package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -1
  205. package/src/lexicon/types/com/atproto/server/describeServer.ts +5 -2
  206. package/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts +3 -2
  207. package/src/lexicon/types/com/atproto/server/getSession.ts +2 -2
  208. package/src/lexicon/types/com/atproto/server/listAppPasswords.ts +2 -2
  209. package/src/lexicon/types/com/atproto/server/refreshSession.ts +2 -2
  210. package/src/lexicon/types/com/atproto/server/requestAccountDelete.ts +1 -1
  211. package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +1 -1
  212. package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +2 -2
  213. package/src/lexicon/types/com/atproto/server/requestPasswordReset.ts +1 -1
  214. package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +4 -4
  215. package/src/lexicon/types/com/atproto/server/resetPassword.ts +1 -1
  216. package/src/lexicon/types/com/atproto/server/revokeAppPassword.ts +1 -1
  217. package/src/lexicon/types/com/atproto/server/updateEmail.ts +1 -1
  218. package/src/lexicon/types/com/atproto/sync/getBlob.ts +3 -3
  219. package/src/lexicon/types/com/atproto/sync/getBlocks.ts +2 -2
  220. package/src/lexicon/types/com/atproto/sync/getCheckout.ts +2 -2
  221. package/src/lexicon/types/com/atproto/sync/getHead.ts +2 -2
  222. package/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +2 -2
  223. package/src/lexicon/types/com/atproto/sync/getRecord.ts +3 -2
  224. package/src/lexicon/types/com/atproto/sync/getRepo.ts +3 -3
  225. package/src/lexicon/types/com/atproto/sync/listBlobs.ts +2 -2
  226. package/src/lexicon/types/com/atproto/sync/listRepos.ts +3 -2
  227. package/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts +2 -2
  228. package/src/lexicon/types/com/atproto/sync/requestCrawl.ts +2 -2
  229. package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +17 -5
  230. package/src/lexicon/types/com/atproto/temp/checkSignupQueue.ts +2 -2
  231. package/src/lexicon/types/com/atproto/temp/fetchLabels.ts +2 -2
  232. package/src/lexicon/types/com/atproto/temp/importRepo.ts +2 -2
  233. package/src/lexicon/types/com/atproto/temp/pushBlob.ts +1 -1
  234. package/src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts +1 -1
  235. package/src/lexicon/types/com/atproto/temp/transferAccount.ts +2 -2
  236. package/src/services/feed/index.ts +10 -4
  237. package/src/services/feed/views.ts +3 -1
  238. package/tests/auto-moderator/labeler.test.ts +2 -0
  239. package/tests/views/author-feed.test.ts +29 -9
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyActorDefs from '../actor/defs'
11
11
 
12
12
  export interface QueryParams {
@@ -37,7 +37,7 @@ export interface HandlerError {
37
37
  message?: string
38
38
  }
39
39
 
40
- export type HandlerOutput = HandlerError | HandlerSuccess
40
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
41
41
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
42
42
  auth: HA
43
43
  params: QueryParams
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyGraphDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
13
+ /** Reference (AT-URI) of the list record to hydrate. */
13
14
  list: string
14
15
  limit: number
15
16
  cursor?: string
@@ -37,7 +38,7 @@ export interface HandlerError {
37
38
  message?: string
38
39
  }
39
40
 
40
- export type HandlerOutput = HandlerError | HandlerSuccess
41
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
41
42
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
42
43
  auth: HA
43
44
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyGraphDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -35,7 +35,7 @@ export interface HandlerError {
35
35
  message?: string
36
36
  }
37
37
 
38
- export type HandlerOutput = HandlerError | HandlerSuccess
38
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
39
39
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
40
40
  auth: HA
41
41
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyGraphDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -35,7 +35,7 @@ export interface HandlerError {
35
35
  message?: string
36
36
  }
37
37
 
38
- export type HandlerOutput = HandlerError | HandlerSuccess
38
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
39
39
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
40
40
  auth: HA
41
41
  params: QueryParams
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyGraphDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
13
+ /** The account (actor) to enumerate lists from. */
13
14
  actor: string
14
15
  limit: number
15
16
  cursor?: string
@@ -36,7 +37,7 @@ export interface HandlerError {
36
37
  message?: string
37
38
  }
38
39
 
39
- export type HandlerOutput = HandlerError | HandlerSuccess
40
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
40
41
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
41
42
  auth: HA
42
43
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyActorDefs from '../actor/defs'
11
11
 
12
12
  export interface QueryParams {
@@ -35,7 +35,7 @@ export interface HandlerError {
35
35
  message?: string
36
36
  }
37
37
 
38
- export type HandlerOutput = HandlerError | HandlerSuccess
38
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
39
39
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
40
40
  auth: HA
41
41
  params: QueryParams
@@ -6,11 +6,13 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyGraphDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
13
+ /** Primary account requesting relationships for. */
13
14
  actor: string
15
+ /** List of 'other' accounts to be related back to the primary. */
14
16
  others?: string[]
15
17
  }
16
18
 
@@ -40,7 +42,7 @@ export interface HandlerError {
40
42
  error?: 'ActorNotFound'
41
43
  }
42
44
 
43
- export type HandlerOutput = HandlerError | HandlerSuccess
45
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
44
46
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
45
47
  auth: HA
46
48
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyActorDefs from '../actor/defs'
11
11
 
12
12
  export interface QueryParams {
@@ -33,7 +33,7 @@ export interface HandlerError {
33
33
  message?: string
34
34
  }
35
35
 
36
- export type HandlerOutput = HandlerError | HandlerSuccess
36
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
37
37
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
38
38
  auth: HA
39
39
  params: QueryParams
@@ -11,6 +11,7 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
11
11
 
12
12
  export interface Record {
13
13
  purpose: AppBskyGraphDefs.ListPurpose
14
+ /** Display name for list; can not be empty. */
14
15
  name: string
15
16
  description?: string
16
17
  descriptionFacets?: AppBskyRichtextFacet.Main[]
@@ -7,6 +7,7 @@ import { isObj, hasProp } from '../../../../util'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
9
  export interface Record {
10
+ /** Reference (AT-URI) to the mod list record. */
10
11
  subject: string
11
12
  createdAt: string
12
13
  [k: string]: unknown
@@ -7,7 +7,9 @@ import { isObj, hasProp } from '../../../../util'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
9
  export interface Record {
10
+ /** The account which is included on the list. */
10
11
  subject: string
12
+ /** Reference (AT-URI) to the list record (app.bsky.graph.list). */
11
13
  list: string
12
14
  createdAt: string
13
15
  [k: string]: unknown
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {
12
12
  seenAt?: string
@@ -32,7 +32,7 @@ export interface HandlerError {
32
32
  message?: string
33
33
  }
34
34
 
35
- export type HandlerOutput = HandlerError | HandlerSuccess
35
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
36
36
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
37
37
  auth: HA
38
38
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyActorDefs from '../actor/defs'
11
11
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
12
12
 
@@ -38,7 +38,7 @@ export interface HandlerError {
38
38
  message?: string
39
39
  }
40
40
 
41
- export type HandlerOutput = HandlerError | HandlerSuccess
41
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
42
42
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
43
43
  auth: HA
44
44
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,6 +6,7 @@ import { lexicons } from '../../../../lexicons'
6
6
  import { isObj, hasProp } from '../../../../util'
7
7
  import { CID } from 'multiformats/cid'
8
8
 
9
+ /** Annotation of a sub-string within rich text. */
9
10
  export interface Main {
10
11
  index: ByteSlice
11
12
  features: (Mention | Link | Tag | { $type: string; [k: string]: unknown })[]
@@ -25,7 +26,7 @@ export function validateMain(v: unknown): ValidationResult {
25
26
  return lexicons.validate('app.bsky.richtext.facet#main', v)
26
27
  }
27
28
 
28
- /** A facet feature for actor mentions. */
29
+ /** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
29
30
  export interface Mention {
30
31
  did: string
31
32
  [k: string]: unknown
@@ -43,7 +44,7 @@ export function validateMention(v: unknown): ValidationResult {
43
44
  return lexicons.validate('app.bsky.richtext.facet#mention', v)
44
45
  }
45
46
 
46
- /** A facet feature for links. */
47
+ /** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
47
48
  export interface Link {
48
49
  uri: string
49
50
  [k: string]: unknown
@@ -61,7 +62,7 @@ export function validateLink(v: unknown): ValidationResult {
61
62
  return lexicons.validate('app.bsky.richtext.facet#link', v)
62
63
  }
63
64
 
64
- /** A hashtag. */
65
+ /** Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). */
65
66
  export interface Tag {
66
67
  tag: string
67
68
  [k: string]: unknown
@@ -77,7 +78,7 @@ export function validateTag(v: unknown): ValidationResult {
77
78
  return lexicons.validate('app.bsky.richtext.facet#tag', v)
78
79
  }
79
80
 
80
- /** A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings. */
81
+ /** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
81
82
  export interface ByteSlice {
82
83
  byteStart: number
83
84
  byteEnd: number
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyFeedDefs from '../feed/defs'
11
11
 
12
12
  export interface QueryParams {
@@ -36,7 +36,7 @@ export interface HandlerError {
36
36
  message?: string
37
37
  }
38
38
 
39
- export type HandlerOutput = HandlerError | HandlerSuccess
39
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
40
40
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
41
41
  auth: HA
42
42
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -30,7 +30,7 @@ export interface HandlerError {
30
30
  message?: string
31
31
  }
32
32
 
33
- export type HandlerOutput = HandlerError | HandlerSuccess
33
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
34
34
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
35
35
  auth: HA
36
36
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyUnspeccedDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -43,7 +43,7 @@ export interface HandlerError {
43
43
  error?: 'BadQueryString'
44
44
  }
45
45
 
46
- export type HandlerOutput = HandlerError | HandlerSuccess
46
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
47
47
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
48
48
  auth: HA
49
49
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as AppBskyUnspeccedDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -41,7 +41,7 @@ export interface HandlerError {
41
41
  error?: 'BadQueryString'
42
42
  }
43
43
 
44
- export type HandlerOutput = HandlerError | HandlerSuccess
44
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
45
45
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
46
46
  auth: HA
47
47
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
 
12
12
  export interface QueryParams {}
@@ -41,7 +41,7 @@ export interface HandlerError {
41
41
  message?: string
42
42
  }
43
43
 
44
- export type HandlerOutput = HandlerError | HandlerSuccess
44
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
45
45
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
46
46
  auth: HA
47
47
  params: QueryParams
@@ -156,6 +156,7 @@ export interface SubjectStatusView {
156
156
  /** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */
157
157
  appealed?: boolean
158
158
  suspendUntil?: string
159
+ tags?: string[]
159
160
  [k: string]: unknown
160
161
  }
161
162
 
@@ -720,6 +721,29 @@ export function validateModEventEmail(v: unknown): ValidationResult {
720
721
  return lexicons.validate('com.atproto.admin.defs#modEventEmail', v)
721
722
  }
722
723
 
724
+ /** Add/Remove a tag on a subject */
725
+ export interface ModEventTag {
726
+ /** Tags to be added to the subject. If already exists, won't be duplicated. */
727
+ add: string[]
728
+ /** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */
729
+ remove: string[]
730
+ /** Additional comment about added/removed tags. */
731
+ comment?: string
732
+ [k: string]: unknown
733
+ }
734
+
735
+ export function isModEventTag(v: unknown): v is ModEventTag {
736
+ return (
737
+ isObj(v) &&
738
+ hasProp(v, '$type') &&
739
+ v.$type === 'com.atproto.admin.defs#modEventTag'
740
+ )
741
+ }
742
+
743
+ export function validateModEventTag(v: unknown): ValidationResult {
744
+ return lexicons.validate('com.atproto.admin.defs#modEventTag', v)
745
+ }
746
+
723
747
  export interface CommunicationTemplateView {
724
748
  id: string
725
749
  /** Name of the template. */
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
  import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
12
12
 
@@ -24,6 +24,7 @@ export interface InputSchema {
24
24
  | ComAtprotoAdminDefs.ModEventReverseTakedown
25
25
  | ComAtprotoAdminDefs.ModEventUnmute
26
26
  | ComAtprotoAdminDefs.ModEventEmail
27
+ | ComAtprotoAdminDefs.ModEventTag
27
28
  | { $type: string; [k: string]: unknown }
28
29
  subject:
29
30
  | ComAtprotoAdminDefs.RepoRef
@@ -53,7 +54,7 @@ export interface HandlerError {
53
54
  error?: 'SubjectHasAction'
54
55
  }
55
56
 
56
- export type HandlerOutput = HandlerError | HandlerSuccess
57
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
57
58
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
58
59
  auth: HA
59
60
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
 
11
11
  export interface QueryParams {}
12
12
 
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -28,7 +28,7 @@ export interface HandlerError {
28
28
  message?: string
29
29
  }
30
30
 
31
- export type HandlerOutput = HandlerError | HandlerSuccess
31
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
32
32
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
33
33
  auth: HA
34
34
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -33,7 +33,7 @@ export interface HandlerError {
33
33
  message?: string
34
34
  }
35
35
 
36
- export type HandlerOutput = HandlerError | HandlerSuccess
36
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
37
37
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
38
38
  auth: HA
39
39
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoServerDefs from '../server/defs'
11
11
 
12
12
  export interface QueryParams {
@@ -36,7 +36,7 @@ export interface HandlerError {
36
36
  message?: string
37
37
  }
38
38
 
39
- export type HandlerOutput = HandlerError | HandlerSuccess
39
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
40
40
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
41
41
  auth: HA
42
42
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -28,7 +28,7 @@ export interface HandlerError {
28
28
  message?: string
29
29
  }
30
30
 
31
- export type HandlerOutput = HandlerError | HandlerSuccess
31
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
32
32
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
33
33
  auth: HA
34
34
  params: QueryParams
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { isObj, hasProp } from '../../../../util'
8
8
  import { CID } from 'multiformats/cid'
9
- import { HandlerAuth } from '@atproto/xrpc-server'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
10
  import * as ComAtprotoAdminDefs from './defs'
11
11
 
12
12
  export interface QueryParams {
@@ -30,7 +30,7 @@ export interface HandlerError {
30
30
  error?: 'RecordNotFound'
31
31
  }
32
32
 
33
- export type HandlerOutput = HandlerError | HandlerSuccess
33
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
34
34
  export type HandlerReqCtx<HA extends HandlerAuth = never> = {
35
35
  auth: HA
36
36
  params: QueryParams