@openpeepshq/core 0.1.32 → 0.1.34

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.
Files changed (261) hide show
  1. package/dist/accessTokens/helpers.d.ts +2 -2
  2. package/dist/accessTokens/tokens.js +14 -7
  3. package/dist/accounts/mutations.d.ts +2 -2
  4. package/dist/accounts/mutations.js +33 -35
  5. package/dist/analytics/cache.js +12 -7
  6. package/dist/analytics/compile.js +16 -10
  7. package/dist/analytics/pdfReport.d.ts +1 -0
  8. package/dist/analytics/pdfReport.js +5 -4
  9. package/dist/analytics/privacy.d.ts +18 -0
  10. package/dist/analytics/privacy.js +10 -0
  11. package/dist/analytics/read.js +75 -19
  12. package/dist/analytics/report.d.ts +21 -1
  13. package/dist/analytics/report.js +9 -2
  14. package/dist/backups/index.js +78 -15
  15. package/dist/backups/metadata.d.ts +8 -2
  16. package/dist/backups/metadata.js +6 -2
  17. package/dist/config/defaults/capabilities.js +13 -2
  18. package/dist/config/defaults/community.js +7 -9
  19. package/dist/config/defaults/core.d.ts +1 -1
  20. package/dist/config/defaults/core.js +3 -0
  21. package/dist/config/defaults/db.d.ts +0 -2
  22. package/dist/config/defaults/db.js +0 -2
  23. package/dist/config/index.d.ts +25 -3
  24. package/dist/config/index.js +7 -1
  25. package/dist/db/helpers.d.ts +7 -28
  26. package/dist/db/helpers.js +30 -152
  27. package/dist/db/index.d.ts +3 -1
  28. package/dist/db/index.js +5 -0
  29. package/dist/db/init.js +2 -2
  30. package/dist/db/migration/importCollections.d.ts +15 -10
  31. package/dist/db/migration/importCollections.js +121 -155
  32. package/dist/db/migration/shared.d.ts +2 -37
  33. package/dist/db/migration/shared.js +2 -59
  34. package/dist/db/pg/client.js +4 -0
  35. package/dist/db/pg/collections.d.ts +2 -2
  36. package/dist/db/pg/collections.js +2 -2
  37. package/dist/db/pg/filters/edges.d.ts +1 -1
  38. package/dist/db/pg/filters/edges.js +1 -1
  39. package/dist/db/pg/filters/posts.d.ts +11 -0
  40. package/dist/db/pg/filters/posts.js +37 -3
  41. package/dist/db/pg/filters/profiles.d.ts +1 -0
  42. package/dist/db/pg/filters/profiles.js +2 -1
  43. package/dist/db/pg/map/filters.js +37 -2
  44. package/dist/db/pg/map/mutations.js +13 -8
  45. package/dist/db/pg/map/registry.d.ts +5 -0
  46. package/dist/db/pg/map/registry.js +64 -24
  47. package/dist/db/pg/map/relations.d.ts +1 -1
  48. package/dist/db/pg/map/relations.js +98 -46
  49. package/dist/db/pg/migrate.d.ts +22 -0
  50. package/dist/db/pg/migrate.js +88 -2
  51. package/dist/db/pg/queries/activity.js +3 -3
  52. package/dist/db/pg/queries/sorts.d.ts +1 -0
  53. package/dist/db/pg/queries/sorts.js +4 -0
  54. package/dist/db/pg/schema/documents.d.ts +422 -41
  55. package/dist/db/pg/schema/documents.js +43 -9
  56. package/dist/db/pg/schema/edges.d.ts +117 -7
  57. package/dist/db/pg/schema/edges.js +4 -2
  58. package/dist/db/pg/schema/index.d.ts +505 -15
  59. package/dist/db/pg/sql/0007_shallow_oracle.sql +3 -0
  60. package/dist/db/pg/sql/0008_group_owner_roles.sql +31 -0
  61. package/dist/db/pg/sql/0009_event_occurrences.sql +26 -0
  62. package/dist/db/pg/sql/0010_user_group_membership_roles.sql +16 -0
  63. package/dist/db/pg/sql/0011_drop_data_migrations.sql +1 -0
  64. package/dist/db/pg/sql/0012_posts_last_activity_at.sql +5 -0
  65. package/dist/db/pg/sql/0013_add_blocks_edge.sql +12 -0
  66. package/dist/db/pg/sql/0014_federation_datamodel.sql +59 -0
  67. package/dist/db/pg/sql/0015_profile_hashtags.sql +12 -0
  68. package/dist/db/pg/sql/meta/{0006_snapshot.json → 0015_snapshot.json} +393 -39
  69. package/dist/db/pg/sql/meta/_journal.json +64 -1
  70. package/dist/db/replaceOrigin.js +6 -0
  71. package/dist/db/types.d.ts +0 -4
  72. package/dist/email/render.js +11 -3
  73. package/dist/events/index.d.ts +6 -1
  74. package/dist/events/index.js +55 -33
  75. package/dist/federation/activities.d.ts +17 -0
  76. package/dist/federation/activities.js +26 -0
  77. package/dist/federation/identity.d.ts +16 -0
  78. package/dist/federation/identity.js +52 -0
  79. package/dist/federation/index.d.ts +4 -0
  80. package/dist/federation/index.js +3 -0
  81. package/dist/federation/profiles.d.ts +3 -0
  82. package/dist/federation/profiles.js +14 -0
  83. package/dist/groups/finders.d.ts +3 -2
  84. package/dist/groups/helpers.d.ts +24 -6
  85. package/dist/groups/mapping.d.ts +6 -4
  86. package/dist/groups/mapping.js +2 -2
  87. package/dist/groups/mutations.js +1 -1
  88. package/dist/hashtags/finders.d.ts +6 -3
  89. package/dist/hashtags/finders.js +2 -0
  90. package/dist/hashtags/helpers.d.ts +8 -0
  91. package/dist/hashtags/helpers.js +4 -0
  92. package/dist/hashtags/index.d.ts +2 -0
  93. package/dist/hashtags/index.js +2 -0
  94. package/dist/hashtags/mutations.d.ts +3 -0
  95. package/dist/hashtags/mutations.js +13 -1
  96. package/dist/i18n/index.d.ts +1 -1
  97. package/dist/i18n/index.js +3 -1
  98. package/dist/i18n/pluginLocales.d.ts +6 -0
  99. package/dist/i18n/pluginLocales.js +15 -0
  100. package/dist/inviteLinks/helpers.d.ts +4 -4
  101. package/dist/jams/cache.d.ts +1 -1
  102. package/dist/jams/cache.js +2 -1
  103. package/dist/jams/export.d.ts +19 -0
  104. package/dist/jams/export.js +60 -0
  105. package/dist/jams/finders.d.ts +2 -1
  106. package/dist/jams/finders.js +18 -7
  107. package/dist/jams/health.d.ts +8 -0
  108. package/dist/jams/health.js +46 -0
  109. package/dist/jams/helpers.d.ts +6 -2
  110. package/dist/jams/index.d.ts +6 -3
  111. package/dist/jams/index.js +41 -27
  112. package/dist/jams/jobs.js +1 -1
  113. package/dist/jams/livekit.d.ts +93 -10
  114. package/dist/jams/livekit.js +151 -52
  115. package/dist/jams/mapping.d.ts +17 -7
  116. package/dist/jams/mutations.d.ts +3 -1
  117. package/dist/jams/recording.d.ts +10 -0
  118. package/dist/jams/recording.js +32 -0
  119. package/dist/jams/rtmp.d.ts +5 -0
  120. package/dist/jams/rtmp.js +8 -0
  121. package/dist/jams/token.d.ts +15 -3
  122. package/dist/jams/token.js +30 -16
  123. package/dist/jams/waitingRoom.d.ts +6 -6
  124. package/dist/jams/waitingRoom.js +24 -23
  125. package/dist/jobs/index.d.ts +1 -0
  126. package/dist/jobs/index.js +6 -1
  127. package/dist/jobs/jobDetail.js +1 -6
  128. package/dist/media/index.d.ts +1 -1
  129. package/dist/media/index.js +23 -8
  130. package/dist/media/processing.js +18 -7
  131. package/dist/notifications/defaultNotifications/follow/index.js +2 -2
  132. package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +3 -1
  133. package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +3 -1
  134. package/dist/notifications/defaultNotifications/index.js +4 -0
  135. package/dist/notifications/defaultNotifications/newGroupPost/index.js +12 -6
  136. package/dist/notifications/defaultNotifications/pollEnded/index.d.ts +19 -0
  137. package/dist/notifications/defaultNotifications/pollEnded/index.js +39 -0
  138. package/dist/notifications/defaultNotifications/pollEnded/recipients.d.ts +3 -0
  139. package/dist/notifications/defaultNotifications/pollEnded/recipients.js +18 -0
  140. package/dist/notifications/defaultNotifications/rsvp/index.d.ts +6 -1
  141. package/dist/notifications/defaultNotifications/rsvp/index.js +7 -0
  142. package/dist/notifications/defaultNotifications/rsvpCanceled/index.d.ts +24 -0
  143. package/dist/notifications/defaultNotifications/rsvpCanceled/index.js +75 -0
  144. package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.d.ts +4 -0
  145. package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.js +11 -0
  146. package/dist/notifications/helpers.js +6 -2
  147. package/dist/notifications/jobs.js +3 -1
  148. package/dist/notifications/mutations.js +4 -0
  149. package/dist/notifications/push.js +11 -4
  150. package/dist/plugins/helpers.d.ts +1 -0
  151. package/dist/plugins/helpers.js +1 -8
  152. package/dist/plugins/index.d.ts +5 -0
  153. package/dist/plugins/index.js +78 -5
  154. package/dist/plugins/install.d.ts +39 -0
  155. package/dist/plugins/install.js +455 -0
  156. package/dist/plugins/pluginAuth.d.ts +1 -1
  157. package/dist/plugins/pluginAuth.js +10 -6
  158. package/dist/plugins/state.d.ts +4 -0
  159. package/dist/plugins/state.js +29 -0
  160. package/dist/posts/activity.d.ts +9 -0
  161. package/dist/posts/activity.js +35 -0
  162. package/dist/posts/contextClosure.d.ts +1 -9
  163. package/dist/posts/contextClosure.js +15 -44
  164. package/dist/posts/conversationQueries.d.ts +7 -0
  165. package/dist/posts/conversationQueries.js +76 -2
  166. package/dist/posts/eventAgenda.d.ts +166 -0
  167. package/dist/posts/eventAgenda.js +126 -0
  168. package/dist/posts/eventOccurrenceJobs.d.ts +4 -0
  169. package/dist/posts/eventOccurrenceJobs.js +28 -0
  170. package/dist/posts/eventOccurrences.d.ts +10 -0
  171. package/dist/posts/eventOccurrences.js +61 -0
  172. package/dist/posts/finders.d.ts +47 -16
  173. package/dist/posts/finders.js +93 -62
  174. package/dist/posts/helpers/filters.js +14 -9
  175. package/dist/posts/helpers/index.d.ts +129 -30
  176. package/dist/posts/helpers/index.js +66 -33
  177. package/dist/posts/index.d.ts +7 -1
  178. package/dist/posts/index.js +7 -1
  179. package/dist/posts/mapping.d.ts +491 -13
  180. package/dist/posts/mapping.js +45 -10
  181. package/dist/posts/mutations.d.ts +441 -4
  182. package/dist/posts/mutations.js +177 -43
  183. package/dist/posts/pollEnd.d.ts +3 -0
  184. package/dist/posts/pollEnd.js +7 -0
  185. package/dist/posts/pollEndJobs.d.ts +8 -0
  186. package/dist/posts/pollEndJobs.js +49 -0
  187. package/dist/posts/replyClosure.d.ts +10 -0
  188. package/dist/posts/replyClosure.js +43 -0
  189. package/dist/posts/rsvpConfirmationEmail.js +14 -15
  190. package/dist/posts/threadPreview.d.ts +8 -0
  191. package/dist/posts/threadPreview.js +44 -0
  192. package/dist/posts/unseenCounts.d.ts +2 -0
  193. package/dist/posts/unseenCounts.js +28 -8
  194. package/dist/profileSettings/cache.js +22 -5
  195. package/dist/profileSettings/mapping.d.ts +2 -0
  196. package/dist/profiles/activityQueries.d.ts +5 -0
  197. package/dist/profiles/activityQueries.js +85 -0
  198. package/dist/profiles/activitySummary.d.ts +3 -0
  199. package/dist/profiles/activitySummary.js +87 -0
  200. package/dist/profiles/blocks.d.ts +12 -0
  201. package/dist/profiles/blocks.js +73 -0
  202. package/dist/profiles/cache.d.ts +4 -1
  203. package/dist/profiles/cache.js +28 -7
  204. package/dist/profiles/finders.d.ts +2 -1
  205. package/dist/profiles/finders.js +8 -3
  206. package/dist/profiles/helpers.d.ts +7 -5
  207. package/dist/profiles/index.d.ts +3 -1
  208. package/dist/profiles/index.js +3 -1
  209. package/dist/profiles/mapping.d.ts +10 -5
  210. package/dist/profiles/mapping.js +13 -1
  211. package/dist/profiles/mutations.d.ts +8 -4
  212. package/dist/profiles/mutations.js +42 -15
  213. package/dist/pushSubscriptions/helpers.d.ts +2 -2
  214. package/dist/pushSubscriptions/mutations.js +13 -1
  215. package/dist/redis/connection.d.ts +2 -0
  216. package/dist/redis/connection.js +25 -6
  217. package/dist/reports/helpers.d.ts +6 -6
  218. package/dist/roles/index.d.ts +1 -1
  219. package/dist/roles/index.js +1 -1
  220. package/dist/roles/mapping.d.ts +1 -0
  221. package/dist/roles/mutations.js +86 -3
  222. package/dist/search/mapping.d.ts +1 -1
  223. package/dist/search/mapping.js +6 -2
  224. package/dist/server/index.d.ts +19 -1
  225. package/dist/server/index.js +37 -18
  226. package/dist/server/stablePublicServerInfo.d.ts +17 -0
  227. package/dist/server/stablePublicServerInfo.js +37 -0
  228. package/dist/server/status.d.ts +25 -0
  229. package/dist/server/status.js +98 -0
  230. package/dist/stats/finders.d.ts +1 -16131
  231. package/dist/stats/finders.js +9 -5
  232. package/dist/stats/mapping.d.ts +21 -1
  233. package/dist/stats/mapping.js +0 -3
  234. package/package.json +6 -12
  235. package/dist/db/arango.d.ts +0 -2
  236. package/dist/db/arango.js +0 -110
  237. package/dist/db/migration/autoMigrate.d.ts +0 -2
  238. package/dist/db/migration/autoMigrate.js +0 -111
  239. package/dist/db/migration/cli.d.ts +0 -1
  240. package/dist/db/migration/cli.js +0 -56
  241. package/dist/db/migration/detect.d.ts +0 -6
  242. package/dist/db/migration/detect.js +0 -87
  243. package/dist/db/migration/exportArango.d.ts +0 -4
  244. package/dist/db/migration/exportArango.js +0 -80
  245. package/dist/db/migration/importPostgres.d.ts +0 -3
  246. package/dist/db/migration/importPostgres.js +0 -18
  247. package/dist/db/migration/transform.d.ts +0 -18
  248. package/dist/db/migration/transform.js +0 -209
  249. package/dist/db/migration/validate.d.ts +0 -18
  250. package/dist/db/migration/validate.js +0 -69
  251. package/dist/db/pg/sql/meta/0000_snapshot.json +0 -3380
  252. package/dist/db/pg/sql/meta/0004_snapshot.json +0 -4114
  253. package/dist/db/pg/sql/meta/0005_snapshot.json +0 -4179
  254. package/dist/mastodon/index.d.ts +0 -4
  255. package/dist/mastodon/index.js +0 -51
  256. package/dist/mastodon/types.d.ts +0 -7579
  257. package/dist/mastodon/types.js +0 -523
  258. package/dist/mastodon/typescript.d.ts +0 -1578
  259. package/dist/mastodon/typescript.js +0 -1
  260. package/dist/roles/defaults.d.ts +0 -2
  261. package/dist/roles/defaults.js +0 -94
