export const leadsMongoSchema = { bsonType: "object", required: ["flowId", "clientId", "createdAt", "leads"], properties: { _id: { bsonType: "objectId" }, flowId: { bsonType: "string" }, clientId: { bsonType: "string" }, createdAt: { bsonType: "date" }, leads: { bsonType: "array", items: { bsonType: "object", required: ["callSid", "timestamp"], properties: { callSid: { bsonType: "string" }, timestamp: { bsonType: "date" }, properties: { bsonType: "array", items: { bsonType: "object", required: ["name", "value"], properties: { name: { bsonType: "string" }, value: { bsonType: "string" }, }, }, }, }, }, }, }, additionalProperties: false, } as const;