logical.Catalogtypeno test imports ittype Catalog = { readonly catalog: { readonly groups?: readonly Group[]; readonly controls?: readonly Control[] } };The part of an OSCAL document this conversion reads.
The conversion of a NIST OSCAL catalog into frameworks (0002-sp800-package FR-001, FR-004): a pure function of the catalog. For SP 800-53 and SP 800-171 the controls are the requirements that are not withdrawn, with their statement as NIST wrote it and the group (the family) as the family; the assessment objectives (SP 800-53A, SP 800-171A) are a framework of their own whose controls are the objectives that have no objective below them, so that evidence can be tied to what an assessor determines. A parameter that the text inserts is written as its label in brackets, as the printed publications do.
import { convertCatalog } from "./convert.ts";
convertCatalog({ catalog: { groups: [] } }, "800-53").requirements; // []logical.Catalogtypeno test imports ittype Catalog = { readonly catalog: { readonly groups?: readonly Group[]; readonly controls?: readonly Control[] } };The part of an OSCAL document this conversion reads.
logical.OutControltypeno test imports ittype OutControl = { readonly id: string; readonly title: string; readonly statement: string; readonly family: string };A control of a converted framework.
logical.Convertedtypeno test imports ittype Converted = { readonly requirements: readonly OutControl[]; readonly objectives: readonly OutControl[] };What a catalog gives: the requirements and the assessment objectives.
logical.convertCatalogfunctionno test imports itfunction convertCatalog(doc: Catalog, kind: "800-171" | "800-53"): ConvertedThe requirements and objectives of a catalog; kind says which publication it is (they label their controls differently).
Catalogtypetype Catalog = { readonly catalog: { readonly groups?: readonly Group[]; readonly controls?: readonly Control[] } };The part of an OSCAL document this conversion reads.
OutControltypeno test imports ittype OutControl = { readonly id: string; readonly title: string; readonly statement: string; readonly family: string };A control of a converted framework.
Convertedtypeno test imports ittype Converted = { readonly requirements: readonly OutControl[]; readonly objectives: readonly OutControl[] };What a catalog gives: the requirements and the assessment objectives.
convertCatalogfunctionfunction convertCatalog(doc: Catalog, kind: "800-171" | "800-53"): ConvertedThe requirements and objectives of a catalog; kind says which publication it is (they label their controls differently).