"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ARGUS_DOMAIN = exports.GAURD_RAIL_TYPE = exports.SUPER_ADMINS = exports.VOICE_SAMPLE_RATE_OPTIONS = exports.VOICE_SAMPLE_RATE = exports.VOICE_OUTPUT_FORMAT_OPTIONS = exports.VOICE_OUTPUT_FORMAT = exports.CHANNEL_TYPE = exports.STT_PROVIDER = exports.TTS_PROVIDER = exports.PROVIDER_TYPE = exports.SCHEDULE_JOB_TIMEZONE_ABBR_TO_IANA = exports.SCHEDULE_JOB_STATUS = exports.SCHEDULE_JOB_EVAL_TYPE = exports.ALERT_TYPES = exports.CTAType = exports.ActivityType = exports.USER_ROLES_MAP = exports.USER_ROLES = exports.ELEVENLABS_LANGUAGE_CODE_MAP = exports.ELEVENLABS_LANGUAGE_MAP = exports.ELEVENLABS_LANGUAGES = exports.EMOTION_OPTIONS = exports.DATASET_DATA_TYPE_CONFIG = exports.DATASET_CONVERSATION_UPLOAD_EXTENSIONS = exports.DATASET_VIDEO_UPLOAD_EXTENSIONS = exports.DATASET_IMAGE_UPLOAD_EXTENSIONS = exports.DATASET_AUDIO_UPLOAD_EXTENSIONS = exports.DATASET_UPLOAD_DATA_TYPE = exports.NOTIFICATION_CHANNEL_STATUS = exports.ALERTS_METRIC_TYPE = exports.NOTIFICATION_CHANNEL_TYPE = exports.applicationDefinitionToPurpose = exports.TEST_RUN_TYPE = exports.TEST_RUN_STATUS = exports.SECURITY_CONFIG_STATUS = exports.FILE_METADATA_KEY = exports.CLOUD_PROVIDER_PREFIX = exports.DATASET_VAR_TYPE = exports.DATASET_TYPE = exports.DatasetStatus = exports.TERMINAL_MAX_WIDTH = exports.DEFAULT_API_BASE_URL = exports.DEFAULT_QUERY_LIMIT = exports.VERSION = void 0;
exports.getShareApiBaseUrl = getShareApiBaseUrl;
exports.getDefaultShareViewBaseUrl = getDefaultShareViewBaseUrl;
exports.getShareViewBaseUrl = getShareViewBaseUrl;
exports.getDefaultPort = getDefaultPort;
exports.isAllowedDatasetAudioExtension = isAllowedDatasetAudioExtension;
exports.isAllowedDatasetImageExtension = isAllowedDatasetImageExtension;
exports.isAllowedDatasetVideoExtension = isAllowedDatasetVideoExtension;
exports.isAllowedDatasetConversationExtension = isAllowedDatasetConversationExtension;
exports.getDatasetMediaUrlPathExtension = getDatasetMediaUrlPathExtension;
exports.getDatasetRowDirectMediaUrlValidationError = getDatasetRowDirectMediaUrlValidationError;
exports.getDatasetAudioMaxFileBytes = getDatasetAudioMaxFileBytes;
exports.getDatasetImageMaxFileBytes = getDatasetImageMaxFileBytes;
exports.getDatasetVideoMaxFileBytes = getDatasetVideoMaxFileBytes;
exports.getVoiceIdByLanguage = getVoiceIdByLanguage;
exports.getLanguageCodeByValue = getLanguageCodeByValue;
exports.getLanguageSearchTerms = getLanguageSearchTerms;
exports.resolveScheduleJobIanaTimeZone = resolveScheduleJobIanaTimeZone;
const package_json_1 = __importDefault(require("../package.json"));
const envars_1 = require("./envars");
exports.VERSION = package_json_1.default.version;
exports.DEFAULT_QUERY_LIMIT = 100;
// Default API base URL used for sharing and other API operations
exports.DEFAULT_API_BASE_URL = 'https://stage.trusys.ai';
// This is used for sharing evals.
function getShareApiBaseUrl() {
    return (
    // TODO(ian): Backwards compatibility, 2024-04-01
    (0, envars_1.getEnvString)('NEXT_PUBLIC_TRUSYS_REMOTE_API_BASE_URL') ||
        (0, envars_1.getEnvString)('NEXT_PUBLIC_TRUSYS_BASE_URL') ||
        (0, envars_1.getEnvString)('TRUSYS_REMOTE_API_BASE_URL') ||
        exports.DEFAULT_API_BASE_URL);
}
function getDefaultShareViewBaseUrl() {
    return (0, envars_1.getEnvString)('TRUSYS_SHARING_APP_BASE_URL', `https://stage.trusys.ai`);
}
// This is used for creating shared eval links.
function getShareViewBaseUrl() {
    return ((0, envars_1.getEnvString)('NEXT_PUBLIC_TRUSYS_BASE_URL') ||
        (0, envars_1.getEnvString)('TRUSYS_REMOTE_APP_BASE_URL') ||
        getDefaultShareViewBaseUrl());
}
function getDefaultPort() {
    return (0, envars_1.getEnvInt)('API_PORT', 15500);
}
// Maximum width for terminal outputs.
exports.TERMINAL_MAX_WIDTH = process?.stdout?.isTTY && process?.stdout?.columns && process?.stdout?.columns > 10
    ? process?.stdout?.columns - 10
    : 120;
