@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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import events from 'events'
|
|
3
|
-
import
|
|
4
|
-
import express from 'express'
|
|
1
|
+
import assert from 'node:assert'
|
|
2
|
+
import events from 'node:events'
|
|
3
|
+
import http from 'node:http'
|
|
5
4
|
import { ConnectRouter } from '@connectrpc/connect'
|
|
6
5
|
import { expressConnectMiddleware } from '@connectrpc/connect-express'
|
|
6
|
+
import express from 'express'
|
|
7
7
|
import { AtUri } from '@atproto/syntax'
|
|
8
|
-
import {
|
|
8
|
+
import { ids } from '../../lexicon/lexicons'
|
|
9
9
|
import { Service } from '../../proto/bsync_connect'
|
|
10
10
|
import { MuteOperation_Type } from '../../proto/bsync_pb'
|
|
11
|
-
import {
|
|
11
|
+
import { Database } from '../server/db'
|
|
12
12
|
|
|
13
13
|
export class MockBsync {
|
|
14
14
|
constructor(public server: http.Server) {}
|
package/src/data-plane/client.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import assert from 'node:assert'
|
|
2
2
|
import { randomInt } from 'node:crypto'
|
|
3
|
-
import * as ui8 from 'uint8arrays'
|
|
4
3
|
import {
|
|
5
4
|
Code,
|
|
6
5
|
ConnectError,
|
|
@@ -9,6 +8,7 @@ import {
|
|
|
9
8
|
makeAnyClient,
|
|
10
9
|
} from '@connectrpc/connect'
|
|
11
10
|
import { createGrpcTransport } from '@connectrpc/connect-node'
|
|
11
|
+
import * as ui8 from 'uint8arrays'
|
|
12
12
|
import { getDidKeyFromMultibase } from '@atproto/identity'
|
|
13
13
|
import { Service } from '../proto/bsky_connect'
|
|
14
14
|
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { Kysely } from 'kysely'
|
|
2
|
+
import * as actor from './tables/actor'
|
|
3
|
+
import * as actorBlock from './tables/actor-block'
|
|
4
|
+
import * as actorState from './tables/actor-state'
|
|
5
|
+
import * as actorSync from './tables/actor-sync'
|
|
6
|
+
import * as algo from './tables/algo'
|
|
7
|
+
import * as blobTakedown from './tables/blob-takedown'
|
|
8
|
+
import * as didCache from './tables/did-cache'
|
|
2
9
|
import * as duplicateRecord from './tables/duplicate-record'
|
|
3
|
-
import * as
|
|
4
|
-
import * as profileAgg from './tables/profile-agg'
|
|
5
|
-
import * as post from './tables/post'
|
|
6
|
-
import * as postEmbed from './tables/post-embed'
|
|
7
|
-
import * as postAgg from './tables/post-agg'
|
|
8
|
-
import * as repost from './tables/repost'
|
|
9
|
-
import * as threadgate from './tables/thread-gate'
|
|
10
|
-
import * as postgate from './tables/post-gate'
|
|
10
|
+
import * as feedGenerator from './tables/feed-generator'
|
|
11
11
|
import * as feedItem from './tables/feed-item'
|
|
12
12
|
import * as follow from './tables/follow'
|
|
13
|
+
import * as label from './tables/label'
|
|
14
|
+
import * as labeler from './tables/labeler'
|
|
13
15
|
import * as like from './tables/like'
|
|
14
16
|
import * as list from './tables/list'
|
|
17
|
+
import * as listBlock from './tables/list-block'
|
|
15
18
|
import * as listItem from './tables/list-item'
|
|
16
19
|
import * as listMute from './tables/list-mute'
|
|
17
|
-
import * as listBlock from './tables/list-block'
|
|
18
20
|
import * as mute from './tables/mute'
|
|
19
|
-
import * as actorBlock from './tables/actor-block'
|
|
20
|
-
import * as threadMute from './tables/thread-mute'
|
|
21
|
-
import * as feedGenerator from './tables/feed-generator'
|
|
22
|
-
import * as subscription from './tables/subscription'
|
|
23
|
-
import * as actor from './tables/actor'
|
|
24
|
-
import * as actorState from './tables/actor-state'
|
|
25
|
-
import * as actorSync from './tables/actor-sync'
|
|
26
|
-
import * as record from './tables/record'
|
|
27
21
|
import * as notification from './tables/notification'
|
|
28
22
|
import * as notificationPushToken from './tables/notification-push-token'
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
23
|
+
import * as post from './tables/post'
|
|
24
|
+
import * as postAgg from './tables/post-agg'
|
|
25
|
+
import * as postEmbed from './tables/post-embed'
|
|
26
|
+
import * as postgate from './tables/post-gate'
|
|
27
|
+
import * as profile from './tables/profile'
|
|
28
|
+
import * as profileAgg from './tables/profile-agg'
|
|
29
|
+
import * as quote from './tables/quote'
|
|
30
|
+
import * as record from './tables/record'
|
|
31
|
+
import * as repost from './tables/repost'
|
|
32
|
+
import * as starterPack from './tables/starter-pack'
|
|
33
|
+
import * as subscription from './tables/subscription'
|
|
34
34
|
import * as suggestedFeed from './tables/suggested-feed'
|
|
35
|
+
import * as suggestedFollow from './tables/suggested-follow'
|
|
35
36
|
import * as taggedSuggestion from './tables/tagged-suggestion'
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import * as
|
|
39
|
-
import * as quote from './tables/quote'
|
|
37
|
+
import * as threadgate from './tables/thread-gate'
|
|
38
|
+
import * as threadMute from './tables/thread-mute'
|
|
39
|
+
import * as viewParam from './tables/view-param'
|
|
40
40
|
|
|
41
41
|
export type DatabaseSchemaType = duplicateRecord.PartialDB &
|
|
42
42
|
profile.PartialDB &
|
|
@@ -78,5 +78,3 @@ export type DatabaseSchemaType = duplicateRecord.PartialDB &
|
|
|
78
78
|
quote.PartialDB
|
|
79
79
|
|
|
80
80
|
export type DatabaseSchema = Kysely<DatabaseSchemaType>
|
|
81
|
-
|
|
82
|
-
export default DatabaseSchema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import assert from 'assert'
|
|
2
|
-
import EventEmitter from 'events'
|
|
1
|
+
import assert from 'node:assert'
|
|
2
|
+
import EventEmitter from 'node:events'
|
|
3
3
|
import {
|
|
4
4
|
Kysely,
|
|
5
5
|
KyselyPlugin,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
RootOperationNode,
|
|
12
12
|
UnknownRow,
|
|
13
13
|
} from 'kysely'
|
|
14
|
-
import TypedEmitter from 'typed-emitter'
|
|
15
14
|
import { Pool as PgPool, types as pgTypes } from 'pg'
|
|
16
|
-
import
|
|
17
|
-
import DatabaseSchema, { DatabaseSchemaType } from './database-schema'
|
|
18
|
-
import { PgOptions } from './types'
|
|
15
|
+
import TypedEmitter from 'typed-emitter'
|
|
19
16
|
import { dbLogger } from '../../../logger'
|
|
17
|
+
import { DatabaseSchema, DatabaseSchemaType } from './database-schema'
|
|
18
|
+
import * as migrations from './migrations'
|
|
20
19
|
import { CtxMigrationProvider } from './migrations/provider'
|
|
20
|
+
import { PgOptions } from './types'
|
|
21
21
|
|
|
22
22
|
export class Database {
|
|
23
23
|
pool: PgPool
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
ExpressionBuilder,
|
|
5
5
|
RawBuilder,
|
|
6
6
|
SelectQueryBuilder,
|
|
7
|
-
sql,
|
|
8
7
|
SqliteAdapter,
|
|
9
8
|
SqliteIntrospector,
|
|
10
9
|
SqliteQueryCompiler,
|
|
10
|
+
sql,
|
|
11
11
|
} from 'kysely'
|
|
12
|
-
import DatabaseSchema,
|
|
12
|
+
import { DatabaseSchema, DatabaseSchemaType } from './database-schema'
|
|
13
13
|
|
|
14
14
|
export const actorWhereClause = (actor: string) => {
|
|
15
15
|
if (actor.startsWith('did:')) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import express from 'express'
|
|
1
|
+
import events from 'node:events'
|
|
2
|
+
import http from 'node:http'
|
|
4
3
|
import { expressConnectMiddleware } from '@connectrpc/connect-express'
|
|
5
|
-
import
|
|
6
|
-
import { Database } from './db'
|
|
4
|
+
import express from 'express'
|
|
7
5
|
import { IdResolver, MemoryCache } from '@atproto/identity'
|
|
6
|
+
import { Database } from './db'
|
|
7
|
+
import createRoutes from './routes'
|
|
8
8
|
|
|
9
9
|
export { RepoSubscription } from './subscription'
|
|
10
10
|
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { sql } from 'kysely'
|
|
2
2
|
import { CID } from 'multiformats/cid'
|
|
3
3
|
import { AtpAgent, ComAtprotoSyncGetLatestCommit } from '@atproto/api'
|
|
4
|
+
import { DAY, HOUR } from '@atproto/common'
|
|
5
|
+
import { IdResolver, getPds } from '@atproto/identity'
|
|
6
|
+
import { ValidationError } from '@atproto/lexicon'
|
|
4
7
|
import {
|
|
5
|
-
readCarWithRoot,
|
|
6
|
-
WriteOpAction,
|
|
7
|
-
verifyRepo,
|
|
8
8
|
VerifiedRepo,
|
|
9
|
+
WriteOpAction,
|
|
9
10
|
getAndParseRecord,
|
|
11
|
+
readCarWithRoot,
|
|
12
|
+
verifyRepo,
|
|
10
13
|
} from '@atproto/repo'
|
|
11
14
|
import { AtUri } from '@atproto/syntax'
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
+
import { subLogger } from '../../../logger'
|
|
16
|
+
import { retryXrpc } from '../../../util/retry'
|
|
17
|
+
import { BackgroundQueue } from '../background'
|
|
15
18
|
import { Database } from '../db'
|
|
16
19
|
import { Actor } from '../db/tables/actor'
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as Like from './plugins/like'
|
|
21
|
-
import * as Repost from './plugins/repost'
|
|
20
|
+
import * as Block from './plugins/block'
|
|
21
|
+
import * as ChatDeclaration from './plugins/chat-declaration'
|
|
22
|
+
import * as FeedGenerator from './plugins/feed-generator'
|
|
22
23
|
import * as Follow from './plugins/follow'
|
|
23
|
-
import * as
|
|
24
|
+
import * as Labeler from './plugins/labeler'
|
|
25
|
+
import * as Like from './plugins/like'
|
|
24
26
|
import * as List from './plugins/list'
|
|
25
|
-
import * as ListItem from './plugins/list-item'
|
|
26
27
|
import * as ListBlock from './plugins/list-block'
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
28
|
+
import * as ListItem from './plugins/list-item'
|
|
29
|
+
import * as Post from './plugins/post'
|
|
30
|
+
import * as Postgate from './plugins/post-gate'
|
|
31
|
+
import * as Profile from './plugins/profile'
|
|
32
|
+
import * as Repost from './plugins/repost'
|
|
29
33
|
import * as StarterPack from './plugins/starter-pack'
|
|
30
|
-
import * as
|
|
31
|
-
import
|
|
32
|
-
import RecordProcessor from './processor'
|
|
33
|
-
import { subLogger } from '../../../logger'
|
|
34
|
-
import { retryXrpc } from '../../../util/retry'
|
|
35
|
-
import { BackgroundQueue } from '../background'
|
|
34
|
+
import * as Threadgate from './plugins/thread-gate'
|
|
35
|
+
import { RecordProcessor } from './processor'
|
|
36
36
|
|
|
37
37
|
export class IndexingService {
|
|
38
38
|
records: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
+
import * as Block from '../../../../lexicon/types/app/bsky/graph/block'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
6
7
|
import { Database } from '../../db'
|
|
7
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
9
|
-
import { BackgroundQueue } from '../../background'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyGraphBlock
|
|
12
12
|
type IndexedBlock = Selectable<DatabaseSchemaType['actor_block']>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AtUri } from '@atproto/syntax'
|
|
2
1
|
import { CID } from 'multiformats/cid'
|
|
2
|
+
import { AtUri } from '@atproto/syntax'
|
|
3
3
|
import * as lex from '../../../../lexicon/lexicons'
|
|
4
|
-
import { DatabaseSchema } from '../../db/database-schema'
|
|
5
|
-
import RecordProcessor from '../processor'
|
|
6
|
-
import { Database } from '../../db'
|
|
7
4
|
import { BackgroundQueue } from '../../background'
|
|
5
|
+
import { Database } from '../../db'
|
|
6
|
+
import { DatabaseSchema } from '../../db/database-schema'
|
|
7
|
+
import { RecordProcessor } from '../processor'
|
|
8
8
|
|
|
9
9
|
// @NOTE this indexer is a placeholder to ensure it gets indexed in the generic records table
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
+
import * as FeedGenerator from '../../../../lexicon/types/app/bsky/feed/generator'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
6
7
|
import { Database } from '../../db'
|
|
7
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
9
|
-
import { BackgroundQueue } from '../../background'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyFeedGenerator
|
|
12
12
|
type IndexedFeedGenerator = Selectable<DatabaseSchemaType['feed_generator']>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
5
|
+
import * as Follow from '../../../../lexicon/types/app/bsky/graph/follow'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
7
7
|
import { Database } from '../../db'
|
|
8
|
-
import { countAll, excluded } from '../../db/util'
|
|
9
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
10
|
-
import {
|
|
9
|
+
import { countAll, excluded } from '../../db/util'
|
|
10
|
+
import { RecordProcessor } from '../processor'
|
|
11
11
|
|
|
12
12
|
const lexId = lex.ids.AppBskyGraphFollow
|
|
13
13
|
type IndexedFollow = Selectable<DatabaseSchemaType['follow']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
+
import * as Labeler from '../../../../lexicon/types/app/bsky/labeler/service'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
6
7
|
import { Database } from '../../db'
|
|
7
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
9
|
-
import { BackgroundQueue } from '../../background'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyLabelerService
|
|
12
12
|
type IndexedLabeler = Selectable<DatabaseSchemaType['labeler']>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import * as Like from '../../../../lexicon/types/app/bsky/feed/like'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
8
7
|
import { Database } from '../../db'
|
|
9
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
10
|
-
import {
|
|
9
|
+
import { countAll, excluded } from '../../db/util'
|
|
10
|
+
import { RecordProcessor } from '../processor'
|
|
11
11
|
|
|
12
12
|
const lexId = lex.ids.AppBskyFeedLike
|
|
13
13
|
type IndexedLike = Selectable<DatabaseSchemaType['like']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
+
import * as ListBlock from '../../../../lexicon/types/app/bsky/graph/listblock'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
6
7
|
import { Database } from '../../db'
|
|
7
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
9
|
-
import { BackgroundQueue } from '../../background'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyGraphListblock
|
|
12
12
|
type IndexedListBlock = Selectable<DatabaseSchemaType['list_block']>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { InvalidRequestError } from '@atproto/xrpc-server'
|
|
3
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
4
2
|
import { CID } from 'multiformats/cid'
|
|
5
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
4
|
+
import { InvalidRequestError } from '@atproto/xrpc-server'
|
|
6
5
|
import * as lex from '../../../../lexicon/lexicons'
|
|
7
|
-
import
|
|
6
|
+
import * as ListItem from '../../../../lexicon/types/app/bsky/graph/listitem'
|
|
7
|
+
import { BackgroundQueue } from '../../background'
|
|
8
8
|
import { Database } from '../../db'
|
|
9
9
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
10
|
-
import {
|
|
10
|
+
import { RecordProcessor } from '../processor'
|
|
11
11
|
|
|
12
12
|
const lexId = lex.ids.AppBskyGraphListitem
|
|
13
13
|
type IndexedListItem = Selectable<DatabaseSchemaType['list_item']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
7
|
-
import RecordProcessor from '../processor'
|
|
8
|
-
import { Database } from '../../db'
|
|
5
|
+
import * as List from '../../../../lexicon/types/app/bsky/graph/list'
|
|
9
6
|
import { BackgroundQueue } from '../../background'
|
|
7
|
+
import { Database } from '../../db'
|
|
8
|
+
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyGraphList
|
|
12
12
|
type IndexedList = Selectable<DatabaseSchemaType['list']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { CID } from 'multiformats/cid'
|
|
1
2
|
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
2
3
|
import { InvalidRequestError } from '@atproto/xrpc-server'
|
|
3
|
-
import { CID } from 'multiformats/cid'
|
|
4
|
-
import * as Postgate from '../../../../lexicon/types/app/bsky/feed/postgate'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
7
|
-
import { Database } from '../../db'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
5
|
+
import * as Postgate from '../../../../lexicon/types/app/bsky/feed/postgate'
|
|
9
6
|
import { BackgroundQueue } from '../../background'
|
|
7
|
+
import { Database } from '../../db'
|
|
8
|
+
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyFeedPostgate
|
|
12
12
|
type IndexedGate = DatabaseSchemaType['post_gate']
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import { Insertable, Selectable, sql } from 'kysely'
|
|
2
2
|
import { CID } from 'multiformats/cid'
|
|
3
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
4
3
|
import { jsonStringToLex } from '@atproto/lexicon'
|
|
4
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
|
+
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
+
import { isMain as isEmbedExternal } from '../../../../lexicon/types/app/bsky/embed/external'
|
|
7
|
+
import { isMain as isEmbedImage } from '../../../../lexicon/types/app/bsky/embed/images'
|
|
8
|
+
import { isMain as isEmbedRecord } from '../../../../lexicon/types/app/bsky/embed/record'
|
|
9
|
+
import { isMain as isEmbedRecordWithMedia } from '../../../../lexicon/types/app/bsky/embed/recordWithMedia'
|
|
10
|
+
import { isMain as isEmbedVideo } from '../../../../lexicon/types/app/bsky/embed/video'
|
|
5
11
|
import {
|
|
6
12
|
Record as PostRecord,
|
|
7
13
|
ReplyRef,
|
|
8
14
|
} from '../../../../lexicon/types/app/bsky/feed/post'
|
|
9
|
-
import { Record as GateRecord } from '../../../../lexicon/types/app/bsky/feed/threadgate'
|
|
10
15
|
import { Record as PostgateRecord } from '../../../../lexicon/types/app/bsky/feed/postgate'
|
|
11
|
-
import {
|
|
12
|
-
import { isMain as isEmbedExternal } from '../../../../lexicon/types/app/bsky/embed/external'
|
|
13
|
-
import { isMain as isEmbedRecord } from '../../../../lexicon/types/app/bsky/embed/record'
|
|
14
|
-
import { isMain as isEmbedRecordWithMedia } from '../../../../lexicon/types/app/bsky/embed/recordWithMedia'
|
|
15
|
-
import { isMain as isEmbedVideo } from '../../../../lexicon/types/app/bsky/embed/video'
|
|
16
|
+
import { Record as GateRecord } from '../../../../lexicon/types/app/bsky/feed/threadgate'
|
|
16
17
|
import {
|
|
17
|
-
isMention,
|
|
18
18
|
isLink,
|
|
19
|
+
isMention,
|
|
19
20
|
} from '../../../../lexicon/types/app/bsky/richtext/facet'
|
|
20
|
-
import
|
|
21
|
+
import {
|
|
22
|
+
postUriToPostgateUri,
|
|
23
|
+
postUriToThreadgateUri,
|
|
24
|
+
uriToDid,
|
|
25
|
+
} from '../../../../util/uris'
|
|
26
|
+
import { parsePostgate } from '../../../../views/util'
|
|
27
|
+
import { BackgroundQueue } from '../../background'
|
|
28
|
+
import { Database } from '../../db'
|
|
21
29
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
22
|
-
import RecordProcessor from '../processor'
|
|
23
30
|
import { Notification } from '../../db/tables/notification'
|
|
24
|
-
import { Database } from '../../db'
|
|
25
31
|
import { countAll, excluded } from '../../db/util'
|
|
26
32
|
import {
|
|
27
33
|
getAncestorsAndSelfQb,
|
|
@@ -29,13 +35,7 @@ import {
|
|
|
29
35
|
invalidReplyRoot as checkInvalidReplyRoot,
|
|
30
36
|
violatesThreadGate as checkViolatesThreadGate,
|
|
31
37
|
} from '../../util'
|
|
32
|
-
import {
|
|
33
|
-
import { parsePostgate } from '../../../../views/util'
|
|
34
|
-
import {
|
|
35
|
-
postUriToThreadgateUri,
|
|
36
|
-
postUriToPostgateUri,
|
|
37
|
-
uriToDid,
|
|
38
|
-
} from '../../../../util/uris'
|
|
38
|
+
import { RecordProcessor } from '../processor'
|
|
39
39
|
|
|
40
40
|
type Notif = Insertable<Notification>
|
|
41
41
|
type Post = Selectable<DatabaseSchemaType['post']>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AtUri } from '@atproto/syntax'
|
|
2
1
|
import { CID } from 'multiformats/cid'
|
|
3
|
-
import
|
|
2
|
+
import { AtUri } from '@atproto/syntax'
|
|
4
3
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
-
import
|
|
6
|
-
import RecordProcessor from '../processor'
|
|
7
|
-
import { Database } from '../../db'
|
|
4
|
+
import * as Profile from '../../../../lexicon/types/app/bsky/actor/profile'
|
|
8
5
|
import { BackgroundQueue } from '../../background'
|
|
6
|
+
import { Database } from '../../db'
|
|
7
|
+
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
+
import { RecordProcessor } from '../processor'
|
|
9
9
|
|
|
10
10
|
const lexId = lex.ids.AppBskyActorProfile
|
|
11
11
|
type IndexedProfile = DatabaseSchemaType['profile']
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
2
|
import { CID } from 'multiformats/cid'
|
|
3
3
|
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
4
|
-
import * as Repost from '../../../../lexicon/types/app/bsky/feed/repost'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
5
|
+
import * as Repost from '../../../../lexicon/types/app/bsky/feed/repost'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
7
7
|
import { Database } from '../../db'
|
|
8
|
-
import { countAll, excluded } from '../../db/util'
|
|
9
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
10
|
-
import {
|
|
9
|
+
import { countAll, excluded } from '../../db/util'
|
|
10
|
+
import { RecordProcessor } from '../processor'
|
|
11
11
|
|
|
12
12
|
const lexId = lex.ids.AppBskyFeedRepost
|
|
13
13
|
type IndexedRepost = Selectable<DatabaseSchemaType['repost']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Selectable } from 'kysely'
|
|
2
|
-
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
3
2
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import
|
|
3
|
+
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
5
|
+
import * as StarterPack from '../../../../lexicon/types/app/bsky/graph/starterpack'
|
|
6
|
+
import { BackgroundQueue } from '../../background'
|
|
6
7
|
import { Database } from '../../db'
|
|
7
8
|
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
9
|
-
import { BackgroundQueue } from '../../background'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyGraphStarterpack
|
|
12
12
|
type IndexedStarterPack = Selectable<DatabaseSchemaType['starter_pack']>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { CID } from 'multiformats/cid'
|
|
1
2
|
import { AtUri, normalizeDatetimeAlways } from '@atproto/syntax'
|
|
2
3
|
import { InvalidRequestError } from '@atproto/xrpc-server'
|
|
3
|
-
import { CID } from 'multiformats/cid'
|
|
4
|
-
import * as Threadgate from '../../../../lexicon/types/app/bsky/feed/threadgate'
|
|
5
4
|
import * as lex from '../../../../lexicon/lexicons'
|
|
6
|
-
import
|
|
7
|
-
import { Database } from '../../db'
|
|
8
|
-
import RecordProcessor from '../processor'
|
|
5
|
+
import * as Threadgate from '../../../../lexicon/types/app/bsky/feed/threadgate'
|
|
9
6
|
import { BackgroundQueue } from '../../background'
|
|
7
|
+
import { Database } from '../../db'
|
|
8
|
+
import { DatabaseSchema, DatabaseSchemaType } from '../../db/database-schema'
|
|
9
|
+
import { RecordProcessor } from '../processor'
|
|
10
10
|
|
|
11
11
|
const lexId = lex.ids.AppBskyFeedThreadgate
|
|
12
12
|
type IndexedGate = DatabaseSchemaType['thread_gate']
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Insertable } from 'kysely'
|
|
2
2
|
import { CID } from 'multiformats/cid'
|
|
3
|
-
import { AtUri } from '@atproto/syntax'
|
|
4
3
|
import { chunkArray } from '@atproto/common'
|
|
5
4
|
import { jsonStringToLex, stringifyLex } from '@atproto/lexicon'
|
|
5
|
+
import { AtUri } from '@atproto/syntax'
|
|
6
6
|
import { lexicons } from '../../../lexicon/lexicons'
|
|
7
|
+
import { BackgroundQueue } from '../background'
|
|
7
8
|
import { Database } from '../db'
|
|
8
|
-
import DatabaseSchema from '../db/database-schema'
|
|
9
|
+
import { DatabaseSchema } from '../db/database-schema'
|
|
9
10
|
import { Notification } from '../db/tables/notification'
|
|
10
|
-
import { BackgroundQueue } from '../background'
|
|
11
11
|
|
|
12
12
|
// @NOTE re: insertions and deletions. Due to how record updates are handled,
|
|
13
13
|
// (insertFn) should have the same effect as (insertFn -> deleteFn -> insertFn).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ServiceImpl } from '@connectrpc/connect'
|
|
2
2
|
import { Service } from '../../../proto/bsky_connect'
|
|
3
|
+
import { FeedType } from '../../../proto/bsky_pb'
|
|
3
4
|
import { Database } from '../db'
|
|
4
5
|
import { TimeCidKeyset, paginate } from '../db/pagination'
|
|
5
|
-
import { FeedType } from '../../../proto/bsky_pb'
|
|
6
6
|
|
|
7
7
|
export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
|
|
8
8
|
async getAuthorFeed(req) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { keyBy } from '@atproto/common'
|
|
2
1
|
import { ServiceImpl } from '@connectrpc/connect'
|
|
2
|
+
import { keyBy } from '@atproto/common'
|
|
3
3
|
import { Service } from '../../../proto/bsky_connect'
|
|
4
4
|
import { FollowsFollowing } from '../../../proto/bsky_pb'
|
|
5
5
|
import { Database } from '../db'
|
|
@@ -18,7 +18,7 @@ export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
|
|
|
18
18
|
.selectAll()
|
|
19
19
|
.execute()
|
|
20
20
|
const bySubject = keyBy(res, 'subjectDid')
|
|
21
|
-
const uris = targetDids.map((did) => bySubject
|
|
21
|
+
const uris = targetDids.map((did) => bySubject.get(did)?.uri ?? '')
|
|
22
22
|
return {
|
|
23
23
|
uris,
|
|
24
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Timestamp } from '@bufbuild/protobuf'
|
|
1
2
|
import { Code, ConnectError, ServiceImpl } from '@connectrpc/connect'
|
|
3
|
+
import { DidDocument, IdResolver, getDid, getHandle } from '@atproto/identity'
|
|
2
4
|
import { Service } from '../../../proto/bsky_connect'
|
|
3
5
|
import { Database } from '../db'
|
|
4
|
-
import { DidDocument, IdResolver, getDid, getHandle } from '@atproto/identity'
|
|
5
|
-
import { Timestamp } from '@bufbuild/protobuf'
|
|
6
6
|
|
|
7
7
|
export default (
|
|
8
8
|
_db: Database,
|