@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,4 +1,4 @@
|
|
|
1
|
-
import { AuthorizationData, Answer, PostWithMeta, PostData, Profile, ReactionData,
|
|
1
|
+
import { AuthorizationData, Answer, PostWithMeta, PostData, Profile, ProfileWithMeta, ReactionData, RsvpRequest, RsvpResponse } from '@openpeepshq/common/types';
|
|
2
2
|
import { PostDataUnion } from '@openpeepshq/common/types';
|
|
3
3
|
export declare const createPost: (data: PostDataUnion, profile: Profile, postData: PostData, relations?: {
|
|
4
4
|
inReplyToId?: string | null;
|
|
@@ -8,7 +8,502 @@ export declare const createPost: (data: PostDataUnion, profile: Profile, postDat
|
|
|
8
8
|
}) => Promise<PostWithMeta>;
|
|
9
9
|
export declare const updatePost: (post: PostWithMeta, profile: Profile, data: PostDataUnion) => Promise<PostWithMeta>;
|
|
10
10
|
export declare const reactToPost: (post: PostWithMeta, profile: Profile, data: ReactionData) => Promise<void>;
|
|
11
|
-
export declare const retractReaction: (post: PostWithMeta, profile: Profile) => Promise<
|
|
11
|
+
export declare const retractReaction: (post: PostWithMeta, profile: Profile) => Promise<import("../db/pg/map").WithId<({
|
|
12
|
+
type: "create";
|
|
13
|
+
data: {
|
|
14
|
+
type: "note";
|
|
15
|
+
content?: string | undefined;
|
|
16
|
+
sensitive?: boolean | undefined;
|
|
17
|
+
spoilerText?: string | undefined;
|
|
18
|
+
attachments?: {
|
|
19
|
+
type: string;
|
|
20
|
+
url: string;
|
|
21
|
+
previewUrl: string | null;
|
|
22
|
+
textUrl: null;
|
|
23
|
+
filename: string;
|
|
24
|
+
meta: {
|
|
25
|
+
usage?: string | undefined;
|
|
26
|
+
focus?: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
} | undefined;
|
|
30
|
+
mimetype?: string | undefined;
|
|
31
|
+
size?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
blurhash?: string | undefined;
|
|
35
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
36
|
+
error?: string | undefined;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
customEmojis?: {
|
|
39
|
+
shortcode: string;
|
|
40
|
+
url: string;
|
|
41
|
+
staticUrl: string;
|
|
42
|
+
visibleInPicker: boolean;
|
|
43
|
+
category: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
language?: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: "question";
|
|
48
|
+
options: {
|
|
49
|
+
content: string;
|
|
50
|
+
type: "note";
|
|
51
|
+
}[];
|
|
52
|
+
content?: string | undefined;
|
|
53
|
+
sensitive?: boolean | undefined;
|
|
54
|
+
spoilerText?: string | undefined;
|
|
55
|
+
attachments?: {
|
|
56
|
+
type: string;
|
|
57
|
+
url: string;
|
|
58
|
+
previewUrl: string | null;
|
|
59
|
+
textUrl: null;
|
|
60
|
+
filename: string;
|
|
61
|
+
meta: {
|
|
62
|
+
usage?: string | undefined;
|
|
63
|
+
focus?: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
} | undefined;
|
|
67
|
+
mimetype?: string | undefined;
|
|
68
|
+
size?: number | undefined;
|
|
69
|
+
};
|
|
70
|
+
description?: string | undefined;
|
|
71
|
+
blurhash?: string | undefined;
|
|
72
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
73
|
+
error?: string | undefined;
|
|
74
|
+
}[] | undefined;
|
|
75
|
+
customEmojis?: {
|
|
76
|
+
shortcode: string;
|
|
77
|
+
url: string;
|
|
78
|
+
staticUrl: string;
|
|
79
|
+
visibleInPicker: boolean;
|
|
80
|
+
category: string;
|
|
81
|
+
}[] | undefined;
|
|
82
|
+
language?: string | undefined;
|
|
83
|
+
multiple?: boolean | undefined;
|
|
84
|
+
votersVisible?: boolean | undefined;
|
|
85
|
+
expiresAt?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
type: "event";
|
|
88
|
+
start: string;
|
|
89
|
+
wholeDay: boolean;
|
|
90
|
+
content?: string | undefined;
|
|
91
|
+
sensitive?: boolean | undefined;
|
|
92
|
+
spoilerText?: string | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
type: string;
|
|
95
|
+
url: string;
|
|
96
|
+
previewUrl: string | null;
|
|
97
|
+
textUrl: null;
|
|
98
|
+
filename: string;
|
|
99
|
+
meta: {
|
|
100
|
+
usage?: string | undefined;
|
|
101
|
+
focus?: {
|
|
102
|
+
x: number;
|
|
103
|
+
y: number;
|
|
104
|
+
} | undefined;
|
|
105
|
+
mimetype?: string | undefined;
|
|
106
|
+
size?: number | undefined;
|
|
107
|
+
};
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
blurhash?: string | undefined;
|
|
110
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
111
|
+
error?: string | undefined;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
customEmojis?: {
|
|
114
|
+
shortcode: string;
|
|
115
|
+
url: string;
|
|
116
|
+
staticUrl: string;
|
|
117
|
+
visibleInPicker: boolean;
|
|
118
|
+
category: string;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
language?: string | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
timeZone?: string | undefined;
|
|
123
|
+
image?: string | undefined;
|
|
124
|
+
end?: string | undefined;
|
|
125
|
+
maxAttendees?: number | undefined;
|
|
126
|
+
attendeeListPublic?: boolean | undefined;
|
|
127
|
+
moderators?: string[] | undefined;
|
|
128
|
+
jam?: {
|
|
129
|
+
moderators: string[];
|
|
130
|
+
videoEnabled: boolean;
|
|
131
|
+
type: "video-call";
|
|
132
|
+
speakers?: string[] | undefined;
|
|
133
|
+
presenters?: string[] | undefined;
|
|
134
|
+
audience?: string[] | undefined;
|
|
135
|
+
maxSpeakers?: number | undefined;
|
|
136
|
+
maxPresenters?: number | undefined;
|
|
137
|
+
maxAudience?: number | undefined;
|
|
138
|
+
waitingRoom?: boolean | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
physicalLocation?: {
|
|
141
|
+
text: string;
|
|
142
|
+
coordinates?: {
|
|
143
|
+
lat: number;
|
|
144
|
+
lng: number;
|
|
145
|
+
alt?: number | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
url?: string | undefined;
|
|
149
|
+
recurrence?: {
|
|
150
|
+
freq: "DAILY" | "WEEKLY" | "MONTHLY";
|
|
151
|
+
interval?: number | undefined;
|
|
152
|
+
byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
|
|
153
|
+
until?: string | undefined;
|
|
154
|
+
count?: number | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
exceptions?: {
|
|
157
|
+
recurrenceId: string;
|
|
158
|
+
cancelled?: boolean | undefined;
|
|
159
|
+
start?: string | undefined;
|
|
160
|
+
end?: string | undefined;
|
|
161
|
+
physicalLocation?: {
|
|
162
|
+
text: string;
|
|
163
|
+
coordinates?: {
|
|
164
|
+
lat: number;
|
|
165
|
+
lng: number;
|
|
166
|
+
alt?: number | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
}[] | undefined;
|
|
170
|
+
} | {
|
|
171
|
+
type: "article";
|
|
172
|
+
content?: string | undefined;
|
|
173
|
+
sensitive?: boolean | undefined;
|
|
174
|
+
spoilerText?: string | undefined;
|
|
175
|
+
attachments?: {
|
|
176
|
+
type: string;
|
|
177
|
+
url: string;
|
|
178
|
+
previewUrl: string | null;
|
|
179
|
+
textUrl: null;
|
|
180
|
+
filename: string;
|
|
181
|
+
meta: {
|
|
182
|
+
usage?: string | undefined;
|
|
183
|
+
focus?: {
|
|
184
|
+
x: number;
|
|
185
|
+
y: number;
|
|
186
|
+
} | undefined;
|
|
187
|
+
mimetype?: string | undefined;
|
|
188
|
+
size?: number | undefined;
|
|
189
|
+
};
|
|
190
|
+
description?: string | undefined;
|
|
191
|
+
blurhash?: string | undefined;
|
|
192
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
193
|
+
error?: string | undefined;
|
|
194
|
+
}[] | undefined;
|
|
195
|
+
customEmojis?: {
|
|
196
|
+
shortcode: string;
|
|
197
|
+
url: string;
|
|
198
|
+
staticUrl: string;
|
|
199
|
+
visibleInPicker: boolean;
|
|
200
|
+
category: string;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
language?: string | undefined;
|
|
203
|
+
image?: string | undefined;
|
|
204
|
+
title?: string | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
type: "resource";
|
|
207
|
+
title: string;
|
|
208
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
209
|
+
content?: string | undefined;
|
|
210
|
+
sensitive?: boolean | undefined;
|
|
211
|
+
spoilerText?: string | undefined;
|
|
212
|
+
attachments?: {
|
|
213
|
+
type: string;
|
|
214
|
+
url: string;
|
|
215
|
+
previewUrl: string | null;
|
|
216
|
+
textUrl: null;
|
|
217
|
+
filename: string;
|
|
218
|
+
meta: {
|
|
219
|
+
usage?: string | undefined;
|
|
220
|
+
focus?: {
|
|
221
|
+
x: number;
|
|
222
|
+
y: number;
|
|
223
|
+
} | undefined;
|
|
224
|
+
mimetype?: string | undefined;
|
|
225
|
+
size?: number | undefined;
|
|
226
|
+
};
|
|
227
|
+
description?: string | undefined;
|
|
228
|
+
blurhash?: string | undefined;
|
|
229
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
230
|
+
error?: string | undefined;
|
|
231
|
+
}[] | undefined;
|
|
232
|
+
customEmojis?: {
|
|
233
|
+
shortcode: string;
|
|
234
|
+
url: string;
|
|
235
|
+
staticUrl: string;
|
|
236
|
+
visibleInPicker: boolean;
|
|
237
|
+
category: string;
|
|
238
|
+
}[] | undefined;
|
|
239
|
+
language?: string | undefined;
|
|
240
|
+
tags?: string[] | undefined;
|
|
241
|
+
categoryPath?: string[] | undefined;
|
|
242
|
+
url?: string | undefined;
|
|
243
|
+
};
|
|
244
|
+
} | {
|
|
245
|
+
type: "edit";
|
|
246
|
+
data: {
|
|
247
|
+
type: "note";
|
|
248
|
+
content?: string | undefined;
|
|
249
|
+
sensitive?: boolean | undefined;
|
|
250
|
+
spoilerText?: string | undefined;
|
|
251
|
+
attachments?: {
|
|
252
|
+
type: string;
|
|
253
|
+
url: string;
|
|
254
|
+
previewUrl: string | null;
|
|
255
|
+
textUrl: null;
|
|
256
|
+
filename: string;
|
|
257
|
+
meta: {
|
|
258
|
+
usage?: string | undefined;
|
|
259
|
+
focus?: {
|
|
260
|
+
x: number;
|
|
261
|
+
y: number;
|
|
262
|
+
} | undefined;
|
|
263
|
+
mimetype?: string | undefined;
|
|
264
|
+
size?: number | undefined;
|
|
265
|
+
};
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
blurhash?: string | undefined;
|
|
268
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
269
|
+
error?: string | undefined;
|
|
270
|
+
}[] | undefined;
|
|
271
|
+
customEmojis?: {
|
|
272
|
+
shortcode: string;
|
|
273
|
+
url: string;
|
|
274
|
+
staticUrl: string;
|
|
275
|
+
visibleInPicker: boolean;
|
|
276
|
+
category: string;
|
|
277
|
+
}[] | undefined;
|
|
278
|
+
language?: string | undefined;
|
|
279
|
+
} | {
|
|
280
|
+
type: "question";
|
|
281
|
+
options: {
|
|
282
|
+
content: string;
|
|
283
|
+
type: "note";
|
|
284
|
+
}[];
|
|
285
|
+
content?: string | undefined;
|
|
286
|
+
sensitive?: boolean | undefined;
|
|
287
|
+
spoilerText?: string | undefined;
|
|
288
|
+
attachments?: {
|
|
289
|
+
type: string;
|
|
290
|
+
url: string;
|
|
291
|
+
previewUrl: string | null;
|
|
292
|
+
textUrl: null;
|
|
293
|
+
filename: string;
|
|
294
|
+
meta: {
|
|
295
|
+
usage?: string | undefined;
|
|
296
|
+
focus?: {
|
|
297
|
+
x: number;
|
|
298
|
+
y: number;
|
|
299
|
+
} | undefined;
|
|
300
|
+
mimetype?: string | undefined;
|
|
301
|
+
size?: number | undefined;
|
|
302
|
+
};
|
|
303
|
+
description?: string | undefined;
|
|
304
|
+
blurhash?: string | undefined;
|
|
305
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
306
|
+
error?: string | undefined;
|
|
307
|
+
}[] | undefined;
|
|
308
|
+
customEmojis?: {
|
|
309
|
+
shortcode: string;
|
|
310
|
+
url: string;
|
|
311
|
+
staticUrl: string;
|
|
312
|
+
visibleInPicker: boolean;
|
|
313
|
+
category: string;
|
|
314
|
+
}[] | undefined;
|
|
315
|
+
language?: string | undefined;
|
|
316
|
+
multiple?: boolean | undefined;
|
|
317
|
+
votersVisible?: boolean | undefined;
|
|
318
|
+
expiresAt?: string | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
type: "event";
|
|
321
|
+
start: string;
|
|
322
|
+
wholeDay: boolean;
|
|
323
|
+
content?: string | undefined;
|
|
324
|
+
sensitive?: boolean | undefined;
|
|
325
|
+
spoilerText?: string | undefined;
|
|
326
|
+
attachments?: {
|
|
327
|
+
type: string;
|
|
328
|
+
url: string;
|
|
329
|
+
previewUrl: string | null;
|
|
330
|
+
textUrl: null;
|
|
331
|
+
filename: string;
|
|
332
|
+
meta: {
|
|
333
|
+
usage?: string | undefined;
|
|
334
|
+
focus?: {
|
|
335
|
+
x: number;
|
|
336
|
+
y: number;
|
|
337
|
+
} | undefined;
|
|
338
|
+
mimetype?: string | undefined;
|
|
339
|
+
size?: number | undefined;
|
|
340
|
+
};
|
|
341
|
+
description?: string | undefined;
|
|
342
|
+
blurhash?: string | undefined;
|
|
343
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
344
|
+
error?: string | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
customEmojis?: {
|
|
347
|
+
shortcode: string;
|
|
348
|
+
url: string;
|
|
349
|
+
staticUrl: string;
|
|
350
|
+
visibleInPicker: boolean;
|
|
351
|
+
category: string;
|
|
352
|
+
}[] | undefined;
|
|
353
|
+
language?: string | undefined;
|
|
354
|
+
name?: string | undefined;
|
|
355
|
+
timeZone?: string | undefined;
|
|
356
|
+
image?: string | undefined;
|
|
357
|
+
end?: string | undefined;
|
|
358
|
+
maxAttendees?: number | undefined;
|
|
359
|
+
attendeeListPublic?: boolean | undefined;
|
|
360
|
+
moderators?: string[] | undefined;
|
|
361
|
+
jam?: {
|
|
362
|
+
moderators: string[];
|
|
363
|
+
videoEnabled: boolean;
|
|
364
|
+
type: "video-call";
|
|
365
|
+
speakers?: string[] | undefined;
|
|
366
|
+
presenters?: string[] | undefined;
|
|
367
|
+
audience?: string[] | undefined;
|
|
368
|
+
maxSpeakers?: number | undefined;
|
|
369
|
+
maxPresenters?: number | undefined;
|
|
370
|
+
maxAudience?: number | undefined;
|
|
371
|
+
waitingRoom?: boolean | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
physicalLocation?: {
|
|
374
|
+
text: string;
|
|
375
|
+
coordinates?: {
|
|
376
|
+
lat: number;
|
|
377
|
+
lng: number;
|
|
378
|
+
alt?: number | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
url?: string | undefined;
|
|
382
|
+
recurrence?: {
|
|
383
|
+
freq: "DAILY" | "WEEKLY" | "MONTHLY";
|
|
384
|
+
interval?: number | undefined;
|
|
385
|
+
byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
|
|
386
|
+
until?: string | undefined;
|
|
387
|
+
count?: number | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
exceptions?: {
|
|
390
|
+
recurrenceId: string;
|
|
391
|
+
cancelled?: boolean | undefined;
|
|
392
|
+
start?: string | undefined;
|
|
393
|
+
end?: string | undefined;
|
|
394
|
+
physicalLocation?: {
|
|
395
|
+
text: string;
|
|
396
|
+
coordinates?: {
|
|
397
|
+
lat: number;
|
|
398
|
+
lng: number;
|
|
399
|
+
alt?: number | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
}[] | undefined;
|
|
403
|
+
} | {
|
|
404
|
+
type: "article";
|
|
405
|
+
content?: string | undefined;
|
|
406
|
+
sensitive?: boolean | undefined;
|
|
407
|
+
spoilerText?: string | undefined;
|
|
408
|
+
attachments?: {
|
|
409
|
+
type: string;
|
|
410
|
+
url: string;
|
|
411
|
+
previewUrl: string | null;
|
|
412
|
+
textUrl: null;
|
|
413
|
+
filename: string;
|
|
414
|
+
meta: {
|
|
415
|
+
usage?: string | undefined;
|
|
416
|
+
focus?: {
|
|
417
|
+
x: number;
|
|
418
|
+
y: number;
|
|
419
|
+
} | undefined;
|
|
420
|
+
mimetype?: string | undefined;
|
|
421
|
+
size?: number | undefined;
|
|
422
|
+
};
|
|
423
|
+
description?: string | undefined;
|
|
424
|
+
blurhash?: string | undefined;
|
|
425
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
426
|
+
error?: string | undefined;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
customEmojis?: {
|
|
429
|
+
shortcode: string;
|
|
430
|
+
url: string;
|
|
431
|
+
staticUrl: string;
|
|
432
|
+
visibleInPicker: boolean;
|
|
433
|
+
category: string;
|
|
434
|
+
}[] | undefined;
|
|
435
|
+
language?: string | undefined;
|
|
436
|
+
image?: string | undefined;
|
|
437
|
+
title?: string | undefined;
|
|
438
|
+
} | {
|
|
439
|
+
type: "resource";
|
|
440
|
+
title: string;
|
|
441
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
442
|
+
content?: string | undefined;
|
|
443
|
+
sensitive?: boolean | undefined;
|
|
444
|
+
spoilerText?: string | undefined;
|
|
445
|
+
attachments?: {
|
|
446
|
+
type: string;
|
|
447
|
+
url: string;
|
|
448
|
+
previewUrl: string | null;
|
|
449
|
+
textUrl: null;
|
|
450
|
+
filename: string;
|
|
451
|
+
meta: {
|
|
452
|
+
usage?: string | undefined;
|
|
453
|
+
focus?: {
|
|
454
|
+
x: number;
|
|
455
|
+
y: number;
|
|
456
|
+
} | undefined;
|
|
457
|
+
mimetype?: string | undefined;
|
|
458
|
+
size?: number | undefined;
|
|
459
|
+
};
|
|
460
|
+
description?: string | undefined;
|
|
461
|
+
blurhash?: string | undefined;
|
|
462
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
463
|
+
error?: string | undefined;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
customEmojis?: {
|
|
466
|
+
shortcode: string;
|
|
467
|
+
url: string;
|
|
468
|
+
staticUrl: string;
|
|
469
|
+
visibleInPicker: boolean;
|
|
470
|
+
category: string;
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
language?: string | undefined;
|
|
473
|
+
tags?: string[] | undefined;
|
|
474
|
+
categoryPath?: string[] | undefined;
|
|
475
|
+
url?: string | undefined;
|
|
476
|
+
};
|
|
477
|
+
} | {
|
|
478
|
+
type: "delete";
|
|
479
|
+
data: any;
|
|
480
|
+
} | {
|
|
481
|
+
type: "answer";
|
|
482
|
+
data: {
|
|
483
|
+
selection: number[];
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
type: "rsvp";
|
|
487
|
+
data: {
|
|
488
|
+
response: "removed" | "no" | "yes" | "tentative";
|
|
489
|
+
recurrenceId?: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
} | {
|
|
492
|
+
type: "reaction";
|
|
493
|
+
data: {
|
|
494
|
+
reaction: string;
|
|
495
|
+
};
|
|
496
|
+
uri?: string | undefined;
|
|
497
|
+
} | {
|
|
498
|
+
type: "unreaction";
|
|
499
|
+
data: {
|
|
500
|
+
reaction: string;
|
|
501
|
+
};
|
|
502
|
+
uri?: string | undefined;
|
|
503
|
+
}) & {
|
|
504
|
+
_from: string;
|
|
505
|
+
_to: string;
|
|
506
|
+
}>>;
|
|
12
507
|
export declare const bookmarkPost: (post: PostWithMeta, profile: Profile) => Promise<void>;
|
|
13
508
|
export declare const unbookmarkPost: (post: PostWithMeta, profile: Profile) => Promise<void>;
|
|
14
509
|
export declare const markPostsSeen: (posts: {
|
|
@@ -17,5 +512,23 @@ export declare const markPostsSeen: (posts: {
|
|
|
17
512
|
export declare const markGroupPostsSeen: (authData: AuthorizationData, groupId: string) => Promise<void>;
|
|
18
513
|
export declare const deletePost: (post: PostWithMeta, profile: Profile) => Promise<import("@openpeepshq/common").DbPost | undefined>;
|
|
19
514
|
export declare const vote: (profile: Profile, post: PostWithMeta, data: Answer) => Promise<void>;
|
|
20
|
-
export declare const rsvpRespond: (profile: Profile, post: PostWithMeta, data:
|
|
515
|
+
export declare const rsvpRespond: (profile: Profile, post: PostWithMeta, data: RsvpRequest) => Promise<void>;
|
|
21
516
|
export declare const rsvpManageByOrganizer: (actingProfile: Profile, targetProfile: Profile, post: PostWithMeta, response: Extract<RsvpResponse, "removed" | "yes">, recurrenceId?: string) => Promise<void>;
|
|
517
|
+
/**
|
|
518
|
+
* Remove a profile from a direct-message conversation thread.
|
|
519
|
+
*
|
|
520
|
+
* - Creates a system "X left" post (empty content) with the *remaining*
|
|
521
|
+
* participants as audience. The leaving user is excluded so future
|
|
522
|
+
* replies (which inherit the audience) won't notify them, and the thread
|
|
523
|
+
* disappears from their inbox.
|
|
524
|
+
* - MessageInThread detects the leave via the audience diff: the leaving
|
|
525
|
+
* user was in the previous post's audience but not in the left-post's.
|
|
526
|
+
* - The conversation post-creation endpoint detects leavers (author not in
|
|
527
|
+
* their own post's audience) to block further posting and exclude them
|
|
528
|
+
* from future replies' audience.
|
|
529
|
+
* - For 1:1 DMs (no remaining participants), removes the user from every
|
|
530
|
+
* post's audience so the thread vanishes from their inbox.
|
|
531
|
+
* - The leaving user can still find the thread in the "Archived" conversations
|
|
532
|
+
* tab, detected by posts they authored but are not in.
|
|
533
|
+
*/
|
|
534
|
+
export declare const leaveConversation: (rootPost: PostWithMeta, profile: ProfileWithMeta) => Promise<void>;
|