Enable automatic browsing upvotes
This commit is contained in:
1 parent
27012399ec
commit
7bf1aa9d24
26 files changed
+339
-57
No files matched your search
@@ -25,6 +25,7 @@ export const BrowsingSettingsSchema = z.strictObject({
|
||||
minimumGapMs: z.number().int(),
|
||||
jitterMs: z.number().int(),
|
||||
allowNsfw: z.boolean(),
|
||||
autoVoteEnabled: z.boolean(),
|
||||
nextDueAt: z.number().nullable(),
|
||||
updatedAt: z.number(),
|
||||
});
|
||||
@@ -46,6 +47,7 @@ export const BrowsingDecisionSchema = z.strictObject({
|
||||
permalink: z.string(),
|
||||
decision: z.enum(['simulated-upvote', 'skipped', 'rejected']),
|
||||
reason: z.string(),
|
||||
voteSubmitted: z.boolean(),
|
||||
decidedAt: z.number(),
|
||||
});
|
||||
|
||||
@@ -53,7 +55,7 @@ export const BrowsingSummarySchema = z.strictObject({
|
||||
settings: BrowsingSettingsSchema,
|
||||
todayTarget: z.number().int(),
|
||||
stats: BrowsingStatsSchema,
|
||||
noVotesSubmitted: z.literal(true),
|
||||
noVotesSubmitted: z.boolean(),
|
||||
});
|
||||
|
||||
export const BrowsingDetailSchema = BrowsingSummarySchema.extend({
|
||||
@@ -161,6 +163,7 @@ export const BrowsingSettingsUpdateRequestSchema = z.strictObject({
|
||||
minimumGapMs: z.number().int().min(45 * 60_000).max(24 * 60 * 60_000).optional(),
|
||||
jitterMs: z.number().int().min(0).max(6 * 60 * 60_000).optional(),
|
||||
allowNsfw: z.boolean().optional(),
|
||||
autoVoteEnabled: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export const GrowthPauseRequestSchema = z.strictObject({
|
||||
|
||||
Reference in new issue
Block a user