"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsValidationSchema = exports.settings = void 0;
const zod_1 = require("zod");
exports.settings = {
    testModeSecretKey: {
        key: 'testModeSecretKey',
        label: 'Test mode secret key',
        obfuscated: true,
        required: true,
        description: 'This key is used to authenticate requests on your server when in test mode',
    },
    testModePublishableKey: {
        key: 'testModePublishableKey',
        label: 'Test mode publishable key',
        obfuscated: false,
        required: true,
        description: 'This key is used for testing Embedded checkout in Awell Hosted Pages',
    },
    liveModeSecretKey: {
        key: 'liveModeSecretKey',
        label: 'Live mode secret key',
        obfuscated: true,
        required: true,
        description: 'This key is used to authenticate requests on your server when in live mode',
    },
    liveModePublishableKey: {
        key: 'liveModePublishableKey',
        label: 'Live mode publishable key',
        obfuscated: false,
        required: true,
        description: 'This key is used for testing Embedded checkout in Awell Hosted Pages',
    },
    mode: {
        key: 'mode',
        label: 'Mode',
        obfuscated: false,
        required: true,
        description: '"Test" or "Live", defaults to "Test". Make sure to have a secret key set for live mode when enabling it.',
    },
    hostedPagesEnvironmentVariable: {
        key: 'hostedPagesEnvironmentVariable',
        label: 'Hosted Pages environment variable',
        obfuscated: false,
        required: true,
        description: 'This will be removed once the extension is out of alpha mode. This needs to be configured by an Awell developer.',
    },
};
exports.SettingsValidationSchema = zod_1.z.object({
    liveModeSecretKey: zod_1.z.string().min(1),
    liveModePublishableKey: zod_1.z.string().min(1),
    testModeSecretKey: zod_1.z.string().min(1),
    testModePublishableKey: zod_1.z.string().min(1),
    hostedPagesEnvironmentVariable: zod_1.z.string().min(1),
    mode: zod_1.z.enum(['Live', 'Test']),
});
//# sourceMappingURL=settings.js.map