@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
package/dist/posts/mapping.d.ts
CHANGED
|
@@ -4,6 +4,247 @@ export declare const entriesRelation: Relation<Profile, EntryData>;
|
|
|
4
4
|
export declare const groupRelation: Relation;
|
|
5
5
|
/** Cap for embedded who-reposted lists on feed/detail posts. */
|
|
6
6
|
export declare const EMBEDDED_REPOSTS_LIMIT = 50;
|
|
7
|
+
/** Newest conversation descendants shown under a feed original. */
|
|
8
|
+
export declare const EMBEDDED_LATEST_REPLIES_LIMIT = 3;
|
|
9
|
+
export declare const threadPreviewMappingForProfile: (profile?: {
|
|
10
|
+
id: string;
|
|
11
|
+
}) => Mapping<{
|
|
12
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
13
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
14
|
+
creatorId: string;
|
|
15
|
+
capabilitiesNeeded?: string[] | undefined;
|
|
16
|
+
data?: {
|
|
17
|
+
type: "note";
|
|
18
|
+
content?: string | undefined;
|
|
19
|
+
sensitive?: boolean | undefined;
|
|
20
|
+
spoilerText?: string | undefined;
|
|
21
|
+
attachments?: {
|
|
22
|
+
type: string;
|
|
23
|
+
url: string;
|
|
24
|
+
previewUrl: string | null;
|
|
25
|
+
textUrl: null;
|
|
26
|
+
filename: string;
|
|
27
|
+
meta: {
|
|
28
|
+
usage?: string | undefined;
|
|
29
|
+
focus?: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
} | undefined;
|
|
33
|
+
mimetype?: string | undefined;
|
|
34
|
+
size?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
blurhash?: string | undefined;
|
|
38
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
39
|
+
error?: string | undefined;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
customEmojis?: {
|
|
42
|
+
shortcode: string;
|
|
43
|
+
url: string;
|
|
44
|
+
staticUrl: string;
|
|
45
|
+
visibleInPicker: boolean;
|
|
46
|
+
category: string;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
language?: string | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
type: "question";
|
|
51
|
+
options: {
|
|
52
|
+
content: string;
|
|
53
|
+
type: "note";
|
|
54
|
+
}[];
|
|
55
|
+
content?: string | undefined;
|
|
56
|
+
sensitive?: boolean | undefined;
|
|
57
|
+
spoilerText?: string | undefined;
|
|
58
|
+
attachments?: {
|
|
59
|
+
type: string;
|
|
60
|
+
url: string;
|
|
61
|
+
previewUrl: string | null;
|
|
62
|
+
textUrl: null;
|
|
63
|
+
filename: string;
|
|
64
|
+
meta: {
|
|
65
|
+
usage?: string | undefined;
|
|
66
|
+
focus?: {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
} | undefined;
|
|
70
|
+
mimetype?: string | undefined;
|
|
71
|
+
size?: number | undefined;
|
|
72
|
+
};
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
blurhash?: string | undefined;
|
|
75
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
76
|
+
error?: string | undefined;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
customEmojis?: {
|
|
79
|
+
shortcode: string;
|
|
80
|
+
url: string;
|
|
81
|
+
staticUrl: string;
|
|
82
|
+
visibleInPicker: boolean;
|
|
83
|
+
category: string;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
language?: string | undefined;
|
|
86
|
+
multiple?: boolean | undefined;
|
|
87
|
+
votersVisible?: boolean | undefined;
|
|
88
|
+
expiresAt?: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
type: "event";
|
|
91
|
+
start: string;
|
|
92
|
+
wholeDay: boolean;
|
|
93
|
+
content?: string | undefined;
|
|
94
|
+
sensitive?: boolean | undefined;
|
|
95
|
+
spoilerText?: string | undefined;
|
|
96
|
+
attachments?: {
|
|
97
|
+
type: string;
|
|
98
|
+
url: string;
|
|
99
|
+
previewUrl: string | null;
|
|
100
|
+
textUrl: null;
|
|
101
|
+
filename: string;
|
|
102
|
+
meta: {
|
|
103
|
+
usage?: string | undefined;
|
|
104
|
+
focus?: {
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
} | undefined;
|
|
108
|
+
mimetype?: string | undefined;
|
|
109
|
+
size?: number | undefined;
|
|
110
|
+
};
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
blurhash?: string | undefined;
|
|
113
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
114
|
+
error?: string | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
customEmojis?: {
|
|
117
|
+
shortcode: string;
|
|
118
|
+
url: string;
|
|
119
|
+
staticUrl: string;
|
|
120
|
+
visibleInPicker: boolean;
|
|
121
|
+
category: string;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
language?: string | undefined;
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
timeZone?: string | undefined;
|
|
126
|
+
image?: string | undefined;
|
|
127
|
+
end?: string | undefined;
|
|
128
|
+
maxAttendees?: number | undefined;
|
|
129
|
+
attendeeListPublic?: boolean | undefined;
|
|
130
|
+
moderators?: string[] | undefined;
|
|
131
|
+
jam?: {
|
|
132
|
+
moderators: string[];
|
|
133
|
+
videoEnabled: boolean;
|
|
134
|
+
type: "video-call";
|
|
135
|
+
speakers?: string[] | undefined;
|
|
136
|
+
presenters?: string[] | undefined;
|
|
137
|
+
audience?: string[] | undefined;
|
|
138
|
+
maxSpeakers?: number | undefined;
|
|
139
|
+
maxPresenters?: number | undefined;
|
|
140
|
+
maxAudience?: number | undefined;
|
|
141
|
+
waitingRoom?: boolean | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
physicalLocation?: {
|
|
144
|
+
text: string;
|
|
145
|
+
coordinates?: {
|
|
146
|
+
lat: number;
|
|
147
|
+
lng: number;
|
|
148
|
+
alt?: number | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
url?: string | undefined;
|
|
152
|
+
recurrence?: {
|
|
153
|
+
freq: "DAILY" | "WEEKLY" | "MONTHLY";
|
|
154
|
+
interval?: number | undefined;
|
|
155
|
+
byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
|
|
156
|
+
until?: string | undefined;
|
|
157
|
+
count?: number | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
exceptions?: {
|
|
160
|
+
recurrenceId: string;
|
|
161
|
+
cancelled?: boolean | undefined;
|
|
162
|
+
start?: string | undefined;
|
|
163
|
+
end?: string | undefined;
|
|
164
|
+
physicalLocation?: {
|
|
165
|
+
text: string;
|
|
166
|
+
coordinates?: {
|
|
167
|
+
lat: number;
|
|
168
|
+
lng: number;
|
|
169
|
+
alt?: number | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
} | {
|
|
174
|
+
type: "article";
|
|
175
|
+
content?: string | undefined;
|
|
176
|
+
sensitive?: boolean | undefined;
|
|
177
|
+
spoilerText?: string | undefined;
|
|
178
|
+
attachments?: {
|
|
179
|
+
type: string;
|
|
180
|
+
url: string;
|
|
181
|
+
previewUrl: string | null;
|
|
182
|
+
textUrl: null;
|
|
183
|
+
filename: string;
|
|
184
|
+
meta: {
|
|
185
|
+
usage?: string | undefined;
|
|
186
|
+
focus?: {
|
|
187
|
+
x: number;
|
|
188
|
+
y: number;
|
|
189
|
+
} | undefined;
|
|
190
|
+
mimetype?: string | undefined;
|
|
191
|
+
size?: number | undefined;
|
|
192
|
+
};
|
|
193
|
+
description?: string | undefined;
|
|
194
|
+
blurhash?: string | undefined;
|
|
195
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
196
|
+
error?: string | undefined;
|
|
197
|
+
}[] | undefined;
|
|
198
|
+
customEmojis?: {
|
|
199
|
+
shortcode: string;
|
|
200
|
+
url: string;
|
|
201
|
+
staticUrl: string;
|
|
202
|
+
visibleInPicker: boolean;
|
|
203
|
+
category: string;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
language?: string | undefined;
|
|
206
|
+
image?: string | undefined;
|
|
207
|
+
title?: string | undefined;
|
|
208
|
+
} | {
|
|
209
|
+
type: "resource";
|
|
210
|
+
title: string;
|
|
211
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
212
|
+
content?: string | undefined;
|
|
213
|
+
sensitive?: boolean | undefined;
|
|
214
|
+
spoilerText?: string | undefined;
|
|
215
|
+
attachments?: {
|
|
216
|
+
type: string;
|
|
217
|
+
url: string;
|
|
218
|
+
previewUrl: string | null;
|
|
219
|
+
textUrl: null;
|
|
220
|
+
filename: string;
|
|
221
|
+
meta: {
|
|
222
|
+
usage?: string | undefined;
|
|
223
|
+
focus?: {
|
|
224
|
+
x: number;
|
|
225
|
+
y: number;
|
|
226
|
+
} | undefined;
|
|
227
|
+
mimetype?: string | undefined;
|
|
228
|
+
size?: number | undefined;
|
|
229
|
+
};
|
|
230
|
+
description?: string | undefined;
|
|
231
|
+
blurhash?: string | undefined;
|
|
232
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
233
|
+
error?: string | undefined;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
customEmojis?: {
|
|
236
|
+
shortcode: string;
|
|
237
|
+
url: string;
|
|
238
|
+
staticUrl: string;
|
|
239
|
+
visibleInPicker: boolean;
|
|
240
|
+
category: string;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
language?: string | undefined;
|
|
243
|
+
tags?: string[] | undefined;
|
|
244
|
+
categoryPath?: string[] | undefined;
|
|
245
|
+
url?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
}, DbPost, DbPost>;
|
|
7
248
|
export declare const repostRelation: RelationWithMapping<DbBasePost>;
|
|
8
249
|
export declare const repostRelationForProfile: (profile?: {
|
|
9
250
|
id: string;
|
|
@@ -13,8 +254,8 @@ export declare const repostsOfPostRelationForProfile: (profile?: {
|
|
|
13
254
|
id: string;
|
|
14
255
|
}) => RelationWithMapping<DbPost>;
|
|
15
256
|
export declare const postsWithReplyCountMapping: Mapping<{
|
|
16
|
-
type: "note" | "question" | "event" | "article";
|
|
17
|
-
visibility: "
|
|
257
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
258
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
18
259
|
creatorId: string;
|
|
19
260
|
capabilitiesNeeded?: string[] | undefined;
|
|
20
261
|
data?: {
|
|
@@ -209,14 +450,52 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
209
450
|
language?: string | undefined;
|
|
210
451
|
image?: string | undefined;
|
|
211
452
|
title?: string | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
type: "resource";
|
|
455
|
+
title: string;
|
|
456
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
457
|
+
content?: string | undefined;
|
|
458
|
+
sensitive?: boolean | undefined;
|
|
459
|
+
spoilerText?: string | undefined;
|
|
460
|
+
attachments?: {
|
|
461
|
+
type: string;
|
|
462
|
+
url: string;
|
|
463
|
+
previewUrl: string | null;
|
|
464
|
+
textUrl: null;
|
|
465
|
+
filename: string;
|
|
466
|
+
meta: {
|
|
467
|
+
usage?: string | undefined;
|
|
468
|
+
focus?: {
|
|
469
|
+
x: number;
|
|
470
|
+
y: number;
|
|
471
|
+
} | undefined;
|
|
472
|
+
mimetype?: string | undefined;
|
|
473
|
+
size?: number | undefined;
|
|
474
|
+
};
|
|
475
|
+
description?: string | undefined;
|
|
476
|
+
blurhash?: string | undefined;
|
|
477
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
478
|
+
error?: string | undefined;
|
|
479
|
+
}[] | undefined;
|
|
480
|
+
customEmojis?: {
|
|
481
|
+
shortcode: string;
|
|
482
|
+
url: string;
|
|
483
|
+
staticUrl: string;
|
|
484
|
+
visibleInPicker: boolean;
|
|
485
|
+
category: string;
|
|
486
|
+
}[] | undefined;
|
|
487
|
+
language?: string | undefined;
|
|
488
|
+
tags?: string[] | undefined;
|
|
489
|
+
categoryPath?: string[] | undefined;
|
|
490
|
+
url?: string | undefined;
|
|
212
491
|
} | undefined;
|
|
213
492
|
}, {
|
|
214
493
|
createdAt: string;
|
|
215
494
|
updatedAt: string;
|
|
216
495
|
deletedAt?: string | null | undefined;
|
|
217
496
|
} & {
|
|
218
|
-
type: "note" | "question" | "event" | "article";
|
|
219
|
-
visibility: "
|
|
497
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
498
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
220
499
|
creatorId: string;
|
|
221
500
|
capabilitiesNeeded?: string[] | undefined;
|
|
222
501
|
data?: {
|
|
@@ -411,6 +690,44 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
411
690
|
language?: string | undefined;
|
|
412
691
|
image?: string | undefined;
|
|
413
692
|
title?: string | undefined;
|
|
693
|
+
} | {
|
|
694
|
+
type: "resource";
|
|
695
|
+
title: string;
|
|
696
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
697
|
+
content?: string | undefined;
|
|
698
|
+
sensitive?: boolean | undefined;
|
|
699
|
+
spoilerText?: string | undefined;
|
|
700
|
+
attachments?: {
|
|
701
|
+
type: string;
|
|
702
|
+
url: string;
|
|
703
|
+
previewUrl: string | null;
|
|
704
|
+
textUrl: null;
|
|
705
|
+
filename: string;
|
|
706
|
+
meta: {
|
|
707
|
+
usage?: string | undefined;
|
|
708
|
+
focus?: {
|
|
709
|
+
x: number;
|
|
710
|
+
y: number;
|
|
711
|
+
} | undefined;
|
|
712
|
+
mimetype?: string | undefined;
|
|
713
|
+
size?: number | undefined;
|
|
714
|
+
};
|
|
715
|
+
description?: string | undefined;
|
|
716
|
+
blurhash?: string | undefined;
|
|
717
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
718
|
+
error?: string | undefined;
|
|
719
|
+
}[] | undefined;
|
|
720
|
+
customEmojis?: {
|
|
721
|
+
shortcode: string;
|
|
722
|
+
url: string;
|
|
723
|
+
staticUrl: string;
|
|
724
|
+
visibleInPicker: boolean;
|
|
725
|
+
category: string;
|
|
726
|
+
}[] | undefined;
|
|
727
|
+
language?: string | undefined;
|
|
728
|
+
tags?: string[] | undefined;
|
|
729
|
+
categoryPath?: string[] | undefined;
|
|
730
|
+
url?: string | undefined;
|
|
414
731
|
} | undefined;
|
|
415
732
|
} & {
|
|
416
733
|
id: string;
|
|
@@ -421,8 +738,8 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
421
738
|
updatedAt: string;
|
|
422
739
|
deletedAt?: string | null | undefined;
|
|
423
740
|
} & {
|
|
424
|
-
type: "note" | "question" | "event" | "article";
|
|
425
|
-
visibility: "
|
|
741
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
742
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
426
743
|
creatorId: string;
|
|
427
744
|
capabilitiesNeeded?: string[] | undefined;
|
|
428
745
|
data?: {
|
|
@@ -617,6 +934,44 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
617
934
|
language?: string | undefined;
|
|
618
935
|
image?: string | undefined;
|
|
619
936
|
title?: string | undefined;
|
|
937
|
+
} | {
|
|
938
|
+
type: "resource";
|
|
939
|
+
title: string;
|
|
940
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
941
|
+
content?: string | undefined;
|
|
942
|
+
sensitive?: boolean | undefined;
|
|
943
|
+
spoilerText?: string | undefined;
|
|
944
|
+
attachments?: {
|
|
945
|
+
type: string;
|
|
946
|
+
url: string;
|
|
947
|
+
previewUrl: string | null;
|
|
948
|
+
textUrl: null;
|
|
949
|
+
filename: string;
|
|
950
|
+
meta: {
|
|
951
|
+
usage?: string | undefined;
|
|
952
|
+
focus?: {
|
|
953
|
+
x: number;
|
|
954
|
+
y: number;
|
|
955
|
+
} | undefined;
|
|
956
|
+
mimetype?: string | undefined;
|
|
957
|
+
size?: number | undefined;
|
|
958
|
+
};
|
|
959
|
+
description?: string | undefined;
|
|
960
|
+
blurhash?: string | undefined;
|
|
961
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
962
|
+
error?: string | undefined;
|
|
963
|
+
}[] | undefined;
|
|
964
|
+
customEmojis?: {
|
|
965
|
+
shortcode: string;
|
|
966
|
+
url: string;
|
|
967
|
+
staticUrl: string;
|
|
968
|
+
visibleInPicker: boolean;
|
|
969
|
+
category: string;
|
|
970
|
+
}[] | undefined;
|
|
971
|
+
language?: string | undefined;
|
|
972
|
+
tags?: string[] | undefined;
|
|
973
|
+
categoryPath?: string[] | undefined;
|
|
974
|
+
url?: string | undefined;
|
|
620
975
|
} | undefined;
|
|
621
976
|
} & {
|
|
622
977
|
id: string;
|
|
@@ -624,8 +979,8 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
624
979
|
replyCount: number;
|
|
625
980
|
}>;
|
|
626
981
|
export declare const postsWithReplyToCountMapping: Mapping<{
|
|
627
|
-
type: "note" | "question" | "event" | "article";
|
|
628
|
-
visibility: "
|
|
982
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
983
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
629
984
|
creatorId: string;
|
|
630
985
|
capabilitiesNeeded?: string[] | undefined;
|
|
631
986
|
data?: {
|
|
@@ -820,14 +1175,52 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
820
1175
|
language?: string | undefined;
|
|
821
1176
|
image?: string | undefined;
|
|
822
1177
|
title?: string | undefined;
|
|
1178
|
+
} | {
|
|
1179
|
+
type: "resource";
|
|
1180
|
+
title: string;
|
|
1181
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
1182
|
+
content?: string | undefined;
|
|
1183
|
+
sensitive?: boolean | undefined;
|
|
1184
|
+
spoilerText?: string | undefined;
|
|
1185
|
+
attachments?: {
|
|
1186
|
+
type: string;
|
|
1187
|
+
url: string;
|
|
1188
|
+
previewUrl: string | null;
|
|
1189
|
+
textUrl: null;
|
|
1190
|
+
filename: string;
|
|
1191
|
+
meta: {
|
|
1192
|
+
usage?: string | undefined;
|
|
1193
|
+
focus?: {
|
|
1194
|
+
x: number;
|
|
1195
|
+
y: number;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
mimetype?: string | undefined;
|
|
1198
|
+
size?: number | undefined;
|
|
1199
|
+
};
|
|
1200
|
+
description?: string | undefined;
|
|
1201
|
+
blurhash?: string | undefined;
|
|
1202
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
1203
|
+
error?: string | undefined;
|
|
1204
|
+
}[] | undefined;
|
|
1205
|
+
customEmojis?: {
|
|
1206
|
+
shortcode: string;
|
|
1207
|
+
url: string;
|
|
1208
|
+
staticUrl: string;
|
|
1209
|
+
visibleInPicker: boolean;
|
|
1210
|
+
category: string;
|
|
1211
|
+
}[] | undefined;
|
|
1212
|
+
language?: string | undefined;
|
|
1213
|
+
tags?: string[] | undefined;
|
|
1214
|
+
categoryPath?: string[] | undefined;
|
|
1215
|
+
url?: string | undefined;
|
|
823
1216
|
} | undefined;
|
|
824
1217
|
}, {
|
|
825
1218
|
createdAt: string;
|
|
826
1219
|
updatedAt: string;
|
|
827
1220
|
deletedAt?: string | null | undefined;
|
|
828
1221
|
} & {
|
|
829
|
-
type: "note" | "question" | "event" | "article";
|
|
830
|
-
visibility: "
|
|
1222
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1223
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
831
1224
|
creatorId: string;
|
|
832
1225
|
capabilitiesNeeded?: string[] | undefined;
|
|
833
1226
|
data?: {
|
|
@@ -1022,6 +1415,44 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1022
1415
|
language?: string | undefined;
|
|
1023
1416
|
image?: string | undefined;
|
|
1024
1417
|
title?: string | undefined;
|
|
1418
|
+
} | {
|
|
1419
|
+
type: "resource";
|
|
1420
|
+
title: string;
|
|
1421
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
1422
|
+
content?: string | undefined;
|
|
1423
|
+
sensitive?: boolean | undefined;
|
|
1424
|
+
spoilerText?: string | undefined;
|
|
1425
|
+
attachments?: {
|
|
1426
|
+
type: string;
|
|
1427
|
+
url: string;
|
|
1428
|
+
previewUrl: string | null;
|
|
1429
|
+
textUrl: null;
|
|
1430
|
+
filename: string;
|
|
1431
|
+
meta: {
|
|
1432
|
+
usage?: string | undefined;
|
|
1433
|
+
focus?: {
|
|
1434
|
+
x: number;
|
|
1435
|
+
y: number;
|
|
1436
|
+
} | undefined;
|
|
1437
|
+
mimetype?: string | undefined;
|
|
1438
|
+
size?: number | undefined;
|
|
1439
|
+
};
|
|
1440
|
+
description?: string | undefined;
|
|
1441
|
+
blurhash?: string | undefined;
|
|
1442
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
1443
|
+
error?: string | undefined;
|
|
1444
|
+
}[] | undefined;
|
|
1445
|
+
customEmojis?: {
|
|
1446
|
+
shortcode: string;
|
|
1447
|
+
url: string;
|
|
1448
|
+
staticUrl: string;
|
|
1449
|
+
visibleInPicker: boolean;
|
|
1450
|
+
category: string;
|
|
1451
|
+
}[] | undefined;
|
|
1452
|
+
language?: string | undefined;
|
|
1453
|
+
tags?: string[] | undefined;
|
|
1454
|
+
categoryPath?: string[] | undefined;
|
|
1455
|
+
url?: string | undefined;
|
|
1025
1456
|
} | undefined;
|
|
1026
1457
|
} & {
|
|
1027
1458
|
id: string;
|
|
@@ -1032,8 +1463,8 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1032
1463
|
updatedAt: string;
|
|
1033
1464
|
deletedAt?: string | null | undefined;
|
|
1034
1465
|
} & {
|
|
1035
|
-
type: "note" | "question" | "event" | "article";
|
|
1036
|
-
visibility: "
|
|
1466
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1467
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1037
1468
|
creatorId: string;
|
|
1038
1469
|
capabilitiesNeeded?: string[] | undefined;
|
|
1039
1470
|
data?: {
|
|
@@ -1191,10 +1622,47 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1191
1622
|
lng: number;
|
|
1192
1623
|
alt?: number | undefined;
|
|
1193
1624
|
} | undefined;
|
|
1194
|
-
} | undefined;
|
|
1625
|
+
} | undefined;
|
|
1626
|
+
}[] | undefined;
|
|
1627
|
+
} | {
|
|
1628
|
+
type: "article";
|
|
1629
|
+
content?: string | undefined;
|
|
1630
|
+
sensitive?: boolean | undefined;
|
|
1631
|
+
spoilerText?: string | undefined;
|
|
1632
|
+
attachments?: {
|
|
1633
|
+
type: string;
|
|
1634
|
+
url: string;
|
|
1635
|
+
previewUrl: string | null;
|
|
1636
|
+
textUrl: null;
|
|
1637
|
+
filename: string;
|
|
1638
|
+
meta: {
|
|
1639
|
+
usage?: string | undefined;
|
|
1640
|
+
focus?: {
|
|
1641
|
+
x: number;
|
|
1642
|
+
y: number;
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
mimetype?: string | undefined;
|
|
1645
|
+
size?: number | undefined;
|
|
1646
|
+
};
|
|
1647
|
+
description?: string | undefined;
|
|
1648
|
+
blurhash?: string | undefined;
|
|
1649
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
1650
|
+
error?: string | undefined;
|
|
1651
|
+
}[] | undefined;
|
|
1652
|
+
customEmojis?: {
|
|
1653
|
+
shortcode: string;
|
|
1654
|
+
url: string;
|
|
1655
|
+
staticUrl: string;
|
|
1656
|
+
visibleInPicker: boolean;
|
|
1657
|
+
category: string;
|
|
1195
1658
|
}[] | undefined;
|
|
1659
|
+
language?: string | undefined;
|
|
1660
|
+
image?: string | undefined;
|
|
1661
|
+
title?: string | undefined;
|
|
1196
1662
|
} | {
|
|
1197
|
-
type: "
|
|
1663
|
+
type: "resource";
|
|
1664
|
+
title: string;
|
|
1665
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
1198
1666
|
content?: string | undefined;
|
|
1199
1667
|
sensitive?: boolean | undefined;
|
|
1200
1668
|
spoilerText?: string | undefined;
|
|
@@ -1226,8 +1694,9 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1226
1694
|
category: string;
|
|
1227
1695
|
}[] | undefined;
|
|
1228
1696
|
language?: string | undefined;
|
|
1229
|
-
|
|
1230
|
-
|
|
1697
|
+
tags?: string[] | undefined;
|
|
1698
|
+
categoryPath?: string[] | undefined;
|
|
1699
|
+
url?: string | undefined;
|
|
1231
1700
|
} | undefined;
|
|
1232
1701
|
} & {
|
|
1233
1702
|
id: string;
|
|
@@ -1235,8 +1704,8 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1235
1704
|
replyToCount: number;
|
|
1236
1705
|
}>;
|
|
1237
1706
|
export declare const postsMapping: Mapping<{
|
|
1238
|
-
type: "note" | "question" | "event" | "article";
|
|
1239
|
-
visibility: "
|
|
1707
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1708
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1240
1709
|
creatorId: string;
|
|
1241
1710
|
capabilitiesNeeded?: string[] | undefined;
|
|
1242
1711
|
data?: {
|
|
@@ -1431,12 +1900,50 @@ export declare const postsMapping: Mapping<{
|
|
|
1431
1900
|
language?: string | undefined;
|
|
1432
1901
|
image?: string | undefined;
|
|
1433
1902
|
title?: string | undefined;
|
|
1903
|
+
} | {
|
|
1904
|
+
type: "resource";
|
|
1905
|
+
title: string;
|
|
1906
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
1907
|
+
content?: string | undefined;
|
|
1908
|
+
sensitive?: boolean | undefined;
|
|
1909
|
+
spoilerText?: string | undefined;
|
|
1910
|
+
attachments?: {
|
|
1911
|
+
type: string;
|
|
1912
|
+
url: string;
|
|
1913
|
+
previewUrl: string | null;
|
|
1914
|
+
textUrl: null;
|
|
1915
|
+
filename: string;
|
|
1916
|
+
meta: {
|
|
1917
|
+
usage?: string | undefined;
|
|
1918
|
+
focus?: {
|
|
1919
|
+
x: number;
|
|
1920
|
+
y: number;
|
|
1921
|
+
} | undefined;
|
|
1922
|
+
mimetype?: string | undefined;
|
|
1923
|
+
size?: number | undefined;
|
|
1924
|
+
};
|
|
1925
|
+
description?: string | undefined;
|
|
1926
|
+
blurhash?: string | undefined;
|
|
1927
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
1928
|
+
error?: string | undefined;
|
|
1929
|
+
}[] | undefined;
|
|
1930
|
+
customEmojis?: {
|
|
1931
|
+
shortcode: string;
|
|
1932
|
+
url: string;
|
|
1933
|
+
staticUrl: string;
|
|
1934
|
+
visibleInPicker: boolean;
|
|
1935
|
+
category: string;
|
|
1936
|
+
}[] | undefined;
|
|
1937
|
+
language?: string | undefined;
|
|
1938
|
+
tags?: string[] | undefined;
|
|
1939
|
+
categoryPath?: string[] | undefined;
|
|
1940
|
+
url?: string | undefined;
|
|
1434
1941
|
} | undefined;
|
|
1435
1942
|
}, DbPost, DbPost>;
|
|
1436
1943
|
/** Auth / mark-seen: post graph without nested replyTo/repost hydrate. */
|
|
1437
1944
|
export declare const postsAuthMapping: Mapping<{
|
|
1438
|
-
type: "note" | "question" | "event" | "article";
|
|
1439
|
-
visibility: "
|
|
1945
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1946
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1440
1947
|
creatorId: string;
|
|
1441
1948
|
capabilitiesNeeded?: string[] | undefined;
|
|
1442
1949
|
data?: {
|
|
@@ -1631,13 +2138,51 @@ export declare const postsAuthMapping: Mapping<{
|
|
|
1631
2138
|
language?: string | undefined;
|
|
1632
2139
|
image?: string | undefined;
|
|
1633
2140
|
title?: string | undefined;
|
|
2141
|
+
} | {
|
|
2142
|
+
type: "resource";
|
|
2143
|
+
title: string;
|
|
2144
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
2145
|
+
content?: string | undefined;
|
|
2146
|
+
sensitive?: boolean | undefined;
|
|
2147
|
+
spoilerText?: string | undefined;
|
|
2148
|
+
attachments?: {
|
|
2149
|
+
type: string;
|
|
2150
|
+
url: string;
|
|
2151
|
+
previewUrl: string | null;
|
|
2152
|
+
textUrl: null;
|
|
2153
|
+
filename: string;
|
|
2154
|
+
meta: {
|
|
2155
|
+
usage?: string | undefined;
|
|
2156
|
+
focus?: {
|
|
2157
|
+
x: number;
|
|
2158
|
+
y: number;
|
|
2159
|
+
} | undefined;
|
|
2160
|
+
mimetype?: string | undefined;
|
|
2161
|
+
size?: number | undefined;
|
|
2162
|
+
};
|
|
2163
|
+
description?: string | undefined;
|
|
2164
|
+
blurhash?: string | undefined;
|
|
2165
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
2166
|
+
error?: string | undefined;
|
|
2167
|
+
}[] | undefined;
|
|
2168
|
+
customEmojis?: {
|
|
2169
|
+
shortcode: string;
|
|
2170
|
+
url: string;
|
|
2171
|
+
staticUrl: string;
|
|
2172
|
+
visibleInPicker: boolean;
|
|
2173
|
+
category: string;
|
|
2174
|
+
}[] | undefined;
|
|
2175
|
+
language?: string | undefined;
|
|
2176
|
+
tags?: string[] | undefined;
|
|
2177
|
+
categoryPath?: string[] | undefined;
|
|
2178
|
+
url?: string | undefined;
|
|
1634
2179
|
} | undefined;
|
|
1635
2180
|
}, DbPost, DbPost>;
|
|
1636
2181
|
export declare const postsMappingForProfile: (profile?: {
|
|
1637
2182
|
id: string;
|
|
1638
2183
|
}) => Mapping<{
|
|
1639
|
-
type: "note" | "question" | "event" | "article";
|
|
1640
|
-
visibility: "
|
|
2184
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2185
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1641
2186
|
creatorId: string;
|
|
1642
2187
|
capabilitiesNeeded?: string[] | undefined;
|
|
1643
2188
|
data?: {
|
|
@@ -1832,13 +2377,51 @@ export declare const postsMappingForProfile: (profile?: {
|
|
|
1832
2377
|
language?: string | undefined;
|
|
1833
2378
|
image?: string | undefined;
|
|
1834
2379
|
title?: string | undefined;
|
|
2380
|
+
} | {
|
|
2381
|
+
type: "resource";
|
|
2382
|
+
title: string;
|
|
2383
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
2384
|
+
content?: string | undefined;
|
|
2385
|
+
sensitive?: boolean | undefined;
|
|
2386
|
+
spoilerText?: string | undefined;
|
|
2387
|
+
attachments?: {
|
|
2388
|
+
type: string;
|
|
2389
|
+
url: string;
|
|
2390
|
+
previewUrl: string | null;
|
|
2391
|
+
textUrl: null;
|
|
2392
|
+
filename: string;
|
|
2393
|
+
meta: {
|
|
2394
|
+
usage?: string | undefined;
|
|
2395
|
+
focus?: {
|
|
2396
|
+
x: number;
|
|
2397
|
+
y: number;
|
|
2398
|
+
} | undefined;
|
|
2399
|
+
mimetype?: string | undefined;
|
|
2400
|
+
size?: number | undefined;
|
|
2401
|
+
};
|
|
2402
|
+
description?: string | undefined;
|
|
2403
|
+
blurhash?: string | undefined;
|
|
2404
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
2405
|
+
error?: string | undefined;
|
|
2406
|
+
}[] | undefined;
|
|
2407
|
+
customEmojis?: {
|
|
2408
|
+
shortcode: string;
|
|
2409
|
+
url: string;
|
|
2410
|
+
staticUrl: string;
|
|
2411
|
+
visibleInPicker: boolean;
|
|
2412
|
+
category: string;
|
|
2413
|
+
}[] | undefined;
|
|
2414
|
+
language?: string | undefined;
|
|
2415
|
+
tags?: string[] | undefined;
|
|
2416
|
+
categoryPath?: string[] | undefined;
|
|
2417
|
+
url?: string | undefined;
|
|
1835
2418
|
} | undefined;
|
|
1836
2419
|
}, DbPost, DbPost>;
|
|
1837
2420
|
export declare const postContextMappingForProfile: (profile?: {
|
|
1838
2421
|
id: string;
|
|
1839
2422
|
}) => Mapping<{
|
|
1840
|
-
type: "note" | "question" | "event" | "article";
|
|
1841
|
-
visibility: "
|
|
2423
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2424
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1842
2425
|
creatorId: string;
|
|
1843
2426
|
capabilitiesNeeded?: string[] | undefined;
|
|
1844
2427
|
data?: {
|
|
@@ -2033,12 +2616,50 @@ export declare const postContextMappingForProfile: (profile?: {
|
|
|
2033
2616
|
language?: string | undefined;
|
|
2034
2617
|
image?: string | undefined;
|
|
2035
2618
|
title?: string | undefined;
|
|
2619
|
+
} | {
|
|
2620
|
+
type: "resource";
|
|
2621
|
+
title: string;
|
|
2622
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
2623
|
+
content?: string | undefined;
|
|
2624
|
+
sensitive?: boolean | undefined;
|
|
2625
|
+
spoilerText?: string | undefined;
|
|
2626
|
+
attachments?: {
|
|
2627
|
+
type: string;
|
|
2628
|
+
url: string;
|
|
2629
|
+
previewUrl: string | null;
|
|
2630
|
+
textUrl: null;
|
|
2631
|
+
filename: string;
|
|
2632
|
+
meta: {
|
|
2633
|
+
usage?: string | undefined;
|
|
2634
|
+
focus?: {
|
|
2635
|
+
x: number;
|
|
2636
|
+
y: number;
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
mimetype?: string | undefined;
|
|
2639
|
+
size?: number | undefined;
|
|
2640
|
+
};
|
|
2641
|
+
description?: string | undefined;
|
|
2642
|
+
blurhash?: string | undefined;
|
|
2643
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
2644
|
+
error?: string | undefined;
|
|
2645
|
+
}[] | undefined;
|
|
2646
|
+
customEmojis?: {
|
|
2647
|
+
shortcode: string;
|
|
2648
|
+
url: string;
|
|
2649
|
+
staticUrl: string;
|
|
2650
|
+
visibleInPicker: boolean;
|
|
2651
|
+
category: string;
|
|
2652
|
+
}[] | undefined;
|
|
2653
|
+
language?: string | undefined;
|
|
2654
|
+
tags?: string[] | undefined;
|
|
2655
|
+
categoryPath?: string[] | undefined;
|
|
2656
|
+
url?: string | undefined;
|
|
2036
2657
|
} | undefined;
|
|
2037
2658
|
}, DbPost, DbPost>;
|
|
2038
2659
|
export declare const contextRelation: (depth: number, direction: "ancestors" | "descendents", contextMapping?: Mapping<DbPost>) => RelationWithMapping<DbPost>;
|
|
2039
2660
|
export declare const conversationLeavesMapping: Mapping<{
|
|
2040
|
-
type: "note" | "question" | "event" | "article";
|
|
2041
|
-
visibility: "
|
|
2661
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2662
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2042
2663
|
creatorId: string;
|
|
2043
2664
|
capabilitiesNeeded?: string[] | undefined;
|
|
2044
2665
|
data?: {
|
|
@@ -2233,13 +2854,51 @@ export declare const conversationLeavesMapping: Mapping<{
|
|
|
2233
2854
|
language?: string | undefined;
|
|
2234
2855
|
image?: string | undefined;
|
|
2235
2856
|
title?: string | undefined;
|
|
2857
|
+
} | {
|
|
2858
|
+
type: "resource";
|
|
2859
|
+
title: string;
|
|
2860
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
2861
|
+
content?: string | undefined;
|
|
2862
|
+
sensitive?: boolean | undefined;
|
|
2863
|
+
spoilerText?: string | undefined;
|
|
2864
|
+
attachments?: {
|
|
2865
|
+
type: string;
|
|
2866
|
+
url: string;
|
|
2867
|
+
previewUrl: string | null;
|
|
2868
|
+
textUrl: null;
|
|
2869
|
+
filename: string;
|
|
2870
|
+
meta: {
|
|
2871
|
+
usage?: string | undefined;
|
|
2872
|
+
focus?: {
|
|
2873
|
+
x: number;
|
|
2874
|
+
y: number;
|
|
2875
|
+
} | undefined;
|
|
2876
|
+
mimetype?: string | undefined;
|
|
2877
|
+
size?: number | undefined;
|
|
2878
|
+
};
|
|
2879
|
+
description?: string | undefined;
|
|
2880
|
+
blurhash?: string | undefined;
|
|
2881
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
2882
|
+
error?: string | undefined;
|
|
2883
|
+
}[] | undefined;
|
|
2884
|
+
customEmojis?: {
|
|
2885
|
+
shortcode: string;
|
|
2886
|
+
url: string;
|
|
2887
|
+
staticUrl: string;
|
|
2888
|
+
visibleInPicker: boolean;
|
|
2889
|
+
category: string;
|
|
2890
|
+
}[] | undefined;
|
|
2891
|
+
language?: string | undefined;
|
|
2892
|
+
tags?: string[] | undefined;
|
|
2893
|
+
categoryPath?: string[] | undefined;
|
|
2894
|
+
url?: string | undefined;
|
|
2236
2895
|
} | undefined;
|
|
2237
2896
|
}, DbPost, DbPost>;
|
|
2238
2897
|
export declare const conversationLeavesMappingForProfile: (profile?: {
|
|
2239
2898
|
id: string;
|
|
2240
2899
|
}) => Mapping<{
|
|
2241
|
-
type: "note" | "question" | "event" | "article";
|
|
2242
|
-
visibility: "
|
|
2900
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2901
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2243
2902
|
creatorId: string;
|
|
2244
2903
|
capabilitiesNeeded?: string[] | undefined;
|
|
2245
2904
|
data?: {
|
|
@@ -2434,11 +3093,49 @@ export declare const conversationLeavesMappingForProfile: (profile?: {
|
|
|
2434
3093
|
language?: string | undefined;
|
|
2435
3094
|
image?: string | undefined;
|
|
2436
3095
|
title?: string | undefined;
|
|
3096
|
+
} | {
|
|
3097
|
+
type: "resource";
|
|
3098
|
+
title: string;
|
|
3099
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
3100
|
+
content?: string | undefined;
|
|
3101
|
+
sensitive?: boolean | undefined;
|
|
3102
|
+
spoilerText?: string | undefined;
|
|
3103
|
+
attachments?: {
|
|
3104
|
+
type: string;
|
|
3105
|
+
url: string;
|
|
3106
|
+
previewUrl: string | null;
|
|
3107
|
+
textUrl: null;
|
|
3108
|
+
filename: string;
|
|
3109
|
+
meta: {
|
|
3110
|
+
usage?: string | undefined;
|
|
3111
|
+
focus?: {
|
|
3112
|
+
x: number;
|
|
3113
|
+
y: number;
|
|
3114
|
+
} | undefined;
|
|
3115
|
+
mimetype?: string | undefined;
|
|
3116
|
+
size?: number | undefined;
|
|
3117
|
+
};
|
|
3118
|
+
description?: string | undefined;
|
|
3119
|
+
blurhash?: string | undefined;
|
|
3120
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
3121
|
+
error?: string | undefined;
|
|
3122
|
+
}[] | undefined;
|
|
3123
|
+
customEmojis?: {
|
|
3124
|
+
shortcode: string;
|
|
3125
|
+
url: string;
|
|
3126
|
+
staticUrl: string;
|
|
3127
|
+
visibleInPicker: boolean;
|
|
3128
|
+
category: string;
|
|
3129
|
+
}[] | undefined;
|
|
3130
|
+
language?: string | undefined;
|
|
3131
|
+
tags?: string[] | undefined;
|
|
3132
|
+
categoryPath?: string[] | undefined;
|
|
3133
|
+
url?: string | undefined;
|
|
2437
3134
|
} | undefined;
|
|
2438
3135
|
}, DbPost, DbPost>;
|
|
2439
3136
|
export declare const postIdsMapping: Mapping<{
|
|
2440
|
-
type: "note" | "question" | "event" | "article";
|
|
2441
|
-
visibility: "
|
|
3137
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
3138
|
+
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2442
3139
|
creatorId: string;
|
|
2443
3140
|
capabilitiesNeeded?: string[] | undefined;
|
|
2444
3141
|
data?: {
|
|
@@ -2633,6 +3330,44 @@ export declare const postIdsMapping: Mapping<{
|
|
|
2633
3330
|
language?: string | undefined;
|
|
2634
3331
|
image?: string | undefined;
|
|
2635
3332
|
title?: string | undefined;
|
|
3333
|
+
} | {
|
|
3334
|
+
type: "resource";
|
|
3335
|
+
title: string;
|
|
3336
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
3337
|
+
content?: string | undefined;
|
|
3338
|
+
sensitive?: boolean | undefined;
|
|
3339
|
+
spoilerText?: string | undefined;
|
|
3340
|
+
attachments?: {
|
|
3341
|
+
type: string;
|
|
3342
|
+
url: string;
|
|
3343
|
+
previewUrl: string | null;
|
|
3344
|
+
textUrl: null;
|
|
3345
|
+
filename: string;
|
|
3346
|
+
meta: {
|
|
3347
|
+
usage?: string | undefined;
|
|
3348
|
+
focus?: {
|
|
3349
|
+
x: number;
|
|
3350
|
+
y: number;
|
|
3351
|
+
} | undefined;
|
|
3352
|
+
mimetype?: string | undefined;
|
|
3353
|
+
size?: number | undefined;
|
|
3354
|
+
};
|
|
3355
|
+
description?: string | undefined;
|
|
3356
|
+
blurhash?: string | undefined;
|
|
3357
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
3358
|
+
error?: string | undefined;
|
|
3359
|
+
}[] | undefined;
|
|
3360
|
+
customEmojis?: {
|
|
3361
|
+
shortcode: string;
|
|
3362
|
+
url: string;
|
|
3363
|
+
staticUrl: string;
|
|
3364
|
+
visibleInPicker: boolean;
|
|
3365
|
+
category: string;
|
|
3366
|
+
}[] | undefined;
|
|
3367
|
+
language?: string | undefined;
|
|
3368
|
+
tags?: string[] | undefined;
|
|
3369
|
+
categoryPath?: string[] | undefined;
|
|
3370
|
+
url?: string | undefined;
|
|
2636
3371
|
} | undefined;
|
|
2637
3372
|
}, {
|
|
2638
3373
|
id: string;
|