"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,
    },
    flow_id: {
        id: 'flow_id',
        label: 'Flow ID',
        type: extensions_core_2.FieldType.STRING,
        description: 'Flow ID (FWXXXXX...)',
        required: true,
    },
    parameters: {
        id: 'parameters',
        label: 'Parameters',
        description: 'Context to be passed into the flow (as an flat object)',
        type: extensions_core_2.FieldType.JSON,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    recipient: extensions_core_1.E164PhoneValidationSchema,
    from: extensions_core_1.E164PhoneValidationOptionalSchema,
    parameters: validation_1.ParametersValidationSchema,
    flow_id: zod_1.z.string(),
});
//# sourceMappingURL=fields.js.map