6822cb01ea
Mirrors the Keysat migration 0014 server-side change. The product
object on listPublicPolicies() now includes entitlementsCatalog —
the closed list of {slug, name, description} the operator declared
on the product. SDK consumers' in-app tier pickers can render the
human-readable name ("AI summaries") with the description as a
tooltip instead of the raw slug ("ai_summaries").
New exports:
- EntitlementDef type
- PublicPoliciesResponse.product.entitlementsCatalog: EntitlementDef[]
Empty array on legacy products that don't have a catalog yet —
SDK consumers fall back to rendering the raw policy.entitlements
slugs directly. No breaking change to existing consumers.
Bumps to 0.3.0 minor since the surface is purely additive.
15/15 crosscheck tests still pass.
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@keysat/licensing-client",
|
|
"version": "0.3.0",
|
|
"description": "Client library for Keysat. Verifies signed license keys offline and wraps the HTTP API for purchase and revocation checks.",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"files": ["dist", "README.md", "LICENSE"],
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
"test": "vitest run",
|
|
"prepare": "npm run build",
|
|
"prepublishOnly": "npm run build && npm test"
|
|
},
|
|
"keywords": [
|
|
"bitcoin",
|
|
"licensing",
|
|
"btcpay",
|
|
"start9",
|
|
"ed25519"
|
|
],
|
|
"repository": "https://github.com/keysat-xyz/keysat-client-ts",
|
|
"license": "MIT",
|
|
"engines": { "node": ">=18" },
|
|
"dependencies": {
|
|
"@noble/ed25519": "^2.0.0",
|
|
"@noble/hashes": "^1.3.3"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.3.0",
|
|
"tsup": "^8.0.0",
|
|
"vitest": "^1.0.0"
|
|
}
|
|
}
|