@@ -2,6 +2,211 @@ import { Mapping, Relation, RelationWithMapping } from '../db/pg/map';
2
2
  import { EntryData, Profile, DbPost, DbBasePost } from '@openpeepshq/common/types';
3
3
  export declare const entriesRelation: Relation<Profile, EntryData>;
4
4
  export declare const groupRelation: Relation;
5
+ /** Cap for embedded who-reposted lists on feed/detail posts. */
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: "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
+ } | undefined;
209
+ }, DbPost, DbPost>;
5
210
  export declare const repostRelation: RelationWithMapping<DbBasePost>;
6
211
  export declare const repostRelationForProfile: (profile?: {
7
212
  id: string;
@@ -12,7 +217,7 @@ export declare const repostsOfPostRelationForProfile: (profile?: {
12
217
  }) => RelationWithMapping<DbPost>;
13
218
  export declare const postsWithReplyCountMapping: Mapping<{
14
219
  type: "note" | "question" | "event" | "article";
15
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
220
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
16
221
  creatorId: string;
17
222
  capabilitiesNeeded?: string[] | undefined;
18
223
  data?: {
@@ -151,6 +356,27 @@ export declare const postsWithReplyCountMapping: Mapping<{
151
356
  } | undefined;
152
357
  } | undefined;
153
358
  url?: string | undefined;
359
+ recurrence?: {
360
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
361
+ interval?: number | undefined;
362
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
363
+ until?: string | undefined;
364
+ count?: number | undefined;
365
+ } | undefined;
366
+ exceptions?: {
367
+ recurrenceId: string;
368
+ cancelled?: boolean | undefined;
369
+ start?: string | undefined;
370
+ end?: string | undefined;
371
+ physicalLocation?: {
372
+ text: string;
373
+ coordinates?: {
374
+ lat: number;
375
+ lng: number;
376
+ alt?: number | undefined;
377
+ } | undefined;
378
+ } | undefined;
379
+ }[] | undefined;
154
380
  } | {
155
381
  type: "article";
156
382
  content?: string | undefined;
@@ -193,7 +419,7 @@ export declare const postsWithReplyCountMapping: Mapping<{
193
419
  deletedAt?: string | null | undefined;
194
420
  } & {
195
421
  type: "note" | "question" | "event" | "article";
196
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
422
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
197
423
  creatorId: string;
198
424
  capabilitiesNeeded?: string[] | undefined;
199
425
  data?: {
@@ -332,6 +558,27 @@ export declare const postsWithReplyCountMapping: Mapping<{
332
558
  } | undefined;
333
559
  } | undefined;
334
560
  url?: string | undefined;
561
+ recurrence?: {
562
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
563
+ interval?: number | undefined;
564
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
565
+ until?: string | undefined;
566
+ count?: number | undefined;
567
+ } | undefined;
568
+ exceptions?: {
569
+ recurrenceId: string;
570
+ cancelled?: boolean | undefined;
571
+ start?: string | undefined;
572
+ end?: string | undefined;
573
+ physicalLocation?: {
574
+ text: string;
575
+ coordinates?: {
576
+ lat: number;
577
+ lng: number;
578
+ alt?: number | undefined;
579
+ } | undefined;
580
+ } | undefined;
581
+ }[] | undefined;
335
582
  } | {
336
583
  type: "article";
337
584
  content?: string | undefined;
@@ -378,7 +625,7 @@ export declare const postsWithReplyCountMapping: Mapping<{
378
625
  deletedAt?: string | null | undefined;
379
626
  } & {
380
627
  type: "note" | "question" | "event" | "article";
381
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
628
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
382
629
  creatorId: string;
383
630
  capabilitiesNeeded?: string[] | undefined;
384
631
  data?: {
@@ -517,6 +764,27 @@ export declare const postsWithReplyCountMapping: Mapping<{
517
764
  } | undefined;
518
765
  } | undefined;
519
766
  url?: string | undefined;
767
+ recurrence?: {
768
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
769
+ interval?: number | undefined;
770
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
771
+ until?: string | undefined;
772
+ count?: number | undefined;
773
+ } | undefined;
774
+ exceptions?: {
775
+ recurrenceId: string;
776
+ cancelled?: boolean | undefined;
777
+ start?: string | undefined;
778
+ end?: string | undefined;
779
+ physicalLocation?: {
780
+ text: string;
781
+ coordinates?: {
782
+ lat: number;
783
+ lng: number;
784
+ alt?: number | undefined;
785
+ } | undefined;
786
+ } | undefined;
787
+ }[] | undefined;
520
788
  } | {
521
789
  type: "article";
522
790
  content?: string | undefined;
@@ -560,7 +828,7 @@ export declare const postsWithReplyCountMapping: Mapping<{
560
828
  }>;
561
829
  export declare const postsWithReplyToCountMapping: Mapping<{
562
830
  type: "note" | "question" | "event" | "article";
563
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
831
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
564
832
  creatorId: string;
565
833
  capabilitiesNeeded?: string[] | undefined;
566
834
  data?: {
@@ -699,6 +967,27 @@ export declare const postsWithReplyToCountMapping: Mapping<{
699
967
  } | undefined;
700
968
  } | undefined;
701
969
  url?: string | undefined;
970
+ recurrence?: {
971
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
972
+ interval?: number | undefined;
973
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
974
+ until?: string | undefined;
975
+ count?: number | undefined;
976
+ } | undefined;
977
+ exceptions?: {
978
+ recurrenceId: string;
979
+ cancelled?: boolean | undefined;
980
+ start?: string | undefined;
981
+ end?: string | undefined;
982
+ physicalLocation?: {
983
+ text: string;
984
+ coordinates?: {
985
+ lat: number;
986
+ lng: number;
987
+ alt?: number | undefined;
988
+ } | undefined;
989
+ } | undefined;
990
+ }[] | undefined;
702
991
  } | {
703
992
  type: "article";
704
993
  content?: string | undefined;
@@ -741,7 +1030,7 @@ export declare const postsWithReplyToCountMapping: Mapping<{
741
1030
  deletedAt?: string | null | undefined;
742
1031
  } & {
743
1032
  type: "note" | "question" | "event" | "article";
744
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
1033
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
745
1034
  creatorId: string;
746
1035
  capabilitiesNeeded?: string[] | undefined;
747
1036
  data?: {
@@ -880,6 +1169,27 @@ export declare const postsWithReplyToCountMapping: Mapping<{
880
1169
  } | undefined;
881
1170
  } | undefined;
882
1171
  url?: string | undefined;
1172
+ recurrence?: {
1173
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
1174
+ interval?: number | undefined;
1175
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
1176
+ until?: string | undefined;
1177
+ count?: number | undefined;
1178
+ } | undefined;
1179
+ exceptions?: {
1180
+ recurrenceId: string;
1181
+ cancelled?: boolean | undefined;
1182
+ start?: string | undefined;
1183
+ end?: string | undefined;
1184
+ physicalLocation?: {
1185
+ text: string;
1186
+ coordinates?: {
1187
+ lat: number;
1188
+ lng: number;
1189
+ alt?: number | undefined;
1190
+ } | undefined;
1191
+ } | undefined;
1192
+ }[] | undefined;
883
1193
  } | {
884
1194
  type: "article";
885
1195
  content?: string | undefined;
@@ -926,7 +1236,7 @@ export declare const postsWithReplyToCountMapping: Mapping<{
926
1236
  deletedAt?: string | null | undefined;
927
1237
  } & {
928
1238
  type: "note" | "question" | "event" | "article";
929
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
1239
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
930
1240
  creatorId: string;
931
1241
  capabilitiesNeeded?: string[] | undefined;
932
1242
  data?: {
@@ -1065,6 +1375,27 @@ export declare const postsWithReplyToCountMapping: Mapping<{
1065
1375
  } | undefined;
1066
1376
  } | undefined;
1067
1377
  url?: string | undefined;
1378
+ recurrence?: {
1379
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
1380
+ interval?: number | undefined;
1381
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
1382
+ until?: string | undefined;
1383
+ count?: number | undefined;
1384
+ } | undefined;
1385
+ exceptions?: {
1386
+ recurrenceId: string;
1387
+ cancelled?: boolean | undefined;
1388
+ start?: string | undefined;
1389
+ end?: string | undefined;
1390
+ physicalLocation?: {
1391
+ text: string;
1392
+ coordinates?: {
1393
+ lat: number;
1394
+ lng: number;
1395
+ alt?: number | undefined;
1396
+ } | undefined;
1397
+ } | undefined;
1398
+ }[] | undefined;
1068
1399
  } | {
1069
1400
  type: "article";
1070
1401
  content?: string | undefined;
@@ -1108,7 +1439,7 @@ export declare const postsWithReplyToCountMapping: Mapping<{
1108
1439
  }>;
1109
1440
  export declare const postsMapping: Mapping<{
1110
1441
  type: "note" | "question" | "event" | "article";
1111
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
1442
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
1112
1443
  creatorId: string;
1113
1444
  capabilitiesNeeded?: string[] | undefined;
1114
1445
  data?: {
@@ -1247,6 +1578,27 @@ export declare const postsMapping: Mapping<{
1247
1578
  } | undefined;
1248
1579
  } | undefined;
1249
1580
  url?: string | undefined;
1581
+ recurrence?: {
1582
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
1583
+ interval?: number | undefined;
1584
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
1585
+ until?: string | undefined;
1586
+ count?: number | undefined;
1587
+ } | undefined;
1588
+ exceptions?: {
1589
+ recurrenceId: string;
1590
+ cancelled?: boolean | undefined;
1591
+ start?: string | undefined;
1592
+ end?: string | undefined;
1593
+ physicalLocation?: {
1594
+ text: string;
1595
+ coordinates?: {
1596
+ lat: number;
1597
+ lng: number;
1598
+ alt?: number | undefined;
1599
+ } | undefined;
1600
+ } | undefined;
1601
+ }[] | undefined;
1250
1602
  } | {
1251
1603
  type: "article";
1252
1604
  content?: string | undefined;
@@ -1287,7 +1639,7 @@ export declare const postsMapping: Mapping<{
1287
1639
  /** Auth / mark-seen: post graph without nested replyTo/repost hydrate. */
1288
1640
  export declare const postsAuthMapping: Mapping<{
1289
1641
  type: "note" | "question" | "event" | "article";
1290
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
1642
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
1291
1643
  creatorId: string;
1292
1644
  capabilitiesNeeded?: string[] | undefined;
1293
1645
  data?: {
@@ -1426,6 +1778,27 @@ export declare const postsAuthMapping: Mapping<{
1426
1778
  } | undefined;
1427
1779
  } | undefined;
1428
1780
  url?: string | undefined;
1781
+ recurrence?: {
1782
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
1783
+ interval?: number | undefined;
1784
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
1785
+ until?: string | undefined;
1786
+ count?: number | undefined;
1787
+ } | undefined;
1788
+ exceptions?: {
1789
+ recurrenceId: string;
1790
+ cancelled?: boolean | undefined;
1791
+ start?: string | undefined;
1792
+ end?: string | undefined;
1793
+ physicalLocation?: {
1794
+ text: string;
1795
+ coordinates?: {
1796
+ lat: number;
1797
+ lng: number;
1798
+ alt?: number | undefined;
1799
+ } | undefined;
1800
+ } | undefined;
1801
+ }[] | undefined;
1429
1802
  } | {
1430
1803
  type: "article";
1431
1804
  content?: string | undefined;
@@ -1467,7 +1840,7 @@ export declare const postsMappingForProfile: (profile?: {
1467
1840
  id: string;
1468
1841
  }) => Mapping<{
1469
1842
  type: "note" | "question" | "event" | "article";
1470
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
1843
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
1471
1844
  creatorId: string;
1472
1845
  capabilitiesNeeded?: string[] | undefined;
1473
1846
  data?: {
@@ -1606,6 +1979,27 @@ export declare const postsMappingForProfile: (profile?: {
1606
1979
  } | undefined;
1607
1980
  } | undefined;
1608
1981
  url?: string | undefined;
1982
+ recurrence?: {
1983
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
1984
+ interval?: number | undefined;
1985
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
1986
+ until?: string | undefined;
1987
+ count?: number | undefined;
1988
+ } | undefined;
1989
+ exceptions?: {
1990
+ recurrenceId: string;
1991
+ cancelled?: boolean | undefined;
1992
+ start?: string | undefined;
1993
+ end?: string | undefined;
1994
+ physicalLocation?: {
1995
+ text: string;
1996
+ coordinates?: {
1997
+ lat: number;
1998
+ lng: number;
1999
+ alt?: number | undefined;
2000
+ } | undefined;
2001
+ } | undefined;
2002
+ }[] | undefined;
1609
2003
  } | {
1610
2004
  type: "article";
1611
2005
  content?: string | undefined;
@@ -1647,7 +2041,7 @@ export declare const postContextMappingForProfile: (profile?: {
1647
2041
  id: string;
1648
2042
  }) => Mapping<{
1649
2043
  type: "note" | "question" | "event" | "article";
1650
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
2044
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
1651
2045
  creatorId: string;
1652
2046
  capabilitiesNeeded?: string[] | undefined;
1653
2047
  data?: {
@@ -1786,6 +2180,27 @@ export declare const postContextMappingForProfile: (profile?: {
1786
2180
  } | undefined;
1787
2181
  } | undefined;
1788
2182
  url?: string | undefined;
2183
+ recurrence?: {
2184
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
2185
+ interval?: number | undefined;
2186
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
2187
+ until?: string | undefined;
2188
+ count?: number | undefined;
2189
+ } | undefined;
2190
+ exceptions?: {
2191
+ recurrenceId: string;
2192
+ cancelled?: boolean | undefined;
2193
+ start?: string | undefined;
2194
+ end?: string | undefined;
2195
+ physicalLocation?: {
2196
+ text: string;
2197
+ coordinates?: {
2198
+ lat: number;
2199
+ lng: number;
2200
+ alt?: number | undefined;
2201
+ } | undefined;
2202
+ } | undefined;
2203
+ }[] | undefined;
1789
2204
  } | {
1790
2205
  type: "article";
1791
2206
  content?: string | undefined;
@@ -1826,7 +2241,7 @@ export declare const postContextMappingForProfile: (profile?: {
1826
2241
  export declare const contextRelation: (depth: number, direction: "ancestors" | "descendents", contextMapping?: Mapping<DbPost>) => RelationWithMapping<DbPost>;
1827
2242
  export declare const conversationLeavesMapping: Mapping<{
1828
2243
  type: "note" | "question" | "event" | "article";
1829
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
2244
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
1830
2245
  creatorId: string;
1831
2246
  capabilitiesNeeded?: string[] | undefined;
1832
2247
  data?: {
@@ -1965,6 +2380,27 @@ export declare const conversationLeavesMapping: Mapping<{
1965
2380
  } | undefined;
1966
2381
  } | undefined;
1967
2382
  url?: string | undefined;
2383
+ recurrence?: {
2384
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
2385
+ interval?: number | undefined;
2386
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
2387
+ until?: string | undefined;
2388
+ count?: number | undefined;
2389
+ } | undefined;
2390
+ exceptions?: {
2391
+ recurrenceId: string;
2392
+ cancelled?: boolean | undefined;
2393
+ start?: string | undefined;
2394
+ end?: string | undefined;
2395
+ physicalLocation?: {
2396
+ text: string;
2397
+ coordinates?: {
2398
+ lat: number;
2399
+ lng: number;
2400
+ alt?: number | undefined;
2401
+ } | undefined;
2402
+ } | undefined;
2403
+ }[] | undefined;
1968
2404
  } | {
1969
2405
  type: "article";
1970
2406
  content?: string | undefined;
@@ -2006,7 +2442,7 @@ export declare const conversationLeavesMappingForProfile: (profile?: {
2006
2442
  id: string;
2007
2443
  }) => Mapping<{
2008
2444
  type: "note" | "question" | "event" | "article";
2009
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
2445
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
2010
2446
  creatorId: string;
2011
2447
  capabilitiesNeeded?: string[] | undefined;
2012
2448
  data?: {
@@ -2145,6 +2581,27 @@ export declare const conversationLeavesMappingForProfile: (profile?: {
2145
2581
  } | undefined;
2146
2582
  } | undefined;
2147
2583
  url?: string | undefined;
2584
+ recurrence?: {
2585
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
2586
+ interval?: number | undefined;
2587
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
2588
+ until?: string | undefined;
2589
+ count?: number | undefined;
2590
+ } | undefined;
2591
+ exceptions?: {
2592
+ recurrenceId: string;
2593
+ cancelled?: boolean | undefined;
2594
+ start?: string | undefined;
2595
+ end?: string | undefined;
2596
+ physicalLocation?: {
2597
+ text: string;
2598
+ coordinates?: {
2599
+ lat: number;
2600
+ lng: number;
2601
+ alt?: number | undefined;
2602
+ } | undefined;
2603
+ } | undefined;
2604
+ }[] | undefined;
2148
2605
  } | {
2149
2606
  type: "article";
2150
2607
  content?: string | undefined;
@@ -2184,7 +2641,7 @@ export declare const conversationLeavesMappingForProfile: (profile?: {
2184
2641
  }, DbPost, DbPost>;
2185
2642
  export declare const postIdsMapping: Mapping<{
2186
2643
  type: "note" | "question" | "event" | "article";
2187
- visibility: "direct" | "group" | "local" | "report" | "public" | "unlisted" | "private";
2644
+ visibility: "local" | "direct" | "group" | "report" | "public" | "unlisted" | "private";
2188
2645
  creatorId: string;
2189
2646
  capabilitiesNeeded?: string[] | undefined;
2190
2647
  data?: {
@@ -2323,6 +2780,27 @@ export declare const postIdsMapping: Mapping<{
2323
2780
  } | undefined;
2324
2781
  } | undefined;
2325
2782
  url?: string | undefined;
2783
+ recurrence?: {
2784
+ freq: "DAILY" | "WEEKLY" | "MONTHLY";
2785
+ interval?: number | undefined;
2786
+ byDay?: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[] | undefined;
2787
+ until?: string | undefined;
2788
+ count?: number | undefined;
2789
+ } | undefined;
2790
+ exceptions?: {
2791
+ recurrenceId: string;
2792
+ cancelled?: boolean | undefined;
2793
+ start?: string | undefined;
2794
+ end?: string | undefined;
2795
+ physicalLocation?: {
2796
+ text: string;
2797
+ coordinates?: {
2798
+ lat: number;
2799
+ lng: number;
2800
+ alt?: number | undefined;
2801
+ } | undefined;
2802
+ } | undefined;
2803
+ }[] | undefined;
2326
2804
  } | {
2327
2805
  type: "article";
2328
2806
  content?: string | undefined;