@dominusnode/ai-tools 1.1.1 → 1.3.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 CHANGED
@@ -52,7 +52,8 @@ const { text } = await generateText({
52
52
  model: openai("gpt-4o"),
53
53
  tools,
54
54
  maxSteps: 10,
55
- prompt: "Fetch https://httpbin.org/ip through a US datacenter proxy and tell me the IP",
55
+ prompt:
56
+ "Fetch https://httpbin.org/ip through a US datacenter proxy and tell me the IP",
56
57
  });
57
58
 
58
59
  console.log(text);
@@ -64,14 +65,14 @@ console.log(text);
64
65
 
65
66
  Make HTTP requests through Dominus Node's rotating proxy network with geo-targeting support.
66
67
 
67
- | Parameter | Type | Required | Description |
68
- |-------------|-----------------------------------------|----------|----------------------------------------------|
69
- | `url` | `string` (URL) | Yes | The URL to fetch through the proxy |
70
- | `method` | `"GET" \| "POST" \| "PUT" \| "DELETE"` | No | HTTP method (default: `GET`) |
71
- | `country` | `string` (2-letter ISO) | No | Country code for geo-targeting |
72
- | `proxyType` | `"dc" \| "residential"` | No | Proxy type (default: `dc`) |
73
- | `headers` | `Record<string, string>` | No | Additional HTTP headers |
74
- | `body` | `string` | No | Request body for POST/PUT |
68
+ | Parameter | Type | Required | Description |
69
+ | ----------- | ------------------------------ | -------- | ---------------------------------- |
70
+ | `url` | `string` (URL) | Yes | The URL to fetch through the proxy |
71
+ | `method` | `"GET" \| "HEAD" \| "OPTIONS"` | No | HTTP method (default: `GET`) |
72
+ | `country` | `string` (2-letter ISO) | No | Country code for geo-targeting |
73
+ | `proxyType` | `"dc" \| "residential"` | No | Proxy type (default: `dc`) |
74
+ | `headers` | `Record<string, string>` | No | Additional HTTP headers |
75
+ | `body` | `string` | No | Not used (read-only methods only) |
75
76
 
76
77
  **Returns:** `{ status, statusText, headers, body, proxyType, country }`
77
78
 
@@ -89,9 +90,9 @@ Check the current Dominus Node wallet balance.
89
90
 
90
91
  Check proxy usage statistics for a given time period.
91
92
 
92
- | Parameter | Type | Required | Description |
93
- |-----------|---------------------------------|----------|--------------------------|
94
- | `period` | `"day" \| "week" \| "month"` | No | Time window for stats |
93
+ | Parameter | Type | Required | Description |
94
+ | --------- | ---------------------------- | -------- | --------------------- |
95
+ | `period` | `"day" \| "week" \| "month"` | No | Time window for stats |
95
96
 
96
97
  **Returns:** `{ summary: { totalBytes, totalGB, totalCostCents, totalCostUsd, requestCount }, period, recordCount }`
97
98
 
@@ -163,16 +164,17 @@ const { text } = await generateText({
163
164
  model: anthropic("claude-sonnet-4-20250514"),
164
165
  tools,
165
166
  maxSteps: 5,
166
- prompt: "Check my balance, then fetch https://example.com through a German proxy",
167
+ prompt:
168
+ "Check my balance, then fetch https://example.com through a German proxy",
167
169
  });
168
170
  ```
169
171
 
170
172
  ## Environment Variables
171
173
 
172
- | Variable | Description | Default |
173
- |-------------------------|---------------------------------------|---------------------------------|
174
- | `DOMINUSNODE_API_KEY` | Dominus Node API key | Required |
175
- | `DOMINUSNODE_BASE_URL` | Dominus Node API base URL | `https://api.dominusnode.com` |
174
+ | Variable | Description | Default |
175
+ | ---------------------- | ------------------------- | ----------------------------- |
176
+ | `DOMINUSNODE_API_KEY` | Dominus Node API key | Required |
177
+ | `DOMINUSNODE_BASE_URL` | Dominus Node API base URL | `https://api.dominusnode.com` |
176
178
 
177
179
  ## Pricing
178
180
 
@@ -1,5 +1,5 @@
1
1
  import { DominusNodeClient } from "@dominusnode/sdk";
