founder-schema 0.25.0 → 0.27.0

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 (75) hide show
  1. package/dist/core/errors.d.ts +3 -1
  2. package/dist/core/errors.d.ts.map +1 -1
  3. package/dist/core/errors.js +5 -0
  4. package/dist/core/errors.js.map +1 -1
  5. package/dist/core/limits.d.ts +8 -0
  6. package/dist/core/limits.d.ts.map +1 -1
  7. package/dist/core/limits.js +8 -0
  8. package/dist/core/limits.js.map +1 -1
  9. package/dist/core/responses.d.ts +2 -0
  10. package/dist/core/responses.d.ts.map +1 -1
  11. package/dist/core/validation.d.ts +5 -0
  12. package/dist/core/validation.d.ts.map +1 -1
  13. package/dist/core/validation.js +5 -0
  14. package/dist/core/validation.js.map +1 -1
  15. package/dist/domains/audit/audit.d.ts +4 -1
  16. package/dist/domains/audit/audit.d.ts.map +1 -1
  17. package/dist/domains/audit/audit.js +6 -0
  18. package/dist/domains/audit/audit.js.map +1 -1
  19. package/dist/domains/blocks/blocks.d.ts +64 -0
  20. package/dist/domains/blocks/blocks.d.ts.map +1 -0
  21. package/dist/domains/blocks/blocks.js +44 -0
  22. package/dist/domains/blocks/blocks.js.map +1 -0
  23. package/dist/domains/communities/communities.d.ts +9 -9
  24. package/dist/domains/contributions/contributions.d.ts +21 -3
  25. package/dist/domains/contributions/contributions.d.ts.map +1 -1
  26. package/dist/domains/contributions/contributions.js +21 -4
  27. package/dist/domains/contributions/contributions.js.map +1 -1
  28. package/dist/domains/discover/discover.d.ts +88 -0
  29. package/dist/domains/discover/discover.d.ts.map +1 -1
  30. package/dist/domains/feed/feed.d.ts +583 -35
  31. package/dist/domains/feed/feed.d.ts.map +1 -1
  32. package/dist/domains/feed/feed.js +214 -28
  33. package/dist/domains/feed/feed.js.map +1 -1
  34. package/dist/domains/feed/mentions.d.ts +86 -0
  35. package/dist/domains/feed/mentions.d.ts.map +1 -0
  36. package/dist/domains/feed/mentions.js +93 -0
  37. package/dist/domains/feed/mentions.js.map +1 -0
  38. package/dist/domains/follows/follows.d.ts +186 -3
  39. package/dist/domains/follows/follows.d.ts.map +1 -1
  40. package/dist/domains/follows/follows.js +15 -4
  41. package/dist/domains/follows/follows.js.map +1 -1
  42. package/dist/domains/follows/relation.d.ts +24 -0
  43. package/dist/domains/follows/relation.d.ts.map +1 -1
  44. package/dist/domains/follows/relation.js +24 -0
  45. package/dist/domains/follows/relation.js.map +1 -1
  46. package/dist/domains/moderation/moderation.d.ts +9 -2
  47. package/dist/domains/moderation/moderation.d.ts.map +1 -1
  48. package/dist/domains/moderation/moderation.js +6 -2
  49. package/dist/domains/moderation/moderation.js.map +1 -1
  50. package/dist/domains/notifications/notifications.d.ts +28 -2
  51. package/dist/domains/notifications/notifications.d.ts.map +1 -1
  52. package/dist/domains/notifications/notifications.js +24 -0
  53. package/dist/domains/notifications/notifications.js.map +1 -1
  54. package/dist/domains/onboarding/onboarding-answers.d.ts +12 -8
  55. package/dist/domains/onboarding/onboarding-answers.d.ts.map +1 -1
  56. package/dist/domains/onboarding/onboarding-answers.js +20 -21
  57. package/dist/domains/onboarding/onboarding-answers.js.map +1 -1
  58. package/dist/domains/onboarding/onboarding.d.ts +210 -174
  59. package/dist/domains/onboarding/onboarding.d.ts.map +1 -1
  60. package/dist/domains/onboarding/onboarding.js +104 -70
  61. package/dist/domains/onboarding/onboarding.js.map +1 -1
  62. package/dist/domains/products/products.d.ts +3 -3
  63. package/dist/domains/profile/founder-profile.d.ts +144 -1
  64. package/dist/domains/profile/founder-profile.d.ts.map +1 -1
  65. package/dist/domains/profile/founder-profile.js +55 -2
  66. package/dist/domains/profile/founder-profile.js.map +1 -1
  67. package/dist/domains/profile/my-profile.d.ts +119 -40
  68. package/dist/domains/profile/my-profile.d.ts.map +1 -1
  69. package/dist/domains/profile/my-profile.js +28 -14
  70. package/dist/domains/profile/my-profile.js.map +1 -1
  71. package/dist/index.d.ts +9 -7
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +13 -7
  74. package/dist/index.js.map +1 -1
  75. package/package.json +1 -1
@@ -47,13 +47,18 @@ export declare const POST_MAX_BODY_CHARS = 5000;
47
47
  */
48
48
  export declare const POST_MAX_MEDIA = 10;
49
49
  /**
50
- * Topics per item.
50
+ * Topics per post or poll.
51
51
  *
52
- * Capped low on purpose: a post tagged with everything is about nothing, and
53
- * one tagged with ten matches every member, which is how a relevance feature
54
- * turns back into a chronological one.
52
+ * 5 since the user's ruling of 2026-11-23 ("let user choose up to 5 topics for
53
+ * poll and post, not just 3"), which also made choosing at least one mandatory
54
+ * on a NEW post or poll (`requiredTopicsSchema`). Still capped: a post tagged
55
+ * with everything is about nothing, and one tagged with ten matches every
56
+ * member, which is how a relevance feature turns back into a chronological one.
57
+ *
58
+ * Feed content only. A product's and a community's topics keep their own caps
59
+ * (`PRODUCT_TOPICS_MAX`, `COMMUNITY_TOPICS_MAX`).
55
60
  */
56
- export declare const MAX_TOPICS = 3;
61
+ export declare const MAX_TOPICS = 5;
57
62
  export declare const COMMENT_MAX_BODY_CHARS = 2000;
58
63
  export declare const POLL_QUESTION_MAX_CHARS = 280;
59
64
  export declare const POLL_OPTION_MAX_CHARS = 80;
@@ -103,6 +108,16 @@ export type ContentMediaKind = z.infer<typeof contentMediaKindSchema>;
103
108
  * accepted comments, so every answer about a comment broke this contract.
104
109
  */
105
110
  export declare const ENGAGEMENT_TARGET_KIND_VALUES: readonly ["post", "poll", "comment"];
