@curless/agentbank-sdk 0.1.2 → 0.1.3
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 +7 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -56,6 +56,12 @@ if (auth.status === 'authorized') {
|
|
|
56
56
|
## Notes
|
|
57
57
|
|
|
58
58
|
- **Amounts** are minor-unit integers (USD = cents).
|
|
59
|
-
- **Errors** throw `AgentbankError` with `.status` + `.code
|
|
59
|
+
- **Errors** throw `AgentbankError` with `.status` + `.code` — including
|
|
60
|
+
transport failures: `status === 0` with code `timeout` / `aborted` /
|
|
61
|
+
`network_error` means no HTTP response happened. One catch type.
|
|
62
|
+
- **Timeouts**: every request has a 30s deadline by default. Tune per client
|
|
63
|
+
(`new Agentbank({ ..., timeoutMs })`) or per request
|
|
64
|
+
(`RequestOptions.timeoutMs`; `0` disables). `RequestOptions.signal` accepts
|
|
65
|
+
an `AbortSignal` for caller-side cancellation.
|
|
60
66
|
- ESM-only; Node ≥ 18 (uses global `fetch`).
|
|
61
67
|
- Pass `fetch` in the constructor to inject a custom implementation (tests, proxies).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curless/agentbank-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Official buyer/agent SDK for agentbank — OAuth, agent + customer management, Wallets, and the Pay spend-control plane.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@curless/agentbank-core": "^0.
|
|
20
|
+
"@curless/agentbank-core": "^0.2.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^22.10.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "git+https://gitlab.com/robin-ruan/agentbank.git",
|
|
42
|
-
"directory": "packages/sdk"
|
|
42
|
+
"directory": "packages/sdks/sdk"
|
|
43
43
|
},
|
|
44
44
|
"author": "robin",
|
|
45
45
|
"scripts": {
|