var DatasetStatus;
(function (DatasetStatus) {
    DatasetStatus[DatasetStatus["DRAFT"] = 0] = "DRAFT";
    DatasetStatus[DatasetStatus["LIVE"] = 1] = "LIVE";
})(DatasetStatus || (exports.DatasetStatus = DatasetStatus = {}));
exports.DATASET_TYPE = {
    UPLOAD: 'upload',
    CONNECT: 'connect',
    GENERATE: 'generate',
    GENERATE_FROM_DOCUMENTS: 'generate_from_documents',
};
exports.DATASET_VAR_TYPE = {
    TEXT: 'text',
    VOICE: 'voice',
    VIDEO: 'video',
    IMAGE: 'image',
    CONVERSATION: 'conversation',
};
exports.CLOUD_PROVIDER_PREFIX = 'trusys://provider/';
exports.FILE_METADATA_KEY = '_FileMetadata';
exports.SECURITY_CONFIG_STATUS = {
    ACTIVE: 1,
    INACTIVE: 0,
    DRAFT: 2,
};
exports.TEST_RUN_STATUS = {
    PENDING: 'pending',
    COMPLETED: 'completed',
    FAILED: 'failed',
    ABORTED: 'aborted',
};
exports.TEST_RUN_TYPE = {
    SECURITY: 'redteam',
    EVAL: 'eval',
};
const applicationDefinitionToPurpose = (applicationDefinition) => {
    const sections = [];
    if (applicationDefinition.purpose) {
        sections.push(`The objective of the application is: ${applicationDefinition.purpose}`);
    }
    if (applicationDefinition.redteamUser) {
        sections.push(`You are: ${applicationDefinition.redteamUser}`);
    }
    if (applicationDefinition.accessToData) {
        sections.push(`You have access to: ${applicationDefinition.accessToData}`);
    }
    if (applicationDefinition.forbiddenData) {
        sections.push(`You do not have access to: ${applicationDefinition.forbiddenData}`);
    }
    if (applicationDefinition.accessToActions) {
        sections.push(`You can take the following actions: ${applicationDefinition.accessToActions}`);
    }
    if (applicationDefinition.forbiddenActions) {
        sections.push(`You should not take the following actions: ${applicationDefinition.forbiddenActions}`);
    }
    if (applicationDefinition.connectedSystems) {
        sections.push(`The LLM agent has access to these systems: ${applicationDefinition.connectedSystems}`);
    }
    return sections.join('\n\n');
};
exports.applicationDefinitionToPurpose = applicationDefinitionToPurpose;
exports.NOTIFICATION_CHANNEL_TYPE = {
    EMAIL: 1,
    WEBHOOK: 2,
};
exports.ALERTS_METRIC_TYPE = {
    EVALUATION: 'metric',
    SECURITY: 'plugins',
    SYSTEM_HEALTH: 'logMetric',
};
exports.NOTIFICATION_CHANNEL_STATUS = {
    ACTIVE: 1,
    INACTIVE: 2,
};
exports.DATASET_UPLOAD_DATA_TYPE = {
    AUDIO: 1,
    TEXT: 2,
    DOCUMENTS: 3,
    VIDEO: 4,
    IMAGE: 5,
    CONVERSATION: 6,
};
/** Lowercase extensions with leading dot — audio files inside dataset zips and voice row uploads. */
exports.DATASET_AUDIO_UPLOAD_EXTENSIONS = ['.wav', '.mp3', '.opus'];
function isAllowedDatasetAudioExtension(ext) {
    const normalized = ext.toLowerCase().trim();
    const withDot = normalized.startsWith('.') ? normalized : `.${normalized}`;
    return exports.DATASET_AUDIO_UPLOAD_EXTENSIONS.includes(withDot);
}
/** Image files for dataset image row uploads and zips (matches VIDEO/IMAGE dataset format strings). */
exports.DATASET_IMAGE_UPLOAD_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.webp'];
/** Video files for dataset video row uploads and zips. */
exports.DATASET_VIDEO_UPLOAD_EXTENSIONS = ['.mp4', '.mpg', '.mpeg', '.webm', '.avi'];
function isAllowedDatasetImageExtension(ext) {
    const normalized = ext.toLowerCase().trim();
    const withDot = normalized.startsWith('.') ? normalized : `.${normalized}`;
    return exports.DATASET_IMAGE_UPLOAD_EXTENSIONS.includes(withDot);
}
function isAllowedDatasetVideoExtension(ext) {
    const normalized = ext.toLowerCase().trim();
    const withDot = normalized.startsWith('.') ? normalized : `.${normalized}`;
    return exports.DATASET_VIDEO_UPLOAD_EXTENSIONS.includes(withDot);
}
/** Conversation files for dataset conversation row uploads and zips. */
exports.DATASET_CONVERSATION_UPLOAD_EXTENSIONS = ['.json', '.txt', '.log'];
function isAllowedDatasetConversationExtension(ext) {
    const normalized = ext.toLowerCase().trim();
    const withDot = normalized.startsWith('.') ? normalized : `.${normalized}`;
    return exports.DATASET_CONVERSATION_UPLOAD_EXTENSIONS.includes(withDot);
}
/**
 * File extension from URL pathname (last segment), lowercase with leading dot.
 * Empty if the URL is invalid or the path has no extension.
 */
function getDatasetMediaUrlPathExtension(rawUrl) {
    try {
        const u = new URL(rawUrl.trim());
        const last = u.pathname.split('/').filter(Boolean).pop() || '';
        const base = last.split('?')[0].split('#')[0];
        const dot = base.lastIndexOf('.');
        if (dot < 0 || dot >= base.length - 1) {
            return '';
        }
        return base.slice(dot).toLowerCase();
    }
    catch {
        return '';
    }
}
/**
 * Validates that an http(s) dataset media URL path ends with an allowed extension.
 * Returns null if OK, not an http(s) URL, or field type is not a known media column.
 */
