{"_id":"@aibtc/tx-schemas","_rev":"13-385ddc4f67593856ee4bf075e5cb69a9","name":"@aibtc/tx-schemas","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"@aibtc/tx-schemas","version":"0.1.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.1.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"d4a1cc972428dad3f553f9bf35f4307d30fe7706","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.1.0.tgz","fileCount":50,"integrity":"sha512-72pIdyazhXX7uLAX7A2DopCVNle6cyht2p8t6aUHeSaByRavzC0MIRwU5OpTiHv6jPQ7WdO+T5wMkJ+nzWR7+Q==","signatures":[{"sig":"MEUCIHG7g67gtqfQibPT5tvp+yjOon8VRaLmieL95jsIHnktAiEApwhaL+Ugc0Rzbu39X0Qvlyy2GjWaC2XVp2XomZMcB2c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":142341},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"}},"gitHead":"d2eae2d6c5038ae89e594ab14a32ac90581c15f4","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"aibtc-dev","email":"build@aibtc.com"},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.5.1","description":"Shared zod schemas for AIBTC transaction states, internal relay schemas, and external x402 payment schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.5.0","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.1.0_1775063443732_0.43585082676100884","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aibtc/tx-schemas","version":"0.2.1","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.2.1","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"d3e5a7dc4b4232559ff03bf1a1a52cee7e00b9df","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.2.1.tgz","fileCount":52,"integrity":"sha512-6qp+hQ+eQLSZaqiqR0bB3tuKS59gNHgRupD29IAhKYDxJy3oS0IPgfaDfeVrpOZ3H7M8KdI8RY+T7o2iSU1Vnw==","signatures":[{"sig":"MEUCIAr/c7gBTnbDDt0BUncsLMNOSD4IGlCZQd+N5aGWavOlAiEAyDWcdv/gbMAQeMeGgWmKZKq4u4FkW77IEd/hblqqH7A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":159643},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"}},"gitHead":"3750fd53b38780451547cd11569fc52fde1a5bf9","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, internal relay schemas, and external x402 payment schemas.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.2.1_1775155381207_0.5673305993198776","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@aibtc/tx-schemas","version":"0.2.2","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.2.2","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"4c8ab6076c23d94895056734197f83689f86031d","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.2.2.tgz","fileCount":52,"integrity":"sha512-a6Mly35vvuxqXFVM3lSH/6ewe1io33eMXfY9rFSZz+790TbOebYIrd1gEQI+JTvd1NmntbXEibBXg5Mnif8sjw==","signatures":[{"sig":"MEYCIQDFg42QiE2HrkMBHteowVir6tvSUVuN7V0TJtfrXE9GMQIhAKn9sLW4j8ZWuKU6X+TEao9Li21l4SYpBBxUvoUbhPlZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":160319},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"}},"gitHead":"9d8d6d8c85bae738957b77c673440fab74c9d0c6","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, internal relay schemas, and external x402 payment schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.2.2_1775161205393_0.042025938835721144","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aibtc/tx-schemas","version":"0.3.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.3.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"fec13aa23e88088a715d06894f9ab6b37dc7b089","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.3.0.tgz","fileCount":52,"integrity":"sha512-pXzW9TnmFR3uJMfajbUdAYiPKRkNlzWWL2WGZ554NAeVIPq9vWyL6x8nrYtaDohuHlZRmMj1tSVeFap9AA+adw==","signatures":[{"sig":"MEYCIQCDOwviOZrk4AEVcwhv03wJGaSbkgTphi2oynW//DovIgIhAKLS1W6NmKjex9Ny6DlAfPsK2aGtsdK7+74ctTGTNoLo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":161488},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"}},"gitHead":"12c8ed04df71b8091e79eeaac5f12e068ba3f7d4","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, internal relay schemas, and external x402 payment schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.3.0_1775193280343_0.1766542001970015","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aibtc/tx-schemas","version":"0.4.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.4.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"f6a8e31aa1daa28ff5038a5b6f9bdea9ddb8b324","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.4.0.tgz","fileCount":68,"integrity":"sha512-51z8O+mNGnqwoisKZCvvC8ZNBv0Z+RIfSTQ2CV99NFk4Z4ySp+KX+kPEpwlbLLul3AySn/AD9EHWXrjcGaAYAg==","signatures":[{"sig":"MEUCIC41tyfuZLdlf3T3GgxIWQztoUlmKAaRm7rBdIrkfz+eAiEAiOywWWtMP3P3COXJtSH9qQiEsFrsli2QKDrGssVWLjc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":257136},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"}},"gitHead":"947e2acbefe36392d48f88479d3f22ee3c2c326e","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, internal relay schemas, and external x402 payment schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.4.0_1775486682525_0.4365398054966798","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@aibtc/tx-schemas","version":"0.5.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.5.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"1ad9d0c8b3d4f044eb797b5ccc765bd29e631329","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.5.0.tgz","fileCount":100,"integrity":"sha512-7QqJcrbTqr2OaIhd1VV5hU4NdlLQqz7U9UxqD4wg6RZ8Ge/+CXW+SjxSitSfMaHU1XB0Amoe0F4TpjOI+QDGBA==","signatures":[{"sig":"MEUCIQCQM3hHgPZIXjRZnXgTwe0OLLso3IvMLGQxGMyf8/010AIgJmL9m/7iDj08+rURV1CyWZbGN+1TOfEj2oLK1t5x5/o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":292945},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"}},"gitHead":"d1f5e73dfa509cd26fd3e6741f46cdf55890b318","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.5.0_1775509801146_0.6991773846907146","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@aibtc/tx-schemas","version":"0.5.1","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.5.1","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"93be2f279b526a25df6433f2d946b18f45b9883a","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.5.1.tgz","fileCount":100,"integrity":"sha512-q6bF37DrV9wq7WpdW1q0NtsVXzT4HTAH2jIfuQGBvriZWUt3OKdqf23cNhBOi9xb2kH6XLBzjVBgRG3FqpdqYw==","signatures":[{"sig":"MEUCIGcTYza5l+xp0md9X8WrzXLZa7fhp+DRvSvLXt73oEJKAiEA8yoa9OweqWiuHF7mvsZrnZ0lJI9/Vr+B2jdPLkdQ8Hw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":267612},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"}},"gitHead":"e1d46363671bd7a07e073815bf943682a0a7216d","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.5.1_1775512232855_0.000873056813607942","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@aibtc/tx-schemas","version":"0.5.2","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.5.2","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"67d02b7941cc6f1eda0bd16a36dd3b0606f502be","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.5.2.tgz","fileCount":100,"integrity":"sha512-/LTRJqAwsEARZuMkxT+dNVIhKF9F7Jb2HHgCNd13FX/BqIFfO5ylSwXsX8wbWc7OdLanhHJC2SRwhlclKhRQtQ==","signatures":[{"sig":"MEUCICBdh94+oij6+PufgrumTd3aXBXwqOwmr1a65O18gVhmAiEAsy4M84FOOtcAfSzxPPi26eVlOZtckcQdeZgg4zu1O40=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":267005},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"}},"gitHead":"9caba04f14779b29e15d9259a50191c748e93ae5","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.5.2_1775531953542_0.25561902176599727","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@aibtc/tx-schemas","version":"0.6.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.6.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"4b01b7badfad0eecd6f559f0ce646bf72a31132c","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.6.0.tgz","fileCount":100,"integrity":"sha512-M0srcDNy9VJWeyF5+5bMZNO5HEW2UyUWxfnscT62UOHoam/3352e3GQ5cu6yzrNsbEUIV5Imxc+kN0KWL+qg/A==","signatures":[{"sig":"MEQCIH4YrPO1/OhjLPGXyY1/AW04HgpVIX0FlaIUJoRIHON0AiAkN5iuW90Kz2+cR0PMZsH7vV2JpwZJJnsUaw2EnTZhsg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":281137},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"}},"gitHead":"fbe5039d7bb05d960df726e616805cace01f5746","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.6.0_1775692499287_0.868945477833903","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@aibtc/tx-schemas","version":"0.7.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.7.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"dca316f1bc688e1e6951546dcd4284a7158e4072","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.7.0.tgz","fileCount":100,"integrity":"sha512-6q8FnEuwRV1OZ3b9uQ831vSdi7a2LdwS9twoSld5r8UIR2T/wH9WO5iTGsDlFmsP//4GtEUjX5HYX/KsKd+NsQ==","signatures":[{"sig":"MEQCIHdCxpyBLSZEMNyFL3yKYKF8zced9dEqtRUVzYsmSqm6AiBGM43gFPvvIqyyYdRss69pfXYcZ6IETPyHodQn4y81Yg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":293935},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"}},"gitHead":"ab1be2d90f56c1b3b70a6764d9a48378bf8240ac","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.7.0_1775781769849_0.28329074030199486","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@aibtc/tx-schemas","version":"0.8.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@0.8.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"103d40781b68ff9c595f84bafdce786cb68b0366","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-0.8.0.tgz","fileCount":112,"integrity":"sha512-KIujVAzjUpljkC9SqeheSzxCDbsyTsblzF/qCbg4Kn8hK5R85GUqz9SuBrIKa6UHVvk+x9vBX34qLdCJXr/oeQ==","signatures":[{"sig":"MEQCIAYhZ8b9s1vmsfnKTAxqCIFtU/GIYxBPvHJb3Vx4aS9gAiAGvDcWq70TD1ycqGU1aGC1LhN94UP9UMFLcxUI+18sqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":348487},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/hiro-tx":{"types":"./dist/core/hiro-tx.d.ts","import":"./dist/core/hiro-tx.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./core/sponsor-ledger":{"types":"./dist/core/sponsor-ledger.d.ts","import":"./dist/core/sponsor-ledger.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"},"./core/sponsor-wallet-machine":{"types":"./dist/core/sponsor-wallet-machine.d.ts","import":"./dist/core/sponsor-wallet-machine.js"}},"gitHead":"e85d4a7f449f165ba9ea33e53fccaedd518b34b7","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_0.8.0_1776278051740_0.42510463797071774","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@aibtc/tx-schemas","version":"1.0.0","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"license":"MIT","_id":"@aibtc/tx-schemas@1.0.0","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"homepage":"https://github.com/aibtcdev/tx-schemas#readme","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"dist":{"shasum":"601324547369a62811d4d56ecf6cc5deeec315ce","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-1.0.0.tgz","fileCount":112,"integrity":"sha512-KFVfzP+1gLU67mHL94ck4ue1QDJIMjlHwaOya58q2cGPwuSjGjixx/Rt/AsWJr+ppRWECZgUm9Pv+N8kfL3r5w==","signatures":[{"sig":"MEQCIAwuYaCpYW88qMTb5fioc7RoX3CwQ7VIdAhGyqh3zX4EAiA2IQldVCwlJLVNSubjCIbDTRWhutxz0tX1FkhhJacMDw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":364155},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./core/hiro-tx":{"types":"./dist/core/hiro-tx.d.ts","import":"./dist/core/hiro-tx.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./package.json":"./package.json","./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./core/sponsor-ledger":{"types":"./dist/core/sponsor-ledger.d.ts","import":"./dist/core/sponsor-ledger.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"},"./core/sponsor-wallet-machine":{"types":"./dist/core/sponsor-wallet-machine.d.ts","import":"./dist/core/sponsor-wallet-machine.js"}},"gitHead":"154603e25863be50fdc95d723a7a67855ff5f798","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","pack:dry-run":"npm pack --dry-run","prepublishOnly":"npm run build && npm run typecheck && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"repository":{"url":"git+https://github.com/aibtcdev/tx-schemas.git","type":"git"},"_npmVersion":"11.12.1","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.3.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.19.13"},"_npmOperationalInternal":{"tmp":"tmp/tx-schemas_1.0.0_1776291572178_0.4321276175753206","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@aibtc/tx-schemas","version":"1.1.0","description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./core/enums":{"types":"./dist/core/enums.d.ts","import":"./dist/core/enums.js"},"./terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/terminal-reasons":{"types":"./dist/core/terminal-reasons.d.ts","import":"./dist/core/terminal-reasons.js"},"./core/primitives":{"types":"./dist/core/primitives.d.ts","import":"./dist/core/primitives.js"},"./core/schemas":{"types":"./dist/core/schemas.d.ts","import":"./dist/core/schemas.js"},"./core/nonce-outcome":{"types":"./dist/core/nonce-outcome.d.ts","import":"./dist/core/nonce-outcome.js"},"./core/wallet-capacity":{"types":"./dist/core/wallet-capacity.d.ts","import":"./dist/core/wallet-capacity.js"},"./core/sponsor-ledger":{"types":"./dist/core/sponsor-ledger.d.ts","import":"./dist/core/sponsor-ledger.js"},"./core/sponsor-wallet-machine":{"types":"./dist/core/sponsor-wallet-machine.d.ts","import":"./dist/core/sponsor-wallet-machine.js"},"./core/hiro-tx":{"types":"./dist/core/hiro-tx.d.ts","import":"./dist/core/hiro-tx.js"},"./core/sender-queue":{"types":"./dist/core/sender-queue.d.ts","import":"./dist/core/sender-queue.js"},"./core/wallet-constants":{"types":"./dist/core/wallet-constants.d.ts","import":"./dist/core/wallet-constants.js"},"./rpc":{"types":"./dist/rpc/index.d.ts","import":"./dist/rpc/index.js"},"./rpc/schemas":{"types":"./dist/rpc/schemas.d.ts","import":"./dist/rpc/schemas.js"},"./http":{"types":"./dist/http/index.d.ts","import":"./dist/http/index.js"},"./http/schemas":{"types":"./dist/http/schemas.d.ts","import":"./dist/http/schemas.js"},"./news":{"types":"./dist/news/index.d.ts","import":"./dist/news/index.js"},"./news/signal-status":{"types":"./dist/news/signal-status.d.ts","import":"./dist/news/signal-status.js"},"./news/editorial-review":{"types":"./dist/news/editorial-review.d.ts","import":"./dist/news/editorial-review.js"},"./news/beat-editor":{"types":"./dist/news/beat-editor.d.ts","import":"./dist/news/beat-editor.js"},"./news/editor-earning":{"types":"./dist/news/editor-earning.d.ts","import":"./dist/news/editor-earning.js"},"./news/signal":{"types":"./dist/news/signal.d.ts","import":"./dist/news/signal.js"},"./news/brief":{"types":"./dist/news/brief.d.ts","import":"./dist/news/brief.js"},"./news/beat":{"types":"./dist/news/beat.d.ts","import":"./dist/news/beat.js"},"./package.json":"./package.json"},"scripts":{"build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run","test:watch":"vitest","prepublishOnly":"npm run build && npm run typecheck && npm test","pack:dry-run":"npm pack --dry-run"},"keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"author":{"name":"aibtcdev"},"repository":{"type":"git","url":"git+https://github.com/aibtcdev/tx-schemas.git"},"homepage":"https://github.com/aibtcdev/tx-schemas#readme","license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"dependencies":{"zod":"^4.3.6"},"devDependencies":{"@types/node":"^22.19.13","typescript":"^5.9.3","vitest":"^4.0.18"},"gitHead":"1e2cb46ccbf6498badaf18ec25e667a8a29396ba","_id":"@aibtc/tx-schemas@1.1.0","bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"_nodeVersion":"24.15.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-jCautY4s8xT6oYC6l5d5tR9pbKTIziyny3YFI77mcmkoCzZzw7oedARYARuw1DSyxcHpXVoRTL0VM6MlTYA3LQ==","shasum":"d8b723811b9f9f9930578000e44b6d822243ae25","tarball":"https://registry.npmjs.org/@aibtc/tx-schemas/-/tx-schemas-1.1.0.tgz","fileCount":112,"unpackedSize":366096,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aibtc%2ftx-schemas@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7bHxQ70uFuhBaWwV4lki49jHqmo8BUQCNEZGElpmeIQIgBATPXz4LXgWtfcI23ZKIryPgidUnSR3GfeZ1SxDa5Jc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88ce20c9-7a01-49a7-9bf1-a8adfdabdca3"}},"directories":{},"maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tx-schemas_1.1.0_1776931941521_0.09516139870608242"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T17:10:43.594Z","modified":"2026-04-23T08:12:21.891Z","0.1.0":"2026-04-01T17:10:43.888Z","0.2.1":"2026-04-02T18:43:01.355Z","0.2.2":"2026-04-02T20:20:05.550Z","0.3.0":"2026-04-03T05:14:40.490Z","0.4.0":"2026-04-06T14:44:42.662Z","0.5.0":"2026-04-06T21:10:01.324Z","0.5.1":"2026-04-06T21:50:33.035Z","0.5.2":"2026-04-07T03:19:13.676Z","0.6.0":"2026-04-08T23:54:59.429Z","0.7.0":"2026-04-10T00:42:49.984Z","0.8.0":"2026-04-15T18:34:11.899Z","1.0.0":"2026-04-15T22:19:32.376Z","1.1.0":"2026-04-23T08:12:21.651Z"},"bugs":{"url":"https://github.com/aibtcdev/tx-schemas/issues"},"author":{"name":"aibtcdev"},"license":"MIT","homepage":"https://github.com/aibtcdev/tx-schemas#readme","keywords":["aibtc","x402","schemas","zod","stacks","payments","rpc","http"],"repository":{"type":"git","url":"git+https://github.com/aibtcdev/tx-schemas.git"},"description":"Shared zod schemas for AIBTC transaction states, relay RPC/HTTP schemas, and news editorial domain schemas.","maintainers":[{"name":"aibtc-dev","email":"build@aibtc.com"}],"readme":"# @aibtc/tx-schemas\n\nShared zod schemas for AIBTC payment state models, first-party relay RPC schemas,\nand external x402 HTTP schemas.\n\n## Install\n\n```bash\nnpm install @aibtc/tx-schemas zod\n```\n\n## Package Shape\n\n- `@aibtc/tx-schemas` exports the full surface\n- `@aibtc/tx-schemas/core` exports canonical payment enums, terminal reasons, and shared primitives\n- `@aibtc/tx-schemas/rpc` exports internal relay service-binding schemas\n- `@aibtc/tx-schemas/http` exports external x402 facilitator and polling schemas\n- `@aibtc/tx-schemas/news` exports shared editorial/newsroom schemas, including beat lifecycle transition contracts\n\n## Usage\n\n```ts\nimport { PaymentStateSchema, PaymentStateCategoryByState } from \"@aibtc/tx-schemas/core\";\nimport { RpcSubmitPaymentResultSchema } from \"@aibtc/tx-schemas/rpc\";\nimport { HttpSettleRequestSchema } from \"@aibtc/tx-schemas/http\";\nimport { TERMINAL_REASONS } from \"@aibtc/tx-schemas/terminal-reasons\";\n\nconst state = PaymentStateSchema.parse(\"confirmed\");\nconst category = PaymentStateCategoryByState[state];\nconst terminalReasons = TERMINAL_REASONS;\n\nconst rpcResult = RpcSubmitPaymentResultSchema.parse({\n  accepted: true,\n  paymentId: \"pay_01J7QZXK5XRGBVMK3N9RTNF4WW\",\n  status: \"queued\",\n});\n\nconst settleRequest = HttpSettleRequestSchema.parse({\n  paymentPayload: {\n    x402Version: 2,\n    payload: { transaction: \"0x1234\" },\n  },\n  paymentRequirements: {\n    scheme: \"exact\",\n    network: \"stacks:2147483648\",\n    amount: \"1000000\",\n    asset: \"STX\",\n    payTo: \"ST000000000000000000002AMW42H\",\n  },\n});\n```\n\n## Subpath Imports\n\n- `@aibtc/tx-schemas`\n- `@aibtc/tx-schemas/core`\n- `@aibtc/tx-schemas/core/enums`\n- `@aibtc/tx-schemas/core/schemas`\n- `@aibtc/tx-schemas/core/primitives`\n- `@aibtc/tx-schemas/terminal-reasons`\n- `@aibtc/tx-schemas/core/terminal-reasons`\n- `@aibtc/tx-schemas/rpc`\n- `@aibtc/tx-schemas/http`\n- `@aibtc/tx-schemas/news`\n\n## Schema Rules\n\n- Canonical payment states live in `core` and are the only shared payment-state source of truth.\n- Public canonical states are `requires_payment`, `queued`, `broadcasting`, `mempool`, `confirmed`, `failed`, `replaced`, and `not_found`.\n- `submitted` is reserved for relay internals and must not appear in the caller-facing contract.\n- `rpc` and `http` may differ in field names and transport ergonomics, but they must reuse the same state semantics.\n- The default protected-resource delivery invariant is `deliver-only-on-confirmed`.\n- Any product that delivers on in-flight states should document that as an application exception, not a canonical package rule.\n- `paymentId` is relay-owned and duplicate submission should reuse the same `paymentId` until terminal resolution.\n- `payment-identifier` is client-supplied idempotency input only. It must not be treated as canonical public `paymentId`.\n- Accepted duplicate submit responses should return the current caller-facing in-flight status for that `paymentId`: `queued`, `broadcasting`, or `mempool` as applicable.\n- `queued_with_warning` remains an RPC-only temporary compatibility shim for warning-aware callers during migration.\n- Polling contracts may surface `checkStatusUrl` as an additive convenience field, and internal/external polling should treat it as another way to reach the same `paymentId` lifecycle.\n- If a downstream consumer has neither relay `paymentId` nor canonical `checkStatusUrl`, it must fail closed instead of inventing a polling identity.\n- Terminal polling responses should carry a normalized `terminalReason` when one is known, even if transports also emit local error codes.\n- Machine-readable contract exports for downstream repos include `CanonicalDomainBoundary`, `CANONICAL_POLLING_IDENTITY_FIELDS`, `RELAY_LIFECYCLE_BRIDGE`, and `TERMINAL_REASON_CATEGORY_HANDLING`.\n\nMore detail lives in [docs/package-schemas.md](docs/package-schemas.md),\n[docs/boring-state-machine-contract.md](docs/boring-state-machine-contract.md),\n[docs/x402-approval-spec.md](docs/x402-approval-spec.md), and\n[docs/x402-state-machines.md](docs/x402-state-machines.md).\n\n## Consuming sponsor wallet helpers\n\nThe `core` export ships pure state-machine helpers so that every service that\ntouches a sponsor wallet (`/sponsor`, `/relay`, `/settle`, …) drives off the\nsame primitives instead of re-implementing the nonce-conflict logic inline.\n\nThe canonical cycle is: classify what is at the nonce, decide what to do,\napply the decision to state, reconcile periodically against the mempool.\n\n```ts\nimport {\n  classifyOccupant,\n  decideBroadcast,\n  adoptOrphan,\n  quarantine,\n  reconcile,\n  type HiroSponsorTxView,\n  type SponsorLedger,\n  type WalletCapacity,\n} from \"@aibtc/tx-schemas/core\";\n\nfunction handleConflict(\n  wallet: WalletCapacity,\n  ledger: SponsorLedger,\n  nonce: number,\n  mempoolHit: HiroSponsorTxView | null,\n  sponsorAddress: string\n) {\n  const occupant = classifyOccupant(mempoolHit, sponsorAddress, ledger, nonce);\n\n  const decision = decideBroadcast(\n    wallet,\n    { outcome: \"nonce_conflict\", isOrigin: false },\n    { nonce, ledger, occupant }\n  );\n\n  switch (decision.kind) {\n    case \"rbf_with_fee\":\n      // re-sign at decision.fee, broadcast\n      return wallet;\n    case \"adopt_then_rbf\":\n      // `adopt_then_rbf` is only emitted when the occupant was classified as\n      // `sponsor_owned_orphan`, which requires a non-null mempool hit.\n      return adoptOrphan(wallet, mempoolHit!);\n    case \"quarantine\":\n      return quarantine(wallet, decision.nonce, decision.reason, {\n        txId: occupant.kind !== \"untraceable\" ? occupant.txId : undefined,\n      });\n    case \"terminal\":\n      // mark the payment terminal with decision.reason\n      return wallet;\n    case \"first_broadcast\":\n      return wallet;\n  }\n}\n\n// Periodic reconciliation pass adopts unrecorded sponsor txs and flags drops:\nconst { wallet: next, ledger: nextLedger, adopted, dropped } = reconcile(\n  wallet,\n  ledger,\n  mempoolReadByNonce,\n  sponsorAddress\n);\n```\n\nAll helpers are pure: inputs → new state. No I/O, and time-sensitive helpers\naccept an injectable `now` option for deterministic tests; otherwise they use\nthe current time by default.\n\n### Canonical write pattern: two-phase broadcast\n\n`LedgerEntry.status` captures whether a broadcast has round-tripped with the\nnode. The two-phase contract closes the edge-terminator / crash window where a\nsingle-phase ledger write could claim `broadcast_sent` for a tx the node never\nsaw (or lose track of a tx the node did accept).\n\n```\n(no entry)        → pending_broadcast       [beginPendingBroadcast]\npending_broadcast → broadcast_sent          [resolveBroadcast(\"sent\") | reconcile]\npending_broadcast → broadcast_failed        [resolveBroadcast(\"failed\")]\nbroadcast_sent    → pending_broadcast       [new RBF attempt, new txId]\nbroadcast_failed  → pending_broadcast       [retry, new txId]\n```\n\nWrite the ledger **before** the network call, resolve on return:\n\n```ts\nimport {\n  beginPendingBroadcast,\n  resolveBroadcast,\n  reconcile,\n} from \"@aibtc/tx-schemas/core\";\n\nledger = beginPendingBroadcast(ledger, {\n  nonce,\n  txId,\n  fee,\n});\n\ntry {\n  const outcome = await broadcastTransaction(signedTx);\n  ledger = resolveBroadcast(ledger, nonce, \"sent\", { lastOutcome: outcome });\n} catch (err) {\n  ledger = resolveBroadcast(ledger, nonce, \"failed\");\n  throw err;\n}\n```\n\nFor RBF (e.g., a `fee_too_low` outcome), pass the incremented attempt count\nexplicitly — `beginPendingBroadcast` does not auto-increment, since the same\nhelper is also used for first broadcasts and retries:\n\n```ts\nconst existing = ledger.entries[String(nonce)]!;\nledger = beginPendingBroadcast(ledger, {\n  nonce,\n  txId: rbfTxId,\n  fee: bumpedFee,\n  rbfAttempts: existing.rbfAttempts + 1,\n});\n```\n\n`decideBroadcast` refuses to issue a new decision while the entry is\n`pending_broadcast`. It returns:\n\n```ts\n{ kind: \"await_pending_broadcast\", nonce, txId }\n```\n\nso the consumer resolves the prior call before a second broadcast can fire.\n\n`reconcile()` sweeps survivors of crashes that dropped the resolve step:\n\n- A `pending_broadcast` entry whose txId appears in the mempool is promoted\n  to `broadcast_sent` automatically.\n- A `pending_broadcast` entry absent from the mempool within\n  `justBroadcastGraceSeconds` (default 30) is classified as\n  `inFlightPendingIndex` — node may have accepted it; indexer just hasn't\n  caught up.\n- Past the grace window with no mempool hit, the entry is reported as\n  `dropped` for caller inspection.\n\n```ts\nconst { ledger: next, adopted, dropped, inFlightPendingIndex } = reconcile(\n  wallet,\n  ledger,\n  mempoolReadByNonce,\n  sponsorAddress,\n  { justBroadcastGraceSeconds: 30 }\n);\n```\n","readmeFilename":"README.md"}