2
- import { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool } from "./tools.js";
2
+ import { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, createRegisterTool, createLoginTool, createGetAccountInfoTool, createVerifyEmailTool, createResendVerificationTool, createUpdatePasswordTool, createListKeysTool, createCreateKeyTool, createRevokeKeyTool, createGetTransactionsTool, createGetForecastTool, createCheckPaymentTool, createGetDailyUsageTool, createGetTopHostsTool, createGetPlanTool, createListPlansTool, createChangePlanTool, createGetProxyStatusTool, createCreateTeamTool, createListTeamsTool, createTeamDetailsTool, createUpdateTeamTool, createTeamDeleteTool, createTeamFundTool, createTeamCreateKeyTool, createTeamRevokeKeyTool, createTeamListKeysTool, createTeamUsageTool, createTeamListMembersTool, createTeamAddMemberTool, createTeamRemoveMemberTool, createUpdateTeamMemberRoleTool, createTeamInviteMemberTool, createTeamListInvitesTool, createTeamCancelInviteTool, createMppInfoTool, createMppChallengeTool, createPayMppTool, createMppSessionOpenTool, createMppSessionCloseTool } from "./tools.js";
3
3
  /**
4
4
  * Configuration for creating Dominus Node AI tools.
5
5
  */
@@ -36,49 +36,131 @@ export interface DominusNodeToolsConfig {
36
36
  agentSecret?: string;
37
37
  }
38
38
  /**
39
- * The set of Dominus Node tools for use with the Vercel AI SDK.
39
+ * The full set of Dominus Node tools for use with the Vercel AI SDK.
40
+ * Provides 57 tools covering the complete DomiNode API surface.
40
41
  */
