@openpeepshq/core 0.1.33 → 0.1.35
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/dist/accessTokens/finders.js +5 -6
- package/dist/accessTokens/mutations.js +1 -1
- package/dist/accessTokens/tokens.js +8 -11
- package/dist/accounts/helpers.js +6 -2
- package/dist/accounts/mutations.js +36 -33
- package/dist/analytics/cache.js +3 -3
- package/dist/analytics/clicks.js +14 -22
- package/dist/analytics/compile.js +17 -12
- package/dist/analytics/dateRange.js +3 -5
- package/dist/analytics/jobs.js +3 -4
- package/dist/analytics/pdfReport.js +45 -61
- package/dist/analytics/privacy.js +1 -1
- package/dist/analytics/read.js +164 -140
- package/dist/analytics/report.d.ts +22 -1
- package/dist/analytics/report.js +2 -3
- package/dist/analytics/settings.js +3 -4
- package/dist/backups/index.js +82 -25
- package/dist/backups/metadata.d.ts +2 -3
- package/dist/backups/metadata.js +6 -2
- package/dist/config/db.js +2 -4
- package/dist/config/defaults/capabilities.js +13 -2
- package/dist/config/defaults/community.js +8 -3
- package/dist/config/defaults/core.d.ts +1 -1
- package/dist/config/defaults/core.js +16 -8
- package/dist/config/index.d.ts +22 -0
- package/dist/config/index.js +15 -11
- package/dist/db/explorer/query.js +9 -8
- package/dist/db/explorer/sql.js +8 -8
- package/dist/db/helpers.d.ts +1 -0
- package/dist/db/helpers.js +25 -7
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +1 -0
- package/dist/db/init.js +2 -3
- package/dist/db/migration/importCollections.d.ts +14 -9
- package/dist/db/migration/importCollections.js +121 -174
- package/dist/db/migration/shared.d.ts +2 -33
- package/dist/db/migration/shared.js +17 -87
- package/dist/db/pg/client.js +4 -7
- package/dist/db/pg/collections.d.ts +2 -2
- package/dist/db/pg/collections.js +2 -2
- package/dist/db/pg/filters/index.js +1 -1
- package/dist/db/pg/filters/posts.d.ts +12 -0
- package/dist/db/pg/filters/posts.js +30 -4
- package/dist/db/pg/filters/profiles.d.ts +1 -0
- package/dist/db/pg/filters/profiles.js +2 -1
- package/dist/db/pg/helpers.js +2 -14
- package/dist/db/pg/map/filters.js +40 -10
- package/dist/db/pg/map/helpers.js +5 -1
- package/dist/db/pg/map/index.js +46 -51
- package/dist/db/pg/map/mutations.js +65 -25
- package/dist/db/pg/map/registry.d.ts +5 -0
- package/dist/db/pg/map/registry.js +133 -56
- package/dist/db/pg/map/relations.js +76 -68
- package/dist/db/pg/map/search.js +15 -37
- package/dist/db/pg/mappers.js +13 -7
- package/dist/db/pg/migrate.d.ts +1 -2
- package/dist/db/pg/migrate.js +8 -9
- package/dist/db/pg/queries/activity.js +5 -5
- package/dist/db/pg/queries/derived.js +8 -12
- package/dist/db/pg/queries/sorts.d.ts +1 -0
- package/dist/db/pg/queries/sorts.js +4 -0
- package/dist/db/pg/schema/documents.d.ts +279 -41
- package/dist/db/pg/schema/documents.js +136 -22
- package/dist/db/pg/schema/edges.d.ts +116 -7
- package/dist/db/pg/schema/edges.js +9 -2
- package/dist/db/pg/schema/index.d.ts +362 -15
- package/dist/db/pg/schema/index.js +5 -1
- package/dist/db/pg/sql/0010_user_group_membership_roles.sql +16 -0
- package/dist/db/pg/sql/0011_drop_data_migrations.sql +1 -0
- package/dist/db/pg/sql/0012_posts_last_activity_at.sql +5 -0
- package/dist/db/pg/sql/0013_add_blocks_edge.sql +12 -0
- package/dist/db/pg/sql/0014_federation_datamodel.sql +59 -0
- package/dist/db/pg/sql/0015_profile_hashtags.sql +12 -0
- package/dist/db/pg/sql/0016_posts_search_vector_title_tags_path.sql +54 -0
- package/dist/db/pg/sql/meta/{0009_snapshot.json → 0015_snapshot.json} +291 -36
- package/dist/db/pg/sql/meta/_journal.json +49 -0
- package/dist/db/replaceOrigin.js +1 -1
- package/dist/email/queueStats.js +8 -11
- package/dist/email/render.js +14 -3
- package/dist/email/send.js +19 -17
- package/dist/email/smtpTest.js +10 -6
- package/dist/errors/index.js +1 -1
- package/dist/events/index.d.ts +4 -0
- package/dist/events/index.js +1 -0
- package/dist/events/once.js +2 -4
- package/dist/federation/activities.d.ts +17 -0
- package/dist/federation/activities.js +25 -0
- package/dist/federation/identity.d.ts +16 -0
- package/dist/federation/identity.js +52 -0
- package/dist/federation/index.d.ts +4 -0
- package/dist/federation/index.js +3 -0
- package/dist/federation/profiles.d.ts +3 -0
- package/dist/federation/profiles.js +14 -0
- package/dist/groups/finders.d.ts +2 -1
- package/dist/groups/helpers.d.ts +18 -0
- package/dist/groups/helpers.js +1 -2
- package/dist/groups/mapping.d.ts +4 -2
- package/dist/groups/mutations.js +1 -1
- package/dist/hashtags/finders.d.ts +6 -3
- package/dist/hashtags/finders.js +2 -0
- package/dist/hashtags/helpers.d.ts +8 -0
- package/dist/hashtags/helpers.js +4 -0
- package/dist/hashtags/index.d.ts +2 -0
- package/dist/hashtags/index.js +2 -0
- package/dist/hashtags/mutations.d.ts +3 -0
- package/dist/hashtags/mutations.js +13 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +3 -1
- package/dist/i18n/pluginLocales.d.ts +6 -0
- package/dist/i18n/pluginLocales.js +15 -0
- package/dist/inviteLinks/mutations.js +2 -3
- package/dist/jams/export.d.ts +19 -0
- package/dist/jams/export.js +58 -0
- package/dist/jams/finders.js +4 -1
- package/dist/jams/health.d.ts +10 -0
- package/dist/jams/health.js +50 -0
- package/dist/jams/helpers.d.ts +2 -2
- package/dist/jams/helpers.js +6 -2
- package/dist/jams/index.d.ts +2 -0
- package/dist/jams/index.js +25 -18
- package/dist/jams/jobs.js +2 -3
- package/dist/jams/livekit.d.ts +49 -4
- package/dist/jams/livekit.js +62 -45
- package/dist/jams/mapping.d.ts +3 -3
- package/dist/jams/mutations.d.ts +1 -1
- package/dist/jams/recording.d.ts +10 -0
- package/dist/jams/recording.js +33 -1
- package/dist/jams/token.d.ts +13 -1
- package/dist/jams/token.js +25 -18
- package/dist/jams/waitingRoom.js +1 -1
- package/dist/jobs/index.d.ts +1 -0
- package/dist/jobs/index.js +9 -3
- package/dist/jobs/jobDetail.js +6 -12
- package/dist/jobs/jobLog.js +2 -3
- package/dist/lib/streams.js +4 -39
- package/dist/lib/zodDeepPartial.d.ts +1 -1
- package/dist/lib/zodDeepPartial.js +1 -1
- package/dist/log/index.js +13 -29
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.js +73 -12
- package/dist/media/jobs.js +1 -2
- package/dist/media/openpeeps/index.js +11 -46
- package/dist/media/processing.js +25 -11
- package/dist/media/streaming.js +5 -5
- package/dist/media/streamingCleanupJobs.js +1 -2
- package/dist/media/streamingJobs.js +3 -4
- package/dist/media/streamingPrewarm.js +7 -11
- package/dist/mediaAttachments/index.js +6 -2
- package/dist/notifications/defaultNotifications/announcement/index.js +15 -18
- package/dist/notifications/defaultNotifications/directMessage/index.js +9 -8
- package/dist/notifications/defaultNotifications/follow/index.js +15 -18
- package/dist/notifications/defaultNotifications/groupAdded/index.js +14 -17
- package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +15 -18
- package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +15 -18
- package/dist/notifications/defaultNotifications/index.js +4 -0
- package/dist/notifications/defaultNotifications/jamModerator/index.js +3 -5
- package/dist/notifications/defaultNotifications/jamSpeaker/index.js +14 -18
- package/dist/notifications/defaultNotifications/jamStarted/index.js +18 -22
- package/dist/notifications/defaultNotifications/mention/index.js +20 -24
- package/dist/notifications/defaultNotifications/newGroupPost/index.js +11 -6
- package/dist/notifications/defaultNotifications/newProfile/index.js +14 -17
- package/dist/notifications/defaultNotifications/pollEnded/index.d.ts +19 -0
- package/dist/notifications/defaultNotifications/pollEnded/index.js +39 -0
- package/dist/notifications/defaultNotifications/pollEnded/recipients.d.ts +3 -0
- package/dist/notifications/defaultNotifications/pollEnded/recipients.js +17 -0
- package/dist/notifications/defaultNotifications/pollVote/index.js +14 -17
- package/dist/notifications/defaultNotifications/reaction/index.js +18 -21
- package/dist/notifications/defaultNotifications/reply/index.js +21 -22
- package/dist/notifications/defaultNotifications/repost/index.js +16 -20
- package/dist/notifications/defaultNotifications/rsvp/index.d.ts +6 -1
- package/dist/notifications/defaultNotifications/rsvp/index.js +31 -18
- package/dist/notifications/defaultNotifications/rsvpCanceled/index.d.ts +24 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/index.js +82 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.d.ts +4 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.js +11 -0
- package/dist/notifications/fcmCredential.js +1 -1
- package/dist/notifications/finders.js +1 -1
- package/dist/notifications/helpers.js +13 -10
- package/dist/notifications/jobs.js +10 -5
- package/dist/notifications/mutations.js +8 -1
- package/dist/notifications/push.js +11 -16
- package/dist/performance/index.js +3 -3
- package/dist/plugins/helpers.js +3 -6
- package/dist/plugins/index.js +39 -4
- package/dist/plugins/install.d.ts +28 -9
- package/dist/plugins/install.js +302 -56
- package/dist/plugins/pluginAuth.d.ts +1 -1
- package/dist/plugins/pluginAuth.js +13 -10
- package/dist/plugins/state.js +2 -3
- package/dist/posts/activity.d.ts +9 -0
- package/dist/posts/activity.js +34 -0
- package/dist/posts/contextClosure.d.ts +1 -9
- package/dist/posts/contextClosure.js +14 -44
- package/dist/posts/conversationQueries.d.ts +7 -0
- package/dist/posts/conversationQueries.js +76 -4
- package/dist/posts/eventAgenda.d.ts +1 -0
- package/dist/posts/eventAgenda.js +17 -8
- package/dist/posts/eventOccurrenceJobs.js +7 -2
- package/dist/posts/eventOccurrences.d.ts +6 -0
- package/dist/posts/eventOccurrences.js +22 -1
- package/dist/posts/finders.d.ts +56 -9
- package/dist/posts/finders.js +84 -23
- package/dist/posts/helpers/filters.js +13 -9
- package/dist/posts/helpers/index.d.ts +179 -14
- package/dist/posts/helpers/index.js +70 -34
- package/dist/posts/index.d.ts +5 -2
- package/dist/posts/index.js +5 -2
- package/dist/posts/mapping.d.ts +765 -30
- package/dist/posts/mapping.js +74 -31
- package/dist/posts/mutations.d.ts +516 -3
- package/dist/posts/mutations.js +179 -41
- package/dist/posts/pollEnd.d.ts +3 -0
- package/dist/posts/pollEnd.js +4 -0
- package/dist/posts/pollEndJobs.d.ts +8 -0
- package/dist/posts/pollEndJobs.js +49 -0
- package/dist/posts/replyClosure.d.ts +10 -0
- package/dist/posts/replyClosure.js +43 -0
- package/dist/posts/rsvpConfirmationEmail.js +23 -15
- package/dist/posts/threadPreview.d.ts +8 -0
- package/dist/posts/threadPreview.js +44 -0
- package/dist/posts/unseenCounts.js +4 -1
- package/dist/processingStats/queries.js +6 -7
- package/dist/profileSettings/cache.js +21 -5
- package/dist/profileSettings/mapping.d.ts +2 -0
- package/dist/profiles/activityQueries.d.ts +5 -0
- package/dist/profiles/activityQueries.js +85 -0
- package/dist/profiles/activitySummary.d.ts +3 -0
- package/dist/profiles/activitySummary.js +82 -0
- package/dist/profiles/blocks.d.ts +12 -0
- package/dist/profiles/blocks.js +73 -0
- package/dist/profiles/cache.d.ts +1 -0
- package/dist/profiles/cache.js +30 -10
- package/dist/profiles/export.js +30 -39
- package/dist/profiles/finders.d.ts +2 -1
- package/dist/profiles/finders.js +15 -8
- package/dist/profiles/helpers.d.ts +2 -0
- package/dist/profiles/index.d.ts +2 -0
- package/dist/profiles/index.js +2 -0
- package/dist/profiles/mapping.d.ts +10 -5
- package/dist/profiles/mapping.js +13 -1
- package/dist/profiles/mutations.d.ts +8 -4
- package/dist/profiles/mutations.js +31 -4
- package/dist/redis/connection.d.ts +2 -0
- package/dist/redis/connection.js +25 -6
- package/dist/reports/helpers.js +7 -3
- package/dist/roles/index.d.ts +1 -1
- package/dist/roles/index.js +1 -1
- package/dist/roles/mapping.d.ts +1 -0
- package/dist/roles/mutations.js +85 -3
- package/dist/search/finders.js +15 -3
- package/dist/search/helpers.js +1 -1
- package/dist/search/mapping.d.ts +1 -1
- package/dist/search/mapping.js +6 -2
- package/dist/sentry/index.js +9 -11
- package/dist/seo/index.d.ts +50 -0
- package/dist/seo/index.js +145 -0
- package/dist/seo/route.d.ts +18 -0
- package/dist/seo/route.js +19 -0
- package/dist/server/index.d.ts +19 -0
- package/dist/server/index.js +31 -14
- package/dist/server/stablePublicServerInfo.d.ts +17 -0
- package/dist/server/stablePublicServerInfo.js +37 -0
- package/dist/server/status.d.ts +25 -0
- package/dist/server/status.js +97 -0
- package/dist/session/index.js +2 -2
- package/dist/stats/finders.d.ts +1 -17681
- package/dist/stats/finders.js +22 -9
- package/dist/stats/helpers.js +4 -1
- package/dist/stats/mapping.d.ts +39 -2
- package/dist/stats/mapping.js +8 -4
- package/dist/stripe/cache.js +5 -6
- package/dist/stripe/connection.js +3 -4
- package/dist/stripe/helpers.js +15 -20
- package/package.json +5 -7
- package/dist/db/migration/detect.d.ts +0 -3
- package/dist/db/migration/detect.js +0 -33
- package/dist/db/migration/importPostgres.d.ts +0 -3
- package/dist/db/migration/importPostgres.js +0 -18
- package/dist/db/migration/transform.d.ts +0 -20
- package/dist/db/migration/transform.js +0 -232
- package/dist/db/migration/validate.d.ts +0 -18
- package/dist/db/migration/validate.js +0 -69
- package/dist/db/pg/sql/meta/0000_snapshot.json +0 -3380
- package/dist/db/pg/sql/meta/0004_snapshot.json +0 -4114
- package/dist/db/pg/sql/meta/0005_snapshot.json +0 -4179
- package/dist/db/pg/sql/meta/0006_snapshot.json +0 -4200
- package/dist/db/pg/sql/meta/0007_snapshot.json +0 -4179
- package/dist/mastodon/index.d.ts +0 -4
- package/dist/mastodon/index.js +0 -51
- package/dist/mastodon/types.d.ts +0 -7579
- package/dist/mastodon/types.js +0 -523
- package/dist/mastodon/typescript.d.ts +0 -1578
- package/dist/mastodon/typescript.js +0 -1
- package/dist/migration/index.d.ts +0 -4
- package/dist/migration/index.js +0 -4
- package/dist/roles/defaults.d.ts +0 -2
- package/dist/roles/defaults.js +0 -95
|
@@ -1,51 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { blockedPairIds, toHiddenPost } from '@openpeepshq/common/lib';
|
|
2
2
|
import { allpeepDb } from '../db/index.js';
|
|
3
3
|
import { fetchRowsByIds, hydrateMapData } from '../db/pg/map/relations.js';
|
|
4
4
|
import { applySort } from '../db/pg/map/filters.js';
|
|
5
5
|
import { capabilitiesConfig } from '../config/index.js';
|
|
6
6
|
import { canReadPost, transformPost } from './helpers/index.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const collectReplyClosureIds = async (db, startId, direction, { maxDepth = 9999, limit = CONTEXT_NODE_CAP,
|
|
10
|
-
/** Newest-first by uuidv7 id (useful for long DM threads). */
|
|
11
|
-
newestFirst = false, } = {}) => {
|
|
12
|
-
if (!startId || limit <= 0)
|
|
13
|
-
return [];
|
|
14
|
-
const orderClause = newestFirst ? sql `ORDER BY id DESC` : sql ``;
|
|
15
|
-
const query = direction === 'ancestors'
|
|
16
|
-
? sql `
|
|
17
|
-
WITH RECURSIVE t AS (
|
|
18
|
-
SELECT to_id AS id, 1 AS depth
|
|
19
|
-
FROM reply_to
|
|
20
|
-
WHERE from_id = ${startId}
|
|
21
|
-
UNION ALL
|
|
22
|
-
SELECT r.to_id, t.depth + 1
|
|
23
|
-
FROM reply_to r
|
|
24
|
-
INNER JOIN t ON r.from_id = t.id
|
|
25
|
-
WHERE t.depth < ${maxDepth}
|
|
26
|
-
)
|
|
27
|
-
SELECT id FROM t
|
|
28
|
-
${orderClause}
|
|
29
|
-
LIMIT ${limit}
|
|
30
|
-
`
|
|
31
|
-
: sql `
|
|
32
|
-
WITH RECURSIVE t AS (
|
|
33
|
-
SELECT from_id AS id, 1 AS depth
|
|
34
|
-
FROM reply_to
|
|
35
|
-
WHERE to_id = ${startId}
|
|
36
|
-
UNION ALL
|
|
37
|
-
SELECT r.from_id, t.depth + 1
|
|
38
|
-
FROM reply_to r
|
|
39
|
-
INNER JOIN t ON r.to_id = t.id
|
|
40
|
-
WHERE t.depth < ${maxDepth}
|
|
41
|
-
)
|
|
42
|
-
SELECT id FROM t
|
|
43
|
-
${orderClause}
|
|
44
|
-
LIMIT ${limit}
|
|
45
|
-
`;
|
|
46
|
-
const result = (await db.execute(query));
|
|
47
|
-
return result.rows.map((row) => row.id);
|
|
48
|
-
};
|
|
7
|
+
import { CONTEXT_NODE_CAP, collectReplyClosureIds } from './replyClosure.js';
|
|
8
|
+
export { CONTEXT_NODE_CAP, collectReplyClosureIds } from './replyClosure.js';
|
|
49
9
|
/** Load and hydrate posts in a reply closure, then ACL-filter + transform. */
|
|
50
10
|
export const loadReplyContextPosts = async (authData, startId, direction, mapping, { maxDepth = 9999, limit = CONTEXT_NODE_CAP, } = {}) => {
|
|
51
11
|
const { db } = await allpeepDb();
|
|
@@ -61,9 +21,19 @@ export const loadReplyContextPosts = async (authData, startId, direction, mappin
|
|
|
61
21
|
const sorted = applySort(hydrated, mapData.sort);
|
|
62
22
|
const config = await capabilitiesConfig();
|
|
63
23
|
const readable = canReadPost(config, authData);
|
|
24
|
+
const pair = new Set(blockedPairIds(authData.profile));
|
|
64
25
|
const posts = [];
|
|
65
26
|
for (const post of sorted) {
|
|
66
|
-
const transformed = await transformPost(post, authData.profile
|
|
27
|
+
const transformed = await transformPost(post, authData.profile, {
|
|
28
|
+
embedThreadPreview: false,
|
|
29
|
+
});
|
|
30
|
+
const creatorId = transformed.creatorId ?? transformed.profile?.id;
|
|
31
|
+
if (creatorId && pair.has(creatorId)) {
|
|
32
|
+
if (direction === 'descendents') {
|
|
33
|
+
posts.push(toHiddenPost(transformed));
|
|
34
|
+
}
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
67
37
|
if (readable(transformed))
|
|
68
38
|
posts.push(transformed);
|
|
69
39
|
}
|
|
@@ -13,6 +13,13 @@ export declare const findLatestThreadPostId: (rootId: string) => Promise<string>
|
|
|
13
13
|
* they are the same). Avoids walking full ancestor chains.
|
|
14
14
|
*/
|
|
15
15
|
export declare const listConversationPreviews: (authData: AuthorizationData) => Promise<PostWithMeta[][]>;
|
|
16
|
+
/**
|
|
17
|
+
* Archived conversations: threads the profile has left — detected by posts
|
|
18
|
+
* they authored but are no longer in the audience of. Returns
|
|
19
|
+
* [root, lastReadablePost] per conversation so the user can still find and
|
|
20
|
+
* view the conversation history after leaving.
|
|
21
|
+
*/
|
|
22
|
+
export declare const listLeftConversations: (authData: AuthorizationData) => Promise<PostWithMeta[][]>;
|
|
16
23
|
/**
|
|
17
24
|
* Conversation detail: root plus newest capped descendants (lean mapping +
|
|
18
25
|
* seenBatch). Prefer newest messages so long DMs stay usable.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sql } from 'drizzle-orm';
|
|
2
|
-
import { getUniqueBy } from '@openpeepshq/common/lib';
|
|
2
|
+
import { blockedPairIds, getUniqueBy, isOneToOneWithBlocked, toHiddenPost, } from '@openpeepshq/common/lib';
|
|
3
3
|
import { allpeepDb } from '../db/index.js';
|
|
4
4
|
import { fetchRowsByIds, hydrateMapData } from '../db/pg/map/relations.js';
|
|
5
5
|
import { capabilitiesConfig } from '../config/index.js';
|
|
@@ -55,7 +55,6 @@ export const listConversationRootLeafPairs = async (db, profileId) => {
|
|
|
55
55
|
};
|
|
56
56
|
/** Newest post id in a reply thread (root included); uuidv7-ordered. */
|
|
57
57
|
export const findLatestThreadPostId = async (rootId) => {
|
|
58
|
-
var _a, _b;
|
|
59
58
|
const { db } = await allpeepDb();
|
|
60
59
|
const result = (await db.execute(sql `
|
|
61
60
|
WITH RECURSIVE t AS (
|
|
@@ -73,7 +72,7 @@ export const findLatestThreadPostId = async (rootId) => {
|
|
|
73
72
|
ORDER BY id DESC
|
|
74
73
|
LIMIT 1
|
|
75
74
|
`));
|
|
76
|
-
return
|
|
75
|
+
return result.rows[0]?.id ?? rootId;
|
|
77
76
|
};
|
|
78
77
|
const hydrateLeanPostsByIds = async (authData, ids) => {
|
|
79
78
|
if (!ids.length)
|
|
@@ -84,9 +83,17 @@ const hydrateLeanPostsByIds = async (authData, ids) => {
|
|
|
84
83
|
const hydrated = (await hydrateMapData(db, mapData, rows));
|
|
85
84
|
const config = await capabilitiesConfig();
|
|
86
85
|
const readable = canReadPost(config, authData);
|
|
86
|
+
const pair = new Set(blockedPairIds(authData.profile));
|
|
87
87
|
const byId = new Map();
|
|
88
88
|
for (const post of hydrated) {
|
|
89
|
-
const transformed = await transformPost(post, authData.profile
|
|
89
|
+
const transformed = await transformPost(post, authData.profile, {
|
|
90
|
+
embedThreadPreview: false,
|
|
91
|
+
});
|
|
92
|
+
const creatorId = transformed.creatorId ?? transformed.profile?.id;
|
|
93
|
+
if (creatorId && pair.has(creatorId)) {
|
|
94
|
+
byId.set(transformed.id, toHiddenPost(transformed));
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
90
97
|
if (readable(transformed))
|
|
91
98
|
byId.set(transformed.id, transformed);
|
|
92
99
|
}
|
|
@@ -105,12 +112,77 @@ export const listConversationPreviews = async (authData) => {
|
|
|
105
112
|
const pairs = await listConversationRootLeafPairs(db, profile.id);
|
|
106
113
|
const ids = [...new Set(pairs.flatMap((pair) => [pair.rootId, pair.leafId]))];
|
|
107
114
|
const byId = await hydrateLeanPostsByIds(authData, ids);
|
|
115
|
+
const blocked = new Set(blockedPairIds(profile));
|
|
108
116
|
return getUniqueBy(pairs
|
|
109
117
|
.map(({ rootId, leafId }) => {
|
|
110
118
|
const root = byId.get(rootId);
|
|
111
119
|
const leaf = byId.get(leafId);
|
|
112
120
|
if (!root || !leaf)
|
|
113
121
|
return null;
|
|
122
|
+
if (isOneToOneWithBlocked(root, profile, blocked))
|
|
123
|
+
return null;
|
|
124
|
+
return rootId === leafId ? [root] : [root, leaf];
|
|
125
|
+
})
|
|
126
|
+
.filter((conversation) => !!conversation), (conversation) => conversation[0].id);
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Archived conversations: threads the profile has left — detected by posts
|
|
130
|
+
* they authored but are no longer in the audience of. Returns
|
|
131
|
+
* [root, lastReadablePost] per conversation so the user can still find and
|
|
132
|
+
* view the conversation history after leaving.
|
|
133
|
+
*/
|
|
134
|
+
export const listLeftConversations = async (authData) => {
|
|
135
|
+
const profile = authData.profile;
|
|
136
|
+
if (!profile) {
|
|
137
|
+
throw new Error('AuthorizationData.profile is required');
|
|
138
|
+
}
|
|
139
|
+
const { db } = await allpeepDb();
|
|
140
|
+
const result = (await db.execute(sql `
|
|
141
|
+
WITH left_posts AS (
|
|
142
|
+
SELECT p.id AS left_id, rt.to_id AS parent_id
|
|
143
|
+
FROM posts p
|
|
144
|
+
INNER JOIN reply_to rt ON rt.from_id = p.id
|
|
145
|
+
WHERE p.creator_id = ${profile.id}
|
|
146
|
+
AND p.deleted_at IS NULL
|
|
147
|
+
AND NOT EXISTS (
|
|
148
|
+
SELECT 1 FROM audience a
|
|
149
|
+
WHERE a.from_id = p.id AND a.to_id = p.creator_id
|
|
150
|
+
)
|
|
151
|
+
),
|
|
152
|
+
walk AS (
|
|
153
|
+
SELECT lp.left_id AS conv_id, lp.parent_id AS leaf_id,
|
|
154
|
+
lp.parent_id AS node_id, 0 AS depth
|
|
155
|
+
FROM left_posts lp
|
|
156
|
+
UNION ALL
|
|
157
|
+
SELECT walk.conv_id, walk.leaf_id, rt.to_id, walk.depth + 1
|
|
158
|
+
FROM reply_to rt
|
|
159
|
+
INNER JOIN walk ON rt.from_id = walk.node_id
|
|
160
|
+
WHERE walk.depth < 9999
|
|
161
|
+
),
|
|
162
|
+
roots AS (
|
|
163
|
+
SELECT DISTINCT ON (conv_id) conv_id, node_id AS root_id, leaf_id
|
|
164
|
+
FROM walk
|
|
165
|
+
ORDER BY conv_id, depth DESC
|
|
166
|
+
)
|
|
167
|
+
SELECT root_id, leaf_id FROM roots ORDER BY leaf_id DESC
|
|
168
|
+
`));
|
|
169
|
+
const pairs = result.rows.map((row) => ({
|
|
170
|
+
rootId: row.root_id,
|
|
171
|
+
leafId: row.leaf_id,
|
|
172
|
+
}));
|
|
173
|
+
if (pairs.length === 0)
|
|
174
|
+
return [];
|
|
175
|
+
const ids = [...new Set(pairs.flatMap((pair) => [pair.rootId, pair.leafId]))];
|
|
176
|
+
const byId = await hydrateLeanPostsByIds(authData, ids);
|
|
177
|
+
const blocked = new Set(blockedPairIds(profile));
|
|
178
|
+
return getUniqueBy(pairs
|
|
179
|
+
.map(({ rootId, leafId }) => {
|
|
180
|
+
const root = byId.get(rootId);
|
|
181
|
+
const leaf = byId.get(leafId);
|
|
182
|
+
if (!root || !leaf)
|
|
183
|
+
return null;
|
|
184
|
+
if (isOneToOneWithBlocked(root, profile, blocked))
|
|
185
|
+
return null;
|
|
114
186
|
return rootId === leafId ? [root] : [root, leaf];
|
|
115
187
|
})
|
|
116
188
|
.filter((conversation) => !!conversation), (conversation) => conversation[0].id);
|
|
@@ -17,6 +17,7 @@ export type EventAgendaQueryArgs = {
|
|
|
17
17
|
mine?: boolean;
|
|
18
18
|
groupId?: string;
|
|
19
19
|
profileId?: string;
|
|
20
|
+
excludeCreatorIds?: string[];
|
|
20
21
|
};
|
|
21
22
|
export declare const eventAgendaOccurrenceQuery: (db: Pick<PgDb, "select" | "selectDistinctOn">, args: EventAgendaQueryArgs) => Omit<import("drizzle-orm/pg-core").PgSelectBase<"event_agenda", {
|
|
22
23
|
postId: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { and, asc, desc, eq, gt,
|
|
1
|
+
import { notInArray, and, asc, desc, eq, gt, isNotNull, isNull, lte, or, sql, } from 'drizzle-orm';
|
|
2
2
|
import { canReadPost } from './helpers/filters.js';
|
|
3
3
|
import { transformPost } from './helpers/index.js';
|
|
4
4
|
import { allpeepDb } from '../db/index.js';
|
|
@@ -10,6 +10,7 @@ import { postHasYesOrMaybeRsvpExpr } from '../db/pg/queries/index.js';
|
|
|
10
10
|
import { postFilters } from '../db/pg/filters/index.js';
|
|
11
11
|
import { fetchRowsByIds, hydrateMapData } from '../db/pg/map/relations.js';
|
|
12
12
|
import { postsMappingForProfile } from './mapping.js';
|
|
13
|
+
import { blockedPairIds } from '@openpeepshq/common/lib';
|
|
13
14
|
const occurrenceTimeFilter = (window, now) => {
|
|
14
15
|
const start = eventOccurrences.start;
|
|
15
16
|
const end = eventOccurrences.end;
|
|
@@ -17,11 +18,12 @@ const occurrenceTimeFilter = (window, now) => {
|
|
|
17
18
|
return or(gt(start, now), and(isNotNull(end), gt(end, now)));
|
|
18
19
|
}
|
|
19
20
|
if (window === 'current') {
|
|
20
|
-
|
|
21
|
+
// A missing end is treated as a one-hour event, not an infinite one.
|
|
22
|
+
return and(lte(start, now), sql `COALESCE(${end}, ${start} + interval '1 hour') >= ${now}`);
|
|
21
23
|
}
|
|
22
|
-
return sql `COALESCE(${end}, ${start}) < ${now}`;
|
|
24
|
+
return sql `COALESCE(${end}, ${start} + interval '1 hour') < ${now}`;
|
|
23
25
|
};
|
|
24
|
-
const eventAgendaConditions = ({ window, now, jamOnly, mine, groupId, profileId, }) => {
|
|
26
|
+
const eventAgendaConditions = ({ window, now, jamOnly, mine, groupId, profileId, excludeCreatorIds, }) => {
|
|
25
27
|
const conditions = [
|
|
26
28
|
isNull(posts.deletedAt),
|
|
27
29
|
eq(posts.type, 'event'),
|
|
@@ -37,6 +39,9 @@ const eventAgendaConditions = ({ window, now, jamOnly, mine, groupId, profileId,
|
|
|
37
39
|
if (groupId) {
|
|
38
40
|
conditions.push(sql `EXISTS (SELECT 1 FROM ${postGroups} WHERE ${postGroups.fromId} = ${posts.id}::text AND ${postGroups.toId} = ${groupId})`);
|
|
39
41
|
}
|
|
42
|
+
if (excludeCreatorIds?.length) {
|
|
43
|
+
conditions.push(notInArray(posts.creatorId, excludeCreatorIds));
|
|
44
|
+
}
|
|
40
45
|
return conditions;
|
|
41
46
|
};
|
|
42
47
|
// One row per event: a daily series would otherwise fill the first page.
|
|
@@ -89,7 +94,6 @@ const loadPostsByIds = async (ids, authData) => {
|
|
|
89
94
|
.map((post) => [post.id, post]));
|
|
90
95
|
};
|
|
91
96
|
export const listEventAgenda = async (authData, window, { offset = 0, limit = 100, jamOnly = false, mine = false, groupId, } = {}) => {
|
|
92
|
-
var _a;
|
|
93
97
|
const { db } = await allpeepDb();
|
|
94
98
|
const now = new Date().toISOString();
|
|
95
99
|
const rows = await eventAgendaOccurrenceQuery(db, {
|
|
@@ -100,7 +104,8 @@ export const listEventAgenda = async (authData, window, { offset = 0, limit = 10
|
|
|
100
104
|
jamOnly,
|
|
101
105
|
mine,
|
|
102
106
|
groupId,
|
|
103
|
-
profileId:
|
|
107
|
+
profileId: authData.profile?.id,
|
|
108
|
+
excludeCreatorIds: blockedPairIds(authData.profile),
|
|
104
109
|
});
|
|
105
110
|
const postsById = await loadPostsByIds([...new Set(rows.map((row) => row.postId))], authData);
|
|
106
111
|
return rows.flatMap((row) => {
|
|
@@ -113,8 +118,12 @@ export const listEventAgenda = async (authData, window, { offset = 0, limit = 10
|
|
|
113
118
|
if (!occurrenceRecurrenceId || !occurrenceStart)
|
|
114
119
|
return [];
|
|
115
120
|
return [
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
{
|
|
122
|
+
...post,
|
|
123
|
+
occurrenceRecurrenceId,
|
|
124
|
+
occurrenceStart,
|
|
125
|
+
...(occurrenceEnd ? { occurrenceEnd } : {}),
|
|
126
|
+
},
|
|
118
127
|
];
|
|
119
128
|
});
|
|
120
129
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { queueAndWorker } from '../jobs/index.js';
|
|
2
2
|
import { logger } from '../log/index.js';
|
|
3
|
-
import { rebuildRecurringEventOccurrences } from './eventOccurrences.js';
|
|
3
|
+
import { backfillMissingEventOccurrences, rebuildRecurringEventOccurrences, } from './eventOccurrences.js';
|
|
4
4
|
const log = logger('app:posts:eventOccurrences');
|
|
5
5
|
const QUEUE_NAME = 'event-occurrences';
|
|
6
6
|
const SCHEDULER_ID = 'event-occurrences-daily';
|
|
7
7
|
const JOB_NAME = 'rebuild-recurring';
|
|
8
8
|
export const EVENT_OCCURRENCE_CRON = '0 4 * * *';
|
|
9
9
|
const [eventOccurrenceQueue, eventOccurrenceWorker] = queueAndWorker(QUEUE_NAME, async () => {
|
|
10
|
+
const backfilled = await backfillMissingEventOccurrences();
|
|
10
11
|
const rebuilt = await rebuildRecurringEventOccurrences();
|
|
11
|
-
log.info(`
|
|
12
|
+
log.info(`Backfilled ${backfilled} events missing an occurrence index; rebuilt ${rebuilt} recurring events`);
|
|
12
13
|
}, {
|
|
13
14
|
defaultJobOptions: {
|
|
14
15
|
removeOnComplete: { count: 10 },
|
|
@@ -19,5 +20,9 @@ export const ensureEventOccurrenceSchedule = async () => {
|
|
|
19
20
|
const queue = eventOccurrenceQueue();
|
|
20
21
|
await queue.upsertJobScheduler(SCHEDULER_ID, { pattern: EVENT_OCCURRENCE_CRON }, { name: JOB_NAME, data: { type: 'rebuild' } });
|
|
21
22
|
log.info(`Event occurrence schedule registered: cron="${EVENT_OCCURRENCE_CRON}"`);
|
|
23
|
+
const backfilled = await backfillMissingEventOccurrences();
|
|
24
|
+
if (backfilled > 0) {
|
|
25
|
+
log.info(`Backfilled occurrence index for ${backfilled} events`);
|
|
26
|
+
}
|
|
22
27
|
};
|
|
23
28
|
export { eventOccurrenceQueue, eventOccurrenceWorker };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Event } from '@openpeepshq/common/types';
|
|
2
2
|
export declare const rebuildEventOccurrences: (postId: string, event: Event) => Promise<void>;
|
|
3
3
|
export declare const clearEventOccurrences: (postId: string) => Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* JSONL restores bring posts back without `event_occurrences`. The agenda
|
|
6
|
+
* reads only that index, so a restored community would show no events until
|
|
7
|
+
* each one is edited. Recurring series are rebuilt by the daily job.
|
|
8
|
+
*/
|
|
9
|
+
export declare const backfillMissingEventOccurrences: () => Promise<number>;
|
|
4
10
|
export declare const rebuildRecurringEventOccurrences: () => Promise<number>;
|
|
@@ -22,6 +22,27 @@ export const clearEventOccurrences = async (postId) => {
|
|
|
22
22
|
const db = await database();
|
|
23
23
|
await db.delete(eventOccurrences).where(eq(eventOccurrences.postId, postId));
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* JSONL restores bring posts back without `event_occurrences`. The agenda
|
|
27
|
+
* reads only that index, so a restored community would show no events until
|
|
28
|
+
* each one is edited. Recurring series are rebuilt by the daily job.
|
|
29
|
+
*/
|
|
30
|
+
export const backfillMissingEventOccurrences = async () => {
|
|
31
|
+
const db = await database();
|
|
32
|
+
const rows = await db
|
|
33
|
+
.select({ id: posts.id, body: posts.body })
|
|
34
|
+
.from(posts)
|
|
35
|
+
.where(and(eq(posts.type, 'event'), isNull(posts.deletedAt), sql `NOT EXISTS (SELECT 1 FROM ${eventOccurrences} WHERE ${eventOccurrences.postId} = ${posts.id})`));
|
|
36
|
+
let rebuilt = 0;
|
|
37
|
+
for (const row of rows) {
|
|
38
|
+
const event = row.body;
|
|
39
|
+
if (event?.type !== 'event' || !event.start)
|
|
40
|
+
continue;
|
|
41
|
+
await rebuildEventOccurrences(row.id, event);
|
|
42
|
+
rebuilt += 1;
|
|
43
|
+
}
|
|
44
|
+
return rebuilt;
|
|
45
|
+
};
|
|
25
46
|
export const rebuildRecurringEventOccurrences = async () => {
|
|
26
47
|
const db = await database();
|
|
27
48
|
const rows = await db
|
|
@@ -31,7 +52,7 @@ export const rebuildRecurringEventOccurrences = async () => {
|
|
|
31
52
|
let rebuilt = 0;
|
|
32
53
|
for (const row of rows) {
|
|
33
54
|
const event = row.body;
|
|
34
|
-
if (
|
|
55
|
+
if (event?.type !== 'event' || !event.start)
|
|
35
56
|
continue;
|
|
36
57
|
await rebuildEventOccurrences(row.id, event);
|
|
37
58
|
rebuilt += 1;
|
package/dist/posts/finders.d.ts
CHANGED
|
@@ -11,14 +11,14 @@ export declare const replies: (authData: AuthorizationData, post: PostWithMeta)
|
|
|
11
11
|
export declare const baseListPosts: ({ start, profile, }: {
|
|
12
12
|
start?: string;
|
|
13
13
|
profile?: ProfileWithMeta;
|
|
14
|
-
}) => Mapping<DbPost
|
|
14
|
+
}) => Mapping<DbPost, import("../db/pg/map").WithId<DbPost>, import("../db/pg/map").WithId<DbPost>>;
|
|
15
15
|
export declare const baseFeed: ({ start, sort, profile, }: {
|
|
16
16
|
start?: string;
|
|
17
17
|
sort?: ObjectSort;
|
|
18
18
|
profile?: ProfileWithMeta;
|
|
19
19
|
}) => Mapping<DbPost>;
|
|
20
20
|
export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
21
|
-
type: "note" | "question" | "event" | "article";
|
|
21
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
22
22
|
visibility: "local" | "group" | "report" | "public" | "unlisted" | "private" | "direct";
|
|
23
23
|
creatorId: string;
|
|
24
24
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -214,6 +214,44 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
214
214
|
language?: string | undefined;
|
|
215
215
|
image?: string | undefined;
|
|
216
216
|
title?: string | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
type: "resource";
|
|
219
|
+
title: string;
|
|
220
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
221
|
+
content?: string | undefined;
|
|
222
|
+
sensitive?: boolean | undefined;
|
|
223
|
+
spoilerText?: string | undefined;
|
|
224
|
+
attachments?: {
|
|
225
|
+
type: string;
|
|
226
|
+
url: string;
|
|
227
|
+
previewUrl: string | null;
|
|
228
|
+
textUrl: null;
|
|
229
|
+
filename: string;
|
|
230
|
+
meta: {
|
|
231
|
+
usage?: string | undefined;
|
|
232
|
+
focus?: {
|
|
233
|
+
x: number;
|
|
234
|
+
y: number;
|
|
235
|
+
} | undefined;
|
|
236
|
+
mimetype?: string | undefined;
|
|
237
|
+
size?: number | undefined;
|
|
238
|
+
};
|
|
239
|
+
description?: string | undefined;
|
|
240
|
+
blurhash?: string | undefined;
|
|
241
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
242
|
+
error?: string | undefined;
|
|
243
|
+
}[] | undefined;
|
|
244
|
+
customEmojis?: {
|
|
245
|
+
shortcode: string;
|
|
246
|
+
url: string;
|
|
247
|
+
staticUrl: string;
|
|
248
|
+
visibleInPicker: boolean;
|
|
249
|
+
category: string;
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
language?: string | undefined;
|
|
252
|
+
tags?: string[] | undefined;
|
|
253
|
+
categoryPath?: string[] | undefined;
|
|
254
|
+
url?: string | undefined;
|
|
217
255
|
} | undefined;
|
|
218
256
|
}, DbPost, DbPost>;
|
|
219
257
|
export declare const listPosts: (authData: AuthorizationData, { start, limit, filter, }?: {
|
|
@@ -222,41 +260,50 @@ export declare const listPosts: (authData: AuthorizationData, { start, limit, fi
|
|
|
222
260
|
filter?: PgFilter<DbBasePost>;
|
|
223
261
|
}) => Promise<PostWithMeta[]>;
|
|
224
262
|
export declare const listConversationLeaves: (authData: AuthorizationData) => Promise<PostWithMeta[]>;
|
|
225
|
-
export declare const listPostsByProfile: (authData: AuthorizationData, requestedProfile: ProfileWithMeta, { start, limit, filter, }?: {
|
|
263
|
+
export declare const listPostsByProfile: (authData: AuthorizationData, requestedProfile: ProfileWithMeta, { start, limit, filter, format, }?: {
|
|
226
264
|
start?: string;
|
|
227
265
|
limit?: number;
|
|
228
266
|
filter?: PgFilter<DbBasePost>;
|
|
267
|
+
format?: string | null;
|
|
229
268
|
}) => Promise<PostWithMeta[]>;
|
|
230
|
-
export declare const listBookmarkedPosts: (authData: AuthorizationData, requestedProfile: ProfileWithMeta, { start, limit, filter, }?: {
|
|
269
|
+
export declare const listBookmarkedPosts: (authData: AuthorizationData, requestedProfile: ProfileWithMeta, { start, limit, filter, format, }?: {
|
|
231
270
|
start?: string;
|
|
232
271
|
limit?: number;
|
|
233
272
|
filter?: PgFilter<DbBasePost>;
|
|
273
|
+
format?: string | null;
|
|
234
274
|
}) => Promise<PostWithMeta[]>;
|
|
235
275
|
export declare const listBookmarkedPostIds: (requestedProfile: ProfileWithMeta) => Promise<string[]>;
|
|
236
276
|
export declare const getUnseenPostCounts: (authData: AuthorizationData) => Promise<UnseenPostCounts>;
|
|
237
|
-
export declare const listPostsByType: (authData: AuthorizationData, type: PostType, { start, limit, filter, }?: {
|
|
277
|
+
export declare const listPostsByType: (authData: AuthorizationData, type: PostType, { start, limit, filter, format, groupId, ungrouped, }?: {
|
|
238
278
|
start?: string;
|
|
239
279
|
limit?: number;
|
|
240
280
|
filter?: PgFilter<DbBasePost>;
|
|
281
|
+
format?: string | null;
|
|
282
|
+
groupId?: string;
|
|
283
|
+
ungrouped?: boolean;
|
|
241
284
|
}) => Promise<PostWithMeta[]>;
|
|
242
|
-
export declare const listPostsByTag: (authData: AuthorizationData, tag: string, { start, limit, filter, }?: {
|
|
285
|
+
export declare const listPostsByTag: (authData: AuthorizationData, tag: string, { start, limit, filter, format, }?: {
|
|
243
286
|
start?: string;
|
|
244
287
|
limit?: number;
|
|
245
288
|
filter?: PgFilter<DbBasePost>;
|
|
289
|
+
format?: string | null;
|
|
246
290
|
}) => Promise<PostWithMeta[]>;
|
|
247
|
-
export declare const listPostsByGroup: (authData: AuthorizationData, groupId: string, { start, limit, filter, sort
|
|
291
|
+
export declare const listPostsByGroup: (authData: AuthorizationData, groupId: string, { start, limit, filter, sort, format, }?: {
|
|
248
292
|
start?: string;
|
|
249
293
|
limit?: number;
|
|
250
294
|
filter?: PgFilter<DbBasePost>;
|
|
251
295
|
sort?: ObjectSort;
|
|
296
|
+
format?: string | null;
|
|
252
297
|
}) => Promise<PostWithMeta[]>;
|
|
253
|
-
export declare const listLocalFeed: (authData: AuthorizationData, { start, limit }?: {
|
|
298
|
+
export declare const listLocalFeed: (authData: AuthorizationData, { start, limit, format, }?: {
|
|
254
299
|
start?: string;
|
|
255
300
|
limit?: number;
|
|
301
|
+
format?: string | null;
|
|
256
302
|
}) => Promise<PostWithMeta[]>;
|
|
257
|
-
export declare const listMyFeed: (authData: AuthorizationData, { start, limit }?: {
|
|
303
|
+
export declare const listMyFeed: (authData: AuthorizationData, { start, limit, format, }?: {
|
|
258
304
|
start?: string;
|
|
259
305
|
limit?: number;
|
|
306
|
+
format?: string | null;
|
|
260
307
|
}) => Promise<PostWithMeta[]>;
|
|
261
308
|
export declare const listUpcomingEventsFeed: (authData: AuthorizationData, { offset, limit, jamOnly, mine, }?: {
|
|
262
309
|
offset?: number;
|