@mdf.js/openc2-core
Version:
MMS - API Core - OpenC2
31 lines • 1.29 kB
JavaScript
;
/**
* Copyright 2024 Mytra Control S.L. All rights reserved.
*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
* or at https://opensource.org/licenses/MIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Constants = void 0;
class Constants {
}
exports.Constants = Constants;
/** Supported OpenC2 versions */
Constants.SUPPORTED_VERSIONS = ['1.0'];
/** Number of concurrent commands */
Constants.DEFAULT_RATE_LIMIT = 5;
/** Maximum delay allowed for a command response */
Constants.DEFAULT_MAX_RESPONSE_COMMAND_DELAY = 30000;
/** Maximum delay allowed for a command execution */
Constants.DEFAULT_MAX_INACTIVITY_TIME = 5;
/** Minimum delay allowed for a command execution */
Constants.DEFAULT_MIN_INACTIVITY_TIME = 1;
/** Maximum number of messages registered */
Constants.DEFAULT_MESSAGES_REGISTERS_LIMIT = 100;
/** Maximum aging time for backed entries */
Constants.DEFAULT_MAX_AGING_TIME_FOR_BACKED_ENTRIES = 10 * 60 * 1000;
/** Default check interval time for not executed commands */
Constants.DEFAULT_AGING_CHECK_INTERVAL = 60 * 1000;
/** Default content type for messages */
Constants.DEFAULT_CONTENT_TYPE = 'application/openc2+json;version=1.0';
//# sourceMappingURL=Constants.js.map