@atproto/bsky 0.0.166 → 0.0.167
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 +7 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.d.ts +4 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.js +63 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.js.map +1 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.d.ts +4 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.js +63 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.js.map +1 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/putPreferencesV2.js +2 -1
- package/dist/api/app/bsky/notification/putPreferencesV2.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/data-plane/bsync/index.d.ts.map +1 -1
- package/dist/data-plane/bsync/index.js +52 -38
- package/dist/data-plane/bsync/index.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.js +24 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/pagination.d.ts +22 -0
- package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
- package/dist/data-plane/server/db/pagination.js +30 -1
- package/dist/data-plane/server/db/pagination.js.map +1 -1
- package/dist/data-plane/server/db/tables/activity-subscription.d.ts +13 -0
- package/dist/data-plane/server/db/tables/activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/activity-subscription.js +5 -0
- package/dist/data-plane/server/db/tables/activity-subscription.js.map +1 -0
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +2 -0
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/notif-declaration.d.ts +7 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.js +72 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.js.map +1 -0
- package/dist/data-plane/server/routes/activity-subscription.d.ts +6 -0
- package/dist/data-plane/server/routes/activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/routes/activity-subscription.js +67 -0
- package/dist/data-plane/server/routes/activity-subscription.js.map +1 -0
- package/dist/data-plane/server/routes/index.js +2 -2
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/notifs.d.ts +3 -0
- package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
- package/dist/data-plane/server/routes/notifs.js +64 -0
- package/dist/data-plane/server/routes/notifs.js.map +1 -1
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +20 -1
- 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 +1 -0
- package/dist/data-plane/server/routes/records.js.map +1 -1
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +20 -6
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +44 -1
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +4 -3
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +16 -2
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/util.d.ts +4 -0
- package/dist/hydration/util.d.ts.map +1 -1
- package/dist/hydration/util.js +3 -1
- package/dist/hydration/util.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +4 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +2 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +28 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +27 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +189 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +598 -5
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/stash.d.ts +1 -0
- package/dist/stash.d.ts.map +1 -1
- package/dist/stash.js +1 -0
- package/dist/stash.js.map +1 -1
- package/dist/views/index.d.ts +5 -3
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +29 -9
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
- package/proto/bsky.proto +45 -0
- package/src/api/app/bsky/notification/listActivitySubscriptions.ts +110 -0
- package/src/api/app/bsky/notification/putActivitySubscription.ts +69 -0
- package/src/api/app/bsky/notification/putPreferencesV2.ts +2 -1
- package/src/api/index.ts +4 -0
- package/src/data-plane/bsync/index.ts +75 -44
- package/src/data-plane/server/db/database-schema.ts +3 -1
- package/src/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.ts +22 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/pagination.ts +37 -0
- package/src/data-plane/server/db/tables/activity-subscription.ts +12 -0
- package/src/data-plane/server/indexing/index.ts +3 -0
- package/src/data-plane/server/indexing/plugins/notif-declaration.ts +59 -0
- package/src/data-plane/server/routes/activity-subscription.ts +83 -0
- package/src/data-plane/server/routes/index.ts +2 -2
- package/src/data-plane/server/routes/notifs.ts +95 -0
- package/src/data-plane/server/routes/profile.ts +33 -1
- package/src/data-plane/server/routes/records.ts +4 -0
- package/src/hydration/actor.ts +97 -10
- package/src/hydration/hydrator.ts +32 -6
- package/src/hydration/util.ts +8 -0
- package/src/lexicon/lexicons.ts +4 -0
- package/src/proto/bsky_connect.ts +33 -0
- package/src/proto/bsky_pb.ts +648 -0
- package/src/stash.ts +6 -1
- package/src/views/index.ts +48 -11
- package/tests/__snapshots__/feed-generation.test.ts.snap +213 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +88 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +498 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +56 -0
- package/tests/views/__snapshots__/blocks.test.ts.snap +28 -0
- package/tests/views/__snapshots__/follows.test.ts.snap +170 -0
- package/tests/views/__snapshots__/labeler-service.test.ts.snap +15 -0
- package/tests/views/__snapshots__/likes.test.ts.snap +23 -0
- package/tests/views/__snapshots__/list-feed.test.ts.snap +68 -0
- package/tests/views/__snapshots__/lists.test.ts.snap +120 -0
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +63 -0
- package/tests/views/__snapshots__/mutes.test.ts.snap +55 -0
- package/tests/views/__snapshots__/notifications.test.ts.snap +299 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +58 -0
- package/tests/views/__snapshots__/profile.test.ts.snap +74 -0
- package/tests/views/__snapshots__/quotes.test.ts.snap +35 -0
- package/tests/views/__snapshots__/reposts.test.ts.snap +26 -0
- package/tests/views/__snapshots__/starter-packs.test.ts.snap +113 -0
- package/tests/views/__snapshots__/thread-v2.test.ts.snap +115 -0
- package/tests/views/__snapshots__/thread.test.ts.snap +145 -0
- package/tests/views/__snapshots__/timeline.test.ts.snap +566 -0
- package/tests/views/notifications.test.ts +355 -19
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/data-plane/server/routes/private-data.d.ts +0 -9
- package/dist/data-plane/server/routes/private-data.d.ts.map +0 -1
- package/dist/data-plane/server/routes/private-data.js +0 -65
- package/dist/data-plane/server/routes/private-data.js.map +0 -1
- package/src/data-plane/server/routes/private-data.ts +0 -95
|
@@ -14,8 +14,9 @@ exports.default = (db) => ({
|
|
|
14
14
|
const profileUris = dids.map((did) => `at://${did}/app.bsky.actor.profile/self`);
|
|
15
15
|
const statusUris = dids.map((did) => `at://${did}/app.bsky.actor.status/self`);
|
|
16
16
|
const chatDeclarationUris = dids.map((did) => `at://${did}/chat.bsky.actor.declaration/self`);
|
|
17
|
+
const notifDeclarationUris = dids.map((did) => `at://${did}/app.bsky.notification.declaration/self`);
|
|
17
18
|
const { ref } = db.db.dynamic;
|
|
18
|
-
const [handlesRes, verificationsReceived, profiles, statuses, chatDeclarations,] = await Promise.all([
|
|
19
|
+
const [handlesRes, verificationsReceived, profiles, statuses, chatDeclarations, notifDeclarations,] = await Promise.all([
|
|
19
20
|
db.db
|
|
20
21
|
.selectFrom('actor')
|
|
21
22
|
.leftJoin('actor_state', 'actor_state.did', 'actor.did')
|
|
@@ -41,6 +42,7 @@ exports.default = (db) => ({
|
|
|
41
42
|
(0, records_1.getRecords)(db)({ uris: profileUris }),
|
|
42
43
|
(0, records_1.getRecords)(db)({ uris: statusUris }),
|
|
43
44
|
(0, records_1.getRecords)(db)({ uris: chatDeclarationUris }),
|
|
45
|
+
(0, records_1.getRecords)(db)({ uris: notifDeclarationUris }),
|
|
44
46
|
]);
|
|
45
47
|
const verificationsBySubjectDid = verificationsReceived.reduce((acc, cur) => {
|
|
46
48
|
const list = acc.get(cur.subject) ?? [];
|
|
@@ -63,6 +65,22 @@ exports.default = (db) => ({
|
|
|
63
65
|
};
|
|
64
66
|
return acc;
|
|
65
67
|
}, {});
|
|
68
|
+
const activitySubscription = () => {
|
|
69
|
+
const record = (0, util_1.parseRecordBytes)(notifDeclarations.records[i].record);
|
|
70
|
+
// The dataplane is responsible for setting the default of "followers" (default according to the lexicon).
|
|
71
|
+
const defaultVal = 'followers';
|
|
72
|
+
if (typeof record?.allowSubscriptions !== 'string') {
|
|
73
|
+
return defaultVal;
|
|
74
|
+
}
|
|
75
|
+
switch (record.allowSubscriptions) {
|
|
76
|
+
case 'followers':
|
|
77
|
+
case 'mutuals':
|
|
78
|
+
case 'none':
|
|
79
|
+
return record.allowSubscriptions;
|
|
80
|
+
default:
|
|
81
|
+
return defaultVal;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
66
84
|
return {
|
|
67
85
|
exists: !!row,
|
|
68
86
|
handle: row?.handle ?? undefined,
|
|
@@ -82,6 +100,7 @@ exports.default = (db) => ({
|
|
|
82
100
|
statusRecord: status,
|
|
83
101
|
tags: [],
|
|
84
102
|
profileTags: [],
|
|
103
|
+
allowActivitySubscriptionsFrom: activitySubscription(),
|
|
85
104
|
};
|
|
86
105
|
});
|
|
87
106
|
return { actors };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/data-plane/server/routes/profile.ts"],"names":[],"mappings":";;AAAA,iDAA8C;AAE9C,mCAAwC;
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/data-plane/server/routes/profile.ts"],"names":[],"mappings":";;AAAA,iDAA8C;AAE9C,mCAAwC;AAKxC,4CAAuC;AACvC,kDAA0D;AAK1D,uCAAsC;AAStC,kBAAe,CAAC,EAAY,EAAwC,EAAE,CAAC,CAAC;IACtE,KAAK,CAAC,SAAS,CAAC,GAAG;QACjB,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAA;QACpB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACtB,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;QACvB,CA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,EAAE;aACX,OAAO,EAAE,CAAA;QACZ,MAAM,QAAQ,GAAG,IAAA,cAAK,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACrC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,CAAA;QACrE,OAAO,EAAE,IAAI,EAAE,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,GAAG;QACjC,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,GAAG,CAAA;QACxC,MAAM,EAAE,CAAC,EAAE;aACR,WAAW,CAAC,OAAO,CAAC;aACpB,GAAG,CAAC,EAAE,cAAc,EAAE,CAAC;aACvB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC;aAC3B,OAAO,EAAE,CAAA;IACd,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../../src/data-plane/server/routes/records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAKjD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;yBAEhB,IAAI,QAAQ,KAAG,OAAO,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAAnE,
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../../src/data-plane/server/routes/records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAKjD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;yBAEhB,IAAI,QAAQ,KAAG,OAAO,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAAnE,wBAsBE;AAEF,eAAO,MAAM,UAAU,GACpB,IAAI,QAAQ,EAAE,aAAa,MAAM,MAC3B,KAAK;IAAE,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAmC7D,CAAA;AAEH,eAAO,MAAM,cAAc,GAAI,IAAI,QAAQ,MAE3B,KAAK;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,cAAc,EAAE,CAAA;CAAE,CA4B1D,CAAA"}
|
|
@@ -55,6 +55,7 @@ exports.default = (db) => ({
|
|
|
55
55
|
getPostgateRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyFeedPostgate),
|
|
56
56
|
getLabelerRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyLabelerService),
|
|
57
57
|
getActorChatDeclarationRecords: (0, exports.getRecords)(db, lexicons_1.ids.ChatBskyActorDeclaration),
|
|
58
|
+
getNotificationDeclarationRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyNotificationDeclaration),
|
|
58
59
|
getStarterPackRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyGraphStarterpack),
|
|
59
60
|
getVerificationRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyGraphVerification),
|
|
60
61
|
getStatusRecords: (0, exports.getRecords)(db, lexicons_1.ids.AppBskyActorStatus),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.js","sourceRoot":"","sources":["../../../../src/data-plane/server/routes/records.ts"],"names":[],"mappings":";;;;;;;;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AAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IACpB,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IACpB,OAAO,GAAG,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;AAChD,CAAC,CAAA"}
|
|
@@ -4,28 +4,28 @@ import { DatabaseSchema } from './db/database-schema';
|
|
|
4
4
|
export declare const getDescendentsQb: (db: DatabaseSchema, opts: {
|
|
5
5
|
uri: string;
|
|
6
6
|
depth: number;
|
|
7
|
-
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "descendent(uri, depth)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"descendent", {
|
|
7
|
+
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "descendent(uri, depth)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"descendent", {
|
|
8
8
|
uri: any;
|
|
9
9
|
depth: any;
|
|
10
|
-
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"descendent", {
|
|
10
|
+
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"descendent", {
|
|
11
11
|
uri: any;
|
|
12
12
|
depth: any;
|
|
13
|
-
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"descendent", {
|
|
13
|
+
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"descendent", {
|
|
14
14
|
uri: any;
|
|
15
15
|
depth: any;
|
|
16
16
|
}>, "post">, "post", "post.uri as uri" | import("kysely").AliasedRawBuilder<number, "depth">>>>;
|
|
17
17
|
export declare const getAncestorsAndSelfQb: (db: DatabaseSchema, opts: {
|
|
18
18
|
uri: string;
|
|
19
19
|
parentHeight: number;
|
|
20
|
-
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "ancestor(uri, ancestorUri, height)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"ancestor", {
|
|
20
|
+
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "ancestor(uri, ancestorUri, height)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"ancestor", {
|
|
21
21
|
uri: any;
|
|
22
22
|
ancestorUri: any;
|
|
23
23
|
height: any;
|
|
24
|
-
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"ancestor", {
|
|
24
|
+
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"ancestor", {
|
|
25
25
|
uri: any;
|
|
26
26
|
ancestorUri: any;
|
|
27
27
|
height: any;
|
|
28
|
-
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & Record<"ancestor", {
|
|
28
|
+
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & import("./db/tables/private-data").PartialDB & import("./db/tables/activity-subscription").PartialDB & Record<"ancestor", {
|
|
29
29
|
uri: any;
|
|
30
30
|
ancestorUri: any;
|
|
31
31
|
height: any;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { AppBskyNotificationDeclaration } from '@atproto/api';
|
|
1
2
|
import { DataPlaneClient } from '../data-plane/client';
|
|
2
3
|
import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile';
|
|
3
4
|
import { Record as StatusRecord } from '../lexicon/types/app/bsky/actor/status';
|
|
5
|
+
import { Record as NotificationDeclarationRecord } from '../lexicon/types/app/bsky/notification/declaration';
|
|
4
6
|
import { Record as ChatDeclarationRecord } from '../lexicon/types/chat/bsky/actor/declaration';
|
|
5
7
|
import { VerificationMeta } from '../proto/bsky_pb';
|
|
6
8
|
import { HydrationMap, RecordInfo } from './util';
|
|
9
|
+
type AllowActivitySubscriptions = Extract<AppBskyNotificationDeclaration.Record['allowSubscriptions'], 'followers' | 'mutuals' | 'none'>;
|
|
7
10
|
export type Actor = {
|
|
8
11
|
did: string;
|
|
9
12
|
handle?: string;
|
|
@@ -21,6 +24,7 @@ export type Actor = {
|
|
|
21
24
|
trustedVerifier?: boolean;
|
|
22
25
|
verifications: VerificationHydrationState[];
|
|
23
26
|
status?: RecordInfo<StatusRecord>;
|
|
27
|
+
allowActivitySubscriptionsFrom: AllowActivitySubscriptions;
|
|
24
28
|
};
|
|
25
29
|
export type VerificationHydrationState = {
|
|
26
30
|
issuer: string;
|
|
@@ -33,6 +37,8 @@ export type VerificationMetaRequired = Required<VerificationMeta>;
|
|
|
33
37
|
export type Actors = HydrationMap<Actor>;
|
|
34
38
|
export type ChatDeclaration = RecordInfo<ChatDeclarationRecord>;
|
|
35
39
|
export type ChatDeclarations = HydrationMap<ChatDeclaration>;
|
|
40
|
+
export type NotificationDeclaration = RecordInfo<NotificationDeclarationRecord>;
|
|
41
|
+
export type NotificationDeclarations = HydrationMap<NotificationDeclaration>;
|
|
36
42
|
export type Status = RecordInfo<StatusRecord>;
|
|
37
43
|
export type Statuses = HydrationMap<Status>;
|
|
38
44
|
export type ProfileViewerState = {
|
|
@@ -44,13 +50,18 @@ export type ProfileViewerState = {
|
|
|
44
50
|
blockingByList?: string;
|
|
45
51
|
following?: string;
|
|
46
52
|
followedBy?: string;
|
|
47
|
-
knownFollowers?: {
|
|
48
|
-
count: number;
|
|
49
|
-
followers: string[];
|
|
50
|
-
};
|
|
51
53
|
};
|
|
52
54
|
export type ProfileViewerStates = HydrationMap<ProfileViewerState>;
|
|
53
|
-
|
|
55
|
+
type ActivitySubscriptionState = {
|
|
56
|
+
post: boolean;
|
|
57
|
+
reply: boolean;
|
|
58
|
+
};
|
|
59
|
+
export type ActivitySubscriptionStates = HydrationMap<ActivitySubscriptionState | undefined>;
|
|
60
|
+
type KnownFollowersState = {
|
|
61
|
+
count: number;
|
|
62
|
+
followers: string[];
|
|
63
|
+
};
|
|
64
|
+
export type KnownFollowersStates = HydrationMap<KnownFollowersState | undefined>;
|
|
54
65
|
export type ProfileAgg = {
|
|
55
66
|
followers: number;
|
|
56
67
|
follows: number;
|
|
@@ -73,9 +84,12 @@ export declare class ActorHydrator {
|
|
|
73
84
|
skipCacheForDids?: string[];
|
|
74
85
|
}): Promise<Actors>;
|
|
75
86
|
getChatDeclarations(uris: string[], includeTakedowns?: boolean): Promise<ChatDeclarations>;
|
|
87
|
+
getNotificationDeclarations(uris: string[], includeTakedowns?: boolean): Promise<NotificationDeclarations>;
|
|
76
88
|
getStatus(uris: string[], includeTakedowns?: boolean): Promise<Statuses>;
|
|
77
89
|
getProfileViewerStatesNaive(dids: string[], viewer: string): Promise<ProfileViewerStates>;
|
|
78
|
-
getKnownFollowers(dids: string[], viewer: string | null): Promise<
|
|
90
|
+
getKnownFollowers(dids: string[], viewer: string | null): Promise<KnownFollowersStates>;
|
|
91
|
+
getActivitySubscriptions(dids: string[], viewer: string | null): Promise<ActivitySubscriptionStates>;
|
|
79
92
|
getProfileAggregates(dids: string[]): Promise<ProfileAggs>;
|
|
80
93
|
}
|
|
94
|
+
export {};
|
|
81
95
|
//# sourceMappingURL=actor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAA;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EAAE,MAAM,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAA;AAC5G,OAAO,EAAE,MAAM,IAAI,qBAAqB,EAAE,MAAM,8CAA8C,CAAA;AAC9F,OAAO,EAAwB,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EACL,YAAY,EACZ,UAAU,EAKX,MAAM,QAAQ,CAAA;AAEf,KAAK,0BAA0B,GAAG,OAAO,CACvC,8BAA8B,CA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C,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;CAcjE"}
|
package/dist/hydration/actor.js
CHANGED
|
@@ -80,6 +80,17 @@ class ActorHydrator {
|
|
|
80
80
|
// Filter out the verification meta that doesn't contain all info.
|
|
81
81
|
return undefined;
|
|
82
82
|
});
|
|
83
|
+
const allowActivitySubscriptionsFrom = (val) => {
|
|
84
|
+
switch (val) {
|
|
85
|
+
case 'followers':
|
|
86
|
+
case 'mutuals':
|
|
87
|
+
case 'none':
|
|
88
|
+
return val;
|
|
89
|
+
default:
|
|
90
|
+
// The dataplane should set the default of "FOLLOWERS". Just in case.
|
|
91
|
+
return 'followers';
|
|
92
|
+
}
|
|
93
|
+
};
|
|
83
94
|
return acc.set(did, {
|
|
84
95
|
did,
|
|
85
96
|
handle: (0, util_1.parseString)(actor.handle),
|
|
@@ -97,6 +108,7 @@ class ActorHydrator {
|
|
|
97
108
|
trustedVerifier: actor.trustedVerifier,
|
|
98
109
|
verifications,
|
|
99
110
|
status: status,
|
|
111
|
+
allowActivitySubscriptionsFrom: allowActivitySubscriptionsFrom(actor.allowActivitySubscriptionsFrom),
|
|
100
112
|
});
|
|
101
113
|
}, new util_1.HydrationMap());
|
|
102
114
|
}
|
|
@@ -109,6 +121,15 @@ class ActorHydrator {
|
|
|
109
121
|
return acc.set(uri, record ?? null);
|
|
110
122
|
}, new util_1.HydrationMap());
|
|
111
123
|
}
|
|
124
|
+
async getNotificationDeclarations(uris, includeTakedowns = false) {
|
|
125
|
+
if (!uris.length)
|
|
126
|
+
return new util_1.HydrationMap();
|
|
127
|
+
const res = await this.dataplane.getActorChatDeclarationRecords({ uris });
|
|
128
|
+
return uris.reduce((acc, uri, i) => {
|
|
129
|
+
const record = (0, util_1.parseRecord)(res.records[i], includeTakedowns);
|
|
130
|
+
return acc.set(uri, record ?? null);
|
|
131
|
+
}, new util_1.HydrationMap());
|
|
132
|
+
}
|
|
112
133
|
async getStatus(uris, includeTakedowns = false) {
|
|
113
134
|
if (!uris.length)
|
|
114
135
|
return new util_1.HydrationMap();
|
|
@@ -131,7 +152,7 @@ class ActorHydrator {
|
|
|
131
152
|
return dids.reduce((acc, did, i) => {
|
|
132
153
|
const rels = res.relationships[i];
|
|
133
154
|
if (viewer === did) {
|
|
134
|
-
// ignore self-follows, self-mutes, self-blocks
|
|
155
|
+
// ignore self-follows, self-mutes, self-blocks, self-activity-subscriptions
|
|
135
156
|
return acc.set(did, {});
|
|
136
157
|
}
|
|
137
158
|
return acc.set(did, {
|
|
@@ -167,6 +188,28 @@ class ActorHydrator {
|
|
|
167
188
|
: undefined);
|
|
168
189
|
}, new util_1.HydrationMap());
|
|
169
190
|
}
|
|
191
|
+
async getActivitySubscriptions(dids, viewer) {
|
|
192
|
+
if (!viewer) {
|
|
193
|
+
return new util_1.HydrationMap();
|
|
194
|
+
}
|
|
195
|
+
const activitySubscription = (val) => {
|
|
196
|
+
if (!val)
|
|
197
|
+
return undefined;
|
|
198
|
+
const result = {
|
|
199
|
+
post: !!val.post,
|
|
200
|
+
reply: !!val.reply,
|
|
201
|
+
};
|
|
202
|
+
if (!(0, util_1.isActivitySubscriptionEnabled)(result))
|
|
203
|
+
return undefined;
|
|
204
|
+
return result;
|
|
205
|
+
};
|
|
206
|
+
const { subscriptions } = await this.dataplane
|
|
207
|
+
.getActivitySubscriptionsByActorAndSubjects({ actorDid: viewer, subjectDids: dids }, { signal: AbortSignal.timeout(100) })
|
|
208
|
+
.catch(() => ({ subscriptions: [] }));
|
|
209
|
+
return dids.reduce((acc, did, i) => {
|
|
210
|
+
return acc.set(did, activitySubscription(subscriptions[i]));
|
|
211
|
+
}, new util_1.HydrationMap());
|
|
212
|
+
}
|
|
170
213
|
async getProfileAggregates(dids) {
|
|
171
214
|
if (!dids.length)
|
|
172
215
|
return new util_1.HydrationMap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.js","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"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,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;gBACjC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;aAC1C,CAAC,CAAA;QACJ,CAAC,EAAE,IAAI,mBAAY,EAAc,CAAC,CAAA;IACpC,CAAC;CACF;AA1RD,sCA0RC"}
|
|
@@ -2,7 +2,7 @@ import { DataPlaneClient } from '../data-plane/client';
|
|
|
2
2
|
import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile';
|
|
3
3
|
import { Notification } from '../proto/bsky_pb';
|
|
4
4
|
import { ParsedLabelers } from '../util';
|
|
5
|
-
import { ActorHydrator, Actors,
|
|
5
|
+
import { ActivitySubscriptionStates, ActorHydrator, Actors, KnownFollowersStates, ProfileAggs, ProfileViewerStates } from './actor';
|
|
6
6
|
import { FeedGenAggs, FeedGenViewerStates, FeedGens, FeedHydrator, FeedItem, Likes, Post, PostAggs, PostViewerStates, Postgates, Posts, Reposts, ThreadContexts, Threadgates } from './feed';
|
|
7
7
|
import { Follows, GraphHydrator, ListAggs, ListItems, ListViewerStates, Lists, StarterPackAggs, StarterPacks, Verifications } from './graph';
|
|
8
8
|
import { LabelHydrator, LabelerAggs, LabelerViewerStates, Labelers, Labels } from './label';
|
|
@@ -55,7 +55,8 @@ export type HydrationState = {
|
|
|
55
55
|
labelers?: Labelers;
|
|
56
56
|
labelerViewers?: LabelerViewerStates;
|
|
57
57
|
labelerAggs?: LabelerAggs;
|
|
58
|
-
knownFollowers?:
|
|
58
|
+
knownFollowers?: KnownFollowersStates;
|
|
59
|
+
activitySubscriptions?: ActivitySubscriptionStates;
|
|
59
60
|
bidirectionalBlocks?: BidirectionalBlocks;
|
|
60
61
|
verifications?: Verifications;
|
|
61
62
|
};
|
|
@@ -102,7 +103,7 @@ export declare class Hydrator {
|
|
|
102
103
|
hydrateBidirectionalBlocks(didMap: Map<string, string[]>, // DID -> DID[]
|
|
103
104
|
ctx: HydrateCtx): Promise<BidirectionalBlocks>;
|
|
104
105
|
hydrateLabelers(dids: string[], ctx: HydrateCtx): Promise<HydrationState>;
|
|
105
|
-
getRecord(uri: string, includeTakedowns?: boolean): Promise<import("./actor").ChatDeclaration | import("./actor").Status | RecordInfo<ProfileRecord> | Post | import("./feed").Like | import("./feed").Repost | import("./feed").FeedGen | import("./feed").Threadgate | import("./feed").Postgate | import("./graph").List | import("./graph").ListItem | import("./graph").Follow | import("./graph").Block | import("./graph").StarterPack | import("./label").Labeler | undefined>;
|
|
106
|
+
getRecord(uri: string, includeTakedowns?: boolean): Promise<import("./actor").ChatDeclaration | import("./actor").NotificationDeclaration | import("./actor").Status | RecordInfo<ProfileRecord> | Post | import("./feed").Like | import("./feed").Repost | import("./feed").FeedGen | import("./feed").Threadgate | import("./feed").Postgate | import("./graph").List | import("./graph").ListItem | import("./graph").Follow | import("./graph").Block | import("./graph").StarterPack | import("./label").Labeler | undefined>;
|
|
106
107
|
createContext(vals: HydrateCtxVals): Promise<HydrateCtx>;
|
|
107
108
|
resolveUri(uriStr: string): Promise<string>;
|
|
108
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydrator.d.ts","sourceRoot":"","sources":["../../src/hydration/hydrator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAA;AAKjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,EACL,aAAa,EACb,MAAM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EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,cAAc,CAAC;IA6BpB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU;IAY9C,oBAAoB,CACxB,MAAM,EAAE,YAAY,EAAE,EACtB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,cAAc,CAAC;IAsDpB,cAAc,CAClB,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,cAAc,CAAC;IAuBpB,0BAA0B,CAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe;IAC9C,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,mBAAmB,CAAC;IAqEzB,eAAe,CACnB,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,cAAc,CAAC;IAqBpB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,UAAQ;IAyG/C,aAAa,CAAC,IAAI,EAAE,cAAc;IAwBlC,UAAU,CAAC,MAAM,EAAE,MAAM;CAOhC;AA0HD,eAAO,MAAM,WAAW,GACtB,QAAQ,cAAc,EACtB,QAAQ,cAAc,KACrB,cAgDF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,GAAG,QAAQ,cAAc,EAAE,mBAE1D,CAAA"}
|
|
@@ -122,12 +122,12 @@ class Hydrator {
|
|
|
122
122
|
return {};
|
|
123
123
|
const profileViewers = await this.actor.getProfileViewerStatesNaive(dids, viewer);
|
|
124
124
|
const listUris = [];
|
|
125
|
-
profileViewers
|
|
125
|
+
profileViewers.forEach((item) => {
|
|
126
126
|
listUris.push(...listUrisFromProfileViewer(item));
|
|
127
127
|
});
|
|
128
128
|
const listState = await this.hydrateListsBasic(listUris, ctx);
|
|
129
129
|
// if a list no longer exists or is not a mod list, then remove from viewer state
|
|
130
|
-
profileViewers
|
|
130
|
+
profileViewers.forEach((item) => {
|
|
131
131
|
removeNonModListsFromProfileViewer(item, listState);
|
|
132
132
|
});
|
|
133
133
|
return (0, exports.mergeStates)(listState, {
|
|
@@ -180,6 +180,13 @@ class Hydrator {
|
|
|
180
180
|
catch (err) {
|
|
181
181
|
logger_1.hydrationLogger.error({ err }, 'Failed to get known followers for profiles');
|
|
182
182
|
}
|
|
183
|
+
let activitySubscriptions = new util_1.HydrationMap();
|
|
184
|
+
try {
|
|
185
|
+
activitySubscriptions = await this.actor.getActivitySubscriptions(dids, ctx.viewer);
|
|
186
|
+
}
|
|
187
|
+
catch (err) {
|
|
188
|
+
logger_1.hydrationLogger.error({ err }, 'Failed to get activity subscriptions state for profiles');
|
|
189
|
+
}
|
|
183
190
|
const subjectsToKnownFollowersMap = Array.from(knownFollowers.keys()).reduce((acc, did) => {
|
|
184
191
|
const known = knownFollowers.get(did);
|
|
185
192
|
if (known) {
|
|
@@ -206,6 +213,7 @@ class Hydrator {
|
|
|
206
213
|
return (0, exports.mergeManyStates)(state, starterPackState, {
|
|
207
214
|
profileAggs,
|
|
208
215
|
knownFollowers,
|
|
216
|
+
activitySubscriptions,
|
|
209
217
|
ctx,
|
|
210
218
|
bidirectionalBlocks,
|
|
211
219
|
});
|
|
@@ -864,6 +872,11 @@ class Hydrator {
|
|
|
864
872
|
return;
|
|
865
873
|
return ((await this.actor.getChatDeclarations([uri], includeTakedowns)).get(uri) ?? undefined);
|
|
866
874
|
}
|
|
875
|
+
else if (collection === lexicons_1.ids.AppBskyNotificationDeclaration) {
|
|
876
|
+
if (parsed.rkey !== 'self')
|
|
877
|
+
return;
|
|
878
|
+
return ((await this.actor.getNotificationDeclarations([uri], includeTakedowns)).get(uri) ?? undefined);
|
|
879
|
+
}
|
|
867
880
|
else if (collection === lexicons_1.ids.AppBskyActorStatus) {
|
|
868
881
|
if (parsed.rkey !== 'self')
|
|
869
882
|
return;
|
|
@@ -1049,6 +1062,7 @@ const mergeStates = (stateA, stateB) => {
|
|
|
1049
1062
|
labelerAggs: (0, util_1.mergeMaps)(stateA.labelerAggs, stateB.labelerAggs),
|
|
1050
1063
|
labelerViewers: (0, util_1.mergeMaps)(stateA.labelerViewers, stateB.labelerViewers),
|
|
1051
1064
|
knownFollowers: (0, util_1.mergeMaps)(stateA.knownFollowers, stateB.knownFollowers),
|
|
1065
|
+
activitySubscriptions: (0, util_1.mergeMaps)(stateA.activitySubscriptions, stateB.activitySubscriptions),
|
|
1052
1066
|
bidirectionalBlocks: (0, util_1.mergeNestedMaps)(stateA.bidirectionalBlocks, stateB.bidirectionalBlocks),
|
|
1053
1067
|
verifications: (0, util_1.mergeMaps)(stateA.verifications, stateB.verifications),
|
|
1054
1068
|
};
|