"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsValidationSchema = exports.settings = void 0;
const zod_1 = require("zod");
const emailValidation_1 = require("../../src/utils/emailValidation");
exports.settings = {
    baseUrl: {
        label: 'Base URL',
        key: 'baseUrl',
        obfuscated: false,
        required: true,
        description: 'Your unique API base URL',
    },
    apiKey: {
        label: 'API key',
        key: 'apiKey',
        obfuscated: true,
        required: true,
        description: 'Your Infobip API key',
    },
    fromPhoneNumber: {
        label: 'From phone number',
        key: 'fromPhoneNumber',
        obfuscated: false,
        required: true,
        description: 'The phone number you wish to use for sending text messages, must be in E.164 format (eg. +19033428784)',
    },
    fromEmail: {
        label: 'From email',
        key: 'fromEmail',
        obfuscated: false,
        required: true,
        description: 'The email address you wish to use for sending text messages. When you are using Broadcast templates, the from email defined in the template will be used.',
    },
};
exports.SettingsValidationSchema = zod_1.z.object({
    baseUrl: zod_1.z.string().url().nonempty({
        message: 'Missing "Base URL" in the extension settings.',
    }),
    apiKey: zod_1.z.string().nonempty({
        message: 'Missing "API key" in the extension settings.',
    }),
    fromPhoneNumber: zod_1.z.string(),
    fromEmail: emailValidation_1.emailSchema,
});
//# sourceMappingURL=settings.js.map