{"id":"@lssm-tech/lib.crypto-payments-spec","slug":"lib.crypto-payments-spec","name":"@lssm-tech/lib.crypto-payments-spec","version":"2.0.4","path":"packages/domains/billing/crypto-payments-spec","manifestPath":"packages/domains/billing/crypto-payments-spec/package.json","manifestBlobSha":"909050d7ab4a81b94e7701ab7ef0741e94bcaf74","layer":"domains","physicalArea":"billing","primaryArea":"billing-and-finance","classification":{"privateDeclared":null,"catalogFamily":"contracts","catalogKind":"library","catalogStatus":"active","adoptionMode":"adoptable","stability":"experimental"},"description":"Provider-neutral crypto wallet governance and HTTP-native agent payment protocol contracts.","descriptionOrigin":"package.json","catalog":{"family":"contracts","kind":"library","status":"active","adoptionMode":"adoptable","stability":"experimental","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./fixtures","./types","./validation","./validation-boundaries","./validation-evidence","./validation-rules","./validation-shared"],"documentation":[{"title":"Lib Crypto Payments Spec documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.crypto-payments-spec","kind":"readme"}],"examples":[],"replacements":[],"capabilities":[{"id":"package.lssm.tech.lib.crypto.payments.spec","title":"Lib Crypto Payments Spec","description":"Provider-neutral crypto wallet governance and HTTP-native agent payment protocol contracts.","status":"active","useCases":["Adopt provider-neutral crypto wallet governance and http-native agent payment protocol contracts"],"aliases":["lib","crypto","payments","spec"],"pythonEquivalents":[],"canonicalImports":[{"from":"@lssm-tech/lib.crypto-payments-spec","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/fixtures","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/types","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/validation","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/validation-boundaries","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/validation-evidence","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/validation-rules","symbols":[]},{"from":"@lssm-tech/lib.crypto-payments-spec/validation-shared","symbols":[]}],"constraints":{"platforms":["server"],"runtimes":["node"],"avoidWhen":["The @lssm-tech/lib.crypto-payments-spec package constraints do not match the target runtime or platform."],"requires":["TypeScript"]},"alternatives":[],"relationships":[],"resolutionPriority":50}]},"canonicalImports":[{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/fixtures","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/types","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/validation","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/validation-boundaries","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/validation-evidence","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/validation-rules","symbols":[]},{"capabilityId":"package.lssm.tech.lib.crypto.payments.spec","from":"@lssm-tech/lib.crypto-payments-spec/validation-shared","symbols":[]}],"scripts":{"publish:pkg":"bun publish --tolerate-republish --ignore-scripts --verbose","publish:pkg:canary":"bun publish:pkg --tag canary","build":"contractspec-bun-build build","build:bundle":"contractspec-bun-build transpile","build:types":"contractspec-bun-build types","dev":"contractspec-bun-build dev","clean":"rimraf dist .turbo","lint":"bun lint:fix","lint:fix":"node ../../../../scripts/biome.cjs check --write .","lint:check":"node ../../../../scripts/biome.cjs check .","test":"bun test","prebuild":"contractspec-bun-build prebuild","typecheck":"tsgo --noEmit"},"scriptStatus":"complete pinned manifest","dependencies":{"zod":"catalog:"},"devDependencies":{"@lssm-tech/tool.bun":"workspace:*","@lssm-tech/tool.typescript":"workspace:*","typescript":"catalog:"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./fixtures":"./src/fixtures.ts","./types":"./src/types.ts","./validation":"./src/validation.ts","./validation-boundaries":"./src/validation-boundaries.ts","./validation-evidence":"./src/validation-evidence.ts","./validation-rules":"./src/validation-rules.ts","./validation-shared":"./src/validation-shared.ts"},"publishExports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"},"./fixtures":{"types":"./dist/fixtures.d.ts","browser":"./dist/browser/fixtures.js","bun":"./dist/fixtures.js","node":"./dist/node/fixtures.js","default":"./dist/fixtures.js"},"./types":{"types":"./dist/types.d.ts","browser":"./dist/browser/types.js","bun":"./dist/types.js","node":"./dist/node/types.js","default":"./dist/types.js"},"./validation":{"types":"./dist/validation.d.ts","browser":"./dist/browser/validation.js","bun":"./dist/validation.js","node":"./dist/node/validation.js","default":"./dist/validation.js"},"./validation-boundaries":{"types":"./dist/validation-boundaries.d.ts","browser":"./dist/browser/validation-boundaries.js","bun":"./dist/validation-boundaries.js","node":"./dist/node/validation-boundaries.js","default":"./dist/validation-boundaries.js"},"./validation-evidence":{"types":"./dist/validation-evidence.d.ts","browser":"./dist/browser/validation-evidence.js","bun":"./dist/validation-evidence.js","node":"./dist/node/validation-evidence.js","default":"./dist/validation-evidence.js"},"./validation-rules":{"types":"./dist/validation-rules.d.ts","browser":"./dist/browser/validation-rules.js","bun":"./dist/validation-rules.js","node":"./dist/node/validation-rules.js","default":"./dist/validation-rules.js"},"./validation-shared":{"types":"./dist/validation-shared.d.ts","browser":"./dist/browser/validation-shared.js","bun":"./dist/validation-shared.js","node":"./dist/node/validation-shared.js","default":"./dist/validation-shared.js"}},"types":"./dist/index.d.ts","files":["dist","README.md"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/lib.crypto-payments-spec","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./fixtures","importPath":"@lssm-tech/lib.crypto-payments-spec/fixtures","target":"./src/fixtures.ts","targets":[{"conditions":[],"target":"./src/fixtures.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/fixtures.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/fixtures.ts","sourceStatus":"verified source file"}]},{"subpath":"./types","importPath":"@lssm-tech/lib.crypto-payments-spec/types","target":"./src/types.ts","targets":[{"conditions":[],"target":"./src/types.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/types.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/types.ts","sourceStatus":"verified source file"}]},{"subpath":"./validation","importPath":"@lssm-tech/lib.crypto-payments-spec/validation","target":"./src/validation.ts","targets":[{"conditions":[],"target":"./src/validation.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/validation.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/validation.ts","sourceStatus":"verified source file"}]},{"subpath":"./validation-boundaries","importPath":"@lssm-tech/lib.crypto-payments-spec/validation-boundaries","target":"./src/validation-boundaries.ts","targets":[{"conditions":[],"target":"./src/validation-boundaries.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/validation-boundaries.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/validation-boundaries.ts","sourceStatus":"verified source file"}]},{"subpath":"./validation-evidence","importPath":"@lssm-tech/lib.crypto-payments-spec/validation-evidence","target":"./src/validation-evidence.ts","targets":[{"conditions":[],"target":"./src/validation-evidence.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/validation-evidence.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/validation-evidence.ts","sourceStatus":"verified source file"}]},{"subpath":"./validation-rules","importPath":"@lssm-tech/lib.crypto-payments-spec/validation-rules","target":"./src/validation-rules.ts","targets":[{"conditions":[],"target":"./src/validation-rules.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/validation-rules.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/validation-rules.ts","sourceStatus":"verified source file"}]},{"subpath":"./validation-shared","importPath":"@lssm-tech/lib.crypto-payments-spec/validation-shared","target":"./src/validation-shared.ts","targets":[{"conditions":[],"target":"./src/validation-shared.ts","sourcePath":"packages/domains/billing/crypto-payments-spec/src/validation-shared.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/src/validation-shared.ts","sourceStatus":"verified source file"}]}],"entryCount":8,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Lib Crypto Payments Spec documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.crypto-payments-spec","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.crypto-payments-spec.txt"},"readme":{"status":"available","body":"# `@lssm-tech/lib.crypto-payments-spec`\n\nProvider-neutral contracts for crypto wallet governance and HTTP-native agent/API payment protocol evidence.\n\nThis package closes the first canonical ContractSpec slice for wallet-governed agent payments. It defines reviewable contracts for wallet policies, HTTP payment challenges, agent payment authorizations, settlement evidence refs, failure/idempotency semantics, and CompanyOS/finance-ops/assurance approval composition. It does not sign, custody, broadcast, settle, or call provider SDKs.\n\n## Scope\n\nUse this package to model:\n\n- wallet refs, custody modes, signer-policy refs, chain/network refs, asset refs, spend limits, allowlists, revocation, and rotation;\n- HTTP `402 Payment Required` and x402-style payment challenge metadata;\n- agent payment authorizations that require CompanyOS authority, finance-ops spend policy/approval, and assurance evidence;\n- settlement, failure, refund, dispute, replay, and audit evidence refs;\n- x420 as an opaque placeholder/variant reference only until primary-source semantics are reviewed.\n\n## Boundary\n\nBillingOS owns quote-to-cash artifacts such as quotes, orders, invoices, payments, refunds, write-offs, and reconciliation. Crypto payments may reference those artifacts but must not redefine or execute them. Provider-payment integrations own concrete SDK/runtime execution and must depend on this contract surface rather than inventing their own policy envelope.\n\nThis package never stores private keys, seed phrases, API keys, bearer tokens, webhook secrets, provider secrets, raw signatures, or executable transfer instructions.\n\n## Public entrypoints\n\n- `@lssm-tech/lib.crypto-payments-spec` — root barrel\n- `@lssm-tech/lib.crypto-payments-spec/types` — contract schemas and types\n- `@lssm-tech/lib.crypto-payments-spec/validation` — semantic validation helpers\n- `@lssm-tech/lib.crypto-payments-spec/fixtures` — safe synthetic fixtures\n\n## Commands\n\n- `bun run test`\n- `bun run typecheck`\n- `bun run lint:check`\n- `bun run build`\n","sourcePath":"packages/domains/billing/crypto-payments-spec/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/billing/crypto-payments-spec/README.md","blobSha":"cf95b5980d60fab1f27ee38e4711858828a86875","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"billing-and-finance","areaTitle":"Billing, finance and economic evidence","displayName":"lib.crypto-payments-spec","runtimes":["node"],"platforms":["server"],"kind":"library","scope":"Package manifest","canonicalRoute":"/docs/packages/lib.crypto-payments-spec/","contextUrl":"/docs/packages/lib.crypto-payments-spec.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}