@asgpay/sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ <h1 align="center">@asgpay/sdk</h1>
2
+ <h3 align="center">Virtual Mastercard Cards for AI Agents</h3>
3
+
4
+ <p align="center">
5
+ <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>
6
+ <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>
7
+ <img src="https://img.shields.io/badge/part%20of-ASG%20Pay-7c5cfc?style=flat-square" alt="ASG Pay" />
8
+ </p>
9
+
10
+ ---
11
+
12
+ ## What is @asgpay/sdk?
13
+
14
+ **@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.
15
+
16
+ Part of the **[ASG Pay](https://npmjs.com/package/@asgpay/pay)** ecosystem — the banking layer for autonomous AI agents.
17
+
18
+ ## Install
19
+
20
+ ```bash
21
+ npm install @asgpay/sdk
22
+ ```
23
+
24
+ ## Quick Start
25
+
26
+ ```typescript
27
+ import { AsgCardClient } from '@asgpay/sdk';
28
+
29
+ const client = new AsgCardClient({ apiKey: process.env.ASG_API_KEY! });
30
+
31
+ // Issue a virtual card for your AI agent
32
+ const card = await client.createCard({
33
+ name: 'Research Agent',
34
+ spendingLimit: 100,
35
+ currency: 'USD',
36
+ });
37
+ console.log(`Card issued: **** ${card.last4}`);
38
+
39
+ // Fund the card
40
+ await client.fundCard(card.id, { amount: 50, method: 'usdc' });
41
+
42
+ // Freeze when done
43
+ await client.freezeCard(card.id);
44
+ ```
45
+
46
+ ## Features
47
+
48
+ | Feature | Description |
49
+ |---------|-------------|
50
+ | **Issue Cards** | Virtual Mastercard, instant issuance |
51
+ | **Set Limits** | Per-transaction and monthly spending limits |
52
+ | **Fund via USDC** | Stellar USDC → card balance, instant |
53
+ | **Freeze/Unfreeze** | Programmatic card control |
54
+ | **Transaction History** | Full audit trail per card |
55
+
56
+ ## ASG Pay Ecosystem
57
+
58
+ | Package | Purpose |
59
+ |---------|---------|
60
+ | **[@asgpay/pay](https://npmjs.com/package/@asgpay/pay)** | Multi-chain payment SDK (x402 + MPP) |
61
+ | **[@asgpay/sdk](https://npmjs.com/package/@asgpay/sdk)** | ← You are here. Card management. |
62
+ | **[@asgpay/cli](https://npmjs.com/package/@asgpay/cli)** | Command-line card management |
63
+ | **[@asgpay/mcp-server](https://npmjs.com/package/@asgpay/mcp-server)** | AI agent tools (Claude, Codex) |
64
+ | **[@asgpay/fund](https://npmjs.com/package/@asgpay/fund)** | One-link agent funding |
65
+
66
+ ## Links
67
+
68
+ - 🌐 [asgcard.dev](https://asgcard.dev)
69
+ - 📦 [npm @asgpay/pay](https://npmjs.com/package/@asgpay/pay)
70
+ - 𝕏 [@ASGCardx402](https://x.com/ASGCardx402)
71
+
72
+ ---
73
+
74
+ <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>
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@asgcard/sdk';
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+ module.exports = require('@asgcard/sdk');
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@asgpay/sdk",
3
+ "version": "1.0.0",
4
+ "description": "ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "keywords": [
8
+ "asg-pay", "asgpay", "virtual-card", "ai-agent-card", "mastercard",
9
+ "stripe-issuing", "card-management", "agent-wallet", "ai-payments",
10
+ "autonomous-agent", "fintech", "spend-management", "card-issuance",
11
+ "usdc", "stellar", "mcp", "asgcard"
12
+ ],
13
+ "author": "ASG Compute <aidar@asgcompute.com>",
14
+ "license": "MIT",
15
+ "homepage": "https://asgcard.dev",
16
+ "repository": { "type": "git", "url": "git+https://github.com/ASGCompute/asgcard-public.git" },
17
+ "bugs": { "url": "https://github.com/ASGCompute/asgcard-public/issues" },
18
+ "dependencies": { "@asgcard/sdk": "^1.1.4" },
19
+ "publishConfig": { "access": "public" }
20
+ }