41
42
  export interface DominusNodeTools {
42
43
  /** Make HTTP requests through Dominus Node's rotating proxy network. */
43
44
  proxiedFetch: ReturnType<typeof createProxiedFetchTool>;
44
- /** Check the current wallet balance. */
45
- checkBalance: ReturnType<typeof createCheckBalanceTool>;
46
- /** Check proxy usage statistics for a given period. */
47
- checkUsage: ReturnType<typeof createCheckUsageTool>;
48
45
  /** Get proxy endpoint configuration and supported countries. */
49
46
  getProxyConfig: ReturnType<typeof createGetProxyConfigTool>;
47
+ /** Get proxy health and status information. */
48
+ getProxyStatus: ReturnType<typeof createGetProxyStatusTool>;
50
49
  /** List all active proxy sessions. */
51
50
  listSessions: ReturnType<typeof createListSessionsTool>;
51
+ /** Check the current wallet balance. */
52
+ checkBalance: ReturnType<typeof createCheckBalanceTool>;
53
+ /** Get wallet transaction history. */
54
+ getTransactions: ReturnType<typeof createGetTransactionsTool>;
55
+ /** Get wallet balance forecast. */
56
+ getForecast: ReturnType<typeof createGetForecastTool>;
52
57
  /** Top up wallet balance via PayPal. */
53
58
  topupPaypal: ReturnType<typeof createTopupPaypalTool>;
54
- /** Top up wallet balance via Stripe (credit/debit card, Apple Pay, Google Pay, Link). */
59
+ /** Top up wallet balance via Stripe. */
55
60
  topupStripe: ReturnType<typeof createTopupStripeTool>;
56
- /** Top up wallet balance via cryptocurrency (BTC, ETH, XMR, etc.). */
61
+ /** Top up wallet balance via cryptocurrency. */
57
62
  topupCrypto: ReturnType<typeof createTopupCryptoTool>;
63
+ /** Check crypto payment invoice status. */
64
+ checkPayment: ReturnType<typeof createCheckPaymentTool>;
58
65
  /** Get x402 micropayment protocol information. */
59
66
  x402Info: ReturnType<typeof createX402InfoTool>;
67
+ /** Check proxy usage statistics for a given period. */
68
+ checkUsage: ReturnType<typeof createCheckUsageTool>;
69
+ /** Get daily usage breakdown. */
70
+ getDailyUsage: ReturnType<typeof createGetDailyUsageTool>;
71
+ /** Get top accessed hosts. */
72
+ getTopHosts: ReturnType<typeof createGetTopHostsTool>;
73
+ /** Register a new account. */
74
+ register: ReturnType<typeof createRegisterTool>;
75
+ /** Log into an existing account. */
76
+ login: ReturnType<typeof createLoginTool>;
77
+ /** Get current account information. */
78
+ getAccountInfo: ReturnType<typeof createGetAccountInfoTool>;
79
+ /** Verify email with token. */
80
+ verifyEmail: ReturnType<typeof createVerifyEmailTool>;
81
+ /** Resend email verification. */
82
+ resendVerification: ReturnType<typeof createResendVerificationTool>;
83
+ /** Change account password. */
84
+ updatePassword: ReturnType<typeof createUpdatePasswordTool>;
85
+ /** List all API keys. */
86
+ listKeys: ReturnType<typeof createListKeysTool>;
87
+ /** Create a new API key. */
88
+ createKey: ReturnType<typeof createCreateKeyTool>;
89
+ /** Revoke an API key. */
90
+ revokeKey: ReturnType<typeof createRevokeKeyTool>;
91
+ /** Get current user's plan. */
92
+ getPlan: ReturnType<typeof createGetPlanTool>;
93
+ /** List all available plans. */
94
+ listPlans: ReturnType<typeof createListPlansTool>;
95
+ /** Change plan. */
96
+ changePlan: ReturnType<typeof createChangePlanTool>;
60
97
  /** Create a new agentic sub-wallet. */
61
98
  createAgenticWallet: ReturnType<typeof createCreateAgenticWalletTool>;
62
- /** Fund an agentic sub-wallet from the main wallet. */
99
+ /** Fund an agentic sub-wallet. */
63
100
  fundAgenticWallet: ReturnType<typeof createFundAgenticWalletTool>;
64
- /** Check the balance of an agentic sub-wallet. */
101
+ /** Check agentic wallet balance. */
65
102
  agenticWalletBalance: ReturnType<typeof createAgenticWalletBalanceTool>;
66
103
  /** List all agentic sub-wallets. */
67
104
  listAgenticWallets: ReturnType<typeof createListAgenticWalletsTool>;
68
- /** List transactions for an agentic sub-wallet. */
105
+ /** List agentic wallet transactions. */
69
106
  agenticTransactions: ReturnType<typeof createAgenticTransactionsTool>;
70
- /** Freeze an agentic sub-wallet. */
107
+ /** Freeze an agentic wallet. */
71
108
  freezeAgenticWallet: ReturnType<typeof createFreezeAgenticWalletTool>;
72
- /** Unfreeze an agentic sub-wallet. */
109
+ /** Unfreeze an agentic wallet. */
73
110
  unfreezeAgenticWallet: ReturnType<typeof createUnfreezeAgenticWalletTool>;
74
- /** Delete an agentic sub-wallet. */
111
+ /** Delete an agentic wallet. */
75
112
  deleteAgenticWallet: ReturnType<typeof createDeleteAgenticWalletTool>;
76
- /** Update the policy of an agentic sub-wallet. */
113
+ /** Update agentic wallet policy. */
77
114
  updateWalletPolicy: ReturnType<typeof createUpdateWalletPolicyTool>;
115
+ /** Create a new team. */
116
+ createTeam: ReturnType<typeof createCreateTeamTool>;
117
+ /** List all teams. */
118
+ listTeams: ReturnType<typeof createListTeamsTool>;
119
+ /** Get team details. */
120
+ teamDetails: ReturnType<typeof createTeamDetailsTool>;
121
+ /** Update team settings. */
122
+ updateTeam: ReturnType<typeof createUpdateTeamTool>;
123
+ /** Delete a team. */
124
+ teamDelete: ReturnType<typeof createTeamDeleteTool>;
125
+ /** Fund a team wallet. */
126
+ teamFund: ReturnType<typeof createTeamFundTool>;
127
+ /** Create a team API key. */
128
+ teamCreateKey: ReturnType<typeof createTeamCreateKeyTool>;
129
+ /** Revoke a team API key. */
130
+ teamRevokeKey: ReturnType<typeof createTeamRevokeKeyTool>;
131
+ /** List team API keys. */
132
+ teamListKeys: ReturnType<typeof createTeamListKeysTool>;
133
+ /** Get team usage stats. */
134
+ teamUsage: ReturnType<typeof createTeamUsageTool>;
135
+ /** List team members. */
136
+ teamListMembers: ReturnType<typeof createTeamListMembersTool>;
137
+ /** Add a member to team. */
138
+ teamAddMember: ReturnType<typeof createTeamAddMemberTool>;
139
+ /** Remove a member from team. */
140
+ teamRemoveMember: ReturnType<typeof createTeamRemoveMemberTool>;
141
+ /** Update a member's role. */
142
+ updateTeamMemberRole: ReturnType<typeof createUpdateTeamMemberRoleTool>;
143
+ /** Invite a member via email. */
144
+ teamInviteMember: ReturnType<typeof createTeamInviteMemberTool>;
145
+ /** List pending invitations. */
146
+ teamListInvites: ReturnType<typeof createTeamListInvitesTool>;
147
+ /** Cancel a pending invitation. */
148
+ teamCancelInvite: ReturnType<typeof createTeamCancelInviteTool>;
149
+ /** Get MPP protocol info (no auth required). */
150
+ mppInfo: ReturnType<typeof createMppInfoTool>;
151
+ /** Get an MPP challenge for keyless proxy access (no auth required). */
152
+ mppChallenge: ReturnType<typeof createMppChallengeTool>;
153
+ /** Top up wallet via MPP. */
154
+ payMpp: ReturnType<typeof createPayMppTool>;
155
+ /** Open an MPP pay-as-you-go session. */
156
+ mppSessionOpen: ReturnType<typeof createMppSessionOpenTool>;
157
+ /** Close an MPP pay-as-you-go session. */
158
+ mppSessionClose: ReturnType<typeof createMppSessionCloseTool>;
78
159
  }
