@atproto/bsky 0.0.112 → 0.0.114
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.
- package/CHANGELOG.md +38 -0
- package/bin/migration-create.ts +2 -2
- package/dist/api/app/bsky/actor/getProfile.d.ts +1 -1
- package/dist/api/app/bsky/actor/getProfile.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getProfile.js +1 -1
- package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.d.ts +1 -1
- package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js +2 -2
- package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
- package/dist/api/app/bsky/actor/getSuggestions.d.ts +1 -1
- package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getSuggestions.js +1 -1
- package/dist/api/app/bsky/actor/getSuggestions.js.map +1 -1
- package/dist/api/app/bsky/actor/searchActors.d.ts +1 -1
- package/dist/api/app/bsky/actor/searchActors.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/searchActors.js +1 -1
- package/dist/api/app/bsky/actor/searchActors.js.map +1 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts +1 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js +1 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +1 -1
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts +1 -1
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getActorFeeds.js +2 -2
- package/dist/api/app/bsky/feed/getActorFeeds.js.map +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.d.ts +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js +6 -6
- package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +5 -5
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js +11 -9
- package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.d.ts +2 -2
- package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +6 -6
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.js.map +1 -1
- package/dist/api/app/bsky/feed/getLikes.d.ts +1 -1
- package/dist/api/app/bsky/feed/getLikes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getLikes.js +2 -2
- package/dist/api/app/bsky/feed/getLikes.js.map +1 -1
- package/dist/api/app/bsky/feed/getListFeed.d.ts +4 -4
- package/dist/api/app/bsky/feed/getListFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getListFeed.js +7 -7
- package/dist/api/app/bsky/feed/getListFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.d.ts +1 -1
- package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +2 -2
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/feed/getPosts.d.ts +1 -1
- package/dist/api/app/bsky/feed/getPosts.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPosts.js +1 -1
- package/dist/api/app/bsky/feed/getPosts.js.map +1 -1
- package/dist/api/app/bsky/feed/getQuotes.d.ts +1 -1
- package/dist/api/app/bsky/feed/getQuotes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getQuotes.js +6 -6
- package/dist/api/app/bsky/feed/getQuotes.js.map +1 -1
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts +1 -1
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getRepostedBy.js +1 -1
- package/dist/api/app/bsky/feed/getRepostedBy.js.map +1 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts +1 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.js.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.d.ts +4 -4
- package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js +6 -6
- package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
- package/dist/api/app/bsky/feed/searchPosts.d.ts +1 -1
- package/dist/api/app/bsky/feed/searchPosts.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
- package/dist/api/app/bsky/graph/getActorStarterPacks.d.ts +1 -1
- package/dist/api/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getActorStarterPacks.js +5 -5
- package/dist/api/app/bsky/graph/getActorStarterPacks.js.map +1 -1
- package/dist/api/app/bsky/graph/getBlocks.d.ts +1 -1
- package/dist/api/app/bsky/graph/getBlocks.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getBlocks.js.map +1 -1
- package/dist/api/app/bsky/graph/getFollowers.d.ts +1 -1
- package/dist/api/app/bsky/graph/getFollowers.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getFollowers.js +1 -1
- package/dist/api/app/bsky/graph/getFollowers.js.map +1 -1
- package/dist/api/app/bsky/graph/getFollows.d.ts +1 -1
- package/dist/api/app/bsky/graph/getFollows.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getFollows.js +1 -1
- package/dist/api/app/bsky/graph/getFollows.js.map +1 -1
- package/dist/api/app/bsky/graph/getKnownFollowers.d.ts +1 -1
- package/dist/api/app/bsky/graph/getKnownFollowers.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getKnownFollowers.js.map +1 -1
- package/dist/api/app/bsky/graph/getList.d.ts +1 -1
- package/dist/api/app/bsky/graph/getList.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getList.js +2 -2
- package/dist/api/app/bsky/graph/getList.js.map +1 -1
- package/dist/api/app/bsky/graph/getListBlocks.d.ts +1 -1
- package/dist/api/app/bsky/graph/getListBlocks.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getListBlocks.js.map +1 -1
- package/dist/api/app/bsky/graph/getListMutes.d.ts +1 -1
- package/dist/api/app/bsky/graph/getListMutes.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getListMutes.js.map +1 -1
- package/dist/api/app/bsky/graph/getLists.d.ts +1 -1
- package/dist/api/app/bsky/graph/getLists.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getLists.js.map +1 -1
- package/dist/api/app/bsky/graph/getMutes.d.ts +1 -1
- package/dist/api/app/bsky/graph/getMutes.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getMutes.js.map +1 -1
- package/dist/api/app/bsky/graph/getRelationships.d.ts +1 -1
- package/dist/api/app/bsky/graph/getRelationships.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getStarterPack.d.ts +1 -1
- package/dist/api/app/bsky/graph/getStarterPack.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getStarterPack.js.map +1 -1
- package/dist/api/app/bsky/graph/getStarterPacks.d.ts +1 -1
- package/dist/api/app/bsky/graph/getStarterPacks.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getStarterPacks.js +1 -1
- package/dist/api/app/bsky/graph/getStarterPacks.js.map +1 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts +1 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/api/app/bsky/graph/muteActor.d.ts +1 -1
- package/dist/api/app/bsky/graph/muteActor.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/muteActorList.d.ts +1 -1
- package/dist/api/app/bsky/graph/muteActorList.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/muteThread.d.ts +1 -1
- package/dist/api/app/bsky/graph/muteThread.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/searchStarterPacks.d.ts +1 -1
- package/dist/api/app/bsky/graph/searchStarterPacks.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/searchStarterPacks.js +2 -2
- package/dist/api/app/bsky/graph/searchStarterPacks.js.map +1 -1
- package/dist/api/app/bsky/graph/unmuteActor.d.ts +1 -1
- package/dist/api/app/bsky/graph/unmuteActor.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts +1 -1
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts.map +1 -1
- package/dist/api/app/bsky/graph/unmuteThread.d.ts +1 -1
- package/dist/api/app/bsky/graph/unmuteThread.d.ts.map +1 -1
- package/dist/api/app/bsky/labeler/getServices.d.ts +1 -1
- package/dist/api/app/bsky/labeler/getServices.d.ts.map +1 -1
- package/dist/api/app/bsky/labeler/getServices.js.map +1 -1
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts +1 -1
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js.map +1 -1
- package/dist/api/app/bsky/notification/listNotifications.d.ts +1 -1
- package/dist/api/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/listNotifications.js +1 -1
- package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/api/app/bsky/notification/putPreferences.d.ts +1 -1
- package/dist/api/app/bsky/notification/putPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/updateSeen.d.ts +1 -1
- package/dist/api/app/bsky/notification/updateSeen.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/updateSeen.js +2 -5
- package/dist/api/app/bsky/notification/updateSeen.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getConfig.d.ts +1 -1
- package/dist/api/app/bsky/unspecced/getConfig.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts +1 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +1 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/getTrendingTopics.d.ts +1 -1
- package/dist/api/app/bsky/unspecced/getTrendingTopics.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/getTrendingTopics.js +1 -1
- package/dist/api/app/bsky/unspecced/getTrendingTopics.js.map +1 -1
- package/dist/api/blob-dispatcher.d.ts.map +1 -1
- package/dist/api/blob-dispatcher.js +1 -1
- package/dist/api/blob-dispatcher.js.map +1 -1
- package/dist/api/blob-resolver.d.ts +3 -3
- package/dist/api/blob-resolver.d.ts.map +1 -1
- package/dist/api/blob-resolver.js +6 -4
- package/dist/api/blob-resolver.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.d.ts +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.js.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/com/atproto/label/queryLabels.d.ts +1 -1
- package/dist/api/com/atproto/label/queryLabels.d.ts.map +1 -1
- package/dist/api/com/atproto/label/queryLabels.js.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/api/com/atproto/repo/getRecord.d.ts.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/com/atproto/temp/fetchLabels.d.ts +1 -1
- package/dist/api/com/atproto/temp/fetchLabels.d.ts.map +1 -1
- package/dist/api/com/atproto/temp/fetchLabels.js.map +1 -1
- package/dist/api/health.d.ts +3 -3
- package/dist/api/health.d.ts.map +1 -1
- package/dist/api/health.js +2 -5
- package/dist/api/health.js.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +20 -20
- package/dist/api/index.js.map +1 -1
- package/dist/api/util.d.ts +1 -0
- package/dist/api/util.d.ts.map +1 -1
- package/dist/api/util.js +2 -1
- package/dist/api/util.js.map +1 -1
- package/dist/api/well-known.d.ts +3 -3
- package/dist/api/well-known.d.ts.map +1 -1
- package/dist/api/well-known.js +2 -5
- package/dist/api/well-known.js.map +1 -1
- package/dist/auth-verifier.d.ts +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +3 -3
- package/dist/auth-verifier.js.map +1 -1
- package/dist/bsync.d.ts +2 -2
- package/dist/bsync.d.ts.map +1 -1
- package/dist/bsync.js +1 -1
- package/dist/bsync.js.map +1 -1
- package/dist/context.d.ts +7 -8
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -2
- package/dist/context.js.map +1 -1
- package/dist/courier.d.ts +2 -2
- package/dist/courier.d.ts.map +1 -1
- package/dist/courier.js +1 -1
- package/dist/courier.js.map +1 -1
- package/dist/data-plane/bsync/index.d.ts +1 -1
- package/dist/data-plane/bsync/index.d.ts.map +1 -1
- package/dist/data-plane/bsync/index.js +6 -6
- package/dist/data-plane/bsync/index.js.map +1 -1
- package/dist/data-plane/client.d.ts.map +1 -1
- package/dist/data-plane/client.js +1 -1
- package/dist/data-plane/client.js.map +1 -1
- package/dist/data-plane/server/background.d.ts.map +1 -1
- package/dist/data-plane/server/background.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +26 -27
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/db.d.ts +2 -2
- package/dist/data-plane/server/db/db.d.ts.map +1 -1
- package/dist/data-plane/server/db/db.js +6 -6
- package/dist/data-plane/server/db/db.js.map +1 -1
- package/dist/data-plane/server/db/util.d.ts +1 -1
- package/dist/data-plane/server/db/util.d.ts.map +1 -1
- package/dist/data-plane/server/index.d.ts +2 -2
- package/dist/data-plane/server/index.d.ts.map +1 -1
- package/dist/data-plane/server/index.js +4 -4
- package/dist/data-plane/server/index.js.map +1 -1
- package/dist/data-plane/server/indexing/index.d.ts +14 -14
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +16 -16
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/block.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/block.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/block.js +2 -5
- package/dist/data-plane/server/indexing/plugins/block.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/chat-declaration.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/chat-declaration.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/chat-declaration.js +2 -5
- package/dist/data-plane/server/indexing/plugins/chat-declaration.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/feed-generator.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/feed-generator.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/feed-generator.js +2 -5
- package/dist/data-plane/server/indexing/plugins/feed-generator.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/follow.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/follow.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/follow.js +2 -5
- package/dist/data-plane/server/indexing/plugins/follow.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/labeler.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/labeler.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/labeler.js +2 -5
- package/dist/data-plane/server/indexing/plugins/labeler.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/like.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/like.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/like.js +2 -5
- package/dist/data-plane/server/indexing/plugins/like.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list-block.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/list-block.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list-block.js +2 -5
- package/dist/data-plane/server/indexing/plugins/list-block.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list-item.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/list-item.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list-item.js +3 -6
- package/dist/data-plane/server/indexing/plugins/list-item.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list.d.ts +3 -3
- package/dist/data-plane/server/indexing/plugins/list.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/list.js +2 -5
- package/dist/data-plane/server/indexing/plugins/list.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/post-gate.d.ts +3 -3
- package/dist/data-plane/server/indexing/plugins/post-gate.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/post-gate.js +2 -5
- package/dist/data-plane/server/indexing/plugins/post-gate.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/post.d.ts +3 -3
- package/dist/data-plane/server/indexing/plugins/post.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/post.js +21 -24
- package/dist/data-plane/server/indexing/plugins/post.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/profile.d.ts +3 -3
- package/dist/data-plane/server/indexing/plugins/profile.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/profile.js +2 -5
- package/dist/data-plane/server/indexing/plugins/profile.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/repost.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/repost.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/repost.js +2 -5
- package/dist/data-plane/server/indexing/plugins/repost.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/starter-pack.d.ts +2 -2
- package/dist/data-plane/server/indexing/plugins/starter-pack.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/starter-pack.js +2 -5
- package/dist/data-plane/server/indexing/plugins/starter-pack.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/thread-gate.d.ts +3 -3
- package/dist/data-plane/server/indexing/plugins/thread-gate.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/thread-gate.js +2 -5
- package/dist/data-plane/server/indexing/plugins/thread-gate.js.map +1 -1
- package/dist/data-plane/server/indexing/processor.d.ts +2 -2
- package/dist/data-plane/server/indexing/processor.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/processor.js +1 -1
- package/dist/data-plane/server/indexing/processor.js.map +1 -1
- package/dist/data-plane/server/routes/feeds.d.ts.map +1 -1
- package/dist/data-plane/server/routes/feeds.js +1 -1
- package/dist/data-plane/server/routes/feeds.js.map +1 -1
- package/dist/data-plane/server/routes/follows.d.ts.map +1 -1
- package/dist/data-plane/server/routes/follows.js +1 -1
- package/dist/data-plane/server/routes/follows.js.map +1 -1
- package/dist/data-plane/server/routes/identity.d.ts +1 -1
- package/dist/data-plane/server/routes/identity.d.ts.map +1 -1
- package/dist/data-plane/server/routes/identity.js +1 -1
- package/dist/data-plane/server/routes/identity.js.map +1 -1
- package/dist/data-plane/server/routes/index.d.ts.map +1 -1
- package/dist/data-plane/server/routes/index.js +1 -1
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/interactions.d.ts.map +1 -1
- package/dist/data-plane/server/routes/interactions.js +11 -11
- package/dist/data-plane/server/routes/interactions.js.map +1 -1
- package/dist/data-plane/server/routes/labels.d.ts.map +1 -1
- package/dist/data-plane/server/routes/labels.js.map +1 -1
- package/dist/data-plane/server/routes/likes.d.ts.map +1 -1
- package/dist/data-plane/server/routes/likes.js +1 -2
- package/dist/data-plane/server/routes/likes.js.map +1 -1
- package/dist/data-plane/server/routes/lists.d.ts.map +1 -1
- package/dist/data-plane/server/routes/lists.js +2 -2
- package/dist/data-plane/server/routes/lists.js.map +1 -1
- package/dist/data-plane/server/routes/mutes.d.ts.map +1 -1
- package/dist/data-plane/server/routes/mutes.js +7 -7
- package/dist/data-plane/server/routes/mutes.js.map +1 -1
- package/dist/data-plane/server/routes/notifs.js +2 -2
- package/dist/data-plane/server/routes/notifs.js.map +1 -1
- package/dist/data-plane/server/routes/posts.d.ts.map +1 -1
- package/dist/data-plane/server/routes/posts.js +1 -1
- package/dist/data-plane/server/routes/posts.js.map +1 -1
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +4 -4
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/data-plane/server/routes/records.d.ts.map +1 -1
- package/dist/data-plane/server/routes/records.js +7 -7
- package/dist/data-plane/server/routes/records.js.map +1 -1
- package/dist/data-plane/server/routes/relationships.d.ts.map +1 -1
- package/dist/data-plane/server/routes/relationships.js +60 -40
- package/dist/data-plane/server/routes/relationships.js.map +1 -1
- package/dist/data-plane/server/routes/reposts.d.ts.map +1 -1
- package/dist/data-plane/server/routes/reposts.js +1 -2
- package/dist/data-plane/server/routes/reposts.js.map +1 -1
- package/dist/data-plane/server/routes/suggestions.d.ts.map +1 -1
- package/dist/data-plane/server/routes/suggestions.js.map +1 -1
- package/dist/data-plane/server/subscription.d.ts +3 -3
- package/dist/data-plane/server/subscription.d.ts.map +1 -1
- package/dist/data-plane/server/subscription.js +2 -2
- package/dist/data-plane/server/subscription.js.map +1 -1
- package/dist/data-plane/server/util.d.ts +1 -1
- package/dist/data-plane/server/util.d.ts.map +1 -1
- package/dist/data-plane/server/util.js +4 -4
- package/dist/data-plane/server/util.js.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js.map +1 -1
- package/dist/feature-gates.d.ts.map +1 -1
- package/dist/feature-gates.js.map +1 -1
- package/dist/hydration/feed.d.ts +3 -3
- package/dist/hydration/feed.d.ts.map +1 -1
- package/dist/hydration/feed.js +1 -1
- package/dist/hydration/feed.js.map +1 -1
- package/dist/hydration/graph.d.ts +11 -8
- package/dist/hydration/graph.d.ts.map +1 -1
- package/dist/hydration/graph.js +17 -19
- package/dist/hydration/graph.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +7 -5
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +53 -21
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/label.d.ts +2 -2
- package/dist/hydration/label.d.ts.map +1 -1
- package/dist/hydration/label.js +1 -1
- package/dist/hydration/label.js.map +1 -1
- package/dist/hydration/util.d.ts.map +1 -1
- package/dist/hydration/util.js +2 -2
- package/dist/hydration/util.js.map +1 -1
- package/dist/image/index.d.ts +1 -1
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/server.d.ts.map +1 -1
- package/dist/image/server.js +3 -3
- package/dist/image/server.js.map +1 -1
- package/dist/image/sharp.d.ts.map +1 -1
- package/dist/image/sharp.js +1 -1
- package/dist/image/sharp.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +56 -2
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +32 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +19 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +10 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/logger.js +2 -5
- package/dist/logger.js.map +1 -1
- package/dist/redis.js +5 -5
- package/dist/redis.js.map +1 -1
- package/dist/util/http.d.ts.map +1 -1
- package/dist/util/http.js.map +1 -1
- package/dist/util/uris.d.ts.map +1 -1
- package/dist/views/index.d.ts +13 -8
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +47 -27
- package/dist/views/index.js.map +1 -1
- package/dist/views/types.d.ts +3 -3
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/util.d.ts +1 -1
- package/dist/views/util.d.ts.map +1 -1
- package/dist/views/util.js +1 -1
- package/dist/views/util.js.map +1 -1
- package/package.json +20 -17
- package/src/api/app/bsky/actor/getProfile.ts +5 -5
- package/src/api/app/bsky/actor/getProfiles.ts +6 -6
- package/src/api/app/bsky/actor/getSuggestions.ts +10 -9
- package/src/api/app/bsky/actor/searchActors.ts +6 -6
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +5 -5
- package/src/api/app/bsky/feed/getActorFeeds.ts +7 -7
- package/src/api/app/bsky/feed/getActorLikes.ts +9 -9
- package/src/api/app/bsky/feed/getAuthorFeed.ts +18 -12
- package/src/api/app/bsky/feed/getFeed.ts +17 -17
- package/src/api/app/bsky/feed/getFeedGenerator.ts +3 -3
- package/src/api/app/bsky/feed/getFeedGenerators.ts +4 -4
- package/src/api/app/bsky/feed/getLikes.ts +6 -7
- package/src/api/app/bsky/feed/getListFeed.ts +9 -9
- package/src/api/app/bsky/feed/getPostThread.ts +7 -7
- package/src/api/app/bsky/feed/getPosts.ts +6 -6
- package/src/api/app/bsky/feed/getQuotes.ts +7 -7
- package/src/api/app/bsky/feed/getRepostedBy.ts +5 -5
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +2 -2
- package/src/api/app/bsky/feed/getTimeline.ts +9 -9
- package/src/api/app/bsky/feed/searchPosts.ts +6 -6
- package/src/api/app/bsky/graph/getActorStarterPacks.ts +7 -7
- package/src/api/app/bsky/graph/getBlocks.ts +4 -4
- package/src/api/app/bsky/graph/getFollowers.ts +6 -6
- package/src/api/app/bsky/graph/getFollows.ts +6 -6
- package/src/api/app/bsky/graph/getKnownFollowers.ts +2 -2
- package/src/api/app/bsky/graph/getList.ts +10 -10
- package/src/api/app/bsky/graph/getListBlocks.ts +4 -4
- package/src/api/app/bsky/graph/getListMutes.ts +4 -4
- package/src/api/app/bsky/graph/getLists.ts +4 -4
- package/src/api/app/bsky/graph/getMutes.ts +3 -3
- package/src/api/app/bsky/graph/getRelationships.ts +1 -1
- package/src/api/app/bsky/graph/getStarterPack.ts +4 -4
- package/src/api/app/bsky/graph/getStarterPacks.ts +5 -5
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +6 -5
- package/src/api/app/bsky/graph/muteActor.ts +1 -1
- package/src/api/app/bsky/graph/muteActorList.ts +1 -1
- package/src/api/app/bsky/graph/muteThread.ts +1 -1
- package/src/api/app/bsky/graph/searchStarterPacks.ts +7 -7
- package/src/api/app/bsky/graph/unmuteActor.ts +1 -1
- package/src/api/app/bsky/graph/unmuteActorList.ts +1 -1
- package/src/api/app/bsky/graph/unmuteThread.ts +1 -1
- package/src/api/app/bsky/labeler/getServices.ts +2 -2
- package/src/api/app/bsky/notification/getUnreadCount.ts +2 -2
- package/src/api/app/bsky/notification/listNotifications.ts +6 -6
- package/src/api/app/bsky/notification/putPreferences.ts +1 -1
- package/src/api/app/bsky/notification/registerPush.ts +1 -1
- package/src/api/app/bsky/notification/updateSeen.ts +3 -3
- package/src/api/app/bsky/unspecced/getConfig.ts +1 -1
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +2 -2
- package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +1 -1
- package/src/api/app/bsky/unspecced/getTrendingTopics.ts +7 -7
- package/src/api/blob-dispatcher.ts +1 -2
- package/src/api/blob-resolver.ts +15 -13
- package/src/api/com/atproto/admin/getAccountInfos.ts +2 -2
- package/src/api/com/atproto/admin/getSubjectStatus.ts +1 -1
- package/src/api/com/atproto/admin/updateSubjectStatus.ts +2 -2
- package/src/api/com/atproto/identity/resolveHandle.ts +2 -2
- package/src/api/com/atproto/label/queryLabels.ts +2 -2
- package/src/api/com/atproto/repo/getRecord.ts +2 -2
- package/src/api/com/atproto/temp/fetchLabels.ts +2 -2
- package/src/api/health.ts +4 -4
- package/src/api/index.ts +21 -21
- package/src/api/util.ts +1 -0
- package/src/api/well-known.ts +4 -4
- package/src/auth-verifier.ts +6 -6
- package/src/bsync.ts +3 -3
- package/src/context.ts +8 -10
- package/src/courier.ts +3 -3
- package/src/data-plane/bsync/index.ts +6 -6
- package/src/data-plane/client.ts +1 -1
- package/src/data-plane/server/background.ts +1 -1
- package/src/data-plane/server/db/database-schema.ts +26 -28
- package/src/data-plane/server/db/db.ts +6 -6
- package/src/data-plane/server/db/util.ts +2 -2
- package/src/data-plane/server/index.ts +5 -5
- package/src/data-plane/server/indexing/index.ts +21 -21
- package/src/data-plane/server/indexing/plugins/block.ts +4 -4
- package/src/data-plane/server/indexing/plugins/chat-declaration.ts +4 -4
- package/src/data-plane/server/indexing/plugins/feed-generator.ts +4 -4
- package/src/data-plane/server/indexing/plugins/follow.ts +5 -5
- package/src/data-plane/server/indexing/plugins/labeler.ts +4 -4
- package/src/data-plane/server/indexing/plugins/like.ts +5 -5
- package/src/data-plane/server/indexing/plugins/list-block.ts +4 -4
- package/src/data-plane/server/indexing/plugins/list-item.ts +5 -5
- package/src/data-plane/server/indexing/plugins/list.ts +5 -5
- package/src/data-plane/server/indexing/plugins/post-gate.ts +5 -5
- package/src/data-plane/server/indexing/plugins/post.ts +18 -18
- package/src/data-plane/server/indexing/plugins/profile.ts +5 -5
- package/src/data-plane/server/indexing/plugins/repost.ts +4 -4
- package/src/data-plane/server/indexing/plugins/starter-pack.ts +4 -4
- package/src/data-plane/server/indexing/plugins/thread-gate.ts +5 -5
- package/src/data-plane/server/indexing/processor.ts +3 -3
- package/src/data-plane/server/routes/feeds.ts +1 -1
- package/src/data-plane/server/routes/follows.ts +2 -2
- package/src/data-plane/server/routes/identity.ts +2 -2
- package/src/data-plane/server/routes/index.ts +2 -2
- package/src/data-plane/server/routes/interactions.ts +14 -12
- package/src/data-plane/server/routes/labels.ts +2 -2
- package/src/data-plane/server/routes/likes.ts +2 -3
- package/src/data-plane/server/routes/lists.ts +3 -3
- package/src/data-plane/server/routes/mutes.ts +3 -3
- package/src/data-plane/server/routes/notifs.ts +3 -3
- package/src/data-plane/server/routes/posts.ts +2 -2
- package/src/data-plane/server/routes/profile.ts +6 -6
- package/src/data-plane/server/routes/quotes.ts +1 -1
- package/src/data-plane/server/routes/records.ts +7 -7
- package/src/data-plane/server/routes/relationships.ts +74 -50
- package/src/data-plane/server/routes/reposts.ts +2 -3
- package/src/data-plane/server/routes/suggestions.ts +1 -1
- package/src/data-plane/server/subscription.ts +3 -3
- package/src/data-plane/server/util.ts +2 -2
- package/src/error.ts +1 -1
- package/src/feature-gates.ts +0 -2
- package/src/hydration/feed.ts +9 -9
- package/src/hydration/graph.ts +27 -27
- package/src/hydration/hydrator.ts +92 -45
- package/src/hydration/label.ts +4 -4
- package/src/hydration/util.ts +2 -2
- package/src/image/index.ts +1 -1
- package/src/image/server.ts +12 -13
- package/src/image/sharp.ts +2 -2
- package/src/index.ts +23 -23
- package/src/lexicon/lexicons.ts +37 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +36 -0
- package/src/lexicon/types/app/bsky/feed/postgate.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/logger.ts +1 -1
- package/src/redis.ts +1 -1
- package/src/util/http.ts +1 -1
- package/src/util/uris.ts +1 -1
- package/src/views/index.ts +77 -45
- package/src/views/types.ts +9 -9
- package/src/views/util.ts +4 -4
- package/tests/_util.ts +4 -5
- package/tests/admin/admin-auth.test.ts +2 -2
- package/tests/admin/moderation.test.ts +1 -1
- package/tests/auth.test.ts +1 -1
- package/tests/blob-resolver.test.ts +2 -2
- package/tests/data-plane/duplicate-records.test.ts +3 -3
- package/tests/data-plane/handle-invalidation.test.ts +2 -2
- package/tests/data-plane/indexing.test.ts +8 -8
- package/tests/data-plane/subscription.test.ts +1 -1
- package/tests/data-plane/thread-mutes.test.ts +1 -1
- package/tests/entryway-auth.test.ts +5 -5
- package/tests/feed-generation.test.ts +8 -8
- package/tests/hydration/util.test.ts +1 -1
- package/tests/image/server.test.ts +2 -2
- package/tests/image/uri.test.ts +2 -2
- package/tests/label-hydration.test.ts +6 -3
- package/tests/postgates.test.ts +2 -3
- package/tests/query-labels.test.ts +1 -1
- package/tests/seed/feed-hidden-replies.ts +1 -1
- package/tests/seed/known-followers.ts +1 -1
- package/tests/seed/postgates.ts +1 -1
- package/tests/server.test.ts +2 -2
- package/tests/views/account-deactivation.test.ts +1 -1
- package/tests/views/actor-likes.test.ts +1 -1
- package/tests/views/actor-search.test.ts +2 -2
- package/tests/views/author-feed.test.ts +11 -11
- package/tests/views/block-lists.test.ts +3 -3
- package/tests/views/blocks.test.ts +4 -4
- package/tests/views/feed-hidden-replies.test.ts +2 -3
- package/tests/views/feed-view-post.test.ts +2 -2
- package/tests/views/follows.test.ts +2 -2
- package/tests/views/known-followers.test.ts +2 -3
- package/tests/views/labeler-service.test.ts +2 -2
- package/tests/views/labels-needs-review.test.ts +2 -2
- package/tests/views/labels-takedown.test.ts +30 -1
- package/tests/views/likes.test.ts +2 -2
- package/tests/views/list-feed.test.ts +2 -2
- package/tests/views/lists.test.ts +2 -2
- package/tests/views/mute-lists.test.ts +3 -3
- package/tests/views/mutes.test.ts +2 -2
- package/tests/views/notifications.test.ts +3 -3
- package/tests/views/posts.test.ts +3 -3
- package/tests/views/profile.test.ts +3 -3
- package/tests/views/quotes.test.ts +2 -2
- package/tests/views/reposts.test.ts +2 -2
- package/tests/views/starter-packs.test.ts +3 -3
- package/tests/views/suggested-follows.test.ts +2 -2
- package/tests/views/suggestions.test.ts +2 -2
- package/tests/views/thread.test.ts +2 -2
- package/tests/views/threadgating.test.ts +3 -3
- package/tests/views/timeline.test.ts +5 -5
package/src/views/index.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { AtUri, INVALID_HANDLE, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
2
1
|
import { mapDefined } from '@atproto/common'
|
|
3
|
-
import {
|
|
2
|
+
import { AtUri, INVALID_HANDLE, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
|
+
import { ProfileViewerState } from '../hydration/actor'
|
|
4
|
+
import { FeedItem, Post, Repost } from '../hydration/feed'
|
|
4
5
|
import { HydrationState } from '../hydration/hydrator'
|
|
6
|
+
import { Label } from '../hydration/label'
|
|
7
|
+
import { RecordInfo } from '../hydration/util'
|
|
8
|
+
import { ImageUriBuilder } from '../image/uri'
|
|
5
9
|
import { ids } from '../lexicon/lexicons'
|
|
6
10
|
import {
|
|
7
|
-
ProfileViewDetailed,
|
|
8
11
|
ProfileView,
|
|
9
12
|
ProfileViewBasic,
|
|
10
|
-
|
|
13
|
+
ProfileViewDetailed,
|
|
14
|
+
ViewerState as ProfileViewer,
|
|
11
15
|
} from '../lexicon/types/app/bsky/actor/defs'
|
|
12
16
|
import {
|
|
13
17
|
BlockedPost,
|
|
@@ -15,14 +19,15 @@ import {
|
|
|
15
19
|
GeneratorView,
|
|
16
20
|
NotFoundPost,
|
|
17
21
|
PostView,
|
|
18
|
-
ReasonRepost,
|
|
19
22
|
ReasonPin,
|
|
23
|
+
ReasonRepost,
|
|
20
24
|
ReplyRef,
|
|
21
25
|
ThreadViewPost,
|
|
22
26
|
ThreadgateView,
|
|
23
27
|
isPostView,
|
|
24
28
|
} from '../lexicon/types/app/bsky/feed/defs'
|
|
25
29
|
import { isRecord as isPostRecord } from '../lexicon/types/app/bsky/feed/post'
|
|
30
|
+
import { isListRule } from '../lexicon/types/app/bsky/feed/threadgate'
|
|
26
31
|
import {
|
|
27
32
|
ListView,
|
|
28
33
|
ListViewBasic,
|
|
@@ -30,19 +35,23 @@ import {
|
|
|
30
35
|
StarterPackViewBasic,
|
|
31
36
|
} from '../lexicon/types/app/bsky/graph/defs'
|
|
32
37
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
parsePostgate,
|
|
37
|
-
} from './util'
|
|
38
|
-
import { uriToDid as creatorFromUri, safePinnedPost } from '../util/uris'
|
|
39
|
-
import { isListRule } from '../lexicon/types/app/bsky/feed/threadgate'
|
|
38
|
+
LabelerView,
|
|
39
|
+
LabelerViewDetailed,
|
|
40
|
+
} from '../lexicon/types/app/bsky/labeler/defs'
|
|
40
41
|
import { isSelfLabels } from '../lexicon/types/com/atproto/label/defs'
|
|
42
|
+
import { Notification } from '../proto/bsky_pb'
|
|
43
|
+
import {
|
|
44
|
+
postUriToPostgateUri,
|
|
45
|
+
postUriToThreadgateUri,
|
|
46
|
+
safePinnedPost,
|
|
47
|
+
uriToDid,
|
|
48
|
+
uriToDid as creatorFromUri,
|
|
49
|
+
} from '../util/uris'
|
|
41
50
|
import {
|
|
42
51
|
Embed,
|
|
43
52
|
EmbedBlocked,
|
|
44
|
-
EmbedNotFound,
|
|
45
53
|
EmbedDetached,
|
|
54
|
+
EmbedNotFound,
|
|
46
55
|
EmbedView,
|
|
47
56
|
ExternalEmbed,
|
|
48
57
|
ExternalEmbedView,
|
|
@@ -64,15 +73,12 @@ import {
|
|
|
64
73
|
isRecordWithMedia,
|
|
65
74
|
isVideoEmbed,
|
|
66
75
|
} from './types'
|
|
67
|
-
import { Label } from '../hydration/label'
|
|
68
|
-
import { FeedItem, Post, Repost } from '../hydration/feed'
|
|
69
|
-
import { RecordInfo } from '../hydration/util'
|
|
70
76
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
VideoUriBuilder,
|
|
78
|
+
cidFromBlobJson,
|
|
79
|
+
parsePostgate,
|
|
80
|
+
parseThreadGate,
|
|
81
|
+
} from './util'
|
|
76
82
|
|
|
77
83
|
export class Views {
|
|
78
84
|
public imgUriBuilder: ImageUriBuilder = this.opts.imgUriBuilder
|
|
@@ -101,9 +107,10 @@ export class Views {
|
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
actorIsTakendown(did: string, state: HydrationState): boolean {
|
|
104
|
-
|
|
105
|
-
if (
|
|
106
|
-
if (
|
|
110
|
+
const actor = state.actors?.get(did)
|
|
111
|
+
if (actor?.takedownRef) return true
|
|
112
|
+
if (actor?.upstreamStatus === 'takendown') return true
|
|
113
|
+
if (actor?.upstreamStatus === 'suspended') return true
|
|
107
114
|
if (state.labels?.get(did)?.isTakendown) return true
|
|
108
115
|
return false
|
|
109
116
|
}
|
|
@@ -111,18 +118,45 @@ export class Views {
|
|
|
111
118
|
viewerBlockExists(did: string, state: HydrationState): boolean {
|
|
112
119
|
const actor = state.profileViewers?.get(did)
|
|
113
120
|
if (!actor) return false
|
|
114
|
-
return (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
return !!(
|
|
122
|
+
actor.blockedBy ||
|
|
123
|
+
actor.blocking ||
|
|
124
|
+
this.blockedByList(actor, state) ||
|
|
125
|
+
this.blockingByList(actor, state)
|
|
119
126
|
)
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
viewerMuteExists(did: string, state: HydrationState): boolean {
|
|
123
130
|
const actor = state.profileViewers?.get(did)
|
|
124
131
|
if (!actor) return false
|
|
125
|
-
return actor.muted ||
|
|
132
|
+
return !!(actor.muted || this.mutedByList(actor, state))
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
blockingByList(viewer: ProfileViewerState, state: HydrationState) {
|
|
136
|
+
return (
|
|
137
|
+
viewer.blockingByList && this.recordActive(viewer.blockingByList, state)
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
blockedByList(viewer: ProfileViewerState, state: HydrationState) {
|
|
142
|
+
return (
|
|
143
|
+
viewer.blockedByList && this.recordActive(viewer.blockedByList, state)
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
mutedByList(viewer: ProfileViewerState, state: HydrationState) {
|
|
148
|
+
return viewer.mutedByList && this.recordActive(viewer.mutedByList, state)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
recordActive(uri: string, state: HydrationState) {
|
|
152
|
+
const did = uriToDid(uri)
|
|
153
|
+
const actor = state.actors?.get(did)
|
|
154
|
+
if (!actor || this.actorIsTakendown(did, state)) {
|
|
155
|
+
// actor may not be present when takedowns are eagerly applied during hydration.
|
|
156
|
+
// so it's important to _try_ to hydrate the actor for records checked this way.
|
|
157
|
+
return
|
|
158
|
+
}
|
|
159
|
+
return uri
|
|
126
160
|
}
|
|
127
161
|
|
|
128
162
|
viewerSeesNeedsReview(did: string, state: HydrationState): boolean {
|
|
@@ -276,24 +310,22 @@ export class Views {
|
|
|
276
310
|
}
|
|
277
311
|
}
|
|
278
312
|
|
|
279
|
-
profileViewer(
|
|
280
|
-
did: string,
|
|
281
|
-
state: HydrationState,
|
|
282
|
-
): ProfileViewerState | undefined {
|
|
313
|
+
profileViewer(did: string, state: HydrationState): ProfileViewer | undefined {
|
|
283
314
|
const viewer = state.profileViewers?.get(did)
|
|
284
315
|
if (!viewer) return
|
|
285
|
-
const
|
|
286
|
-
const
|
|
316
|
+
const blockedByList = this.blockedByList(viewer, state)
|
|
317
|
+
const blockedByUri = viewer.blockedBy || blockedByList
|
|
318
|
+
const blockingByList = this.blockingByList(viewer, state)
|
|
319
|
+
const blockingUri = viewer.blocking || blockingByList
|
|
287
320
|
const block = !!blockedByUri || !!blockingUri
|
|
321
|
+
const mutedByList = this.mutedByList(viewer, state)
|
|
288
322
|
return {
|
|
289
|
-
muted: viewer.muted ||
|
|
290
|
-
mutedByList:
|
|
291
|
-
? this.listBasic(viewer.mutedByList, state)
|
|
292
|
-
: undefined,
|
|
323
|
+
muted: !!(viewer.muted || mutedByList),
|
|
324
|
+
mutedByList: mutedByList ? this.listBasic(mutedByList, state) : undefined,
|
|
293
325
|
blockedBy: !!blockedByUri,
|
|
294
326
|
blocking: blockingUri,
|
|
295
|
-
blockingByList:
|
|
296
|
-
? this.listBasic(
|
|
327
|
+
blockingByList: blockingByList
|
|
328
|
+
? this.listBasic(blockingByList, state)
|
|
297
329
|
: undefined,
|
|
298
330
|
following: viewer.following && !block ? viewer.following : undefined,
|
|
299
331
|
followedBy: viewer.followedBy && !block ? viewer.followedBy : undefined,
|
|
@@ -323,11 +355,11 @@ export class Views {
|
|
|
323
355
|
blockedProfileViewer(
|
|
324
356
|
did: string,
|
|
325
357
|
state: HydrationState,
|
|
326
|
-
):
|
|
358
|
+
): ProfileViewer | undefined {
|
|
327
359
|
const viewer = state.profileViewers?.get(did)
|
|
328
360
|
if (!viewer) return
|
|
329
|
-
const blockedByUri = viewer.blockedBy ||
|
|
330
|
-
const blockingUri = viewer.blocking ||
|
|
361
|
+
const blockedByUri = viewer.blockedBy || this.blockedByList(viewer, state)
|
|
362
|
+
const blockingUri = viewer.blocking || this.blockingByList(viewer, state)
|
|
331
363
|
return {
|
|
332
364
|
blockedBy: !!blockedByUri,
|
|
333
365
|
blocking: blockingUri,
|
package/src/views/types.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Main as ImagesEmbed,
|
|
3
|
-
View as ImagesEmbedView,
|
|
4
|
-
} from '../lexicon/types/app/bsky/embed/images'
|
|
5
|
-
import {
|
|
6
|
-
Main as VideoEmbed,
|
|
7
|
-
View as VideoEmbedView,
|
|
8
|
-
} from '../lexicon/types/app/bsky/embed/video'
|
|
9
1
|
import {
|
|
10
2
|
Main as ExternalEmbed,
|
|
11
3
|
View as ExternalEmbedView,
|
|
12
4
|
} from '../lexicon/types/app/bsky/embed/external'
|
|
5
|
+
import {
|
|
6
|
+
Main as ImagesEmbed,
|
|
7
|
+
View as ImagesEmbedView,
|
|
8
|
+
} from '../lexicon/types/app/bsky/embed/images'
|
|
13
9
|
import {
|
|
14
10
|
Main as RecordEmbed,
|
|
15
11
|
View as RecordEmbedView,
|
|
@@ -19,6 +15,10 @@ import {
|
|
|
19
15
|
Main as RecordWithMedia,
|
|
20
16
|
View as RecordWithMediaView,
|
|
21
17
|
} from '../lexicon/types/app/bsky/embed/recordWithMedia'
|
|
18
|
+
import {
|
|
19
|
+
Main as VideoEmbed,
|
|
20
|
+
View as VideoEmbedView,
|
|
21
|
+
} from '../lexicon/types/app/bsky/embed/video'
|
|
22
22
|
import {
|
|
23
23
|
BlockedPost,
|
|
24
24
|
GeneratorView,
|
|
@@ -47,8 +47,8 @@ export type {
|
|
|
47
47
|
Main as RecordEmbed,
|
|
48
48
|
View as RecordEmbedView,
|
|
49
49
|
ViewBlocked as EmbedBlocked,
|
|
50
|
-
ViewNotFound as EmbedNotFound,
|
|
51
50
|
ViewDetached as EmbedDetached,
|
|
51
|
+
ViewNotFound as EmbedNotFound,
|
|
52
52
|
ViewRecord as PostEmbedView,
|
|
53
53
|
} from '../lexicon/types/app/bsky/embed/record'
|
|
54
54
|
export { isMain as isRecordEmbed } from '../lexicon/types/app/bsky/embed/record'
|
package/src/views/util.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as util from 'node:util'
|
|
2
2
|
import { BlobRef } from '@atproto/lexicon'
|
|
3
3
|
import { Record as PostRecord } from '../lexicon/types/app/bsky/feed/post'
|
|
4
|
+
import {
|
|
5
|
+
Record as PostgateRecord,
|
|
6
|
+
isDisableRule as isPostgateDisableRule,
|
|
7
|
+
} from '../lexicon/types/app/bsky/feed/postgate'
|
|
4
8
|
import {
|
|
5
9
|
Record as GateRecord,
|
|
6
10
|
isFollowingRule,
|
|
7
11
|
isListRule,
|
|
8
12
|
isMentionRule,
|
|
9
13
|
} from '../lexicon/types/app/bsky/feed/threadgate'
|
|
10
|
-
import {
|
|
11
|
-
Record as PostgateRecord,
|
|
12
|
-
isDisableRule as isPostgateDisableRule,
|
|
13
|
-
} from '../lexicon/types/app/bsky/feed/postgate'
|
|
14
14
|
import { isMention } from '../lexicon/types/app/bsky/richtext/facet'
|
|
15
15
|
|
|
16
16
|
export const parseThreadGate = (
|
package/tests/_util.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { Server } from 'node:http'
|
|
2
|
+
import { AddressInfo } from 'node:net'
|
|
3
|
+
import { type Express } from 'express'
|
|
4
|
+
import { CID } from 'multiformats/cid'
|
|
1
5
|
import { AppBskyFeedGetPostThread } from '@atproto/api'
|
|
2
6
|
import { lexToJson } from '@atproto/lexicon'
|
|
3
7
|
import { AtUri } from '@atproto/syntax'
|
|
4
|
-
import { type Express } from 'express'
|
|
5
|
-
import { CID } from 'multiformats/cid'
|
|
6
|
-
import { Server } from 'node:http'
|
|
7
|
-
|
|
8
|
-
import { AddressInfo } from 'node:net'
|
|
9
8
|
import { isViewRecord } from '../src/lexicon/types/app/bsky/embed/record'
|
|
10
9
|
import {
|
|
11
10
|
FeedViewPost,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SeedClient, usersSeed, TestNetwork } from '@atproto/dev-env'
|
|
2
1
|
import { AtpAgent } from '@atproto/api'
|
|
3
2
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
|
3
|
+
import { SeedClient, TestNetwork, usersSeed } from '@atproto/dev-env'
|
|
4
4
|
import { createServiceAuthHeaders } from '@atproto/xrpc-server'
|
|
5
|
-
import { RepoRef } from '../../src/lexicon/types/com/atproto/admin/defs'
|
|
6
5
|
import { ids } from '../../src/lexicon/lexicons'
|
|
6
|
+
import { RepoRef } from '../../src/lexicon/types/com/atproto/admin/defs'
|
|
7
7
|
|
|
8
8
|
describe('admin auth', () => {
|
|
9
9
|
let network: TestNetwork
|
package/tests/auth.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
|
+
import { Keypair, Secp256k1Keypair } from '@atproto/crypto'
|
|
2
3
|
import { SeedClient, TestNetwork, usersSeed } from '@atproto/dev-env'
|
|
3
4
|
import { createServiceJwt } from '@atproto/xrpc-server'
|
|
4
|
-
import { Keypair, Secp256k1Keypair } from '@atproto/crypto'
|
|
5
5
|
import { ids } from '../src/lexicon/lexicons'
|
|
6
6
|
|
|
7
7
|
describe('auth', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CID } from 'multiformats/cid'
|
|
2
|
+
import { request } from 'undici'
|
|
1
3
|
import { cidForCbor, verifyCidForBytes } from '@atproto/common'
|
|
2
4
|
import { randomBytes } from '@atproto/crypto'
|
|
3
5
|
import { TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
4
|
-
import { CID } from 'multiformats/cid'
|
|
5
|
-
import { request } from 'undici'
|
|
6
6
|
|
|
7
7
|
describe('blob resolver', () => {
|
|
8
8
|
let network: TestNetwork
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cidForCbor, TID } from '@atproto/common'
|
|
3
|
-
import { WriteOpAction } from '@atproto/repo'
|
|
1
|
+
import { TID, cidForCbor } from '@atproto/common'
|
|
4
2
|
import { TestNetwork } from '@atproto/dev-env'
|
|
3
|
+
import { WriteOpAction } from '@atproto/repo'
|
|
4
|
+
import { AtUri } from '@atproto/syntax'
|
|
5
5
|
import * as lex from '../../src/lexicon/lexicons'
|
|
6
6
|
|
|
7
7
|
type Database = TestNetwork['bsky']['db']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DAY } from '@atproto/common'
|
|
2
|
-
import { TestNetwork, SeedClient, usersSeed } from '@atproto/dev-env'
|
|
3
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
|
+
import { DAY } from '@atproto/common'
|
|
3
|
+
import { SeedClient, TestNetwork, usersSeed } from '@atproto/dev-env'
|
|
4
4
|
import { ids } from '../../src/lexicon/lexicons'
|
|
5
5
|
|
|
6
6
|
describe('handle invalidation', () => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { sql } from 'kysely'
|
|
2
2
|
import { CID } from 'multiformats/cid'
|
|
3
|
-
import { cidForCbor, TID } from '@atproto/common'
|
|
4
|
-
import { repoPrepare } from '@atproto/pds'
|
|
5
|
-
import { WriteOpAction } from '@atproto/repo'
|
|
6
|
-
import { AtUri } from '@atproto/syntax'
|
|
7
3
|
import {
|
|
8
4
|
AppBskyActorProfile,
|
|
9
|
-
AppBskyFeedPost,
|
|
10
5
|
AppBskyFeedLike,
|
|
6
|
+
AppBskyFeedPost,
|
|
11
7
|
AppBskyFeedRepost,
|
|
12
8
|
AppBskyGraphFollow,
|
|
13
9
|
AtpAgent,
|
|
14
10
|
} from '@atproto/api'
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
11
|
+
import { TID, cidForCbor } from '@atproto/common'
|
|
12
|
+
import { SeedClient, TestNetwork, basicSeed, usersSeed } from '@atproto/dev-env'
|
|
13
|
+
import { repoPrepare } from '@atproto/pds'
|
|
14
|
+
import { WriteOpAction } from '@atproto/repo'
|
|
15
|
+
import { AtUri } from '@atproto/syntax'
|
|
18
16
|
import { Database } from '../../src/data-plane/server/db'
|
|
17
|
+
import { ids } from '../../src/lexicon/lexicons'
|
|
18
|
+
import { forSnapshot } from '../_util'
|
|
19
19
|
|
|
20
20
|
describe('indexing', () => {
|
|
21
21
|
let network: TestNetwork
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
2
|
import { cborDecode, cborEncode } from '@atproto/common'
|
|
3
|
-
import { DatabaseSchemaType } from '../../src/data-plane/server/db/database-schema'
|
|
4
3
|
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
5
4
|
import { PreparedWrite, sequencer } from '@atproto/pds'
|
|
6
5
|
import { CommitData } from '@atproto/repo'
|
|
6
|
+
import { DatabaseSchemaType } from '../../src/data-plane/server/db/database-schema'
|
|
7
7
|
import { ids } from '../../src/lexicon/lexicons'
|
|
8
8
|
import { forSnapshot } from '../_util'
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RecordRef, SeedClient, TestNetwork, usersSeed } from '@atproto/dev-env'
|
|
2
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
|
+
import { RecordRef, SeedClient, TestNetwork, usersSeed } from '@atproto/dev-env'
|
|
3
3
|
import { ids } from '../../src/lexicon/lexicons'
|
|
4
4
|
|
|
5
5
|
describe('thread mutes', () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import assert from 'node:assert'
|
|
1
2
|
import * as nodeCrypto from 'node:crypto'
|
|
3
|
+
import * as jose from 'jose'
|
|
2
4
|
import KeyEncoder from 'key-encoder'
|
|
3
5
|
import * as ui8 from 'uint8arrays'
|
|
4
|
-
import
|
|
5
|
-
import * as crypto from '@atproto/crypto'
|
|
6
|
-
import { AtpAgent, AtUri } from '@atproto/api'
|
|
7
|
-
import { basicSeed, SeedClient, TestNetwork } from '@atproto/dev-env'
|
|
8
|
-
import assert from 'node:assert'
|
|
6
|
+
import { AtUri, AtpAgent } from '@atproto/api'
|
|
9
7
|
import { MINUTE } from '@atproto/common'
|
|
8
|
+
import * as crypto from '@atproto/crypto'
|
|
9
|
+
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
10
10
|
|
|
11
11
|
const keyEncoder = new KeyEncoder('secp256k1')
|
|
12
12
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import assert from 'assert'
|
|
2
|
-
import { XRPCError } from '@atproto/xrpc'
|
|
3
|
-
import { AuthRequiredError } from '@atproto/xrpc-server'
|
|
4
|
-
import { TID } from '@atproto/common'
|
|
1
|
+
import assert from 'node:assert'
|
|
5
2
|
import { AtUri, AtpAgent } from '@atproto/api'
|
|
3
|
+
import { TID } from '@atproto/common'
|
|
6
4
|
import {
|
|
7
|
-
TestNetwork,
|
|
8
|
-
TestFeedGen,
|
|
9
|
-
SeedClient,
|
|
10
5
|
RecordRef,
|
|
6
|
+
SeedClient,
|
|
7
|
+
TestFeedGen,
|
|
8
|
+
TestNetwork,
|
|
11
9
|
basicSeed,
|
|
12
10
|
} from '@atproto/dev-env'
|
|
13
|
-
import {
|
|
11
|
+
import { XRPCError } from '@atproto/xrpc'
|
|
12
|
+
import { AuthRequiredError } from '@atproto/xrpc-server'
|
|
14
13
|
import { ids } from '../src/lexicon/lexicons'
|
|
15
14
|
import {
|
|
16
15
|
FeedViewPost,
|
|
17
16
|
SkeletonFeedPost,
|
|
18
17
|
} from '../src/lexicon/types/app/bsky/feed/defs'
|
|
18
|
+
import { Handler as SkeletonHandler } from '../src/lexicon/types/app/bsky/feed/getFeedSkeleton'
|
|
19
19
|
import { forSnapshot, paginateAll } from './_util'
|
|
20
20
|
|
|
21
21
|
describe('feed generation', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Readable } from 'node:stream'
|
|
2
|
+
import { CID } from 'multiformats/cid'
|
|
1
3
|
import { cidForCbor } from '@atproto/common'
|
|
2
4
|
import { TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
3
|
-
import { CID } from 'multiformats/cid'
|
|
4
|
-
import { Readable } from 'node:stream'
|
|
5
5
|
import { getInfo } from '../../src/image/sharp'
|
|
6
6
|
import { ImageUriBuilder } from '../../src/image/uri'
|
|
7
7
|
|
package/tests/image/uri.test.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cidForCbor } from '@atproto/common'
|
|
2
1
|
import { CID } from 'multiformats/cid'
|
|
3
|
-
import {
|
|
2
|
+
import { cidForCbor } from '@atproto/common'
|
|
3
|
+
import { BadPathError, ImageUriBuilder } from '../../src/image/uri'
|
|
4
4
|
|
|
5
5
|
describe('image uri builder', () => {
|
|
6
6
|
let uriBuilder: ImageUriBuilder
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
|
-
import {
|
|
2
|
+
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
3
3
|
|
|
4
4
|
describe('label hydration', () => {
|
|
5
5
|
let network: TestNetwork
|
|
@@ -73,8 +73,11 @@ describe('label hydration', () => {
|
|
|
73
73
|
expect(res.data.labels?.find((l) => l.src === labelerDid)?.val).toEqual(
|
|
74
74
|
'misleading',
|
|
75
75
|
)
|
|
76
|
-
const labelerHeaderDids = res.headers['atproto-content-labelers']
|
|
77
|
-
|
|
76
|
+
const labelerHeaderDids = res.headers['atproto-content-labelers']
|
|
77
|
+
?.split(',')
|
|
78
|
+
.sort()
|
|
79
|
+
|
|
80
|
+
expect(labelerHeaderDids).toEqual(
|
|
78
81
|
[alice, `${bob};redact`, labelerDid].sort(),
|
|
79
82
|
)
|
|
80
83
|
})
|
package/tests/postgates.test.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TestNetwork, SeedClient, RecordRef } from '@atproto/dev-env'
|
|
2
1
|
import AtpAgent, { AppBskyEmbedRecord } from '@atproto/api'
|
|
3
|
-
|
|
2
|
+
import { SeedClient, TestNetwork } from '@atproto/dev-env'
|
|
4
3
|
import { ids } from '../src/lexicon/lexicons'
|
|
5
|
-
import {
|
|
4
|
+
import { Users, postgatesSeed } from './seed/postgates'
|
|
6
5
|
|
|
7
6
|
describe('postgates', () => {
|
|
8
7
|
let network: TestNetwork
|
package/tests/seed/postgates.ts
CHANGED
package/tests/server.test.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
2
|
-
import express from 'express'
|
|
3
1
|
import { once } from 'node:events'
|
|
4
2
|
import { AddressInfo } from 'node:net'
|
|
5
3
|
import { finished } from 'node:stream/promises'
|
|
4
|
+
import express from 'express'
|
|
6
5
|
import { request } from 'undici'
|
|
6
|
+
import { TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
7
7
|
import { handler as errorHandler } from '../src/error'
|
|
8
8
|
import { startServer } from './_util'
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
|
-
import {
|
|
2
|
+
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
3
3
|
import { ids } from '../../src/lexicon/lexicons'
|
|
4
4
|
|
|
5
5
|
describe('bsky account deactivation', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AtUri, AtpAgent } from '@atproto/api'
|
|
2
|
-
import {
|
|
2
|
+
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
3
3
|
import { ids } from '../../src/lexicon/lexicons'
|
|
4
4
|
|
|
5
5
|
describe('bsky actor likes feed views', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AtpAgent } from '@atproto/api'
|
|
2
2
|
import { wait } from '@atproto/common'
|
|
3
|
-
import {
|
|
4
|
-
import { forSnapshot, paginateAll, stripViewer } from '../_util'
|
|
3
|
+
import { SeedClient, TestNetwork, usersBulkSeed } from '@atproto/dev-env'
|
|
5
4
|
import { ids } from '../../src/lexicon/lexicons'
|
|
5
|
+
import { forSnapshot, paginateAll, stripViewer } from '../_util'
|
|
6
6
|
|
|
7
7
|
// @NOTE skipped to help with CI failures
|
|
8
8
|
// The search code is not used in production & we should switch it out for tests on the search proxy interface
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AppBskyActorProfile, AppBskyFeedDefs, AtpAgent } from '@atproto/api'
|
|
2
|
+
import { SeedClient, TestNetwork, authorFeedSeed } from '@atproto/dev-env'
|
|
3
|
+
import { ids } from '../../src/lexicon/lexicons'
|
|
4
|
+
import { isView as isImageEmbed } from '../../src/lexicon/types/app/bsky/embed/images'
|
|
5
|
+
import { isView as isEmbedRecordWithMedia } from '../../src/lexicon/types/app/bsky/embed/recordWithMedia'
|
|
6
|
+
import { isView as isVideoEmbed } from '../../src/lexicon/types/app/bsky/embed/video'
|
|
7
|
+
import { isPostView } from '../../src/lexicon/types/app/bsky/feed/defs'
|
|
8
|
+
import { ReplyRef, isRecord } from '../../src/lexicon/types/app/bsky/feed/post'
|
|
9
|
+
import { uriToDid } from '../../src/util/uris'
|
|
10
|
+
import { VideoEmbed } from '../../src/views/types'
|
|
3
11
|
import {
|
|
4
12
|
forSnapshot,
|
|
5
13
|
paginateAll,
|
|
6
14
|
stripViewer,
|
|
7
15
|
stripViewerFromPost,
|
|
8
16
|
} from '../_util'
|
|
9
|
-
import { ReplyRef, isRecord } from '../../src/lexicon/types/app/bsky/feed/post'
|
|
10
|
-
import { isView as isEmbedRecordWithMedia } from '../../src/lexicon/types/app/bsky/embed/recordWithMedia'
|
|
11
|
-
import { isView as isImageEmbed } from '../../src/lexicon/types/app/bsky/embed/images'
|
|
12
|
-
import { isView as isVideoEmbed } from '../../src/lexicon/types/app/bsky/embed/video'
|
|
13
|
-
import { isPostView } from '../../src/lexicon/types/app/bsky/feed/defs'
|
|
14
|
-
import { uriToDid } from '../../src/util/uris'
|
|
15
|
-
import { ids } from '../../src/lexicon/lexicons'
|
|
16
|
-
import { VideoEmbed } from '../../src/views/types'
|
|
17
17
|
|
|
18
18
|
describe('pds author feed views', () => {
|
|
19
19
|
let network: TestNetwork
|
|
@@ -487,7 +487,7 @@ describe('pds author feed views', () => {
|
|
|
487
487
|
await sc.post(alice, 'not pinned post')
|
|
488
488
|
const post = await createAndPinPost()
|
|
489
489
|
await sc.post(alice, 'not pinned post')
|
|
490
|
-
|
|
490
|
+
await network.processAll()
|
|
491
491
|
const { data } = await agent.api.app.bsky.feed.getAuthorFeed(
|
|
492
492
|
{ actor: sc.accounts[alice].handle, includePins: true },
|
|
493
493
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { forSnapshot } from '../_util'
|
|
1
|
+
import { AtUri, AtpAgent } from '@atproto/api'
|
|
2
|
+
import { RecordRef, SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
4
3
|
import { ids } from '../../src/lexicon/lexicons'
|
|
4
|
+
import { forSnapshot } from '../_util'
|
|
5
5
|
|
|
6
6
|
describe('pds views with blocking from block lists', () => {
|
|
7
7
|
let network: TestNetwork
|