@boundbook/types
v0.1.0
Published
Shared TypeScript types and resolvers for the BoundBook platform — selective-disclosure schemas, owner-resolution helpers, and canonical enums consumed by @boundbook/sdk and the BoundBook API.
Downloads
189
Readme
@boundbook/types
Shared TypeScript types and resolvers for the BoundBook platform.
Consumed by @boundbook/sdk
and the BoundBook API. Most partner integrations will install
@boundbook/sdk, which pulls this package in transitively — direct
installs are useful when you want the types without the HTTP client.
Install
npm install @boundbook/typesWhat's in here
- Selective-disclosure schemas — disclosure-mask field lists, sub-proof shapes, bundle structure.
- Owner resolvers —
resolveCurrentOwner/resolvePreviousOwnerfor selective-disclosure entries, plus the underlyingResolvedOwnertype. - Value normalization —
normalizeDisclosedValuefor canonicalizing field strings before hashing. - Enum constants — the read-only catalog of audit actions, chain statuses, entry statuses, firearm types, FFL types, and other domain enums used across the SDK and API.
Zero runtime dependencies. Dual-format (ESM + CommonJS), fully typed.
License
UNLICENSED — all rights reserved.
