{"_id":"@agentis-hq/sdk","_rev":"3-a148a4574f30f05044ef4fcd5434cf26","name":"@agentis-hq/sdk","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@agentis-hq/sdk","version":"0.1.0","_id":"@agentis-hq/sdk@0.1.0","maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"dist":{"shasum":"f36f6d17597f4f257ab7f1ccaf15fbb89a2d58bf","tarball":"https://registry.npmjs.org/@agentis-hq/sdk/-/sdk-0.1.0.tgz","fileCount":10,"integrity":"sha512-V9cc6xbG8h57NcF/gSx8DakYvpRoKTvcv3Oq0dXoIcMXFl3WjibfURLnyWb1sc5KQg2cmSMUeyv7D1MiQwbwWA==","signatures":[{"sig":"MEYCIQDDFUxNx5KEX+PRJjq94lfZW9fWD9lvFUj9/JZbjrVlxgIhAIN7aK1HaM9PImMwpBfk9beZVulF+Q4YQnMZfsXUKDnw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53238},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./server":{"types":"./dist/server/index.d.ts","import":"./dist/server/index.js","require":"./dist/server/index.cjs"},"./package.json":"./package.json"},"gitHead":"3123f9e201fd6151b0cedc2b4e870dc6ce40a0d2","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"},"_npmVersion":"10.9.2","description":"Agentis SDK — AI agent payment infrastructure for Solana","directories":{},"_nodeVersion":"22.17.0","dependencies":{"gill":"^0.14.0","mppx":"^0.5.17","@solana/kit":"^2.1.0","@solana/mpp":"^0.5.2","@agentis-hq/core":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1778016547029_0.20058933468451912","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agentis-hq/sdk","version":"0.2.0","_id":"@agentis-hq/sdk@0.2.0","maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"dist":{"shasum":"fea76e822cdd126d614094f7797d1661bb815a78","tarball":"https://registry.npmjs.org/@agentis-hq/sdk/-/sdk-0.2.0.tgz","fileCount":10,"integrity":"sha512-Tw1H3gdwMV5UlrzVlpNnYM5NRnQpVQiYVGbjK4fpWE4XaC6qHMGwMhRojKFW/bLozZtoGbmq37PuZGsOCbod1w==","signatures":[{"sig":"MEUCICxPbWSkdH7nliruEZYUzsDme3dQdk1A3WPBPSVqaZdnAiEAupbpxeCqCOhg5qjVlqaJJW41bYAEYj7YtHi08THQlJY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81458},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./server":{"types":"./dist/server/index.d.ts","import":"./dist/server/index.js","require":"./dist/server/index.cjs"},"./package.json":"./package.json"},"gitHead":"5d84698a463dbc2e72f5d02895382e960b47e7b2","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"},"_npmVersion":"10.9.2","description":"Agentis SDK — AI agent payment infrastructure for Solana","directories":{},"_nodeVersion":"22.17.0","dependencies":{"gill":"^0.14.0","mppx":"^0.5.17","@x402/svm":"~2.10.0","@x402/core":"~2.10.0","@solana/kit":"^6.8.0","@solana/mpp":"^0.5.2","@agentis-hq/core":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.0_1780931472612_0.14192212152525308","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agentis-hq/sdk","version":"0.3.0","description":"Agentis SDK — scoped financial operations, approvals and receipts","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./server":{"types":"./dist/server/index.d.ts","import":"./dist/server/index.js","require":"./dist/server/index.cjs"},"./package.json":"./package.json"},"scripts":{"build":"tsup","dev":"tsup --watch"},"dependencies":{"@agentis-hq/core":"^0.3.0"},"peerDependencies":{"@solana/mpp":"^0.5.2","@x402/core":"~2.10.0","@x402/svm":"~2.10.0","mppx":"^0.5.17"},"peerDependenciesMeta":{"@solana/mpp":{"optional":true},"@x402/core":{"optional":true},"@x402/svm":{"optional":true},"mppx":{"optional":true}},"devDependencies":{"@solana/mpp":"^0.5.2","@x402/core":"~2.10.0","@x402/svm":"~2.10.0","mppx":"^0.5.17","tsup":"^8.0.0","typescript":"^5.0.0"},"_id":"@agentis-hq/sdk@0.3.0","_integrity":"sha512-OGVDabAqNRGkE4bhnD08Yj7eZlRfF8kEqitUf3CYBgx/AqWbcGadcJfKPdx6zO/M+gHIo3R3YWaSSRpqwN7xMQ==","_nodeVersion":"24.3.0","_npmVersion":"10.8.3","shasum":"9d1ce8e4d9118291abcd40d07283c5d29c92a86a","dist":{"integrity":"sha512-OGVDabAqNRGkE4bhnD08Yj7eZlRfF8kEqitUf3CYBgx/AqWbcGadcJfKPdx6zO/M+gHIo3R3YWaSSRpqwN7xMQ==","shasum":"9d1ce8e4d9118291abcd40d07283c5d29c92a86a","tarball":"https://registry.npmjs.org/@agentis-hq/sdk/-/sdk-0.3.0.tgz","fileCount":10,"unpackedSize":80050,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCL1KiacqqNZOq8rw9qYJDCICWpi/pWRZkIx+r8y2Z0EgIhAP1vhBI9Nd2Eogq7VEeQ/9Nm1+LhuuK6zciJjZtS+xDk"}]},"_npmUser":{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"},"directories":{},"maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.3.0_1789309514716_0.2182743361641757"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-05T21:29:06.956Z","modified":"2026-09-13T14:25:15.018Z","0.1.0":"2026-05-05T21:29:07.168Z","0.2.0":"2026-06-08T15:11:12.750Z","0.3.0":"2026-09-13T14:25:14.855Z"},"description":"Agentis SDK — scoped financial operations, approvals and receipts","maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"readme":"# Agentis SDK\n\nThin TypeScript HTTP client. Use `new AgentisClient({baseUrl, token})`; token can be an async getter for a fresh Privy JWT. Agents receive only scoped `agt_exec_` grants.\n\nInstall with `bun add @agentis-hq/sdk@0.3.0` (or `npm install @agentis-hq/sdk@0.3.0`).\n\n```ts\nimport { AgentisClient } from '@agentis-hq/sdk'\n\nconst client = new AgentisClient({\n  baseUrl: 'https://api.agentis.systems',\n  token: process.env.AGENTIS_TOKEN!,\n})\nconst result = await client.operations.create({\n  walletId, action: 'transfer', chainId: 'eip155:84532', asset: 'native',\n  to, amountAtomic: '1000', maxFeeAtomic: '1000000000000000', reason: 'Agent payment',\n}, { idempotencyKey: 'stable-task-id' })\n```\n\n`operations.get/list/wait` return state/receipt; `wait` stops at pending approval or unknown outcome. Owner clients can `operations.approve(id, operationHash)` / `reject`, `wallets.link/setPolicy`, and `grants.create/list/revoke`.\n\nOwner-only `agents.pause(id)` stops new payments and invalidates unsubmitted approvals for that agent; already-issued transactions still reconcile. Owner-only `wallets.exportKey(id, { confirm: true })` requires an authenticated owner and verified user + server quorum, then uses the server authorization key to export. It returns a sensitive private key: never log, cache, or persist it unintentionally. This is the explicit default, not a fallback after user authorization fails.\n\nFor `grants.create`, supply `agentId` and `agentName`. Keys have no expiry by default and remain valid until revoked. An optional future `expiresAt` may be supplied, with no 30-day cap; existing explicit expiries remain unchanged. Omit `chainIds` for all enabled networks, including future additions; supply a non-empty, unique `chainIds` array to restrict the key to selected enabled networks. Restricted keys do not automatically include newly added networks. Legacy `walletId` scope remains supported instead of `agentId`, without `chainIds`; existing keys keep their scope. Agent keys can call `wallets.list()` to discover only their enabled wallets; neither scope permits settings changes, creating keys or self-approval.\n\nNo local policy bypass, signing, USD guessing or automatic payment retries. Hosted Privy execution, x402/MPP paid fetch, Uniswap and ENS methods use the common backend. Mainnet is unsupported. SDK main entry has no mandatory chain library; retained `/server` paywall helpers are separate seller-side fixtures, not the removed Agentis facilitator product. Only `/server` consumers need its optional peers: `@solana/mpp`, `@x402/core`, `@x402/svm` and `mppx` (use the compatible ranges in package.json).\n\nBuild locally with `bun run build:packages` at repo root. Version 0.3.0 exposes the V2 API. See the [project README](https://github.com/awesamarth/agentis#readme) for networks, plugins and examples.\n","readmeFilename":"README.md"}