"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 = {
    from: {
        label: '"From" number',
        id: 'from',
        type: extensions_core_2.FieldType.STRING,
        stringType: extensions_core_2.StringType.PHONE,
        required: false,
        description: 'The phone number that will send the text messages, it must be a Twilio phone number that you own. When left blank, the "From" number from the extension 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,
    from: extensions_core_1.E164PhoneValidationOptionalSchema,
    message: validation_1.MessageValidationSchema,
});
//# sourceMappingURL=fields.js.map