import { z } from "zod"; export const ListCommentsQuery = z.object({ targetType: z.enum(["block", "record", "page"]).optional(), pageId: z.string().min(1).optional(), blockId: z.string().min(1).optional(), recordId: z.string().min(1).optional(), cursor: z.string().optional(), limit: z.string().optional() }); export type ListCommentsInput = z.infer; export const CreateCommentDto = z.object({ targetType: z.enum(["block", "record", "page"]), targetId: z.string().min(1), /** reply to an existing comment (thread root id) */ parentId: z.string().min(1).optional(), body: z.string().min(1).max(20_000) }); export type CreateCommentInput = z.infer; export const UpdateCommentDto = z.object({ body: z.string().min(1).max(20_000) }); export type UpdateCommentInput = z.infer; export const ReactionDto = z.object({ emoji: z.string().min(1).max(8) }); export type ReactionInput = z.infer;