@pincerclaw/shared-types
v0.1.0
Published
Shared auth helpers and adapter manifest validation utilities for Pincer.
Readme
@pincerclaw/shared-types
Shared auth helpers and adapter manifest validation utilities for Pincer.
Exports
@pincerclaw/shared-types- Runtime signing helpers (
sha256Hex,hmacSha256Hex,verifySignedRequest, etc.) - Manifest validation and input schema checks (
validateAdapterManifest,validateInputWithSchema)
- Runtime signing helpers (
Usage
import { validateAdapterManifest } from "@pincerclaw/shared-types";
const result = validateAdapterManifest(rawManifest);
if (result.ok === false) {
console.error(result.errors);
}