@openpeepshq/core 0.1.31

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 (500) hide show
  1. package/LICENSE +674 -0
  2. package/dist/accessTokens/finders.d.ts +11 -0
  3. package/dist/accessTokens/finders.js +43 -0
  4. package/dist/accessTokens/helpers.d.ts +13 -0
  5. package/dist/accessTokens/helpers.js +15 -0
  6. package/dist/accessTokens/index.d.ts +4 -0
  7. package/dist/accessTokens/index.js +4 -0
  8. package/dist/accessTokens/mapping.d.ts +10 -0
  9. package/dist/accessTokens/mapping.js +25 -0
  10. package/dist/accessTokens/mutations.d.ts +4 -0
  11. package/dist/accessTokens/mutations.js +24 -0
  12. package/dist/accessTokens/revokations.d.ts +2 -0
  13. package/dist/accessTokens/revokations.js +18 -0
  14. package/dist/accessTokens/tokens.d.ts +31 -0
  15. package/dist/accessTokens/tokens.js +174 -0
  16. package/dist/accounts/cache.d.ts +3 -0
  17. package/dist/accounts/cache.js +13 -0
  18. package/dist/accounts/finders.d.ts +6 -0
  19. package/dist/accounts/finders.js +17 -0
  20. package/dist/accounts/helpers.d.ts +7 -0
  21. package/dist/accounts/helpers.js +36 -0
  22. package/dist/accounts/index.d.ts +6 -0
  23. package/dist/accounts/index.js +6 -0
  24. package/dist/accounts/mapping.d.ts +10 -0
  25. package/dist/accounts/mapping.js +28 -0
  26. package/dist/accounts/mutations.d.ts +21 -0
  27. package/dist/accounts/mutations.js +204 -0
  28. package/dist/analytics/cache.d.ts +6 -0
  29. package/dist/analytics/cache.js +29 -0
  30. package/dist/analytics/compile.d.ts +4 -0
  31. package/dist/analytics/compile.js +296 -0
  32. package/dist/analytics/dateRange.d.ts +39 -0
  33. package/dist/analytics/dateRange.js +181 -0
  34. package/dist/analytics/index.d.ts +8 -0
  35. package/dist/analytics/index.js +8 -0
  36. package/dist/analytics/jobs.d.ts +20 -0
  37. package/dist/analytics/jobs.js +84 -0
  38. package/dist/analytics/metrics.d.ts +4 -0
  39. package/dist/analytics/metrics.js +13 -0
  40. package/dist/analytics/pdfReport.d.ts +8 -0
  41. package/dist/analytics/pdfReport.js +821 -0
  42. package/dist/analytics/read.d.ts +6 -0
  43. package/dist/analytics/read.js +696 -0
  44. package/dist/analytics/report.d.ts +293 -0
  45. package/dist/analytics/report.js +153 -0
  46. package/dist/analytics/settings.d.ts +3 -0
  47. package/dist/analytics/settings.js +37 -0
  48. package/dist/backups/index.d.ts +5 -0
  49. package/dist/backups/index.js +260 -0
  50. package/dist/backups/metadata.d.ts +9 -0
  51. package/dist/backups/metadata.js +2 -0
  52. package/dist/config/db.d.ts +7 -0
  53. package/dist/config/db.js +26 -0
  54. package/dist/config/defaults/capabilities.d.ts +2 -0
  55. package/dist/config/defaults/capabilities.js +47 -0
  56. package/dist/config/defaults/community.d.ts +2 -0
  57. package/dist/config/defaults/community.js +41 -0
  58. package/dist/config/defaults/core.d.ts +2 -0
  59. package/dist/config/defaults/core.js +113 -0
  60. package/dist/config/defaults/db.d.ts +6 -0
  61. package/dist/config/defaults/db.js +8 -0
  62. package/dist/config/defaults/logs.d.ts +6 -0
  63. package/dist/config/defaults/logs.js +7 -0
  64. package/dist/config/defaults/redis.d.ts +4 -0
  65. package/dist/config/defaults/redis.js +5 -0
  66. package/dist/config/helpers.d.ts +11 -0
  67. package/dist/config/helpers.js +31 -0
  68. package/dist/config/index.d.ts +392 -0
  69. package/dist/config/index.js +83 -0
  70. package/dist/config/pruneEmptyConfigStrings.d.ts +7 -0
  71. package/dist/config/pruneEmptyConfigStrings.js +29 -0
  72. package/dist/db/aql.d.ts +0 -0
  73. package/dist/db/aql.js +1 -0
  74. package/dist/db/arango.d.ts +2 -0
  75. package/dist/db/arango.js +110 -0
  76. package/dist/db/bootMigrate.d.ts +1 -0
  77. package/dist/db/bootMigrate.js +15 -0
  78. package/dist/db/examples.d.ts +1 -0
  79. package/dist/db/examples.js +13 -0
  80. package/dist/db/explorer/csv.d.ts +1 -0
  81. package/dist/db/explorer/csv.js +18 -0
  82. package/dist/db/explorer/index.d.ts +6 -0
  83. package/dist/db/explorer/index.js +5 -0
  84. package/dist/db/explorer/mutate.d.ts +6 -0
  85. package/dist/db/explorer/mutate.js +66 -0
  86. package/dist/db/explorer/query.d.ts +17 -0
  87. package/dist/db/explorer/query.js +48 -0
  88. package/dist/db/explorer/sql.d.ts +11 -0
  89. package/dist/db/explorer/sql.js +42 -0
  90. package/dist/db/explorer/tables.d.ts +9 -0
  91. package/dist/db/explorer/tables.js +65 -0
  92. package/dist/db/helpers.d.ts +64 -0
  93. package/dist/db/helpers.js +240 -0
  94. package/dist/db/index.d.ts +13 -0
  95. package/dist/db/index.js +15 -0
  96. package/dist/db/init.d.ts +2 -0
  97. package/dist/db/init.js +10 -0
  98. package/dist/db/migration/autoMigrate.d.ts +2 -0
  99. package/dist/db/migration/autoMigrate.js +111 -0
  100. package/dist/db/migration/cli.d.ts +1 -0
  101. package/dist/db/migration/cli.js +56 -0
  102. package/dist/db/migration/detect.d.ts +6 -0
  103. package/dist/db/migration/detect.js +87 -0
  104. package/dist/db/migration/exportArango.d.ts +4 -0
  105. package/dist/db/migration/exportArango.js +80 -0
  106. package/dist/db/migration/importCollections.d.ts +19 -0
  107. package/dist/db/migration/importCollections.js +280 -0
  108. package/dist/db/migration/importPostgres.d.ts +3 -0
  109. package/dist/db/migration/importPostgres.js +18 -0
  110. package/dist/db/migration/shared.d.ts +39 -0
  111. package/dist/db/migration/shared.js +158 -0
  112. package/dist/db/migration/transform.d.ts +18 -0
  113. package/dist/db/migration/transform.js +209 -0
  114. package/dist/db/migration/validate.d.ts +18 -0
  115. package/dist/db/migration/validate.js +69 -0
  116. package/dist/db/pg/client.d.ts +35 -0
  117. package/dist/db/pg/client.js +126 -0
  118. package/dist/db/pg/collections.d.ts +48 -0
  119. package/dist/db/pg/collections.js +53 -0
  120. package/dist/db/pg/filters/common.d.ts +21 -0
  121. package/dist/db/pg/filters/common.js +48 -0
  122. package/dist/db/pg/filters/edges.d.ts +9 -0
  123. package/dist/db/pg/filters/edges.js +10 -0
  124. package/dist/db/pg/filters/groups.d.ts +7 -0
  125. package/dist/db/pg/filters/groups.js +15 -0
  126. package/dist/db/pg/filters/index.d.ts +22 -0
  127. package/dist/db/pg/filters/index.js +35 -0
  128. package/dist/db/pg/filters/notifications.d.ts +6 -0
  129. package/dist/db/pg/filters/notifications.js +10 -0
  130. package/dist/db/pg/filters/posts.d.ts +18 -0
  131. package/dist/db/pg/filters/posts.js +25 -0
  132. package/dist/db/pg/filters/profiles.d.ts +6 -0
  133. package/dist/db/pg/filters/profiles.js +9 -0
  134. package/dist/db/pg/filters/types.d.ts +7 -0
  135. package/dist/db/pg/filters/types.js +5 -0
  136. package/dist/db/pg/helpers.d.ts +19 -0
  137. package/dist/db/pg/helpers.js +67 -0
  138. package/dist/db/pg/map/filters.d.ts +22 -0
  139. package/dist/db/pg/map/filters.js +566 -0
  140. package/dist/db/pg/map/helpers.d.ts +2 -0
  141. package/dist/db/pg/map/helpers.js +2 -0
  142. package/dist/db/pg/map/index.d.ts +46 -0
  143. package/dist/db/pg/map/index.js +93 -0
  144. package/dist/db/pg/map/mutations.d.ts +11 -0
  145. package/dist/db/pg/map/mutations.js +135 -0
  146. package/dist/db/pg/map/queryTypes.d.ts +115 -0
  147. package/dist/db/pg/map/queryTypes.js +1 -0
  148. package/dist/db/pg/map/registry.d.ts +29 -0
  149. package/dist/db/pg/map/registry.js +413 -0
  150. package/dist/db/pg/map/relations.d.ts +28 -0
  151. package/dist/db/pg/map/relations.js +399 -0
  152. package/dist/db/pg/map/search.d.ts +6 -0
  153. package/dist/db/pg/map/search.js +190 -0
  154. package/dist/db/pg/map/types.d.ts +11 -0
  155. package/dist/db/pg/map/types.js +1 -0
  156. package/dist/db/pg/mappers.d.ts +28 -0
  157. package/dist/db/pg/mappers.js +29 -0
  158. package/dist/db/pg/migrate.d.ts +14 -0
  159. package/dist/db/pg/migrate.js +134 -0
  160. package/dist/db/pg/queries/activity.d.ts +10 -0
  161. package/dist/db/pg/queries/activity.js +47 -0
  162. package/dist/db/pg/queries/computed.d.ts +7 -0
  163. package/dist/db/pg/queries/computed.js +19 -0
  164. package/dist/db/pg/queries/derived.d.ts +22 -0
  165. package/dist/db/pg/queries/derived.js +100 -0
  166. package/dist/db/pg/queries/index.d.ts +4 -0
  167. package/dist/db/pg/queries/index.js +4 -0
  168. package/dist/db/pg/queries/sorts.d.ts +10 -0
  169. package/dist/db/pg/queries/sorts.js +9 -0
  170. package/dist/db/pg/schema/analytics.d.ts +998 -0
  171. package/dist/db/pg/schema/analytics.js +110 -0
  172. package/dist/db/pg/schema/base.d.ts +36 -0
  173. package/dist/db/pg/schema/base.js +23 -0
  174. package/dist/db/pg/schema/documents.d.ts +2002 -0
  175. package/dist/db/pg/schema/documents.js +40 -0
  176. package/dist/db/pg/schema/edges.d.ts +2725 -0
  177. package/dist/db/pg/schema/edges.js +34 -0
  178. package/dist/db/pg/schema/index.d.ts +5724 -0
  179. package/dist/db/pg/schema/index.js +7 -0
  180. package/dist/db/pg/sql/0000_bizarre_chat.sql +456 -0
  181. package/dist/db/pg/sql/0001_search_vector.sql +122 -0
  182. package/dist/db/pg/sql/0002_data_migrations_id_text.sql +1 -0
  183. package/dist/db/pg/sql/0003_fix_group_post_visibility.sql +4 -0
  184. package/dist/db/pg/sql/0004_analytics.sql +90 -0
  185. package/dist/db/pg/sql/meta/0000_snapshot.json +3380 -0
  186. package/dist/db/pg/sql/meta/0004_snapshot.json +4114 -0
  187. package/dist/db/pg/sql/meta/_journal.json +41 -0
  188. package/dist/db/replaceHostname.d.ts +1 -0
  189. package/dist/db/replaceHostname.js +88 -0
  190. package/dist/db/types.d.ts +17 -0
  191. package/dist/db/types.js +1 -0
  192. package/dist/email/index.d.ts +9 -0
  193. package/dist/email/index.js +19 -0
  194. package/dist/email/jobs.d.ts +3 -0
  195. package/dist/email/jobs.js +13 -0
  196. package/dist/email/queueStats.d.ts +2 -0
  197. package/dist/email/queueStats.js +27 -0
  198. package/dist/email/registry.d.ts +3 -0
  199. package/dist/email/registry.js +4 -0
  200. package/dist/email/render.d.ts +8 -0
  201. package/dist/email/render.js +34 -0
  202. package/dist/email/send.d.ts +9 -0
  203. package/dist/email/send.js +97 -0
  204. package/dist/email/smtpTest.d.ts +2 -0
  205. package/dist/email/smtpTest.js +26 -0
  206. package/dist/errors/index.d.ts +8 -0
  207. package/dist/errors/index.js +13 -0
  208. package/dist/events/index.d.ts +31 -0
  209. package/dist/events/index.js +66 -0
  210. package/dist/events/once.d.ts +4 -0
  211. package/dist/events/once.js +23 -0
  212. package/dist/groups/finders.d.ts +125 -0
  213. package/dist/groups/finders.js +18 -0
  214. package/dist/groups/helpers.d.ts +227 -0
  215. package/dist/groups/helpers.js +17 -0
  216. package/dist/groups/index.d.ts +3 -0
  217. package/dist/groups/index.js +3 -0
  218. package/dist/groups/mapping.d.ts +188 -0
  219. package/dist/groups/mapping.js +47 -0
  220. package/dist/groups/mutations.d.ts +26 -0
  221. package/dist/groups/mutations.js +41 -0
  222. package/dist/hashtags/finders.d.ts +3 -0
  223. package/dist/hashtags/finders.js +22 -0
  224. package/dist/hashtags/index.d.ts +2 -0
  225. package/dist/hashtags/index.js +2 -0
  226. package/dist/hashtags/mapping.d.ts +4 -0
  227. package/dist/hashtags/mapping.js +5 -0
  228. package/dist/hashtags/mutations.d.ts +0 -0
  229. package/dist/hashtags/mutations.js +1 -0
  230. package/dist/i18n/index.d.ts +14 -0
  231. package/dist/i18n/index.js +53 -0
  232. package/dist/index.d.ts +0 -0
  233. package/dist/index.js +1 -0
  234. package/dist/inviteLinks/finders.d.ts +3 -0
  235. package/dist/inviteLinks/finders.js +5 -0
  236. package/dist/inviteLinks/helpers.d.ts +20 -0
  237. package/dist/inviteLinks/helpers.js +4 -0
  238. package/dist/inviteLinks/index.d.ts +3 -0
  239. package/dist/inviteLinks/index.js +3 -0
  240. package/dist/inviteLinks/mapping.d.ts +10 -0
  241. package/dist/inviteLinks/mapping.js +35 -0
  242. package/dist/inviteLinks/mutations.d.ts +4 -0
  243. package/dist/inviteLinks/mutations.js +39 -0
  244. package/dist/jams/cache.d.ts +9 -0
  245. package/dist/jams/cache.js +13 -0
  246. package/dist/jams/finders.d.ts +23 -0
  247. package/dist/jams/finders.js +24 -0
  248. package/dist/jams/helpers.d.ts +70 -0
  249. package/dist/jams/helpers.js +29 -0
  250. package/dist/jams/index.d.ts +15 -0
  251. package/dist/jams/index.js +108 -0
  252. package/dist/jams/jobs.d.ts +9 -0
  253. package/dist/jams/jobs.js +42 -0
  254. package/dist/jams/livekit.d.ts +24 -0
  255. package/dist/jams/livekit.js +220 -0
  256. package/dist/jams/mapping.d.ts +137 -0
  257. package/dist/jams/mapping.js +35 -0
  258. package/dist/jams/mutations.d.ts +40 -0
  259. package/dist/jams/mutations.js +4 -0
  260. package/dist/jams/recording.d.ts +8 -0
  261. package/dist/jams/recording.js +67 -0
  262. package/dist/jams/recordingUploadAuth.d.ts +9 -0
  263. package/dist/jams/recordingUploadAuth.js +19 -0
  264. package/dist/jams/token.d.ts +4 -0
  265. package/dist/jams/token.js +129 -0
  266. package/dist/jams/waitingRoom.d.ts +5 -0
  267. package/dist/jams/waitingRoom.js +71 -0
  268. package/dist/jobs/index.d.ts +10 -0
  269. package/dist/jobs/index.js +60 -0
  270. package/dist/jobs/jobDetail.d.ts +2 -0
  271. package/dist/jobs/jobDetail.js +31 -0
  272. package/dist/jobs/jobLog.d.ts +18 -0
  273. package/dist/jobs/jobLog.js +61 -0
  274. package/dist/jwt/index.d.ts +10 -0
  275. package/dist/jwt/index.js +43 -0
  276. package/dist/lib/index.d.ts +2 -0
  277. package/dist/lib/index.js +2 -0
  278. package/dist/lib/streams.d.ts +2 -0
  279. package/dist/lib/streams.js +56 -0
  280. package/dist/lib/utils.d.ts +2 -0
  281. package/dist/lib/utils.js +17 -0
  282. package/dist/lib/zodDeepPartial.d.ts +3 -0
  283. package/dist/lib/zodDeepPartial.js +26 -0
  284. package/dist/location/index.d.ts +2 -0
  285. package/dist/location/index.js +28 -0
  286. package/dist/log/index.d.ts +3 -0
  287. package/dist/log/index.js +97 -0
  288. package/dist/mastodon/index.d.ts +4 -0
  289. package/dist/mastodon/index.js +51 -0
  290. package/dist/mastodon/types.d.ts +7579 -0
  291. package/dist/mastodon/types.js +523 -0
  292. package/dist/mastodon/typescript.d.ts +1578 -0
  293. package/dist/mastodon/typescript.js +1 -0
  294. package/dist/media/index.d.ts +40 -0
  295. package/dist/media/index.js +248 -0
  296. package/dist/media/ipfs/index.d.ts +0 -0
  297. package/dist/media/ipfs/index.js +39 -0
  298. package/dist/media/jobs.d.ts +19 -0
  299. package/dist/media/jobs.js +90 -0
  300. package/dist/media/openpeeps/index.d.ts +3 -0
  301. package/dist/media/openpeeps/index.js +131 -0
  302. package/dist/media/processing.d.ts +19 -0
  303. package/dist/media/processing.js +83 -0
  304. package/dist/media/streaming.d.ts +77 -0
  305. package/dist/media/streaming.js +257 -0
  306. package/dist/media/streamingCleanupJobs.d.ts +14 -0
  307. package/dist/media/streamingCleanupJobs.js +47 -0
  308. package/dist/media/streamingJobs.d.ts +5 -0
  309. package/dist/media/streamingJobs.js +329 -0
  310. package/dist/media/streamingPrewarm.d.ts +36 -0
  311. package/dist/media/streamingPrewarm.js +109 -0
  312. package/dist/mediaAttachments/finders.d.ts +1 -0
  313. package/dist/mediaAttachments/finders.js +3 -0
  314. package/dist/mediaAttachments/index.d.ts +5 -0
  315. package/dist/mediaAttachments/index.js +12 -0
  316. package/dist/mediaAttachments/mapping.d.ts +21 -0
  317. package/dist/mediaAttachments/mapping.js +4 -0
  318. package/dist/mediaAttachments/mutations.d.ts +3 -0
  319. package/dist/mediaAttachments/mutations.js +10 -0
  320. package/dist/notifications/defaultNotifications/announcement/index.d.ts +24 -0
  321. package/dist/notifications/defaultNotifications/announcement/index.js +42 -0
  322. package/dist/notifications/defaultNotifications/directMessage/index.d.ts +28 -0
  323. package/dist/notifications/defaultNotifications/directMessage/index.js +69 -0
  324. package/dist/notifications/defaultNotifications/follow/index.d.ts +24 -0
  325. package/dist/notifications/defaultNotifications/follow/index.js +31 -0
  326. package/dist/notifications/defaultNotifications/groupAdded/index.d.ts +18 -0
  327. package/dist/notifications/defaultNotifications/groupAdded/index.js +33 -0
  328. package/dist/notifications/defaultNotifications/groupMemberJoined/index.d.ts +18 -0
  329. package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +36 -0
  330. package/dist/notifications/defaultNotifications/groupMemberLeft/index.d.ts +18 -0
  331. package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +36 -0
  332. package/dist/notifications/defaultNotifications/index.d.ts +3 -0
  333. package/dist/notifications/defaultNotifications/index.js +43 -0
  334. package/dist/notifications/defaultNotifications/jamModerator/index.d.ts +23 -0
  335. package/dist/notifications/defaultNotifications/jamModerator/index.js +49 -0
  336. package/dist/notifications/defaultNotifications/jamSpeaker/index.d.ts +23 -0
  337. package/dist/notifications/defaultNotifications/jamSpeaker/index.js +47 -0
  338. package/dist/notifications/defaultNotifications/jamStarted/index.d.ts +18 -0
  339. package/dist/notifications/defaultNotifications/jamStarted/index.js +82 -0
  340. package/dist/notifications/defaultNotifications/mention/index.d.ts +24 -0
  341. package/dist/notifications/defaultNotifications/mention/index.js +89 -0
  342. package/dist/notifications/defaultNotifications/newGroupPost/index.d.ts +24 -0
  343. package/dist/notifications/defaultNotifications/newGroupPost/index.js +47 -0
  344. package/dist/notifications/defaultNotifications/newProfile/index.d.ts +24 -0
  345. package/dist/notifications/defaultNotifications/newProfile/index.js +40 -0
  346. package/dist/notifications/defaultNotifications/pollVote/index.d.ts +19 -0
  347. package/dist/notifications/defaultNotifications/pollVote/index.js +40 -0
  348. package/dist/notifications/defaultNotifications/reaction/index.d.ts +18 -0
  349. package/dist/notifications/defaultNotifications/reaction/index.js +43 -0
  350. package/dist/notifications/defaultNotifications/reply/index.d.ts +25 -0
  351. package/dist/notifications/defaultNotifications/reply/index.js +57 -0
  352. package/dist/notifications/defaultNotifications/repost/index.d.ts +18 -0
  353. package/dist/notifications/defaultNotifications/repost/index.js +42 -0
  354. package/dist/notifications/defaultNotifications/rsvp/index.d.ts +19 -0
  355. package/dist/notifications/defaultNotifications/rsvp/index.js +40 -0
  356. package/dist/notifications/fcmCredential.d.ts +14 -0
  357. package/dist/notifications/fcmCredential.js +68 -0
  358. package/dist/notifications/finders.d.ts +7 -0
  359. package/dist/notifications/finders.js +13 -0
  360. package/dist/notifications/firebase.d.ts +1 -0
  361. package/dist/notifications/firebase.js +33 -0
  362. package/dist/notifications/handlers.d.ts +3 -0
  363. package/dist/notifications/handlers.js +6 -0
  364. package/dist/notifications/helpers.d.ts +7 -0
  365. package/dist/notifications/helpers.js +31 -0
  366. package/dist/notifications/index.d.ts +9 -0
  367. package/dist/notifications/index.js +43 -0
  368. package/dist/notifications/jobs.d.ts +2 -0
  369. package/dist/notifications/jobs.js +75 -0
  370. package/dist/notifications/mapping.d.ts +25 -0
  371. package/dist/notifications/mapping.js +25 -0
  372. package/dist/notifications/mutations.d.ts +6 -0
  373. package/dist/notifications/mutations.js +40 -0
  374. package/dist/notifications/push.d.ts +9 -0
  375. package/dist/notifications/push.js +261 -0
  376. package/dist/notifications/pushInvalidation.d.ts +10 -0
  377. package/dist/notifications/pushInvalidation.js +10 -0
  378. package/dist/performance/index.d.ts +24 -0
  379. package/dist/performance/index.js +61 -0
  380. package/dist/plugins/helpers.d.ts +3 -0
  381. package/dist/plugins/helpers.js +72 -0
  382. package/dist/plugins/index.d.ts +10 -0
  383. package/dist/plugins/index.js +84 -0
  384. package/dist/plugins/pluginAuth.d.ts +30 -0
  385. package/dist/plugins/pluginAuth.js +44 -0
  386. package/dist/posts/contextClosure.d.ts +16 -0
  387. package/dist/posts/contextClosure.js +66 -0
  388. package/dist/posts/finders.d.ts +298 -0
  389. package/dist/posts/finders.js +259 -0
  390. package/dist/posts/helpers/filters.d.ts +14 -0
  391. package/dist/posts/helpers/filters.js +39 -0
  392. package/dist/posts/helpers/index.d.ts +837 -0
  393. package/dist/posts/helpers/index.js +117 -0
  394. package/dist/posts/index.d.ts +6 -0
  395. package/dist/posts/index.js +6 -0
  396. package/dist/posts/mapping.d.ts +2187 -0
  397. package/dist/posts/mapping.js +222 -0
  398. package/dist/posts/mutations.d.ts +19 -0
  399. package/dist/posts/mutations.js +202 -0
  400. package/dist/posts/rsvpConfirmationEmail.d.ts +2 -0
  401. package/dist/posts/rsvpConfirmationEmail.js +82 -0
  402. package/dist/processingStats/index.d.ts +3 -0
  403. package/dist/processingStats/index.js +3 -0
  404. package/dist/processingStats/mapping.d.ts +7 -0
  405. package/dist/processingStats/mapping.js +4 -0
  406. package/dist/processingStats/mutations.d.ts +2 -0
  407. package/dist/processingStats/mutations.js +6 -0
  408. package/dist/processingStats/queries.d.ts +4 -0
  409. package/dist/processingStats/queries.js +46 -0
  410. package/dist/profileSettings/cache.d.ts +2 -0
  411. package/dist/profileSettings/cache.js +24 -0
  412. package/dist/profileSettings/finders.d.ts +1 -0
  413. package/dist/profileSettings/finders.js +2 -0
  414. package/dist/profileSettings/index.d.ts +3 -0
  415. package/dist/profileSettings/index.js +3 -0
  416. package/dist/profileSettings/mapping.d.ts +38 -0
  417. package/dist/profileSettings/mapping.js +5 -0
  418. package/dist/profileSettings/mutations.d.ts +3 -0
  419. package/dist/profileSettings/mutations.js +24 -0
  420. package/dist/profiles/cache.d.ts +5 -0
  421. package/dist/profiles/cache.js +19 -0
  422. package/dist/profiles/capacity.d.ts +2 -0
  423. package/dist/profiles/capacity.js +20 -0
  424. package/dist/profiles/export.d.ts +3 -0
  425. package/dist/profiles/export.js +85 -0
  426. package/dist/profiles/finders.d.ts +11 -0
  427. package/dist/profiles/finders.js +39 -0
  428. package/dist/profiles/helpers.d.ts +35 -0
  429. package/dist/profiles/helpers.js +10 -0
  430. package/dist/profiles/index.d.ts +5 -0
  431. package/dist/profiles/index.js +18 -0
  432. package/dist/profiles/mapping.d.ts +157 -0
  433. package/dist/profiles/mapping.js +132 -0
  434. package/dist/profiles/mutations.d.ts +9 -0
  435. package/dist/profiles/mutations.js +75 -0
  436. package/dist/pushSubscriptions/finders.d.ts +187 -0
  437. package/dist/pushSubscriptions/finders.js +6 -0
  438. package/dist/pushSubscriptions/helpers.d.ts +99 -0
  439. package/dist/pushSubscriptions/helpers.js +3 -0
  440. package/dist/pushSubscriptions/index.d.ts +3 -0
  441. package/dist/pushSubscriptions/index.js +3 -0
  442. package/dist/pushSubscriptions/mapping.d.ts +261 -0
  443. package/dist/pushSubscriptions/mapping.js +6 -0
  444. package/dist/pushSubscriptions/mutations.d.ts +95 -0
  445. package/dist/pushSubscriptions/mutations.js +21 -0
  446. package/dist/redis/connection.d.ts +4 -0
  447. package/dist/redis/connection.js +17 -0
  448. package/dist/redis/index.d.ts +1 -0
  449. package/dist/redis/index.js +1 -0
  450. package/dist/reports/finders.d.ts +6 -0
  451. package/dist/reports/finders.js +44 -0
  452. package/dist/reports/helpers.d.ts +21 -0
  453. package/dist/reports/helpers.js +12 -0
  454. package/dist/reports/index.d.ts +3 -0
  455. package/dist/reports/index.js +3 -0
  456. package/dist/reports/mapping.d.ts +9 -0
  457. package/dist/reports/mapping.js +34 -0
  458. package/dist/reports/mutations.d.ts +5 -0
  459. package/dist/reports/mutations.js +16 -0
  460. package/dist/roles/defaults.d.ts +2 -0
  461. package/dist/roles/defaults.js +94 -0
  462. package/dist/roles/finders.d.ts +5 -0
  463. package/dist/roles/finders.js +9 -0
  464. package/dist/roles/index.d.ts +4 -0
  465. package/dist/roles/index.js +4 -0
  466. package/dist/roles/mapping.d.ts +11 -0
  467. package/dist/roles/mapping.js +5 -0
  468. package/dist/roles/mutations.d.ts +4 -0
  469. package/dist/roles/mutations.js +30 -0
  470. package/dist/search/finders.d.ts +47 -0
  471. package/dist/search/finders.js +59 -0
  472. package/dist/search/helpers.d.ts +3 -0
  473. package/dist/search/helpers.js +1 -0
  474. package/dist/search/index.d.ts +1 -0
  475. package/dist/search/index.js +1 -0
  476. package/dist/search/mapping.d.ts +40 -0
  477. package/dist/search/mapping.js +43 -0
  478. package/dist/sentry/index.d.ts +34 -0
  479. package/dist/sentry/index.js +113 -0
  480. package/dist/server/helpers.d.ts +0 -0
  481. package/dist/server/helpers.js +1 -0
  482. package/dist/server/index.d.ts +105 -0
  483. package/dist/server/index.js +64 -0
  484. package/dist/stats/finders.d.ts +16156 -0
  485. package/dist/stats/finders.js +167 -0
  486. package/dist/stats/helpers.d.ts +17 -0
  487. package/dist/stats/helpers.js +34 -0
  488. package/dist/stats/index.d.ts +1 -0
  489. package/dist/stats/index.js +1 -0
  490. package/dist/stats/mapping.d.ts +188 -0
  491. package/dist/stats/mapping.js +19 -0
  492. package/dist/stripe/cache.d.ts +30 -0
  493. package/dist/stripe/cache.js +37 -0
  494. package/dist/stripe/connection.d.ts +5 -0
  495. package/dist/stripe/connection.js +23 -0
  496. package/dist/stripe/helpers.d.ts +25 -0
  497. package/dist/stripe/helpers.js +211 -0
  498. package/dist/stripe/index.d.ts +3 -0
  499. package/dist/stripe/index.js +3 -0
  500. package/package.json +99 -0
