{"_id":"@asgpay/sdk","_rev":"3-9da8ccbf8c76d925d35b7812cba74404","name":"@asgpay/sdk","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@asgpay/sdk","version":"1.0.0","keywords":["asg-pay","asgpay","virtual-card","ai-agent-card","mastercard","stripe-issuing","card-management","agent-wallet","ai-payments","autonomous-agent","fintech","spend-management","card-issuance","usdc","stellar","mcp","asgcard"],"author":{"name":"ASG Compute","email":"aidar@asgcompute.com"},"license":"MIT","_id":"@asgpay/sdk@1.0.0","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"homepage":"https://asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/asgcard-public/issues"},"dist":{"shasum":"71c04f448db9e4a807ca151213f3621b52515e82","tarball":"https://registry.npmjs.org/@asgpay/sdk/-/sdk-1.0.0.tgz","fileCount":4,"integrity":"sha512-qnz4vy+CMevwN2NkQKJHv2V8rZff4ta2OaNCH7C0R2/5lq1/mRsv8SG2y6xGRq5/7VkmZfWyDLagUEDTAICFKA==","signatures":[{"sig":"MEYCIQDONStExoATHxvUt6tJ9PO8jLnygqYeRvIK8QvLfRW6zwIhAKvXM4V9fEz5Zy+OWcRdr5gG2ZOz5r/yGsoPzHOSbzk0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3681},"main":"index.js","types":"index.d.ts","_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"repository":{"url":"git+https://github.com/ASGCompute/asgcard-public.git","type":"git"},"_npmVersion":"10.9.2","description":"ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"@asgcard/sdk":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.0_1775340548456_0.2991734742697363","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@asgpay/sdk","version":"1.0.1","keywords":["asg-pay","asgpay","virtual-card","ai-agent-card","mastercard","stripe-issuing","card-management","agent-wallet","ai-payments","autonomous-agent","fintech","spend-management","card-issuance","usdc","stellar","mcp","asgcard"],"author":{"name":"ASG Compute","email":"aidar@asgcompute.com"},"license":"MIT","_id":"@asgpay/sdk@1.0.1","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"homepage":"https://asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/asgcard-public/issues"},"dist":{"shasum":"985340befe39b436964dda3e36591180fbffde45","tarball":"https://registry.npmjs.org/@asgpay/sdk/-/sdk-1.0.1.tgz","fileCount":4,"integrity":"sha512-0m+om/1QAD5G/HjlFObIJRyOQOt/iFGOGY43Sh7BFm0kjE8k1Ovcgx4VXg6WzioYQDDYPGk3S468wp0Y+gky/A==","signatures":[{"sig":"MEUCIAXe2FinNFcwtfxC1wq3Dw8SnZk0FcsakfdLmHlh4xG+AiEAroBmjX5YIVz6lTwyJd/66esZ0FkcUZZ4fJZBBFAoSMY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3984},"main":"index.js","types":"index.d.ts","_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"repository":{"url":"git+https://github.com/ASGCompute/asgcard-public.git","type":"git"},"_npmVersion":"10.9.2","description":"ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"@asgcard/sdk":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.1_1775341844527_0.6526468887937076","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@asgpay/sdk","version":"1.0.2","description":"ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.","main":"index.js","types":"index.d.ts","keywords":["asg-pay","asgpay","virtual-card","ai-agent-card","mastercard","stripe-issuing","card-management","agent-wallet","ai-payments","autonomous-agent","fintech","spend-management","card-issuance","usdc","stellar","mcp","asgcard"],"author":{"name":"ASG Compute","email":"aidar@asgcompute.com"},"license":"MIT","homepage":"https://asgcard.dev","repository":{"type":"git","url":"git+https://github.com/ASGCompute/asgcard-public.git"},"bugs":{"url":"https://github.com/ASGCompute/asgcard-public/issues"},"dependencies":{"@asgcard/sdk":"^1.1.5"},"publishConfig":{"access":"public"},"_id":"@asgpay/sdk@1.0.2","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-xvCdnXd8WTrSwR4Iiokl3vETIp6TUbqzkpmjISEa1yjxqHOnxevSZEWfxNj1S3tUvUVCy4YwIMFE+KVf7ORjaw==","shasum":"1f4bc355913cfb063628395bb22c7fc8f67e157e","tarball":"https://registry.npmjs.org/@asgpay/sdk/-/sdk-1.0.2.tgz","fileCount":4,"unpackedSize":3984,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAMHrP3mxWfjOtyrE/kQBg8v0IONr2yKUJAMYKL8kpOAAiB9FivCFlMZiK2XFicpYu+1nBB+POIQEfPRUx/OszGNWw=="}]},"_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"directories":{},"maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.2_1775689031762_0.6451089124422855"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T22:09:08.342Z","modified":"2026-04-08T22:57:12.051Z","1.0.0":"2026-04-04T22:09:08.598Z","1.0.1":"2026-04-04T22:30:44.695Z","1.0.2":"2026-04-08T22:57:11.901Z"},"bugs":{"url":"https://github.com/ASGCompute/asgcard-public/issues"},"author":{"name":"ASG Compute","email":"aidar@asgcompute.com"},"license":"MIT","homepage":"https://asgcard.dev","keywords":["asg-pay","asgpay","virtual-card","ai-agent-card","mastercard","stripe-issuing","card-management","agent-wallet","ai-payments","autonomous-agent","fintech","spend-management","card-issuance","usdc","stellar","mcp","asgcard"],"repository":{"type":"git","url":"git+https://github.com/ASGCompute/asgcard-public.git"},"description":"ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"readme":"<h1 align=\"center\">@asgpay/sdk</h1>\n<h3 align=\"center\">Virtual Mastercard Cards for AI Agents</h3>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@asgpay/sdk\"><img src=\"https://img.shields.io/npm/v/@asgpay/sdk?style=flat-square&color=635bff\" alt=\"npm\" /></a>\n  <a href=\"https://www.npmjs.com/package/@asgpay/sdk\"><img src=\"https://img.shields.io/npm/dm/@asgpay/sdk?style=flat-square&color=22c55e\" alt=\"downloads\" /></a>\n  <img src=\"https://img.shields.io/badge/part%20of-ASG%20Pay-7c5cfc?style=flat-square\" alt=\"ASG Pay\" />\n</p>\n\n---\n\n## What is @asgpay/sdk?\n\n**@asgpay/sdk** is the TypeScript SDK for programmatically issuing and managing virtual Mastercard cards for AI agents. Issue cards, set spending limits, fund via USDC, and freeze/unfreeze — all via code.\n\nPart of the **[ASG Pay](https://npmjs.com/package/@asgpay/pay)** ecosystem — the banking layer for autonomous AI agents.\n\n## Install\n\n```bash\nnpm install @asgpay/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { AsgCardClient } from '@asgpay/sdk';\n\nconst client = new AsgCardClient({ apiKey: process.env.ASG_API_KEY! });\n\n// Issue a virtual card for your AI agent\nconst card = await client.createCard({\n  name: 'Research Agent',\n  spendingLimit: 100,\n  currency: 'USD',\n});\nconsole.log(`Card issued: **** ${card.last4}`);\n\n// Fund the card\nawait client.fundCard(card.id, { amount: 50, method: 'usdc' });\n\n// Freeze when done\nawait client.freezeCard(card.id);\n```\n\n## Features\n\n| Feature | Description |\n|---------|-------------|\n| **Issue Cards** | Virtual Mastercard, instant issuance |\n| **Set Limits** | Per-transaction and monthly spending limits |\n| **Fund via USDC** | Stellar USDC → card balance, instant |\n| **Freeze/Unfreeze** | Programmatic card control |\n| **Transaction History** | Full audit trail per card |\n\n## ASG Pay Ecosystem\n\n| Package | Purpose |\n|---------|---------|\n| **[@asgpay/pay](https://npmjs.com/package/@asgpay/pay)** | Multi-chain payment SDK (x402 + MPP) |\n| **[@asgpay/sdk](https://npmjs.com/package/@asgpay/sdk)** | ← You are here. Card management. |\n| **[@asgpay/cli](https://npmjs.com/package/@asgpay/cli)** | Card creation & management CLI |\n| **[@asgpay/mcp-server](https://npmjs.com/package/@asgpay/mcp-server)** | AI agent tools (Claude, Codex, Cursor) |\n| **[@asgpay/fund](https://npmjs.com/package/@asgpay/fund)** | One-link agent wallet funding |\n| **[@asgpay/agent-cash](https://npmjs.com/package/@asgpay/agent-cash)** | Autonomous virtual credit cards |\n| **[@asgpay/create-app](https://npmjs.com/package/@asgpay/create-app)** | Project scaffolding |\n\n## Links\n\n- 🌐 [asgcard.dev](https://asgcard.dev)\n- 📦 [npm @asgpay/pay](https://npmjs.com/package/@asgpay/pay)\n- 𝕏 [@ASGCardx402](https://x.com/ASGCardx402)\n\n---\n\n<p align=\"center\"><sub>Part of <a href=\"https://npmjs.com/package/@asgpay/pay\">ASG Pay</a> — the banking layer for autonomous AI agents.</sub></p>\n","readmeFilename":"README.md"}