"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsValidationSchema = exports.settings = void 0;
const zod_1 = require("zod");
exports.settings = {
    auth_url: {
        key: 'auth_url',
        label: 'Auth server URL',
        obfuscated: false,
        required: true,
        description: 'Used to perform the Client Credential grant to obtain an access token',
    },
    client_id: {
        key: 'client_id',
        label: 'Client ID',
        obfuscated: true,
        required: true,
        description: 'Used to perform the Client Credential grant to obtain an access token',
    },
    client_secret: {
        key: 'client_secret',
        label: 'Client secret',
        obfuscated: true,
        required: true,
        description: 'Used to perform the Client Credential grant to obtain an access token',
    },
    api_url: {
        key: 'api_url',
        label: 'API URL',
        obfuscated: false,
        required: true,
        description: 'The base URL of the resource server/API',
    },
    scope: {
        key: 'scope',
        label: 'Scope',
        obfuscated: false,
        required: true,
        description: 'The value is a space-delimited, case-sensitive string of requested scopes.',
    },
    practiceId: {
        key: 'practiceId',
        label: 'Practice ID',
        obfuscated: false,
        required: true,
        description: 'The ID of your practice within athenahealth',
    },
};
exports.SettingsValidationSchema = zod_1.z.object({
    client_id: zod_1.z.string().min(1),
    client_secret: zod_1.z.string().min(1),
    auth_url: zod_1.z.string().url(),
    api_url: zod_1.z.string().url(),
    scope: zod_1.z.string().min(1),
    practiceId: zod_1.z.string().min(1),
});
//# sourceMappingURL=settings.js.map