111
+ /**
112
+ * An up or down vote (2026-11-23): one per member per post, poll or comment,
113
+ * counted into the item's net `score`. See `setScoreVoteBodySchema`.
114
+ */
115
+ export declare const SCORE_VOTE_VALUES: readonly ["up", "down"];
116
+ export declare const scoreVoteSchema: z.ZodEnum<{
117
+ up: "up";
118
+ down: "down";
119
+ }>;
120
+ export type ScoreVote = z.infer<typeof scoreVoteSchema>;
106
121
  export declare const engagementTargetKindSchema: z.ZodEnum<{
107
122
  post: "post";
108
123
  poll: "poll";
@@ -111,12 +126,14 @@ export declare const engagementTargetKindSchema: z.ZodEnum<{
111
126
  export type EngagementTargetKind = z.infer<typeof engagementTargetKindSchema>;
112
127
  /**
113
128
  * What a member can REPORT (0.6.0): everything a reaction can reach, plus a
114
- * product page and a review. Each has its own report route; the answer and the
115
- * moderation queue use this one list.
129
+ * product page and a review, and (2026-11-23, Jansathi's user reports) a
130
+ * MEMBER themself (`POST /founders/:userId/report`). Each has its own report
131
+ * route; the answer and the moderation queue use this one list.
116
132
  */
117
- export declare const REPORT_TARGET_KIND_VALUES: readonly ["post", "poll", "comment", "product", "review"];
133
+ export declare const REPORT_TARGET_KIND_VALUES: readonly ["post", "poll", "comment", "product", "review", "member"];
118
134
  export declare const reportTargetKindSchema: z.ZodEnum<{
119
135
  product: "product";
136
+ member: "member";
120
137
  post: "post";
121
138
  poll: "poll";
122
139
  comment: "comment";
@@ -165,17 +182,62 @@ export type PickableReaction = z.infer<typeof pickableReactionSchema>;
165
182
  /**
166
183
  * Feed ordering.
167
184
  *
168
- * `new` is the default here, unlike Jansathi where `hot` leads. A hot ranking
169
- * needs volume to be meaningful, and a brand-new network ranking a handful of
170
- * posts by a blended score mostly hides the newest thing somebody just wrote.
171
- * Revisit when there is enough content for `hot` to mean anything.
185
+ * new newest first. Still the default here, unlike Jansathi where `hot`
186
+ * leads: a brand-new network ranking a handful of posts by a blended
187
+ * score mostly hides the newest thing somebody just wrote.
188
+ * top highest net `score` (up minus down votes) first, all time; ties
189
+ * newest first. Until 2026-11-23 it was "most reacted".
190
+ * hot (2026-11-23, Jansathi's) a score that decays with age:
191
+ * `(score + 2 * comments) / (hours + 2) ^ 1.5`, recomputed by the server
192
+ * every few minutes for items under `HOT_WINDOW_DAYS` old; older items
193
+ * sit at 0, below anything recent with a positive score.
172
194
  */
173
- export declare const FEED_SORT_VALUES: readonly ["new", "top"];
195
+ export declare const FEED_SORT_VALUES: readonly ["new", "top", "hot"];
196
+ /** Items older than this are not re-scored for `hot`: by then the decay has taken them to ~0. */
197
+ export declare const HOT_WINDOW_DAYS = 7;
174
198
  export declare const feedSortSchema: z.ZodEnum<{
175
199
  new: "new";
176
200
  top: "top";
201
+ hot: "hot";
177
202
  }>;
178
203
  export type FeedSort = z.infer<typeof feedSortSchema>;
204
+ /**
205
+ * When a poll's results are shown (2026-11-23, from Jansathi), chosen by its
206
+ * author when they make it and never changed after:
207
+ *
208
+ * live as people vote (the default, and every poll made before this)
209
+ * after_close only once it has closed: until then every option's count is
210
+ * sent as 0 and only how many have voted is shown, so early
211
+ * votes do not sway later ones
212
+ *
213
+ * Applies to everyone, the author included: the author has no special view.
214
+ */
215
+ export declare const POLL_RESULTS_VISIBILITY_VALUES: readonly ["live", "after_close"];
216
+ export declare const pollResultsVisibilitySchema: z.ZodEnum<{
217
+ live: "live";
218
+ after_close: "after_close";
219
+ }>;
220
+ export type PollResultsVisibility = z.infer<typeof pollResultsVisibilitySchema>;
221
+ /**
222
+ * How a thread's comments are ordered (2026-11-23, from Jansathi), chosen by
223
+ * the reader with a switch at the top of the thread:
224
+ *
225
+ * top most engaged first (reactions; ties newest first). The default.
226
+ * newest newest first
227
+ * oldest oldest first: the conversation as it happened (the only order
228
+ * before this)
229
+ *
230
+ * Top-level comments only: replies under a comment always read oldest first.
231
+ * Each order pages with its own cursor: a cursor from one order is not
232
+ * accepted by another (the client starts again when the reader switches).
233
+ */
234
+ export declare const COMMENT_SORT_VALUES: readonly ["top", "newest", "oldest"];
235
+ export declare const commentSortSchema: z.ZodEnum<{
236
+ top: "top";
237
+ newest: "newest";
238
+ oldest: "oldest";
239
+ }>;
240
+ export type CommentSort = z.infer<typeof commentSortSchema>;
179
241
  /**
180
242
  * Counts keyed by reaction type, e.g. `{ like: 4, celebrate: 1 }`. Only the
181
243
  * reactions an item actually has need appear.
@@ -292,6 +354,10 @@ export declare const viewerStateSchema: z.ZodObject<{
292
354
  love: "love";
293
355
  haha: "haha";
294
356
  }>>;
357
+ myVote: z.ZodNullable<z.ZodEnum<{
358
+ up: "up";
359
+ down: "down";
360
+ }>>;
295
361
  bookmarked: z.ZodBoolean;
296
362
  isAuthor: z.ZodBoolean;
297
363
  canEdit: z.ZodBoolean;
@@ -313,6 +379,10 @@ export declare const contentViewerStateSchema: z.ZodObject<{
313
379
  love: "love";
314
380
  haha: "haha";
315
381
  }>>;
382
+ myVote: z.ZodNullable<z.ZodEnum<{
383
+ up: "up";
384
+ down: "down";
385
+ }>>;
316
386
  bookmarked: z.ZodBoolean;
317
387
  isAuthor: z.ZodBoolean;
318
388
  canEdit: z.ZodBoolean;
@@ -385,11 +455,10 @@ export type RepostedSource = z.infer<typeof repostedSourceSchema>;
385
455
  *
386
456
  * Counts are denormalised onto the row so one document serves a whole card.
387
457
  *
388
- * No `score` and no up/down vote. Jansathi's signed score exists to rank civic
389
- * content by community judgement, and a downvote arrow on a founder's first
390
- * post is a different product. Reactions and comments are the engagement axes
391
- * here. Adding a score later is additive; removing a visible downvote after
392
- * members have used it is not.
458
+ * `score` (2026-11-23): the user decided to bring Jansathi's up and down votes
459
+ * over, on posts, polls and comments. It is the NET count, up minus down, and
460
+ * can be negative. It ranks the `top` and `hot` sorts; reactions stay the
461
+ * expressive layer and rank nothing.
393
462
  */
394
463
  export declare const feedPostSchema: z.ZodObject<{
395
464
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -404,6 +473,10 @@ export declare const feedPostSchema: z.ZodObject<{
404
473
  headline: z.ZodOptional<z.ZodString>;
405
474
  }, z.core.$strip>;
406
475
  text: z.ZodString;
476
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
477
+ handle: z.ZodString;
478
+ username: z.ZodString;
479
+ }, z.core.$strip>>>;
407
480
  media: z.ZodArray<z.ZodObject<{
408
481
  id: z.ZodString;
409
482
  url: z.ZodURL;
@@ -430,7 +503,6 @@ export declare const feedPostSchema: z.ZodObject<{
430
503
  marketing: "marketing";
431
504
  supply_chain: "supply_chain";
432
505
  fundraising: "fundraising";
433
- social_enterprise: "social_enterprise";
434
506
  mentoring: "mentoring";
435
507
  leadership: "leadership";
436
508
  networking: "networking";
@@ -489,6 +561,7 @@ export declare const feedPostSchema: z.ZodObject<{
489
561
  environmental: "environmental";
490
562
  women_empowerment: "women_empowerment";
491
563
  community_service: "community_service";
564
+ social_enterprise: "social_enterprise";
492
565
  education_access: "education_access";
493
566
  }>>;
494
567
  product: z.ZodOptional<z.ZodObject<{
@@ -573,6 +646,7 @@ export declare const feedPostSchema: z.ZodObject<{
573
646
  love: "love";
574
647
  haha: "haha";
575
648
  }> & z.core.$partial, z.ZodNumber>;
649
+ score: z.ZodNumber;
576
650
  repostCount: z.ZodNumber;
577
651
  createdAt: z.ZodISODateTime;
578
652
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -586,6 +660,10 @@ export declare const feedPostSchema: z.ZodObject<{
586
660
  love: "love";
587
661
  haha: "haha";
588
662
  }>>;
663
+ myVote: z.ZodNullable<z.ZodEnum<{
664
+ up: "up";
665
+ down: "down";
666
+ }>>;
589
667
  bookmarked: z.ZodBoolean;
590
668
  isAuthor: z.ZodBoolean;
591
669
  canEdit: z.ZodBoolean;
@@ -613,8 +691,10 @@ export type PollOption = z.infer<typeof pollOptionSchema>;
613
691
  * own records keyed by (poll, voter) and a post has nothing equivalent.
614
692
  *
615
693
  * Polls are not editable. Changing a question or an option after a vote has
616
- * been cast silently re-purposes that vote. A poll closes at its `closesAt`;
617
- * there is no closing it early.
694
+ * been cast silently re-purposes that vote. A poll closes at its `closesAt`,
695
+ * or earlier when its author closes it (2026-11-23, `POST
696
+ * /feed/poll/:pollId/close`; staff may too, audited): `closesAt` becomes that
697
+ * moment, so a closed poll reads the same however it closed.
618
698
  */
619
699
  export declare const feedPollSchema: z.ZodObject<{
620
700
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -629,6 +709,10 @@ export declare const feedPollSchema: z.ZodObject<{
629
709
  headline: z.ZodOptional<z.ZodString>;
630
710
  }, z.core.$strip>;
631
711
  question: z.ZodString;
712
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
713
+ handle: z.ZodString;
714
+ username: z.ZodString;
715
+ }, z.core.$strip>>>;
632
716
  options: z.ZodArray<z.ZodObject<{
633
717
  index: z.ZodNumber;
634
718
  label: z.ZodString;
@@ -638,6 +722,10 @@ export declare const feedPollSchema: z.ZodObject<{
638
722
  allowsMultipleChoices: z.ZodBoolean;
639
723
  closesAt: z.ZodISODateTime;
640
724
  isClosed: z.ZodBoolean;
725
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
726
+ live: "live";
727
+ after_close: "after_close";
728
+ }>>;
641
729
  topics: z.ZodArray<z.ZodEnum<{
642
730
  ai_ml: "ai_ml";
643
731
  b2b_saas: "b2b_saas";
@@ -649,7 +737,6 @@ export declare const feedPollSchema: z.ZodObject<{
649
737
  marketing: "marketing";
650
738
  supply_chain: "supply_chain";
651
739
  fundraising: "fundraising";
652
- social_enterprise: "social_enterprise";
653
740
  mentoring: "mentoring";
654
741
  leadership: "leadership";
655
742
  networking: "networking";
@@ -708,6 +795,7 @@ export declare const feedPollSchema: z.ZodObject<{
708
795
  environmental: "environmental";
709
796
  women_empowerment: "women_empowerment";
710
797
  community_service: "community_service";
798
+ social_enterprise: "social_enterprise";
711
799
  education_access: "education_access";
712
800
  }>>;
713
801
  product: z.ZodOptional<z.ZodObject<{
@@ -745,6 +833,7 @@ export declare const feedPollSchema: z.ZodObject<{
745
833
  love: "love";
746
834
  haha: "haha";
747
835
  }> & z.core.$partial, z.ZodNumber>;
836
+ score: z.ZodNumber;
748
837
  repostCount: z.ZodNumber;
749
838
  createdAt: z.ZodISODateTime;
750
839
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -758,6 +847,10 @@ export declare const feedPollSchema: z.ZodObject<{
758
847
  love: "love";
759
848
  haha: "haha";
760
849
  }>>;
850
+ myVote: z.ZodNullable<z.ZodEnum<{
851
+ up: "up";
852
+ down: "down";
853
+ }>>;
761
854
  bookmarked: z.ZodBoolean;
762
855
  isAuthor: z.ZodBoolean;
763
856
  canEdit: z.ZodBoolean;
@@ -767,6 +860,7 @@ export declare const feedPollSchema: z.ZodObject<{
767
860
  canRepost: z.ZodBoolean;
768
861
  canTakePart: z.ZodOptional<z.ZodBoolean>;
769
862
  votedOptionIndices: z.ZodArray<z.ZodNumber>;
863
+ canClose: z.ZodOptional<z.ZodBoolean>;
770
864
  }, z.core.$strip>>;
771
865
  }, z.core.$strip>;
772
866
  export type FeedPoll = z.infer<typeof feedPollSchema>;
@@ -788,6 +882,10 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
788
882
  headline: z.ZodOptional<z.ZodString>;
789
883
  }, z.core.$strip>;
790
884
  text: z.ZodString;
885
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
886
+ handle: z.ZodString;
887
+ username: z.ZodString;
888
+ }, z.core.$strip>>>;
791
889
  media: z.ZodArray<z.ZodObject<{
792
890
  id: z.ZodString;
793
891
  url: z.ZodURL;
@@ -814,7 +912,6 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
814
912
  marketing: "marketing";
815
913
  supply_chain: "supply_chain";
816
914
  fundraising: "fundraising";
817
- social_enterprise: "social_enterprise";
818
915
  mentoring: "mentoring";
819
916
  leadership: "leadership";
820
917
  networking: "networking";
@@ -873,6 +970,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
873
970
  environmental: "environmental";
874
971
  women_empowerment: "women_empowerment";
875
972
  community_service: "community_service";
973
+ social_enterprise: "social_enterprise";
876
974
  education_access: "education_access";
877
975
  }>>;
878
976
  product: z.ZodOptional<z.ZodObject<{
@@ -957,6 +1055,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
957
1055
  love: "love";
958
1056
  haha: "haha";
959
1057
  }> & z.core.$partial, z.ZodNumber>;
1058
+ score: z.ZodNumber;
960
1059
  repostCount: z.ZodNumber;
961
1060
  createdAt: z.ZodISODateTime;
962
1061
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -970,6 +1069,10 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
970
1069
  love: "love";
971
1070
  haha: "haha";
972
1071
  }>>;
1072
+ myVote: z.ZodNullable<z.ZodEnum<{
1073
+ up: "up";
1074
+ down: "down";
1075
+ }>>;
973
1076
  bookmarked: z.ZodBoolean;
974
1077
  isAuthor: z.ZodBoolean;
975
1078
  canEdit: z.ZodBoolean;
@@ -992,6 +1095,10 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
992
1095
  headline: z.ZodOptional<z.ZodString>;
993
1096
  }, z.core.$strip>;
994
1097
  question: z.ZodString;
1098
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1099
+ handle: z.ZodString;
1100
+ username: z.ZodString;
1101
+ }, z.core.$strip>>>;
995
1102
  options: z.ZodArray<z.ZodObject<{
996
1103
  index: z.ZodNumber;
997
1104
  label: z.ZodString;
@@ -1001,6 +1108,10 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1001
1108
  allowsMultipleChoices: z.ZodBoolean;
1002
1109
  closesAt: z.ZodISODateTime;
1003
1110
  isClosed: z.ZodBoolean;
1111
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
1112
+ live: "live";
1113
+ after_close: "after_close";
1114
+ }>>;
1004
1115
  topics: z.ZodArray<z.ZodEnum<{
1005
1116
  ai_ml: "ai_ml";
1006
1117
  b2b_saas: "b2b_saas";
@@ -1012,7 +1123,6 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1012
1123
  marketing: "marketing";
1013
1124
  supply_chain: "supply_chain";
1014
1125
  fundraising: "fundraising";
1015
- social_enterprise: "social_enterprise";
1016
1126
  mentoring: "mentoring";
1017
1127
  leadership: "leadership";
1018
1128
  networking: "networking";
@@ -1071,6 +1181,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1071
1181
  environmental: "environmental";
1072
1182
  women_empowerment: "women_empowerment";
1073
1183
  community_service: "community_service";
1184
+ social_enterprise: "social_enterprise";
1074
1185
  education_access: "education_access";
1075
1186
  }>>;
1076
1187
  product: z.ZodOptional<z.ZodObject<{
@@ -1108,6 +1219,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1108
1219
  love: "love";
1109
1220
  haha: "haha";
1110
1221
  }> & z.core.$partial, z.ZodNumber>;
1222
+ score: z.ZodNumber;
1111
1223
  repostCount: z.ZodNumber;
1112
1224
  createdAt: z.ZodISODateTime;
1113
1225
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1121,6 +1233,10 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1121
1233
  love: "love";
1122
1234
  haha: "haha";
1123
1235
  }>>;
1236
+ myVote: z.ZodNullable<z.ZodEnum<{
1237
+ up: "up";
1238
+ down: "down";
1239
+ }>>;
1124
1240
  bookmarked: z.ZodBoolean;
1125
1241
  isAuthor: z.ZodBoolean;
1126
1242
  canEdit: z.ZodBoolean;
@@ -1130,6 +1246,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1130
1246
  canRepost: z.ZodBoolean;
1131
1247
  canTakePart: z.ZodOptional<z.ZodBoolean>;
1132
1248
  votedOptionIndices: z.ZodArray<z.ZodNumber>;
1249
+ canClose: z.ZodOptional<z.ZodBoolean>;
1133
1250
  }, z.core.$strip>>;
1134
1251
  }, z.core.$strip>], "contentKind">;
