founder-schema 0.19.0 → 0.20.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/README.md +46 -0
- package/dist/access/permissions.d.ts +3 -3
- package/dist/access/permissions.d.ts.map +1 -1
- package/dist/access/permissions.js.map +1 -1
- package/dist/core/common.d.ts +42 -15
- package/dist/core/common.d.ts.map +1 -1
- package/dist/core/common.js +58 -15
- package/dist/core/common.js.map +1 -1
- package/dist/core/deletion.d.ts +40 -0
- package/dist/core/deletion.d.ts.map +1 -0
- package/dist/core/deletion.js +39 -0
- package/dist/core/deletion.js.map +1 -0
- package/dist/domains/audit/audit.d.ts +36 -12
- package/dist/domains/audit/audit.d.ts.map +1 -1
- package/dist/domains/audit/audit.js +9 -10
- package/dist/domains/audit/audit.js.map +1 -1
- package/dist/domains/billing/billing.d.ts +29 -13
- package/dist/domains/billing/billing.d.ts.map +1 -1
- package/dist/domains/billing/billing.js +2 -3
- package/dist/domains/billing/billing.js.map +1 -1
- package/dist/domains/chat/chat.d.ts +19 -5
- package/dist/domains/chat/chat.d.ts.map +1 -1
- package/dist/domains/chat/chat.js +10 -10
- package/dist/domains/chat/chat.js.map +1 -1
- package/dist/domains/communities/communities.d.ts +95 -57
- package/dist/domains/communities/communities.d.ts.map +1 -1
- package/dist/domains/contributions/contributions.d.ts +28 -12
- package/dist/domains/contributions/contributions.d.ts.map +1 -1
- package/dist/domains/contributions/contributions.js +3 -0
- package/dist/domains/contributions/contributions.js.map +1 -1
- package/dist/domains/discover/discover.d.ts +2 -2
- package/dist/domains/feed/feed.d.ts +111 -63
- package/dist/domains/feed/feed.d.ts.map +1 -1
- package/dist/domains/feed/feed.js +3 -0
- package/dist/domains/feed/feed.js.map +1 -1
- package/dist/domains/location/areas.d.ts +7 -0
- package/dist/domains/location/areas.d.ts.map +1 -1
- package/dist/domains/location/areas.js +3 -0
- package/dist/domains/location/areas.js.map +1 -1
- package/dist/domains/media/media.d.ts +22 -0
- package/dist/domains/media/media.d.ts.map +1 -1
- package/dist/domains/media/media.js +20 -0
- package/dist/domains/media/media.js.map +1 -1
- package/dist/domains/members/members.d.ts +26 -9
- package/dist/domains/members/members.d.ts.map +1 -1
- package/dist/domains/members/members.js +9 -10
- package/dist/domains/members/members.js.map +1 -1
- package/dist/domains/membership/membership.d.ts +19 -0
- package/dist/domains/membership/membership.d.ts.map +1 -1
- package/dist/domains/membership/membership.js +10 -0
- package/dist/domains/membership/membership.js.map +1 -1
- package/dist/domains/moderation/moderation.d.ts +8 -2
- package/dist/domains/moderation/moderation.d.ts.map +1 -1
- package/dist/domains/moderation/moderation.js +3 -6
- package/dist/domains/moderation/moderation.js.map +1 -1
- package/dist/domains/notifications/notifications.d.ts +10 -6
- package/dist/domains/notifications/notifications.d.ts.map +1 -1
- package/dist/domains/onboarding/onboarding-answers.js +1 -1
- package/dist/domains/onboarding/onboarding-answers.js.map +1 -1
- package/dist/domains/onboarding/onboarding.d.ts +11 -10
- package/dist/domains/onboarding/onboarding.d.ts.map +1 -1
- package/dist/domains/onboarding/onboarding.js +16 -9
- package/dist/domains/onboarding/onboarding.js.map +1 -1
- package/dist/domains/people/person.d.ts +54 -0
- package/dist/domains/people/person.d.ts.map +1 -0
- package/dist/domains/people/person.js +73 -0
- package/dist/domains/people/person.js.map +1 -0
- package/dist/domains/products/products.d.ts +62 -33
- package/dist/domains/products/products.d.ts.map +1 -1
- package/dist/domains/products/products.js +3 -0
- package/dist/domains/products/products.js.map +1 -1
- package/dist/domains/profile/founder-profile.d.ts +36 -19
- package/dist/domains/profile/founder-profile.d.ts.map +1 -1
- package/dist/domains/profile/founder-profile.js +43 -21
- package/dist/domains/profile/founder-profile.js.map +1 -1
- package/dist/domains/reviews/reviews.d.ts +25 -15
- package/dist/domains/reviews/reviews.d.ts.map +1 -1
- package/dist/domains/support/support.d.ts +47 -10
- package/dist/domains/support/support.d.ts.map +1 -1
- package/dist/domains/support/support.js +4 -2
- package/dist/domains/support/support.js.map +1 -1
- package/dist/domains/team/team.d.ts +9 -3
- package/dist/domains/team/team.d.ts.map +1 -1
- package/dist/domains/team/team.js +3 -6
- package/dist/domains/team/team.js.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/account.d.ts +0 -40
- package/dist/account.d.ts.map +0 -1
- package/dist/account.js +0 -39
- package/dist/account.js.map +0 -1
- package/dist/chat.d.ts +0 -187
- package/dist/chat.d.ts.map +0 -1
- package/dist/chat.js +0 -189
- package/dist/chat.js.map +0 -1
- package/dist/common.d.ts +0 -304
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -340
- package/dist/common.js.map +0 -1
- package/dist/discover.d.ts +0 -245
- package/dist/discover.d.ts.map +0 -1
- package/dist/discover.js +0 -68
- package/dist/discover.js.map +0 -1
- package/dist/errors.d.ts +0 -85
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -89
- package/dist/errors.js.map +0 -1
- package/dist/feed.d.ts +0 -1658
- package/dist/feed.d.ts.map +0 -1
- package/dist/feed.js +0 -623
- package/dist/feed.js.map +0 -1
- package/dist/founder-profile.d.ts +0 -387
- package/dist/founder-profile.d.ts.map +0 -1
- package/dist/founder-profile.js +0 -180
- package/dist/founder-profile.js.map +0 -1
- package/dist/limits.d.ts +0 -76
- package/dist/limits.d.ts.map +0 -1
- package/dist/limits.js +0 -84
- package/dist/limits.js.map +0 -1
- package/dist/onboarding.d.ts +0 -1018
- package/dist/onboarding.d.ts.map +0 -1
- package/dist/onboarding.js +0 -717
- package/dist/onboarding.js.map +0 -1
- package/dist/responses/common.d.ts +0 -167
- package/dist/responses/common.d.ts.map +0 -1
- package/dist/responses/common.js +0 -67
- package/dist/responses/common.js.map +0 -1
- package/dist/responses/index.d.ts +0 -7
- package/dist/responses/index.d.ts.map +0 -1
- package/dist/responses/index.js +0 -7
- package/dist/responses/index.js.map +0 -1
- package/dist/uploads.d.ts +0 -113
- package/dist/uploads.d.ts.map +0 -1
- package/dist/uploads.js +0 -106
- package/dist/uploads.js.map +0 -1
- package/dist/validation.d.ts +0 -136
- package/dist/validation.d.ts.map +0 -1
- package/dist/validation.js +0 -142
- package/dist/validation.js.map +0 -1
package/dist/feed.d.ts
DELETED
|
@@ -1,1658 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* founder-schema — Feed wire shapes: post, poll, comment, reaction
|
|
3
|
-
*
|
|
4
|
-
* ADAPTED FROM `jansathi-community-schema`, NOT DEPENDENT ON IT.
|
|
5
|
-
*
|
|
6
|
-
* The user ruled on 2026-09-21 that Founder Circle is a standalone app, so
|
|
7
|
-
* these shapes are copied and cut down rather than imported. The reason is
|
|
8
|
-
* worth keeping: `jansathi-community-schema` encodes Jansathi's reach levels,
|
|
9
|
-
* community designations, official-area kinds and crowdfunding audiences.
|
|
10
|
-
* Depending on it would put all of that permanently inside our contract for a
|
|
11
|
-
* feed that has none of those concepts, and would mean a Jansathi publish can
|
|
12
|
-
* break this product.
|
|
13
|
-
*
|
|
14
|
-
* DELIBERATELY NOT PORTED, so nobody "restores" them:
|
|
15
|
-
* - the five civic verticals (lost_found, suggestions_complaints,
|
|
16
|
-
* donate_item, crowdfunding, event). `contentKind` here is post | poll
|
|
17
|
-
* only; comment threads and bookmarks key off it, and reactions and
|
|
18
|
-
* reports off the same union plus `comment`.
|
|
19
|
-
* - official communities, designations, identity verification badges.
|
|
20
|
-
* - social score, and the whole area-proximity ranking vocabulary
|
|
21
|
-
* (local / district / state / national / global).
|
|
22
|
-
* - `areaLineage` as a REQUIRED authorship snapshot. Jansathi gates its
|
|
23
|
-
* composer on a declared residence resolving to Indian district level or
|
|
24
|
-
* deeper; the user ruled location is never mandatory here, so nothing in
|
|
25
|
-
* this file requires one.
|
|
26
|
-
* - anonymous posting, which in Jansathi is gated on identity verification
|
|
27
|
-
* we do not have. A founders' network is an identified network.
|
|
28
|
-
*
|
|
29
|
-
* @module founder-schema/feed
|
|
30
|
-
*/
|
|
31
|
-
import { z } from 'zod';
|
|
32
|
-
/**
|
|
33
|
-
* Exported because the composer must count down to the SAME number the server
|
|
34
|
-
* rejects at. A client-side limit that disagrees with the server is a message
|
|
35
|
-
* a member cannot send and cannot see why.
|
|
36
|
-
*/
|
|
37
|
-
export declare const POST_MAX_BODY_CHARS = 5000;
|
|
38
|
-
/**
|
|
39
|
-
* Total attachments on one post, images and videos together.
|
|
40
|
-
*
|
|
41
|
-
* ONE cap over ONE ordered list, rather than Jansathi's separate image and
|
|
42
|
-
* video arrays. A member who posts a screenshot, then a clip, then another
|
|
43
|
-
* screenshot means that order, and two parallel arrays cannot express it: the
|
|
44
|
-
* card would show both images and then the video, which is not what was
|
|
45
|
-
* written.
|
|
46
|
-
*/
|
|
47
|
-
export declare const POST_MAX_MEDIA = 10;
|
|
48
|
-
/**
|
|
49
|
-
* Topics per item.
|
|
50
|
-
*
|
|
51
|
-
* Capped low on purpose: a post tagged with everything is about nothing, and
|
|
52
|
-
* one tagged with ten matches every member, which is how a relevance feature
|
|
53
|
-
* turns back into a chronological one.
|
|
54
|
-
*/
|
|
55
|
-
export declare const MAX_TOPICS = 3;
|
|
56
|
-
export declare const COMMENT_MAX_BODY_CHARS = 2000;
|
|
57
|
-
export declare const POLL_QUESTION_MAX_CHARS = 280;
|
|
58
|
-
export declare const POLL_OPTION_MAX_CHARS = 80;
|
|
59
|
-
export declare const POLL_MIN_OPTIONS = 2;
|
|
60
|
-
export declare const POLL_MAX_OPTIONS = 6;
|
|
61
|
-
/** 5 minutes. Below this a poll closes before anyone sees it. */
|
|
62
|
-
export declare const POLL_MIN_DURATION_MS: number;
|
|
63
|
-
/** 30 days. */
|
|
64
|
-
export declare const POLL_MAX_DURATION_MS: number;
|
|
65
|
-
/**
|
|
66
|
-
* How long after writing it the author may still edit a post or a comment.
|
|
67
|
-
*
|
|
68
|
-
* A window rather than forever: an edit after people have reacted changes what
|
|
69
|
-
* they reacted to. Deletion has no window, because a member must always be able
|
|
70
|
-
* to remove their own words. The server is the gate (`EDIT_WINDOW_CLOSED`);
|
|
71
|
-
* a client uses this to stop offering Edit at the moment the server would
|
|
72
|
-
* start refusing it, instead of on the next reload.
|
|
73
|
-
*/
|
|
74
|
-
export declare const EDIT_WINDOW_MS: number;
|
|
75
|
-
/**
|
|
76
|
-
* What can appear in the feed. Two kinds, not seven.
|
|
77
|
-
*
|
|
78
|
-
* Engagement is keyed by `(contentKind, contentId)` so one engagement bar
|
|
79
|
-
* serves both, and comments hang off the same pair. Adding a kind later is
|
|
80
|
-
* additive; the union is deliberately narrow now so the client never has to
|
|
81
|
-
* handle a kind this product does not have.
|
|
82
|
-
*/
|
|
83
|
-
export declare const CONTENT_KIND_VALUES: readonly ["post", "poll"];
|
|
84
|
-
export declare const contentKindSchema: z.ZodEnum<{
|
|
85
|
-
post: "post";
|
|
86
|
-
poll: "poll";
|
|
87
|
-
}>;
|
|
88
|
-
export type ContentKind = z.infer<typeof contentKindSchema>;
|
|
89
|
-
/**
|
|
90
|
-
* What a reaction or a report can point at: a feed item, or a comment on one.
|
|
91
|
-
*
|
|
92
|
-
* Wider than `ContentKind` on purpose. A comment carries reaction counts and a
|
|
93
|
-
* viewer reaction, and a comment can be abusive, so both reach it. A bookmark
|
|
94
|
-
* and a comment thread cannot: they take `ContentKind`. Until 0.2.0 the
|
|
95
|
-
* reaction and report RESPONSES were typed `ContentKind` while the routes
|
|
96
|
-
* accepted comments, so every answer about a comment broke this contract.
|
|
97
|
-
*/
|
|
98
|
-
export declare const ENGAGEMENT_TARGET_KIND_VALUES: readonly ["post", "poll", "comment"];
|
|
99
|
-
export declare const engagementTargetKindSchema: z.ZodEnum<{
|
|
100
|
-
post: "post";
|
|
101
|
-
poll: "poll";
|
|
102
|
-
comment: "comment";
|
|
103
|
-
}>;
|
|
104
|
-
export type EngagementTargetKind = z.infer<typeof engagementTargetKindSchema>;
|
|
105
|
-
/**
|
|
106
|
-
* Reactions. Jansathi's `support` is dropped: it exists for reacting to a
|
|
107
|
-
* civic complaint or a lost-and-found notice, which this feed does not carry.
|
|
108
|
-
*
|
|
109
|
-
* ⚠️ These values are stored per reaction row, so removing one orphans data.
|
|
110
|
-
* Append only.
|
|
111
|
-
*/
|
|
112
|
-
export declare const REACTION_TYPE_VALUES: readonly ["like", "celebrate", "insightful", "curious"];
|
|
113
|
-
export declare const reactionTypeSchema: z.ZodEnum<{
|
|
114
|
-
like: "like";
|
|
115
|
-
celebrate: "celebrate";
|
|
116
|
-
insightful: "insightful";
|
|
117
|
-
curious: "curious";
|
|
118
|
-
}>;
|
|
119
|
-
export type ReactionType = z.infer<typeof reactionTypeSchema>;
|
|
120
|
-
/**
|
|
121
|
-
* Feed ordering.
|
|
122
|
-
*
|
|
123
|
-
* `new` is the default here, unlike Jansathi where `hot` leads. A hot ranking
|
|
124
|
-
* needs volume to be meaningful, and a brand-new network ranking a handful of
|
|
125
|
-
* posts by a blended score mostly hides the newest thing somebody just wrote.
|
|
126
|
-
* Revisit when there is enough content for `hot` to mean anything.
|
|
127
|
-
*/
|
|
128
|
-
export declare const FEED_SORT_VALUES: readonly ["new", "top"];
|
|
129
|
-
export declare const feedSortSchema: z.ZodEnum<{
|
|
130
|
-
new: "new";
|
|
131
|
-
top: "top";
|
|
132
|
-
}>;
|
|
133
|
-
export type FeedSort = z.infer<typeof feedSortSchema>;
|
|
134
|
-
/**
|
|
135
|
-
* Counts keyed by reaction type, e.g. `{ like: 4, celebrate: 1 }`. Only the
|
|
136
|
-
* reactions an item actually has need appear.
|
|
137
|
-
*
|
|
138
|
-
* ⚠️ `partialRecord`, NOT `record`. In Zod 4 an enum-keyed `z.record` is
|
|
139
|
-
* EXHAUSTIVE: it demands every key, so `{ like: 4 }` fails with three missing
|
|
140
|
-
* keys and `{}` fails with four. That would force the server to ship a zero for
|
|
141
|
-
* every reaction on every item, and the day a fifth reaction is added every
|
|
142
|
-
* previously stored payload and every older client stops parsing.
|
|
143
|
-
* `partialRecord` keeps the key validation without the exhaustiveness, so an
|
|
144
|
-
* unknown key like Jansathi's `support` is still refused.
|
|
145
|
-
*/
|
|
146
|
-
export declare const reactionCountsSchema: z.ZodRecord<z.ZodEnum<{
|
|
147
|
-
like: "like";
|
|
148
|
-
celebrate: "celebrate";
|
|
149
|
-
insightful: "insightful";
|
|
150
|
-
curious: "curious";
|
|
151
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
152
|
-
export type ReactionCounts = z.infer<typeof reactionCountsSchema>;
|
|
153
|
-
/**
|
|
154
|
-
* The author as a card renders them.
|
|
155
|
-
*
|
|
156
|
-
* Every field here is LIVE, joined against the profile at read time rather
|
|
157
|
-
* than frozen onto the post at write time. So a renamed handle, a new avatar
|
|
158
|
-
* or an edited headline updates on old posts, and the byline link always
|
|
159
|
-
* targets the current username instead of 404ing on a handle that moved.
|
|
160
|
-
*
|
|
161
|
-
* Jansathi additionally snapshots `localName` ("where the author was when
|
|
162
|
-
* posting"). Not ported: location is optional here, so a byline that depends
|
|
163
|
-
* on one would be blank for anyone who never set it.
|
|
164
|
-
*/
|
|
165
|
-
export declare const feedAuthorSchema: z.ZodObject<{
|
|
166
|
-
userId: z.ZodString;
|
|
167
|
-
username: z.ZodString;
|
|
168
|
-
displayName: z.ZodString;
|
|
169
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
170
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
171
|
-
}, z.core.$strip>;
|
|
172
|
-
export type FeedAuthor = z.infer<typeof feedAuthorSchema>;
|
|
173
|
-
/**
|
|
174
|
-
* `width` and `height` are required so a card can reserve the right box before
|
|
175
|
-
* the image loads. Without them every image arrival shifts the feed under the
|
|
176
|
-
* reader's thumb.
|
|
177
|
-
*
|
|
178
|
-
* URLs here come from our own upload pipeline, so they take a plain `z.url()`
|
|
179
|
-
* rather than `httpUrlSchema`. ⚠️ If a "paste an image link" path is ever
|
|
180
|
-
* added, these become member-supplied and must move to `httpUrlSchema`.
|
|
181
|
-
*/
|
|
182
|
-
export declare const feedImageSchema: z.ZodObject<{
|
|
183
|
-
kind: z.ZodLiteral<"image">;
|
|
184
|
-
url: z.ZodURL;
|
|
185
|
-
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
186
|
-
width: z.ZodNumber;
|
|
187
|
-
height: z.ZodNumber;
|
|
188
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
189
|
-
}, z.core.$strip>;
|
|
190
|
-
export type FeedImage = z.infer<typeof feedImageSchema>;
|
|
191
|
-
export declare const feedVideoSchema: z.ZodObject<{
|
|
192
|
-
kind: z.ZodLiteral<"video">;
|
|
193
|
-
url: z.ZodURL;
|
|
194
|
-
thumbnailUrl: z.ZodURL;
|
|
195
|
-
width: z.ZodNumber;
|
|
196
|
-
height: z.ZodNumber;
|
|
197
|
-
duration: z.ZodNumber;
|
|
198
|
-
}, z.core.$strip>;
|
|
199
|
-
export type FeedVideo = z.infer<typeof feedVideoSchema>;
|
|
200
|
-
/**
|
|
201
|
-
* One ordered list, discriminated on `kind`, so the carousel renders
|
|
202
|
-
* attachments in the order they were attached and can switch on the kind
|
|
203
|
-
* without inspecting fields.
|
|
204
|
-
*/
|
|
205
|
-
export declare const feedMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
|
-
kind: z.ZodLiteral<"image">;
|
|
207
|
-
url: z.ZodURL;
|
|
208
|
-
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
209
|
-
width: z.ZodNumber;
|
|
210
|
-
height: z.ZodNumber;
|
|
211
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
212
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
-
kind: z.ZodLiteral<"video">;
|
|
214
|
-
url: z.ZodURL;
|
|
215
|
-
thumbnailUrl: z.ZodURL;
|
|
216
|
-
width: z.ZodNumber;
|
|
217
|
-
height: z.ZodNumber;
|
|
218
|
-
duration: z.ZodNumber;
|
|
219
|
-
}, z.core.$strip>], "kind">;
|
|
220
|
-
export type FeedMedia = z.infer<typeof feedMediaSchema>;
|
|
221
|
-
/**
|
|
222
|
-
* Preview for the first link in a post body. Server-derived at write time and
|
|
223
|
-
* stored, never re-fetched at render: a card that fetches a third-party page
|
|
224
|
-
* per scroll leaks every reader's address to that site and blocks the feed on
|
|
225
|
-
* somebody else's latency.
|
|
226
|
-
*
|
|
227
|
-
* Both URLs take `safeUrlSchema`: the scheme and host rules, WITHOUT the
|
|
228
|
-
* typed-URL cap. `url` came out of a post body, which is already capped as a
|
|
229
|
-
* whole, and `imageUrl` is whatever the remote page advertised; a long CDN URL
|
|
230
|
-
* is ordinary, and one over `LINK_URL_MAX` would otherwise fail the whole feed
|
|
231
|
-
* page it sits on. Neither is ours, so a consumer still treats both as
|
|
232
|
-
* untrusted at render.
|
|
233
|
-
*/
|
|
234
|
-
export declare const linkPreviewSchema: z.ZodObject<{
|
|
235
|
-
url: z.ZodURL;
|
|
236
|
-
title: z.ZodOptional<z.ZodString>;
|
|
237
|
-
description: z.ZodOptional<z.ZodString>;
|
|
238
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
|
-
export type LinkPreview = z.infer<typeof linkPreviewSchema>;
|
|
241
|
-
/**
|
|
242
|
-
* What THIS viewer has done to this item, computed per request.
|
|
243
|
-
*
|
|
244
|
-
* Optional as a block, because an unauthenticated or server-rendered read has
|
|
245
|
-
* no viewer. ⚠️ A client must treat an absent `viewer` as "no state known",
|
|
246
|
-
* never as "has not reacted": rendering an empty reaction button off a missing
|
|
247
|
-
* block is how a member sees their own reaction disappear on reload.
|
|
248
|
-
*/
|
|
249
|
-
export declare const viewerStateSchema: z.ZodObject<{
|
|
250
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
251
|
-
like: "like";
|
|
252
|
-
celebrate: "celebrate";
|
|
253
|
-
insightful: "insightful";
|
|
254
|
-
curious: "curious";
|
|
255
|
-
}>>;
|
|
256
|
-
bookmarked: z.ZodBoolean;
|
|
257
|
-
isAuthor: z.ZodBoolean;
|
|
258
|
-
canEdit: z.ZodBoolean;
|
|
259
|
-
canDelete: z.ZodBoolean;
|
|
260
|
-
canReport: z.ZodBoolean;
|
|
261
|
-
}, z.core.$strip>;
|
|
262
|
-
export type ViewerState = z.infer<typeof viewerStateSchema>;
|
|
263
|
-
/**
|
|
264
|
-
* A post as the feed and the single-post page receive it.
|
|
265
|
-
*
|
|
266
|
-
* Counts are denormalised onto the row so one document serves a whole card.
|
|
267
|
-
*
|
|
268
|
-
* No `score` and no up/down vote. Jansathi's signed score exists to rank civic
|
|
269
|
-
* content by community judgement, and a downvote arrow on a founder's first
|
|
270
|
-
* post is a different product. Reactions and comments are the engagement axes
|
|
271
|
-
* here. Adding a score later is additive; removing a visible downvote after
|
|
272
|
-
* members have used it is not.
|
|
273
|
-
*/
|
|
274
|
-
export declare const feedPostSchema: z.ZodObject<{
|
|
275
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
276
|
-
contentKind: z.ZodLiteral<"post">;
|
|
277
|
-
author: z.ZodObject<{
|
|
278
|
-
userId: z.ZodString;
|
|
279
|
-
username: z.ZodString;
|
|
280
|
-
displayName: z.ZodString;
|
|
281
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
282
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
283
|
-
}, z.core.$strip>;
|
|
284
|
-
text: z.ZodString;
|
|
285
|
-
media: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
286
|
-
kind: z.ZodLiteral<"image">;
|
|
287
|
-
url: z.ZodURL;
|
|
288
|
-
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
289
|
-
width: z.ZodNumber;
|
|
290
|
-
height: z.ZodNumber;
|
|
291
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
292
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
-
kind: z.ZodLiteral<"video">;
|
|
294
|
-
url: z.ZodURL;
|
|
295
|
-
thumbnailUrl: z.ZodURL;
|
|
296
|
-
width: z.ZodNumber;
|
|
297
|
-
height: z.ZodNumber;
|
|
298
|
-
duration: z.ZodNumber;
|
|
299
|
-
}, z.core.$strip>], "kind">>;
|
|
300
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
301
|
-
url: z.ZodURL;
|
|
302
|
-
title: z.ZodOptional<z.ZodString>;
|
|
303
|
-
description: z.ZodOptional<z.ZodString>;
|
|
304
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
305
|
-
}, z.core.$strip>>;
|
|
306
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
307
|
-
ai_ml: "ai_ml";
|
|
308
|
-
b2b_saas: "b2b_saas";
|
|
309
|
-
d2c: "d2c";
|
|
310
|
-
deeptech: "deeptech";
|
|
311
|
-
robotics: "robotics";
|
|
312
|
-
growth: "growth";
|
|
313
|
-
sales: "sales";
|
|
314
|
-
marketing: "marketing";
|
|
315
|
-
supply_chain: "supply_chain";
|
|
316
|
-
fundraising: "fundraising";
|
|
317
|
-
mentoring: "mentoring";
|
|
318
|
-
leadership: "leadership";
|
|
319
|
-
networking: "networking";
|
|
320
|
-
public_speaking: "public_speaking";
|
|
321
|
-
teaching: "teaching";
|
|
322
|
-
hiring_talent: "hiring_talent";
|
|
323
|
-
personal_branding: "personal_branding";
|
|
324
|
-
career_transition: "career_transition";
|
|
325
|
-
remote_work: "remote_work";
|
|
326
|
-
blockchain: "blockchain";
|
|
327
|
-
crypto_web3: "crypto_web3";
|
|
328
|
-
data_science: "data_science";
|
|
329
|
-
cybersecurity: "cybersecurity";
|
|
330
|
-
game_dev: "game_dev";
|
|
331
|
-
ux_design: "ux_design";
|
|
332
|
-
app_development: "app_development";
|
|
333
|
-
open_source: "open_source";
|
|
334
|
-
electronics: "electronics";
|
|
335
|
-
space_exploration: "space_exploration";
|
|
336
|
-
green_tech: "green_tech";
|
|
337
|
-
no_code: "no_code";
|
|
338
|
-
entrepreneurship: "entrepreneurship";
|
|
339
|
-
investing: "investing";
|
|
340
|
-
stock_trading: "stock_trading";
|
|
341
|
-
personal_finance: "personal_finance";
|
|
342
|
-
consulting: "consulting";
|
|
343
|
-
ecommerce: "ecommerce";
|
|
344
|
-
retail: "retail";
|
|
345
|
-
real_estate: "real_estate";
|
|
346
|
-
product_management: "product_management";
|
|
347
|
-
meditation: "meditation";
|
|
348
|
-
journaling: "journaling";
|
|
349
|
-
self_improvement: "self_improvement";
|
|
350
|
-
productivity: "productivity";
|
|
351
|
-
reading: "reading";
|
|
352
|
-
online_courses: "online_courses";
|
|
353
|
-
philosophy: "philosophy";
|
|
354
|
-
psychology: "psychology";
|
|
355
|
-
therapy: "therapy";
|
|
356
|
-
sleep_optimization: "sleep_optimization";
|
|
357
|
-
gym: "gym";
|
|
358
|
-
yoga: "yoga";
|
|
359
|
-
photography: "photography";
|
|
360
|
-
writing: "writing";
|
|
361
|
-
graphic_design: "graphic_design";
|
|
362
|
-
filmmaking: "filmmaking";
|
|
363
|
-
digital_art: "digital_art";
|
|
364
|
-
content_creation: "content_creation";
|
|
365
|
-
blogging: "blogging";
|
|
366
|
-
vlogging: "vlogging";
|
|
367
|
-
podcasts: "podcasts";
|
|
368
|
-
animation: "animation";
|
|
369
|
-
music_production: "music_production";
|
|
370
|
-
volunteering: "volunteering";
|
|
371
|
-
ngo_work: "ngo_work";
|
|
372
|
-
environmental: "environmental";
|
|
373
|
-
women_empowerment: "women_empowerment";
|
|
374
|
-
community_service: "community_service";
|
|
375
|
-
social_enterprise: "social_enterprise";
|
|
376
|
-
education_access: "education_access";
|
|
377
|
-
}>>;
|
|
378
|
-
commentCount: z.ZodNumber;
|
|
379
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
380
|
-
like: "like";
|
|
381
|
-
celebrate: "celebrate";
|
|
382
|
-
insightful: "insightful";
|
|
383
|
-
curious: "curious";
|
|
384
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
385
|
-
createdAt: z.ZodISODateTime;
|
|
386
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
387
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
388
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
389
|
-
like: "like";
|
|
390
|
-
celebrate: "celebrate";
|
|
391
|
-
insightful: "insightful";
|
|
392
|
-
curious: "curious";
|
|
393
|
-
}>>;
|
|
394
|
-
bookmarked: z.ZodBoolean;
|
|
395
|
-
isAuthor: z.ZodBoolean;
|
|
396
|
-
canEdit: z.ZodBoolean;
|
|
397
|
-
canDelete: z.ZodBoolean;
|
|
398
|
-
canReport: z.ZodBoolean;
|
|
399
|
-
}, z.core.$strip>>;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
export type FeedPost = z.infer<typeof feedPostSchema>;
|
|
402
|
-
/**
|
|
403
|
-
* One choice. `index` is the identifier a vote refers to, not the label:
|
|
404
|
-
* sending indices avoids ambiguity between two options whose labels differ
|
|
405
|
-
* only by case, spacing or an invisible character.
|
|
406
|
-
*/
|
|
407
|
-
export declare const pollOptionSchema: z.ZodObject<{
|
|
408
|
-
index: z.ZodNumber;
|
|
409
|
-
label: z.ZodString;
|
|
410
|
-
voteCount: z.ZodNumber;
|
|
411
|
-
}, z.core.$strip>;
|
|
412
|
-
export type PollOption = z.infer<typeof pollOptionSchema>;
|
|
413
|
-
/**
|
|
414
|
-
* A poll. Its own kind, not a post with extra fields, because votes are their
|
|
415
|
-
* own records keyed by (poll, voter) and a post has nothing equivalent.
|
|
416
|
-
*
|
|
417
|
-
* Polls are not editable. Changing a question or an option after a vote has
|
|
418
|
-
* been cast silently re-purposes that vote. Closing early is allowed; editing
|
|
419
|
-
* is not.
|
|
420
|
-
*/
|
|
421
|
-
export declare const feedPollSchema: z.ZodObject<{
|
|
422
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
423
|
-
contentKind: z.ZodLiteral<"poll">;
|
|
424
|
-
author: z.ZodObject<{
|
|
425
|
-
userId: z.ZodString;
|
|
426
|
-
username: z.ZodString;
|
|
427
|
-
displayName: z.ZodString;
|
|
428
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
429
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
question: z.ZodString;
|
|
432
|
-
options: z.ZodArray<z.ZodObject<{
|
|
433
|
-
index: z.ZodNumber;
|
|
434
|
-
label: z.ZodString;
|
|
435
|
-
voteCount: z.ZodNumber;
|
|
436
|
-
}, z.core.$strip>>;
|
|
437
|
-
totalVoters: z.ZodNumber;
|
|
438
|
-
allowsMultipleChoices: z.ZodBoolean;
|
|
439
|
-
closesAt: z.ZodISODateTime;
|
|
440
|
-
isClosed: z.ZodBoolean;
|
|
441
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
442
|
-
ai_ml: "ai_ml";
|
|
443
|
-
b2b_saas: "b2b_saas";
|
|
444
|
-
d2c: "d2c";
|
|
445
|
-
deeptech: "deeptech";
|
|
446
|
-
robotics: "robotics";
|
|
447
|
-
growth: "growth";
|
|
448
|
-
sales: "sales";
|
|
449
|
-
marketing: "marketing";
|
|
450
|
-
supply_chain: "supply_chain";
|
|
451
|
-
fundraising: "fundraising";
|
|
452
|
-
mentoring: "mentoring";
|
|
453
|
-
leadership: "leadership";
|
|
454
|
-
networking: "networking";
|
|
455
|
-
public_speaking: "public_speaking";
|
|
456
|
-
teaching: "teaching";
|
|
457
|
-
hiring_talent: "hiring_talent";
|
|
458
|
-
personal_branding: "personal_branding";
|
|
459
|
-
career_transition: "career_transition";
|
|
460
|
-
remote_work: "remote_work";
|
|
461
|
-
blockchain: "blockchain";
|
|
462
|
-
crypto_web3: "crypto_web3";
|
|
463
|
-
data_science: "data_science";
|
|
464
|
-
cybersecurity: "cybersecurity";
|
|
465
|
-
game_dev: "game_dev";
|
|
466
|
-
ux_design: "ux_design";
|
|
467
|
-
app_development: "app_development";
|
|
468
|
-
open_source: "open_source";
|
|
469
|
-
electronics: "electronics";
|
|
470
|
-
space_exploration: "space_exploration";
|
|
471
|
-
green_tech: "green_tech";
|
|
472
|
-
no_code: "no_code";
|
|
473
|
-
entrepreneurship: "entrepreneurship";
|
|
474
|
-
investing: "investing";
|
|
475
|
-
stock_trading: "stock_trading";
|
|
476
|
-
personal_finance: "personal_finance";
|
|
477
|
-
consulting: "consulting";
|
|
478
|
-
ecommerce: "ecommerce";
|
|
479
|
-
retail: "retail";
|
|
480
|
-
real_estate: "real_estate";
|
|
481
|
-
product_management: "product_management";
|
|
482
|
-
meditation: "meditation";
|
|
483
|
-
journaling: "journaling";
|
|
484
|
-
self_improvement: "self_improvement";
|
|
485
|
-
productivity: "productivity";
|
|
486
|
-
reading: "reading";
|
|
487
|
-
online_courses: "online_courses";
|
|
488
|
-
philosophy: "philosophy";
|
|
489
|
-
psychology: "psychology";
|
|
490
|
-
therapy: "therapy";
|
|
491
|
-
sleep_optimization: "sleep_optimization";
|
|
492
|
-
gym: "gym";
|
|
493
|
-
yoga: "yoga";
|
|
494
|
-
photography: "photography";
|
|
495
|
-
writing: "writing";
|
|
496
|
-
graphic_design: "graphic_design";
|
|
497
|
-
filmmaking: "filmmaking";
|
|
498
|
-
digital_art: "digital_art";
|
|
499
|
-
content_creation: "content_creation";
|
|
500
|
-
blogging: "blogging";
|
|
501
|
-
vlogging: "vlogging";
|
|
502
|
-
podcasts: "podcasts";
|
|
503
|
-
animation: "animation";
|
|
504
|
-
music_production: "music_production";
|
|
505
|
-
volunteering: "volunteering";
|
|
506
|
-
ngo_work: "ngo_work";
|
|
507
|
-
environmental: "environmental";
|
|
508
|
-
women_empowerment: "women_empowerment";
|
|
509
|
-
community_service: "community_service";
|
|
510
|
-
social_enterprise: "social_enterprise";
|
|
511
|
-
education_access: "education_access";
|
|
512
|
-
}>>;
|
|
513
|
-
commentCount: z.ZodNumber;
|
|
514
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
515
|
-
like: "like";
|
|
516
|
-
celebrate: "celebrate";
|
|
517
|
-
insightful: "insightful";
|
|
518
|
-
curious: "curious";
|
|
519
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
520
|
-
createdAt: z.ZodISODateTime;
|
|
521
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
522
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
523
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
524
|
-
like: "like";
|
|
525
|
-
celebrate: "celebrate";
|
|
526
|
-
insightful: "insightful";
|
|
527
|
-
curious: "curious";
|
|
528
|
-
}>>;
|
|
529
|
-
bookmarked: z.ZodBoolean;
|
|
530
|
-
isAuthor: z.ZodBoolean;
|
|
531
|
-
canEdit: z.ZodBoolean;
|
|
532
|
-
canDelete: z.ZodBoolean;
|
|
533
|
-
canReport: z.ZodBoolean;
|
|
534
|
-
votedOptionIndices: z.ZodArray<z.ZodNumber>;
|
|
535
|
-
}, z.core.$strip>>;
|
|
536
|
-
}, z.core.$strip>;
|
|
537
|
-
export type FeedPoll = z.infer<typeof feedPollSchema>;
|
|
538
|
-
/**
|
|
539
|
-
* Discriminated on `contentKind`, so a client narrows with a switch and the
|
|
540
|
-
* compiler catches an unhandled kind the day one is added. A plain union would
|
|
541
|
-
* need every field checked by hand and would silently accept a hybrid.
|
|
542
|
-
*/
|
|
543
|
-
export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
544
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
545
|
-
contentKind: z.ZodLiteral<"post">;
|
|
546
|
-
author: z.ZodObject<{
|
|
547
|
-
userId: z.ZodString;
|
|
548
|
-
username: z.ZodString;
|
|
549
|
-
displayName: z.ZodString;
|
|
550
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
551
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
552
|
-
}, z.core.$strip>;
|
|
553
|
-
text: z.ZodString;
|
|
554
|
-
media: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
555
|
-
kind: z.ZodLiteral<"image">;
|
|
556
|
-
url: z.ZodURL;
|
|
557
|
-
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
558
|
-
width: z.ZodNumber;
|
|
559
|
-
height: z.ZodNumber;
|
|
560
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
561
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
-
kind: z.ZodLiteral<"video">;
|
|
563
|
-
url: z.ZodURL;
|
|
564
|
-
thumbnailUrl: z.ZodURL;
|
|
565
|
-
width: z.ZodNumber;
|
|
566
|
-
height: z.ZodNumber;
|
|
567
|
-
duration: z.ZodNumber;
|
|
568
|
-
}, z.core.$strip>], "kind">>;
|
|
569
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
570
|
-
url: z.ZodURL;
|
|
571
|
-
title: z.ZodOptional<z.ZodString>;
|
|
572
|
-
description: z.ZodOptional<z.ZodString>;
|
|
573
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
574
|
-
}, z.core.$strip>>;
|
|
575
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
576
|
-
ai_ml: "ai_ml";
|
|
577
|
-
b2b_saas: "b2b_saas";
|
|
578
|
-
d2c: "d2c";
|
|
579
|
-
deeptech: "deeptech";
|
|
580
|
-
robotics: "robotics";
|
|
581
|
-
growth: "growth";
|
|
582
|
-
sales: "sales";
|
|
583
|
-
marketing: "marketing";
|
|
584
|
-
supply_chain: "supply_chain";
|
|
585
|
-
fundraising: "fundraising";
|
|
586
|
-
mentoring: "mentoring";
|
|
587
|
-
leadership: "leadership";
|
|
588
|
-
networking: "networking";
|
|
589
|
-
public_speaking: "public_speaking";
|
|
590
|
-
teaching: "teaching";
|
|
591
|
-
hiring_talent: "hiring_talent";
|
|
592
|
-
personal_branding: "personal_branding";
|
|
593
|
-
career_transition: "career_transition";
|
|
594
|
-
remote_work: "remote_work";
|
|
595
|
-
blockchain: "blockchain";
|
|
596
|
-
crypto_web3: "crypto_web3";
|
|
597
|
-
data_science: "data_science";
|
|
598
|
-
cybersecurity: "cybersecurity";
|
|
599
|
-
game_dev: "game_dev";
|
|
600
|
-
ux_design: "ux_design";
|
|
601
|
-
app_development: "app_development";
|
|
602
|
-
open_source: "open_source";
|
|
603
|
-
electronics: "electronics";
|
|
604
|
-
space_exploration: "space_exploration";
|
|
605
|
-
green_tech: "green_tech";
|
|
606
|
-
no_code: "no_code";
|
|
607
|
-
entrepreneurship: "entrepreneurship";
|
|
608
|
-
investing: "investing";
|
|
609
|
-
stock_trading: "stock_trading";
|
|
610
|
-
personal_finance: "personal_finance";
|
|
611
|
-
consulting: "consulting";
|
|
612
|
-
ecommerce: "ecommerce";
|
|
613
|
-
retail: "retail";
|
|
614
|
-
real_estate: "real_estate";
|
|
615
|
-
product_management: "product_management";
|
|
616
|
-
meditation: "meditation";
|
|
617
|
-
journaling: "journaling";
|
|
618
|
-
self_improvement: "self_improvement";
|
|
619
|
-
productivity: "productivity";
|
|
620
|
-
reading: "reading";
|
|
621
|
-
online_courses: "online_courses";
|
|
622
|
-
philosophy: "philosophy";
|
|
623
|
-
psychology: "psychology";
|
|
624
|
-
therapy: "therapy";
|
|
625
|
-
sleep_optimization: "sleep_optimization";
|
|
626
|
-
gym: "gym";
|
|
627
|
-
yoga: "yoga";
|
|
628
|
-
photography: "photography";
|
|
629
|
-
writing: "writing";
|
|
630
|
-
graphic_design: "graphic_design";
|
|
631
|
-
filmmaking: "filmmaking";
|
|
632
|
-
digital_art: "digital_art";
|
|
633
|
-
content_creation: "content_creation";
|
|
634
|
-
blogging: "blogging";
|
|
635
|
-
vlogging: "vlogging";
|
|
636
|
-
podcasts: "podcasts";
|
|
637
|
-
animation: "animation";
|
|
638
|
-
music_production: "music_production";
|
|
639
|
-
volunteering: "volunteering";
|
|
640
|
-
ngo_work: "ngo_work";
|
|
641
|
-
environmental: "environmental";
|
|
642
|
-
women_empowerment: "women_empowerment";
|
|
643
|
-
community_service: "community_service";
|
|
644
|
-
social_enterprise: "social_enterprise";
|
|
645
|
-
education_access: "education_access";
|
|
646
|
-
}>>;
|
|
647
|
-
commentCount: z.ZodNumber;
|
|
648
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
649
|
-
like: "like";
|
|
650
|
-
celebrate: "celebrate";
|
|
651
|
-
insightful: "insightful";
|
|
652
|
-
curious: "curious";
|
|
653
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
654
|
-
createdAt: z.ZodISODateTime;
|
|
655
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
656
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
657
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
658
|
-
like: "like";
|
|
659
|
-
celebrate: "celebrate";
|
|
660
|
-
insightful: "insightful";
|
|
661
|
-
curious: "curious";
|
|
662
|
-
}>>;
|
|
663
|
-
bookmarked: z.ZodBoolean;
|
|
664
|
-
isAuthor: z.ZodBoolean;
|
|
665
|
-
canEdit: z.ZodBoolean;
|
|
666
|
-
canDelete: z.ZodBoolean;
|
|
667
|
-
canReport: z.ZodBoolean;
|
|
668
|
-
}, z.core.$strip>>;
|
|
669
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
670
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
671
|
-
contentKind: z.ZodLiteral<"poll">;
|
|
672
|
-
author: z.ZodObject<{
|
|
673
|
-
userId: z.ZodString;
|
|
674
|
-
username: z.ZodString;
|
|
675
|
-
displayName: z.ZodString;
|
|
676
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
677
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
678
|
-
}, z.core.$strip>;
|
|
679
|
-
question: z.ZodString;
|
|
680
|
-
options: z.ZodArray<z.ZodObject<{
|
|
681
|
-
index: z.ZodNumber;
|
|
682
|
-
label: z.ZodString;
|
|
683
|
-
voteCount: z.ZodNumber;
|
|
684
|
-
}, z.core.$strip>>;
|
|
685
|
-
totalVoters: z.ZodNumber;
|
|
686
|
-
allowsMultipleChoices: z.ZodBoolean;
|
|
687
|
-
closesAt: z.ZodISODateTime;
|
|
688
|
-
isClosed: z.ZodBoolean;
|
|
689
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
690
|
-
ai_ml: "ai_ml";
|
|
691
|
-
b2b_saas: "b2b_saas";
|
|
692
|
-
d2c: "d2c";
|
|
693
|
-
deeptech: "deeptech";
|
|
694
|
-
robotics: "robotics";
|
|
695
|
-
growth: "growth";
|
|
696
|
-
sales: "sales";
|
|
697
|
-
marketing: "marketing";
|
|
698
|
-
supply_chain: "supply_chain";
|
|
699
|
-
fundraising: "fundraising";
|
|
700
|
-
mentoring: "mentoring";
|
|
701
|
-
leadership: "leadership";
|
|
702
|
-
networking: "networking";
|
|
703
|
-
public_speaking: "public_speaking";
|
|
704
|
-
teaching: "teaching";
|
|
705
|
-
hiring_talent: "hiring_talent";
|
|
706
|
-
personal_branding: "personal_branding";
|
|
707
|
-
career_transition: "career_transition";
|
|
708
|
-
remote_work: "remote_work";
|
|
709
|
-
blockchain: "blockchain";
|
|
710
|
-
crypto_web3: "crypto_web3";
|
|
711
|
-
data_science: "data_science";
|
|
712
|
-
cybersecurity: "cybersecurity";
|
|
713
|
-
game_dev: "game_dev";
|
|
714
|
-
ux_design: "ux_design";
|
|
715
|
-
app_development: "app_development";
|
|
716
|
-
open_source: "open_source";
|
|
717
|
-
electronics: "electronics";
|
|
718
|
-
space_exploration: "space_exploration";
|
|
719
|
-
green_tech: "green_tech";
|
|
720
|
-
no_code: "no_code";
|
|
721
|
-
entrepreneurship: "entrepreneurship";
|
|
722
|
-
investing: "investing";
|
|
723
|
-
stock_trading: "stock_trading";
|
|
724
|
-
personal_finance: "personal_finance";
|
|
725
|
-
consulting: "consulting";
|
|
726
|
-
ecommerce: "ecommerce";
|
|
727
|
-
retail: "retail";
|
|
728
|
-
real_estate: "real_estate";
|
|
729
|
-
product_management: "product_management";
|
|
730
|
-
meditation: "meditation";
|
|
731
|
-
journaling: "journaling";
|
|
732
|
-
self_improvement: "self_improvement";
|
|
733
|
-
productivity: "productivity";
|
|
734
|
-
reading: "reading";
|
|
735
|
-
online_courses: "online_courses";
|
|
736
|
-
philosophy: "philosophy";
|
|
737
|
-
psychology: "psychology";
|
|
738
|
-
therapy: "therapy";
|
|
739
|
-
sleep_optimization: "sleep_optimization";
|
|
740
|
-
gym: "gym";
|
|
741
|
-
yoga: "yoga";
|
|
742
|
-
photography: "photography";
|
|
743
|
-
writing: "writing";
|
|
744
|
-
graphic_design: "graphic_design";
|
|
745
|
-
filmmaking: "filmmaking";
|
|
746
|
-
digital_art: "digital_art";
|
|
747
|
-
content_creation: "content_creation";
|
|
748
|
-
blogging: "blogging";
|
|
749
|
-
vlogging: "vlogging";
|
|
750
|
-
podcasts: "podcasts";
|
|
751
|
-
animation: "animation";
|
|
752
|
-
music_production: "music_production";
|
|
753
|
-
volunteering: "volunteering";
|
|
754
|
-
ngo_work: "ngo_work";
|
|
755
|
-
environmental: "environmental";
|
|
756
|
-
women_empowerment: "women_empowerment";
|
|
757
|
-
community_service: "community_service";
|
|
758
|
-
social_enterprise: "social_enterprise";
|
|
759
|
-
education_access: "education_access";
|
|
760
|
-
}>>;
|
|
761
|
-
commentCount: z.ZodNumber;
|
|
762
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
763
|
-
like: "like";
|
|
764
|
-
celebrate: "celebrate";
|
|
765
|
-
insightful: "insightful";
|
|
766
|
-
curious: "curious";
|
|
767
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
768
|
-
createdAt: z.ZodISODateTime;
|
|
769
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
770
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
771
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
772
|
-
like: "like";
|
|
773
|
-
celebrate: "celebrate";
|
|
774
|
-
insightful: "insightful";
|
|
775
|
-
curious: "curious";
|
|
776
|
-
}>>;
|
|
777
|
-
bookmarked: z.ZodBoolean;
|
|
778
|
-
isAuthor: z.ZodBoolean;
|
|
779
|
-
canEdit: z.ZodBoolean;
|
|
780
|
-
canDelete: z.ZodBoolean;
|
|
781
|
-
canReport: z.ZodBoolean;
|
|
782
|
-
votedOptionIndices: z.ZodArray<z.ZodNumber>;
|
|
783
|
-
}, z.core.$strip>>;
|
|
784
|
-
}, z.core.$strip>], "contentKind">;
|
|
785
|
-
export type FeedItem = z.infer<typeof feedItemSchema>;
|
|
786
|
-
/**
|
|
787
|
-
* A comment, one level of nesting only: a reply to a comment is allowed, a
|
|
788
|
-
* reply to a reply is not. Two levels stay readable on a phone; three do not,
|
|
789
|
-
* and the server is what enforces it.
|
|
790
|
-
*/
|
|
791
|
-
export declare const feedCommentSchema: z.ZodObject<{
|
|
792
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
793
|
-
contentKind: z.ZodEnum<{
|
|
794
|
-
post: "post";
|
|
795
|
-
poll: "poll";
|
|
796
|
-
}>;
|
|
797
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
798
|
-
parentCommentId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
799
|
-
author: z.ZodObject<{
|
|
800
|
-
userId: z.ZodString;
|
|
801
|
-
username: z.ZodString;
|
|
802
|
-
displayName: z.ZodString;
|
|
803
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
804
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
805
|
-
}, z.core.$strip>;
|
|
806
|
-
text: z.ZodString;
|
|
807
|
-
replyCount: z.ZodNumber;
|
|
808
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
809
|
-
like: "like";
|
|
810
|
-
celebrate: "celebrate";
|
|
811
|
-
insightful: "insightful";
|
|
812
|
-
curious: "curious";
|
|
813
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
814
|
-
createdAt: z.ZodISODateTime;
|
|
815
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
816
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
817
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
818
|
-
like: "like";
|
|
819
|
-
celebrate: "celebrate";
|
|
820
|
-
insightful: "insightful";
|
|
821
|
-
curious: "curious";
|
|
822
|
-
}>>;
|
|
823
|
-
isAuthor: z.ZodBoolean;
|
|
824
|
-
canEdit: z.ZodBoolean;
|
|
825
|
-
canDelete: z.ZodBoolean;
|
|
826
|
-
canReport: z.ZodBoolean;
|
|
827
|
-
}, z.core.$strip>>;
|
|
828
|
-
}, z.core.$strip>;
|
|
829
|
-
export type FeedComment = z.infer<typeof feedCommentSchema>;
|
|
830
|
-
/**
|
|
831
|
-
* `GET /api/v1/feed`. Inherits `limit` and `cursor`, which already tolerate an
|
|
832
|
-
* emptied control rather than answering 400.
|
|
833
|
-
*
|
|
834
|
-
* `interests=true` narrows to the viewer's topics (falling back to the plain
|
|
835
|
-
* feed when they have none). `z.stringbool`, so `true`/`false`/`1`/`0` all
|
|
836
|
-
* read as a person means them; until 0.2.0 the backend read this parameter
|
|
837
|
-
* raw, outside the schema, and only the exact string `true` counted.
|
|
838
|
-
*
|
|
839
|
-
* ⚠ NO `authorId`. It was accepted here and then ignored by the server, so a
|
|
840
|
-
* profile page asking for one founder's posts silently got everybody's. A
|
|
841
|
-
* member's own posts are `GET /api/v1/feed/by-author/:userId`.
|
|
842
|
-
*/
|
|
843
|
-
export declare const feedQuerySchema: z.ZodObject<{
|
|
844
|
-
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
845
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
846
|
-
sort: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
|
|
847
|
-
new: "new";
|
|
848
|
-
top: "top";
|
|
849
|
-
}>>, unknown>;
|
|
850
|
-
interests: z.ZodPreprocess<z.ZodDefault<z.ZodCodec<z.ZodString, z.ZodBoolean>>, unknown>;
|
|
851
|
-
}, z.core.$strip>;
|
|
852
|
-
export type FeedQuery = z.infer<typeof feedQuerySchema>;
|
|
853
|
-
export type FeedQueryInput = z.input<typeof feedQuerySchema>;
|
|
854
|
-
/** `GET /api/v1/feed/:contentKind/:contentId/comments`. */
|
|
855
|
-
export declare const commentsQuerySchema: z.ZodObject<{
|
|
856
|
-
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
857
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
858
|
-
parentCommentId: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, unknown>;
|
|
859
|
-
}, z.core.$strip>;
|
|
860
|
-
export type CommentsQuery = z.infer<typeof commentsQuerySchema>;
|
|
861
|
-
export type CommentsQueryInput = z.input<typeof commentsQuerySchema>;
|
|
862
|
-
/**
|
|
863
|
-
* Every id and kind in a feed URL, as a schema, so a bad one answers exactly
|
|
864
|
-
* as a bad body field does: 400 `VALIDATION_ERROR`, the issue at
|
|
865
|
-
* `location: 'params'`. Until 0.2.0 these were hand checks that answered
|
|
866
|
-
* "Invalid id." with no issues at all, and the comment routes never looked at
|
|
867
|
-
* `:contentKind`.
|
|
868
|
-
*/
|
|
869
|
-
/** `GET /feed/:id`, the permalink. */
|
|
870
|
-
export declare const feedItemParamsSchema: z.ZodObject<{
|
|
871
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
872
|
-
}, z.core.$strip>;
|
|
873
|
-
/** `PATCH|DELETE /feed/:contentId`. */
|
|
874
|
-
export declare const contentParamsSchema: z.ZodObject<{
|
|
875
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
876
|
-
}, z.core.$strip>;
|
|
877
|
-
/** A bookmark and a comment thread: a post or a poll. */
|
|
878
|
-
export declare const contentTargetParamsSchema: z.ZodObject<{
|
|
879
|
-
contentKind: z.ZodEnum<{
|
|
880
|
-
post: "post";
|
|
881
|
-
poll: "poll";
|
|
882
|
-
}>;
|
|
883
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
884
|
-
}, z.core.$strip>;
|
|
885
|
-
/** A reaction and a report: a post, a poll or a comment. */
|
|
886
|
-
export declare const engagementTargetParamsSchema: z.ZodObject<{
|
|
887
|
-
contentKind: z.ZodEnum<{
|
|
888
|
-
post: "post";
|
|
889
|
-
poll: "poll";
|
|
890
|
-
comment: "comment";
|
|
891
|
-
}>;
|
|
892
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
893
|
-
}, z.core.$strip>;
|
|
894
|
-
/** `POST|DELETE /feed/poll/:pollId/vote`. */
|
|
895
|
-
export declare const pollParamsSchema: z.ZodObject<{
|
|
896
|
-
pollId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
897
|
-
}, z.core.$strip>;
|
|
898
|
-
/** `DELETE /feed/comments/:commentId`. */
|
|
899
|
-
export declare const commentParamsSchema: z.ZodObject<{
|
|
900
|
-
commentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
901
|
-
}, z.core.$strip>;
|
|
902
|
-
/** `GET /feed/by-author/:userId`. */
|
|
903
|
-
export declare const authorParamsSchema: z.ZodObject<{
|
|
904
|
-
userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
905
|
-
}, z.core.$strip>;
|
|
906
|
-
export type FeedItemParams = z.infer<typeof feedItemParamsSchema>;
|
|
907
|
-
export type ContentParams = z.infer<typeof contentParamsSchema>;
|
|
908
|
-
export type ContentTargetParams = z.infer<typeof contentTargetParamsSchema>;
|
|
909
|
-
export type EngagementTargetParams = z.infer<typeof engagementTargetParamsSchema>;
|
|
910
|
-
export type PollParams = z.infer<typeof pollParamsSchema>;
|
|
911
|
-
export type CommentParams = z.infer<typeof commentParamsSchema>;
|
|
912
|
-
export type AuthorParams = z.infer<typeof authorParamsSchema>;
|
|
913
|
-
/**
|
|
914
|
-
* A page of the feed, and of one member's posts (`by-author`), which is the
|
|
915
|
-
* same shape. `nextCursor` is null on the last page.
|
|
916
|
-
*/
|
|
917
|
-
export declare const feedPageSchema: z.ZodObject<{
|
|
918
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
919
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
920
|
-
contentKind: z.ZodLiteral<"post">;
|
|
921
|
-
author: z.ZodObject<{
|
|
922
|
-
userId: z.ZodString;
|
|
923
|
-
username: z.ZodString;
|
|
924
|
-
displayName: z.ZodString;
|
|
925
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
926
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
927
|
-
}, z.core.$strip>;
|
|
928
|
-
text: z.ZodString;
|
|
929
|
-
media: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
930
|
-
kind: z.ZodLiteral<"image">;
|
|
931
|
-
url: z.ZodURL;
|
|
932
|
-
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
933
|
-
width: z.ZodNumber;
|
|
934
|
-
height: z.ZodNumber;
|
|
935
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
936
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
937
|
-
kind: z.ZodLiteral<"video">;
|
|
938
|
-
url: z.ZodURL;
|
|
939
|
-
thumbnailUrl: z.ZodURL;
|
|
940
|
-
width: z.ZodNumber;
|
|
941
|
-
height: z.ZodNumber;
|
|
942
|
-
duration: z.ZodNumber;
|
|
943
|
-
}, z.core.$strip>], "kind">>;
|
|
944
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
945
|
-
url: z.ZodURL;
|
|
946
|
-
title: z.ZodOptional<z.ZodString>;
|
|
947
|
-
description: z.ZodOptional<z.ZodString>;
|
|
948
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
949
|
-
}, z.core.$strip>>;
|
|
950
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
951
|
-
ai_ml: "ai_ml";
|
|
952
|
-
b2b_saas: "b2b_saas";
|
|
953
|
-
d2c: "d2c";
|
|
954
|
-
deeptech: "deeptech";
|
|
955
|
-
robotics: "robotics";
|
|
956
|
-
growth: "growth";
|
|
957
|
-
sales: "sales";
|
|
958
|
-
marketing: "marketing";
|
|
959
|
-
supply_chain: "supply_chain";
|
|
960
|
-
fundraising: "fundraising";
|
|
961
|
-
mentoring: "mentoring";
|
|
962
|
-
leadership: "leadership";
|
|
963
|
-
networking: "networking";
|
|
964
|
-
public_speaking: "public_speaking";
|
|
965
|
-
teaching: "teaching";
|
|
966
|
-
hiring_talent: "hiring_talent";
|
|
967
|
-
personal_branding: "personal_branding";
|
|
968
|
-
career_transition: "career_transition";
|
|
969
|
-
remote_work: "remote_work";
|
|
970
|
-
blockchain: "blockchain";
|
|
971
|
-
crypto_web3: "crypto_web3";
|
|
972
|
-
data_science: "data_science";
|
|
973
|
-
cybersecurity: "cybersecurity";
|
|
974
|
-
game_dev: "game_dev";
|
|
975
|
-
ux_design: "ux_design";
|
|
976
|
-
app_development: "app_development";
|
|
977
|
-
open_source: "open_source";
|
|
978
|
-
electronics: "electronics";
|
|
979
|
-
space_exploration: "space_exploration";
|
|
980
|
-
green_tech: "green_tech";
|
|
981
|
-
no_code: "no_code";
|
|
982
|
-
entrepreneurship: "entrepreneurship";
|
|
983
|
-
investing: "investing";
|
|
984
|
-
stock_trading: "stock_trading";
|
|
985
|
-
personal_finance: "personal_finance";
|
|
986
|
-
consulting: "consulting";
|
|
987
|
-
ecommerce: "ecommerce";
|
|
988
|
-
retail: "retail";
|
|
989
|
-
real_estate: "real_estate";
|
|
990
|
-
product_management: "product_management";
|
|
991
|
-
meditation: "meditation";
|
|
992
|
-
journaling: "journaling";
|
|
993
|
-
self_improvement: "self_improvement";
|
|
994
|
-
productivity: "productivity";
|
|
995
|
-
reading: "reading";
|
|
996
|
-
online_courses: "online_courses";
|
|
997
|
-
philosophy: "philosophy";
|
|
998
|
-
psychology: "psychology";
|
|
999
|
-
therapy: "therapy";
|
|
1000
|
-
sleep_optimization: "sleep_optimization";
|
|
1001
|
-
gym: "gym";
|
|
1002
|
-
yoga: "yoga";
|
|
1003
|
-
photography: "photography";
|
|
1004
|
-
writing: "writing";
|
|
1005
|
-
graphic_design: "graphic_design";
|
|
1006
|
-
filmmaking: "filmmaking";
|
|
1007
|
-
digital_art: "digital_art";
|
|
1008
|
-
content_creation: "content_creation";
|
|
1009
|
-
blogging: "blogging";
|
|
1010
|
-
vlogging: "vlogging";
|
|
1011
|
-
podcasts: "podcasts";
|
|
1012
|
-
animation: "animation";
|
|
1013
|
-
music_production: "music_production";
|
|
1014
|
-
volunteering: "volunteering";
|
|
1015
|
-
ngo_work: "ngo_work";
|
|
1016
|
-
environmental: "environmental";
|
|
1017
|
-
women_empowerment: "women_empowerment";
|
|
1018
|
-
community_service: "community_service";
|
|
1019
|
-
social_enterprise: "social_enterprise";
|
|
1020
|
-
education_access: "education_access";
|
|
1021
|
-
}>>;
|
|
1022
|
-
commentCount: z.ZodNumber;
|
|
1023
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
1024
|
-
like: "like";
|
|
1025
|
-
celebrate: "celebrate";
|
|
1026
|
-
insightful: "insightful";
|
|
1027
|
-
curious: "curious";
|
|
1028
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
1029
|
-
createdAt: z.ZodISODateTime;
|
|
1030
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1031
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
1032
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1033
|
-
like: "like";
|
|
1034
|
-
celebrate: "celebrate";
|
|
1035
|
-
insightful: "insightful";
|
|
1036
|
-
curious: "curious";
|
|
1037
|
-
}>>;
|
|
1038
|
-
bookmarked: z.ZodBoolean;
|
|
1039
|
-
isAuthor: z.ZodBoolean;
|
|
1040
|
-
canEdit: z.ZodBoolean;
|
|
1041
|
-
canDelete: z.ZodBoolean;
|
|
1042
|
-
canReport: z.ZodBoolean;
|
|
1043
|
-
}, z.core.$strip>>;
|
|
1044
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1045
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1046
|
-
contentKind: z.ZodLiteral<"poll">;
|
|
1047
|
-
author: z.ZodObject<{
|
|
1048
|
-
userId: z.ZodString;
|
|
1049
|
-
username: z.ZodString;
|
|
1050
|
-
displayName: z.ZodString;
|
|
1051
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
1052
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
1053
|
-
}, z.core.$strip>;
|
|
1054
|
-
question: z.ZodString;
|
|
1055
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1056
|
-
index: z.ZodNumber;
|
|
1057
|
-
label: z.ZodString;
|
|
1058
|
-
voteCount: z.ZodNumber;
|
|
1059
|
-
}, z.core.$strip>>;
|
|
1060
|
-
totalVoters: z.ZodNumber;
|
|
1061
|
-
allowsMultipleChoices: z.ZodBoolean;
|
|
1062
|
-
closesAt: z.ZodISODateTime;
|
|
1063
|
-
isClosed: z.ZodBoolean;
|
|
1064
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
1065
|
-
ai_ml: "ai_ml";
|
|
1066
|
-
b2b_saas: "b2b_saas";
|
|
1067
|
-
d2c: "d2c";
|
|
1068
|
-
deeptech: "deeptech";
|
|
1069
|
-
robotics: "robotics";
|
|
1070
|
-
growth: "growth";
|
|
1071
|
-
sales: "sales";
|
|
1072
|
-
marketing: "marketing";
|
|
1073
|
-
supply_chain: "supply_chain";
|
|
1074
|
-
fundraising: "fundraising";
|
|
1075
|
-
mentoring: "mentoring";
|
|
1076
|
-
leadership: "leadership";
|
|
1077
|
-
networking: "networking";
|
|
1078
|
-
public_speaking: "public_speaking";
|
|
1079
|
-
teaching: "teaching";
|
|
1080
|
-
hiring_talent: "hiring_talent";
|
|
1081
|
-
personal_branding: "personal_branding";
|
|
1082
|
-
career_transition: "career_transition";
|
|
1083
|
-
remote_work: "remote_work";
|
|
1084
|
-
blockchain: "blockchain";
|
|
1085
|
-
crypto_web3: "crypto_web3";
|
|
1086
|
-
data_science: "data_science";
|
|
1087
|
-
cybersecurity: "cybersecurity";
|
|
1088
|
-
game_dev: "game_dev";
|
|
1089
|
-
ux_design: "ux_design";
|
|
1090
|
-
app_development: "app_development";
|
|
1091
|
-
open_source: "open_source";
|
|
1092
|
-
electronics: "electronics";
|
|
1093
|
-
space_exploration: "space_exploration";
|
|
1094
|
-
green_tech: "green_tech";
|
|
1095
|
-
no_code: "no_code";
|
|
1096
|
-
entrepreneurship: "entrepreneurship";
|
|
1097
|
-
investing: "investing";
|
|
1098
|
-
stock_trading: "stock_trading";
|
|
1099
|
-
personal_finance: "personal_finance";
|
|
1100
|
-
consulting: "consulting";
|
|
1101
|
-
ecommerce: "ecommerce";
|
|
1102
|
-
retail: "retail";
|
|
1103
|
-
real_estate: "real_estate";
|
|
1104
|
-
product_management: "product_management";
|
|
1105
|
-
meditation: "meditation";
|
|
1106
|
-
journaling: "journaling";
|
|
1107
|
-
self_improvement: "self_improvement";
|
|
1108
|
-
productivity: "productivity";
|
|
1109
|
-
reading: "reading";
|
|
1110
|
-
online_courses: "online_courses";
|
|
1111
|
-
philosophy: "philosophy";
|
|
1112
|
-
psychology: "psychology";
|
|
1113
|
-
therapy: "therapy";
|
|
1114
|
-
sleep_optimization: "sleep_optimization";
|
|
1115
|
-
gym: "gym";
|
|
1116
|
-
yoga: "yoga";
|
|
1117
|
-
photography: "photography";
|
|
1118
|
-
writing: "writing";
|
|
1119
|
-
graphic_design: "graphic_design";
|
|
1120
|
-
filmmaking: "filmmaking";
|
|
1121
|
-
digital_art: "digital_art";
|
|
1122
|
-
content_creation: "content_creation";
|
|
1123
|
-
blogging: "blogging";
|
|
1124
|
-
vlogging: "vlogging";
|
|
1125
|
-
podcasts: "podcasts";
|
|
1126
|
-
animation: "animation";
|
|
1127
|
-
music_production: "music_production";
|
|
1128
|
-
volunteering: "volunteering";
|
|
1129
|
-
ngo_work: "ngo_work";
|
|
1130
|
-
environmental: "environmental";
|
|
1131
|
-
women_empowerment: "women_empowerment";
|
|
1132
|
-
community_service: "community_service";
|
|
1133
|
-
social_enterprise: "social_enterprise";
|
|
1134
|
-
education_access: "education_access";
|
|
1135
|
-
}>>;
|
|
1136
|
-
commentCount: z.ZodNumber;
|
|
1137
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
1138
|
-
like: "like";
|
|
1139
|
-
celebrate: "celebrate";
|
|
1140
|
-
insightful: "insightful";
|
|
1141
|
-
curious: "curious";
|
|
1142
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
1143
|
-
createdAt: z.ZodISODateTime;
|
|
1144
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1145
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
1146
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1147
|
-
like: "like";
|
|
1148
|
-
celebrate: "celebrate";
|
|
1149
|
-
insightful: "insightful";
|
|
1150
|
-
curious: "curious";
|
|
1151
|
-
}>>;
|
|
1152
|
-
bookmarked: z.ZodBoolean;
|
|
1153
|
-
isAuthor: z.ZodBoolean;
|
|
1154
|
-
canEdit: z.ZodBoolean;
|
|
1155
|
-
canDelete: z.ZodBoolean;
|
|
1156
|
-
canReport: z.ZodBoolean;
|
|
1157
|
-
votedOptionIndices: z.ZodArray<z.ZodNumber>;
|
|
1158
|
-
}, z.core.$strip>>;
|
|
1159
|
-
}, z.core.$strip>], "contentKind">>;
|
|
1160
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1161
|
-
}, z.core.$strip>;
|
|
1162
|
-
export type FeedPage = z.infer<typeof feedPageSchema>;
|
|
1163
|
-
/** A page of a thread: top-level comments, or one comment's replies. */
|
|
1164
|
-
export declare const commentPageSchema: z.ZodObject<{
|
|
1165
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1166
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1167
|
-
contentKind: z.ZodEnum<{
|
|
1168
|
-
post: "post";
|
|
1169
|
-
poll: "poll";
|
|
1170
|
-
}>;
|
|
1171
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1172
|
-
parentCommentId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1173
|
-
author: z.ZodObject<{
|
|
1174
|
-
userId: z.ZodString;
|
|
1175
|
-
username: z.ZodString;
|
|
1176
|
-
displayName: z.ZodString;
|
|
1177
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
1178
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
1179
|
-
}, z.core.$strip>;
|
|
1180
|
-
text: z.ZodString;
|
|
1181
|
-
replyCount: z.ZodNumber;
|
|
1182
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
1183
|
-
like: "like";
|
|
1184
|
-
celebrate: "celebrate";
|
|
1185
|
-
insightful: "insightful";
|
|
1186
|
-
curious: "curious";
|
|
1187
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
1188
|
-
createdAt: z.ZodISODateTime;
|
|
1189
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1190
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
1191
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1192
|
-
like: "like";
|
|
1193
|
-
celebrate: "celebrate";
|
|
1194
|
-
insightful: "insightful";
|
|
1195
|
-
curious: "curious";
|
|
1196
|
-
}>>;
|
|
1197
|
-
isAuthor: z.ZodBoolean;
|
|
1198
|
-
canEdit: z.ZodBoolean;
|
|
1199
|
-
canDelete: z.ZodBoolean;
|
|
1200
|
-
canReport: z.ZodBoolean;
|
|
1201
|
-
}, z.core.$strip>>;
|
|
1202
|
-
}, z.core.$strip>>;
|
|
1203
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1204
|
-
}, z.core.$strip>;
|
|
1205
|
-
export type CommentPage = z.infer<typeof commentPageSchema>;
|
|
1206
|
-
/**
|
|
1207
|
-
* ⚠️ Every write body below is its own object with NO defaults, and none of
|
|
1208
|
-
* them is built with `.pick().partial()`. `.partial()` does not switch off
|
|
1209
|
-
* `.default()`, so a patch body built that way rewrites defaulted fields on
|
|
1210
|
-
* every request. See `updateFounderProfileBodySchema` for the incident.
|
|
1211
|
-
*/
|
|
1212
|
-
/**
|
|
1213
|
-
* An attachment on the way IN: a reference to something already uploaded, and
|
|
1214
|
-
* deliberately not a URL.
|
|
1215
|
-
*
|
|
1216
|
-
* Upload happens first, straight to storage, and the composer sends back the
|
|
1217
|
-
* key it was given (`uploadKeySchema`, in `uploads`). The server resolves that
|
|
1218
|
-
* key to the URL, dimensions and poster frame it reads from the object itself,
|
|
1219
|
-
* and those become the read shape.
|
|
1220
|
-
*
|
|
1221
|
-
* ⚠ The first draft of this took the full read shape, URL included. That is
|
|
1222
|
-
* the same hole that was closed on the profile: a URL in a write body is a
|
|
1223
|
-
* member-supplied URL, so a post could have carried `javascript:` in an image
|
|
1224
|
-
* source, and nothing downstream re-checks a value the server itself stored.
|
|
1225
|
-
* Taking a key instead removes the question rather than validating it, and it
|
|
1226
|
-
* also stops a member pointing a post at somebody else's file.
|
|
1227
|
-
*
|
|
1228
|
-
* `width`, `height` and `duration` are NOT accepted here either. They are
|
|
1229
|
-
* properties of the uploaded object, so the server reads them from the object;
|
|
1230
|
-
* taking them from the client would let a caller claim a 1x1 image and collapse
|
|
1231
|
-
* the card.
|
|
1232
|
-
*/
|
|
1233
|
-
export declare const attachedMediaSchema: z.ZodObject<{
|
|
1234
|
-
uploadKey: z.ZodString;
|
|
1235
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
1236
|
-
}, z.core.$strip>;
|
|
1237
|
-
export type AttachedMedia = z.infer<typeof attachedMediaSchema>;
|
|
1238
|
-
/**
|
|
1239
|
-
* A post must carry something. Text alone, media alone, or both; empty is
|
|
1240
|
-
* refused here rather than reaching the feed as a blank card.
|
|
1241
|
-
*/
|
|
1242
|
-
export declare const createPostBodySchema: z.ZodObject<{
|
|
1243
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1244
|
-
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1245
|
-
uploadKey: z.ZodString;
|
|
1246
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
1247
|
-
}, z.core.$strip>>>;
|
|
1248
|
-
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1249
|
-
ai_ml: "ai_ml";
|
|
1250
|
-
b2b_saas: "b2b_saas";
|
|
1251
|
-
d2c: "d2c";
|
|
1252
|
-
deeptech: "deeptech";
|
|
1253
|
-
robotics: "robotics";
|
|
1254
|
-
growth: "growth";
|
|
1255
|
-
sales: "sales";
|
|
1256
|
-
marketing: "marketing";
|
|
1257
|
-
supply_chain: "supply_chain";
|
|
1258
|
-
fundraising: "fundraising";
|
|
1259
|
-
mentoring: "mentoring";
|
|
1260
|
-
leadership: "leadership";
|
|
1261
|
-
networking: "networking";
|
|
1262
|
-
public_speaking: "public_speaking";
|
|
1263
|
-
teaching: "teaching";
|
|
1264
|
-
hiring_talent: "hiring_talent";
|
|
1265
|
-
personal_branding: "personal_branding";
|
|
1266
|
-
career_transition: "career_transition";
|
|
1267
|
-
remote_work: "remote_work";
|
|
1268
|
-
blockchain: "blockchain";
|
|
1269
|
-
crypto_web3: "crypto_web3";
|
|
1270
|
-
data_science: "data_science";
|
|
1271
|
-
cybersecurity: "cybersecurity";
|
|
1272
|
-
game_dev: "game_dev";
|
|
1273
|
-
ux_design: "ux_design";
|
|
1274
|
-
app_development: "app_development";
|
|
1275
|
-
open_source: "open_source";
|
|
1276
|
-
electronics: "electronics";
|
|
1277
|
-
space_exploration: "space_exploration";
|
|
1278
|
-
green_tech: "green_tech";
|
|
1279
|
-
no_code: "no_code";
|
|
1280
|
-
entrepreneurship: "entrepreneurship";
|
|
1281
|
-
investing: "investing";
|
|
1282
|
-
stock_trading: "stock_trading";
|
|
1283
|
-
personal_finance: "personal_finance";
|
|
1284
|
-
consulting: "consulting";
|
|
1285
|
-
ecommerce: "ecommerce";
|
|
1286
|
-
retail: "retail";
|
|
1287
|
-
real_estate: "real_estate";
|
|
1288
|
-
product_management: "product_management";
|
|
1289
|
-
meditation: "meditation";
|
|
1290
|
-
journaling: "journaling";
|
|
1291
|
-
self_improvement: "self_improvement";
|
|
1292
|
-
productivity: "productivity";
|
|
1293
|
-
reading: "reading";
|
|
1294
|
-
online_courses: "online_courses";
|
|
1295
|
-
philosophy: "philosophy";
|
|
1296
|
-
psychology: "psychology";
|
|
1297
|
-
therapy: "therapy";
|
|
1298
|
-
sleep_optimization: "sleep_optimization";
|
|
1299
|
-
gym: "gym";
|
|
1300
|
-
yoga: "yoga";
|
|
1301
|
-
photography: "photography";
|
|
1302
|
-
writing: "writing";
|
|
1303
|
-
graphic_design: "graphic_design";
|
|
1304
|
-
filmmaking: "filmmaking";
|
|
1305
|
-
digital_art: "digital_art";
|
|
1306
|
-
content_creation: "content_creation";
|
|
1307
|
-
blogging: "blogging";
|
|
1308
|
-
vlogging: "vlogging";
|
|
1309
|
-
podcasts: "podcasts";
|
|
1310
|
-
animation: "animation";
|
|
1311
|
-
music_production: "music_production";
|
|
1312
|
-
volunteering: "volunteering";
|
|
1313
|
-
ngo_work: "ngo_work";
|
|
1314
|
-
environmental: "environmental";
|
|
1315
|
-
women_empowerment: "women_empowerment";
|
|
1316
|
-
community_service: "community_service";
|
|
1317
|
-
social_enterprise: "social_enterprise";
|
|
1318
|
-
education_access: "education_access";
|
|
1319
|
-
}>>>;
|
|
1320
|
-
}, z.core.$strip>;
|
|
1321
|
-
export type CreatePostBody = z.infer<typeof createPostBodySchema>;
|
|
1322
|
-
/** Only the text is editable. Changing media after the fact makes every
|
|
1323
|
-
* earlier reply look like a reply to something else. */
|
|
1324
|
-
export declare const updatePostBodySchema: z.ZodObject<{
|
|
1325
|
-
text: z.ZodString;
|
|
1326
|
-
}, z.core.$strip>;
|
|
1327
|
-
export type UpdatePostBody = z.infer<typeof updatePostBodySchema>;
|
|
1328
|
-
export declare const createPollBodySchema: z.ZodObject<{
|
|
1329
|
-
question: z.ZodString;
|
|
1330
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1331
|
-
label: z.ZodString;
|
|
1332
|
-
}, z.core.$strip>>;
|
|
1333
|
-
durationMs: z.ZodNumber;
|
|
1334
|
-
allowsMultipleChoices: z.ZodBoolean;
|
|
1335
|
-
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1336
|
-
ai_ml: "ai_ml";
|
|
1337
|
-
b2b_saas: "b2b_saas";
|
|
1338
|
-
d2c: "d2c";
|
|
1339
|
-
deeptech: "deeptech";
|
|
1340
|
-
robotics: "robotics";
|
|
1341
|
-
growth: "growth";
|
|
1342
|
-
sales: "sales";
|
|
1343
|
-
marketing: "marketing";
|
|
1344
|
-
supply_chain: "supply_chain";
|
|
1345
|
-
fundraising: "fundraising";
|
|
1346
|
-
mentoring: "mentoring";
|
|
1347
|
-
leadership: "leadership";
|
|
1348
|
-
networking: "networking";
|
|
1349
|
-
public_speaking: "public_speaking";
|
|
1350
|
-
teaching: "teaching";
|
|
1351
|
-
hiring_talent: "hiring_talent";
|
|
1352
|
-
personal_branding: "personal_branding";
|
|
1353
|
-
career_transition: "career_transition";
|
|
1354
|
-
remote_work: "remote_work";
|
|
1355
|
-
blockchain: "blockchain";
|
|
1356
|
-
crypto_web3: "crypto_web3";
|
|
1357
|
-
data_science: "data_science";
|
|
1358
|
-
cybersecurity: "cybersecurity";
|
|
1359
|
-
game_dev: "game_dev";
|
|
1360
|
-
ux_design: "ux_design";
|
|
1361
|
-
app_development: "app_development";
|
|
1362
|
-
open_source: "open_source";
|
|
1363
|
-
electronics: "electronics";
|
|
1364
|
-
space_exploration: "space_exploration";
|
|
1365
|
-
green_tech: "green_tech";
|
|
1366
|
-
no_code: "no_code";
|
|
1367
|
-
entrepreneurship: "entrepreneurship";
|
|
1368
|
-
investing: "investing";
|
|
1369
|
-
stock_trading: "stock_trading";
|
|
1370
|
-
personal_finance: "personal_finance";
|
|
1371
|
-
consulting: "consulting";
|
|
1372
|
-
ecommerce: "ecommerce";
|
|
1373
|
-
retail: "retail";
|
|
1374
|
-
real_estate: "real_estate";
|
|
1375
|
-
product_management: "product_management";
|
|
1376
|
-
meditation: "meditation";
|
|
1377
|
-
journaling: "journaling";
|
|
1378
|
-
self_improvement: "self_improvement";
|
|
1379
|
-
productivity: "productivity";
|
|
1380
|
-
reading: "reading";
|
|
1381
|
-
online_courses: "online_courses";
|
|
1382
|
-
philosophy: "philosophy";
|
|
1383
|
-
psychology: "psychology";
|
|
1384
|
-
therapy: "therapy";
|
|
1385
|
-
sleep_optimization: "sleep_optimization";
|
|
1386
|
-
gym: "gym";
|
|
1387
|
-
yoga: "yoga";
|
|
1388
|
-
photography: "photography";
|
|
1389
|
-
writing: "writing";
|
|
1390
|
-
graphic_design: "graphic_design";
|
|
1391
|
-
filmmaking: "filmmaking";
|
|
1392
|
-
digital_art: "digital_art";
|
|
1393
|
-
content_creation: "content_creation";
|
|
1394
|
-
blogging: "blogging";
|
|
1395
|
-
vlogging: "vlogging";
|
|
1396
|
-
podcasts: "podcasts";
|
|
1397
|
-
animation: "animation";
|
|
1398
|
-
music_production: "music_production";
|
|
1399
|
-
volunteering: "volunteering";
|
|
1400
|
-
ngo_work: "ngo_work";
|
|
1401
|
-
environmental: "environmental";
|
|
1402
|
-
women_empowerment: "women_empowerment";
|
|
1403
|
-
community_service: "community_service";
|
|
1404
|
-
social_enterprise: "social_enterprise";
|
|
1405
|
-
education_access: "education_access";
|
|
1406
|
-
}>>>;
|
|
1407
|
-
}, z.core.$strip>;
|
|
1408
|
-
export type CreatePollBody = z.infer<typeof createPollBodySchema>;
|
|
1409
|
-
/** Cast or change a vote. The server upserts on (poll, voter), so voting
|
|
1410
|
-
* twice replaces rather than doubles. */
|
|
1411
|
-
export declare const castVoteBodySchema: z.ZodObject<{
|
|
1412
|
-
optionIndices: z.ZodArray<z.ZodNumber>;
|
|
1413
|
-
}, z.core.$strip>;
|
|
1414
|
-
export type CastVoteBody = z.infer<typeof castVoteBodySchema>;
|
|
1415
|
-
export declare const createCommentBodySchema: z.ZodObject<{
|
|
1416
|
-
text: z.ZodString;
|
|
1417
|
-
parentCommentId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1418
|
-
}, z.core.$strip>;
|
|
1419
|
-
export type CreateCommentBody = z.infer<typeof createCommentBodySchema>;
|
|
1420
|
-
export declare const updateCommentBodySchema: z.ZodObject<{
|
|
1421
|
-
text: z.ZodString;
|
|
1422
|
-
}, z.core.$strip>;
|
|
1423
|
-
export type UpdateCommentBody = z.infer<typeof updateCommentBodySchema>;
|
|
1424
|
-
/** Set or clear a reaction. `null` clears it; at most one per viewer per item. */
|
|
1425
|
-
export declare const setReactionBodySchema: z.ZodObject<{
|
|
1426
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1427
|
-
like: "like";
|
|
1428
|
-
celebrate: "celebrate";
|
|
1429
|
-
insightful: "insightful";
|
|
1430
|
-
curious: "curious";
|
|
1431
|
-
}>>;
|
|
1432
|
-
}, z.core.$strip>;
|
|
1433
|
-
export type SetReactionBody = z.infer<typeof setReactionBodySchema>;
|
|
1434
|
-
/**
|
|
1435
|
-
* Returned by the reaction endpoint so the card can render the authoritative
|
|
1436
|
-
* result without a follow-up read. Without the fresh counts a client has to
|
|
1437
|
-
* guess the new total, and two quick taps leave it showing a number the server
|
|
1438
|
-
* never had.
|
|
1439
|
-
*/
|
|
1440
|
-
export declare const setReactionResponseSchema: z.ZodObject<{
|
|
1441
|
-
contentKind: z.ZodEnum<{
|
|
1442
|
-
post: "post";
|
|
1443
|
-
poll: "poll";
|
|
1444
|
-
comment: "comment";
|
|
1445
|
-
}>;
|
|
1446
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1447
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1448
|
-
like: "like";
|
|
1449
|
-
celebrate: "celebrate";
|
|
1450
|
-
insightful: "insightful";
|
|
1451
|
-
curious: "curious";
|
|
1452
|
-
}>>;
|
|
1453
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
1454
|
-
like: "like";
|
|
1455
|
-
celebrate: "celebrate";
|
|
1456
|
-
insightful: "insightful";
|
|
1457
|
-
curious: "curious";
|
|
1458
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
1459
|
-
}, z.core.$strip>;
|
|
1460
|
-
export type SetReactionResponse = z.infer<typeof setReactionResponseSchema>;
|
|
1461
|
-
/**
|
|
1462
|
-
* Why a member reported something.
|
|
1463
|
-
*
|
|
1464
|
-
* ⚠️ Stored on every report row, so this is data, not a label: removing a value
|
|
1465
|
-
* orphans reports already filed under it, and the counts nobody can recover are
|
|
1466
|
-
* exactly the ones a moderation review needs. Append only.
|
|
1467
|
-
*
|
|
1468
|
-
* ⚠️ A REASON THAT IS MISSING DOES NOT DISAPPEAR, it lands in `other`. Whatever
|
|
1469
|
-
* is not named here becomes an undifferentiated pile that no aggregate can see
|
|
1470
|
-
* a pattern in, which is the one thing report categories exist for. Worth being
|
|
1471
|
-
* deliberate about the absences rather than discovering them later.
|
|
1472
|
-
*/
|
|
1473
|
-
export declare const REPORT_REASON_VALUES: readonly ["spam", "harassment", "misinformation", "off_topic", "impersonation", "other"];
|
|
1474
|
-
export declare const reportReasonSchema: z.ZodEnum<{
|
|
1475
|
-
other: "other";
|
|
1476
|
-
spam: "spam";
|
|
1477
|
-
harassment: "harassment";
|
|
1478
|
-
misinformation: "misinformation";
|
|
1479
|
-
off_topic: "off_topic";
|
|
1480
|
-
impersonation: "impersonation";
|
|
1481
|
-
}>;
|
|
1482
|
-
export type ReportReason = z.infer<typeof reportReasonSchema>;
|
|
1483
|
-
/**
|
|
1484
|
-
* What a member sends to report a post, poll or comment.
|
|
1485
|
-
*
|
|
1486
|
-
* The target is the URL's, not the body's: a report is filed against a specific
|
|
1487
|
-
* thing at a specific address, and taking the target from the body would let a
|
|
1488
|
-
* caller report one item while the route thinks it is another.
|
|
1489
|
-
*
|
|
1490
|
-
* `note` is free text and optional, which is the pressure valve for everything
|
|
1491
|
-
* the enum does not name. ⚠️ It is written by a member, so it is untrusted at
|
|
1492
|
-
* render: a moderation queue displays it, and a moderation queue is a screen
|
|
1493
|
-
* staff read quickly.
|
|
1494
|
-
*/
|
|
1495
|
-
export declare const createReportBodySchema: z.ZodObject<{
|
|
1496
|
-
reason: z.ZodEnum<{
|
|
1497
|
-
other: "other";
|
|
1498
|
-
spam: "spam";
|
|
1499
|
-
harassment: "harassment";
|
|
1500
|
-
misinformation: "misinformation";
|
|
1501
|
-
off_topic: "off_topic";
|
|
1502
|
-
impersonation: "impersonation";
|
|
1503
|
-
}>;
|
|
1504
|
-
note: z.ZodOptional<z.ZodString>;
|
|
1505
|
-
}, z.core.$strip>;
|
|
1506
|
-
export type CreateReportBody = z.infer<typeof createReportBodySchema>;
|
|
1507
|
-
/**
|
|
1508
|
-
* The answer to filing one.
|
|
1509
|
-
*
|
|
1510
|
-
* `alreadyReported` distinguishes "we have taken this" from "you already told
|
|
1511
|
-
* us", because one report per member per target means a second press is a
|
|
1512
|
-
* no-op, and a silent no-op reads as a failure to somebody who pressed twice
|
|
1513
|
-
* deliberately. It is NOT a count: how many OTHER people reported an item is
|
|
1514
|
-
* moderation's business and telling a reporter would turn the count into a
|
|
1515
|
-
* score anyone could farm.
|
|
1516
|
-
*/
|
|
1517
|
-
export declare const createReportResponseSchema: z.ZodObject<{
|
|
1518
|
-
contentKind: z.ZodEnum<{
|
|
1519
|
-
post: "post";
|
|
1520
|
-
poll: "poll";
|
|
1521
|
-
comment: "comment";
|
|
1522
|
-
}>;
|
|
1523
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1524
|
-
alreadyReported: z.ZodBoolean;
|
|
1525
|
-
}, z.core.$strip>;
|
|
1526
|
-
export type CreateReportResponse = z.infer<typeof createReportResponseSchema>;
|
|
1527
|
-
/** The bookmark endpoint is a toggle and returns the state it settled on. */
|
|
1528
|
-
export declare const toggleBookmarkResponseSchema: z.ZodObject<{
|
|
1529
|
-
contentKind: z.ZodEnum<{
|
|
1530
|
-
post: "post";
|
|
1531
|
-
poll: "poll";
|
|
1532
|
-
}>;
|
|
1533
|
-
contentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1534
|
-
bookmarked: z.ZodBoolean;
|
|
1535
|
-
}, z.core.$strip>;
|
|
1536
|
-
export type ToggleBookmarkResponse = z.infer<typeof toggleBookmarkResponseSchema>;
|
|
1537
|
-
/** A vote returns the whole poll: counts, totals and the viewer's own choices
|
|
1538
|
-
* all move together, and reassembling them client-side drifts. */
|
|
1539
|
-
export declare const castVoteResponseSchema: z.ZodObject<{
|
|
1540
|
-
poll: z.ZodObject<{
|
|
1541
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1542
|
-
contentKind: z.ZodLiteral<"poll">;
|
|
1543
|
-
author: z.ZodObject<{
|
|
1544
|
-
userId: z.ZodString;
|
|
1545
|
-
username: z.ZodString;
|
|
1546
|
-
displayName: z.ZodString;
|
|
1547
|
-
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
1548
|
-
headline: z.ZodOptional<z.ZodString>;
|
|
1549
|
-
}, z.core.$strip>;
|
|
1550
|
-
question: z.ZodString;
|
|
1551
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1552
|
-
index: z.ZodNumber;
|
|
1553
|
-
label: z.ZodString;
|
|
1554
|
-
voteCount: z.ZodNumber;
|
|
1555
|
-
}, z.core.$strip>>;
|
|
1556
|
-
totalVoters: z.ZodNumber;
|
|
1557
|
-
allowsMultipleChoices: z.ZodBoolean;
|
|
1558
|
-
closesAt: z.ZodISODateTime;
|
|
1559
|
-
isClosed: z.ZodBoolean;
|
|
1560
|
-
topics: z.ZodArray<z.ZodEnum<{
|
|
1561
|
-
ai_ml: "ai_ml";
|
|
1562
|
-
b2b_saas: "b2b_saas";
|
|
1563
|
-
d2c: "d2c";
|
|
1564
|
-
deeptech: "deeptech";
|
|
1565
|
-
robotics: "robotics";
|
|
1566
|
-
growth: "growth";
|
|
1567
|
-
sales: "sales";
|
|
1568
|
-
marketing: "marketing";
|
|
1569
|
-
supply_chain: "supply_chain";
|
|
1570
|
-
fundraising: "fundraising";
|
|
1571
|
-
mentoring: "mentoring";
|
|
1572
|
-
leadership: "leadership";
|
|
1573
|
-
networking: "networking";
|
|
1574
|
-
public_speaking: "public_speaking";
|
|
1575
|
-
teaching: "teaching";
|
|
1576
|
-
hiring_talent: "hiring_talent";
|
|
1577
|
-
personal_branding: "personal_branding";
|
|
1578
|
-
career_transition: "career_transition";
|
|
1579
|
-
remote_work: "remote_work";
|
|
1580
|
-
blockchain: "blockchain";
|
|
1581
|
-
crypto_web3: "crypto_web3";
|
|
1582
|
-
data_science: "data_science";
|
|
1583
|
-
cybersecurity: "cybersecurity";
|
|
1584
|
-
game_dev: "game_dev";
|
|
1585
|
-
ux_design: "ux_design";
|
|
1586
|
-
app_development: "app_development";
|
|
1587
|
-
open_source: "open_source";
|
|
1588
|
-
electronics: "electronics";
|
|
1589
|
-
space_exploration: "space_exploration";
|
|
1590
|
-
green_tech: "green_tech";
|
|
1591
|
-
no_code: "no_code";
|
|
1592
|
-
entrepreneurship: "entrepreneurship";
|
|
1593
|
-
investing: "investing";
|
|
1594
|
-
stock_trading: "stock_trading";
|
|
1595
|
-
personal_finance: "personal_finance";
|
|
1596
|
-
consulting: "consulting";
|
|
1597
|
-
ecommerce: "ecommerce";
|
|
1598
|
-
retail: "retail";
|
|
1599
|
-
real_estate: "real_estate";
|
|
1600
|
-
product_management: "product_management";
|
|
1601
|
-
meditation: "meditation";
|
|
1602
|
-
journaling: "journaling";
|
|
1603
|
-
self_improvement: "self_improvement";
|
|
1604
|
-
productivity: "productivity";
|
|
1605
|
-
reading: "reading";
|
|
1606
|
-
online_courses: "online_courses";
|
|
1607
|
-
philosophy: "philosophy";
|
|
1608
|
-
psychology: "psychology";
|
|
1609
|
-
therapy: "therapy";
|
|
1610
|
-
sleep_optimization: "sleep_optimization";
|
|
1611
|
-
gym: "gym";
|
|
1612
|
-
yoga: "yoga";
|
|
1613
|
-
photography: "photography";
|
|
1614
|
-
writing: "writing";
|
|
1615
|
-
graphic_design: "graphic_design";
|
|
1616
|
-
filmmaking: "filmmaking";
|
|
1617
|
-
digital_art: "digital_art";
|
|
1618
|
-
content_creation: "content_creation";
|
|
1619
|
-
blogging: "blogging";
|
|
1620
|
-
vlogging: "vlogging";
|
|
1621
|
-
podcasts: "podcasts";
|
|
1622
|
-
animation: "animation";
|
|
1623
|
-
music_production: "music_production";
|
|
1624
|
-
volunteering: "volunteering";
|
|
1625
|
-
ngo_work: "ngo_work";
|
|
1626
|
-
environmental: "environmental";
|
|
1627
|
-
women_empowerment: "women_empowerment";
|
|
1628
|
-
community_service: "community_service";
|
|
1629
|
-
social_enterprise: "social_enterprise";
|
|
1630
|
-
education_access: "education_access";
|
|
1631
|
-
}>>;
|
|
1632
|
-
commentCount: z.ZodNumber;
|
|
1633
|
-
reactionCounts: z.ZodRecord<z.ZodEnum<{
|
|
1634
|
-
like: "like";
|
|
1635
|
-
celebrate: "celebrate";
|
|
1636
|
-
insightful: "insightful";
|
|
1637
|
-
curious: "curious";
|
|
1638
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
1639
|
-
createdAt: z.ZodISODateTime;
|
|
1640
|
-
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1641
|
-
viewer: z.ZodOptional<z.ZodObject<{
|
|
1642
|
-
reaction: z.ZodNullable<z.ZodEnum<{
|
|
1643
|
-
like: "like";
|
|
1644
|
-
celebrate: "celebrate";
|
|
1645
|
-
insightful: "insightful";
|
|
1646
|
-
curious: "curious";
|
|
1647
|
-
}>>;
|
|
1648
|
-
bookmarked: z.ZodBoolean;
|
|
1649
|
-
isAuthor: z.ZodBoolean;
|
|
1650
|
-
canEdit: z.ZodBoolean;
|
|
1651
|
-
canDelete: z.ZodBoolean;
|
|
1652
|
-
canReport: z.ZodBoolean;
|
|
1653
|
-
votedOptionIndices: z.ZodArray<z.ZodNumber>;
|
|
1654
|
-
}, z.core.$strip>>;
|
|
1655
|
-
}, z.core.$strip>;
|
|
1656
|
-
}, z.core.$strip>;
|
|
1657
|
-
export type CastVoteResponse = z.infer<typeof castVoteResponseSchema>;
|
|
1658
|
-
//# sourceMappingURL=feed.d.ts.map
|