[chat] adopt strict zod types (#36102)

GitOrigin-RevId: eb3e245599f5db2d29366ce5d8e0993ec6b20338
This commit is contained in:
Jakob Ackermann
2026-09-17 11:48:40 +00:00
committed by Copybot
parent 4e79741e78
commit 2e8f6f0d03
@@ -3,7 +3,7 @@ import { z, zz } from '@overleaf/validation-tools'
export const MAX_MESSAGE_LENGTH = 10 * 1024 // 10kb, about 1,500 words
const DEFAULT_MESSAGE_LIMIT = 50
const projectParams = z.object({ projectId: zz.objectId() })
const projectParams = z.strictObject({ projectId: zz.objectId() })
const threadParams = projectParams.extend({ threadId: zz.objectId() })
const messageParams = projectParams.extend({ messageId: zz.objectId() })
const threadMessageParams = threadParams.extend({ messageId: zz.objectId() })