"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateSmsConversationResponseSchema = exports.CreateSmsConversationInputSchema = void 0;
const zod_1 = require("zod");
exports.CreateSmsConversationInputSchema = zod_1.z
    .object({
    user_number: zod_1.z.string().min(1), // For best results, use the E.164 format.
    agent_number: zod_1.z.string().min(1), // Must be a Bland-owned SMS-enabled number.
    message: zod_1.z.string().min(1), // The message seeded into the conversation (recorded, not sent).
    /**
     * Required by the live API even though Bland docs mark it optional
     * (omitting it returns 400 MISSING_REQUIRED_FIELDS). It is a Twilio
     * correlation id; a generated UUID is acceptable.
     */
    message_sid: zod_1.z.string().min(1),
    curr_pathway_id: zod_1.z.string().optional(),
    curr_pathway_version: zod_1.z.string().optional(),
    current_node_id: zod_1.z.string().optional(),
    sender: zod_1.z.enum(['USER', 'AGENT']).optional(),
    new_conversation: zod_1.z.boolean().optional(),
    request_data: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
})
    .passthrough();
exports.CreateSmsConversationResponseSchema = zod_1.z
    .object({
    data: zod_1.z
        .object({
        conversation_id: zod_1.z.string().optional(),
        status: zod_1.z.string().optional(),
    })
        .passthrough()
        .nullish(),
    errors: zod_1.z.array(zod_1.z.any()).nullish(),
})
    .passthrough();
//# sourceMappingURL=CreateSmsConversation.schema.js.map