UNPKG

@mdf.js/openc2-core

Version:

MMS - API Core - OpenC2

97 lines 3.22 kB
"use strict"; /** * 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.commandContent = void 0; exports.commandContent = { $schema: 'http://json-schema.org/draft-07/schema#', $id: 'control.message.content.command.schema.json', title: 'Command and control command schema', type: 'object', properties: { action: { title: 'Action', description: 'The task or activity to be performed', type: 'string', enum: [ 'scan', 'locate', 'query', 'deny', 'contain', 'allow', 'start', 'stop', 'restart', 'cancel', 'set', 'update', 'redirect', 'create', 'delete', 'detonate', 'restore', 'copy', 'investigate', 'remediate', ], }, target: { $ref: 'control.message.command.target.schema.json#' }, args: { title: 'OpenC2 Args', type: 'object', properties: { start_time: { title: 'The specific date/time to initiate the Action (milliseconds since the epoch)', type: 'integer', minimum: 0, }, stop_time: { title: 'The specific date/time to terminate the Action (milliseconds since the epoch)', type: 'integer', minimum: 0, }, duration: { title: 'The length of time for an Action to be in effect (milliseconds)', type: 'integer', minimum: 0, }, response_requested: { title: 'The type of Response required for the Action', $comment: 'Could use oneOf with const instead of enum to have titles on each item (see example)', type: 'string', enum: ['none', 'ack', 'status', 'complete'], }, }, patternProperties: { '^x-[A-Za-z0-9_]*$': { type: 'object', }, }, minProperties: 1, additionalProperties: false, }, actuator: { title: 'Actuator', type: 'object', patternProperties: { '^x-[A-Za-z0-9_]*$': { type: 'object', }, }, minProperties: 1, additionalProperties: false, }, command_id: { title: 'Command Identifier', type: 'string', }, }, required: ['action', 'target'], additionalProperties: false, }; //# sourceMappingURL=contentCommand.schema.js.map