@weatherboard/communications-contract
v0.1.0
Published
Versioned contracts and validators for the Weatherboard communications service.
Readme
@weatherboard/communications-contract
Versioned types and validators for the Studio-hosted communications service. This package has no runtime dependencies and ships ESM JavaScript with TypeScript declarations. It does not send mail, store contacts, or hold service credentials.
import { SCHEMA_VERSION, parseTenantRef } from "@weatherboard/communications-contract";
const result = parseTenantRef({
schemaVersion: SCHEMA_VERSION,
projectId: "prj_15d7e8f9",
customerId: "tnt_7e57c4a2",
});
if (!result.ok) throw new Error("Invalid tenant reference");Public entry points:
@weatherboard/communications-contract: contracts and validators.@weatherboard/communications-contract/inbound: inbound validation and adapter types.@weatherboard/communications-contract/outbound: outbound validation and adapter types.@weatherboard/communications-contract/delivery: delivery validation and adapter types.@weatherboard/communications-contract/contacts: contact and authority validation and resolver types.inbound/correlation,outbound/receipt, anddelivery/state: correlation, receipt, and delivery state helpers under the package prefix.
For maintainers, pnpm build emits dist/; pnpm smoke exercises a packed
artifact in an isolated consumer without registry access. Workspace imports
resolve source directly. Use pnpm pack to apply the published dist/ export
map, as required by the repository publishing runbook. Provenance is omitted,
matching the other packages published from this private repository.
