feat: expand outreach targeting and messaging
This commit is contained in:
1 parent
7defff422d
commit
d0a8bd0e2f
40 files changed
+890
-82
No files matched your search
@@ -17,6 +17,27 @@ export const OutreachStageCountsSchema = z.strictObject({
|
||||
retryable: z.number().int().nonnegative(),
|
||||
});
|
||||
|
||||
export const OutreachPreparationSchema = z.strictObject({
|
||||
message: z.string(),
|
||||
imageAnalysis: z.string(),
|
||||
detectedGender: z.enum(['male', 'female', 'other', 'unknown']),
|
||||
attractivenessScore: z.number().int().min(1).max(100).nullable(),
|
||||
physiqueScore: z.number().int().min(1).max(10).nullable(),
|
||||
physiqueTargeting: z.strictObject({
|
||||
enabled: z.boolean(),
|
||||
minScore: z.number().int().min(1).max(10),
|
||||
maxScore: z.number().int().min(1).max(10),
|
||||
}).nullable(),
|
||||
sourceImageUrl: z.string().nullable(),
|
||||
strategyId: z.string().nullable(),
|
||||
experimentId: z.string().nullable(),
|
||||
promptVersion: z.string().nullable(),
|
||||
selectionReason: z.enum(['explore', 'exploit']).nullable(),
|
||||
modelId: z.string(),
|
||||
toneId: z.string(),
|
||||
scripted: z.boolean(),
|
||||
});
|
||||
|
||||
export const OutreachCandidateSchema = z.strictObject({
|
||||
postId: z.string(),
|
||||
subreddit: z.string(),
|
||||
@@ -32,6 +53,8 @@ export const OutreachCandidateSchema = z.strictObject({
|
||||
availableAt: z.number(),
|
||||
attemptCount: z.number().int().nonnegative(),
|
||||
hasPreparedMessage: z.boolean(),
|
||||
physiqueScore: z.number().int().min(1).max(10).nullable().default(null),
|
||||
preparation: OutreachPreparationSchema.nullable().default(null),
|
||||
note: z.string().nullable(),
|
||||
owner: RedditAccountOwnerSchema.nullable(),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user