UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

23 lines (20 loc) 696 B
import { z } from 'zod'; /** * Schema for validating object deprecation status (`x_mitre_deprecated`). * * A boolean flag indicating whether an ATT&CK object has been deprecated and should * no longer be used in new analyses or implementations. * * @example * ```typescript * xMitreDeprecatedSchema.parse(true); // Valid * xMitreDeprecatedSchema.parse(false); // Valid * xMitreDeprecatedSchema.parse("true"); // Invalid - must be boolean * ``` */ declare const xMitreDeprecatedSchema: z.ZodBoolean; /** * Type representing an object's deprecation status. */ type XMitreDeprecated = z.infer<typeof xMitreDeprecatedSchema>; export { type XMitreDeprecated, xMitreDeprecatedSchema };