@mitre-attack/attack-data-model
Version:
A TypeScript API for the MITRE ATT&CK data model
11 lines (7 loc) • 536 B
TypeScript
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 & z.ZodType<`${T}--${string}`, string, z.core.$ZodTypeInternals<`${T}--${string}`, string>>;
type TypeSpecificStixIdentifier<T extends StixType> = `${T}--${string}`;
export { type StixIdentifier, type TypeSpecificStixIdentifier, createStixIdValidator, stixIdentifierSchema };