UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

34 lines (31 loc) 1.56 kB
import { z } from 'zod/v4'; import { StixTypesWithAttackIds } from './attack-id.js'; import './stix-type.js'; declare const externalReferenceSchema: z.ZodObject<{ source_name: z.ZodString; description: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodURL>; external_id: z.ZodOptional<z.ZodString>; }, z.core.$strip>; declare const externalReferencesSchema: z.ZodArray<z.ZodObject<{ source_name: z.ZodString; description: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodURL>; external_id: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; declare const createAttackExternalReferencesSchema: (stixType: StixTypesWithAttackIds) => z.ZodArray<z.ZodObject<{ source_name: z.ZodString; description: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodURL>; external_id: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; type ExternalReference = z.infer<typeof externalReferenceSchema>; type ExternalReferences = z.infer<typeof externalReferencesSchema>; declare const stixCreatedByRefSchema: z.ZodString; type StixCreatedByRef = z.infer<typeof stixCreatedByRefSchema>; declare const granularMarkingSchema: z.ZodObject<{ marking_ref: z.ZodString; selectors: z.ZodArray<z.ZodString>; }, z.core.$strip>; type GranularMarking = z.infer<typeof granularMarkingSchema>; export { type ExternalReference, type ExternalReferences, type GranularMarking, type StixCreatedByRef, createAttackExternalReferencesSchema, externalReferenceSchema, externalReferencesSchema, granularMarkingSchema, stixCreatedByRefSchema };