UNPKG

@monsoft/davinci-ai

Version:

Davinci AI Client

24 lines (23 loc) 708 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChatMessageSchema = void 0; const zod_1 = require("zod"); exports.ChatMessageSchema = zod_1.z.object({ message: zod_1.z.object({ message: zod_1.z.string(), id: zod_1.z .string() .describe('Id of the message. If the ID on the DB is number, it will be converted to string'), direction: zod_1.z.enum(['in', 'out']), }), contact: zod_1.z.object({ phone: zod_1.z.string().min(1), id: zod_1.z.string(), }), user: zod_1.z .object({ id: zod_1.z.string(), phone: zod_1.z.string().optional(), }) .optional(), });