UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

44 lines (41 loc) 1.89 kB
import { DataSourceRegistration } from './data-sources/data-source-registration.js'; import { k as AttackDataModel } from './index-C7VGGEjA.js'; import './schemas/common/common-properties.js'; import 'zod/v4'; import './schemas/common/stix-identifier.js'; import './schemas/common/stix-type.js'; import './schemas/sro/relationship.schema.js'; import './schemas/sdo/stix-bundle.schema.js'; import './schemas/sdo/malware.schema.js'; import './schemas/sdo/asset.schema.js'; import './schemas/sdo/campaign.schema.js'; import './schemas/sdo/data-component.schema.js'; import './schemas/sdo/log-source.schema.js'; import './schemas/sdo/data-source.schema.js'; import './schemas/sdo/identity.schema.js'; import './schemas/sdo/matrix.schema.js'; import './schemas/sdo/tool.schema.js'; import './schemas/sdo/tactic.schema.js'; import './schemas/sdo/technique.schema.js'; import './schemas/sdo/group.schema.js'; import './schemas/sdo/mitigation.schema.js'; import './schemas/sdo/collection.schema.js'; import './schemas/sdo/detection-strategy.schema.js'; import './schemas/sdo/analytic.schema.js'; import './schemas/smo/marking-definition.schema.js'; /** * Registers a new data source by fetching and caching ATT&CK data based on the provided options. * Generates a unique ID for each registered data source. * * @param registration - A DataSourceRegistration object containing the source, domain, version, etc. * @returns The unique ID of the registered data source. */ declare function registerDataSource(registration: DataSourceRegistration): Promise<string>; /** * Returns the data model of the registered data source, given the data source's unique ID. * * @param id - The unique ID of the data model to retrieve. * @returns The corresponding AttackDataModel instance. */ declare function loadDataModel(id: string): AttackDataModel; export { loadDataModel, registerDataSource };