@opentrade-registry/registry
v1.0.1
Published
Programmatic sync and verification orchestration for OpenTrade Registry.
Maintainers
Readme
@opentrade-registry/registry
Programmatic orchestration for OpenTrade Registry adapters.
import { OpenTradeRegistry } from "@opentrade-registry/registry";
import { floridaDbprConstructionAdapter } from "@opentrade-registry/adapter-fl-dbpr";
const registry = new OpenTradeRegistry([floridaDbprConstructionAdapter]);
const result = await registry.verify({
sourceId: "us.fl.dbpr.construction",
licenseNumber: "CGC1234567",
input: { mode: "file", filePath: "licenses.csv" },
});File and cache access are local by default. Network access requires mode: "network" and allowNetwork: true; downloads enforce HTTPS, declared official hosts, redirect limits, timeouts, byte limits, cancellation, and SHA-256 provenance.
Unsupported and blocked sources return structured results. A not_found result means only that no matching record appeared in the checked source or cache at the checked time.
