@dominusnode/pi-extension 1.1.0 → 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/CHANGELOG.md +1 -0
- package/README.md +63 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.js +471 -32
- package/dist/toolkit.d.ts +38 -1
- package/dist/toolkit.js +784 -54
- package/package.json +3 -1
- package/skills/use-dominus-proxy.md +37 -31
package/dist/toolkit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Dominus Node Pi Extension Toolkit
|
|
3
3
|
*
|
|
4
|
-
* Provides
|
|
4
|
+
* Provides 53 tools for the pi-mono agent framework (github.com/badlogic/pi-mono).
|
|
5
5
|
* Covers proxied fetching, wallet management, agentic wallets, teams,
|
|
6
6
|
* Stripe/PayPal/crypto top-up, and x402 micropayment info.
|
|
7
7
|
*
|
|
@@ -64,6 +64,8 @@ export declare class DominusNodeToolkit {
|
|
|
64
64
|
private tokenExpiresAt;
|
|
65
65
|
private _authPromise;
|
|
66
66
|
constructor(options?: DominusNodeToolkitOptions);
|
|
67
|
+
private static _countLeadingZeroBits;
|
|
68
|
+
private _solvePoW;
|
|
67
69
|
private _authenticate;
|
|
68
70
|
private _ensureAuth;
|
|
69
71
|
private _apiRequest;
|
|
@@ -94,4 +96,39 @@ export declare class DominusNodeToolkit {
|
|
|
94
96
|
topupCrypto(amountUsd: number, currency: string): Promise<PiToolResult>;
|
|
95
97
|
x402Info(): Promise<PiToolResult>;
|
|
96
98
|
updateWalletPolicy(walletId: string, dailyLimitCents?: number, allowedDomains?: string[]): Promise<PiToolResult>;
|
|
99
|
+
private _rawRequest;
|
|
100
|
+
private static readonly EMAIL_RE;
|
|
101
|
+
private static validateEmail;
|
|
102
|
+
private static validatePassword;
|
|
103
|
+
getProxyStatus(): Promise<PiToolResult>;
|
|
104
|
+
getTransactions(limit?: number): Promise<PiToolResult>;
|
|
105
|
+
getForecast(): Promise<PiToolResult>;
|
|
106
|
+
checkPayment(invoiceId: string): Promise<PiToolResult>;
|
|
107
|
+
getDailyUsage(days?: number): Promise<PiToolResult>;
|
|
108
|
+
getTopHosts(limit?: number): Promise<PiToolResult>;
|
|
109
|
+
register(email: string, password: string): Promise<PiToolResult>;
|
|
110
|
+
login(email: string, password: string): Promise<PiToolResult>;
|
|
111
|
+
getAccountInfo(): Promise<PiToolResult>;
|
|
112
|
+
verifyEmail(token: string): Promise<PiToolResult>;
|
|
113
|
+
resendVerification(): Promise<PiToolResult>;
|
|
114
|
+
updatePassword(currentPassword: string, newPassword: string): Promise<PiToolResult>;
|
|
115
|
+
listKeys(): Promise<PiToolResult>;
|
|
116
|
+
createKey(label: string): Promise<PiToolResult>;
|
|
117
|
+
revokeKey(keyId: string): Promise<PiToolResult>;
|
|
118
|
+
getPlan(): Promise<PiToolResult>;
|
|
119
|
+
listPlans(): Promise<PiToolResult>;
|
|
120
|
+
changePlan(planId: string): Promise<PiToolResult>;
|
|
121
|
+
teamDelete(teamId: string): Promise<PiToolResult>;
|
|
122
|
+
teamRevokeKey(teamId: string, keyId: string): Promise<PiToolResult>;
|
|
123
|
+
teamListKeys(teamId: string): Promise<PiToolResult>;
|
|
124
|
+
teamListMembers(teamId: string): Promise<PiToolResult>;
|
|
125
|
+
teamAddMember(teamId: string, userId: string, role?: string): Promise<PiToolResult>;
|
|
126
|
+
teamRemoveMember(teamId: string, userId: string): Promise<PiToolResult>;
|
|
127
|
+
teamInviteMember(teamId: string, email: string, role?: string): Promise<PiToolResult>;
|
|
128
|
+
teamListInvites(teamId: string): Promise<PiToolResult>;
|
|
129
|
+
teamCancelInvite(teamId: string, inviteId: string): Promise<PiToolResult>;
|
|
130
|
+
mppInfo(): Promise<PiToolResult>;
|
|
131
|
+
payMpp(amountCents: number, method: string): Promise<PiToolResult>;
|
|
132
|
+
mppSessionOpen(maxDepositCents: number, method: string, poolType?: string): Promise<PiToolResult>;
|
|
133
|
+
mppSessionClose(channelId: string): Promise<PiToolResult>;
|
|
97
134
|
}
|