UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

11 lines (7 loc) 444 B
import { z } from 'zod/v4'; import { StixType } from './stix-type.js'; type StixIdentifier = `${StixType}--${string}`; declare const stixIdentifierSchema: z.ZodString; declare function createStixIdValidator<T extends StixType>(expectedType: T): z.ZodString; type TypeSpecificStixIdentifier<T extends StixType> = `${T}--${string}`; export { type StixIdentifier, type TypeSpecificStixIdentifier, createStixIdValidator, stixIdentifierSchema };