@openpeepshq/core 0.1.34 → 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 +13 -8
- package/dist/analytics/cache.js +3 -3
- package/dist/analytics/clicks.js +14 -22
- package/dist/analytics/compile.js +1 -2
- 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 +116 -135
- package/dist/analytics/report.d.ts +2 -1
- package/dist/analytics/report.js +2 -3
- package/dist/analytics/settings.js +3 -4
- package/dist/backups/index.js +13 -16
- package/dist/backups/metadata.js +1 -1
- package/dist/config/db.js +2 -4
- package/dist/config/defaults/community.js +1 -0
- package/dist/config/defaults/core.js +13 -8
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +9 -11
- package/dist/db/explorer/query.js +9 -8
- package/dist/db/explorer/sql.js +8 -8
- package/dist/db/helpers.js +15 -5
- package/dist/db/migration/importCollections.js +15 -18
- package/dist/db/migration/shared.js +15 -35
- package/dist/db/pg/client.js +4 -7
- package/dist/db/pg/filters/index.js +1 -1
- package/dist/db/pg/filters/posts.d.ts +2 -0
- package/dist/db/pg/filters/posts.js +2 -0
- package/dist/db/pg/helpers.js +2 -14
- package/dist/db/pg/map/filters.js +8 -8
- 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 +56 -21
- package/dist/db/pg/map/registry.js +87 -50
- package/dist/db/pg/map/relations.js +67 -63
- package/dist/db/pg/map/search.js +15 -37
- package/dist/db/pg/mappers.js +13 -7
- package/dist/db/pg/migrate.js +2 -3
- package/dist/db/pg/queries/activity.js +2 -2
- package/dist/db/pg/queries/derived.js +8 -12
- package/dist/db/pg/schema/documents.js +119 -18
- package/dist/db/pg/schema/edges.js +7 -1
- package/dist/db/pg/schema/index.js +5 -1
- package/dist/db/pg/sql/0016_posts_search_vector_title_tags_path.sql +54 -0
- package/dist/db/pg/sql/meta/_journal.json +8 -1
- package/dist/db/replaceOrigin.js +1 -1
- package/dist/email/queueStats.js +8 -11
- package/dist/email/render.js +7 -4
- package/dist/email/send.js +19 -17
- package/dist/email/smtpTest.js +10 -6
- package/dist/errors/index.js +1 -1
- package/dist/events/once.js +2 -4
- package/dist/federation/activities.js +1 -2
- package/dist/groups/helpers.js +1 -2
- package/dist/groups/mutations.js +1 -1
- package/dist/hashtags/finders.js +2 -2
- package/dist/inviteLinks/mutations.js +2 -3
- package/dist/jams/export.js +5 -7
- package/dist/jams/finders.js +4 -1
- package/dist/jams/health.d.ts +6 -4
- package/dist/jams/health.js +15 -11
- package/dist/jams/helpers.js +6 -2
- package/dist/jams/index.js +2 -2
- package/dist/jams/jobs.js +1 -2
- package/dist/jams/livekit.js +8 -8
- package/dist/jams/recording.js +1 -1
- package/dist/jams/token.js +13 -17
- package/dist/jobs/index.js +7 -6
- package/dist/jobs/jobDetail.js +5 -6
- 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.js +50 -4
- package/dist/media/jobs.js +1 -2
- package/dist/media/openpeeps/index.js +11 -46
- package/dist/media/processing.js +7 -4
- 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 +14 -17
- 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/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 +6 -7
- package/dist/notifications/defaultNotifications/newProfile/index.js +14 -17
- package/dist/notifications/defaultNotifications/pollEnded/index.js +21 -21
- package/dist/notifications/defaultNotifications/pollEnded/recipients.js +2 -3
- 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.js +24 -18
- package/dist/notifications/defaultNotifications/rsvpCanceled/index.js +20 -13
- 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 -7
- package/dist/notifications/mutations.js +4 -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 +2 -3
- package/dist/plugins/install.js +31 -17
- package/dist/plugins/pluginAuth.js +3 -4
- package/dist/plugins/state.js +2 -3
- package/dist/posts/activity.js +1 -2
- package/dist/posts/contextClosure.js +1 -2
- package/dist/posts/conversationQueries.js +2 -4
- package/dist/posts/eventAgenda.js +8 -5
- package/dist/posts/eventOccurrences.js +2 -2
- package/dist/posts/finders.d.ts +42 -2
- package/dist/posts/finders.js +21 -9
- package/dist/posts/helpers/filters.js +2 -3
- package/dist/posts/helpers/index.d.ts +152 -0
- package/dist/posts/helpers/index.js +43 -27
- package/dist/posts/mapping.d.ts +546 -14
- package/dist/posts/mapping.js +60 -18
- package/dist/posts/mutations.d.ts +76 -0
- package/dist/posts/mutations.js +46 -31
- package/dist/posts/pollEnd.js +3 -6
- package/dist/posts/rsvpConfirmationEmail.js +18 -8
- package/dist/posts/threadPreview.js +1 -1
- package/dist/processingStats/queries.js +6 -7
- package/dist/profileSettings/cache.js +1 -2
- package/dist/profiles/activitySummary.js +23 -28
- package/dist/profiles/cache.js +15 -8
- package/dist/profiles/export.js +30 -39
- package/dist/profiles/finders.js +7 -5
- package/dist/profiles/mutations.js +3 -5
- package/dist/redis/connection.js +1 -1
- package/dist/reports/helpers.js +7 -3
- package/dist/roles/mutations.js +20 -21
- package/dist/search/finders.js +15 -3
- package/dist/search/helpers.js +1 -1
- 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 +1 -0
- package/dist/server/index.js +16 -11
- package/dist/server/status.js +6 -7
- package/dist/session/index.js +2 -2
- package/dist/stats/finders.js +13 -4
- package/dist/stats/helpers.js +4 -1
- package/dist/stats/mapping.d.ts +39 -1
- package/dist/stats/mapping.js +9 -2
- 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 -6
package/dist/posts/mapping.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const EMBEDDED_LATEST_REPLIES_LIMIT = 3;
|
|
|
9
9
|
export declare const threadPreviewMappingForProfile: (profile?: {
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Mapping<{
|
|
12
|
-
type: "note" | "question" | "event" | "article";
|
|
12
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
13
13
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
14
14
|
creatorId: string;
|
|
15
15
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -205,6 +205,44 @@ export declare const threadPreviewMappingForProfile: (profile?: {
|
|
|
205
205
|
language?: string | undefined;
|
|
206
206
|
image?: string | undefined;
|
|
207
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;
|
|
208
246
|
} | undefined;
|
|
209
247
|
}, DbPost, DbPost>;
|
|
210
248
|
export declare const repostRelation: RelationWithMapping<DbBasePost>;
|
|
@@ -216,7 +254,7 @@ export declare const repostsOfPostRelationForProfile: (profile?: {
|
|
|
216
254
|
id: string;
|
|
217
255
|
}) => RelationWithMapping<DbPost>;
|
|
218
256
|
export declare const postsWithReplyCountMapping: Mapping<{
|
|
219
|
-
type: "note" | "question" | "event" | "article";
|
|
257
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
220
258
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
221
259
|
creatorId: string;
|
|
222
260
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -412,13 +450,51 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
412
450
|
language?: string | undefined;
|
|
413
451
|
image?: string | undefined;
|
|
414
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;
|
|
415
491
|
} | undefined;
|
|
416
492
|
}, {
|
|
417
493
|
createdAt: string;
|
|
418
494
|
updatedAt: string;
|
|
419
495
|
deletedAt?: string | null | undefined;
|
|
420
496
|
} & {
|
|
421
|
-
type: "note" | "question" | "event" | "article";
|
|
497
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
422
498
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
423
499
|
creatorId: string;
|
|
424
500
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -614,6 +690,44 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
614
690
|
language?: string | undefined;
|
|
615
691
|
image?: string | undefined;
|
|
616
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;
|
|
617
731
|
} | undefined;
|
|
618
732
|
} & {
|
|
619
733
|
id: string;
|
|
@@ -624,7 +738,7 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
624
738
|
updatedAt: string;
|
|
625
739
|
deletedAt?: string | null | undefined;
|
|
626
740
|
} & {
|
|
627
|
-
type: "note" | "question" | "event" | "article";
|
|
741
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
628
742
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
629
743
|
creatorId: string;
|
|
630
744
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -820,6 +934,44 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
820
934
|
language?: string | undefined;
|
|
821
935
|
image?: string | undefined;
|
|
822
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;
|
|
823
975
|
} | undefined;
|
|
824
976
|
} & {
|
|
825
977
|
id: string;
|
|
@@ -827,7 +979,7 @@ export declare const postsWithReplyCountMapping: Mapping<{
|
|
|
827
979
|
replyCount: number;
|
|
828
980
|
}>;
|
|
829
981
|
export declare const postsWithReplyToCountMapping: Mapping<{
|
|
830
|
-
type: "note" | "question" | "event" | "article";
|
|
982
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
831
983
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
832
984
|
creatorId: string;
|
|
833
985
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -1023,13 +1175,51 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1023
1175
|
language?: string | undefined;
|
|
1024
1176
|
image?: string | undefined;
|
|
1025
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;
|
|
1026
1216
|
} | undefined;
|
|
1027
1217
|
}, {
|
|
1028
1218
|
createdAt: string;
|
|
1029
1219
|
updatedAt: string;
|
|
1030
1220
|
deletedAt?: string | null | undefined;
|
|
1031
1221
|
} & {
|
|
1032
|
-
type: "note" | "question" | "event" | "article";
|
|
1222
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1033
1223
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1034
1224
|
creatorId: string;
|
|
1035
1225
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -1225,6 +1415,44 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1225
1415
|
language?: string | undefined;
|
|
1226
1416
|
image?: string | undefined;
|
|
1227
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;
|
|
1228
1456
|
} | undefined;
|
|
1229
1457
|
} & {
|
|
1230
1458
|
id: string;
|
|
@@ -1235,7 +1463,7 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1235
1463
|
updatedAt: string;
|
|
1236
1464
|
deletedAt?: string | null | undefined;
|
|
1237
1465
|
} & {
|
|
1238
|
-
type: "note" | "question" | "event" | "article";
|
|
1466
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1239
1467
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1240
1468
|
creatorId: string;
|
|
1241
1469
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -1431,6 +1659,44 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1431
1659
|
language?: string | undefined;
|
|
1432
1660
|
image?: string | undefined;
|
|
1433
1661
|
title?: string | undefined;
|
|
1662
|
+
} | {
|
|
1663
|
+
type: "resource";
|
|
1664
|
+
title: string;
|
|
1665
|
+
resourceKind: "link" | "file" | "video" | "gallery" | "audio";
|
|
1666
|
+
content?: string | undefined;
|
|
1667
|
+
sensitive?: boolean | undefined;
|
|
1668
|
+
spoilerText?: string | undefined;
|
|
1669
|
+
attachments?: {
|
|
1670
|
+
type: string;
|
|
1671
|
+
url: string;
|
|
1672
|
+
previewUrl: string | null;
|
|
1673
|
+
textUrl: null;
|
|
1674
|
+
filename: string;
|
|
1675
|
+
meta: {
|
|
1676
|
+
usage?: string | undefined;
|
|
1677
|
+
focus?: {
|
|
1678
|
+
x: number;
|
|
1679
|
+
y: number;
|
|
1680
|
+
} | undefined;
|
|
1681
|
+
mimetype?: string | undefined;
|
|
1682
|
+
size?: number | undefined;
|
|
1683
|
+
};
|
|
1684
|
+
description?: string | undefined;
|
|
1685
|
+
blurhash?: string | undefined;
|
|
1686
|
+
status?: "ready" | "failed" | "processing" | undefined;
|
|
1687
|
+
error?: string | undefined;
|
|
1688
|
+
}[] | undefined;
|
|
1689
|
+
customEmojis?: {
|
|
1690
|
+
shortcode: string;
|
|
1691
|
+
url: string;
|
|
1692
|
+
staticUrl: string;
|
|
1693
|
+
visibleInPicker: boolean;
|
|
1694
|
+
category: string;
|
|
1695
|
+
}[] | undefined;
|
|
1696
|
+
language?: string | undefined;
|
|
1697
|
+
tags?: string[] | undefined;
|
|
1698
|
+
categoryPath?: string[] | undefined;
|
|
1699
|
+
url?: string | undefined;
|
|
1434
1700
|
} | undefined;
|
|
1435
1701
|
} & {
|
|
1436
1702
|
id: string;
|
|
@@ -1438,7 +1704,7 @@ export declare const postsWithReplyToCountMapping: Mapping<{
|
|
|
1438
1704
|
replyToCount: number;
|
|
1439
1705
|
}>;
|
|
1440
1706
|
export declare const postsMapping: Mapping<{
|
|
1441
|
-
type: "note" | "question" | "event" | "article";
|
|
1707
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1442
1708
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1443
1709
|
creatorId: string;
|
|
1444
1710
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -1634,11 +1900,49 @@ export declare const postsMapping: Mapping<{
|
|
|
1634
1900
|
language?: string | undefined;
|
|
1635
1901
|
image?: string | undefined;
|
|
1636
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;
|
|
1637
1941
|
} | undefined;
|
|
1638
1942
|
}, DbPost, DbPost>;
|
|
1639
1943
|
/** Auth / mark-seen: post graph without nested replyTo/repost hydrate. */
|
|
1640
1944
|
export declare const postsAuthMapping: Mapping<{
|
|
1641
|
-
type: "note" | "question" | "event" | "article";
|
|
1945
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1642
1946
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1643
1947
|
creatorId: string;
|
|
1644
1948
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -1834,12 +2138,50 @@ export declare const postsAuthMapping: Mapping<{
|
|
|
1834
2138
|
language?: string | undefined;
|
|
1835
2139
|
image?: string | undefined;
|
|
1836
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;
|
|
1837
2179
|
} | undefined;
|
|
1838
2180
|
}, DbPost, DbPost>;
|
|
1839
2181
|
export declare const postsMappingForProfile: (profile?: {
|
|
1840
2182
|
id: string;
|
|
1841
2183
|
}) => Mapping<{
|
|
1842
|
-
type: "note" | "question" | "event" | "article";
|
|
2184
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
1843
2185
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
1844
2186
|
creatorId: string;
|
|
1845
2187
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -2035,12 +2377,50 @@ export declare const postsMappingForProfile: (profile?: {
|
|
|
2035
2377
|
language?: string | undefined;
|
|
2036
2378
|
image?: string | undefined;
|
|
2037
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;
|
|
2038
2418
|
} | undefined;
|
|
2039
2419
|
}, DbPost, DbPost>;
|
|
2040
2420
|
export declare const postContextMappingForProfile: (profile?: {
|
|
2041
2421
|
id: string;
|
|
2042
2422
|
}) => Mapping<{
|
|
2043
|
-
type: "note" | "question" | "event" | "article";
|
|
2423
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2044
2424
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2045
2425
|
creatorId: string;
|
|
2046
2426
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -2236,11 +2616,49 @@ export declare const postContextMappingForProfile: (profile?: {
|
|
|
2236
2616
|
language?: string | undefined;
|
|
2237
2617
|
image?: string | undefined;
|
|
2238
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;
|
|
2239
2657
|
} | undefined;
|
|
2240
2658
|
}, DbPost, DbPost>;
|
|
2241
2659
|
export declare const contextRelation: (depth: number, direction: "ancestors" | "descendents", contextMapping?: Mapping<DbPost>) => RelationWithMapping<DbPost>;
|
|
2242
2660
|
export declare const conversationLeavesMapping: Mapping<{
|
|
2243
|
-
type: "note" | "question" | "event" | "article";
|
|
2661
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2244
2662
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2245
2663
|
creatorId: string;
|
|
2246
2664
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -2436,12 +2854,50 @@ export declare const conversationLeavesMapping: Mapping<{
|
|
|
2436
2854
|
language?: string | undefined;
|
|
2437
2855
|
image?: string | undefined;
|
|
2438
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;
|
|
2439
2895
|
} | undefined;
|
|
2440
2896
|
}, DbPost, DbPost>;
|
|
2441
2897
|
export declare const conversationLeavesMappingForProfile: (profile?: {
|
|
2442
2898
|
id: string;
|
|
2443
2899
|
}) => Mapping<{
|
|
2444
|
-
type: "note" | "question" | "event" | "article";
|
|
2900
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2445
2901
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2446
2902
|
creatorId: string;
|
|
2447
2903
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -2637,10 +3093,48 @@ export declare const conversationLeavesMappingForProfile: (profile?: {
|
|
|
2637
3093
|
language?: string | undefined;
|
|
2638
3094
|
image?: string | undefined;
|
|
2639
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;
|
|
2640
3134
|
} | undefined;
|
|
2641
3135
|
}, DbPost, DbPost>;
|
|
2642
3136
|
export declare const postIdsMapping: Mapping<{
|
|
2643
|
-
type: "note" | "question" | "event" | "article";
|
|
3137
|
+
type: "resource" | "note" | "question" | "event" | "article";
|
|
2644
3138
|
visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
|
|
2645
3139
|
creatorId: string;
|
|
2646
3140
|
capabilitiesNeeded?: string[] | undefined;
|
|
@@ -2836,6 +3330,44 @@ export declare const postIdsMapping: Mapping<{
|
|
|
2836
3330
|
language?: string | undefined;
|
|
2837
3331
|
image?: string | undefined;
|
|
2838
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;
|
|
2839
3371
|
} | undefined;
|
|
2840
3372
|
}, {
|
|
2841
3373
|
id: string;
|