@forumlayer/sdk
v0.1.0
Published
Transport-neutral client primitives for the ForumLayer API
Maintainers
Readme
@forumlayer/sdk
Transport-neutral client primitives for ForumLayer. The package builds and validates requests,
parses canonical response.v2 envelopes, and derives retry decisions from the contracts error
policy.
It does not implement HTTP, credential storage, logging, persistence, timers, billing, or policy decisions. Callers provide a transport and keep credentials outside the SDK.
import { buildRequest } from '@forumlayer/sdk';
const request = buildRequest({
method: 'GET',
path: '/v1/packs/pk_example',
});
if (!request.ok) throw new Error(request.failure.reason);Crossing a trust boundary always requires runtime validation. TypeScript types alone are not an input-validation boundary.
License
Research use only under LicenseRef-ForumLayer-Research-Only-1.0; see LICENSE in this package.
Commercial use, production deployment, and customer-facing services are not permitted.