1135
1252
  export type FeedItem = z.infer<typeof feedItemSchema>;
@@ -1156,6 +1273,10 @@ export declare const feedCommentSchema: z.ZodObject<{
1156
1273
  headline: z.ZodOptional<z.ZodString>;
1157
1274
  }, z.core.$strip>;
1158
1275
  text: z.ZodString;
1276
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1277
+ handle: z.ZodString;
1278
+ username: z.ZodString;
1279
+ }, z.core.$strip>>>;
1159
1280
  replyCount: z.ZodNumber;
1160
1281
  reactionCounts: z.ZodRecord<z.ZodEnum<{
1161
1282
  support: "support";
@@ -1166,7 +1287,9 @@ export declare const feedCommentSchema: z.ZodObject<{
1166
1287
  love: "love";
1167
1288
  haha: "haha";
1168
1289
  }> & z.core.$partial, z.ZodNumber>;
1290
+ score: z.ZodNumber;
1169
1291
  helpfulAt: z.ZodNullable<z.ZodISODateTime>;
1292
+ byItemAuthor: z.ZodDefault<z.ZodBoolean>;
1170
1293
  createdAt: z.ZodISODateTime;
1171
1294
  editedAt: z.ZodNullable<z.ZodISODateTime>;
1172
1295
  viewer: z.ZodOptional<z.ZodObject<{
@@ -1182,6 +1305,10 @@ export declare const feedCommentSchema: z.ZodObject<{
1182
1305
  love: "love";
1183
1306
  haha: "haha";
1184
1307
  }>>;
1308
+ myVote: z.ZodNullable<z.ZodEnum<{
1309
+ up: "up";
1310
+ down: "down";
1311
+ }>>;
1185
1312
  isAuthor: z.ZodBoolean;
1186
1313
  canMarkHelpful: z.ZodBoolean;
1187
1314
  }, z.core.$strip>>;
@@ -1206,16 +1333,37 @@ export declare const feedQuerySchema: z.ZodObject<{
1206
1333
  sort: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
1207
1334
  new: "new";
1208
1335
  top: "top";
1336
+ hot: "hot";
1209
1337
  }>>, unknown>;
1210
1338
  interests: z.ZodPreprocess<z.ZodDefault<z.ZodCodec<z.ZodString, z.ZodBoolean>>, unknown>;
1211
1339
  }, z.core.$strip>;
