@attesso/sdk 1.0.7 → 1.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.
- package/README.md +2 -0
- package/dist/client.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,8 @@ const result = await generateText({
|
|
|
103
103
|
| `attesso_cancel` | `{ paymentId }` | CancelResponse |
|
|
104
104
|
| `attesso_check_balance` | `{ mandateId? }` | `{ available, currency, status }` |
|
|
105
105
|
|
|
106
|
+
> **Note**: The Vercel AI SDK uses `attesso_pay` for payments. If using the MCP server (`@attesso/mcp`) directly with Claude Desktop or other MCP clients, the equivalent tool is named `attesso_execute_payment`.
|
|
107
|
+
|
|
106
108
|
## Origin Restrictions
|
|
107
109
|
|
|
108
110
|
```typescript
|
package/dist/client.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface AttessoClientConfig {
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```typescript
|
|
13
13
|
* const client = new AttessoClient({
|
|
14
|
-
* apiKey: '
|
|
14
|
+
* apiKey: 'rk_test_xyz',
|
|
15
15
|
* allowedOrigins: ['https://shop.example.com', 'https://*.trusted-merchant.com']
|
|
16
16
|
* });
|
|
17
17
|
* ```
|