@atproto/bsky 0.0.113 → 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 +24 -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 +7 -7
- 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 +5 -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 +4 -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/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 +9 -9
- 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 +4 -4
- package/dist/hydration/graph.d.ts.map +1 -1
- package/dist/hydration/graph.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +4 -4
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +4 -4
- 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 +7 -7
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +8 -9
- 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 +7 -7
- 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 +10 -10
- package/src/api/app/bsky/feed/getFeed.ts +15 -16
- 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 +4 -4
- 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 +12 -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/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 +10 -10
- 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 +4 -4
- package/src/hydration/hydrator.ts +27 -27
- 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 +23 -22
- 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 +1 -1
- 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 +10 -10
- 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 +1 -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
|
@@ -8,6 +8,8 @@ import { CID } from 'multiformats/cid'
|
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
9
|
import * as AppBskyGraphDefs from '../graph/defs'
|
|
10
10
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
11
|
+
import * as AppBskyFeedThreadgate from '../feed/threadgate'
|
|
12
|
+
import * as AppBskyFeedPostgate from '../feed/postgate'
|
|
11
13
|
|
|
12
14
|
export interface ProfileViewBasic {
|
|
13
15
|
did: string
|
|
@@ -188,6 +190,7 @@ export type Preferences = (
|
|
|
188
190
|
| HiddenPostsPref
|
|
189
191
|
| BskyAppStatePref
|
|
190
192
|
| LabelersPref
|
|
193
|
+
| PostInteractionSettingsPref
|
|
191
194
|
| { $type: string; [k: string]: unknown }
|
|
192
195
|
)[]
|
|
193
196
|
|
|
@@ -532,3 +535,36 @@ export function isNux(v: unknown): v is Nux {
|
|
|
532
535
|
export function validateNux(v: unknown): ValidationResult {
|
|
533
536
|
return lexicons.validate('app.bsky.actor.defs#nux', v)
|
|
534
537
|
}
|
|
538
|
+
|
|
539
|
+
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
|
540
|
+
export interface PostInteractionSettingsPref {
|
|
541
|
+
/** Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */
|
|
542
|
+
threadgateAllowRules?: (
|
|
543
|
+
| AppBskyFeedThreadgate.MentionRule
|
|
544
|
+
| AppBskyFeedThreadgate.FollowingRule
|
|
545
|
+
| AppBskyFeedThreadgate.ListRule
|
|
546
|
+
| { $type: string; [k: string]: unknown }
|
|
547
|
+
)[]
|
|
548
|
+
/** Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */
|
|
549
|
+
postgateEmbeddingRules?: (
|
|
550
|
+
| AppBskyFeedPostgate.DisableRule
|
|
551
|
+
| { $type: string; [k: string]: unknown }
|
|
552
|
+
)[]
|
|
553
|
+
[k: string]: unknown
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export function isPostInteractionSettingsPref(
|
|
557
|
+
v: unknown,
|
|
558
|
+
): v is PostInteractionSettingsPref {
|
|
559
|
+
return (
|
|
560
|
+
isObj(v) &&
|
|
561
|
+
hasProp(v, '$type') &&
|
|
562
|
+
v.$type === 'app.bsky.actor.defs#postInteractionSettingsPref'
|
|
563
|
+
)
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export function validatePostInteractionSettingsPref(
|
|
567
|
+
v: unknown,
|
|
568
|
+
): ValidationResult {
|
|
569
|
+
return lexicons.validate('app.bsky.actor.defs#postInteractionSettingsPref', v)
|
|
570
|
+
}
|
|
@@ -12,6 +12,7 @@ export interface Record {
|
|
|
12
12
|
post: string
|
|
13
13
|
/** List of AT-URIs embedding this post that the author has detached from. */
|
|
14
14
|
detachedEmbeddingUris?: string[]
|
|
15
|
+
/** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */
|
|
15
16
|
embeddingRules?: (DisableRule | { $type: string; [k: string]: unknown })[]
|
|
16
17
|
[k: string]: unknown
|
|
17
18
|
}
|
|
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
|
|
|
9
9
|
export interface Record {
|
|
10
10
|
/** Reference (AT-URI) to the post record. */
|
|
11
11
|
post: string
|
|
12
|
+
/** List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */
|
|
12
13
|
allow?: (
|
|
13
14
|
| MentionRule
|
|
14
15
|
| FollowingRule
|
package/src/logger.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IncomingMessage } from 'node:http'
|
|
2
2
|
import { stdSerializers } from 'pino'
|
|
3
|
-
import pinoHttp from 'pino-http'
|
|
3
|
+
import { pinoHttp } from 'pino-http'
|
|
4
4
|
import { obfuscateHeaders, subsystemLogger } from '@atproto/common'
|
|
5
5
|
|
|
6
6
|
export const dbLogger: ReturnType<typeof subsystemLogger> =
|
package/src/redis.ts
CHANGED
package/src/util/http.ts
CHANGED
package/src/util/uris.ts
CHANGED
package/src/views/index.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
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,
|
|
13
|
+
ProfileViewDetailed,
|
|
10
14
|
ViewerState as ProfileViewer,
|
|
11
15
|
} from '../lexicon/types/app/bsky/actor/defs'
|
|
12
16
|
import {
|
|
@@ -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,23 +35,23 @@ import {
|
|
|
30
35
|
StarterPackViewBasic,
|
|
31
36
|
} from '../lexicon/types/app/bsky/graph/defs'
|
|
32
37
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from '
|
|
38
|
+
LabelerView,
|
|
39
|
+
LabelerViewDetailed,
|
|
40
|
+
} from '../lexicon/types/app/bsky/labeler/defs'
|
|
41
|
+
import { isSelfLabels } from '../lexicon/types/com/atproto/label/defs'
|
|
42
|
+
import { Notification } from '../proto/bsky_pb'
|
|
38
43
|
import {
|
|
39
|
-
|
|
44
|
+
postUriToPostgateUri,
|
|
45
|
+
postUriToThreadgateUri,
|
|
40
46
|
safePinnedPost,
|
|
41
47
|
uriToDid,
|
|
48
|
+
uriToDid as creatorFromUri,
|
|
42
49
|
} from '../util/uris'
|
|
43
|
-
import { isListRule } from '../lexicon/types/app/bsky/feed/threadgate'
|
|
44
|
-
import { isSelfLabels } from '../lexicon/types/com/atproto/label/defs'
|
|
45
50
|
import {
|
|
46
51
|
Embed,
|
|
47
52
|
EmbedBlocked,
|
|
48
|
-
EmbedNotFound,
|
|
49
53
|
EmbedDetached,
|
|
54
|
+
EmbedNotFound,
|
|
50
55
|
EmbedView,
|
|
51
56
|
ExternalEmbed,
|
|
52
57
|
ExternalEmbedView,
|
|
@@ -68,16 +73,12 @@ import {
|
|
|
68
73
|
isRecordWithMedia,
|
|
69
74
|
isVideoEmbed,
|
|
70
75
|
} from './types'
|
|
71
|
-
import { Label } from '../hydration/label'
|
|
72
|
-
import { FeedItem, Post, Repost } from '../hydration/feed'
|
|
73
|
-
import { RecordInfo } from '../hydration/util'
|
|
74
76
|
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
import { ProfileViewerState } from '../hydration/actor'
|
|
77
|
+
VideoUriBuilder,
|
|
78
|
+
cidFromBlobJson,
|
|
79
|
+
parsePostgate,
|
|
80
|
+
parseThreadGate,
|
|
81
|
+
} from './util'
|
|
81
82
|
|
|
82
83
|
export class Views {
|
|
83
84
|
public imgUriBuilder: ImageUriBuilder = this.opts.imgUriBuilder
|
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
|
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
|
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import assert from 'assert'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { assertIsThreadViewPost, forSnapshot } from '../_util'
|
|
1
|
+
import assert from 'node:assert'
|
|
2
|
+
import { AtUri, AtpAgent } from '@atproto/api'
|
|
3
|
+
import { RecordRef, SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
5
4
|
import { ids } from '../../src/lexicon/lexicons'
|
|
5
|
+
import { assertIsThreadViewPost, forSnapshot } from '../_util'
|
|
6
6
|
|
|
7
7
|
describe('pds views with blocking', () => {
|
|
8
8
|
let network: TestNetwork
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TestNetwork, SeedClient } from '@atproto/dev-env'
|
|
2
1
|
import AtpAgent 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, feedHiddenRepliesSeed } from '../seed/feed-hidden-replies'
|
|
6
5
|
|
|
7
6
|
describe('feed hidden replies', () => {
|
|
8
7
|
let network: TestNetwork
|