1212
1340
  export type FeedQuery = z.infer<typeof feedQuerySchema>;
1213
1341
  export type FeedQueryInput = z.input<typeof feedQuerySchema>;
1342
+ /**
1343
+ * `GET /api/v1/communities/:communityId/feed` (2026-11-23: it takes the
1344
+ * feed's `sort` too, `new` by default as before). No `interests`: a community
1345
+ * is already one subject.
1346
+ */
1347
+ export declare const communityFeedQuerySchema: z.ZodObject<{
1348
+ limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
1349
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1350
+ sort: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
1351
+ new: "new";
1352
+ top: "top";
1353
+ hot: "hot";
1354
+ }>>, unknown>;
1355
+ }, z.core.$strip>;
1356
+ export type CommunityFeedQuery = z.infer<typeof communityFeedQuerySchema>;
1214
1357
  /** `GET /api/v1/feed/:contentKind/:contentId/comments`. */
1215
1358
  export declare const commentsQuerySchema: z.ZodObject<{
1216
1359
  limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
1217
1360
  cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1218
1361
  parentCommentId: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, unknown>;
1362
+ sort: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
1363
+ top: "top";
1364
+ newest: "newest";
1365
+ oldest: "oldest";
1366
+ }>>, unknown>;
1219
1367
  }, z.core.$strip>;
1220
1368
  export type CommentsQuery = z.infer<typeof commentsQuerySchema>;
1221
1369
  export type CommentsQueryInput = z.input<typeof commentsQuerySchema>;
@@ -1308,6 +1456,10 @@ export declare const feedPageSchema: z.ZodObject<{
1308
1456
  headline: z.ZodOptional<z.ZodString>;
1309
1457
  }, z.core.$strip>;
1310
1458
  text: z.ZodString;
1459
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1460
+ handle: z.ZodString;
1461
+ username: z.ZodString;
1462
+ }, z.core.$strip>>>;
1311
1463
  media: z.ZodArray<z.ZodObject<{
1312
1464
  id: z.ZodString;
1313
1465
  url: z.ZodURL;
@@ -1334,7 +1486,6 @@ export declare const feedPageSchema: z.ZodObject<{
1334
1486
  marketing: "marketing";
1335
1487
  supply_chain: "supply_chain";
1336
1488
  fundraising: "fundraising";
1337
- social_enterprise: "social_enterprise";
1338
1489
  mentoring: "mentoring";
1339
1490
  leadership: "leadership";
1340
1491
  networking: "networking";
@@ -1393,6 +1544,7 @@ export declare const feedPageSchema: z.ZodObject<{
1393
1544
  environmental: "environmental";
1394
1545
  women_empowerment: "women_empowerment";
1395
1546
  community_service: "community_service";
1547
+ social_enterprise: "social_enterprise";
1396
1548
  education_access: "education_access";
1397
1549
  }>>;
1398
1550
  product: z.ZodOptional<z.ZodObject<{
@@ -1477,6 +1629,7 @@ export declare const feedPageSchema: z.ZodObject<{
1477
1629
  love: "love";
1478
1630
  haha: "haha";
1479
1631
  }> & z.core.$partial, z.ZodNumber>;
1632
+ score: z.ZodNumber;
1480
1633
  repostCount: z.ZodNumber;
1481
1634
  createdAt: z.ZodISODateTime;
1482
1635
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1490,6 +1643,10 @@ export declare const feedPageSchema: z.ZodObject<{
1490
1643
  love: "love";
1491
1644
  haha: "haha";
1492
1645
  }>>;
1646
+ myVote: z.ZodNullable<z.ZodEnum<{
1647
+ up: "up";
1648
+ down: "down";
1649
+ }>>;
1493
1650
  bookmarked: z.ZodBoolean;
1494
1651
  isAuthor: z.ZodBoolean;
1495
1652
  canEdit: z.ZodBoolean;
@@ -1512,6 +1669,10 @@ export declare const feedPageSchema: z.ZodObject<{
1512
1669
  headline: z.ZodOptional<z.ZodString>;
1513
1670
  }, z.core.$strip>;
1514
1671
  question: z.ZodString;
1672
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1673
+ handle: z.ZodString;
1674
+ username: z.ZodString;
1675
+ }, z.core.$strip>>>;
1515
1676
  options: z.ZodArray<z.ZodObject<{
1516
1677
  index: z.ZodNumber;
1517
1678
  label: z.ZodString;
@@ -1521,6 +1682,10 @@ export declare const feedPageSchema: z.ZodObject<{
1521
1682
  allowsMultipleChoices: z.ZodBoolean;
1522
1683
  closesAt: z.ZodISODateTime;
1523
1684
  isClosed: z.ZodBoolean;
1685
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
1686
+ live: "live";
1687
+ after_close: "after_close";
1688
+ }>>;
1524
1689
  topics: z.ZodArray<z.ZodEnum<{
1525
1690
  ai_ml: "ai_ml";
1526
1691
  b2b_saas: "b2b_saas";
@@ -1532,7 +1697,6 @@ export declare const feedPageSchema: z.ZodObject<{
1532
1697
  marketing: "marketing";
1533
1698
  supply_chain: "supply_chain";
1534
1699
  fundraising: "fundraising";
1535
- social_enterprise: "social_enterprise";
1536
1700
  mentoring: "mentoring";
1537
1701
  leadership: "leadership";
1538
1702
  networking: "networking";
@@ -1591,6 +1755,7 @@ export declare const feedPageSchema: z.ZodObject<{
1591
1755
  environmental: "environmental";
1592
1756
  women_empowerment: "women_empowerment";
1593
1757
  community_service: "community_service";
1758
+ social_enterprise: "social_enterprise";
1594
1759
  education_access: "education_access";
1595
1760
  }>>;
1596
1761
  product: z.ZodOptional<z.ZodObject<{
@@ -1628,6 +1793,7 @@ export declare const feedPageSchema: z.ZodObject<{
1628
1793
  love: "love";
1629
1794
  haha: "haha";
1630
1795
  }> & z.core.$partial, z.ZodNumber>;
1796
+ score: z.ZodNumber;
1631
1797
  repostCount: z.ZodNumber;
1632
1798
  createdAt: z.ZodISODateTime;
1633
1799
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1641,6 +1807,10 @@ export declare const feedPageSchema: z.ZodObject<{
1641
1807
  love: "love";
1642
1808
  haha: "haha";
1643
1809
  }>>;
1810
+ myVote: z.ZodNullable<z.ZodEnum<{
1811
+ up: "up";
1812
+ down: "down";
1813
+ }>>;
1644
1814
  bookmarked: z.ZodBoolean;
1645
1815
  isAuthor: z.ZodBoolean;
1646
1816
  canEdit: z.ZodBoolean;
@@ -1650,6 +1820,7 @@ export declare const feedPageSchema: z.ZodObject<{
1650
1820
  canRepost: z.ZodBoolean;
1651
1821
  canTakePart: z.ZodOptional<z.ZodBoolean>;
1652
1822
  votedOptionIndices: z.ZodArray<z.ZodNumber>;
1823
+ canClose: z.ZodOptional<z.ZodBoolean>;
1653
1824
  }, z.core.$strip>>;
1654
1825
  }, z.core.$strip>], "contentKind">>;
1655
1826
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -1673,6 +1844,10 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1673
1844
  headline: z.ZodOptional<z.ZodString>;
1674
1845
  }, z.core.$strip>;
1675
1846
  text: z.ZodString;
1847
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1848
+ handle: z.ZodString;
1849
+ username: z.ZodString;
1850
+ }, z.core.$strip>>>;
1676
1851
  media: z.ZodArray<z.ZodObject<{
1677
1852
  id: z.ZodString;
1678
1853
  url: z.ZodURL;
@@ -1699,7 +1874,6 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1699
1874
  marketing: "marketing";
1700
1875
  supply_chain: "supply_chain";
1701
1876
  fundraising: "fundraising";
1702
- social_enterprise: "social_enterprise";
1703
1877
  mentoring: "mentoring";
1704
1878
  leadership: "leadership";
1705
1879
  networking: "networking";
@@ -1758,6 +1932,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1758
1932
  environmental: "environmental";
1759
1933
  women_empowerment: "women_empowerment";
1760
1934
  community_service: "community_service";
1935
+ social_enterprise: "social_enterprise";
1761
1936
  education_access: "education_access";
1762
1937
  }>>;
1763
1938
  product: z.ZodOptional<z.ZodObject<{
@@ -1842,6 +2017,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1842
2017
  love: "love";
1843
2018
  haha: "haha";
1844
2019
  }> & z.core.$partial, z.ZodNumber>;
2020
+ score: z.ZodNumber;
1845
2021
  repostCount: z.ZodNumber;
1846
2022
  createdAt: z.ZodISODateTime;
1847
2023
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1855,6 +2031,10 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1855
2031
  love: "love";
1856
2032
  haha: "haha";
1857
2033
  }>>;
2034
+ myVote: z.ZodNullable<z.ZodEnum<{
2035
+ up: "up";
2036
+ down: "down";
2037
+ }>>;
1858
2038
  bookmarked: z.ZodBoolean;
1859
2039
  isAuthor: z.ZodBoolean;
1860
2040
  canEdit: z.ZodBoolean;
@@ -1877,6 +2057,10 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1877
2057
  headline: z.ZodOptional<z.ZodString>;
1878
2058
  }, z.core.$strip>;