@@ -0,0 +1,837 @@
1
+ import { AuthorizationData, PostWithMeta, PostDataUnion, Profile, Post, Hashtag, MentionWithPublicProfile, DbPost } from '@openpeepshq/common/types';
2
+ import type { PgQueryResult } from '../../db/pg/map/types';
3
+ import { ObjectFilter } from '../../db/types';
4
+ export declare const isDirect: (post: PostWithMeta) => boolean;
5
+ export declare const isPrivate: (post: PostWithMeta) => boolean;
6
+ export declare const isUnlisted: (post: PostWithMeta) => boolean;
7
+ export declare const isPublic: (post: PostWithMeta) => boolean;
8
+ export declare const isGroup: (post: PostWithMeta) => boolean;
9
+ export declare const isLocal: (post: PostWithMeta) => boolean;
10
+ export * from './filters';
11
+ export declare const extractHashtags: (data: PostDataUnion) => string[];
12
+ export declare const extractMentionHandles: (text?: string) => string[];
13
+ export declare const resolveMentionsForPost: (data: PostDataUnion) => Promise<MentionWithPublicProfile[]>;
14
+ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile, to: Post, data?: ({
15
+ type: "create";
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
+ } | {
153
+ type: "article";
154
+ content?: string | undefined;
155
+ sensitive?: boolean | undefined;
156
+ spoilerText?: string | undefined;
157
+ attachments?: {
158
+ type: string;
159
+ url: string;
160
+ previewUrl: string | null;
161
+ textUrl: null;
162
+ filename: string;
163
+ meta: {
164
+ usage?: string | undefined;
165
+ focus?: {
166
+ x: number;
167
+ y: number;
168
+ } | undefined;
169
+ mimetype?: string | undefined;
170
+ size?: number | undefined;
171
+ };
172
+ description?: string | undefined;
173
+ blurhash?: string | undefined;
174
+ status?: "ready" | "failed" | "processing" | undefined;
175
+ error?: string | undefined;
176
+ }[] | undefined;
177
+ customEmojis?: {
178
+ shortcode: string;
179
+ url: string;
180
+ staticUrl: string;
181
+ visibleInPicker: boolean;
182
+ category: string;
183
+ }[] | undefined;
184
+ language?: string | undefined;
185
+ image?: string | undefined;
186
+ title?: string | undefined;
187
+ };
188
+ } | {
189
+ type: "edit";
190
+ data: {
191
+ type: "note";
192
+ content?: string | undefined;
193
+ sensitive?: boolean | undefined;
194
+ spoilerText?: string | undefined;
195
+ attachments?: {
196
+ type: string;
197
+ url: string;
198
+ previewUrl: string | null;
199
+ textUrl: null;
200
+ filename: string;
201
+ meta: {
202
+ usage?: string | undefined;
203
+ focus?: {
204
+ x: number;
205
+ y: number;
206
+ } | undefined;
207
+ mimetype?: string | undefined;
208
+ size?: number | undefined;
209
+ };
210
+ description?: string | undefined;
211
+ blurhash?: string | undefined;
212
+ status?: "ready" | "failed" | "processing" | undefined;
213
+ error?: string | undefined;
214
+ }[] | undefined;
215
+ customEmojis?: {
216
+ shortcode: string;
217
+ url: string;
218
+ staticUrl: string;
219
+ visibleInPicker: boolean;
220
+ category: string;
221
+ }[] | undefined;
222
+ language?: string | undefined;
223
+ } | {
224
+ type: "question";
225
+ options: {
226
+ content: string;
227
+ type: "note";
228
+ }[];
229
+ content?: string | undefined;
230
+ sensitive?: boolean | undefined;
231
+ spoilerText?: string | undefined;
232
+ attachments?: {
233
+ type: string;
234
+ url: string;
235
+ previewUrl: string | null;
236
+ textUrl: null;
237
+ filename: string;
238
+ meta: {
239
+ usage?: string | undefined;
240
+ focus?: {
241
+ x: number;
242
+ y: number;
243
+ } | undefined;
244
+ mimetype?: string | undefined;
245
+ size?: number | undefined;
246
+ };
247
+ description?: string | undefined;
248
+ blurhash?: string | undefined;
249
+ status?: "ready" | "failed" | "processing" | undefined;
250
+ error?: string | undefined;
251
+ }[] | undefined;
252
+ customEmojis?: {
253
+ shortcode: string;
254
+ url: string;
255
+ staticUrl: string;
256
+ visibleInPicker: boolean;
257
+ category: string;
258
+ }[] | undefined;
259
+ language?: string | undefined;
260
+ multiple?: boolean | undefined;
261
+ votersVisible?: boolean | undefined;
262
+ expiresAt?: string | undefined;
263
+ } | {
264
+ type: "event";
265
+ start: string;
266
+ wholeDay: boolean;
267
+ content?: string | undefined;
268
+ sensitive?: boolean | undefined;
269
+ spoilerText?: string | undefined;
270
+ attachments?: {
271
+ type: string;
272
+ url: string;
273
+ previewUrl: string | null;
274
+ textUrl: null;
275
+ filename: string;
276
+ meta: {
277
+ usage?: string | undefined;
278
+ focus?: {
279
+ x: number;
280
+ y: number;
281
+ } | undefined;
282
+ mimetype?: string | undefined;
283
+ size?: number | undefined;
284
+ };
285
+ description?: string | undefined;
286
+ blurhash?: string | undefined;
287
+ status?: "ready" | "failed" | "processing" | undefined;
288
+ error?: string | undefined;
289
+ }[] | undefined;
290
+ customEmojis?: {
291
+ shortcode: string;
292
+ url: string;
293
+ staticUrl: string;
294
+ visibleInPicker: boolean;
295
+ category: string;
296
+ }[] | undefined;
297
+ language?: string | undefined;
298
+ name?: string | undefined;
299
+ timeZone?: string | undefined;
300
+ image?: string | undefined;
301
+ end?: string | undefined;
302
+ maxAttendees?: number | undefined;
303
+ attendeeListPublic?: boolean | undefined;
304
+ moderators?: string[] | undefined;
305
+ jam?: {
306
+ moderators: string[];
307
+ videoEnabled: boolean;
308
+ type: "video-call";
309
+ speakers?: string[] | undefined;
310
+ presenters?: string[] | undefined;
311
+ audience?: string[] | undefined;
312
+ maxSpeakers?: number | undefined;
313
+ maxPresenters?: number | undefined;
314
+ maxAudience?: number | undefined;
315
+ waitingRoom?: boolean | undefined;
316
+ } | undefined;
317
+ physicalLocation?: {
318
+ text: string;
319
+ coordinates?: {
320
+ lat: number;
321
+ lng: number;
322
+ alt?: number | undefined;
323
+ } | undefined;
324
+ } | undefined;
325
+ url?: string | undefined;
326
+ } | {
327
+ type: "article";
328
+ content?: string | undefined;
329
+ sensitive?: boolean | undefined;
330
+ spoilerText?: string | undefined;
331
+ attachments?: {
332
+ type: string;
333
+ url: string;
334
+ previewUrl: string | null;
335
+ textUrl: null;
336
+ filename: string;
337
+ meta: {
338
+ usage?: string | undefined;
339
+ focus?: {
340
+ x: number;
341
+ y: number;
342
+ } | undefined;
343
+ mimetype?: string | undefined;
344
+ size?: number | undefined;
345
+ };
346
+ description?: string | undefined;
347
+ blurhash?: string | undefined;
348
+ status?: "ready" | "failed" | "processing" | undefined;
349
+ error?: string | undefined;
350
+ }[] | undefined;
351
+ customEmojis?: {
352
+ shortcode: string;
353
+ url: string;
354
+ staticUrl: string;
355
+ visibleInPicker: boolean;
356
+ category: string;
357
+ }[] | undefined;
358
+ language?: string | undefined;
359
+ image?: string | undefined;
360
+ title?: string | undefined;
361
+ };
362
+ } | {
363
+ type: "delete";
364
+ data: any;
365
+ } | {
366
+ type: "answer";
367
+ data: {
368
+ selection: number[];
369
+ };
370
+ } | {
371
+ type: "rsvp";
372
+ data: {
373
+ response: "no" | "yes" | "tentative" | "removed";
374
+ };
375
+ }) & {
376
+ id?: string;
377
+ }) => Promise<import("../../db/pg/map").WithId<({
378
+ type: "create";
379
+ data: {
380
+ type: "note";
381
+ content?: string | undefined;
382
+ sensitive?: boolean | undefined;
383
+ spoilerText?: string | undefined;
384
+ attachments?: {
385
+ type: string;
386
+ url: string;
387
+ previewUrl: string | null;
388
+ textUrl: null;
389
+ filename: string;
390
+ meta: {
391
+ usage?: string | undefined;
392
+ focus?: {
393
+ x: number;
394
+ y: number;
395
+ } | undefined;
396
+ mimetype?: string | undefined;
397
+ size?: number | undefined;
398
+ };
399
+ description?: string | undefined;
400
+ blurhash?: string | undefined;
401
+ status?: "ready" | "failed" | "processing" | undefined;
402
+ error?: string | undefined;
403
+ }[] | undefined;
404
+ customEmojis?: {
405
+ shortcode: string;
406
+ url: string;
407
+ staticUrl: string;
408
+ visibleInPicker: boolean;
409
+ category: string;
410
+ }[] | undefined;
411
+ language?: string | undefined;
412
+ } | {
413
+ type: "question";
414
+ options: {
415
+ content: string;
416
+ type: "note";
417
+ }[];
418
+ content?: string | undefined;
419
+ sensitive?: boolean | undefined;
420
+ spoilerText?: string | undefined;
421
+ attachments?: {
422
+ type: string;
423
+ url: string;
424
+ previewUrl: string | null;
425
+ textUrl: null;
426
+ filename: string;
427
+ meta: {
428
+ usage?: string | undefined;
429
+ focus?: {
430
+ x: number;
431
+ y: number;
432
+ } | undefined;
433
+ mimetype?: string | undefined;
434
+ size?: number | undefined;
435
+ };
436
+ description?: string | undefined;
437
+ blurhash?: string | undefined;
438
+ status?: "ready" | "failed" | "processing" | undefined;
439
+ error?: string | undefined;
440
+ }[] | undefined;
441
+ customEmojis?: {
442
+ shortcode: string;
443
+ url: string;
444
+ staticUrl: string;
445
+ visibleInPicker: boolean;
446
+ category: string;
447
+ }[] | undefined;
448
+ language?: string | undefined;
449
+ multiple?: boolean | undefined;
450
+ votersVisible?: boolean | undefined;
451
+ expiresAt?: string | undefined;
452
+ } | {
453
+ type: "event";
454
+ start: string;
455
+ wholeDay: boolean;
456
+ content?: string | undefined;
457
+ sensitive?: boolean | undefined;
458
+ spoilerText?: string | undefined;
459
+ attachments?: {
460
+ type: string;
461
+ url: string;
462
+ previewUrl: string | null;
463
+ textUrl: null;
464
+ filename: string;
465
+ meta: {
466
+ usage?: string | undefined;
467
+ focus?: {
468
+ x: number;
469
+ y: number;
470
+ } | undefined;
471
+ mimetype?: string | undefined;
472
+ size?: number | undefined;
473
+ };
474
+ description?: string | undefined;
475
+ blurhash?: string | undefined;
476
+ status?: "ready" | "failed" | "processing" | undefined;
477
+ error?: string | undefined;
478
+ }[] | undefined;
479
+ customEmojis?: {
480
+ shortcode: string;
481
+ url: string;
482
+ staticUrl: string;
483
+ visibleInPicker: boolean;
484
+ category: string;
485
+ }[] | undefined;
486
+ language?: string | undefined;
487
+ name?: string | undefined;
488
+ timeZone?: string | undefined;
489
+ image?: string | undefined;
490
+ end?: string | undefined;
491
+ maxAttendees?: number | undefined;
492
+ attendeeListPublic?: boolean | undefined;
493
+ moderators?: string[] | undefined;
494
+ jam?: {
495
+ moderators: string[];
496
+ videoEnabled: boolean;
497
+ type: "video-call";
498
+ speakers?: string[] | undefined;
499
+ presenters?: string[] | undefined;
500
+ audience?: string[] | undefined;
501
+ maxSpeakers?: number | undefined;
502
+ maxPresenters?: number | undefined;
503
+ maxAudience?: number | undefined;
504
+ waitingRoom?: boolean | undefined;
505
+ } | undefined;
506
+ physicalLocation?: {
507
+ text: string;
508
+ coordinates?: {
509
+ lat: number;
510
+ lng: number;
511
+ alt?: number | undefined;
512
+ } | undefined;
513
+ } | undefined;
514
+ url?: string | undefined;
515
+ } | {
516
+ type: "article";
517
+ content?: string | undefined;
518
+ sensitive?: boolean | undefined;
519
+ spoilerText?: string | undefined;
520
+ attachments?: {
521
+ type: string;
522
+ url: string;
523
+ previewUrl: string | null;
524
+ textUrl: null;
525
+ filename: string;
526
+ meta: {
527
+ usage?: string | undefined;
528
+ focus?: {
529
+ x: number;
530
+ y: number;
531
+ } | undefined;
532
+ mimetype?: string | undefined;
533
+ size?: number | undefined;
534
+ };
535
+ description?: string | undefined;
536
+ blurhash?: string | undefined;
537
+ status?: "ready" | "failed" | "processing" | undefined;
538
+ error?: string | undefined;
539
+ }[] | undefined;
540
+ customEmojis?: {
541
+ shortcode: string;
542
+ url: string;
543
+ staticUrl: string;
544
+ visibleInPicker: boolean;
545
+ category: string;
546
+ }[] | undefined;
547
+ language?: string | undefined;
548
+ image?: string | undefined;
549
+ title?: string | undefined;
550
+ };
551
+ } | {
552
+ type: "edit";
553
+ data: {
554
+ type: "note";
555
+ content?: string | undefined;
556
+ sensitive?: boolean | undefined;
557
+ spoilerText?: string | undefined;
558
+ attachments?: {
559
+ type: string;
560
+ url: string;
561
+ previewUrl: string | null;
562
+ textUrl: null;
563
+ filename: string;
564
+ meta: {
565
+ usage?: string | undefined;
566
+ focus?: {
567
+ x: number;
568
+ y: number;
569
+ } | undefined;
570
+ mimetype?: string | undefined;
571
+ size?: number | undefined;
572
+ };
573
+ description?: string | undefined;
574
+ blurhash?: string | undefined;
575
+ status?: "ready" | "failed" | "processing" | undefined;
576
+ error?: string | undefined;
577
+ }[] | undefined;
578
+ customEmojis?: {
579
+ shortcode: string;
580
+ url: string;
581
+ staticUrl: string;
582
+ visibleInPicker: boolean;
583
+ category: string;
584
+ }[] | undefined;
585
+ language?: string | undefined;
586
+ } | {
587
+ type: "question";
588
+ options: {
589
+ content: string;
590
+ type: "note";
591
+ }[];
592
+ content?: string | undefined;
593
+ sensitive?: boolean | undefined;
594
+ spoilerText?: string | undefined;
595
+ attachments?: {
596
+ type: string;
597
+ url: string;
598
+ previewUrl: string | null;
599
+ textUrl: null;
600
+ filename: string;
601
+ meta: {
602
+ usage?: string | undefined;
603
+ focus?: {
604
+ x: number;
605
+ y: number;
606
+ } | undefined;
607
+ mimetype?: string | undefined;
608
+ size?: number | undefined;
609
+ };
610
+ description?: string | undefined;
611
+ blurhash?: string | undefined;
612
+ status?: "ready" | "failed" | "processing" | undefined;
613
+ error?: string | undefined;
614
+ }[] | undefined;
615
+ customEmojis?: {
616
+ shortcode: string;
617
+ url: string;
618
+ staticUrl: string;
619
+ visibleInPicker: boolean;
620
+ category: string;
621
+ }[] | undefined;
622
+ language?: string | undefined;
623
+ multiple?: boolean | undefined;
624
+ votersVisible?: boolean | undefined;
625
+ expiresAt?: string | undefined;
626
+ } | {
627
+ type: "event";
628
+ start: string;
629
+ wholeDay: boolean;
630
+ content?: string | undefined;
631
+ sensitive?: boolean | undefined;
632
+ spoilerText?: string | undefined;
633
+ attachments?: {
634
+ type: string;
635
+ url: string;
636
+ previewUrl: string | null;
637
+ textUrl: null;
638
+ filename: string;
639
+ meta: {
640
+ usage?: string | undefined;
641
+ focus?: {
642
+ x: number;
643
+ y: number;
644
+ } | undefined;
645
+ mimetype?: string | undefined;
646
+ size?: number | undefined;
647
+ };
648
+ description?: string | undefined;
649
+ blurhash?: string | undefined;
650
+ status?: "ready" | "failed" | "processing" | undefined;
651
+ error?: string | undefined;
652
+ }[] | undefined;
653
+ customEmojis?: {
654
+ shortcode: string;
655
+ url: string;
656
+ staticUrl: string;
657
+ visibleInPicker: boolean;
658
+ category: string;
659
+ }[] | undefined;
660
+ language?: string | undefined;
661
+ name?: string | undefined;
662
+ timeZone?: string | undefined;
663
+ image?: string | undefined;
664
+ end?: string | undefined;
665
+ maxAttendees?: number | undefined;
666
+ attendeeListPublic?: boolean | undefined;
667
+ moderators?: string[] | undefined;
668
+ jam?: {
669
+ moderators: string[];
670
+ videoEnabled: boolean;
671
+ type: "video-call";
672
+ speakers?: string[] | undefined;
673
+ presenters?: string[] | undefined;
674
+ audience?: string[] | undefined;
675
+ maxSpeakers?: number | undefined;
676
+ maxPresenters?: number | undefined;
677
+ maxAudience?: number | undefined;
678
+ waitingRoom?: boolean | undefined;
679
+ } | undefined;
680
+ physicalLocation?: {
681
+ text: string;
682
+ coordinates?: {
683
+ lat: number;
684
+ lng: number;
685
+ alt?: number | undefined;
686
+ } | undefined;
687
+ } | undefined;
688
+ url?: string | undefined;
689
+ } | {
690
+ type: "article";
691
+ content?: string | undefined;
692
+ sensitive?: boolean | undefined;
693
+ spoilerText?: string | undefined;
694
+ attachments?: {
695
+ type: string;
696
+ url: string;
697
+ previewUrl: string | null;
698
+ textUrl: null;
699
+ filename: string;
700
+ meta: {
701
+ usage?: string | undefined;
702
+ focus?: {
703
+ x: number;
704
+ y: number;
705
+ } | undefined;
706
+ mimetype?: string | undefined;
707
+ size?: number | undefined;
708
+ };
709
+ description?: string | undefined;
710
+ blurhash?: string | undefined;
711
+ status?: "ready" | "failed" | "processing" | undefined;
712
+ error?: string | undefined;
713
+ }[] | undefined;
714
+ customEmojis?: {
715
+ shortcode: string;
716
+ url: string;
717
+ staticUrl: string;
718
+ visibleInPicker: boolean;
719
+ category: string;
720
+ }[] | undefined;
721
+ language?: string | undefined;
722
+ image?: string | undefined;
723
+ title?: string | undefined;
724
+ };
725
+ } | {
726
+ type: "delete";
727
+ data: any;
728
+ } | {
729
+ type: "answer";
730
+ data: {
731
+ selection: number[];
732
+ };
733
+ } | {
734
+ type: "rsvp";
735
+ data: {
736
+ response: "no" | "yes" | "tentative" | "removed";
737
+ };
738
+ }) & {
739
+ _from: string;
740
+ _to: string;
741
+ }>>;
742
+ export declare const entryDisconnector: (db: import("../../db").PgDb, from: Profile, to: Post) => Promise<void>;
743
+ export declare const replyConnector: (db: import("../../db").PgDb, from: Post, to: Post, data?: {
744
+ id?: string;
745
+ }) => Promise<import("../../db/pg/map").WithId<{
746
+ _from: string;
747
+ _to: string;
748
+ }>>;
749
+ export declare const groupConnector: (db: import("../../db").PgDb, from: Post, to: {
750
+ handle: string;
751
+ capabilities: Record<string, {
752
+ add?: string[] | undefined;
753
+ remove?: string[] | undefined;
754
+ } | undefined>;
755
+ membersCount: number;
756
+ id: string;
757
+ createdAt: string;
758
+ updatedAt: string;
759
+ avatar?: string | null | undefined;
760
+ header?: string | null | undefined;
761
+ displayName?: string | undefined;
762
+ description?: string | undefined;
763
+ rules?: string | undefined;
764
+ pinnedPostId?: string | undefined;
765
+ discoverable?: boolean | undefined;
766
+ lastPostAt?: string | null | undefined;
767
+ deletedAt?: string | null | undefined;
768
+ }, data?: {
769
+ id?: string;
770
+ }) => Promise<import("../../db/pg/map").WithId<{
771
+ _from: string;
772
+ _to: string;
773
+ }>>;
774
+ export declare const audienceConnector: (db: import("../../db").PgDb, from: Post, to: Profile, data?: {
775
+ id?: string;
776
+ }) => Promise<import("../../db/pg/map").WithId<{
777
+ _from: string;
778
+ _to: string;
779
+ }>>;
780
+ export declare const audienceConnectionFinder: (db: import("../../db").PgDb, from: Post, to: Profile) => Promise<{} | undefined>;
781
+ export declare const hashtagConnector: (db: import("../../db").PgDb, from: Post, to: Hashtag, data?: {
782
+ id?: string;
783
+ }) => Promise<import("../../db/pg/map").WithId<{
784
+ _from: string;
785
+ _to: string;
786
+ }>>;
787
+ export declare const hashtagDisconnector: (db: import("../../db").PgDb, from: Post, to: Hashtag) => Promise<void>;
788
+ export declare const mentionConnector: (db: import("../../db").PgDb, from: Post, to: Profile, data?: {
789
+ text?: string | undefined;
790
+ } & {
791
+ id?: string;
792
+ }) => Promise<import("../../db/pg/map").WithId<{
793
+ text?: string | undefined;
794
+ } & {
795
+ _from: string;
796
+ _to: string;
797
+ }>>;
798
+ export declare const mentionsConnectionFinder: (db: import("../../db").PgDb, from: Post, to: Profile) => Promise<{} | undefined>;
799
+ export declare const repostConnector: (db: import("../../db").PgDb, from: Post, to: Post, data?: {
800
+ id?: string;
801
+ }) => Promise<import("../../db/pg/map").WithId<{
802
+ _from: string;
803
+ _to: string;
804
+ }>>;
805
+ export declare const reactionConnector: (db: import("../../db").PgDb, from: Profile, to: Post, data?: {
806
+ reaction: "👍";
807
+ } & {
808
+ id?: string;
809
+ }) => Promise<import("../../db/pg/map").WithId<{
810
+ reaction: "👍";
811
+ } & {
812
+ _from: string;
813
+ _to: string;
814
+ }>>;
815
+ export declare const reactionDisconnector: (db: import("../../db").PgDb, from: Profile, to: Post) => Promise<void>;
816
+ export declare const bookmarkConnector: (db: import("../../db").PgDb, from: Profile, to: Post, data?: {
817
+ id?: string;
818
+ }) => Promise<import("../../db/pg/map").WithId<{
819
+ _from: string;
820
+ _to: string;
821
+ }>>;
822
+ export declare const bookmarkDisconnector: (db: import("../../db").PgDb, from: Profile, to: Post) => Promise<void>;
823
+ export declare const postSeenConnector: (db: import("../../db").PgDb, from: Profile, to: Post, data?: {
824
+ id?: string;
825
+ }) => Promise<import("../../db/pg/map").WithId<{
826
+ _from: string;
827
+ _to: string;
828
+ }>>;
829
+ export declare const transformPost: (post: DbPost, currentProfile?: {
830
+ id: string;
831
+ }) => Promise<PostWithMeta>;
832
+ export declare const toFilteredPostsList: (queryResult: PgQueryResult<DbPost>, options: {
833
+ authData: AuthorizationData;
834
+ limit?: number;
835
+ offset?: number;
836
+ filters?: ObjectFilter<PostWithMeta>[];
837
+ }) => Promise<PostWithMeta[]>;