{"_id":"@agentic-user-mandate-protocol/aump","name":"@agentic-user-mandate-protocol/aump","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentic-user-mandate-protocol/aump","version":"0.1.0","description":"TypeScript SDK and validator for the Agentic User Mandate Protocol","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"bin":{"aump":"dist/cli.js"},"scripts":{"build":"tsc -p tsconfig.json && mkdir -p dist/schemas && cp src/schemas/*.json dist/schemas/","prepack":"npm run build","prepublishOnly":"npm test","test":"npm run build && node --test tests/*.test.mjs","lint":"tsc -p tsconfig.json --noEmit"},"dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"devDependencies":{"@types/node":"^24.0.0","typescript":"^5.9.0"},"engines":{"node":">=22.14"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Agentic-User-Mandate-Protocol/aump-js.git"},"homepage":"https://usermandateprotocol.com/sdks/typescript/","bugs":{"url":"https://github.com/Agentic-User-Mandate-Protocol/aump-js/issues"},"keywords":["agents","ai","mandates","protocol","conformance"],"license":"Apache-2.0","gitHead":"720540f6fb41b38c0cc1f7d7139b56b63ce3ef21","_id":"@agentic-user-mandate-protocol/aump@0.1.0","_nodeVersion":"22.16.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-UP1uTa9YGZpWriYEgV5wF6w1cwF2VIf4vBqdR2ba6SJQIY0WRUC381DJGnHGHDBC3bzW/WuICinjdPoq256rXw==","shasum":"6819395e8fc1fd924d7637d6fc7303916ff681d6","tarball":"https://registry.npmjs.org/@agentic-user-mandate-protocol/aump/-/aump-0.1.0.tgz","fileCount":10,"unpackedSize":46774,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICxSKjmua58QCTwApnfqPlTlVVrA+xof9styprEaOYu0AiEAl97peFkbkL3YtNcWEBRVtIhYU3F9aVgUHzOhsgI2tAw="}]},"_npmUser":{"name":"matratau000","email":"matratau000@gmail.com"},"directories":{},"maintainers":[{"name":"matratau000","email":"matratau000@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aump_0.1.0_1777175358473_0.8613613157396218"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T03:49:18.357Z","0.1.0":"2026-04-26T03:49:18.610Z","modified":"2026-04-26T03:49:18.848Z"},"maintainers":[{"name":"matratau000","email":"matratau000@gmail.com"}],"description":"TypeScript SDK and validator for the Agentic User Mandate Protocol","homepage":"https://usermandateprotocol.com/sdks/typescript/","keywords":["agents","ai","mandates","protocol","conformance"],"repository":{"type":"git","url":"git+https://github.com/Agentic-User-Mandate-Protocol/aump-js.git"},"bugs":{"url":"https://github.com/Agentic-User-Mandate-Protocol/aump-js/issues"},"license":"Apache-2.0","readme":"# aump-js\n\nTypeScript SDK and validator for the Agentic User Mandate Protocol.\n\nThis package provides:\n\n- bundled AUMP v0.1 JSON Schemas;\n- mandate lifecycle validation;\n- evidence event schema validation;\n- evidence event semantic validation against mandate references, retention\n  policy, and required event policy;\n- deterministic action evaluation;\n- MCP, A2A, and UCP/AP2 bridge validation helpers.\n\n## Install\n\n```bash\nnpm install\n```\n\nAfter publication, the CLI can be run globally or through `npx`:\n\n```bash\nnpm install -g @agentic-user-mandate-protocol/aump\naump --help\nnpx @agentic-user-mandate-protocol/aump --help\n```\n\n## Build\n\n```bash\nnpm run build\n```\n\n## Test\n\nThe tests prefer the sibling `conformance/fixtures` corpus when this workspace\nis cloned end to end. CI falls back to the pinned\n`tests/fixtures/conformance` snapshot so this repo can validate itself.\n\n```bash\nnpm test\n```\n\n## Usage\n\n```ts\nimport { evaluateAction, parseDate } from \"@agentic-user-mandate-protocol/aump\";\n\nconst result = evaluateAction(mandate, action, {\n  now: parseDate(\"2026-04-25T18:00:00Z\"),\n});\n\nif (result.decision === \"requires_escalation\") {\n  // pause autonomous commitment and ask through trusted UI\n}\n```\n\n## CLI\n\n```bash\naump validate mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json\naump validate-evidence \\\n  --mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json \\\n  --event ../conformance/fixtures/events/deal-accepted.valid.json\naump evaluate-action \\\n  --mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json \\\n  --action ../conformance/fixtures/actions/accept-ping-pong.allowed.json\n```\n","readmeFilename":"README.md","_rev":"1-2985c1719419a92102dda6ef79c5c3b2"}