1879
2059
  question: z.ZodString;
2060
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2061
+ handle: z.ZodString;
2062
+ username: z.ZodString;
2063
+ }, z.core.$strip>>>;
1880
2064
  options: z.ZodArray<z.ZodObject<{
1881
2065
  index: z.ZodNumber;
1882
2066
  label: z.ZodString;
@@ -1886,6 +2070,10 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1886
2070
  allowsMultipleChoices: z.ZodBoolean;
1887
2071
  closesAt: z.ZodISODateTime;
1888
2072
  isClosed: z.ZodBoolean;
2073
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
2074
+ live: "live";
2075
+ after_close: "after_close";
2076
+ }>>;
1889
2077
  topics: z.ZodArray<z.ZodEnum<{
1890
2078
  ai_ml: "ai_ml";
1891
2079
  b2b_saas: "b2b_saas";
@@ -1897,7 +2085,6 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1897
2085
  marketing: "marketing";
1898
2086
  supply_chain: "supply_chain";
1899
2087
  fundraising: "fundraising";
1900
- social_enterprise: "social_enterprise";
1901
2088
  mentoring: "mentoring";
1902
2089
  leadership: "leadership";
1903
2090
  networking: "networking";
@@ -1956,6 +2143,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1956
2143
  environmental: "environmental";
1957
2144
  women_empowerment: "women_empowerment";
1958
2145
  community_service: "community_service";
2146
+ social_enterprise: "social_enterprise";
1959
2147
  education_access: "education_access";
1960
2148
  }>>;
1961
2149
  product: z.ZodOptional<z.ZodObject<{
@@ -1993,6 +2181,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
1993
2181
  love: "love";
1994
2182
  haha: "haha";
1995
2183
  }> & z.core.$partial, z.ZodNumber>;
2184
+ score: z.ZodNumber;
1996
2185
  repostCount: z.ZodNumber;
1997
2186
  createdAt: z.ZodISODateTime;
1998
2187
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -2006,6 +2195,10 @@ export declare const pinnedItemsSchema: z.ZodObject<{
2006
2195
  love: "love";
2007
2196
  haha: "haha";
2008
2197
  }>>;
2198
+ myVote: z.ZodNullable<z.ZodEnum<{
2199
+ up: "up";
2200
+ down: "down";
2201
+ }>>;
2009
2202
  bookmarked: z.ZodBoolean;
2010
2203
  isAuthor: z.ZodBoolean;
2011
2204
  canEdit: z.ZodBoolean;
@@ -2015,6 +2208,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
2015
2208
  canRepost: z.ZodBoolean;
2016
2209
  canTakePart: z.ZodOptional<z.ZodBoolean>;
2017
2210
  votedOptionIndices: z.ZodArray<z.ZodNumber>;
2211
+ canClose: z.ZodOptional<z.ZodBoolean>;
2018
2212
  }, z.core.$strip>>;
2019
2213
  }, z.core.$strip>], "contentKind">>;
2020
2214
  }, z.core.$strip>;
@@ -2039,6 +2233,10 @@ export declare const commentPageSchema: z.ZodObject<{
2039
2233
  headline: z.ZodOptional<z.ZodString>;
2040
2234
  }, z.core.$strip>;
2041
2235
  text: z.ZodString;
2236
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2237
+ handle: z.ZodString;
2238
+ username: z.ZodString;
2239
+ }, z.core.$strip>>>;
2042
2240
  replyCount: z.ZodNumber;
2043
2241
  reactionCounts: z.ZodRecord<z.ZodEnum<{
2044
2242
  support: "support";
@@ -2049,7 +2247,9 @@ export declare const commentPageSchema: z.ZodObject<{
2049
2247
  love: "love";
2050
2248
  haha: "haha";
2051
2249
  }> & z.core.$partial, z.ZodNumber>;
2250
+ score: z.ZodNumber;
2052
2251
  helpfulAt: z.ZodNullable<z.ZodISODateTime>;
2252
+ byItemAuthor: z.ZodDefault<z.ZodBoolean>;
2053
2253
  createdAt: z.ZodISODateTime;
2054
2254
  editedAt: z.ZodNullable<z.ZodISODateTime>;
2055
2255
  viewer: z.ZodOptional<z.ZodObject<{
@@ -2065,6 +2265,10 @@ export declare const commentPageSchema: z.ZodObject<{
2065
2265
  love: "love";
2066
2266
  haha: "haha";
2067
2267
  }>>;
2268
+ myVote: z.ZodNullable<z.ZodEnum<{
2269
+ up: "up";
2270
+ down: "down";
2271
+ }>>;
2068
2272
  isAuthor: z.ZodBoolean;
2069
2273
  canMarkHelpful: z.ZodBoolean;
2070
2274
  }, z.core.$strip>>;
@@ -2158,6 +2362,10 @@ export declare const productFeedbackItemSchema: z.ZodObject<{
2158
2362
  headline: z.ZodOptional<z.ZodString>;
2159
2363
  }, z.core.$strip>;
2160
2364
  text: z.ZodString;
2365
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2366
+ handle: z.ZodString;
2367
+ username: z.ZodString;
2368
+ }, z.core.$strip>>>;
2161
2369
  replyCount: z.ZodNumber;
