@dominusnode/mastra-tools 1.3.0 → 1.3.2
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/CHANGELOG.md +2 -0
- package/README.md +10 -6
- package/dist/toolkit.d.ts +29 -8
- package/dist/toolkit.js +723 -190
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
## 1.1.0
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
|
+
|
|
6
7
|
- Stripe checkout top-up tool (`dominusnode_topup_stripe`) — create Stripe Checkout sessions ($5–$1,000)
|
|
7
8
|
- Crypto top-up tool (`dominusnode_topup_crypto`) — NOWPayments invoices for BTC, ETH, LTC, XMR, ZEC, USDC, SOL, USDT, DAI, BNB, LINK ($5–$1,000)
|
|
8
9
|
- `dominusnode_update_wallet_policy` tool — update daily limits and domain allowlists for agentic wallets
|
|
9
10
|
- Comprehensive test suite: 167 tests covering SSRF protection (incl. DNS rebinding), input validation, credential scrubbing, payment response fields, and all 26 tools
|
|
10
11
|
|
|
11
12
|
### Fixed
|
|
13
|
+
|
|
12
14
|
- `topupCrypto`: use `Number.isFinite()` instead of `isNaN()` to correctly reject `NaN` and `Infinity` inputs
|
|
13
15
|
|
|
14
16
|
## 1.0.1
|
package/README.md
CHANGED
|
@@ -28,16 +28,17 @@ const balance = await toolkit.checkBalance();
|
|
|
28
28
|
|
|
29
29
|
## Configuration
|
|
30
30
|
|
|
31
|
-
| Environment Variable
|
|
32
|
-
|
|
33
|
-
| `DOMINUSNODE_API_KEY`
|
|
34
|
-
| `DOMINUSNODE_BASE_URL`
|
|
35
|
-
| `DOMINUSNODE_PROXY_HOST` | Proxy gateway host | `proxy.dominusnode.com`
|
|
36
|
-
| `DOMINUSNODE_PROXY_PORT` | Proxy gateway port | `8080`
|
|
31
|
+
| Environment Variable | Description | Default |
|
|
32
|
+
| ------------------------ | ------------------ | ----------------------------- |
|
|
33
|
+
| `DOMINUSNODE_API_KEY` | API key (required) | -- |
|
|
34
|
+
| `DOMINUSNODE_BASE_URL` | REST API base URL | `https://api.dominusnode.com` |
|
|
35
|
+
| `DOMINUSNODE_PROXY_HOST` | Proxy gateway host | `proxy.dominusnode.com` |
|
|
36
|
+
| `DOMINUSNODE_PROXY_PORT` | Proxy gateway port | `8080` |
|
|
37
37
|
|
|
38
38
|
## Available Tools (26)
|
|
39
39
|
|
|
40
40
|
### Proxy Operations
|
|
41
|
+
|
|
41
42
|
- `dominusnode_proxied_fetch` - Fetch a URL through the rotating proxy with geo-targeting
|
|
42
43
|
- `dominusnode_check_balance` - Check wallet balance and remaining bandwidth
|
|
43
44
|
- `dominusnode_check_usage` - View bandwidth usage statistics
|
|
@@ -45,6 +46,7 @@ const balance = await toolkit.checkBalance();
|
|
|
45
46
|
- `dominusnode_list_sessions` - List active proxy sessions
|
|
46
47
|
|
|
47
48
|
### Agentic Wallet Management
|
|
49
|
+
|
|
48
50
|
- `dominusnode_create_agentic_wallet` - Create a custodial sub-wallet
|
|
49
51
|
- `dominusnode_fund_agentic_wallet` - Transfer funds to an agentic wallet
|
|
50
52
|
- `dominusnode_agentic_wallet_balance` - Check agentic wallet balance
|
|
@@ -56,6 +58,7 @@ const balance = await toolkit.checkBalance();
|
|
|
56
58
|
- `dominusnode_update_wallet_policy` - Update daily limits and domain restrictions
|
|
57
59
|
|
|
58
60
|
### Team Management
|
|
61
|
+
|
|
59
62
|
- `dominusnode_create_team` - Create a team with shared wallet
|
|
60
63
|
- `dominusnode_list_teams` - List all teams
|
|
61
64
|
- `dominusnode_team_details` - Get team details
|
|
@@ -66,6 +69,7 @@ const balance = await toolkit.checkBalance();
|
|
|
66
69
|
- `dominusnode_update_team_member_role` - Change a member's role
|
|
67
70
|
|
|
68
71
|
### Payments
|
|
72
|
+
|
|
69
73
|
- `dominusnode_topup_paypal` - Top up wallet via PayPal ($5–$1,000)
|
|
70
74
|
- `dominusnode_topup_stripe` - Top up wallet via Stripe ($5–$1,000)
|
|
71
75
|
- `dominusnode_topup_crypto` - Top up wallet via crypto (BTC/ETH/LTC/XMR/ZEC/USDC/SOL/USDT/DAI/BNB/LINK)
|
package/dist/toolkit.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export declare class DominusNodeToolkit {
|
|
|
69
69
|
private cachedJwt;
|
|
70
70
|
private jwtExpiresAt;
|
|
71
71
|
constructor(config?: DominusNodeToolkitConfig);
|
|
72
|
+
private static countLeadingZeroBits;
|
|
73
|
+
private solvePoW;
|
|
72
74
|
private getApiKey;
|
|
73
75
|
private ensureAuth;
|
|
74
76
|
private apiRequest;
|
|
@@ -86,8 +88,10 @@ export declare class DominusNodeToolkit {
|
|
|
86
88
|
status: number;
|
|
87
89
|
headers: Record<string, string>;
|
|
88
90
|
body: string;
|
|
91
|
+
bytes: number;
|
|
89
92
|
pool: string;
|
|
90
93
|
country: string;
|
|
94
|
+
error?: string;
|
|
91
95
|
}>;
|
|
92
96
|
checkBalance(): Promise<{
|
|
93
97
|
balanceCents: number;
|
|
@@ -155,21 +159,20 @@ export declare class DominusNodeToolkit {
|
|
|
155
159
|
teamInviteMember(teamId: string, email: string, role?: string): Promise<Record<string, unknown>>;
|
|
156
160
|
teamListInvites(teamId: string): Promise<Record<string, unknown>>;
|
|
157
161
|
teamCancelInvite(teamId: string, inviteId: string): Promise<Record<string, unknown>>;
|
|
162
|
+
mppInfo(): Promise<Record<string, unknown>>;
|
|
163
|
+
payMpp(amountCents: number, method: string): Promise<Record<string, unknown>>;
|
|
164
|
+
mppSessionOpen(maxDepositCents: number, method: string, poolType?: string): Promise<Record<string, unknown>>;
|
|
165
|
+
mppSessionClose(channelId: string): Promise<Record<string, unknown>>;
|
|
158
166
|
getTools(): (import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
159
167
|
context: any;
|
|
160
168
|
}, {
|
|
161
169
|
status: number;
|
|
162
170
|
headers: Record<string, string>;
|
|
163
171
|
body: string;
|
|
172
|
+
bytes: number;
|
|
164
173
|
pool: string;
|
|
165
174
|
country: string;
|
|
166
|
-
|
|
167
|
-
status: number;
|
|
168
|
-
headers: {};
|
|
169
|
-
body: string;
|
|
170
|
-
pool: any;
|
|
171
|
-
country: any;
|
|
172
|
-
error: string;
|
|
175
|
+
error?: string;
|
|
173
176
|
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_proxied_fetch", unknown> | import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<unknown, {
|
|
174
177
|
balanceCents: number;
|
|
175
178
|
balanceUsd: number;
|
|
@@ -420,5 +423,23 @@ export declare class DominusNodeToolkit {
|
|
|
420
423
|
}, {
|
|
421
424
|
error?: string | undefined;
|
|
422
425
|
data?: unknown;
|
|
423
|
-
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_team_cancel_invite", unknown>)
|
|
426
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_team_cancel_invite", unknown> | import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<unknown, {
|
|
427
|
+
error?: string | undefined;
|
|
428
|
+
data?: unknown;
|
|
429
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_mpp_info", unknown> | import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
430
|
+
context: any;
|
|
431
|
+
}, {
|
|
432
|
+
error?: string | undefined;
|
|
433
|
+
data?: unknown;
|
|
434
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_pay_mpp", unknown> | import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
435
|
+
context: any;
|
|
436
|
+
}, {
|
|
437
|
+
error?: string | undefined;
|
|
438
|
+
data?: unknown;
|
|
439
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_mpp_session_open", unknown> | import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
440
|
+
context: any;
|
|
441
|
+
}, {
|
|
442
|
+
error?: string | undefined;
|
|
443
|
+
data?: unknown;
|
|
444
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "dominusnode_mpp_session_close", unknown>)[];
|
|
424
445
|
}
|