function getDatasetRowDirectMediaUrlValidationError(fieldType, rawUrl) {
    const trimmed = rawUrl.trim();
    if (!/^https?:\/\//i.test(trimmed)) {
        return null;
    }
    try {
        const u = new URL(trimmed);
        if (u.protocol !== 'http:' && u.protocol !== 'https:') {
            return null;
        }
    }
    catch {
        return null;
    }
    const ext = getDatasetMediaUrlPathExtension(trimmed);
    if (!ext) {
        return 'The URL path must include a file extension (for example .mp3 or .png).';
    }
    if (fieldType === exports.DATASET_VAR_TYPE.VOICE) {
        if (!isAllowedDatasetAudioExtension(ext)) {
            return 'Voice URL must point to a .wav, .mp3, or .opus file.';
        }
        return null;
    }
    if (fieldType === exports.DATASET_VAR_TYPE.IMAGE) {
        if (!isAllowedDatasetImageExtension(ext)) {
            return 'Image URL must point to a .jpg, .jpeg, .png, or .webp file.';
        }
        return null;
    }
    if (fieldType === exports.DATASET_VAR_TYPE.VIDEO) {
        if (!isAllowedDatasetVideoExtension(ext)) {
            return 'Video URL must point to a .mp4, .mpg, .mpeg, .webm, or .avi file.';
        }
        return null;
    }
    if (fieldType === exports.DATASET_VAR_TYPE.CONVERSATION) {
        if (!isAllowedDatasetConversationExtension(ext)) {
            return 'Conversation URL must point to a .json, .txt, or .log file.';
        }
        return null;
    }
    return null;
}
exports.DATASET_DATA_TYPE_CONFIG = {
    [exports.DATASET_UPLOAD_DATA_TYPE.AUDIO]: {
        title: 'Audio',
        format: 'zip (wav, mp3, opus)',
        maxSize: 50,
        maxRecords: 100,
        accept: '.zip',
    },
    [exports.DATASET_UPLOAD_DATA_TYPE.TEXT]: {
        title: 'Text',
        format: 'csv',
        maxSize: 2,
        maxRecords: 200,
        accept: '.csv,text/csv',
    },
    [exports.DATASET_UPLOAD_DATA_TYPE.DOCUMENTS]: {
        title: 'Documents',
        format: 'pdf, doc',
        maxSize: 50,
        maxRecords: 100,
        accept: '.pdf,.doc,.docx',
    },
    [exports.DATASET_UPLOAD_DATA_TYPE.VIDEO]: {
        title: 'Video',
        format: 'zip (mp4, mpg, mpeg, webm, avi)',
        maxSize: 50,
        maxRecords: 100,
        accept: '.zip',
    },
    [exports.DATASET_UPLOAD_DATA_TYPE.IMAGE]: {
        title: 'Image',
        format: 'zip (jpg, jpeg, png, webp)',
        maxSize: 50,
        maxRecords: 100,
        accept: '.zip',
    },
    [exports.DATASET_UPLOAD_DATA_TYPE.CONVERSATION]: {
        title: 'Conversation',
        format: 'zip (txt, json, log)',
        maxSize: 10,
        maxRecords: 100,
        accept: '.zip',
    },
};
/** Per-file byte limit for dataset voice uploads and each file inside an audio zip (matches AUDIO maxSize MB). */
function getDatasetAudioMaxFileBytes() {
    return exports.DATASET_DATA_TYPE_CONFIG[exports.DATASET_UPLOAD_DATA_TYPE.AUDIO].maxSize * 1024 * 1024;
}
/** Per-file limit for image row uploads (matches IMAGE dataset maxSize MB). */
function getDatasetImageMaxFileBytes() {
    return exports.DATASET_DATA_TYPE_CONFIG[exports.DATASET_UPLOAD_DATA_TYPE.IMAGE].maxSize * 1024 * 1024;
}
/** Per-file limit for video row uploads (matches VIDEO dataset maxSize MB). */
function getDatasetVideoMaxFileBytes() {
    return exports.DATASET_DATA_TYPE_CONFIG[exports.DATASET_UPLOAD_DATA_TYPE.VIDEO].maxSize * 1024 * 1024;
}
// Emotion options for Eleven v3 model emotional tags
exports.EMOTION_OPTIONS = [
    { label: 'Neutral', value: 'neutral' },
    { label: 'Happy', value: 'happy' },
    { label: 'Sad', value: 'sad' },
    { label: 'Angry', value: 'angry' },
    { label: 'Excited', value: 'excited' },
    { label: 'Fearful', value: 'fearful' },
    { label: 'Surprised', value: 'surprised' },
    { label: 'Disgusted', value: 'disgusted' },
    { label: 'Curious', value: 'curious' },
    { label: 'Sarcastic', value: 'sarcastic' },
    { label: 'Shouting', value: 'shouting' },
    { label: 'Whispering', value: 'whispering' },
    { label: 'Crying', value: 'crying' },
    { label: 'Mischievous', value: 'mischievous' },
];
// These voices work with eleven_turbo_v2_5 and eleven_v3 models for all languages
//const GEORGE_VOICE = 'JBFqnCBsd6RMkjVDRZzb'; // Pre-made multilingual voice (male)
//const RACHEL_VOICE = '21m00Tcm4TlvDq8ikWAM'; // Pre-made English voice (female)
/* export const ELEVENLABS_LANGUAGES = [
  { label: 'Afrikaans', value: 'afrikaans', code: 'afr', voiceId: GEORGE_VOICE },
  { label: 'Arabic', value: 'arabic', code: 'ara', voiceId: GEORGE_VOICE },
  //{ label: 'Armenian', value: 'armenian', code: 'hye', voiceId: 'nPczCjzI2devNBz1zQrb' },
  //{ label: 'Assamese', value: 'assamese', code: 'asm', voiceId: '21m00Tcm4TlvDq8ikWAM' },
  { label: 'Azerbaijani', value: 'azerbaijani', code: 'aze', voiceId: GEORGE_VOICE },
  { label: 'Belarusian', value: 'belarusian', code: 'bel', voiceId: GEORGE_VOICE },
  { label: 'Bengali', value: 'bengali', code: 'ben', voiceId: GEORGE_VOICE },
  { label: 'Bosnian', value: 'bosnian', code: 'bos', voiceId: GEORGE_VOICE },
  { label: 'Bulgarian', value: 'bulgarian', code: 'bul', voiceId: GEORGE_VOICE },
  { label: 'Catalan', value: 'catalan', code: 'cat', voiceId: GEORGE_VOICE },
  { label: 'Cebuano', value: 'cebuano', code: 'ceb', voiceId: GEORGE_VOICE },
  { label: 'Chichewa', value: 'chichewa', code: 'nya', voiceId: GEORGE_VOICE },
  { label: 'Croatian', value: 'croatian', code: 'hrv', voiceId: GEORGE_VOICE },
  { label: 'Czech', value: 'czech', code: 'ces', voiceId: GEORGE_VOICE },
  { label: 'Danish', value: 'danish', code: 'dan', voiceId: GEORGE_VOICE },
  { label: 'Dutch', value: 'dutch', code: 'nld', voiceId: GEORGE_VOICE },
  { label: 'English (USA)', value: 'american', code: 'eng', voiceId: RACHEL_VOICE },
  { label: 'English (UK)', value: 'british', code: 'eng', voiceId: GEORGE_VOICE },
  { label: 'English (Australia)', value: 'australian', code: 'eng', voiceId: GEORGE_VOICE },
  { label: 'English (Canada)', value: 'canadian', code: 'eng', voiceId: GEORGE_VOICE },
  { label: 'Estonian', value: 'estonian', code: 'est', voiceId: GEORGE_VOICE },
  { label: 'Filipino', value: 'filipino', code: 'fil', voiceId: GEORGE_VOICE },
  { label: 'Finnish', value: 'finnish', code: 'fin', voiceId: GEORGE_VOICE },
  { label: 'French', value: 'french', code: 'fra', voiceId: GEORGE_VOICE },
  { label: 'Galician', value: 'galician', code: 'glg', voiceId: GEORGE_VOICE },
  { label: 'Georgian', value: 'georgian', code: 'kat', voiceId: GEORGE_VOICE },
  { label: 'German', value: 'german', code: 'deu', voiceId: GEORGE_VOICE },
  { label: 'Greek', value: 'greek', code: 'ell', voiceId: GEORGE_VOICE },
  { label: 'Gujarati', value: 'gujarati', code: 'guj', voiceId: GEORGE_VOICE },
  { label: 'Hausa', value: 'hausa', code: 'hau', voiceId: GEORGE_VOICE },
  { label: 'Hebrew', value: 'hebrew', code: 'heb', voiceId: GEORGE_VOICE },
  { label: 'Hindi', value: 'hindi', code: 'hin', voiceId: GEORGE_VOICE },
  { label: 'Hungarian', value: 'hungarian', code: 'hun', voiceId: GEORGE_VOICE },
  { label: 'Icelandic', value: 'icelandic', code: 'isl', voiceId: GEORGE_VOICE },
  { label: 'Indonesian', value: 'indonesian', code: 'ind', voiceId: GEORGE_VOICE },
  { label: 'Irish', value: 'irish', code: 'gle', voiceId: GEORGE_VOICE },
  { label: 'Italian', value: 'italian', code: 'ita', voiceId: GEORGE_VOICE },
  { label: 'Japanese', value: 'japanese', code: 'jpn', voiceId: GEORGE_VOICE },
  { label: 'Javanese', value: 'javanese', code: 'jav', voiceId: GEORGE_VOICE },
  { label: 'Kannada', value: 'kannada', code: 'kan', voiceId: GEORGE_VOICE },
  { label: 'Kazakh', value: 'kazakh', code: 'kaz', voiceId: GEORGE_VOICE },
  { label: 'Kirghiz', value: 'kirghiz', code: 'kir', voiceId: GEORGE_VOICE },
  { label: 'Korean', value: 'korean', code: 'kor', voiceId: GEORGE_VOICE },
  { label: 'Latvian', value: 'latvian', code: 'lav', voiceId: GEORGE_VOICE },
  { label: 'Lingala', value: 'lingala', code: 'lin', voiceId: GEORGE_VOICE },
  { label: 'Lithuanian', value: 'lithuanian', code: 'lit', voiceId: GEORGE_VOICE },
  { label: 'Luxembourgish', value: 'luxembourgish', code: 'ltz', voiceId: GEORGE_VOICE },
  { label: 'Macedonian', value: 'macedonian', code: 'mkd', voiceId: GEORGE_VOICE },
  { label: 'Malay', value: 'malay', code: 'msa', voiceId: GEORGE_VOICE },
  { label: 'Malayalam', value: 'malayalam', code: 'mal', voiceId: GEORGE_VOICE },
  { label: 'Mandarin Chinese', value: 'chinese', code: 'cmn', voiceId: GEORGE_VOICE },
  { label: 'Marathi', value: 'marathi', code: 'mar', voiceId: GEORGE_VOICE },
  { label: 'Nepali', value: 'nepali', code: 'nep', voiceId: GEORGE_VOICE },
  { label: 'Norwegian', value: 'norwegian', code: 'nor', voiceId: GEORGE_VOICE },
  { label: 'Pashto', value: 'pashto', code: 'pus', voiceId: GEORGE_VOICE },
  { label: 'Persian', value: 'persian', code: 'fas', voiceId: GEORGE_VOICE },
  { label: 'Polish', value: 'polish', code: 'pol', voiceId: GEORGE_VOICE },
  { label: 'Portuguese', value: 'portuguese', code: 'por', voiceId: GEORGE_VOICE },
  { label: 'Punjabi', value: 'punjabi', code: 'pan', voiceId: GEORGE_VOICE },
  { label: 'Romanian', value: 'romanian', code: 'ron', voiceId: GEORGE_VOICE },
  { label: 'Russian', value: 'russian', code: 'rus', voiceId: GEORGE_VOICE },
  { label: 'Serbian', value: 'serbian', code: 'srp', voiceId: GEORGE_VOICE },
  { label: 'Sindhi', value: 'sindhi', code: 'snd', voiceId: GEORGE_VOICE },
  { label: 'Slovak', value: 'slovak', code: 'slk', voiceId: GEORGE_VOICE },
  { label: 'Slovenian', value: 'slovenian', code: 'slv', voiceId: GEORGE_VOICE },
  { label: 'Somali', value: 'somali', code: 'som', voiceId: GEORGE_VOICE },
  { label: 'Spanish (Spain)', value: 'spain', code: 'spa', voiceId: GEORGE_VOICE },
  { label: 'Spanish (Mexico)', value: 'mexico', code: 'spa', voiceId: GEORGE_VOICE },
  { label: 'Swahili', value: 'swahili', code: 'swa', voiceId: GEORGE_VOICE },
  { label: 'Swedish', value: 'swedish', code: 'swe', voiceId: GEORGE_VOICE },
  { label: 'Tamil', value: 'tamil', code: 'tam', voiceId: GEORGE_VOICE },
  { label: 'Telugu', value: 'telugu', code: 'tel', voiceId: GEORGE_VOICE },
  { label: 'Thai', value: 'thai', code: 'tha', voiceId: GEORGE_VOICE },
  { label: 'Turkish', value: 'turkish', code: 'tur', voiceId: GEORGE_VOICE },
  { label: 'Ukrainian', value: 'ukrainian', code: 'ukr', voiceId: GEORGE_VOICE },
  { label: 'Urdu', value: 'urdu', code: 'urd', voiceId: GEORGE_VOICE },
  { label: 'Vietnamese', value: 'vietnamese', code: 'vie', voiceId: GEORGE_VOICE },
  { label: 'Welsh', value: 'welsh', code: 'cym', voiceId: GEORGE_VOICE },
]; */
exports.ELEVENLABS_LANGUAGES = [
    { label: 'Afrikaans', value: 'afrikaans', code: 'afr', voiceId: 'IT5cb4lfodSX8eyXUzyO' },
    { label: 'Arabic', value: 'arabic', code: 'ara', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    //{ label: 'Armenian', value: 'armenian', code: 'hye', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    //{ label: 'Assamese', value: 'assamese', code: 'asm', voiceId: '21m00Tcm4TlvDq8ikWAM' },
    { label: 'Azerbaijani', value: 'azerbaijani', code: 'aze', voiceId: 'AKGWkp89mKHLHYRQrjRX' },
    //{ label: 'Belarusian', value: 'belarusian', code: 'bel', voiceId: 'ThT5KcBeYPX3keUQqHPh' },
    { label: 'Bengali', value: 'bengali', code: 'ben', voiceId: 'WiaIVvI1gDL4vT4y7qUU' },
    { label: 'Bosnian', value: 'bosnian', code: 'bos', voiceId: 'F2kYsMGahtg8auErVXgY' },
    { label: 'Bulgarian', value: 'bulgarian', code: 'bul', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    //{ label: 'Catalan', value: 'catalan', code: 'cat', voiceId: 'Zlb1dXrM653N07WRdFW3' },
    { label: 'Cebuano', value: 'cebuano', code: 'ceb', voiceId: 'RKj1DIXprh8zdvjllfhJ' },
    //{ label: 'Chichewa', value: 'chichewa', code: 'nya', voiceId: 'MF3mGyEYCl7XYWbV9V6O' },
    { label: 'Croatian', value: 'croatian', code: 'hrv', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Czech', value: 'czech', code: 'ces', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Danish', value: 'danish', code: 'dan', voiceId: '6SjhOkgKPuHxm8q0eIyp' },
    { label: 'Dutch', value: 'dutch', code: 'nld', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    { label: 'English (USA)', value: 'american', code: 'eng', voiceId: 'C1npRmjB19a6yNkEucvx' },
    { label: 'English (UK)', value: 'british', code: 'eng', voiceId: 'lUTamkMw7gOzZbFIwmq4' },
    {
        label: 'English (Australia)',
        value: 'australian',
        code: 'eng',
        voiceId: 'snyKKuaGYk1VUEh42zbW',
    },
    { label: 'English (Canada)', value: 'canadian', code: 'eng', voiceId: 'HqW11As4VRPkApNPkAZp' },
    { label: 'Estonian', value: 'estonian', code: 'est', voiceId: 'tIFPE2y0DAU6xfZn3Fka' },
    { label: 'Filipino', value: 'filipino', code: 'fil', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Finnish', value: 'finnish', code: 'fin', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'French', value: 'french', code: 'fra', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Galician', value: 'galician', code: 'glg', voiceId: 'uZAgv46kqRrZthdejCSf' },
    // { label: 'Georgian', value: 'georgian', code: 'kat', voiceId: 'SOYHLrjzK2X1ezoPC6cr' },
    { label: 'German', value: 'german', code: 'deu', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Greek', value: 'greek', code: 'ell', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Gujarati', value: 'gujarati', code: 'guj', voiceId: '1tyCkDKmBd1gCvRcimhT' },
    //{ label: 'Hausa', value: 'hausa', code: 'hau', voiceId: 'cjVigY5qzO86Huf0OWal' },
    //{ label: 'Hebrew', value: 'hebrew', code: 'heb', voiceId: 'cgSgspJ2msm6clMCkdW9' },
    { label: 'Hindi', value: 'hindi', code: 'hin', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Hungarian', value: 'hungarian', code: 'hun', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Icelandic', value: 'icelandic', code: 'isl', voiceId: 'Yko7PKHZNXotIFUBG7I9' },
    { label: 'Indonesian', value: 'indonesian', code: 'ind', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Irish', value: 'irish', code: 'gle', voiceId: '8SNzJpKT62Cqqqe8Injx' },
    { label: 'Italian', value: 'italian', code: 'ita', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Japanese', value: 'japanese', code: 'jpn', voiceId: 'hBWDuZMNs32sP5dKzMuc' },
    { label: 'Javanese', value: 'javanese', code: 'jav', voiceId: '401JBh3qavLxL2CJfqvZ' },
    //{ label: 'Kannada', value: 'kannada', code: 'kan', voiceId: 'VT26nWaqgBmXtH6KAeQ3' },
    //{ label: 'Kazakh', value: 'kazakh', code: 'kaz', voiceId: 'TX3LPaxmHKxFdv7VOQHJ' },
    //{ label: 'Kirghiz', value: 'kirghiz', code: 'kir', voiceId: 'pqHfZKP75CvOlQylNhV4' },
    { label: 'Korean', value: 'korean', code: 'kor', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    //{ label: 'Latvian', value: 'latvian', code: 'lav', voiceId: 'iP95p4xoKVk53GoZ742B' },
    //{ label: 'Lingala', value: 'lingala', code: 'lin', voiceId: 'JBFqnCBsd6RMkjVDRZzb' },
    //{ label: 'Lithuanian', value: 'lithuanian', code: 'lit', voiceId: 'D38z5RcWu1voky8WS1ja' },
    //{ label: 'Luxembourgish', value: 'luxembourgish', code: 'ltz', voiceId: 'EXAVITQu4vr4xnSDxMaL' },
    //{ label: 'Macedonian', value: 'macedonian', code: 'mkd', voiceId: 'ZQe5CZNOzWyzPSCn5a3c' },
    { label: 'Malay', value: 'malay', code: 'msa', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    //{ label: 'Malayalam', value: 'malayalam', code: 'mal', voiceId: 'flq6f7yk4E4fJM5XTYuZ' },
    { label: 'Mandarin Chinese', value: 'chinese', code: 'cmn', voiceId: '8Es4wFxsDlHBmFWAOWRS' },
    { label: 'Marathi', value: 'marathi', code: 'mar', voiceId: 'RBxPIvrKOP4ugCK2jVHD' },
    // { label: 'Nepali', value: 'nepali', code: 'nep', voiceId: 'pFZP5JQG7iQjIQuC4Bku' },
    { label: 'Norwegian', value: 'norwegian', code: 'nor', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    //{ label: 'Pashto', value: 'pashto', code: 'pus', voiceId: 'cgSgspJ2msm6clMCkdW9' },
    { label: 'Persian', value: 'persian', code: 'fas', voiceId: 'PleK417YVMP2SUWm8Btb' },
    { label: 'Polish', value: 'polish', code: 'pol', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Portuguese', value: 'portuguese', code: 'por', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Punjabi', value: 'punjabi', code: 'pan', voiceId: 'vT0wMbLG5dssaBsksrb6' },
    { label: 'Romanian', value: 'romanian', code: 'ron', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Russian', value: 'russian', code: 'rus', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    { label: 'Serbian', value: 'serbian', code: 'srp', voiceId: 'pZPGvLM3dfmqzJubZLiF' },
    // { label: 'Sindhi', value: 'sindhi', code: 'snd', voiceId: 'N2lVS1w4EtoT3dr4eOWO' },
    { label: 'Slovak', value: 'slovak', code: 'slk', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    //{ label: 'Slovenian', value: 'slovenian', code: 'slv', voiceId: 'TxGEqnHWrfWFTfGW9XjX' },
    { label: 'Somali', value: 'somali', code: 'som', voiceId: '8G0ZG2JW5LHLYBVnqaKa' },
    { label: 'Spanish (Spain)', value: 'spain', code: 'spa', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Spanish (Mexico)', value: 'mexico', code: 'spa', voiceId: 'hHjbwzYZW17oh0p05AKv' },
    { label: 'Swahili', value: 'swahili', code: 'swa', voiceId: 'piTKgcLEGmPE4e6mEKli' },
    { label: 'Swedish', value: 'swedish', code: 'swe', voiceId: 'P1bg08DkjqiVEzOn76yG' },
    { label: 'Tamil', value: 'tamil', code: 'tam', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    //{ label: 'Telugu', value: 'telugu', code: 'tel', voiceId: 'cjVigY5qzO86Huf0OWal' },
    //{ label: 'Thai', value: 'thai', code: 'tha', voiceId: 'CYw3kZ02Hs0563khs1Fj' },
    { label: 'Turkish', value: 'turkish', code: 'tur', voiceId: 'ZhJ5LanYnCmLKQUXvsV7' },
    { label: 'Ukrainian', value: 'ukrainian', code: 'ukr', voiceId: '8Es4wFxsDlHBmFWAOWRS' },
    { label: 'Urdu', value: 'urdu', code: 'urd', voiceId: '9cI5mhBtM4WtQ9Fo6jWQ' },
    { label: 'Vietnamese', value: 'vietnamese', code: 'vie', voiceId: 'jdlxsPOZOHdGEfcItXVu' },
    { label: 'Welsh', value: 'welsh', code: 'cym', voiceId: 'DikmR0aoFXAp1A3NcovW' },
];
// Helper function to get voice ID by language value
function getVoiceIdByLanguage(languageValue) {
    const language = exports.ELEVENLABS_LANGUAGES.find((lang) => lang.value === languageValue);
    return language?.voiceId || null;
}
// Helper function to get language code by value
function getLanguageCodeByValue(languageValue) {
    const language = exports.ELEVENLABS_LANGUAGES.find((lang) => lang.value === languageValue);
    return language?.code || null;
}
// Helper function to create language search terms for mapping
function getLanguageSearchTerms(languageValue) {
    const language = exports.ELEVENLABS_LANGUAGES.find((lang) => lang.value === languageValue);
    if (!language) {
        return [languageValue.toLowerCase()];
    }
    return [language.code, language.value.toLowerCase(), language.label.toLowerCase()];
}
// Create a map for quick lookup by value
exports.ELEVENLABS_LANGUAGE_MAP = exports.ELEVENLABS_LANGUAGES.reduce((acc, lang) => {
    acc[lang.value] = lang;
    return acc;
}, {});
// Create a map for quick lookup by code
exports.ELEVENLABS_LANGUAGE_CODE_MAP = exports.ELEVENLABS_LANGUAGES.reduce((acc, lang) => {
    if (!acc[lang.code]) {
        acc[lang.code] = [];
    }
    acc[lang.code].push(lang);
    return acc;
}, {});
exports.USER_ROLES = {
    ADMIN: 'admin',
    ENGINEER: 'engineer',
    REVIEWER: 'reviewer',
    READER: 'reader',
};
exports.USER_ROLES_MAP = {
    [exports.USER_ROLES.ADMIN]: 'Admin',
    [exports.USER_ROLES.ENGINEER]: 'Engineer',
    [exports.USER_ROLES.REVIEWER]: 'Reviewer',
    [exports.USER_ROLES.READER]: 'Reader',
};
var ActivityType;
(function (ActivityType) {
    ActivityType[ActivityType["DELETE_ORG"] = 19] = "DELETE_ORG";
    ActivityType[ActivityType["CREATE_ORG"] = 22] = "CREATE_ORG";
    ActivityType[ActivityType["UPDATE_ORG"] = 23] = "UPDATE_ORG";
    ActivityType[ActivityType["ADD_USER"] = 24] = "ADD_USER";
    ActivityType[ActivityType["UPDATE_ROLE_USER"] = 25] = "UPDATE_ROLE_USER";
    ActivityType[ActivityType["REMOVE_USER"] = 26] = "REMOVE_USER";
    ActivityType[ActivityType["UPDATE_PROFILE"] = 27] = "UPDATE_PROFILE";
    ActivityType[ActivityType["BILLING_DETAILS"] = 28] = "BILLING_DETAILS";
    ActivityType[ActivityType["PAID_INVOICE"] = 29] = "PAID_INVOICE";
    ActivityType[ActivityType["AUTO_PAID_INVOICE"] = 30] = "AUTO_PAID_INVOICE";
    ActivityType[ActivityType["CREATE_PROJECT"] = 47] = "CREATE_PROJECT";
    ActivityType[ActivityType["CREATE_APPLICATION"] = 48] = "CREATE_APPLICATION";
    ActivityType[ActivityType["UPDATE_APPLICATION"] = 49] = "UPDATE_APPLICATION";
    ActivityType[ActivityType["DELETE_APPLICATION"] = 50] = "DELETE_APPLICATION";
    ActivityType[ActivityType["CREATE_DATASET"] = 51] = "CREATE_DATASET";
    ActivityType[ActivityType["UPDATE_DATASET"] = 52] = "UPDATE_DATASET";
    ActivityType[ActivityType["DELETE_DATASET"] = 53] = "DELETE_DATASET";
    ActivityType[ActivityType["CREATE_API_KEY"] = 54] = "CREATE_API_KEY";
    ActivityType[ActivityType["DELETE_API_KEY"] = 55] = "DELETE_API_KEY";
    ActivityType[ActivityType["CREATE_PROMPT_LIBRARY"] = 56] = "CREATE_PROMPT_LIBRARY";
    ActivityType[ActivityType["UPDATE_PROMPT_LIBRARY"] = 57] = "UPDATE_PROMPT_LIBRARY";
    ActivityType[ActivityType["DELETE_PROMPT_LIBRARY"] = 58] = "DELETE_PROMPT_LIBRARY";
    ActivityType[ActivityType["CREATE_ALERT_CONDITION"] = 59] = "CREATE_ALERT_CONDITION";
    ActivityType[ActivityType["UPDATE_ALERT_CONDITION"] = 60] = "UPDATE_ALERT_CONDITION";
    ActivityType[ActivityType["DELETE_ALERT_CONDITION"] = 61] = "DELETE_ALERT_CONDITION";
    ActivityType[ActivityType["CREATE_NOTIFICATION_CHANNEL"] = 62] = "CREATE_NOTIFICATION_CHANNEL";
    ActivityType[ActivityType["UPDATE_NOTIFICATION_CHANNEL"] = 63] = "UPDATE_NOTIFICATION_CHANNEL";
    ActivityType[ActivityType["DELETE_NOTIFICATION_CHANNEL"] = 64] = "DELETE_NOTIFICATION_CHANNEL";
    ActivityType[ActivityType["RUN_FUNCTIONAL_EVALUATION"] = 65] = "RUN_FUNCTIONAL_EVALUATION";
    ActivityType[ActivityType["RUN_SECURITY_EVALUATION"] = 66] = "RUN_SECURITY_EVALUATION";
    ActivityType[ActivityType["SHARE_REPORT"] = 67] = "SHARE_REPORT";
    ActivityType[ActivityType["REVOKE_REPORT"] = 68] = "REVOKE_REPORT";
    ActivityType[ActivityType["DOWNLOAD_REPORT"] = 69] = "DOWNLOAD_REPORT";
    ActivityType[ActivityType["CREATE_SECURITY_CONFIG"] = 70] = "CREATE_SECURITY_CONFIG";
    ActivityType[ActivityType["UPDATE_SECURITY_CONFIG"] = 71] = "UPDATE_SECURITY_CONFIG";
    ActivityType[ActivityType["DELETE_SECURITY_CONFIG"] = 72] = "DELETE_SECURITY_CONFIG";
    ActivityType[ActivityType["ARCHIVED"] = 73] = "ARCHIVED";
    ActivityType[ActivityType["ENABLE_MONITORING"] = 74] = "ENABLE_MONITORING";
    ActivityType[ActivityType["UPDATE_MONITORING"] = 75] = "UPDATE_MONITORING";
    ActivityType[ActivityType["DISABLE_MONITORING"] = 76] = "DISABLE_MONITORING";
    ActivityType[ActivityType["DOWNLOAD_EVAL_RESULT"] = 77] = "DOWNLOAD_EVAL_RESULT";
    ActivityType[ActivityType["INVITATION_SENT_PROJECT"] = 78] = "INVITATION_SENT_PROJECT";
    ActivityType[ActivityType["UPDATE_PROJECT_ROLE"] = 79] = "UPDATE_PROJECT_ROLE";
    ActivityType[ActivityType["DELETE_DATASET_ROW"] = 80] = "DELETE_DATASET_ROW";
    ActivityType[ActivityType["NEW_DATASET_ROW"] = 81] = "NEW_DATASET_ROW";
})(ActivityType || (exports.ActivityType = ActivityType = {}));
var CTAType;
(function (CTAType) {
    CTAType[CTAType["ORG_ID"] = 2] = "ORG_ID";
    CTAType[CTAType["ROLE_ID"] = 7] = "ROLE_ID";
    CTAType[CTAType["TRANSACTION_ID"] = 8] = "TRANSACTION_ID";
    CTAType[CTAType["USER_ID"] = 9] = "USER_ID";
    CTAType[CTAType["EMAIL_ID"] = 15] = "EMAIL_ID";
    CTAType[CTAType["MESSAGE"] = 16] = "MESSAGE";
    CTAType[CTAType["PROJECT_ID"] = 17] = "PROJECT_ID";
    CTAType[CTAType["APPLICATION_ID"] = 18] = "APPLICATION_ID";
    CTAType[CTAType["DATASET_ID"] = 19] = "DATASET_ID";
    CTAType[CTAType["PROMPT_LIBRARY_ID"] = 20] = "PROMPT_LIBRARY_ID";
    CTAType[CTAType["ALERT_CONDITION_ID"] = 21] = "ALERT_CONDITION_ID";
    CTAType[CTAType["NOTIFICATION_CHANNEL_ID"] = 22] = "NOTIFICATION_CHANNEL_ID";
    CTAType[CTAType["TEST_RUN_ID"] = 23] = "TEST_RUN_ID";
})(CTAType || (exports.CTAType = CTAType = {}));
exports.ALERT_TYPES = {
    SCOUT_FUNCTIONAL_EVALUATION: 'metric',
    SCOUT_SECURITY_EVALUATION: 'plugins',
    PULSE_SYSTEM_HEALTH: 'system_health',
    FUNCTIONAL_EVALUATION: 'functionalEvaluation',
    SECURITY_EVALUATION: 'securityEvaluation',
    INPUT_GAURD_RAIL: 'inputGuardRails',
    OUTPUT_GAURD_RAIL: 'outputGuardRails',
};
exports.SCHEDULE_JOB_EVAL_TYPE = {
    FUNCTIONAL_EVAL: 1,
    SECURITY_EVAL: 2,
};
exports.SCHEDULE_JOB_STATUS = {
    ACTIVE: 1,
    ARCHIVED: 2,
    COMPLETED: 3,
};
exports.SCHEDULE_JOB_TIMEZONE_ABBR_TO_IANA = [
    { abbr: 'PST', iana: 'America/Los_Angeles' },
    { abbr: 'MST', iana: 'America/Denver' },
    { abbr: 'CST', iana: 'America/Chicago' },
    { abbr: 'EST', iana: 'America/New_York' },
    { abbr: 'BRT', iana: 'America/Sao_Paulo' },
    { abbr: 'GMT/UTC', iana: 'UTC' },
    { abbr: 'CET', iana: 'Europe/Paris' },
    { abbr: 'EET', iana: 'Europe/Athens' },
    { abbr: 'MSK', iana: 'Europe/Moscow' },
    { abbr: 'IST', iana: 'Asia/Kolkata' },
    { abbr: 'ICT', iana: 'Asia/Bangkok' },
    { abbr: 'CST', iana: 'Asia/Shanghai' },
    { abbr: 'SGT', iana: 'Asia/Singapore' },
    { abbr: 'JST', iana: 'Asia/Tokyo' },
    { abbr: 'AEST', iana: 'Australia/Sydney' },
    { abbr: 'NZST', iana: 'Pacific/Auckland' },
];
function resolveScheduleJobIanaTimeZone(tz) {
    if (!tz) {
        return 'UTC';
    }
    const mapped = exports.SCHEDULE_JOB_TIMEZONE_ABBR_TO_IANA.find((t) => t.abbr === tz)?.iana;
    if (mapped) {
        return mapped;
    }
    if (tz.includes('/')) {
        return tz;
    }
    return 'UTC';
}
// Provider Types
exports.PROVIDER_TYPE = {
    TTS: 'tts', // Text-to-Speech
    STT: 'stt', // Speech-to-Text
    MAIN_EVAL_MODEL: 'main_eval_model', // Main Evaluation Model
    AUDIO_EVAL_MODEL: 'audio_eval_model', // Audio Evaluation Model
    AUDIO_GENERATION_MODEL: 'audio_generation_model', // Audio Generation Model
    HALLUCINATION_MODEL: 'hallucination_model', // Hallucination Detection Model
    VISUAL_EVAL_MODEL: 'visual_eval_model', // Visual Evaluation Model
    PROMPT_INJECTION: 'prompt_injection', // Prompt Injection Guardrail
    CONTENT_SAFETY: 'content_safety', // Content Safety Guardrail
    PHONE_PROVIDER: 'phone_provider', // Phone Provider
    EMBEDDING_MODEL: 'embedding_model', // Embedding Model
};
// TTS Provider Names
exports.TTS_PROVIDER = {
    ELEVENLABS: 'elevenlabs',
    AZURE_SPEECH: 'azure-speech',
};
// STT Provider Names
exports.STT_PROVIDER = {
    DEEPGRAM: 'deepgram',
    AZURE_SPEECH: 'azure-speech',
};
exports.CHANNEL_TYPE = {
    EMAIL: 1,
    WEBHOOK: 2,
};
// Voice Field Output Formats
exports.VOICE_OUTPUT_FORMAT = {
    MP3: 'mp3',
    WAV: 'wav',
    OPUS: 'opus',
};
// Voice Field Output Format Options
exports.VOICE_OUTPUT_FORMAT_OPTIONS = [
    { label: 'MP3', value: exports.VOICE_OUTPUT_FORMAT.MP3 },
    { label: 'WAV', value: exports.VOICE_OUTPUT_FORMAT.WAV },
    { label: 'Opus (.webm/.ogg)', value: exports.VOICE_OUTPUT_FORMAT.OPUS },
];
// Sample Rates supported by ElevenLabs and Azure TTS
exports.VOICE_SAMPLE_RATE = {
    // ElevenLabs supported sample rates
    ELEVENLABS_22050: '22050',
    ELEVENLABS_44100: '44100',
    ELEVENLABS_48000: '48000',
    // Azure TTS supported sample rates
    AZURE_16000: '16000',
    AZURE_24000: '24000',
    AZURE_48000: '48000',
};
// Voice Field Sample Rate Options (common to both providers)
exports.VOICE_SAMPLE_RATE_OPTIONS = [
    { label: '16 kHz', value: exports.VOICE_SAMPLE_RATE.AZURE_16000 },
    { label: '22.05 kHz', value: exports.VOICE_SAMPLE_RATE.ELEVENLABS_22050 },
    { label: '24 kHz', value: exports.VOICE_SAMPLE_RATE.AZURE_24000 },
    { label: '44.1 kHz', value: exports.VOICE_SAMPLE_RATE.ELEVENLABS_44100 },
    { label: '48 kHz', value: exports.VOICE_SAMPLE_RATE.ELEVENLABS_48000 },
];
exports.SUPER_ADMINS = ['auth0|68d0fec33dd218e6b8dabff5', 'auth0|685bc2c37c7d899720efbbb0', 'google-oauth2|114509132102266429342'];
exports.GAURD_RAIL_TYPE = {
    INPUT: 1,
    OUTPUT: 2,
};
exports.ARGUS_DOMAIN = {
    TRU_PULSE: 'trupulse',
    TRU_EVAL: 'trueval',
    TRU_SCOUT: 'truscout',
    TRU_GUARD: 'truguard',
};
//# sourceMappingURL=constants.js.map