Add outreach candidate editing controls

This commit is contained in:
Jamie Brunton committed 2026-08-14 09:12:54 +01:00
1 parent c75e71f26e
commit 79c508be2b
19 files changed
+434 -12

No files matched your search

+19
View File
@@ -36,6 +36,7 @@ export const OutreachPreparationSchema = z.strictObject({
modelId: z.string(),
toneId: z.string(),
scripted: z.boolean(),
operatorEdited: z.boolean().default(false),
});
export const OutreachCandidateSchema = z.strictObject({
@@ -83,7 +84,25 @@ export const OutreachClearResponseSchema = z.strictObject({
retainedSending: z.number().int().nonnegative(),
});
export const OutreachMessageUpdateRequestSchema = z.strictObject({
message: z.string().trim().min(1).max(2000),
});
export const OutreachMessageUpdateResponseSchema = z.strictObject({
success: z.literal(true),
postId: z.string(),
message: z.string(),
});
export const OutreachCandidateDeleteResponseSchema = z.strictObject({
success: z.literal(true),
postId: z.string(),
});
export type OutreachCandidateStatus = z.infer<typeof OutreachCandidateStatusSchema>;
export type OutreachCandidate = z.infer<typeof OutreachCandidateSchema>;
export type OutreachFunnelResponse = z.infer<typeof OutreachFunnelResponseSchema>;
export type OutreachClearResponse = z.infer<typeof OutreachClearResponseSchema>;
export type OutreachMessageUpdateRequest = z.infer<typeof OutreachMessageUpdateRequestSchema>;
export type OutreachMessageUpdateResponse = z.infer<typeof OutreachMessageUpdateResponseSchema>;
export type OutreachCandidateDeleteResponse = z.infer<typeof OutreachCandidateDeleteResponseSchema>;