standardSerializersfunctionfunction standardSerializers(): SerializersThe serializers this library ships, registered.
The registries of the extensions this library ships: the root, which is the one place that knows every unit by name. standardSerializers and standardSigners register what has no need of the host; standardRunners registers a runner for each piece the host gives (a connection, a reader, a client, a remote), so that a host without a database has no sql runner and says so.
import { standardSerializers } from "./standard.ts";
standardSerializers().list().map((s) => s.id); // ["cyclonedx", "intoto", "ocsf", "oscal", "sarif"]standardSerializersfunctionfunction standardSerializers(): SerializersThe serializers this library ships, registered.
standardSignersfunctionfunction standardSigners(): SignersThe signers this library ships, registered.
RunnerHosttypeno test imports ittype RunnerHost = {
readonly sql?: SqlConnection;
readonly file?: FileReader;
readonly api?: ApiClient;
readonly remote?: Remote;
/** The attestations that exist and the evidence policy: the `manual` runner. */
readonly manual?: { readonly attestations: () => readonly Attestation[]; readonly policy: EvidencePolicy };
readonly evaluators?: Evaluators;
};What a host gives: each piece is optional, and a runner is registered for each that is given.
standardRunnersfunctionfunction standardRunners(host: RunnerHost): RunnersThe runners for what the host gives.