founder-schema 0.26.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.
- package/dist/core/errors.d.ts +3 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +5 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/limits.d.ts +8 -0
- package/dist/core/limits.d.ts.map +1 -1
- package/dist/core/limits.js +8 -0
- package/dist/core/limits.js.map +1 -1
- package/dist/core/responses.d.ts +2 -0
- package/dist/core/responses.d.ts.map +1 -1
- package/dist/core/validation.d.ts +5 -0
- package/dist/core/validation.d.ts.map +1 -1
- package/dist/core/validation.js +5 -0
- package/dist/core/validation.js.map +1 -1
- package/dist/domains/audit/audit.d.ts +4 -1
- package/dist/domains/audit/audit.d.ts.map +1 -1
- package/dist/domains/audit/audit.js +6 -0
- package/dist/domains/audit/audit.js.map +1 -1
- package/dist/domains/blocks/blocks.d.ts +64 -0
- package/dist/domains/blocks/blocks.d.ts.map +1 -0
- package/dist/domains/blocks/blocks.js +44 -0
- package/dist/domains/blocks/blocks.js.map +1 -0
- package/dist/domains/contributions/contributions.d.ts +21 -3
- package/dist/domains/contributions/contributions.d.ts.map +1 -1
- package/dist/domains/contributions/contributions.js +21 -4
- package/dist/domains/contributions/contributions.js.map +1 -1
- package/dist/domains/feed/feed.d.ts +572 -24
- package/dist/domains/feed/feed.d.ts.map +1 -1
- package/dist/domains/feed/feed.js +214 -28
- package/dist/domains/feed/feed.js.map +1 -1
- package/dist/domains/feed/mentions.d.ts +86 -0
- package/dist/domains/feed/mentions.d.ts.map +1 -0
- package/dist/domains/feed/mentions.js +93 -0
- package/dist/domains/feed/mentions.js.map +1 -0
- package/dist/domains/moderation/moderation.d.ts +9 -2
- package/dist/domains/moderation/moderation.d.ts.map +1 -1
- package/dist/domains/moderation/moderation.js +6 -2
- package/dist/domains/moderation/moderation.js.map +1 -1
- package/dist/domains/notifications/notifications.d.ts +28 -2
- package/dist/domains/notifications/notifications.d.ts.map +1 -1
- package/dist/domains/notifications/notifications.js +24 -0
- package/dist/domains/notifications/notifications.js.map +1 -1
- package/dist/domains/profile/founder-profile.d.ts +1 -0
- package/dist/domains/profile/founder-profile.d.ts.map +1 -1
- package/dist/domains/profile/founder-profile.js +11 -1
- package/dist/domains/profile/founder-profile.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/domains/feed/feed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,iEAAiE;AACjE,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAClD,eAAe;AACf,eAAO,MAAM,oBAAoB,QAAc,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,QAAiB,CAAC;AAI7C;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,2BAA4B,CAAC;AAC7D,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -39,6 +39,7 @@ import { mediaImageSchema } from '../media/media.js';
|
|
|
39
39
|
import { topicSchema } from '../onboarding/onboarding.js';
|
|
40
40
|
import { productAskSchema, productChipSchema } from '../products/products.js';
|
|
41
41
|
import { memberBylineSchema } from '../profile/founder-profile.js';
|
|
42
|
+
import { mentionsSchema } from './mentions.js';
|
|
42
43
|
// ─── Limits ──────────────────────────────────────────────────────────────────
|
|
43
44
|
/**
|
|
44
45
|
* Exported because the composer must count down to the SAME number the server
|
|
@@ -57,13 +58,18 @@ export const POST_MAX_BODY_CHARS = 5000;
|
|
|
57
58
|
*/
|
|
58
59
|
export const POST_MAX_MEDIA = 10;
|
|
59
60
|
/**
|
|
60
|
-
* Topics per
|
|
61
|
+
* Topics per post or poll.
|
|
61
62
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
63
|
+
* 5 since the user's ruling of 2026-11-23 ("let user choose up to 5 topics for
|
|
64
|
+
* poll and post, not just 3"), which also made choosing at least one mandatory
|
|
65
|
+
* on a NEW post or poll (`requiredTopicsSchema`). Still capped: a post tagged
|
|
66
|
+
* with everything is about nothing, and one tagged with ten matches every
|
|
67
|
+
* member, which is how a relevance feature turns back into a chronological one.
|
|
68
|
+
*
|
|
69
|
+
* Feed content only. A product's and a community's topics keep their own caps
|
|
70
|
+
* (`PRODUCT_TOPICS_MAX`, `COMMUNITY_TOPICS_MAX`).
|
|
65
71
|
*/
|
|
66
|
-
export const MAX_TOPICS =
|
|
72
|
+
export const MAX_TOPICS = 5;
|
|
67
73
|
export const COMMENT_MAX_BODY_CHARS = 2000;
|
|
68
74
|
export const POLL_QUESTION_MAX_CHARS = 280;
|
|
69
75
|
export const POLL_OPTION_MAX_CHARS = 80;
|
|
@@ -107,16 +113,24 @@ export const contentMediaKindSchema = z.enum(CONTENT_MEDIA_KIND_VALUES);
|
|
|
107
113
|
* accepted comments, so every answer about a comment broke this contract.
|
|
108
114
|
*/
|
|
109
115
|
export const ENGAGEMENT_TARGET_KIND_VALUES = [...CONTENT_KIND_VALUES, 'comment'];
|
|
116
|
+
/**
|
|
117
|
+
* An up or down vote (2026-11-23): one per member per post, poll or comment,
|
|
118
|
+
* counted into the item's net `score`. See `setScoreVoteBodySchema`.
|
|
119
|
+
*/
|
|
120
|
+
export const SCORE_VOTE_VALUES = ['up', 'down'];
|
|
121
|
+
export const scoreVoteSchema = z.enum(SCORE_VOTE_VALUES);
|
|
110
122
|
export const engagementTargetKindSchema = z.enum(ENGAGEMENT_TARGET_KIND_VALUES);
|
|
111
123
|
/**
|
|
112
124
|
* What a member can REPORT (0.6.0): everything a reaction can reach, plus a
|
|
113
|
-
* product page and a review
|
|
114
|
-
*
|
|
125
|
+
* product page and a review, and (2026-11-23, Jansathi's user reports) a
|
|
126
|
+
* MEMBER themself (`POST /founders/:userId/report`). Each has its own report
|
|
127
|
+
* route; the answer and the moderation queue use this one list.
|
|
115
128
|
*/
|
|
116
129
|
export const REPORT_TARGET_KIND_VALUES = [
|
|
117
130
|
...ENGAGEMENT_TARGET_KIND_VALUES,
|
|
118
131
|
'product',
|
|
119
132
|
'review',
|
|
133
|
+
'member',
|
|
120
134
|
];
|
|
121
135
|
export const reportTargetKindSchema = z.enum(REPORT_TARGET_KIND_VALUES);
|
|
122
136
|
/**
|
|
@@ -159,13 +173,48 @@ export const pickableReactionSchema = z.enum(REACTION_PICKER_VALUES);
|
|
|
159
173
|
/**
|
|
160
174
|
* Feed ordering.
|
|
161
175
|
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
176
|
+
* new newest first. Still the default here, unlike Jansathi where `hot`
|
|
177
|
+
* leads: a brand-new network ranking a handful of posts by a blended
|
|
178
|
+
* score mostly hides the newest thing somebody just wrote.
|
|
179
|
+
* top highest net `score` (up minus down votes) first, all time; ties
|
|
180
|
+
* newest first. Until 2026-11-23 it was "most reacted".
|
|
181
|
+
* hot (2026-11-23, Jansathi's) a score that decays with age:
|
|
182
|
+
* `(score + 2 * comments) / (hours + 2) ^ 1.5`, recomputed by the server
|
|
183
|
+
* every few minutes for items under `HOT_WINDOW_DAYS` old; older items
|
|
184
|
+
* sit at 0, below anything recent with a positive score.
|
|
166
185
|
*/
|
|
167
|
-
export const FEED_SORT_VALUES = ['new', 'top'];
|
|
186
|
+
export const FEED_SORT_VALUES = ['new', 'top', 'hot'];
|
|
187
|
+
/** Items older than this are not re-scored for `hot`: by then the decay has taken them to ~0. */
|
|
188
|
+
export const HOT_WINDOW_DAYS = 7;
|
|
168
189
|
export const feedSortSchema = z.enum(FEED_SORT_VALUES);
|
|
190
|
+
/**
|
|
191
|
+
* When a poll's results are shown (2026-11-23, from Jansathi), chosen by its
|
|
192
|
+
* author when they make it and never changed after:
|
|
193
|
+
*
|
|
194
|
+
* live as people vote (the default, and every poll made before this)
|
|
195
|
+
* after_close only once it has closed: until then every option's count is
|
|
196
|
+
* sent as 0 and only how many have voted is shown, so early
|
|
197
|
+
* votes do not sway later ones
|
|
198
|
+
*
|
|
199
|
+
* Applies to everyone, the author included: the author has no special view.
|
|
200
|
+
*/
|
|
201
|
+
export const POLL_RESULTS_VISIBILITY_VALUES = ['live', 'after_close'];
|
|
202
|
+
export const pollResultsVisibilitySchema = z.enum(POLL_RESULTS_VISIBILITY_VALUES);
|
|
203
|
+
/**
|
|
204
|
+
* How a thread's comments are ordered (2026-11-23, from Jansathi), chosen by
|
|
205
|
+
* the reader with a switch at the top of the thread:
|
|
206
|
+
*
|
|
207
|
+
* top most engaged first (reactions; ties newest first). The default.
|
|
208
|
+
* newest newest first
|
|
209
|
+
* oldest oldest first: the conversation as it happened (the only order
|
|
210
|
+
* before this)
|
|
211
|
+
*
|
|
212
|
+
* Top-level comments only: replies under a comment always read oldest first.
|
|
213
|
+
* Each order pages with its own cursor: a cursor from one order is not
|
|
214
|
+
* accepted by another (the client starts again when the reader switches).
|
|
215
|
+
*/
|
|
216
|
+
export const COMMENT_SORT_VALUES = ['top', 'newest', 'oldest'];
|
|
217
|
+
export const commentSortSchema = z.enum(COMMENT_SORT_VALUES);
|
|
169
218
|
/**
|
|
170
219
|
* Counts keyed by reaction type, e.g. `{ like: 4, celebrate: 1 }`. Only the
|
|
171
220
|
* reactions an item actually has need appear.
|
|
@@ -234,6 +283,8 @@ export const feedMediaSchema = feedImageSchema;
|
|
|
234
283
|
*/
|
|
235
284
|
export const viewerStateSchema = z.object({
|
|
236
285
|
reaction: reactionTypeSchema.nullable(),
|
|
286
|
+
/** This viewer's up or down vote on it, or null (2026-11-23, `setScoreVoteBodySchema`). */
|
|
287
|
+
myVote: scoreVoteSchema.nullable(),
|
|
237
288
|
bookmarked: z.boolean(),
|
|
238
289
|
isAuthor: z.boolean(),
|
|
239
290
|
/**
|
|
@@ -324,11 +375,10 @@ export const repostedSourceSchema = z.discriminatedUnion('state', [
|
|
|
324
375
|
*
|
|
325
376
|
* Counts are denormalised onto the row so one document serves a whole card.
|
|
326
377
|
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
* members have used it is not.
|
|
378
|
+
* `score` (2026-11-23): the user decided to bring Jansathi's up and down votes
|
|
379
|
+
* over, on posts, polls and comments. It is the NET count, up minus down, and
|
|
380
|
+
* can be negative. It ranks the `top` and `hot` sorts; reactions stay the
|
|
381
|
+
* expressive layer and rank nothing.
|
|
332
382
|
*/
|
|
333
383
|
export const feedPostSchema = z.object({
|
|
334
384
|
id: objectIdSchema,
|
|
@@ -344,6 +394,8 @@ export const feedPostSchema = z.object({
|
|
|
344
394
|
* an additive change; a client that has been guessing is not.
|
|
345
395
|
*/
|
|
346
396
|
text: z.string().max(POST_MAX_BODY_CHARS),
|
|
397
|
+
/** The `@handles` in `text` that are live members (2026-11-23, `mentions.ts`). */
|
|
398
|
+
mentions: mentionsSchema,
|
|
347
399
|
/** Ordered as the author attached them. */
|
|
348
400
|
media: z.array(feedMediaSchema).max(POST_MAX_MEDIA),
|
|
349
401
|
/**
|
|
@@ -352,9 +404,11 @@ export const feedPostSchema = z.object({
|
|
|
352
404
|
* an intersection of two lists drawn from one enum, not a guess from who
|
|
353
405
|
* wrote it.
|
|
354
406
|
*
|
|
355
|
-
* ⚠️ An EMPTY array is
|
|
356
|
-
*
|
|
357
|
-
*
|
|
407
|
+
* ⚠️ An EMPTY array is still READ: a post written before 2026-11-23 (when
|
|
408
|
+
* topics became mandatory on a new post) and every repost carry none, so
|
|
409
|
+
* interest matching cannot reach them and they are only ever found
|
|
410
|
+
* chronologically. A NEW post cannot be written without one
|
|
411
|
+
* (`requiredTopicsSchema`).
|
|
358
412
|
*/
|
|
359
413
|
topics: z.array(topicSchema).max(MAX_TOPICS),
|
|
360
414
|
/**
|
|
@@ -383,6 +437,8 @@ export const feedPostSchema = z.object({
|
|
|
383
437
|
repostOf: repostedSourceSchema.optional(),
|
|
384
438
|
commentCount: z.number().int().nonnegative(),
|
|
385
439
|
reactionCounts: reactionCountsSchema,
|
|
440
|
+
/** Up votes minus down votes (2026-11-23). May be negative. */
|
|
441
|
+
score: z.number().int(),
|
|
386
442
|
/** Active reposts of this item (0.8.0); an undone or removed one no longer counts. */
|
|
387
443
|
repostCount: z.number().int().nonnegative(),
|
|
388
444
|
createdAt: z.iso.datetime(),
|
|
@@ -410,14 +466,18 @@ export const pollOptionSchema = z.object({
|
|
|
410
466
|
* own records keyed by (poll, voter) and a post has nothing equivalent.
|
|
411
467
|
*
|
|
412
468
|
* Polls are not editable. Changing a question or an option after a vote has
|
|
413
|
-
* been cast silently re-purposes that vote. A poll closes at its `closesAt
|
|
414
|
-
*
|
|
469
|
+
* been cast silently re-purposes that vote. A poll closes at its `closesAt`,
|
|
470
|
+
* or earlier when its author closes it (2026-11-23, `POST
|
|
471
|
+
* /feed/poll/:pollId/close`; staff may too, audited): `closesAt` becomes that
|
|
472
|
+
* moment, so a closed poll reads the same however it closed.
|
|
415
473
|
*/
|
|
416
474
|
export const feedPollSchema = z.object({
|
|
417
475
|
id: objectIdSchema,
|
|
418
476
|
contentKind: z.literal('poll'),
|
|
419
477
|
author: feedAuthorSchema,
|
|
420
478
|
question: z.string().min(1).max(POLL_QUESTION_MAX_CHARS),
|
|
479
|
+
/** As on a post: the `@handles` in `question` that are live members (2026-11-23). */
|
|
480
|
+
mentions: mentionsSchema,
|
|
421
481
|
options: z.array(pollOptionSchema).min(POLL_MIN_OPTIONS).max(POLL_MAX_OPTIONS),
|
|
422
482
|
/** Unique voters, not votes: with multi-select the two differ. */
|
|
423
483
|
totalVoters: z.number().int().nonnegative(),
|
|
@@ -432,6 +492,13 @@ export const feedPollSchema = z.object({
|
|
|
432
492
|
* stays for rendering "closes in 2 days"; this is what gates the control.
|
|
433
493
|
*/
|
|
434
494
|
isClosed: z.boolean(),
|
|
495
|
+
/**
|
|
496
|
+
* When its results show (2026-11-23). `after_close` on an open poll: every
|
|
497
|
+
* `voteCount` is 0 on the wire and `totalVoters` is real, so a client shows
|
|
498
|
+
* "N have voted" and the results once `isClosed`. Defaults to `live` for an
|
|
499
|
+
* answer from before the field.
|
|
500
|
+
*/
|
|
501
|
+
resultsVisibility: pollResultsVisibilitySchema.default('live'),
|
|
435
502
|
/** As on a post. A poll is feed content and is matched the same way. */
|
|
436
503
|
topics: z.array(topicSchema).max(MAX_TOPICS),
|
|
437
504
|
/** As on a post: "which onboarding flow should we ship?", about a product. */
|
|
@@ -442,6 +509,8 @@ export const feedPollSchema = z.object({
|
|
|
442
509
|
pinnedAt: z.iso.datetime().optional(),
|
|
443
510
|
commentCount: z.number().int().nonnegative(),
|
|
444
511
|
reactionCounts: reactionCountsSchema,
|
|
512
|
+
/** As on a post (2026-11-23). */
|
|
513
|
+
score: z.number().int(),
|
|
445
514
|
/** As on a post (0.8.0). */
|
|
446
515
|
repostCount: z.number().int().nonnegative(),
|
|
447
516
|
createdAt: z.iso.datetime(),
|
|
@@ -453,6 +522,12 @@ export const feedPollSchema = z.object({
|
|
|
453
522
|
* always populated for the viewer: a voter can always see their own
|
|
454
523
|
* answer even where others' results are hidden. */
|
|
455
524
|
votedOptionIndices: z.array(z.number().int().nonnegative()),
|
|
525
|
+
/**
|
|
526
|
+
* Whether this viewer may close it now (2026-11-23), decided by the
|
|
527
|
+
* server: its author, or staff who may remove it, while it is open.
|
|
528
|
+
* Absent from an answer from before the field: read as false.
|
|
529
|
+
*/
|
|
530
|
+
canClose: z.boolean().optional(),
|
|
456
531
|
})
|
|
457
532
|
.optional(),
|
|
458
533
|
});
|
|
@@ -478,9 +553,13 @@ export const feedCommentSchema = z.object({
|
|
|
478
553
|
parentCommentId: objectIdSchema.nullable(),
|
|
479
554
|
author: feedAuthorSchema,
|
|
480
555
|
text: z.string().max(COMMENT_MAX_BODY_CHARS),
|
|
556
|
+
/** As on a post: the `@handles` in `text` that are live members (2026-11-23). */
|
|
557
|
+
mentions: mentionsSchema,
|
|
481
558
|
/** Meaningful only on a top-level comment; always 0 on a reply. */
|
|
482
559
|
replyCount: z.number().int().nonnegative(),
|
|
483
560
|
reactionCounts: reactionCountsSchema,
|
|
561
|
+
/** Up votes minus down votes, as on a post (2026-11-23). May be negative. */
|
|
562
|
+
score: z.number().int(),
|
|
484
563
|
/**
|
|
485
564
|
* When the product's team marked this comment as feedback that helped
|
|
486
565
|
* (0.6.0), or null. Only a comment on a post tagged with a product, written
|
|
@@ -488,6 +567,12 @@ export const feedCommentSchema = z.object({
|
|
|
488
567
|
* contribution points.
|
|
489
568
|
*/
|
|
490
569
|
helpfulAt: z.iso.datetime().nullable(),
|
|
570
|
+
/**
|
|
571
|
+
* Whether the person who wrote the post or poll wrote this comment
|
|
572
|
+
* (2026-11-23): the thread marks it "Author", so their answers stand out.
|
|
573
|
+
* False for an answer from before the field.
|
|
574
|
+
*/
|
|
575
|
+
byItemAuthor: z.boolean().default(false),
|
|
491
576
|
createdAt: z.iso.datetime(),
|
|
492
577
|
editedAt: z.iso.datetime().nullable(),
|
|
493
578
|
/** No `bookmarked`: the post is the right thing to save, not a comment. */
|
|
@@ -523,10 +608,23 @@ export const feedQuerySchema = paginationQuerySchema.extend({
|
|
|
523
608
|
sort: z.preprocess(emptyStringToUndefined, feedSortSchema.default('new')),
|
|
524
609
|
interests: z.preprocess(emptyStringToUndefined, z.stringbool().default(false)),
|
|
525
610
|
});
|
|
611
|
+
/**
|
|
612
|
+
* `GET /api/v1/communities/:communityId/feed` (2026-11-23: it takes the
|
|
613
|
+
* feed's `sort` too, `new` by default as before). No `interests`: a community
|
|
614
|
+
* is already one subject.
|
|
615
|
+
*/
|
|
616
|
+
export const communityFeedQuerySchema = paginationQuerySchema.extend({
|
|
617
|
+
sort: z.preprocess(emptyStringToUndefined, feedSortSchema.default('new')),
|
|
618
|
+
});
|
|
526
619
|
/** `GET /api/v1/feed/:contentKind/:contentId/comments`. */
|
|
527
620
|
export const commentsQuerySchema = paginationQuerySchema.extend({
|
|
528
621
|
/** Omitted lists top-level comments; set, it lists that comment's replies. */
|
|
529
622
|
parentCommentId: z.preprocess(emptyStringToUndefined, objectIdSchema.optional()),
|
|
623
|
+
/**
|
|
624
|
+
* The order of top-level comments (2026-11-23), `top` when omitted. Ignored
|
|
625
|
+
* for replies, which are always oldest first.
|
|
626
|
+
*/
|
|
627
|
+
sort: z.preprocess(emptyStringToUndefined, commentSortSchema.default('top')),
|
|
530
628
|
});
|
|
531
629
|
/**
|
|
532
630
|
* `GET /api/v1/feed/:contentKind/:contentId/reactions` (0.8.0): who reacted,
|
|
@@ -670,28 +768,70 @@ const communityWithoutProduct = (b) => b.communityId === undefined || (b.product
|
|
|
670
768
|
export function postHasContent(post) {
|
|
671
769
|
return Boolean(post.text?.trim().length) || post.mediaCount > 0 || post.isRepost;
|
|
672
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* A NEW post's or poll's topics: 1 to `MAX_TOPICS` (the user's ruling,
|
|
773
|
+
* 2026-11-23: "make choosing the topics mandatory"). Before it a post could be
|
|
774
|
+
* written untagged, and an untagged post is one interest matching never finds.
|
|
775
|
+
*
|
|
776
|
+
* Absent, `null` or empty: `topicsRequired`, on `topics`. More than
|
|
777
|
+
* `MAX_TOPICS`: Zod's `too_big` with `maximum`. The same topic twice:
|
|
778
|
+
* `topicsDuplicate` (hary, 2026-11-23: as a community's topics), so two of one
|
|
779
|
+
* cannot fill the count. Write bodies only: the read shapes keep allowing none
|
|
780
|
+
* (older posts, and every repost).
|
|
781
|
+
*
|
|
782
|
+
* A REPOST takes no topics of its own (`createRepostBodySchema`, stored empty:
|
|
783
|
+
* it stays out of interest matching so one item is not matched twice), and an
|
|
784
|
+
* EDIT never touches them (`updatePostBodySchema` is the text alone).
|
|
785
|
+
*/
|
|
786
|
+
export const requiredTopicsSchema = z
|
|
787
|
+
.array(topicSchema, {
|
|
788
|
+
error: (issue) => issue.input === undefined || issue.input === null
|
|
789
|
+
? VALIDATION_MESSAGE.topicsRequired
|
|
790
|
+
: undefined,
|
|
791
|
+
})
|
|
792
|
+
.min(1, { error: VALIDATION_MESSAGE.topicsRequired })
|
|
793
|
+
.max(MAX_TOPICS)
|
|
794
|
+
.refine(eachOnce, { error: VALIDATION_MESSAGE.topicsDuplicate });
|
|
795
|
+
/**
|
|
796
|
+
* A create body's own rules run even while `topics` is the ONLY field that
|
|
797
|
+
* failed (2026-11-23). Zod skips an object's refinements once any field has
|
|
798
|
+
* failed, so an empty post with no topic said only "choose a topic", and
|
|
799
|
+
* "write something" came a round later: two rounds for two mistakes made at
|
|
800
|
+
* once. When any OTHER field fails they are still skipped, so a rule never
|
|
801
|
+
* reads a value of the wrong type.
|
|
802
|
+
*/
|
|
803
|
+
const evenWithoutTopics = {
|
|
804
|
+
when: (payload) => payload.issues.every((issue) => issue.path?.[0] === 'topics'),
|
|
805
|
+
};
|
|
673
806
|
export const createPostBodySchema = z
|
|
674
807
|
.object({
|
|
675
808
|
text: z.string().trim().max(POST_MAX_BODY_CHARS).optional(),
|
|
676
809
|
/** Already uploaded and completed. See `attachedMediaSchema`. Order is preserved. */
|
|
677
810
|
media: z.array(attachedMediaSchema).max(POST_MAX_MEDIA).optional(),
|
|
678
|
-
/**
|
|
679
|
-
topics:
|
|
811
|
+
/** Required since 2026-11-23: see `requiredTopicsSchema`. */
|
|
812
|
+
topics: requiredTopicsSchema,
|
|
680
813
|
...aboutAProduct,
|
|
681
814
|
...inACommunity,
|
|
682
815
|
})
|
|
683
816
|
.refine((b) => postHasContent({ text: b.text, mediaCount: b.media?.length ?? 0, isRepost: false }), {
|
|
684
817
|
error: VALIDATION_MESSAGE.postEmpty,
|
|
685
818
|
path: ['text'],
|
|
819
|
+
...evenWithoutTopics,
|
|
686
820
|
})
|
|
687
821
|
.refine((b) => eachOnce(b.media?.map((m) => m.mediaId) ?? []), {
|
|
688
822
|
error: VALIDATION_MESSAGE.mediaDuplicate,
|
|
689
823
|
path: ['media'],
|
|
824
|
+
...evenWithoutTopics,
|
|
825
|
+
})
|
|
826
|
+
.refine(askNeedsProduct, {
|
|
827
|
+
error: VALIDATION_MESSAGE.askWithoutProduct,
|
|
828
|
+
path: ['ask'],
|
|
829
|
+
...evenWithoutTopics,
|
|
690
830
|
})
|
|
691
|
-
.refine(askNeedsProduct, { error: VALIDATION_MESSAGE.askWithoutProduct, path: ['ask'] })
|
|
692
831
|
.refine(communityWithoutProduct, {
|
|
693
832
|
error: VALIDATION_MESSAGE.communityWithProduct,
|
|
694
833
|
path: ['communityId'],
|
|
834
|
+
...evenWithoutTopics,
|
|
695
835
|
});
|
|
696
836
|
/**
|
|
697
837
|
* Only the text is editable. Changing media after the fact makes every
|
|
@@ -716,14 +856,22 @@ export const createPollBodySchema = z
|
|
|
716
856
|
*/
|
|
717
857
|
durationMs: z.number().int().min(POLL_MIN_DURATION_MS).max(POLL_MAX_DURATION_MS),
|
|
718
858
|
allowsMultipleChoices: z.boolean(),
|
|
719
|
-
|
|
859
|
+
/** When its results show (2026-11-23); set once, here. Omitted: `live`. */
|
|
860
|
+
resultsVisibility: pollResultsVisibilitySchema.default('live'),
|
|
861
|
+
/** As on a post: required since 2026-11-23 (`requiredTopicsSchema`). */
|
|
862
|
+
topics: requiredTopicsSchema,
|
|
720
863
|
...aboutAProduct,
|
|
721
864
|
...inACommunity,
|
|
722
865
|
})
|
|
723
|
-
.refine(askNeedsProduct, {
|
|
866
|
+
.refine(askNeedsProduct, {
|
|
867
|
+
error: VALIDATION_MESSAGE.askWithoutProduct,
|
|
868
|
+
path: ['ask'],
|
|
869
|
+
...evenWithoutTopics,
|
|
870
|
+
})
|
|
724
871
|
.refine(communityWithoutProduct, {
|
|
725
872
|
error: VALIDATION_MESSAGE.communityWithProduct,
|
|
726
873
|
path: ['communityId'],
|
|
874
|
+
...evenWithoutTopics,
|
|
727
875
|
})
|
|
728
876
|
.refine((b) => {
|
|
729
877
|
const seen = new Set();
|
|
@@ -734,7 +882,7 @@ export const createPollBodySchema = z
|
|
|
734
882
|
seen.add(key);
|
|
735
883
|
}
|
|
736
884
|
return true;
|
|
737
|
-
}, { error: VALIDATION_MESSAGE.pollOptionsDuplicate, path: ['options'] });
|
|
885
|
+
}, { error: VALIDATION_MESSAGE.pollOptionsDuplicate, path: ['options'], ...evenWithoutTopics });
|
|
738
886
|
/**
|
|
739
887
|
* Cast or change a vote. The server upserts on (poll, voter), so voting twice
|
|
740
888
|
* replaces rather than doubles. Each option once (0.18.0: `[0, 0]` was taken
|
|
@@ -801,6 +949,38 @@ export const setReactionResponseSchema = z.object({
|
|
|
801
949
|
reaction: reactionTypeSchema.nullable(),
|
|
802
950
|
reactionCounts: reactionCountsSchema,
|
|
803
951
|
});
|
|
952
|
+
/**
|
|
953
|
+
* `POST /api/v1/feed/:contentKind/:contentId/score` (2026-11-23, the user:
|
|
954
|
+
* Jansathi's up and down votes into FC), on a post, a poll or a comment;
|
|
955
|
+
* answering `SetScoreVoteResponse`.
|
|
956
|
+
*
|
|
957
|
+
* `vote` is the viewer's vote AFTER the call: `up` or `down` sets it (the
|
|
958
|
+
* other direction flips it), `null` clears it. Re-sending what they already
|
|
959
|
+
* have changes nothing, so a retry is safe; the client's "tap the same arrow
|
|
960
|
+
* again to take it back" sends `null`.
|
|
961
|
+
*
|
|
962
|
+
* Refused like a reaction: an item deleted, hidden or not visible to them is
|
|
963
|
+
* 404; a viewer without membership is `MEMBERSHIP_REQUIRED`; in a community,
|
|
964
|
+
* setting one needs membership of it, taking one back only read access. Your
|
|
965
|
+
* OWN post, poll or comment is refused (`CANNOT_VOTE_OWN`, 400; hary's ruling,
|
|
966
|
+
* 2026-11-23, stricter than Jansathi so Top and Hot stay honest): the viewer's
|
|
967
|
+
* `isAuthor` says so, and the control shows the score without being pressable.
|
|
968
|
+
*
|
|
969
|
+
* Only a NEW up vote rings the author's bell (`post_upvote`, `comment_upvote`);
|
|
970
|
+
* a down vote, a flip and a clear are silent. The bell names the voter to the
|
|
971
|
+
* author, as Jansathi's does; the item itself shows only the net score.
|
|
972
|
+
*/
|
|
973
|
+
export const setScoreVoteBodySchema = z.object({
|
|
974
|
+
vote: scoreVoteSchema.nullable(),
|
|
975
|
+
});
|
|
976
|
+
/** The authoritative result, so the arrows and the number render without a second read. */
|
|
977
|
+
export const setScoreVoteResponseSchema = z.object({
|
|
978
|
+
contentKind: engagementTargetKindSchema,
|
|
979
|
+
contentId: objectIdSchema,
|
|
980
|
+
vote: scoreVoteSchema.nullable(),
|
|
981
|
+
/** The item's net score after the write. May be negative. */
|
|
982
|
+
score: z.number().int(),
|
|
983
|
+
});
|
|
804
984
|
// ─── Reporting ───────────────────────────────────────────────────────────────
|
|
805
985
|
/**
|
|
806
986
|
* Where a report stands (0.18.0: named here; the backend's model kept its own
|
|
@@ -882,4 +1062,10 @@ export const toggleBookmarkResponseSchema = z.object({
|
|
|
882
1062
|
export const castVoteResponseSchema = z.object({
|
|
883
1063
|
poll: feedPollSchema,
|
|
884
1064
|
});
|
|
1065
|
+
/**
|
|
1066
|
+
* `POST /api/v1/feed/poll/:pollId/close` (2026-11-23): its author (or staff)
|
|
1067
|
+
* closes it now. Answers the whole poll, closed, as a vote does. Closing one
|
|
1068
|
+
* already closed changes nothing and answers it as it is.
|
|
1069
|
+
*/
|
|
1070
|
+
export const closePollResponseSchema = castVoteResponseSchema;
|
|
885
1071
|
//# sourceMappingURL=feed.js.map
|