"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsValidationSchema = exports.settings = void 0;
const zod_1 = require("zod");
exports.settings = {
    apiUrl: {
        key: 'apiUrl',
        label: 'API url',
        obfuscated: false,
        required: true,
        description: 'The environment specific API url.',
    },
    apiKey: {
        key: 'apiKey',
        label: 'API key',
        obfuscated: true,
        required: true,
        description: 'Your Healthie API key.',
    },
    formAnswerMaxSizeKB: {
        key: 'formAnswerMaxSizeKB',
        label: 'Form answer max size (KB)',
        obfuscated: false,
        required: false,
        description: 'The maximum size of any form answer in KB. Form responses larger than that value (e.g. with images or PDFs) will be replaced by an Awell-generated message.',
    },
};
exports.SettingsValidationSchema = zod_1.z.object({
    apiUrl: zod_1.z.string().nonempty({
        message: 'Missing "API URL in the extension settings."',
    }),
    apiKey: zod_1.z.string().nonempty({
        message: 'Missing "API key in the extension settings."',
    }),
    formAnswerMaxSizeKB: zod_1.z
        .string()
        .optional()
        .transform((val) => (val ? parseInt(val) : undefined)),
});
//# sourceMappingURL=settings.js.map