2162
2370
  reactionCounts: z.ZodRecord<z.ZodEnum<{
2163
2371
  support: "support";
@@ -2168,7 +2376,9 @@ export declare const productFeedbackItemSchema: z.ZodObject<{
2168
2376
  love: "love";
2169
2377
  haha: "haha";
2170
2378
  }> & z.core.$partial, z.ZodNumber>;
2379
+ score: z.ZodNumber;
2171
2380
  helpfulAt: z.ZodNullable<z.ZodISODateTime>;
2381
+ byItemAuthor: z.ZodDefault<z.ZodBoolean>;
2172
2382
  createdAt: z.ZodISODateTime;
2173
2383
  editedAt: z.ZodNullable<z.ZodISODateTime>;
2174
2384
  viewer: z.ZodOptional<z.ZodObject<{
@@ -2184,6 +2394,10 @@ export declare const productFeedbackItemSchema: z.ZodObject<{
2184
2394
  love: "love";
2185
2395
  haha: "haha";
2186
2396
  }>>;
2397
+ myVote: z.ZodNullable<z.ZodEnum<{
2398
+ up: "up";
2399
+ down: "down";
2400
+ }>>;
2187
2401
  isAuthor: z.ZodBoolean;
2188
2402
  canMarkHelpful: z.ZodBoolean;
2189
2403
  }, z.core.$strip>>;
@@ -2209,6 +2423,10 @@ export declare const productFeedbackPageSchema: z.ZodObject<{
2209
2423
  headline: z.ZodOptional<z.ZodString>;
2210
2424
  }, z.core.$strip>;
2211
2425
  text: z.ZodString;
2426
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2427
+ handle: z.ZodString;
2428
+ username: z.ZodString;
2429
+ }, z.core.$strip>>>;
2212
2430
  replyCount: z.ZodNumber;
