@atproto/bsky 0.0.124 → 0.0.126
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 +22 -0
- package/dist/api/app/bsky/notification/listNotifications.d.ts +7 -0
- package/dist/api/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/listNotifications.js +21 -5
- package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -15
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +6 -0
- package/dist/context.js.map +1 -1
- package/dist/data-plane/client/hosts.d.ts +37 -0
- package/dist/data-plane/client/hosts.d.ts.map +1 -0
- package/dist/data-plane/client/hosts.js +106 -0
- package/dist/data-plane/client/hosts.js.map +1 -0
- package/dist/data-plane/client/index.d.ts +13 -0
- package/dist/data-plane/client/index.d.ts.map +1 -0
- package/dist/data-plane/client/index.js +133 -0
- package/dist/data-plane/client/index.js.map +1 -0
- package/dist/data-plane/{client.d.ts → client/util.d.ts} +3 -10
- package/dist/data-plane/client/util.d.ts.map +1 -0
- package/dist/data-plane/client/util.js +85 -0
- package/dist/data-plane/client/util.js.map +1 -0
- package/dist/data-plane/server/db/pagination.d.ts +69 -9
- package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
- package/dist/data-plane/server/db/pagination.js +114 -14
- package/dist/data-plane/server/db/pagination.js.map +1 -1
- package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
- package/dist/data-plane/server/routes/notifs.js +3 -5
- package/dist/data-plane/server/routes/notifs.js.map +1 -1
- package/dist/data-plane/server/subscription.d.ts.map +1 -1
- package/dist/data-plane/server/subscription.js +6 -0
- package/dist/data-plane/server/subscription.js.map +1 -1
- package/dist/etcd.d.ts +25 -0
- package/dist/etcd.d.ts.map +1 -0
- package/dist/etcd.js +109 -0
- package/dist/etcd.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +6 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +12 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +304 -156
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +168 -80
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts +17 -0
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js +16 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts +40 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +0 -4
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -2
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +1 -30
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +0 -27
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/logger.d.ts +1 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +2 -1
- package/dist/logger.js.map +1 -1
- package/package.json +16 -15
- package/src/api/app/bsky/notification/listNotifications.ts +28 -6
- package/src/config.ts +45 -15
- package/src/context.ts +12 -1
- package/src/data-plane/client/hosts.ts +103 -0
- package/src/data-plane/client/index.ts +123 -0
- package/src/data-plane/client/util.ts +66 -0
- package/src/data-plane/server/db/pagination.ts +158 -35
- package/src/data-plane/server/routes/notifs.ts +4 -9
- package/src/data-plane/server/subscription.ts +7 -2
- package/src/etcd.ts +90 -0
- package/src/index.ts +26 -2
- package/src/lexicon/index.ts +36 -0
- package/src/lexicon/lexicons.ts +183 -83
- package/src/lexicon/types/app/bsky/embed/video.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/defs.ts +30 -0
- package/src/lexicon/types/com/atproto/identity/refreshIdentity.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveDid.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/resolveIdentity.ts +48 -0
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +0 -4
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +0 -2
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +0 -59
- package/src/logger.ts +2 -0
- package/tests/etcd.test.ts +301 -0
- package/tests/views/__snapshots__/notifications.test.ts.snap +3 -3
- package/tests/views/notifications.test.ts +190 -10
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/dist/data-plane/client.d.ts.map +0 -1
- package/dist/data-plane/client.js +0 -156
- package/dist/data-plane/client.js.map +0 -1
- package/src/data-plane/client.ts +0 -154
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/auth-verifier.ts","./src/bsync.ts","./src/config.ts","./src/context.ts","./src/courier.ts","./src/error.ts","./src/feature-gates.ts","./src/index.ts","./src/logger.ts","./src/pipeline.ts","./src/redis.ts","./src/util.ts","./src/api/blob-dispatcher.ts","./src/api/blob-resolver.ts","./src/api/health.ts","./src/api/index.ts","./src/api/util.ts","./src/api/well-known.ts","./src/api/app/bsky/actor/getProfile.ts","./src/api/app/bsky/actor/getProfiles.ts","./src/api/app/bsky/actor/getSuggestions.ts","./src/api/app/bsky/actor/searchActors.ts","./src/api/app/bsky/actor/searchActorsTypeahead.ts","./src/api/app/bsky/feed/getActorFeeds.ts","./src/api/app/bsky/feed/getActorLikes.ts","./src/api/app/bsky/feed/getAuthorFeed.ts","./src/api/app/bsky/feed/getFeed.ts","./src/api/app/bsky/feed/getFeedGenerator.ts","./src/api/app/bsky/feed/getFeedGenerators.ts","./src/api/app/bsky/feed/getLikes.ts","./src/api/app/bsky/feed/getListFeed.ts","./src/api/app/bsky/feed/getPostThread.ts","./src/api/app/bsky/feed/getPosts.ts","./src/api/app/bsky/feed/getQuotes.ts","./src/api/app/bsky/feed/getRepostedBy.ts","./src/api/app/bsky/feed/getSuggestedFeeds.ts","./src/api/app/bsky/feed/getTimeline.ts","./src/api/app/bsky/feed/searchPosts.ts","./src/api/app/bsky/graph/getActorStarterPacks.ts","./src/api/app/bsky/graph/getBlocks.ts","./src/api/app/bsky/graph/getFollowers.ts","./src/api/app/bsky/graph/getFollows.ts","./src/api/app/bsky/graph/getKnownFollowers.ts","./src/api/app/bsky/graph/getList.ts","./src/api/app/bsky/graph/getListBlocks.ts","./src/api/app/bsky/graph/getListMutes.ts","./src/api/app/bsky/graph/getLists.ts","./src/api/app/bsky/graph/getMutes.ts","./src/api/app/bsky/graph/getRelationships.ts","./src/api/app/bsky/graph/getStarterPack.ts","./src/api/app/bsky/graph/getStarterPacks.ts","./src/api/app/bsky/graph/getSuggestedFollowsByActor.ts","./src/api/app/bsky/graph/muteActor.ts","./src/api/app/bsky/graph/muteActorList.ts","./src/api/app/bsky/graph/muteThread.ts","./src/api/app/bsky/graph/searchStarterPacks.ts","./src/api/app/bsky/graph/unmuteActor.ts","./src/api/app/bsky/graph/unmuteActorList.ts","./src/api/app/bsky/graph/unmuteThread.ts","./src/api/app/bsky/labeler/getServices.ts","./src/api/app/bsky/notification/getUnreadCount.ts","./src/api/app/bsky/notification/listNotifications.ts","./src/api/app/bsky/notification/putPreferences.ts","./src/api/app/bsky/notification/registerPush.ts","./src/api/app/bsky/notification/updateSeen.ts","./src/api/app/bsky/unspecced/getConfig.ts","./src/api/app/bsky/unspecced/getPopularFeedGenerators.ts","./src/api/app/bsky/unspecced/getTaggedSuggestions.ts","./src/api/app/bsky/unspecced/getTrendingTopics.ts","./src/api/com/atproto/admin/getAccountInfos.ts","./src/api/com/atproto/admin/getSubjectStatus.ts","./src/api/com/atproto/admin/updateSubjectStatus.ts","./src/api/com/atproto/identity/resolveHandle.ts","./src/api/com/atproto/label/queryLabels.ts","./src/api/com/atproto/repo/getRecord.ts","./src/api/com/atproto/temp/fetchLabels.ts","./src/cache/read-through.ts","./src/data-plane/client.ts","./src/data-plane/index.ts","./src/data-plane/bsync/index.ts","./src/data-plane/server/background.ts","./src/data-plane/server/index.ts","./src/data-plane/server/subscription.ts","./src/data-plane/server/util.ts","./src/data-plane/server/db/database-schema.ts","./src/data-plane/server/db/db.ts","./src/data-plane/server/db/index.ts","./src/data-plane/server/db/pagination.ts","./src/data-plane/server/db/types.ts","./src/data-plane/server/db/util.ts","./src/data-plane/server/db/migrations/20230309T045948368Z-init.ts","./src/data-plane/server/db/migrations/20230408T152211201Z-notification-init.ts","./src/data-plane/server/db/migrations/20230417T210628672Z-moderation-init.ts","./src/data-plane/server/db/migrations/20230420T211446071Z-did-cache.ts","./src/data-plane/server/db/migrations/20230427T194702079Z-notif-record-index.ts","./src/data-plane/server/db/migrations/20230605T144730094Z-post-profile-aggs.ts","./src/data-plane/server/db/migrations/20230607T211442112Z-feed-generator-init.ts","./src/data-plane/server/db/migrations/20230608T155101190Z-algo-whats-hot-view.ts","./src/data-plane/server/db/migrations/20230608T201813132Z-mute-lists.ts","./src/data-plane/server/db/migrations/20230608T205147239Z-mutes.ts","./src/data-plane/server/db/migrations/20230609T153623961Z-blocks.ts","./src/data-plane/server/db/migrations/20230609T232122649Z-actor-deletion-indexes.ts","./src/data-plane/server/db/migrations/20230610T203555962Z-suggested-follows.ts","./src/data-plane/server/db/migrations/20230611T215300060Z-actor-state.ts","./src/data-plane/server/db/migrations/20230620T161134972Z-post-langs.ts","./src/data-plane/server/db/migrations/20230627T212437895Z-optional-handle.ts","./src/data-plane/server/db/migrations/20230629T220835893Z-remove-post-hierarchy.ts","./src/data-plane/server/db/migrations/20230703T045536691Z-feed-and-label-indices.ts","./src/data-plane/server/db/migrations/20230720T164800037Z-posts-cursor-idx.ts","./src/data-plane/server/db/migrations/20230807T035309811Z-feed-item-delete-invite-for-user-idx.ts","./src/data-plane/server/db/migrations/20230808T172902639Z-repo-rev.ts","./src/data-plane/server/db/migrations/20230810T203349843Z-action-duration.ts","./src/data-plane/server/db/migrations/20230817T195936007Z-native-notifications.ts","./src/data-plane/server/db/migrations/20230830T205507322Z-suggested-feeds.ts","./src/data-plane/server/db/migrations/20230904T211011773Z-block-lists.ts","./src/data-plane/server/db/migrations/20230906T222220386Z-thread-gating.ts","./src/data-plane/server/db/migrations/20230920T213858047Z-add-tags-to-post.ts","./src/data-plane/server/db/migrations/20230929T192920807Z-record-cursor-indexes.ts","./src/data-plane/server/db/migrations/20231003T202833377Z-create-moderation-subject-status.ts","./src/data-plane/server/db/migrations/20231220T225126090Z-blob-takedowns.ts","./src/data-plane/server/db/migrations/20240124T023719200Z-tagged-suggestions.ts","./src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts","./src/data-plane/server/db/migrations/20240530T170337073Z-account-deactivation.ts","./src/data-plane/server/db/migrations/20240606T171229898Z-thread-mutes.ts","./src/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.ts","./src/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.ts","./src/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.ts","./src/data-plane/server/db/migrations/20240723T220703655Z-quotes.ts","./src/data-plane/server/db/migrations/20240801T193939827Z-post-gate.ts","./src/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.ts","./src/data-plane/server/db/migrations/20240829T211238293Z-simplify-actor-sync.ts","./src/data-plane/server/db/migrations/20240831T134810923Z-pinned-posts.ts","./src/data-plane/server/db/migrations/20241114T153108102Z-add-starter-packs-name.ts","./src/data-plane/server/db/migrations/20250116T222618297Z-post-embed-video.ts","./src/data-plane/server/db/migrations/20250207T174822012Z-add-label-exp.ts","./src/data-plane/server/db/migrations/index.ts","./src/data-plane/server/db/migrations/provider.ts","./src/data-plane/server/db/tables/actor-block.ts","./src/data-plane/server/db/tables/actor-state.ts","./src/data-plane/server/db/tables/actor-sync.ts","./src/data-plane/server/db/tables/actor.ts","./src/data-plane/server/db/tables/algo.ts","./src/data-plane/server/db/tables/blob-takedown.ts","./src/data-plane/server/db/tables/did-cache.ts","./src/data-plane/server/db/tables/duplicate-record.ts","./src/data-plane/server/db/tables/feed-generator.ts","./src/data-plane/server/db/tables/feed-item.ts","./src/data-plane/server/db/tables/follow.ts","./src/data-plane/server/db/tables/label.ts","./src/data-plane/server/db/tables/labeler.ts","./src/data-plane/server/db/tables/like.ts","./src/data-plane/server/db/tables/list-block.ts","./src/data-plane/server/db/tables/list-item.ts","./src/data-plane/server/db/tables/list-mute.ts","./src/data-plane/server/db/tables/list.ts","./src/data-plane/server/db/tables/mute.ts","./src/data-plane/server/db/tables/notification-push-token.ts","./src/data-plane/server/db/tables/notification.ts","./src/data-plane/server/db/tables/post-agg.ts","./src/data-plane/server/db/tables/post-embed.ts","./src/data-plane/server/db/tables/post-gate.ts","./src/data-plane/server/db/tables/post.ts","./src/data-plane/server/db/tables/profile-agg.ts","./src/data-plane/server/db/tables/profile.ts","./src/data-plane/server/db/tables/quote.ts","./src/data-plane/server/db/tables/record.ts","./src/data-plane/server/db/tables/repost.ts","./src/data-plane/server/db/tables/starter-pack.ts","./src/data-plane/server/db/tables/subscription.ts","./src/data-plane/server/db/tables/suggested-feed.ts","./src/data-plane/server/db/tables/suggested-follow.ts","./src/data-plane/server/db/tables/tagged-suggestion.ts","./src/data-plane/server/db/tables/thread-gate.ts","./src/data-plane/server/db/tables/thread-mute.ts","./src/data-plane/server/db/tables/view-param.ts","./src/data-plane/server/indexing/index.ts","./src/data-plane/server/indexing/processor.ts","./src/data-plane/server/indexing/plugins/block.ts","./src/data-plane/server/indexing/plugins/chat-declaration.ts","./src/data-plane/server/indexing/plugins/feed-generator.ts","./src/data-plane/server/indexing/plugins/follow.ts","./src/data-plane/server/indexing/plugins/labeler.ts","./src/data-plane/server/indexing/plugins/like.ts","./src/data-plane/server/indexing/plugins/list-block.ts","./src/data-plane/server/indexing/plugins/list-item.ts","./src/data-plane/server/indexing/plugins/list.ts","./src/data-plane/server/indexing/plugins/post-gate.ts","./src/data-plane/server/indexing/plugins/post.ts","./src/data-plane/server/indexing/plugins/profile.ts","./src/data-plane/server/indexing/plugins/repost.ts","./src/data-plane/server/indexing/plugins/starter-pack.ts","./src/data-plane/server/indexing/plugins/thread-gate.ts","./src/data-plane/server/routes/blocks.ts","./src/data-plane/server/routes/feed-gens.ts","./src/data-plane/server/routes/feeds.ts","./src/data-plane/server/routes/follows.ts","./src/data-plane/server/routes/identity.ts","./src/data-plane/server/routes/index.ts","./src/data-plane/server/routes/interactions.ts","./src/data-plane/server/routes/labels.ts","./src/data-plane/server/routes/likes.ts","./src/data-plane/server/routes/lists.ts","./src/data-plane/server/routes/moderation.ts","./src/data-plane/server/routes/mutes.ts","./src/data-plane/server/routes/notifs.ts","./src/data-plane/server/routes/posts.ts","./src/data-plane/server/routes/profile.ts","./src/data-plane/server/routes/quotes.ts","./src/data-plane/server/routes/records.ts","./src/data-plane/server/routes/relationships.ts","./src/data-plane/server/routes/reposts.ts","./src/data-plane/server/routes/search.ts","./src/data-plane/server/routes/starter-packs.ts","./src/data-plane/server/routes/suggestions.ts","./src/data-plane/server/routes/sync.ts","./src/data-plane/server/routes/threads.ts","./src/hydration/actor.ts","./src/hydration/feed.ts","./src/hydration/graph.ts","./src/hydration/hydrator.ts","./src/hydration/label.ts","./src/hydration/util.ts","./src/image/index.ts","./src/image/invalidator.ts","./src/image/logger.ts","./src/image/server.ts","./src/image/sharp.ts","./src/image/uri.ts","./src/image/util.ts","./src/lexicon/index.ts","./src/lexicon/lexicons.ts","./src/lexicon/util.ts","./src/lexicon/types/app/bsky/actor/defs.ts","./src/lexicon/types/app/bsky/actor/getPreferences.ts","./src/lexicon/types/app/bsky/actor/getProfile.ts","./src/lexicon/types/app/bsky/actor/getProfiles.ts","./src/lexicon/types/app/bsky/actor/getSuggestions.ts","./src/lexicon/types/app/bsky/actor/profile.ts","./src/lexicon/types/app/bsky/actor/putPreferences.ts","./src/lexicon/types/app/bsky/actor/searchActors.ts","./src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts","./src/lexicon/types/app/bsky/embed/defs.ts","./src/lexicon/types/app/bsky/embed/external.ts","./src/lexicon/types/app/bsky/embed/images.ts","./src/lexicon/types/app/bsky/embed/record.ts","./src/lexicon/types/app/bsky/embed/recordWithMedia.ts","./src/lexicon/types/app/bsky/embed/video.ts","./src/lexicon/types/app/bsky/feed/defs.ts","./src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts","./src/lexicon/types/app/bsky/feed/generator.ts","./src/lexicon/types/app/bsky/feed/getActorFeeds.ts","./src/lexicon/types/app/bsky/feed/getActorLikes.ts","./src/lexicon/types/app/bsky/feed/getAuthorFeed.ts","./src/lexicon/types/app/bsky/feed/getFeed.ts","./src/lexicon/types/app/bsky/feed/getFeedGenerator.ts","./src/lexicon/types/app/bsky/feed/getFeedGenerators.ts","./src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts","./src/lexicon/types/app/bsky/feed/getLikes.ts","./src/lexicon/types/app/bsky/feed/getListFeed.ts","./src/lexicon/types/app/bsky/feed/getPostThread.ts","./src/lexicon/types/app/bsky/feed/getPosts.ts","./src/lexicon/types/app/bsky/feed/getQuotes.ts","./src/lexicon/types/app/bsky/feed/getRepostedBy.ts","./src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts","./src/lexicon/types/app/bsky/feed/getTimeline.ts","./src/lexicon/types/app/bsky/feed/like.ts","./src/lexicon/types/app/bsky/feed/post.ts","./src/lexicon/types/app/bsky/feed/postgate.ts","./src/lexicon/types/app/bsky/feed/repost.ts","./src/lexicon/types/app/bsky/feed/searchPosts.ts","./src/lexicon/types/app/bsky/feed/sendInteractions.ts","./src/lexicon/types/app/bsky/feed/threadgate.ts","./src/lexicon/types/app/bsky/graph/block.ts","./src/lexicon/types/app/bsky/graph/defs.ts","./src/lexicon/types/app/bsky/graph/follow.ts","./src/lexicon/types/app/bsky/graph/getActorStarterPacks.ts","./src/lexicon/types/app/bsky/graph/getBlocks.ts","./src/lexicon/types/app/bsky/graph/getFollowers.ts","./src/lexicon/types/app/bsky/graph/getFollows.ts","./src/lexicon/types/app/bsky/graph/getKnownFollowers.ts","./src/lexicon/types/app/bsky/graph/getList.ts","./src/lexicon/types/app/bsky/graph/getListBlocks.ts","./src/lexicon/types/app/bsky/graph/getListMutes.ts","./src/lexicon/types/app/bsky/graph/getLists.ts","./src/lexicon/types/app/bsky/graph/getMutes.ts","./src/lexicon/types/app/bsky/graph/getRelationships.ts","./src/lexicon/types/app/bsky/graph/getStarterPack.ts","./src/lexicon/types/app/bsky/graph/getStarterPacks.ts","./src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts","./src/lexicon/types/app/bsky/graph/list.ts","./src/lexicon/types/app/bsky/graph/listblock.ts","./src/lexicon/types/app/bsky/graph/listitem.ts","./src/lexicon/types/app/bsky/graph/muteActor.ts","./src/lexicon/types/app/bsky/graph/muteActorList.ts","./src/lexicon/types/app/bsky/graph/muteThread.ts","./src/lexicon/types/app/bsky/graph/searchStarterPacks.ts","./src/lexicon/types/app/bsky/graph/starterpack.ts","./src/lexicon/types/app/bsky/graph/unmuteActor.ts","./src/lexicon/types/app/bsky/graph/unmuteActorList.ts","./src/lexicon/types/app/bsky/graph/unmuteThread.ts","./src/lexicon/types/app/bsky/labeler/defs.ts","./src/lexicon/types/app/bsky/labeler/getServices.ts","./src/lexicon/types/app/bsky/labeler/service.ts","./src/lexicon/types/app/bsky/notification/getUnreadCount.ts","./src/lexicon/types/app/bsky/notification/listNotifications.ts","./src/lexicon/types/app/bsky/notification/putPreferences.ts","./src/lexicon/types/app/bsky/notification/registerPush.ts","./src/lexicon/types/app/bsky/notification/updateSeen.ts","./src/lexicon/types/app/bsky/richtext/facet.ts","./src/lexicon/types/app/bsky/unspecced/defs.ts","./src/lexicon/types/app/bsky/unspecced/getConfig.ts","./src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts","./src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts","./src/lexicon/types/app/bsky/unspecced/getTrendingTopics.ts","./src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts","./src/lexicon/types/app/bsky/video/defs.ts","./src/lexicon/types/app/bsky/video/getJobStatus.ts","./src/lexicon/types/app/bsky/video/getUploadLimits.ts","./src/lexicon/types/app/bsky/video/uploadVideo.ts","./src/lexicon/types/chat/bsky/actor/declaration.ts","./src/lexicon/types/chat/bsky/actor/defs.ts","./src/lexicon/types/chat/bsky/actor/deleteAccount.ts","./src/lexicon/types/chat/bsky/actor/exportAccountData.ts","./src/lexicon/types/chat/bsky/convo/acceptConvo.ts","./src/lexicon/types/chat/bsky/convo/defs.ts","./src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts","./src/lexicon/types/chat/bsky/convo/getConvo.ts","./src/lexicon/types/chat/bsky/convo/getConvoAvailability.ts","./src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts","./src/lexicon/types/chat/bsky/convo/getLog.ts","./src/lexicon/types/chat/bsky/convo/getMessages.ts","./src/lexicon/types/chat/bsky/convo/leaveConvo.ts","./src/lexicon/types/chat/bsky/convo/listConvos.ts","./src/lexicon/types/chat/bsky/convo/muteConvo.ts","./src/lexicon/types/chat/bsky/convo/sendMessage.ts","./src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts","./src/lexicon/types/chat/bsky/convo/unmuteConvo.ts","./src/lexicon/types/chat/bsky/convo/updateAllRead.ts","./src/lexicon/types/chat/bsky/convo/updateRead.ts","./src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts","./src/lexicon/types/chat/bsky/moderation/getMessageContext.ts","./src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts","./src/lexicon/types/com/atproto/admin/defs.ts","./src/lexicon/types/com/atproto/admin/deleteAccount.ts","./src/lexicon/types/com/atproto/admin/disableAccountInvites.ts","./src/lexicon/types/com/atproto/admin/disableInviteCodes.ts","./src/lexicon/types/com/atproto/admin/enableAccountInvites.ts","./src/lexicon/types/com/atproto/admin/getAccountInfo.ts","./src/lexicon/types/com/atproto/admin/getAccountInfos.ts","./src/lexicon/types/com/atproto/admin/getInviteCodes.ts","./src/lexicon/types/com/atproto/admin/getSubjectStatus.ts","./src/lexicon/types/com/atproto/admin/searchAccounts.ts","./src/lexicon/types/com/atproto/admin/sendEmail.ts","./src/lexicon/types/com/atproto/admin/updateAccountEmail.ts","./src/lexicon/types/com/atproto/admin/updateAccountHandle.ts","./src/lexicon/types/com/atproto/admin/updateAccountPassword.ts","./src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts","./src/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.ts","./src/lexicon/types/com/atproto/identity/requestPlcOperationSignature.ts","./src/lexicon/types/com/atproto/identity/resolveHandle.ts","./src/lexicon/types/com/atproto/identity/signPlcOperation.ts","./src/lexicon/types/com/atproto/identity/submitPlcOperation.ts","./src/lexicon/types/com/atproto/identity/updateHandle.ts","./src/lexicon/types/com/atproto/label/defs.ts","./src/lexicon/types/com/atproto/label/queryLabels.ts","./src/lexicon/types/com/atproto/label/subscribeLabels.ts","./src/lexicon/types/com/atproto/lexicon/schema.ts","./src/lexicon/types/com/atproto/moderation/createReport.ts","./src/lexicon/types/com/atproto/moderation/defs.ts","./src/lexicon/types/com/atproto/repo/applyWrites.ts","./src/lexicon/types/com/atproto/repo/createRecord.ts","./src/lexicon/types/com/atproto/repo/defs.ts","./src/lexicon/types/com/atproto/repo/deleteRecord.ts","./src/lexicon/types/com/atproto/repo/describeRepo.ts","./src/lexicon/types/com/atproto/repo/getRecord.ts","./src/lexicon/types/com/atproto/repo/importRepo.ts","./src/lexicon/types/com/atproto/repo/listMissingBlobs.ts","./src/lexicon/types/com/atproto/repo/listRecords.ts","./src/lexicon/types/com/atproto/repo/putRecord.ts","./src/lexicon/types/com/atproto/repo/strongRef.ts","./src/lexicon/types/com/atproto/repo/uploadBlob.ts","./src/lexicon/types/com/atproto/server/activateAccount.ts","./src/lexicon/types/com/atproto/server/checkAccountStatus.ts","./src/lexicon/types/com/atproto/server/confirmEmail.ts","./src/lexicon/types/com/atproto/server/createAccount.ts","./src/lexicon/types/com/atproto/server/createAppPassword.ts","./src/lexicon/types/com/atproto/server/createInviteCode.ts","./src/lexicon/types/com/atproto/server/createInviteCodes.ts","./src/lexicon/types/com/atproto/server/createSession.ts","./src/lexicon/types/com/atproto/server/deactivateAccount.ts","./src/lexicon/types/com/atproto/server/defs.ts","./src/lexicon/types/com/atproto/server/deleteAccount.ts","./src/lexicon/types/com/atproto/server/deleteSession.ts","./src/lexicon/types/com/atproto/server/describeServer.ts","./src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts","./src/lexicon/types/com/atproto/server/getServiceAuth.ts","./src/lexicon/types/com/atproto/server/getSession.ts","./src/lexicon/types/com/atproto/server/listAppPasswords.ts","./src/lexicon/types/com/atproto/server/refreshSession.ts","./src/lexicon/types/com/atproto/server/requestAccountDelete.ts","./src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts","./src/lexicon/types/com/atproto/server/requestEmailUpdate.ts","./src/lexicon/types/com/atproto/server/requestPasswordReset.ts","./src/lexicon/types/com/atproto/server/reserveSigningKey.ts","./src/lexicon/types/com/atproto/server/resetPassword.ts","./src/lexicon/types/com/atproto/server/revokeAppPassword.ts","./src/lexicon/types/com/atproto/server/updateEmail.ts","./src/lexicon/types/com/atproto/sync/getBlob.ts","./src/lexicon/types/com/atproto/sync/getBlocks.ts","./src/lexicon/types/com/atproto/sync/getCheckout.ts","./src/lexicon/types/com/atproto/sync/getHead.ts","./src/lexicon/types/com/atproto/sync/getLatestCommit.ts","./src/lexicon/types/com/atproto/sync/getRecord.ts","./src/lexicon/types/com/atproto/sync/getRepo.ts","./src/lexicon/types/com/atproto/sync/getRepoStatus.ts","./src/lexicon/types/com/atproto/sync/listBlobs.ts","./src/lexicon/types/com/atproto/sync/listRepos.ts","./src/lexicon/types/com/atproto/sync/listReposByCollection.ts","./src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts","./src/lexicon/types/com/atproto/sync/requestCrawl.ts","./src/lexicon/types/com/atproto/sync/subscribeRepos.ts","./src/lexicon/types/com/atproto/temp/addReservedHandle.ts","./src/lexicon/types/com/atproto/temp/checkSignupQueue.ts","./src/lexicon/types/com/atproto/temp/fetchLabels.ts","./src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts","./src/proto/bsky_connect.ts","./src/proto/bsky_pb.ts","./src/proto/bsync_connect.ts","./src/proto/bsync_pb.ts","./src/proto/courier_connect.ts","./src/proto/courier_pb.ts","./src/util/debug.ts","./src/util/http.ts","./src/util/retry.ts","./src/util/uris.ts","./src/views/index.ts","./src/views/types.ts","./src/views/util.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./src/auth-verifier.ts","./src/bsync.ts","./src/config.ts","./src/context.ts","./src/courier.ts","./src/error.ts","./src/etcd.ts","./src/feature-gates.ts","./src/index.ts","./src/logger.ts","./src/pipeline.ts","./src/redis.ts","./src/util.ts","./src/api/blob-dispatcher.ts","./src/api/blob-resolver.ts","./src/api/health.ts","./src/api/index.ts","./src/api/util.ts","./src/api/well-known.ts","./src/api/app/bsky/actor/getProfile.ts","./src/api/app/bsky/actor/getProfiles.ts","./src/api/app/bsky/actor/getSuggestions.ts","./src/api/app/bsky/actor/searchActors.ts","./src/api/app/bsky/actor/searchActorsTypeahead.ts","./src/api/app/bsky/feed/getActorFeeds.ts","./src/api/app/bsky/feed/getActorLikes.ts","./src/api/app/bsky/feed/getAuthorFeed.ts","./src/api/app/bsky/feed/getFeed.ts","./src/api/app/bsky/feed/getFeedGenerator.ts","./src/api/app/bsky/feed/getFeedGenerators.ts","./src/api/app/bsky/feed/getLikes.ts","./src/api/app/bsky/feed/getListFeed.ts","./src/api/app/bsky/feed/getPostThread.ts","./src/api/app/bsky/feed/getPosts.ts","./src/api/app/bsky/feed/getQuotes.ts","./src/api/app/bsky/feed/getRepostedBy.ts","./src/api/app/bsky/feed/getSuggestedFeeds.ts","./src/api/app/bsky/feed/getTimeline.ts","./src/api/app/bsky/feed/searchPosts.ts","./src/api/app/bsky/graph/getActorStarterPacks.ts","./src/api/app/bsky/graph/getBlocks.ts","./src/api/app/bsky/graph/getFollowers.ts","./src/api/app/bsky/graph/getFollows.ts","./src/api/app/bsky/graph/getKnownFollowers.ts","./src/api/app/bsky/graph/getList.ts","./src/api/app/bsky/graph/getListBlocks.ts","./src/api/app/bsky/graph/getListMutes.ts","./src/api/app/bsky/graph/getLists.ts","./src/api/app/bsky/graph/getMutes.ts","./src/api/app/bsky/graph/getRelationships.ts","./src/api/app/bsky/graph/getStarterPack.ts","./src/api/app/bsky/graph/getStarterPacks.ts","./src/api/app/bsky/graph/getSuggestedFollowsByActor.ts","./src/api/app/bsky/graph/muteActor.ts","./src/api/app/bsky/graph/muteActorList.ts","./src/api/app/bsky/graph/muteThread.ts","./src/api/app/bsky/graph/searchStarterPacks.ts","./src/api/app/bsky/graph/unmuteActor.ts","./src/api/app/bsky/graph/unmuteActorList.ts","./src/api/app/bsky/graph/unmuteThread.ts","./src/api/app/bsky/labeler/getServices.ts","./src/api/app/bsky/notification/getUnreadCount.ts","./src/api/app/bsky/notification/listNotifications.ts","./src/api/app/bsky/notification/putPreferences.ts","./src/api/app/bsky/notification/registerPush.ts","./src/api/app/bsky/notification/updateSeen.ts","./src/api/app/bsky/unspecced/getConfig.ts","./src/api/app/bsky/unspecced/getPopularFeedGenerators.ts","./src/api/app/bsky/unspecced/getTaggedSuggestions.ts","./src/api/app/bsky/unspecced/getTrendingTopics.ts","./src/api/com/atproto/admin/getAccountInfos.ts","./src/api/com/atproto/admin/getSubjectStatus.ts","./src/api/com/atproto/admin/updateSubjectStatus.ts","./src/api/com/atproto/identity/resolveHandle.ts","./src/api/com/atproto/label/queryLabels.ts","./src/api/com/atproto/repo/getRecord.ts","./src/api/com/atproto/temp/fetchLabels.ts","./src/cache/read-through.ts","./src/data-plane/index.ts","./src/data-plane/bsync/index.ts","./src/data-plane/client/hosts.ts","./src/data-plane/client/index.ts","./src/data-plane/client/util.ts","./src/data-plane/server/background.ts","./src/data-plane/server/index.ts","./src/data-plane/server/subscription.ts","./src/data-plane/server/util.ts","./src/data-plane/server/db/database-schema.ts","./src/data-plane/server/db/db.ts","./src/data-plane/server/db/index.ts","./src/data-plane/server/db/pagination.ts","./src/data-plane/server/db/types.ts","./src/data-plane/server/db/util.ts","./src/data-plane/server/db/migrations/20230309T045948368Z-init.ts","./src/data-plane/server/db/migrations/20230408T152211201Z-notification-init.ts","./src/data-plane/server/db/migrations/20230417T210628672Z-moderation-init.ts","./src/data-plane/server/db/migrations/20230420T211446071Z-did-cache.ts","./src/data-plane/server/db/migrations/20230427T194702079Z-notif-record-index.ts","./src/data-plane/server/db/migrations/20230605T144730094Z-post-profile-aggs.ts","./src/data-plane/server/db/migrations/20230607T211442112Z-feed-generator-init.ts","./src/data-plane/server/db/migrations/20230608T155101190Z-algo-whats-hot-view.ts","./src/data-plane/server/db/migrations/20230608T201813132Z-mute-lists.ts","./src/data-plane/server/db/migrations/20230608T205147239Z-mutes.ts","./src/data-plane/server/db/migrations/20230609T153623961Z-blocks.ts","./src/data-plane/server/db/migrations/20230609T232122649Z-actor-deletion-indexes.ts","./src/data-plane/server/db/migrations/20230610T203555962Z-suggested-follows.ts","./src/data-plane/server/db/migrations/20230611T215300060Z-actor-state.ts","./src/data-plane/server/db/migrations/20230620T161134972Z-post-langs.ts","./src/data-plane/server/db/migrations/20230627T212437895Z-optional-handle.ts","./src/data-plane/server/db/migrations/20230629T220835893Z-remove-post-hierarchy.ts","./src/data-plane/server/db/migrations/20230703T045536691Z-feed-and-label-indices.ts","./src/data-plane/server/db/migrations/20230720T164800037Z-posts-cursor-idx.ts","./src/data-plane/server/db/migrations/20230807T035309811Z-feed-item-delete-invite-for-user-idx.ts","./src/data-plane/server/db/migrations/20230808T172902639Z-repo-rev.ts","./src/data-plane/server/db/migrations/20230810T203349843Z-action-duration.ts","./src/data-plane/server/db/migrations/20230817T195936007Z-native-notifications.ts","./src/data-plane/server/db/migrations/20230830T205507322Z-suggested-feeds.ts","./src/data-plane/server/db/migrations/20230904T211011773Z-block-lists.ts","./src/data-plane/server/db/migrations/20230906T222220386Z-thread-gating.ts","./src/data-plane/server/db/migrations/20230920T213858047Z-add-tags-to-post.ts","./src/data-plane/server/db/migrations/20230929T192920807Z-record-cursor-indexes.ts","./src/data-plane/server/db/migrations/20231003T202833377Z-create-moderation-subject-status.ts","./src/data-plane/server/db/migrations/20231220T225126090Z-blob-takedowns.ts","./src/data-plane/server/db/migrations/20240124T023719200Z-tagged-suggestions.ts","./src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts","./src/data-plane/server/db/migrations/20240530T170337073Z-account-deactivation.ts","./src/data-plane/server/db/migrations/20240606T171229898Z-thread-mutes.ts","./src/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.ts","./src/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.ts","./src/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.ts","./src/data-plane/server/db/migrations/20240723T220703655Z-quotes.ts","./src/data-plane/server/db/migrations/20240801T193939827Z-post-gate.ts","./src/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.ts","./src/data-plane/server/db/migrations/20240829T211238293Z-simplify-actor-sync.ts","./src/data-plane/server/db/migrations/20240831T134810923Z-pinned-posts.ts","./src/data-plane/server/db/migrations/20241114T153108102Z-add-starter-packs-name.ts","./src/data-plane/server/db/migrations/20250116T222618297Z-post-embed-video.ts","./src/data-plane/server/db/migrations/20250207T174822012Z-add-label-exp.ts","./src/data-plane/server/db/migrations/index.ts","./src/data-plane/server/db/migrations/provider.ts","./src/data-plane/server/db/tables/actor-block.ts","./src/data-plane/server/db/tables/actor-state.ts","./src/data-plane/server/db/tables/actor-sync.ts","./src/data-plane/server/db/tables/actor.ts","./src/data-plane/server/db/tables/algo.ts","./src/data-plane/server/db/tables/blob-takedown.ts","./src/data-plane/server/db/tables/did-cache.ts","./src/data-plane/server/db/tables/duplicate-record.ts","./src/data-plane/server/db/tables/feed-generator.ts","./src/data-plane/server/db/tables/feed-item.ts","./src/data-plane/server/db/tables/follow.ts","./src/data-plane/server/db/tables/label.ts","./src/data-plane/server/db/tables/labeler.ts","./src/data-plane/server/db/tables/like.ts","./src/data-plane/server/db/tables/list-block.ts","./src/data-plane/server/db/tables/list-item.ts","./src/data-plane/server/db/tables/list-mute.ts","./src/data-plane/server/db/tables/list.ts","./src/data-plane/server/db/tables/mute.ts","./src/data-plane/server/db/tables/notification-push-token.ts","./src/data-plane/server/db/tables/notification.ts","./src/data-plane/server/db/tables/post-agg.ts","./src/data-plane/server/db/tables/post-embed.ts","./src/data-plane/server/db/tables/post-gate.ts","./src/data-plane/server/db/tables/post.ts","./src/data-plane/server/db/tables/profile-agg.ts","./src/data-plane/server/db/tables/profile.ts","./src/data-plane/server/db/tables/quote.ts","./src/data-plane/server/db/tables/record.ts","./src/data-plane/server/db/tables/repost.ts","./src/data-plane/server/db/tables/starter-pack.ts","./src/data-plane/server/db/tables/subscription.ts","./src/data-plane/server/db/tables/suggested-feed.ts","./src/data-plane/server/db/tables/suggested-follow.ts","./src/data-plane/server/db/tables/tagged-suggestion.ts","./src/data-plane/server/db/tables/thread-gate.ts","./src/data-plane/server/db/tables/thread-mute.ts","./src/data-plane/server/db/tables/view-param.ts","./src/data-plane/server/indexing/index.ts","./src/data-plane/server/indexing/processor.ts","./src/data-plane/server/indexing/plugins/block.ts","./src/data-plane/server/indexing/plugins/chat-declaration.ts","./src/data-plane/server/indexing/plugins/feed-generator.ts","./src/data-plane/server/indexing/plugins/follow.ts","./src/data-plane/server/indexing/plugins/labeler.ts","./src/data-plane/server/indexing/plugins/like.ts","./src/data-plane/server/indexing/plugins/list-block.ts","./src/data-plane/server/indexing/plugins/list-item.ts","./src/data-plane/server/indexing/plugins/list.ts","./src/data-plane/server/indexing/plugins/post-gate.ts","./src/data-plane/server/indexing/plugins/post.ts","./src/data-plane/server/indexing/plugins/profile.ts","./src/data-plane/server/indexing/plugins/repost.ts","./src/data-plane/server/indexing/plugins/starter-pack.ts","./src/data-plane/server/indexing/plugins/thread-gate.ts","./src/data-plane/server/routes/blocks.ts","./src/data-plane/server/routes/feed-gens.ts","./src/data-plane/server/routes/feeds.ts","./src/data-plane/server/routes/follows.ts","./src/data-plane/server/routes/identity.ts","./src/data-plane/server/routes/index.ts","./src/data-plane/server/routes/interactions.ts","./src/data-plane/server/routes/labels.ts","./src/data-plane/server/routes/likes.ts","./src/data-plane/server/routes/lists.ts","./src/data-plane/server/routes/moderation.ts","./src/data-plane/server/routes/mutes.ts","./src/data-plane/server/routes/notifs.ts","./src/data-plane/server/routes/posts.ts","./src/data-plane/server/routes/profile.ts","./src/data-plane/server/routes/quotes.ts","./src/data-plane/server/routes/records.ts","./src/data-plane/server/routes/relationships.ts","./src/data-plane/server/routes/reposts.ts","./src/data-plane/server/routes/search.ts","./src/data-plane/server/routes/starter-packs.ts","./src/data-plane/server/routes/suggestions.ts","./src/data-plane/server/routes/sync.ts","./src/data-plane/server/routes/threads.ts","./src/hydration/actor.ts","./src/hydration/feed.ts","./src/hydration/graph.ts","./src/hydration/hydrator.ts","./src/hydration/label.ts","./src/hydration/util.ts","./src/image/index.ts","./src/image/invalidator.ts","./src/image/logger.ts","./src/image/server.ts","./src/image/sharp.ts","./src/image/uri.ts","./src/image/util.ts","./src/lexicon/index.ts","./src/lexicon/lexicons.ts","./src/lexicon/util.ts","./src/lexicon/types/app/bsky/actor/defs.ts","./src/lexicon/types/app/bsky/actor/getPreferences.ts","./src/lexicon/types/app/bsky/actor/getProfile.ts","./src/lexicon/types/app/bsky/actor/getProfiles.ts","./src/lexicon/types/app/bsky/actor/getSuggestions.ts","./src/lexicon/types/app/bsky/actor/profile.ts","./src/lexicon/types/app/bsky/actor/putPreferences.ts","./src/lexicon/types/app/bsky/actor/searchActors.ts","./src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts","./src/lexicon/types/app/bsky/embed/defs.ts","./src/lexicon/types/app/bsky/embed/external.ts","./src/lexicon/types/app/bsky/embed/images.ts","./src/lexicon/types/app/bsky/embed/record.ts","./src/lexicon/types/app/bsky/embed/recordWithMedia.ts","./src/lexicon/types/app/bsky/embed/video.ts","./src/lexicon/types/app/bsky/feed/defs.ts","./src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts","./src/lexicon/types/app/bsky/feed/generator.ts","./src/lexicon/types/app/bsky/feed/getActorFeeds.ts","./src/lexicon/types/app/bsky/feed/getActorLikes.ts","./src/lexicon/types/app/bsky/feed/getAuthorFeed.ts","./src/lexicon/types/app/bsky/feed/getFeed.ts","./src/lexicon/types/app/bsky/feed/getFeedGenerator.ts","./src/lexicon/types/app/bsky/feed/getFeedGenerators.ts","./src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts","./src/lexicon/types/app/bsky/feed/getLikes.ts","./src/lexicon/types/app/bsky/feed/getListFeed.ts","./src/lexicon/types/app/bsky/feed/getPostThread.ts","./src/lexicon/types/app/bsky/feed/getPosts.ts","./src/lexicon/types/app/bsky/feed/getQuotes.ts","./src/lexicon/types/app/bsky/feed/getRepostedBy.ts","./src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts","./src/lexicon/types/app/bsky/feed/getTimeline.ts","./src/lexicon/types/app/bsky/feed/like.ts","./src/lexicon/types/app/bsky/feed/post.ts","./src/lexicon/types/app/bsky/feed/postgate.ts","./src/lexicon/types/app/bsky/feed/repost.ts","./src/lexicon/types/app/bsky/feed/searchPosts.ts","./src/lexicon/types/app/bsky/feed/sendInteractions.ts","./src/lexicon/types/app/bsky/feed/threadgate.ts","./src/lexicon/types/app/bsky/graph/block.ts","./src/lexicon/types/app/bsky/graph/defs.ts","./src/lexicon/types/app/bsky/graph/follow.ts","./src/lexicon/types/app/bsky/graph/getActorStarterPacks.ts","./src/lexicon/types/app/bsky/graph/getBlocks.ts","./src/lexicon/types/app/bsky/graph/getFollowers.ts","./src/lexicon/types/app/bsky/graph/getFollows.ts","./src/lexicon/types/app/bsky/graph/getKnownFollowers.ts","./src/lexicon/types/app/bsky/graph/getList.ts","./src/lexicon/types/app/bsky/graph/getListBlocks.ts","./src/lexicon/types/app/bsky/graph/getListMutes.ts","./src/lexicon/types/app/bsky/graph/getLists.ts","./src/lexicon/types/app/bsky/graph/getMutes.ts","./src/lexicon/types/app/bsky/graph/getRelationships.ts","./src/lexicon/types/app/bsky/graph/getStarterPack.ts","./src/lexicon/types/app/bsky/graph/getStarterPacks.ts","./src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts","./src/lexicon/types/app/bsky/graph/list.ts","./src/lexicon/types/app/bsky/graph/listblock.ts","./src/lexicon/types/app/bsky/graph/listitem.ts","./src/lexicon/types/app/bsky/graph/muteActor.ts","./src/lexicon/types/app/bsky/graph/muteActorList.ts","./src/lexicon/types/app/bsky/graph/muteThread.ts","./src/lexicon/types/app/bsky/graph/searchStarterPacks.ts","./src/lexicon/types/app/bsky/graph/starterpack.ts","./src/lexicon/types/app/bsky/graph/unmuteActor.ts","./src/lexicon/types/app/bsky/graph/unmuteActorList.ts","./src/lexicon/types/app/bsky/graph/unmuteThread.ts","./src/lexicon/types/app/bsky/labeler/defs.ts","./src/lexicon/types/app/bsky/labeler/getServices.ts","./src/lexicon/types/app/bsky/labeler/service.ts","./src/lexicon/types/app/bsky/notification/getUnreadCount.ts","./src/lexicon/types/app/bsky/notification/listNotifications.ts","./src/lexicon/types/app/bsky/notification/putPreferences.ts","./src/lexicon/types/app/bsky/notification/registerPush.ts","./src/lexicon/types/app/bsky/notification/updateSeen.ts","./src/lexicon/types/app/bsky/richtext/facet.ts","./src/lexicon/types/app/bsky/unspecced/defs.ts","./src/lexicon/types/app/bsky/unspecced/getConfig.ts","./src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts","./src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts","./src/lexicon/types/app/bsky/unspecced/getTrendingTopics.ts","./src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts","./src/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts","./src/lexicon/types/app/bsky/video/defs.ts","./src/lexicon/types/app/bsky/video/getJobStatus.ts","./src/lexicon/types/app/bsky/video/getUploadLimits.ts","./src/lexicon/types/app/bsky/video/uploadVideo.ts","./src/lexicon/types/chat/bsky/actor/declaration.ts","./src/lexicon/types/chat/bsky/actor/defs.ts","./src/lexicon/types/chat/bsky/actor/deleteAccount.ts","./src/lexicon/types/chat/bsky/actor/exportAccountData.ts","./src/lexicon/types/chat/bsky/convo/acceptConvo.ts","./src/lexicon/types/chat/bsky/convo/defs.ts","./src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts","./src/lexicon/types/chat/bsky/convo/getConvo.ts","./src/lexicon/types/chat/bsky/convo/getConvoAvailability.ts","./src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts","./src/lexicon/types/chat/bsky/convo/getLog.ts","./src/lexicon/types/chat/bsky/convo/getMessages.ts","./src/lexicon/types/chat/bsky/convo/leaveConvo.ts","./src/lexicon/types/chat/bsky/convo/listConvos.ts","./src/lexicon/types/chat/bsky/convo/muteConvo.ts","./src/lexicon/types/chat/bsky/convo/sendMessage.ts","./src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts","./src/lexicon/types/chat/bsky/convo/unmuteConvo.ts","./src/lexicon/types/chat/bsky/convo/updateAllRead.ts","./src/lexicon/types/chat/bsky/convo/updateRead.ts","./src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts","./src/lexicon/types/chat/bsky/moderation/getMessageContext.ts","./src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts","./src/lexicon/types/com/atproto/admin/defs.ts","./src/lexicon/types/com/atproto/admin/deleteAccount.ts","./src/lexicon/types/com/atproto/admin/disableAccountInvites.ts","./src/lexicon/types/com/atproto/admin/disableInviteCodes.ts","./src/lexicon/types/com/atproto/admin/enableAccountInvites.ts","./src/lexicon/types/com/atproto/admin/getAccountInfo.ts","./src/lexicon/types/com/atproto/admin/getAccountInfos.ts","./src/lexicon/types/com/atproto/admin/getInviteCodes.ts","./src/lexicon/types/com/atproto/admin/getSubjectStatus.ts","./src/lexicon/types/com/atproto/admin/searchAccounts.ts","./src/lexicon/types/com/atproto/admin/sendEmail.ts","./src/lexicon/types/com/atproto/admin/updateAccountEmail.ts","./src/lexicon/types/com/atproto/admin/updateAccountHandle.ts","./src/lexicon/types/com/atproto/admin/updateAccountPassword.ts","./src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts","./src/lexicon/types/com/atproto/identity/defs.ts","./src/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.ts","./src/lexicon/types/com/atproto/identity/refreshIdentity.ts","./src/lexicon/types/com/atproto/identity/requestPlcOperationSignature.ts","./src/lexicon/types/com/atproto/identity/resolveDid.ts","./src/lexicon/types/com/atproto/identity/resolveHandle.ts","./src/lexicon/types/com/atproto/identity/resolveIdentity.ts","./src/lexicon/types/com/atproto/identity/signPlcOperation.ts","./src/lexicon/types/com/atproto/identity/submitPlcOperation.ts","./src/lexicon/types/com/atproto/identity/updateHandle.ts","./src/lexicon/types/com/atproto/label/defs.ts","./src/lexicon/types/com/atproto/label/queryLabels.ts","./src/lexicon/types/com/atproto/label/subscribeLabels.ts","./src/lexicon/types/com/atproto/lexicon/schema.ts","./src/lexicon/types/com/atproto/moderation/createReport.ts","./src/lexicon/types/com/atproto/moderation/defs.ts","./src/lexicon/types/com/atproto/repo/applyWrites.ts","./src/lexicon/types/com/atproto/repo/createRecord.ts","./src/lexicon/types/com/atproto/repo/defs.ts","./src/lexicon/types/com/atproto/repo/deleteRecord.ts","./src/lexicon/types/com/atproto/repo/describeRepo.ts","./src/lexicon/types/com/atproto/repo/getRecord.ts","./src/lexicon/types/com/atproto/repo/importRepo.ts","./src/lexicon/types/com/atproto/repo/listMissingBlobs.ts","./src/lexicon/types/com/atproto/repo/listRecords.ts","./src/lexicon/types/com/atproto/repo/putRecord.ts","./src/lexicon/types/com/atproto/repo/strongRef.ts","./src/lexicon/types/com/atproto/repo/uploadBlob.ts","./src/lexicon/types/com/atproto/server/activateAccount.ts","./src/lexicon/types/com/atproto/server/checkAccountStatus.ts","./src/lexicon/types/com/atproto/server/confirmEmail.ts","./src/lexicon/types/com/atproto/server/createAccount.ts","./src/lexicon/types/com/atproto/server/createAppPassword.ts","./src/lexicon/types/com/atproto/server/createInviteCode.ts","./src/lexicon/types/com/atproto/server/createInviteCodes.ts","./src/lexicon/types/com/atproto/server/createSession.ts","./src/lexicon/types/com/atproto/server/deactivateAccount.ts","./src/lexicon/types/com/atproto/server/defs.ts","./src/lexicon/types/com/atproto/server/deleteAccount.ts","./src/lexicon/types/com/atproto/server/deleteSession.ts","./src/lexicon/types/com/atproto/server/describeServer.ts","./src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts","./src/lexicon/types/com/atproto/server/getServiceAuth.ts","./src/lexicon/types/com/atproto/server/getSession.ts","./src/lexicon/types/com/atproto/server/listAppPasswords.ts","./src/lexicon/types/com/atproto/server/refreshSession.ts","./src/lexicon/types/com/atproto/server/requestAccountDelete.ts","./src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts","./src/lexicon/types/com/atproto/server/requestEmailUpdate.ts","./src/lexicon/types/com/atproto/server/requestPasswordReset.ts","./src/lexicon/types/com/atproto/server/reserveSigningKey.ts","./src/lexicon/types/com/atproto/server/resetPassword.ts","./src/lexicon/types/com/atproto/server/revokeAppPassword.ts","./src/lexicon/types/com/atproto/server/updateEmail.ts","./src/lexicon/types/com/atproto/sync/getBlob.ts","./src/lexicon/types/com/atproto/sync/getBlocks.ts","./src/lexicon/types/com/atproto/sync/getCheckout.ts","./src/lexicon/types/com/atproto/sync/getHead.ts","./src/lexicon/types/com/atproto/sync/getLatestCommit.ts","./src/lexicon/types/com/atproto/sync/getRecord.ts","./src/lexicon/types/com/atproto/sync/getRepo.ts","./src/lexicon/types/com/atproto/sync/getRepoStatus.ts","./src/lexicon/types/com/atproto/sync/listBlobs.ts","./src/lexicon/types/com/atproto/sync/listRepos.ts","./src/lexicon/types/com/atproto/sync/listReposByCollection.ts","./src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts","./src/lexicon/types/com/atproto/sync/requestCrawl.ts","./src/lexicon/types/com/atproto/sync/subscribeRepos.ts","./src/lexicon/types/com/atproto/temp/addReservedHandle.ts","./src/lexicon/types/com/atproto/temp/checkSignupQueue.ts","./src/lexicon/types/com/atproto/temp/fetchLabels.ts","./src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts","./src/proto/bsky_connect.ts","./src/proto/bsky_pb.ts","./src/proto/bsync_connect.ts","./src/proto/bsync_pb.ts","./src/proto/courier_connect.ts","./src/proto/courier_pb.ts","./src/util/debug.ts","./src/util/http.ts","./src/util/retry.ts","./src/util/uris.ts","./src/views/index.ts","./src/views/types.ts","./src/views/util.ts"],"version":"5.6.3"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./tests/_util.ts","./tests/auth.test.ts","./tests/blob-resolver.test.ts","./tests/entryway-auth.test.ts","./tests/feed-generation.test.ts","./tests/label-hydration.test.ts","./tests/postgates.test.ts","./tests/query-labels.test.ts","./tests/redis-cache.test.ts","./tests/server.test.ts","./tests/admin/admin-auth.test.ts","./tests/admin/moderation.test.ts","./tests/data-plane/db.test.ts","./tests/data-plane/duplicate-records.test.ts","./tests/data-plane/handle-invalidation.test.ts","./tests/data-plane/indexing.test.ts","./tests/data-plane/subscription.test.ts","./tests/data-plane/thread-mutes.test.ts","./tests/hydration/util.test.ts","./tests/image/server.test.ts","./tests/image/sharp.test.ts","./tests/image/uri.test.ts","./tests/seed/feed-hidden-replies.ts","./tests/seed/known-followers.ts","./tests/seed/postgates.ts","./tests/views/account-deactivation.test.ts","./tests/views/actor-likes.test.ts","./tests/views/actor-search.test.ts","./tests/views/author-feed.test.ts","./tests/views/block-lists.test.ts","./tests/views/blocks.test.ts","./tests/views/feed-hidden-replies.test.ts","./tests/views/feed-view-post.test.ts","./tests/views/follows.test.ts","./tests/views/known-followers.test.ts","./tests/views/labeler-service.test.ts","./tests/views/labels-needs-review.test.ts","./tests/views/labels-takedown.test.ts","./tests/views/likes.test.ts","./tests/views/list-feed.test.ts","./tests/views/lists.test.ts","./tests/views/mute-lists.test.ts","./tests/views/mutes.test.ts","./tests/views/notifications.test.ts","./tests/views/posts.test.ts","./tests/views/profile.test.ts","./tests/views/quotes.test.ts","./tests/views/reposts.test.ts","./tests/views/starter-packs.test.ts","./tests/views/suggested-follows.test.ts","./tests/views/suggestions.test.ts","./tests/views/thread.test.ts","./tests/views/threadgating.test.ts","./tests/views/timeline.test.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./tests/_util.ts","./tests/auth.test.ts","./tests/blob-resolver.test.ts","./tests/entryway-auth.test.ts","./tests/etcd.test.ts","./tests/feed-generation.test.ts","./tests/label-hydration.test.ts","./tests/postgates.test.ts","./tests/query-labels.test.ts","./tests/redis-cache.test.ts","./tests/server.test.ts","./tests/admin/admin-auth.test.ts","./tests/admin/moderation.test.ts","./tests/data-plane/db.test.ts","./tests/data-plane/duplicate-records.test.ts","./tests/data-plane/handle-invalidation.test.ts","./tests/data-plane/indexing.test.ts","./tests/data-plane/subscription.test.ts","./tests/data-plane/thread-mutes.test.ts","./tests/hydration/util.test.ts","./tests/image/server.test.ts","./tests/image/sharp.test.ts","./tests/image/uri.test.ts","./tests/seed/feed-hidden-replies.ts","./tests/seed/known-followers.ts","./tests/seed/postgates.ts","./tests/views/account-deactivation.test.ts","./tests/views/actor-likes.test.ts","./tests/views/actor-search.test.ts","./tests/views/author-feed.test.ts","./tests/views/block-lists.test.ts","./tests/views/blocks.test.ts","./tests/views/feed-hidden-replies.test.ts","./tests/views/feed-view-post.test.ts","./tests/views/follows.test.ts","./tests/views/known-followers.test.ts","./tests/views/labeler-service.test.ts","./tests/views/labels-needs-review.test.ts","./tests/views/labels-takedown.test.ts","./tests/views/likes.test.ts","./tests/views/list-feed.test.ts","./tests/views/lists.test.ts","./tests/views/mute-lists.test.ts","./tests/views/mutes.test.ts","./tests/views/notifications.test.ts","./tests/views/posts.test.ts","./tests/views/profile.test.ts","./tests/views/quotes.test.ts","./tests/views/reposts.test.ts","./tests/views/starter-packs.test.ts","./tests/views/suggested-follows.test.ts","./tests/views/suggestions.test.ts","./tests/views/thread.test.ts","./tests/views/threadgating.test.ts","./tests/views/timeline.test.ts"],"version":"5.6.3"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/data-plane/client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,aAAa,EAGd,MAAM,qBAAqB,CAAA;AAI5B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,OAAO,CAAC,CAAA;AAE3D,KAAK,WAAW,GAAG,KAAK,GAAG,GAAG,CAAA;AAG9B,eAAO,MAAM,qBAAqB,aACtB,MAAM,EAAE,QACZ;IAAE,WAAW,CAAC,EAAE,WAAW,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,KA8B3D,eACP,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,gBAAgB,QACtB,OAAO,SACL,IAAI,KACV,GAAG,IAAI,YAKT,CAAA;AAsCD,eAAO,MAAM,sBAAsB,kBAAmB,UAAU,qBAI/D,CAAA;AAED,eAAO,MAAM,kBAAkB,cAAe,UAAU,iBAIvD,CAAA;AAED,eAAO,MAAM,kBAAkB,aACnB,gBAAgB,QACpB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,uBAOnC,CAAA;AAED,eAAO,MAAM,cAAc,SAAU,YAAY,QAAQ;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,uBAQtE,CAAA;AAED,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAErE,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.getKeyAsDidKey = exports.getServiceEndpoint = exports.unpackIdentityKeys = exports.unpackIdentityServices = exports.isDataplaneError = exports.Code = exports.createDataPlaneClient = void 0;
|
|
30
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
31
|
-
const node_crypto_1 = require("node:crypto");
|
|
32
|
-
const connect_1 = require("@connectrpc/connect");
|
|
33
|
-
Object.defineProperty(exports, "Code", { enumerable: true, get: function () { return connect_1.Code; } });
|
|
34
|
-
const connect_node_1 = require("@connectrpc/connect-node");
|
|
35
|
-
const ui8 = __importStar(require("uint8arrays"));
|
|
36
|
-
const identity_1 = require("@atproto/identity");
|
|
37
|
-
const bsky_connect_1 = require("../proto/bsky_connect");
|
|
38
|
-
const MAX_RETRIES = 3;
|
|
39
|
-
const createDataPlaneClient = (baseUrls, opts) => {
|
|
40
|
-
const clients = baseUrls.map((baseUrl) => createBaseClient(baseUrl, opts));
|
|
41
|
-
(0, node_assert_1.default)(clients.length > 0, 'no clients available');
|
|
42
|
-
return (0, connect_1.makeAnyClient)(bsky_connect_1.Service, (method) => {
|
|
43
|
-
return async (...args) => {
|
|
44
|
-
let tries = 0;
|
|
45
|
-
let error;
|
|
46
|
-
let remainingClients = clients;
|
|
47
|
-
while (tries < MAX_RETRIES) {
|
|
48
|
-
const client = randomElement(remainingClients);
|
|
49
|
-
(0, node_assert_1.default)(client, 'no clients available');
|
|
50
|
-
try {
|
|
51
|
-
return await client.lib[method.localName](...args);
|
|
52
|
-
}
|
|
53
|
-
catch (err) {
|
|
54
|
-
if (err instanceof connect_1.ConnectError &&
|
|
55
|
-
(err.code === connect_1.Code.Unavailable || err.code === connect_1.Code.Aborted)) {
|
|
56
|
-
tries++;
|
|
57
|
-
error = err;
|
|
58
|
-
remainingClients = getRemainingClients(remainingClients, client);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw err;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
(0, node_assert_1.default)(error);
|
|
66
|
-
throw error;
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
exports.createDataPlaneClient = createDataPlaneClient;
|
|
71
|
-
const isDataplaneError = (err, code) => {
|
|
72
|
-
if (err instanceof connect_1.ConnectError) {
|
|
73
|
-
return !code || err.code === code;
|
|
74
|
-
}
|
|
75
|
-
return false;
|
|
76
|
-
};
|
|
77
|
-
exports.isDataplaneError = isDataplaneError;
|
|
78
|
-
const createBaseClient = (baseUrl, opts) => {
|
|
79
|
-
const { httpVersion = '2', rejectUnauthorized = true } = opts;
|
|
80
|
-
const transport = (0, connect_node_1.createGrpcTransport)({
|
|
81
|
-
baseUrl,
|
|
82
|
-
httpVersion,
|
|
83
|
-
acceptCompression: [],
|
|
84
|
-
nodeOptions: { rejectUnauthorized },
|
|
85
|
-
});
|
|
86
|
-
return {
|
|
87
|
-
lib: (0, connect_1.createPromiseClient)(bsky_connect_1.Service, transport),
|
|
88
|
-
url: new URL(baseUrl),
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
const getRemainingClients = (clients, lastClient) => {
|
|
92
|
-
if (clients.length < 2)
|
|
93
|
-
return clients; // no clients to choose from
|
|
94
|
-
if (lastClient.url.port) {
|
|
95
|
-
// if the last client had a port, we attempt to exclude its whole host.
|
|
96
|
-
const maybeRemaining = clients.filter((c) => c.url.hostname !== lastClient.url.hostname);
|
|
97
|
-
if (maybeRemaining.length) {
|
|
98
|
-
return maybeRemaining;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return clients.filter((c) => c !== lastClient);
|
|
102
|
-
};
|
|
103
|
-
const randomElement = (arr) => {
|
|
104
|
-
if (arr.length === 0)
|
|
105
|
-
return;
|
|
106
|
-
return arr[(0, node_crypto_1.randomInt)(arr.length)];
|
|
107
|
-
};
|
|
108
|
-
const unpackIdentityServices = (servicesBytes) => {
|
|
109
|
-
const servicesStr = ui8.toString(servicesBytes, 'utf8');
|
|
110
|
-
if (!servicesStr)
|
|
111
|
-
return {};
|
|
112
|
-
return JSON.parse(servicesStr);
|
|
113
|
-
};
|
|
114
|
-
exports.unpackIdentityServices = unpackIdentityServices;
|
|
115
|
-
const unpackIdentityKeys = (keysBytes) => {
|
|
116
|
-
const keysStr = ui8.toString(keysBytes, 'utf8');
|
|
117
|
-
if (!keysStr)
|
|
118
|
-
return {};
|
|
119
|
-
return JSON.parse(keysStr);
|
|
120
|
-
};
|
|
121
|
-
exports.unpackIdentityKeys = unpackIdentityKeys;
|
|
122
|
-
const getServiceEndpoint = (services, opts) => {
|
|
123
|
-
const endpoint = services[opts.id] &&
|
|
124
|
-
services[opts.id].Type === opts.type &&
|
|
125
|
-
validateUrl(services[opts.id].URL);
|
|
126
|
-
return endpoint || undefined;
|
|
127
|
-
};
|
|
128
|
-
exports.getServiceEndpoint = getServiceEndpoint;
|
|
129
|
-
const getKeyAsDidKey = (keys, opts) => {
|
|
130
|
-
const key = keys[opts.id] &&
|
|
131
|
-
(0, identity_1.getDidKeyFromMultibase)({
|
|
132
|
-
type: keys[opts.id].Type,
|
|
133
|
-
publicKeyMultibase: keys[opts.id].PublicKeyMultibase,
|
|
134
|
-
});
|
|
135
|
-
return key || undefined;
|
|
136
|
-
};
|
|
137
|
-
exports.getKeyAsDidKey = getKeyAsDidKey;
|
|
138
|
-
const validateUrl = (urlStr) => {
|
|
139
|
-
let url;
|
|
140
|
-
try {
|
|
141
|
-
url = new URL(urlStr);
|
|
142
|
-
}
|
|
143
|
-
catch {
|
|
144
|
-
return undefined;
|
|
145
|
-
}
|
|
146
|
-
if (!['http:', 'https:'].includes(url.protocol)) {
|
|
147
|
-
return undefined;
|
|
148
|
-
}
|
|
149
|
-
else if (!url.hostname) {
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return urlStr;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/data-plane/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA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code,
|
|
5
|
-
ConnectError,
|
|
6
|
-
PromiseClient,
|
|
7
|
-
createPromiseClient,
|
|
8
|
-
makeAnyClient,
|
|
9
|
-
} from '@connectrpc/connect'
|
|
10
|
-
import { createGrpcTransport } from '@connectrpc/connect-node'
|
|
11
|
-
import * as ui8 from 'uint8arrays'
|
|
12
|
-
import { getDidKeyFromMultibase } from '@atproto/identity'
|
|
13
|
-
import { Service } from '../proto/bsky_connect'
|
|
14
|
-
|
|
15
|
-
export type DataPlaneClient = PromiseClient<typeof Service>
|
|
16
|
-
type BaseClient = { lib: DataPlaneClient; url: URL }
|
|
17
|
-
type HttpVersion = '1.1' | '2'
|
|
18
|
-
const MAX_RETRIES = 3
|
|
19
|
-
|
|
20
|
-
export const createDataPlaneClient = (
|
|
21
|
-
baseUrls: string[],
|
|
22
|
-
opts: { httpVersion?: HttpVersion; rejectUnauthorized?: boolean },
|
|
23
|
-
) => {
|
|
24
|
-
const clients = baseUrls.map((baseUrl) => createBaseClient(baseUrl, opts))
|
|
25
|
-
assert(clients.length > 0, 'no clients available')
|
|
26
|
-
return makeAnyClient(Service, (method) => {
|
|
27
|
-
return async (...args) => {
|
|
28
|
-
let tries = 0
|
|
29
|
-
let error: unknown
|
|
30
|
-
let remainingClients = clients
|
|
31
|
-
while (tries < MAX_RETRIES) {
|
|
32
|
-
const client = randomElement(remainingClients)
|
|
33
|
-
assert(client, 'no clients available')
|
|
34
|
-
try {
|
|
35
|
-
return await client.lib[method.localName](...args)
|
|
36
|
-
} catch (err) {
|
|
37
|
-
if (
|
|
38
|
-
err instanceof ConnectError &&
|
|
39
|
-
(err.code === Code.Unavailable || err.code === Code.Aborted)
|
|
40
|
-
) {
|
|
41
|
-
tries++
|
|
42
|
-
error = err
|
|
43
|
-
remainingClients = getRemainingClients(remainingClients, client)
|
|
44
|
-
} else {
|
|
45
|
-
throw err
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
assert(error)
|
|
50
|
-
throw error
|
|
51
|
-
}
|
|
52
|
-
}) as DataPlaneClient
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Code }
|
|
56
|
-
|
|
57
|
-
export const isDataplaneError = (
|
|
58
|
-
err: unknown,
|
|
59
|
-
code?: Code,
|
|
60
|
-
): err is ConnectError => {
|
|
61
|
-
if (err instanceof ConnectError) {
|
|
62
|
-
return !code || err.code === code
|
|
63
|
-
}
|
|
64
|
-
return false
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const createBaseClient = (
|
|
68
|
-
baseUrl: string,
|
|
69
|
-
opts: { httpVersion?: HttpVersion; rejectUnauthorized?: boolean },
|
|
70
|
-
): BaseClient => {
|
|
71
|
-
const { httpVersion = '2', rejectUnauthorized = true } = opts
|
|
72
|
-
const transport = createGrpcTransport({
|
|
73
|
-
baseUrl,
|
|
74
|
-
httpVersion,
|
|
75
|
-
acceptCompression: [],
|
|
76
|
-
nodeOptions: { rejectUnauthorized },
|
|
77
|
-
})
|
|
78
|
-
return {
|
|
79
|
-
lib: createPromiseClient(Service, transport),
|
|
80
|
-
url: new URL(baseUrl),
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const getRemainingClients = (clients: BaseClient[], lastClient: BaseClient) => {
|
|
85
|
-
if (clients.length < 2) return clients // no clients to choose from
|
|
86
|
-
if (lastClient.url.port) {
|
|
87
|
-
// if the last client had a port, we attempt to exclude its whole host.
|
|
88
|
-
const maybeRemaining = clients.filter(
|
|
89
|
-
(c) => c.url.hostname !== lastClient.url.hostname,
|
|
90
|
-
)
|
|
91
|
-
if (maybeRemaining.length) {
|
|
92
|
-
return maybeRemaining
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return clients.filter((c) => c !== lastClient)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const randomElement = <T>(arr: T[]): T | undefined => {
|
|
99
|
-
if (arr.length === 0) return
|
|
100
|
-
return arr[randomInt(arr.length)]
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export const unpackIdentityServices = (servicesBytes: Uint8Array) => {
|
|
104
|
-
const servicesStr = ui8.toString(servicesBytes, 'utf8')
|
|
105
|
-
if (!servicesStr) return {}
|
|
106
|
-
return JSON.parse(servicesStr) as UnpackedServices
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export const unpackIdentityKeys = (keysBytes: Uint8Array) => {
|
|
110
|
-
const keysStr = ui8.toString(keysBytes, 'utf8')
|
|
111
|
-
if (!keysStr) return {}
|
|
112
|
-
return JSON.parse(keysStr) as UnpackedKeys
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export const getServiceEndpoint = (
|
|
116
|
-
services: UnpackedServices,
|
|
117
|
-
opts: { id: string; type: string },
|
|
118
|
-
) => {
|
|
119
|
-
const endpoint =
|
|
120
|
-
services[opts.id] &&
|
|
121
|
-
services[opts.id].Type === opts.type &&
|
|
122
|
-
validateUrl(services[opts.id].URL)
|
|
123
|
-
return endpoint || undefined
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export const getKeyAsDidKey = (keys: UnpackedKeys, opts: { id: string }) => {
|
|
127
|
-
const key =
|
|
128
|
-
keys[opts.id] &&
|
|
129
|
-
getDidKeyFromMultibase({
|
|
130
|
-
type: keys[opts.id].Type,
|
|
131
|
-
publicKeyMultibase: keys[opts.id].PublicKeyMultibase,
|
|
132
|
-
})
|
|
133
|
-
return key || undefined
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type UnpackedServices = Record<string, { Type: string; URL: string }>
|
|
137
|
-
|
|
138
|
-
type UnpackedKeys = Record<string, { Type: string; PublicKeyMultibase: string }>
|
|
139
|
-
|
|
140
|
-
const validateUrl = (urlStr: string): string | undefined => {
|
|
141
|
-
let url
|
|
142
|
-
try {
|
|
143
|
-
url = new URL(urlStr)
|
|
144
|
-
} catch {
|
|
145
|
-
return undefined
|
|
146
|
-
}
|
|
147
|
-
if (!['http:', 'https:'].includes(url.protocol)) {
|
|
148
|
-
return undefined
|
|
149
|
-
} else if (!url.hostname) {
|
|
150
|
-
return undefined
|
|
151
|
-
} else {
|
|
152
|
-
return urlStr
|
|
153
|
-
}
|
|
154
|
-
}
|