"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthType=exports.configType=exports.defaultConfig=exports.logLevelType=exports.compabilityLogLevel=exports.types=void 0;const _=e(require("path")),t=e(require("os")),r=require("../common/Constants");!function(e){e.REGISTRY="registry",e.PUBLISH_ID="publish_id",e.CACHE="cache",e.KEY_PATH="key_path",e.NO_PROXY="no_proxy",e.HTTP_PROXY="http_proxy",e.HTTPS_PROXY="https_proxy",e.STRICT_SSL="strict_ssl",e.LOG_LEVEL="log_level",e.PUBLISH_REGISTRY="publish_registry",e.CA_FILES="ca_files",e.FETCH_TIMEOUT="fetch_timeout",e.LOCAL_PREFIX="prefix",e.MAX_CONCURRENT="max_concurrent",e.RETRY_TIMES="retry_times",e.RETRY_INTERVAL="retry_interval",e.RESOLVE_CONFLICT="resolve_conflict",e.ENFORCE_DEPENDENCY_KEY="enforce_dependency_key",e.ENSURE_DEPENDENCY_INCLUDE="ensure_dependency_include",e.INSTALL_ALL="install_all",e.DISALLOW_NESTED_PACKAGE="disallow_nested_package",e.ODM_R2_PROJECT_ROOT="odm_r2_project_root",e.ENABLE_CROSS_PROCESS_LOCK="enable_cross_process_lock",e.COMPABILITY_LOG_LEVEL="compability_log_level",e.USE_STREAM_THRESHOLD_SIZE="use_stream_threshold_size"}(exports.types||(exports.types={})),exports.compabilityLogLevel=["error","warn","info","close"],exports.logLevelType=["error","warn","info","debug"],exports.defaultConfig={registry:"",publish_id:"",cache:_.default.join(t.default.homedir(),r.Constants.PmDir,"cache"),key_path:"",no_proxy:"",http_proxy:"",https_proxy:"",strict_ssl:!0,log_level:"info",publish_registry:"",ca_files:"",fetch_timeout:6e4,max_concurrent:50,retry_times:1,retry_interval:1e3,max_auth:3,resolve_conflict:!0,enforce_dependency_key:!1,ensure_dependency_include:!1,install_all:!0,disallow_nested_package:!1,odm_r2_project_root:!1,enable_cross_process_lock:!0,compability_log_level:"warn",use_stream_threshold_size:5},function(e){e.CLI="cli",e.CWD="cwd",e.PROJECT="project",e.USER="user",e.DEFAULT="default"}(exports.configType||(exports.configType={})),function(e){e.READ=":_read_auth",e.READ_WRITE=":_auth"}(exports.AuthType||(exports.AuthType={}));