@mitre-attack/attack-data-model
Version:
A TypeScript API for the MITRE ATT&CK data model
38 lines (36 loc) • 1.73 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/schemas/common/stix-spec-version.ts
var stix_spec_version_exports = {};
__export(stix_spec_version_exports, {
stixSpecVersionSchema: () => stixSpecVersionSchema
});
module.exports = __toCommonJS(stix_spec_version_exports);
var import_v4 = require("zod/v4");
var specVersionDescription = [
"The version of the STIX specification used to represent this object.",
"The value of this property MUST be 2.1 for STIX Objects defined according to this specification.",
"If objects are found where this property is not present, the implicit value for all STIX Objects other than SCOs is 2.0.",
"Since SCOs are now top-level objects in STIX 2.1, the default value for SCOs is 2.1."
].join(" ");
var stixSpecVersionSchema = import_v4.z.enum(["2.0", "2.1"]).meta({ description: specVersionDescription });
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
stixSpecVersionSchema
});