mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[chat] adopt strict zod types (#36102)
GitOrigin-RevId: eb3e245599f5db2d29366ce5d8e0993ec6b20338
This commit is contained in:
@@ -3,7 +3,7 @@ import { z, zz } from '@overleaf/validation-tools'
|
|||||||
export const MAX_MESSAGE_LENGTH = 10 * 1024 // 10kb, about 1,500 words
|
export const MAX_MESSAGE_LENGTH = 10 * 1024 // 10kb, about 1,500 words
|
||||||
const DEFAULT_MESSAGE_LIMIT = 50
|
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 threadParams = projectParams.extend({ threadId: zz.objectId() })
|
||||||
const messageParams = projectParams.extend({ messageId: zz.objectId() })
|
const messageParams = projectParams.extend({ messageId: zz.objectId() })
|
||||||
const threadMessageParams = threadParams.extend({ messageId: zz.objectId() })
|
const threadMessageParams = threadParams.extend({ messageId: zz.objectId() })
|
||||||
|
|||||||
Reference in New Issue
Block a user