"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
const extensions_core_2 = require("@awell-health/extensions-core");
const validation_1 = require("../../../../common/validation");
exports.fields = {
    messagingServiceSid: {
        label: 'Messaging Service SID',
        id: 'messagingServiceSid',
        type: extensions_core_2.FieldType.STRING,
        required: false,
        description: 'The SID of the Messaging Service you want to associate with the Message. If left blank, the SID specified in the settings will be used.',
    },
    recipient: {
        id: 'recipient',
        label: '"To" phone number',
        type: extensions_core_2.FieldType.STRING,
        stringType: extensions_core_2.StringType.PHONE,
        description: 'The phone number you would like to send the text message to.',
        required: true,
    },
    message: {
        id: 'message',
        label: 'Message',
        description: 'The message you would like to send.',
        type: extensions_core_2.FieldType.TEXT,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    recipient: extensions_core_1.E164PhoneValidationSchema,
    messagingServiceSid: zod_1.z.string().optional(),
    message: validation_1.MessageValidationSchema,
});
//# sourceMappingURL=fields.js.map