2213
2431
  reactionCounts: z.ZodRecord<z.ZodEnum<{
2214
2432
  support: "support";
@@ -2219,7 +2437,9 @@ export declare const productFeedbackPageSchema: z.ZodObject<{
2219
2437
  love: "love";
2220
2438
  haha: "haha";
2221
2439
  }> & z.core.$partial, z.ZodNumber>;
2440
+ score: z.ZodNumber;
2222
2441
  helpfulAt: z.ZodNullable<z.ZodISODateTime>;
2442
+ byItemAuthor: z.ZodDefault<z.ZodBoolean>;
2223
2443
  createdAt: z.ZodISODateTime;
2224
2444
  editedAt: z.ZodNullable<z.ZodISODateTime>;
2225
2445
  viewer: z.ZodOptional<z.ZodObject<{
@@ -2235,6 +2455,10 @@ export declare const productFeedbackPageSchema: z.ZodObject<{
2235
2455
  love: "love";
2236
2456
  haha: "haha";
2237
2457
  }>>;
2458
+ myVote: z.ZodNullable<z.ZodEnum<{
2459
+ up: "up";
2460
+ down: "down";
2461
+ }>>;
2238
2462
  isAuthor: z.ZodBoolean;
2239
2463
  canMarkHelpful: z.ZodBoolean;
2240
2464
  }, z.core.$strip>>;
@@ -2285,6 +2509,93 @@ export declare function postHasContent(post: {
2285
2509
  mediaCount: number;
2286
2510
  isRepost: boolean;
2287
2511
  }): boolean;
2512
+ /**
2513
+ * A NEW post's or poll's topics: 1 to `MAX_TOPICS` (the user's ruling,
2514
+ * 2026-11-23: "make choosing the topics mandatory"). Before it a post could be
2515
+ * written untagged, and an untagged post is one interest matching never finds.
2516
+ *
2517
+ * Absent, `null` or empty: `topicsRequired`, on `topics`. More than
2518
+ * `MAX_TOPICS`: Zod's `too_big` with `maximum`. The same topic twice:
2519
+ * `topicsDuplicate` (hary, 2026-11-23: as a community's topics), so two of one
2520
+ * cannot fill the count. Write bodies only: the read shapes keep allowing none
2521
+ * (older posts, and every repost).
2522
+ *
2523
+ * A REPOST takes no topics of its own (`createRepostBodySchema`, stored empty:
2524
+ * it stays out of interest matching so one item is not matched twice), and an
2525
+ * EDIT never touches them (`updatePostBodySchema` is the text alone).
2526
+ */
2527
+ export declare const requiredTopicsSchema: z.ZodArray<z.ZodEnum<{
2528
+ ai_ml: "ai_ml";
2529
+ b2b_saas: "b2b_saas";
2530
+ d2c: "d2c";
2531
+ deeptech: "deeptech";
2532
+ robotics: "robotics";
2533
+ growth: "growth";
2534
+ sales: "sales";
2535
+ marketing: "marketing";
2536
+ supply_chain: "supply_chain";
2537
+ fundraising: "fundraising";
2538
+ mentoring: "mentoring";
2539
+ leadership: "leadership";
2540
+ networking: "networking";
2541
+ public_speaking: "public_speaking";
2542
+ teaching: "teaching";
2543
+ hiring_talent: "hiring_talent";
2544
+ personal_branding: "personal_branding";
2545
+ career_transition: "career_transition";
2546
+ remote_work: "remote_work";
2547
+ blockchain: "blockchain";
2548
+ crypto_web3: "crypto_web3";
2549
+ data_science: "data_science";
2550
+ cybersecurity: "cybersecurity";
2551
+ game_dev: "game_dev";
2552
+ ux_design: "ux_design";
2553
+ app_development: "app_development";
2554
+ open_source: "open_source";
2555
+ electronics: "electronics";
2556
+ space_exploration: "space_exploration";
2557
+ green_tech: "green_tech";
2558
+ no_code: "no_code";
2559
+ entrepreneurship: "entrepreneurship";
2560
+ investing: "investing";
2561
+ stock_trading: "stock_trading";
2562
+ personal_finance: "personal_finance";
2563
+ consulting: "consulting";
2564
+ ecommerce: "ecommerce";
2565
+ retail: "retail";
2566
+ real_estate: "real_estate";
2567
+ product_management: "product_management";
2568
+ meditation: "meditation";
2569
+ journaling: "journaling";
2570
+ self_improvement: "self_improvement";
2571
+ productivity: "productivity";
2572
+ reading: "reading";
2573
+ online_courses: "online_courses";
2574
+ philosophy: "philosophy";
2575
+ psychology: "psychology";
2576
+ therapy: "therapy";
2577
+ sleep_optimization: "sleep_optimization";
2578
+ gym: "gym";
2579
+ yoga: "yoga";
2580
+ photography: "photography";
2581
+ writing: "writing";
2582
+ graphic_design: "graphic_design";
2583
+ filmmaking: "filmmaking";
2584
+ digital_art: "digital_art";
2585
+ content_creation: "content_creation";
2586
+ blogging: "blogging";
2587
+ vlogging: "vlogging";
2588
+ podcasts: "podcasts";
2589
+ animation: "animation";
2590
+ music_production: "music_production";
2591
+ volunteering: "volunteering";
2592
+ ngo_work: "ngo_work";
2593
+ environmental: "environmental";
2594
+ women_empowerment: "women_empowerment";
2595
+ community_service: "community_service";
2596
+ social_enterprise: "social_enterprise";
2597
+ education_access: "education_access";
2598
+ }>>;
2288
2599
  export declare const createPostBodySchema: z.ZodObject<{
2289
2600
  communityId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
2290
2601
  productId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -2299,7 +2610,7 @@ export declare const createPostBodySchema: z.ZodObject<{
2299
2610
  mediaId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2300
2611
  alt: z.ZodOptional<z.ZodString>;
2301
2612
  }, z.core.$strip>>>;
2302
- topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2613
+ topics: z.ZodArray<z.ZodEnum<{
2303
2614
  ai_ml: "ai_ml";
2304
2615
  b2b_saas: "b2b_saas";
2305
2616
  d2c: "d2c";
@@ -2310,7 +2621,6 @@ export declare const createPostBodySchema: z.ZodObject<{
2310
2621
  marketing: "marketing";
2311
2622
  supply_chain: "supply_chain";
2312
2623
  fundraising: "fundraising";
2313
- social_enterprise: "social_enterprise";
2314
2624
  mentoring: "mentoring";
2315
2625
  leadership: "leadership";
2316
2626
  networking: "networking";
@@ -2369,8 +2679,9 @@ export declare const createPostBodySchema: z.ZodObject<{
2369
2679
  environmental: "environmental";
2370
2680
  women_empowerment: "women_empowerment";
2371
2681
  community_service: "community_service";
2682
+ social_enterprise: "social_enterprise";
2372
2683
  education_access: "education_access";
2373
- }>>>;
2684
+ }>>;
2374
2685
  }, z.core.$strip>;
2375
2686
  export type CreatePostBody = z.infer<typeof createPostBodySchema>;
2376
2687
  /**
@@ -2398,7 +2709,11 @@ export declare const createPollBodySchema: z.ZodObject<{
2398
2709
  }, z.core.$strip>>;
2399
2710
  durationMs: z.ZodNumber;
2400
2711
  allowsMultipleChoices: z.ZodBoolean;
2401
- topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2712
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
2713
+ live: "live";
2714
+ after_close: "after_close";
2715
+ }>>;
2716
+ topics: z.ZodArray<z.ZodEnum<{
2402
2717
  ai_ml: "ai_ml";
2403
2718
  b2b_saas: "b2b_saas";
2404
2719
  d2c: "d2c";
@@ -2409,7 +2724,6 @@ export declare const createPollBodySchema: z.ZodObject<{
2409
2724
  marketing: "marketing";
2410
2725
  supply_chain: "supply_chain";
2411
2726
  fundraising: "fundraising";
2412
- social_enterprise: "social_enterprise";
2413
2727
  mentoring: "mentoring";
2414
2728
  leadership: "leadership";
2415
2729
  networking: "networking";
@@ -2468,8 +2782,9 @@ export declare const createPollBodySchema: z.ZodObject<{
2468
2782
  environmental: "environmental";
2469
2783
  women_empowerment: "women_empowerment";
2470
2784
  community_service: "community_service";
2785
+ social_enterprise: "social_enterprise";
2471
2786
  education_access: "education_access";
2472
- }>>>;
2787
+ }>>;
2473
2788
  }, z.core.$strip>;
2474
2789
  export type CreatePollBody = z.infer<typeof createPollBodySchema>;
2475
2790
  /**
@@ -2563,6 +2878,49 @@ export declare const setReactionResponseSchema: z.ZodObject<{
2563
2878
  }> & z.core.$partial, z.ZodNumber>;
2564
2879
  }, z.core.$strip>;
2565
2880
  export type SetReactionResponse = z.infer<typeof setReactionResponseSchema>;
2881
+ /**
2882
+ * `POST /api/v1/feed/:contentKind/:contentId/score` (2026-11-23, the user:
2883
+ * Jansathi's up and down votes into FC), on a post, a poll or a comment;
2884
+ * answering `SetScoreVoteResponse`.
2885
+ *
2886
+ * `vote` is the viewer's vote AFTER the call: `up` or `down` sets it (the
2887
+ * other direction flips it), `null` clears it. Re-sending what they already
2888
+ * have changes nothing, so a retry is safe; the client's "tap the same arrow
2889
+ * again to take it back" sends `null`.
2890
+ *
2891
+ * Refused like a reaction: an item deleted, hidden or not visible to them is
2892
+ * 404; a viewer without membership is `MEMBERSHIP_REQUIRED`; in a community,
2893
+ * setting one needs membership of it, taking one back only read access. Your
2894
+ * OWN post, poll or comment is refused (`CANNOT_VOTE_OWN`, 400; hary's ruling,
2895
+ * 2026-11-23, stricter than Jansathi so Top and Hot stay honest): the viewer's
2896
+ * `isAuthor` says so, and the control shows the score without being pressable.
2897
+ *
2898
+ * Only a NEW up vote rings the author's bell (`post_upvote`, `comment_upvote`);
2899
+ * a down vote, a flip and a clear are silent. The bell names the voter to the
2900
+ * author, as Jansathi's does; the item itself shows only the net score.
2901
+ */
2902
+ export declare const setScoreVoteBodySchema: z.ZodObject<{
2903
+ vote: z.ZodNullable<z.ZodEnum<{
2904
+ up: "up";
2905
+ down: "down";
2906
+ }>>;
2907
+ }, z.core.$strip>;
2908
+ export type SetScoreVoteBody = z.infer<typeof setScoreVoteBodySchema>;
2909
+ /** The authoritative result, so the arrows and the number render without a second read. */
2910
+ export declare const setScoreVoteResponseSchema: z.ZodObject<{
2911
+ contentKind: z.ZodEnum<{
2912
+ post: "post";
2913
+ poll: "poll";
2914
+ comment: "comment";
2915
+ }>;
2916
+ contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2917
+ vote: z.ZodNullable<z.ZodEnum<{
2918
+ up: "up";
2919
+ down: "down";
2920
+ }>>;
2921
+ score: z.ZodNumber;
2922
+ }, z.core.$strip>;
2923
+ export type SetScoreVoteResponse = z.infer<typeof setScoreVoteResponseSchema>;
2566
2924
  /**
2567
2925
  * Where a report stands (0.18.0: named here; the backend's model kept its own
2568
2926
  * list, and the permission rule that only an open report is decided checked a
@@ -2629,6 +2987,7 @@ export type CreateReportBody = z.infer<typeof createReportBodySchema>;
2629
2987
  export declare const createReportResponseSchema: z.ZodObject<{
2630
2988
  contentKind: z.ZodEnum<{
2631
2989
  product: "product";
2990
+ member: "member";
2632
2991
  post: "post";
2633
2992
  poll: "poll";
2634
2993
  comment: "comment";
@@ -2675,6 +3034,10 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2675
3034
  headline: z.ZodOptional<z.ZodString>;
2676
3035
  }, z.core.$strip>;
2677
3036
  question: z.ZodString;
3037
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3038
+ handle: z.ZodString;
3039
+ username: z.ZodString;
3040
+ }, z.core.$strip>>>;
2678
3041
  options: z.ZodArray<z.ZodObject<{
2679
3042
  index: z.ZodNumber;
2680
3043
  label: z.ZodString;
@@ -2684,6 +3047,10 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2684
3047
  allowsMultipleChoices: z.ZodBoolean;
2685
3048
  closesAt: z.ZodISODateTime;
2686
3049
  isClosed: z.ZodBoolean;
3050
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
3051
+ live: "live";
3052
+ after_close: "after_close";
3053
+ }>>;
2687
3054
  topics: z.ZodArray<z.ZodEnum<{
2688
3055
  ai_ml: "ai_ml";
2689
3056
  b2b_saas: "b2b_saas";
@@ -2695,7 +3062,6 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2695
3062
  marketing: "marketing";
2696
3063
  supply_chain: "supply_chain";
2697
3064
  fundraising: "fundraising";
2698
- social_enterprise: "social_enterprise";
2699
3065
  mentoring: "mentoring";
2700
3066
  leadership: "leadership";
2701
3067
  networking: "networking";
@@ -2754,6 +3120,7 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2754
3120
  environmental: "environmental";
2755
3121
  women_empowerment: "women_empowerment";
2756
3122
  community_service: "community_service";
3123
+ social_enterprise: "social_enterprise";
2757
3124
  education_access: "education_access";
2758
3125
  }>>;
2759
3126
  product: z.ZodOptional<z.ZodObject<{
@@ -2791,6 +3158,7 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2791
3158
  love: "love";
2792
3159
  haha: "haha";
2793
3160
  }> & z.core.$partial, z.ZodNumber>;
3161
+ score: z.ZodNumber;
2794
3162
  repostCount: z.ZodNumber;
2795
3163
  createdAt: z.ZodISODateTime;
2796
3164
  editedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -2804,6 +3172,10 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2804
3172
  love: "love";
2805
3173
  haha: "haha";
2806
3174
  }>>;
3175
+ myVote: z.ZodNullable<z.ZodEnum<{
3176
+ up: "up";
3177
+ down: "down";
3178
+ }>>;
2807
3179
  bookmarked: z.ZodBoolean;
2808
3180
  isAuthor: z.ZodBoolean;
2809
3181
  canEdit: z.ZodBoolean;
@@ -2813,8 +3185,184 @@ export declare const castVoteResponseSchema: z.ZodObject<{
2813
3185
  canRepost: z.ZodBoolean;
2814
3186
  canTakePart: z.ZodOptional<z.ZodBoolean>;
2815
3187
  votedOptionIndices: z.ZodArray<z.ZodNumber>;
3188
+ canClose: z.ZodOptional<z.ZodBoolean>;
2816
3189
  }, z.core.$strip>>;
2817
3190
  }, z.core.$strip>;
2818
3191
  }, z.core.$strip>;
2819
3192
  export type CastVoteResponse = z.infer<typeof castVoteResponseSchema>;
3193
+ /**
3194
+ * `POST /api/v1/feed/poll/:pollId/close` (2026-11-23): its author (or staff)
3195
+ * closes it now. Answers the whole poll, closed, as a vote does. Closing one
3196
+ * already closed changes nothing and answers it as it is.
3197
+ */
3198
+ export declare const closePollResponseSchema: z.ZodObject<{
3199
+ poll: z.ZodObject<{
3200
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3201
+ contentKind: z.ZodLiteral<"poll">;
3202
+ author: z.ZodObject<{
3203
+ userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3204
+ username: z.ZodNullable<z.ZodString>;
3205
+ displayName: z.ZodString;
3206
+ firstName: z.ZodString;
3207
+ avatarUrl: z.ZodNullable<z.ZodURL>;
3208
+ former: z.ZodBoolean;
3209
+ headline: z.ZodOptional<z.ZodString>;
3210
+ }, z.core.$strip>;
3211
+ question: z.ZodString;
3212
+ mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3213
+ handle: z.ZodString;
3214
+ username: z.ZodString;
3215
+ }, z.core.$strip>>>;
3216
+ options: z.ZodArray<z.ZodObject<{
3217
+ index: z.ZodNumber;
3218
+ label: z.ZodString;
3219
+ voteCount: z.ZodNumber;
3220
+ }, z.core.$strip>>;
3221
+ totalVoters: z.ZodNumber;
3222
+ allowsMultipleChoices: z.ZodBoolean;
3223
+ closesAt: z.ZodISODateTime;
3224
+ isClosed: z.ZodBoolean;
3225
+ resultsVisibility: z.ZodDefault<z.ZodEnum<{
3226
+ live: "live";
3227
+ after_close: "after_close";
3228
+ }>>;
3229
+ topics: z.ZodArray<z.ZodEnum<{
3230
+ ai_ml: "ai_ml";
3231
+ b2b_saas: "b2b_saas";
3232
+ d2c: "d2c";
3233
+ deeptech: "deeptech";
3234
+ robotics: "robotics";
3235
+ growth: "growth";
3236
+ sales: "sales";
3237
+ marketing: "marketing";
3238
+ supply_chain: "supply_chain";
3239
+ fundraising: "fundraising";
3240
+ mentoring: "mentoring";
3241
+ leadership: "leadership";
3242
+ networking: "networking";
3243
+ public_speaking: "public_speaking";
3244
+ teaching: "teaching";
3245
+ hiring_talent: "hiring_talent";
3246
+ personal_branding: "personal_branding";
3247
+ career_transition: "career_transition";
3248
+ remote_work: "remote_work";
3249
+ blockchain: "blockchain";
3250
+ crypto_web3: "crypto_web3";
3251
+ data_science: "data_science";
3252
+ cybersecurity: "cybersecurity";
3253
+ game_dev: "game_dev";
3254
+ ux_design: "ux_design";
3255
+ app_development: "app_development";
3256
+ open_source: "open_source";
3257
+ electronics: "electronics";
3258
+ space_exploration: "space_exploration";
3259
+ green_tech: "green_tech";
3260
+ no_code: "no_code";
3261
+ entrepreneurship: "entrepreneurship";
3262
+ investing: "investing";
3263
+ stock_trading: "stock_trading";
3264
+ personal_finance: "personal_finance";
3265
+ consulting: "consulting";
3266
+ ecommerce: "ecommerce";
3267
+ retail: "retail";
3268
+ real_estate: "real_estate";
3269
+ product_management: "product_management";
3270
+ meditation: "meditation";
3271
+ journaling: "journaling";
3272
+ self_improvement: "self_improvement";
3273
+ productivity: "productivity";
3274
+ reading: "reading";
3275
+ online_courses: "online_courses";
3276
+ philosophy: "philosophy";
3277
+ psychology: "psychology";
3278
+ therapy: "therapy";
3279
+ sleep_optimization: "sleep_optimization";
3280
+ gym: "gym";
3281
+ yoga: "yoga";
3282
+ photography: "photography";
3283
+ writing: "writing";
3284
+ graphic_design: "graphic_design";
3285
+ filmmaking: "filmmaking";
3286
+ digital_art: "digital_art";
3287
+ content_creation: "content_creation";
3288
+ blogging: "blogging";
3289
+ vlogging: "vlogging";
3290
+ podcasts: "podcasts";
3291
+ animation: "animation";
3292
+ music_production: "music_production";
3293
+ volunteering: "volunteering";
3294
+ ngo_work: "ngo_work";
3295
+ environmental: "environmental";
3296
+ women_empowerment: "women_empowerment";
3297
+ community_service: "community_service";
3298
+ social_enterprise: "social_enterprise";
3299
+ education_access: "education_access";
3300
+ }>>;
3301
+ product: z.ZodOptional<z.ZodObject<{
3302
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3303
+ slug: z.ZodString;
3304
+ name: z.ZodString;
3305
+ logoUrl: z.ZodOptional<z.ZodURL>;
3306
+ }, z.core.$strip>>;
3307
+ ask: z.ZodOptional<z.ZodEnum<{
3308
+ feedback: "feedback";
3309
+ testers: "testers";
3310
+ launch: "launch";
3311
+ ideas: "ideas";
3312
+ }>>;
3313
+ community: z.ZodOptional<z.ZodObject<{
3314
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3315
+ slug: z.ZodString;
3316
+ name: z.ZodString;
3317
+ iconUrl: z.ZodOptional<z.ZodURL>;
3318
+ visibility: z.ZodEnum<{
3319
+ public: "public";
3320
+ private: "private";
3321
+ hidden: "hidden";
3322
+ }>;
3323
+ archived: z.ZodOptional<z.ZodBoolean>;
3324
+ }, z.core.$strip>>;
3325
+ pinnedAt: z.ZodOptional<z.ZodISODateTime>;
3326
+ commentCount: z.ZodNumber;
3327
+ reactionCounts: z.ZodRecord<z.ZodEnum<{
3328
+ support: "support";
3329
+ like: "like";
3330
+ celebrate: "celebrate";
3331
+ insightful: "insightful";
3332
+ curious: "curious";
3333
+ love: "love";
3334
+ haha: "haha";
3335
+ }> & z.core.$partial, z.ZodNumber>;
3336
+ score: z.ZodNumber;
3337
+ repostCount: z.ZodNumber;
3338
+ createdAt: z.ZodISODateTime;
3339
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
3340
+ viewer: z.ZodOptional<z.ZodObject<{
3341
+ reaction: z.ZodNullable<z.ZodEnum<{
3342
+ support: "support";
3343
+ like: "like";
3344
+ celebrate: "celebrate";
3345
+ insightful: "insightful";
3346
+ curious: "curious";
3347
+ love: "love";
3348
+ haha: "haha";
3349
+ }>>;
3350
+ myVote: z.ZodNullable<z.ZodEnum<{
3351
+ up: "up";
3352
+ down: "down";
3353
+ }>>;
3354
+ bookmarked: z.ZodBoolean;
3355
+ isAuthor: z.ZodBoolean;
3356
+ canEdit: z.ZodBoolean;
3357
+ canDelete: z.ZodBoolean;
3358
+ canReport: z.ZodBoolean;
3359
+ repostId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
3360
+ canRepost: z.ZodBoolean;
3361
+ canTakePart: z.ZodOptional<z.ZodBoolean>;
3362
+ votedOptionIndices: z.ZodArray<z.ZodNumber>;
3363
+ canClose: z.ZodOptional<z.ZodBoolean>;
3364
+ }, z.core.$strip>>;
3365
+ }, z.core.$strip>;
3366
+ }, z.core.$strip>;
3367
+ export type ClosePollResponse = CastVoteResponse;
2820
3368
  //# sourceMappingURL=feed.d.ts.map