This interface is not intended to be public API. This interface may be affected by breaking changes without notice.

See the public exported constants, like Spec.Spec1dot4, that provide objects implementing this interface. See also Spec.SpecVersionDict for implementations.

interface _SpecProtocol {
    requiresComponentVersion: boolean;
    supportsComponentEvidence: boolean;
    supportsComponentType: ((ct) => boolean);
    supportsDependencyGraph: boolean;
    supportsExternalReferenceHashes: boolean;
    supportsExternalReferenceType: ((ert) => boolean);
    supportsFormat: ((f) => boolean);
    supportsHashAlgorithm: ((ha) => boolean);
    supportsHashValue: ((hv) => boolean);
    supportsLicenseAcknowledgement: boolean;
    supportsMetadataLicenses: boolean;
    supportsMetadataLifecycles: boolean;
    supportsMetadataProperties: boolean;
    supportsProperties: ((model) => boolean);
    supportsToolReferences: boolean;
    supportsVulnerabilities: boolean;
    supportsVulnerabilityRatingMethod: ((rm) => boolean);
    version: Version;
}

Properties

requiresComponentVersion: boolean
supportsComponentEvidence: boolean
supportsComponentType: ((ct) => boolean)

Type declaration

    • (ct): boolean
    • Parameters

      • ct: any

      Returns boolean

supportsDependencyGraph: boolean
supportsExternalReferenceHashes: boolean
supportsExternalReferenceType: ((ert) => boolean)

Type declaration

    • (ert): boolean
    • Parameters

      • ert: any

      Returns boolean

supportsFormat: ((f) => boolean)

Type declaration

    • (f): boolean
    • Parameters

      • f: any

      Returns boolean

supportsHashAlgorithm: ((ha) => boolean)

Type declaration

    • (ha): boolean
    • Parameters

      • ha: any

      Returns boolean

supportsHashValue: ((hv) => boolean)

Type declaration

    • (hv): boolean
    • Parameters

      • hv: any

      Returns boolean

supportsLicenseAcknowledgement: boolean
supportsMetadataLicenses: boolean
supportsMetadataLifecycles: boolean
supportsMetadataProperties: boolean
supportsProperties: ((model) => boolean)

Type declaration

    • (model): boolean
    • Parameters

      • model: any

      Returns boolean

supportsToolReferences: boolean
supportsVulnerabilities: boolean
supportsVulnerabilityRatingMethod: ((rm) => boolean)

Type declaration

    • (rm): boolean
    • Parameters

      • rm: any

      Returns boolean

version: Version