{"_id":"@angorapay/sdk","name":"@angorapay/sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@angorapay/sdk","version":"0.1.0","description":"TypeScript SDK for AngoraPay Mesh market-agent service routing on Circle/x402 and Arc.","type":"module","main":"./dist/angorapay.js","types":"./dist/angorapay.d.ts","exports":{".":{"types":"./dist/angorapay.d.ts","import":"./dist/angorapay.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepack":"npm run build","pack:dry-run":"npm pack --dry-run","publish:public":"npm publish --access public"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/othnielObasi/angorapay-mesh.git","directory":"sdk/typescript"},"homepage":"https://github.com/othnielObasi/angorapay-mesh#readme","bugs":{"url":"https://github.com/othnielObasi/angorapay-mesh/issues"},"author":{"name":"AngoraPay Mesh"},"license":"MIT","devDependencies":{"typescript":"^5.6.3"},"keywords":["angorapay","x402","circle","arc","agent","market-agents"],"gitHead":"e172c189403d8878d82fb0c890a900faed9babc3","_id":"@angorapay/sdk@0.1.0","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-UOK+EgrTHfIgRQ/S1Ugb2C3i2faVXL3YCn6AA896dfTMZU1XK9eG9ZIqGs6b5khWhum9Lcp6DFUpDSV5pwiQ5g==","shasum":"fc1208cd74e083b71f2334a99939e71c29343a33","tarball":"https://registry.npmjs.org/@angorapay/sdk/-/sdk-0.1.0.tgz","fileCount":4,"unpackedSize":12948,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDS1nTed75pWIV/f9YZ9cstBg/KCuc35QnAvrWKnwbZjgIhAJz72agc9oUCNioYwA3Ff6eFcznBoaYj4+PQFGMoSivv"}]},"_npmUser":{"name":"airg_client","email":"contact@nov-tia.com"},"directories":{},"maintainers":[{"name":"airg_client","email":"contact@nov-tia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.0_1779755794840_0.2437233249327473"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-26T00:36:34.576Z","0.1.0":"2026-05-26T00:36:34.980Z","modified":"2026-05-26T00:36:35.235Z"},"maintainers":[{"name":"airg_client","email":"contact@nov-tia.com"}],"description":"TypeScript SDK for AngoraPay Mesh market-agent service routing on Circle/x402 and Arc.","homepage":"https://github.com/othnielObasi/angorapay-mesh#readme","keywords":["angorapay","x402","circle","arc","agent","market-agents"],"repository":{"type":"git","url":"git+https://github.com/othnielObasi/angorapay-mesh.git","directory":"sdk/typescript"},"author":{"name":"AngoraPay Mesh"},"bugs":{"url":"https://github.com/othnielObasi/angorapay-mesh/issues"},"license":"MIT","readme":"# @angorapay/sdk\n\nTypeScript SDK for AngoraPay Mesh, the paid-intelligence routing, policy, payment-boundary, receipt, and reconciliation layer for market agents.\n\nUse it from a backend or agent runtime. Keep API keys server-side.\n\n## Install\n\n```bash\nnpm install @angorapay/sdk\n```\n\nFor the current repository build before registry publication:\n\n```bash\ncd sdk/typescript\nnpm install\nnpm run build\nnpm pack\n```\n\n## Configure\n\n```ts\nimport { AngoraPay } from \"@angorapay/sdk\";\n\nconst angora = new AngoraPay({\n  baseUrl: process.env.ANGORA_GATEWAY_URL ?? \"https://your-angora-gateway.example\",\n  apiKey: process.env.ANGORA_API_KEY,\n});\n```\n\n## Run A Market-Intelligence Mission\n\n```ts\nconst result = await angora.runAgentMission({\n  userGoal: \"Check whether this BTC prediction market is mispriced after the news shift.\",\n  module: \"prediction_market\",\n  paymentMode: \"arc_testnet\",\n  budgetUSDC: \"0.05\",\n});\n\nconsole.log(result.recommendation);\nconsole.log(result.receipts);\n```\n\n## Route One Paid Provider Call\n\n```ts\nconst route = await angora.callMarketService({\n  missionId: \"agent_mission_123\",\n  agentId: \"prediction-market-intelligence-agent\",\n  consumerId: \"enterprise-workspace\",\n  intent: \"Fetch prediction-market odds\",\n  category: \"odds\",\n  maxPrice: \"0.01\",\n  idempotencyKey: \"agent_mission_123:odds:001\",\n});\n```\n\n## Inspect Proof And Reconciliation\n\n```ts\nconst payments = await angora.listPaymentIntents({ missionId: \"agent_mission_123\" });\nconst runs = await angora.listReconciliationRuns({ missionId: \"agent_mission_123\" });\nconst traces = await angora.getAgentTraces({ missionId: \"agent_mission_123\" });\n```\n\n## Enterprise Notes\n\n- Use API-key auth for production gateways.\n- Treat `demo_fallback`, `arc_testnet`, and `real_x402` as distinct execution modes.\n- Do not represent fallback receipts as real settlement.\n- Store receipt IDs, route scores, provider decisions, output hashes, and reconciliation state with every market recommendation.\n","readmeFilename":"README.md","_rev":"1-bd9791f26ada17e6505619d56019762f"}