@agentpay-ai/shared 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @agentpay-ai/shared
2
+
3
+ Shared schemas, chain metadata, token helpers, and intent types for AgentPay.
4
+
5
+ Use this package when building AgentPay-compatible tools that need the same validation rules as the MCP server, setup web, and CLI.
6
+
7
+ ## Included Modules
8
+
9
+ - Approval phrase parsing and payment intent types.
10
+ - BNB Chain stablecoin metadata and balance helpers.
11
+ - Wallet setup, invoice, x402, account admin, and payment tracking schemas.
12
+ - Route calldata hashing helpers used by guarded contract calls.
13
+
14
+ ## Example
15
+
16
+ ```ts
17
+ import { preparePaymentInputSchema } from "@agentpay-ai/shared";
18
+
19
+ const input = preparePaymentInputSchema.parse(candidatePayment);
20
+ ```
21
+
22
+ AgentPay validates untrusted inputs at runtime boundaries with Zod. Keep that pattern when extending the package.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@agentpay-ai/shared",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
7
7
  },
8
8
  "files": [
9
+ "README.md",
9
10
  "src/account-admin.ts",
10
11
  "src/approval.ts",
11
12
  "src/balance.ts",