79
160
  /**
80
- * Create a set of Vercel AI SDK tools for interacting with the Dominus Node
81
- * rotating proxy service.
161
+ * Create a full set of Vercel AI SDK tools for interacting with the Dominus Node
162
+ * rotating proxy service. Provides 57 tools covering account lifecycle, proxy usage,
163
+ * billing, teams, agentic wallets, plans, and more.
82
164
  *
83
165
  * @example
84
166
  * ```ts
@@ -93,7 +175,7 @@ export interface DominusNodeTools {
93
175
  * const result = await generateText({
94
176
  * model: openai("gpt-4o"),
95
177
  * tools,
96
- * prompt: "Check my proxy balance and fetch https://httpbin.org/ip through a US proxy",
178
+ * prompt: "Check my proxy balance, create a team, and fetch https://httpbin.org/ip through a US proxy",
97
179
  * });
98
180
  * ```
99
181
  */
@@ -1 +1 @@
1
- {"version":3,"file":"create-tools.d.ts","sourceRoot":"","sources":["../src/create-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,aAAa,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;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,gBAAgB,CAAC,CA2B3B;AAED;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACnB,gBAAgB,CAQlB"}
@@ -1,8 +1,25 @@
1
1
  import { DominusNodeClient } from "@dominusnode/sdk";
2
- import { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, } from "./tools.js";
2
+ import { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool,
3
+ // Account lifecycle
4
+ createRegisterTool, createLoginTool, createGetAccountInfoTool, createVerifyEmailTool, createResendVerificationTool, createUpdatePasswordTool,
5
+ // API keys
6
+ createListKeysTool, createCreateKeyTool, createRevokeKeyTool,
7
+ // Wallet extended
8
+ createGetTransactionsTool, createGetForecastTool, createCheckPaymentTool,
9
+ // Usage extended
10
+ createGetDailyUsageTool, createGetTopHostsTool,
11
+ // Plans
12
+ createGetPlanTool, createListPlansTool, createChangePlanTool,
13
+ // Proxy extended
14
+ createGetProxyStatusTool,
15
+ // Teams (full 17-tool suite)
16
+ createCreateTeamTool, createListTeamsTool, createTeamDetailsTool, createUpdateTeamTool, createTeamDeleteTool, createTeamFundTool, createTeamCreateKeyTool, createTeamRevokeKeyTool, createTeamListKeysTool, createTeamUsageTool, createTeamListMembersTool, createTeamAddMemberTool, createTeamRemoveMemberTool, createUpdateTeamMemberRoleTool, createTeamInviteMemberTool, createTeamListInvitesTool, createTeamCancelInviteTool,
17
+ // MPP (5)
18
+ createMppInfoTool, createMppChallengeTool, createPayMppTool, createMppSessionOpenTool, createMppSessionCloseTool, } from "./tools.js";
3
19
  /**
4
- * Create a set of Vercel AI SDK tools for interacting with the Dominus Node
5
- * rotating proxy service.
20
+ * Create a full set of Vercel AI SDK tools for interacting with the Dominus Node
21
+ * rotating proxy service. Provides 57 tools covering account lifecycle, proxy usage,
22
+ * billing, teams, agentic wallets, plans, and more.
6
23
  *
7
24
  * @example
8
25
  * ```ts
@@ -17,7 +34,7 @@ import { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, c
17
34
  * const result = await generateText({
18
35
  * model: openai("gpt-4o"),
19
36
  * tools,
20
- * prompt: "Check my proxy balance and fetch https://httpbin.org/ip through a US proxy",
37
+ * prompt: "Check my proxy balance, create a team, and fetch https://httpbin.org/ip through a US proxy",
21
38
  * });
22
39
  * ```
23
40
  */
@@ -26,7 +43,8 @@ export async function createDominusNodeTools(config) {
26
43
  if (!config.apiKey || typeof config.apiKey !== "string") {
27
44
  throw new Error("apiKey is required and must be a non-empty string");
28
45
  }
29
- if (!config.apiKey.startsWith("dn_live_") && !config.apiKey.startsWith("dn_test_")) {
46
+ if (!config.apiKey.startsWith("dn_live_") &&
47
+ !config.apiKey.startsWith("dn_test_")) {
30
48
  throw new Error('apiKey must start with "dn_live_" or "dn_test_"');
31
49
  }
32
50
  // Resolve agent secret from config or environment
@@ -39,26 +57,7 @@ export async function createDominusNodeTools(config) {
39
57
  agentSecret,
40
58
  });
41
59
  await client.connectWithKey(config.apiKey);
42
- return {
43
- proxiedFetch: createProxiedFetchTool(client, config.apiKey),
44
- checkBalance: createCheckBalanceTool(client),
45
- checkUsage: createCheckUsageTool(client),
46
- getProxyConfig: createGetProxyConfigTool(client),
47
- listSessions: createListSessionsTool(client),
48
- topupPaypal: createTopupPaypalTool(client),
49
- topupStripe: createTopupStripeTool(client),
50
- topupCrypto: createTopupCryptoTool(client),
51
- x402Info: createX402InfoTool(client),
52
- createAgenticWallet: createCreateAgenticWalletTool(client, agentSecret),
53
- fundAgenticWallet: createFundAgenticWalletTool(client, agentSecret),
54
- agenticWalletBalance: createAgenticWalletBalanceTool(client, agentSecret),
55
- listAgenticWallets: createListAgenticWalletsTool(client, agentSecret),
56
- agenticTransactions: createAgenticTransactionsTool(client, agentSecret),
57
- freezeAgenticWallet: createFreezeAgenticWalletTool(client, agentSecret),
58
- unfreezeAgenticWallet: createUnfreezeAgenticWalletTool(client, agentSecret),
59
- deleteAgenticWallet: createDeleteAgenticWalletTool(client, agentSecret),
60
- updateWalletPolicy: createUpdateWalletPolicyTool(client, agentSecret),
61
- };
60
+ return buildTools(client, config.apiKey, agentSecret);
62
61
  }
63
62
  /**
64
63
  * Create Dominus Node AI tools from an already-authenticated client instance.
@@ -73,25 +72,78 @@ export function createDominusNodeToolsFromClient(client, apiKey, agentSecret) {
73
72
  throw new Error("apiKey is required and must be a non-empty string");
74
73
  }
75
74
  const resolvedAgentSecret = agentSecret || process.env.DOMINUSNODE_AGENT_SECRET;
75
+ return buildTools(client, apiKey, resolvedAgentSecret);
76
+ }
77
+ function buildTools(client, apiKey, agentSecret) {
76
78
  return {
79
+ // Proxy & Fetch
77
80
  proxiedFetch: createProxiedFetchTool(client, apiKey),
78
- checkBalance: createCheckBalanceTool(client),
79
- checkUsage: createCheckUsageTool(client),
80
81
  getProxyConfig: createGetProxyConfigTool(client),
82
+ getProxyStatus: createGetProxyStatusTool(client, agentSecret),
83
+ // Sessions
81
84
  listSessions: createListSessionsTool(client),
85
+ // Wallet & Billing
86
+ checkBalance: createCheckBalanceTool(client),
87
+ getTransactions: createGetTransactionsTool(client, agentSecret),
88
+ getForecast: createGetForecastTool(client, agentSecret),
82
89
  topupPaypal: createTopupPaypalTool(client),
83
90
  topupStripe: createTopupStripeTool(client),
84
91
  topupCrypto: createTopupCryptoTool(client),
92
+ checkPayment: createCheckPaymentTool(client, agentSecret),
85
93
  x402Info: createX402InfoTool(client),
86
- createAgenticWallet: createCreateAgenticWalletTool(client, resolvedAgentSecret),
87
- fundAgenticWallet: createFundAgenticWalletTool(client, resolvedAgentSecret),
88
- agenticWalletBalance: createAgenticWalletBalanceTool(client, resolvedAgentSecret),
89
- listAgenticWallets: createListAgenticWalletsTool(client, resolvedAgentSecret),
90
- agenticTransactions: createAgenticTransactionsTool(client, resolvedAgentSecret),
91
- freezeAgenticWallet: createFreezeAgenticWalletTool(client, resolvedAgentSecret),
92
- unfreezeAgenticWallet: createUnfreezeAgenticWalletTool(client, resolvedAgentSecret),
93
- deleteAgenticWallet: createDeleteAgenticWalletTool(client, resolvedAgentSecret),
94
- updateWalletPolicy: createUpdateWalletPolicyTool(client, resolvedAgentSecret),
94
+ // Usage
95
+ checkUsage: createCheckUsageTool(client),
96
+ getDailyUsage: createGetDailyUsageTool(client, agentSecret),
97
+ getTopHosts: createGetTopHostsTool(client, agentSecret),
98
+ // Account lifecycle
99
+ register: createRegisterTool(agentSecret),
100
+ login: createLoginTool(agentSecret),
101
+ getAccountInfo: createGetAccountInfoTool(client, agentSecret),
102
+ verifyEmail: createVerifyEmailTool(agentSecret),
103
+ resendVerification: createResendVerificationTool(client, agentSecret),
104
+ updatePassword: createUpdatePasswordTool(client, agentSecret),
105
+ // API Keys
106
+ listKeys: createListKeysTool(client, agentSecret),
107
+ createKey: createCreateKeyTool(client, agentSecret),
108
+ revokeKey: createRevokeKeyTool(client, agentSecret),
109
+ // Plans
110
+ getPlan: createGetPlanTool(client, agentSecret),
111
+ listPlans: createListPlansTool(client, agentSecret),
112
+ changePlan: createChangePlanTool(client, agentSecret),
113
+ // Agentic Wallets
114
+ createAgenticWallet: createCreateAgenticWalletTool(client, agentSecret),
115
+ fundAgenticWallet: createFundAgenticWalletTool(client, agentSecret),
116
+ agenticWalletBalance: createAgenticWalletBalanceTool(client, agentSecret),
117
+ listAgenticWallets: createListAgenticWalletsTool(client, agentSecret),
118
+ agenticTransactions: createAgenticTransactionsTool(client, agentSecret),
119
+ freezeAgenticWallet: createFreezeAgenticWalletTool(client, agentSecret),
120
+ unfreezeAgenticWallet: createUnfreezeAgenticWalletTool(client, agentSecret),
121
+ deleteAgenticWallet: createDeleteAgenticWalletTool(client, agentSecret),
122
+ updateWalletPolicy: createUpdateWalletPolicyTool(client, agentSecret),
123
+ // Teams (full 17-tool suite)
124
+ createTeam: createCreateTeamTool(client, agentSecret),
125
+ listTeams: createListTeamsTool(client, agentSecret),
126
+ teamDetails: createTeamDetailsTool(client, agentSecret),
127
+ updateTeam: createUpdateTeamTool(client, agentSecret),
128
+ teamDelete: createTeamDeleteTool(client, agentSecret),
129
+ teamFund: createTeamFundTool(client, agentSecret),
130
+ teamCreateKey: createTeamCreateKeyTool(client, agentSecret),
131
+ teamRevokeKey: createTeamRevokeKeyTool(client, agentSecret),
132
+ teamListKeys: createTeamListKeysTool(client, agentSecret),
133
+ teamUsage: createTeamUsageTool(client, agentSecret),
134
+ teamListMembers: createTeamListMembersTool(client, agentSecret),
135
+ teamAddMember: createTeamAddMemberTool(client, agentSecret),
136
+ teamRemoveMember: createTeamRemoveMemberTool(client, agentSecret),
137
+ updateTeamMemberRole: createUpdateTeamMemberRoleTool(client, agentSecret),
138
+ teamInviteMember: createTeamInviteMemberTool(client, agentSecret),
139
+ teamListInvites: createTeamListInvitesTool(client, agentSecret),
140
+ teamCancelInvite: createTeamCancelInviteTool(client, agentSecret),
141
+ // MPP (5)
142
+ mppInfo: createMppInfoTool(client, agentSecret),
143
+ mppChallenge: createMppChallengeTool(client, agentSecret),
144
+ payMpp: createPayMppTool(client, agentSecret),
145
+ mppSessionOpen: createMppSessionOpenTool(client, agentSecret),
146
+ mppSessionClose: createMppSessionCloseTool(client, agentSecret),
95
147
  };
96
148
  }
97
149
  //# sourceMappingURL=create-tools.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-tools.js","sourceRoot":"","sources":["../src/create-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,YAAY,CAAC;AAqFpB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAA8B;IAE9B,0BAA0B;IAC1B,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,kDAAkD;IAClD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;IAE/E,qCAAqC;IACrC,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC;QACnC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,SAAS,EA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MAAM,EAAE,WAAW,CAAC;QAC3D,YAAY,EAAE,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC;QACzD,SAAS,EAAE,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC;QACnD,eAAe,EAAE,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC/D,aAAa,EAAE,uBAAuB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC3D,gBAAgB,EAAE,0BAA0B,CAAC,MAAM,EAAE,WAAW,CAAC;QACjE,oBAAoB,EAAE,8BAA8B,CAAC,MAAM,EAAE,WAAW,CAAC;QACzE,gBAAgB,EAAE,0BAA0B,CAAC,MAAM,EAAE,WAAW,CAAC;QACjE,eAAe,EAAE,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC/D,gBAAgB,EAAE,0BAA0B,CAAC,MAAM,EAAE,WAAW,CAAC;QAEjE,UAAU;QACV,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC/C,YAAY,EAAE,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC;QACzD,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC7C,cAAc,EAAE,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC;QAC7D,eAAe,EAAE,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC;KAChE,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { createDominusNodeTools, createDominusNodeToolsFromClient, } from "./create-tools.js";
2
2
  export type { DominusNodeToolsConfig, DominusNodeTools, } from "./create-tools.js";
3
- export { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, } from "./tools.js";
3
+ export { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, createMppChallengeTool, } from "./tools.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Factory functions
2
2
  export { createDominusNodeTools, createDominusNodeToolsFromClient, } from "./create-tools.js";
3
3
  // Individual tool creators (for advanced use cases)
4
- export { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, } from "./tools.js";
4
+ export { createProxiedFetchTool, createCheckBalanceTool, createCheckUsageTool, createGetProxyConfigTool, createListSessionsTool, createTopupPaypalTool, createTopupStripeTool, createTopupCryptoTool, createX402InfoTool, createCreateAgenticWalletTool, createFundAgenticWalletTool, createAgenticWalletBalanceTool, createListAgenticWalletsTool, createAgenticTransactionsTool, createFreezeAgenticWalletTool, createUnfreezeAgenticWalletTool, createDeleteAgenticWalletTool, createUpdateWalletPolicyTool, createMppChallengeTool, } from "./tools.js";
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,EACL,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,mBAAmB,CAAC;AAM3B,oDAAoD;AACpD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,EACL,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,mBAAmB,CAAC;AAM3B,oDAAoD;AACpD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,YAAY,CAAC"}