@atproto/pds 0.4.19 → 0.4.21
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +13 -0
- package/dist/api/app/bsky/actor/index.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/index.js +0 -6
- package/dist/api/app/bsky/actor/index.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +1 -3
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/index.js +0 -20
- package/dist/api/app/bsky/feed/index.js.map +1 -1
- package/dist/api/app/bsky/index.d.ts.map +1 -1
- package/dist/api/app/bsky/index.js +0 -6
- package/dist/api/app/bsky/index.js.map +1 -1
- package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/index.js +0 -6
- package/dist/api/app/bsky/notification/index.js.map +1 -1
- package/dist/api/com/atproto/index.d.ts.map +1 -1
- package/dist/api/com/atproto/index.js +0 -2
- package/dist/api/com/atproto/index.js.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.js +1 -1
- package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +30 -0
- package/dist/context.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -45
- package/dist/index.js.map +1 -1
- package/dist/pipethrough.d.ts +12 -22
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +159 -81
- package/dist/pipethrough.js.map +1 -1
- package/package.json +8 -8
- package/src/api/app/bsky/actor/index.ts +0 -6
- package/src/api/app/bsky/feed/getFeed.ts +1 -3
- package/src/api/app/bsky/feed/index.ts +0 -20
- package/src/api/app/bsky/index.ts +0 -6
- package/src/api/app/bsky/notification/index.ts +0 -7
- package/src/api/com/atproto/index.ts +0 -2
- package/src/api/com/atproto/repo/getRecord.ts +1 -1
- package/src/api/index.ts +0 -2
- package/src/context.ts +34 -1
- package/src/index.ts +27 -51
- package/src/pipethrough.ts +184 -114
- package/dist/api/app/bsky/actor/getSuggestions.d.ts +0 -4
- package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/getSuggestions.js +0 -19
- package/dist/api/app/bsky/actor/getSuggestions.js.map +0 -1
- package/dist/api/app/bsky/actor/searchActors.d.ts +0 -4
- package/dist/api/app/bsky/actor/searchActors.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/searchActors.js +0 -17
- package/dist/api/app/bsky/actor/searchActors.js.map +0 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts +0 -4
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js +0 -17
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +0 -1
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts +0 -4
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getActorFeeds.js +0 -17
- package/dist/api/app/bsky/feed/getActorFeeds.js.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts +0 -4
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.js +0 -17
- package/dist/api/app/bsky/feed/getFeedGenerator.js.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts +0 -4
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.js +0 -17
- package/dist/api/app/bsky/feed/getFeedGenerators.js.map +0 -1
- package/dist/api/app/bsky/feed/getLikes.d.ts +0 -4
- package/dist/api/app/bsky/feed/getLikes.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getLikes.js +0 -17
- package/dist/api/app/bsky/feed/getLikes.js.map +0 -1
- package/dist/api/app/bsky/feed/getListFeed.d.ts +0 -4
- package/dist/api/app/bsky/feed/getListFeed.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getListFeed.js +0 -17
- package/dist/api/app/bsky/feed/getListFeed.js.map +0 -1
- package/dist/api/app/bsky/feed/getPosts.d.ts +0 -4
- package/dist/api/app/bsky/feed/getPosts.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getPosts.js +0 -17
- package/dist/api/app/bsky/feed/getPosts.js.map +0 -1
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts +0 -4
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getRepostedBy.js +0 -17
- package/dist/api/app/bsky/feed/getRepostedBy.js.map +0 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts +0 -4
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.js +0 -17
- package/dist/api/app/bsky/feed/getSuggestedFeeds.js.map +0 -1
- package/dist/api/app/bsky/feed/searchPosts.d.ts +0 -4
- package/dist/api/app/bsky/feed/searchPosts.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/searchPosts.js +0 -17
- package/dist/api/app/bsky/feed/searchPosts.js.map +0 -1
- package/dist/api/app/bsky/feed/sendInteractions.d.ts +0 -4
- package/dist/api/app/bsky/feed/sendInteractions.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/sendInteractions.js +0 -14
- package/dist/api/app/bsky/feed/sendInteractions.js.map +0 -1
- package/dist/api/app/bsky/graph/getBlocks.d.ts +0 -4
- package/dist/api/app/bsky/graph/getBlocks.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getBlocks.js +0 -17
- package/dist/api/app/bsky/graph/getBlocks.js.map +0 -1
- package/dist/api/app/bsky/graph/getFollowers.d.ts +0 -4
- package/dist/api/app/bsky/graph/getFollowers.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getFollowers.js +0 -17
- package/dist/api/app/bsky/graph/getFollowers.js.map +0 -1
- package/dist/api/app/bsky/graph/getFollows.d.ts +0 -4
- package/dist/api/app/bsky/graph/getFollows.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getFollows.js +0 -17
- package/dist/api/app/bsky/graph/getFollows.js.map +0 -1
- package/dist/api/app/bsky/graph/getList.d.ts +0 -4
- package/dist/api/app/bsky/graph/getList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getList.js +0 -17
- package/dist/api/app/bsky/graph/getList.js.map +0 -1
- package/dist/api/app/bsky/graph/getListBlocks.d.ts +0 -4
- package/dist/api/app/bsky/graph/getListBlocks.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getListBlocks.js +0 -17
- package/dist/api/app/bsky/graph/getListBlocks.js.map +0 -1
- package/dist/api/app/bsky/graph/getListMutes.d.ts +0 -4
- package/dist/api/app/bsky/graph/getListMutes.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getListMutes.js +0 -17
- package/dist/api/app/bsky/graph/getListMutes.js.map +0 -1
- package/dist/api/app/bsky/graph/getLists.d.ts +0 -4
- package/dist/api/app/bsky/graph/getLists.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getLists.js +0 -17
- package/dist/api/app/bsky/graph/getLists.js.map +0 -1
- package/dist/api/app/bsky/graph/getMutes.d.ts +0 -4
- package/dist/api/app/bsky/graph/getMutes.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getMutes.js +0 -17
- package/dist/api/app/bsky/graph/getMutes.js.map +0 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +0 -17
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +0 -1
- package/dist/api/app/bsky/graph/index.d.ts +0 -4
- package/dist/api/app/bsky/graph/index.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/index.js +0 -35
- package/dist/api/app/bsky/graph/index.js.map +0 -1
- package/dist/api/app/bsky/graph/muteActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/muteActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/muteActor.js +0 -14
- package/dist/api/app/bsky/graph/muteActor.js.map +0 -1
- package/dist/api/app/bsky/graph/muteActorList.d.ts +0 -4
- package/dist/api/app/bsky/graph/muteActorList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/muteActorList.js +0 -14
- package/dist/api/app/bsky/graph/muteActorList.js.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/unmuteActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActor.js +0 -14
- package/dist/api/app/bsky/graph/unmuteActor.js.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts +0 -4
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActorList.js +0 -14
- package/dist/api/app/bsky/graph/unmuteActorList.js.map +0 -1
- package/dist/api/app/bsky/labeler/getServices.d.ts +0 -4
- package/dist/api/app/bsky/labeler/getServices.d.ts.map +0 -1
- package/dist/api/app/bsky/labeler/getServices.js +0 -14
- package/dist/api/app/bsky/labeler/getServices.js.map +0 -1
- package/dist/api/app/bsky/labeler/index.d.ts +0 -4
- package/dist/api/app/bsky/labeler/index.d.ts.map +0 -1
- package/dist/api/app/bsky/labeler/index.js +0 -11
- package/dist/api/app/bsky/labeler/index.js.map +0 -1
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts +0 -4
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js +0 -17
- package/dist/api/app/bsky/notification/getUnreadCount.js.map +0 -1
- package/dist/api/app/bsky/notification/listNotifications.d.ts +0 -4
- package/dist/api/app/bsky/notification/listNotifications.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/listNotifications.js +0 -17
- package/dist/api/app/bsky/notification/listNotifications.js.map +0 -1
- package/dist/api/app/bsky/notification/updateSeen.d.ts +0 -4
- package/dist/api/app/bsky/notification/updateSeen.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/updateSeen.js +0 -14
- package/dist/api/app/bsky/notification/updateSeen.js.map +0 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js +0 -18
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +0 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js +0 -18
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js.map +0 -1
- package/dist/api/app/bsky/unspecced/index.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/index.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/index.js +0 -14
- package/dist/api/app/bsky/unspecced/index.js.map +0 -1
- package/dist/api/com/atproto/moderation/createReport.d.ts +0 -4
- package/dist/api/com/atproto/moderation/createReport.d.ts.map +0 -1
- package/dist/api/com/atproto/moderation/createReport.js +0 -14
- package/dist/api/com/atproto/moderation/createReport.js.map +0 -1
- package/dist/api/com/atproto/moderation/index.d.ts +0 -4
- package/dist/api/com/atproto/moderation/index.d.ts.map +0 -1
- package/dist/api/com/atproto/moderation/index.js +0 -11
- package/dist/api/com/atproto/moderation/index.js.map +0 -1
- package/dist/api/tools/ozone/communication/createTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/createTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/createTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/createTemplate.js.map +0 -1
- package/dist/api/tools/ozone/communication/deleteTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/deleteTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/deleteTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/deleteTemplate.js.map +0 -1
- package/dist/api/tools/ozone/communication/index.d.ts +0 -4
- package/dist/api/tools/ozone/communication/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/index.js +0 -17
- package/dist/api/tools/ozone/communication/index.js.map +0 -1
- package/dist/api/tools/ozone/communication/listTemplates.d.ts +0 -4
- package/dist/api/tools/ozone/communication/listTemplates.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/listTemplates.js +0 -14
- package/dist/api/tools/ozone/communication/listTemplates.js.map +0 -1
- package/dist/api/tools/ozone/communication/updateTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/updateTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/updateTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/updateTemplate.js.map +0 -1
- package/dist/api/tools/ozone/index.d.ts +0 -4
- package/dist/api/tools/ozone/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/index.js +0 -13
- package/dist/api/tools/ozone/index.js.map +0 -1
- package/dist/api/tools/ozone/moderation/emitEvent.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/emitEvent.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/emitEvent.js +0 -14
- package/dist/api/tools/ozone/moderation/emitEvent.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getEvent.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getEvent.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getEvent.js +0 -14
- package/dist/api/tools/ozone/moderation/getEvent.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getRecord.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getRecord.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getRecord.js +0 -14
- package/dist/api/tools/ozone/moderation/getRecord.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getRepo.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getRepo.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getRepo.js +0 -14
- package/dist/api/tools/ozone/moderation/getRepo.js.map +0 -1
- package/dist/api/tools/ozone/moderation/index.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/index.js +0 -23
- package/dist/api/tools/ozone/moderation/index.js.map +0 -1
- package/dist/api/tools/ozone/moderation/queryEvents.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/queryEvents.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/queryEvents.js +0 -14
- package/dist/api/tools/ozone/moderation/queryEvents.js.map +0 -1
- package/dist/api/tools/ozone/moderation/queryStatuses.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/queryStatuses.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/queryStatuses.js +0 -14
- package/dist/api/tools/ozone/moderation/queryStatuses.js.map +0 -1
- package/dist/api/tools/ozone/moderation/searchRepos.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/searchRepos.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/searchRepos.js +0 -14
- package/dist/api/tools/ozone/moderation/searchRepos.js.map +0 -1
- package/src/api/app/bsky/actor/getSuggestions.ts +0 -17
- package/src/api/app/bsky/actor/searchActors.ts +0 -15
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +0 -15
- package/src/api/app/bsky/feed/getActorFeeds.ts +0 -15
- package/src/api/app/bsky/feed/getFeedGenerator.ts +0 -15
- package/src/api/app/bsky/feed/getFeedGenerators.ts +0 -15
- package/src/api/app/bsky/feed/getLikes.ts +0 -15
- package/src/api/app/bsky/feed/getListFeed.ts +0 -15
- package/src/api/app/bsky/feed/getPosts.ts +0 -15
- package/src/api/app/bsky/feed/getRepostedBy.ts +0 -15
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +0 -15
- package/src/api/app/bsky/feed/searchPosts.ts +0 -15
- package/src/api/app/bsky/feed/sendInteractions.ts +0 -13
- package/src/api/app/bsky/graph/getBlocks.ts +0 -15
- package/src/api/app/bsky/graph/getFollowers.ts +0 -15
- package/src/api/app/bsky/graph/getFollows.ts +0 -15
- package/src/api/app/bsky/graph/getList.ts +0 -15
- package/src/api/app/bsky/graph/getListBlocks.ts +0 -15
- package/src/api/app/bsky/graph/getListMutes.ts +0 -15
- package/src/api/app/bsky/graph/getLists.ts +0 -15
- package/src/api/app/bsky/graph/getMutes.ts +0 -15
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -15
- package/src/api/app/bsky/graph/index.ts +0 -31
- package/src/api/app/bsky/graph/muteActor.ts +0 -13
- package/src/api/app/bsky/graph/muteActorList.ts +0 -13
- package/src/api/app/bsky/graph/unmuteActor.ts +0 -13
- package/src/api/app/bsky/graph/unmuteActorList.ts +0 -13
- package/src/api/app/bsky/labeler/getServices.ts +0 -13
- package/src/api/app/bsky/labeler/index.ts +0 -7
- package/src/api/app/bsky/notification/getUnreadCount.ts +0 -15
- package/src/api/app/bsky/notification/listNotifications.ts +0 -15
- package/src/api/app/bsky/notification/updateSeen.ts +0 -13
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -16
- package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +0 -16
- package/src/api/app/bsky/unspecced/index.ts +0 -10
- package/src/api/com/atproto/moderation/createReport.ts +0 -13
- package/src/api/com/atproto/moderation/index.ts +0 -7
- package/src/api/tools/ozone/communication/createTemplate.ts +0 -13
- package/src/api/tools/ozone/communication/deleteTemplate.ts +0 -13
- package/src/api/tools/ozone/communication/index.ts +0 -13
- package/src/api/tools/ozone/communication/listTemplates.ts +0 -13
- package/src/api/tools/ozone/communication/updateTemplate.ts +0 -13
- package/src/api/tools/ozone/index.ts +0 -9
- package/src/api/tools/ozone/moderation/emitEvent.ts +0 -13
- package/src/api/tools/ozone/moderation/getEvent.ts +0 -13
- package/src/api/tools/ozone/moderation/getRecord.ts +0 -13
- package/src/api/tools/ozone/moderation/getRepo.ts +0 -13
- package/src/api/tools/ozone/moderation/index.ts +0 -19
- package/src/api/tools/ozone/moderation/queryEvents.ts +0 -13
- package/src/api/tools/ozone/moderation/queryStatuses.ts +0 -13
- package/src/api/tools/ozone/moderation/searchRepos.ts +0 -13
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
const { bskyAppView } = ctx.cfg
|
7
|
-
if (!bskyAppView) return
|
8
|
-
server.app.bsky.graph.getSuggestedFollowsByActor({
|
9
|
-
auth: ctx.authVerifier.access,
|
10
|
-
handler: async ({ req, auth }) => {
|
11
|
-
const requester = auth.credentials.did
|
12
|
-
return pipethrough(ctx, req, requester)
|
13
|
-
},
|
14
|
-
})
|
15
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import getBlocks from './getBlocks'
|
4
|
-
import getFollowers from './getFollowers'
|
5
|
-
import getFollows from './getFollows'
|
6
|
-
import getList from './getList'
|
7
|
-
import getListBlocks from './getListBlocks'
|
8
|
-
import getListMutes from './getListMutes'
|
9
|
-
import getLists from './getLists'
|
10
|
-
import getMutes from './getMutes'
|
11
|
-
import getSuggestedFollowsByActor from './getSuggestedFollowsByActor'
|
12
|
-
import muteActor from './muteActor'
|
13
|
-
import muteActorList from './muteActorList'
|
14
|
-
import unmuteActor from './unmuteActor'
|
15
|
-
import unmuteActorList from './unmuteActorList'
|
16
|
-
|
17
|
-
export default function (server: Server, ctx: AppContext) {
|
18
|
-
getBlocks(server, ctx)
|
19
|
-
getFollowers(server, ctx)
|
20
|
-
getFollows(server, ctx)
|
21
|
-
getList(server, ctx)
|
22
|
-
getListBlocks(server, ctx)
|
23
|
-
getListMutes(server, ctx)
|
24
|
-
getLists(server, ctx)
|
25
|
-
getMutes(server, ctx)
|
26
|
-
getSuggestedFollowsByActor(server, ctx)
|
27
|
-
muteActor(server, ctx)
|
28
|
-
muteActorList(server, ctx)
|
29
|
-
unmuteActor(server, ctx)
|
30
|
-
unmuteActorList(server, ctx)
|
31
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.graph.muteActor({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ auth, input, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.graph.muteActorList({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ auth, input, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.graph.unmuteActor({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ auth, input, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.graph.unmuteActorList({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ auth, input, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.labeler.getServices({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ auth, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
const { bskyAppView } = ctx.cfg
|
7
|
-
if (!bskyAppView) return
|
8
|
-
server.app.bsky.notification.getUnreadCount({
|
9
|
-
auth: ctx.authVerifier.access,
|
10
|
-
handler: async ({ req, auth }) => {
|
11
|
-
const requester = auth.credentials.did
|
12
|
-
return pipethrough(ctx, req, requester)
|
13
|
-
},
|
14
|
-
})
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
const { bskyAppView } = ctx.cfg
|
7
|
-
if (!bskyAppView) return
|
8
|
-
server.app.bsky.notification.listNotifications({
|
9
|
-
auth: ctx.authVerifier.access,
|
10
|
-
handler: async ({ req, auth }) => {
|
11
|
-
const requester = auth.credentials.did
|
12
|
-
return pipethrough(ctx, req, requester)
|
13
|
-
},
|
14
|
-
})
|
15
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.app.bsky.notification.updateSeen({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ input, auth, req }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
// THIS IS A TEMPORARY UNSPECCED ROUTE
|
6
|
-
export default function (server: Server, ctx: AppContext) {
|
7
|
-
const { bskyAppView } = ctx.cfg
|
8
|
-
if (!bskyAppView) return
|
9
|
-
server.app.bsky.unspecced.getPopularFeedGenerators({
|
10
|
-
auth: ctx.authVerifier.access,
|
11
|
-
handler: async ({ req, auth }) => {
|
12
|
-
const requester = auth.credentials.did
|
13
|
-
return pipethrough(ctx, req, requester)
|
14
|
-
},
|
15
|
-
})
|
16
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
// THIS IS A TEMPORARY UNSPECCED ROUTE
|
6
|
-
export default function (server: Server, ctx: AppContext) {
|
7
|
-
const { bskyAppView } = ctx.cfg
|
8
|
-
if (!bskyAppView) return
|
9
|
-
server.app.bsky.unspecced.getTaggedSuggestions({
|
10
|
-
auth: ctx.authVerifier.access,
|
11
|
-
handler: async ({ req, auth }) => {
|
12
|
-
const requester = auth.credentials.did
|
13
|
-
return pipethrough(ctx, req, requester)
|
14
|
-
},
|
15
|
-
})
|
16
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import getPopularFeedGenerators from './getPopularFeedGenerators'
|
4
|
-
import getTaggedSuggestions from './getTaggedSuggestions'
|
5
|
-
|
6
|
-
// THIS IS A TEMPORARY UNSPECCED ROUTE
|
7
|
-
export default function (server: Server, ctx: AppContext) {
|
8
|
-
getPopularFeedGenerators(server, ctx)
|
9
|
-
getTaggedSuggestions(server, ctx)
|
10
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.com.atproto.moderation.createReport({
|
7
|
-
auth: ctx.authVerifier.accessCheckTakedown,
|
8
|
-
handler: async ({ req, input, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.communication.createTemplate({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, input, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.communication.deleteTemplate({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, input, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
await pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import AppContext from '../../../../context'
|
2
|
-
import { Server } from '../../../../lexicon'
|
3
|
-
import createTemplate from './createTemplate'
|
4
|
-
import deleteTemplate from './deleteTemplate'
|
5
|
-
import listTemplates from './listTemplates'
|
6
|
-
import updateTemplate from './updateTemplate'
|
7
|
-
|
8
|
-
export default function (server: Server, ctx: AppContext) {
|
9
|
-
createTemplate(server, ctx)
|
10
|
-
deleteTemplate(server, ctx)
|
11
|
-
listTemplates(server, ctx)
|
12
|
-
updateTemplate(server, ctx)
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.communication.listTemplates({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.communication.updateTemplate({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, input, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import AppContext from '../../../context'
|
2
|
-
import { Server } from '../../../lexicon'
|
3
|
-
import communication from './communication'
|
4
|
-
import moderation from './moderation'
|
5
|
-
|
6
|
-
export default function (server: Server, ctx: AppContext) {
|
7
|
-
communication(server, ctx)
|
8
|
-
moderation(server, ctx)
|
9
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethroughProcedure } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.emitEvent({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, input, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethroughProcedure(ctx, req, input.body, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.getEvent({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.getRecord({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.getRepo({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import AppContext from '../../../../context'
|
2
|
-
import { Server } from '../../../../lexicon'
|
3
|
-
import emitEvent from './emitEvent'
|
4
|
-
import getEvent from './getEvent'
|
5
|
-
import getRecord from './getRecord'
|
6
|
-
import getRepo from './getRepo'
|
7
|
-
import queryEvents from './queryEvents'
|
8
|
-
import queryStatuses from './queryStatuses'
|
9
|
-
import searchRepos from './searchRepos'
|
10
|
-
|
11
|
-
export default function (server: Server, ctx: AppContext) {
|
12
|
-
emitEvent(server, ctx)
|
13
|
-
getEvent(server, ctx)
|
14
|
-
getRecord(server, ctx)
|
15
|
-
getRepo(server, ctx)
|
16
|
-
queryEvents(server, ctx)
|
17
|
-
queryStatuses(server, ctx)
|
18
|
-
searchRepos(server, ctx)
|
19
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.queryEvents({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.queryStatuses({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Server } from '../../../../lexicon'
|
2
|
-
import AppContext from '../../../../context'
|
3
|
-
import { pipethrough } from '../../../../pipethrough'
|
4
|
-
|
5
|
-
export default function (server: Server, ctx: AppContext) {
|
6
|
-
server.tools.ozone.moderation.searchRepos({
|
7
|
-
auth: ctx.authVerifier.access,
|
8
|
-
handler: async ({ req, auth }) => {
|
9
|
-
const requester = auth.credentials.did
|
10
|
-
return pipethrough(ctx, req, requester)
|
11
|
-
},
|
12
|
-
})
|
13
|
-
}
|