UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

22 lines (19 loc) 860 B
import { createStixIdValidator, stixIdentifierSchema } from "./chunk-E3OY6DRE.js"; // src/schemas/common/property-schemas/stix-attribution.ts import { z } from "zod/v4"; var objectMarkingRefsSchema = z.array( stixIdentifierSchema.startsWith( "marking-definition--", 'Identifier must start with "marking-definition--"' ) ).meta({ description: "The list of marking-definition objects to be applied to this object." }); var stixCreatedByRefSchema = createStixIdValidator("identity").meta({ description: "The created_by_ref property specifies the id property of the identity object that describes the entity that created this object. If this attribute is omitted, the source of this information is undefined. This may be used by object creators who wish to remain anonymous." }); export { objectMarkingRefsSchema, stixCreatedByRefSchema };