@agentwallex/openclaw 0.0.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.
@@ -0,0 +1,549 @@
1
+ import { AgentWallex } from '@agentwallex/sdk';
2
+ export { AgentWallex, ClientOptions } from '@agentwallex/sdk';
3
+
4
+ interface CreateAgentInput {
5
+ agent_name: string;
6
+ chain?: string;
7
+ agent_description?: string;
8
+ }
9
+ interface CreateAgentOutput {
10
+ agent_id: string;
11
+ agent_name: string;
12
+ chain: string;
13
+ status: string;
14
+ }
15
+ interface ListAgentsInput {
16
+ status?: string;
17
+ chain?: string;
18
+ }
19
+ interface ListAgentsOutput {
20
+ agents: Array<{
21
+ agent_id: string;
22
+ agent_name: string;
23
+ chain: string;
24
+ status: string;
25
+ }>;
26
+ total: number;
27
+ }
28
+ interface CreateWalletInput {
29
+ chain?: string;
30
+ }
31
+ interface CreateWalletOutput {
32
+ agent_id: string;
33
+ address: string;
34
+ chain: string;
35
+ }
36
+ interface PayInput {
37
+ to: string;
38
+ amount: string;
39
+ token?: string;
40
+ chain?: string;
41
+ memo?: string;
42
+ }
43
+ interface PayOutput {
44
+ transaction_id: string;
45
+ tx_hash?: string;
46
+ status: string;
47
+ }
48
+ interface CheckBalanceInput {
49
+ chain?: string;
50
+ }
51
+ interface CheckBalanceOutput {
52
+ available: string;
53
+ chain: string;
54
+ }
55
+ interface TxStatusInput {
56
+ transaction_id: string;
57
+ }
58
+ interface TxStatusOutput {
59
+ status: string;
60
+ tx_hash?: string;
61
+ confirmed_at?: string;
62
+ }
63
+
64
+ declare function createAgent(client: AgentWallex, input: CreateAgentInput): Promise<CreateAgentOutput>;
65
+
66
+ declare function listAgents(client: AgentWallex, input?: ListAgentsInput): Promise<ListAgentsOutput>;
67
+
68
+ declare function createWallet(client: AgentWallex, agentId: string, input?: CreateWalletInput): Promise<CreateWalletOutput>;
69
+
70
+ declare function pay(client: AgentWallex, agentId: string, input: PayInput): Promise<PayOutput>;
71
+
72
+ declare function checkBalance(client: AgentWallex, agentId: string, input?: CheckBalanceInput): Promise<CheckBalanceOutput>;
73
+
74
+ declare function txStatus(client: AgentWallex, agentId: string, input: TxStatusInput): Promise<TxStatusOutput>;
75
+
76
+ declare const openClawToolSchema: {
77
+ name: string;
78
+ description: string;
79
+ tools: ({
80
+ name: string;
81
+ description: string;
82
+ inputSchema: {
83
+ type: "object";
84
+ properties: {
85
+ api_key?: undefined;
86
+ agent_id?: undefined;
87
+ sandbox?: undefined;
88
+ agent_name?: undefined;
89
+ chain?: undefined;
90
+ agent_description?: undefined;
91
+ status?: undefined;
92
+ to?: undefined;
93
+ amount?: undefined;
94
+ token?: undefined;
95
+ memo?: undefined;
96
+ transaction_id?: undefined;
97
+ };
98
+ required: never[];
99
+ };
100
+ outputSchema: {
101
+ type: "object";
102
+ properties: {
103
+ configured: {
104
+ type: string;
105
+ };
106
+ dashboard_url: {
107
+ type: string;
108
+ };
109
+ instructions: {
110
+ type: string;
111
+ };
112
+ success?: undefined;
113
+ agent_name?: undefined;
114
+ message?: undefined;
115
+ agent_id?: undefined;
116
+ chain?: undefined;
117
+ status?: undefined;
118
+ agents?: undefined;
119
+ total?: undefined;
120
+ address?: undefined;
121
+ transaction_id?: undefined;
122
+ tx_hash?: undefined;
123
+ available?: undefined;
124
+ confirmed_at?: undefined;
125
+ };
126
+ required: string[];
127
+ };
128
+ } | {
129
+ name: string;
130
+ description: string;
131
+ inputSchema: {
132
+ type: "object";
133
+ properties: {
134
+ api_key: {
135
+ type: string;
136
+ description: string;
137
+ };
138
+ agent_id: {
139
+ type: string;
140
+ description: string;
141
+ };
142
+ sandbox: {
143
+ type: string;
144
+ description: string;
145
+ };
146
+ agent_name?: undefined;
147
+ chain?: undefined;
148
+ agent_description?: undefined;
149
+ status?: undefined;
150
+ to?: undefined;
151
+ amount?: undefined;
152
+ token?: undefined;
153
+ memo?: undefined;
154
+ transaction_id?: undefined;
155
+ };
156
+ required: string[];
157
+ };
158
+ outputSchema: {
159
+ type: "object";
160
+ properties: {
161
+ success: {
162
+ type: string;
163
+ };
164
+ agent_name: {
165
+ type: string;
166
+ };
167
+ message: {
168
+ type: string;
169
+ };
170
+ configured?: undefined;
171
+ dashboard_url?: undefined;
172
+ instructions?: undefined;
173
+ agent_id?: undefined;
174
+ chain?: undefined;
175
+ status?: undefined;
176
+ agents?: undefined;
177
+ total?: undefined;
178
+ address?: undefined;
179
+ transaction_id?: undefined;
180
+ tx_hash?: undefined;
181
+ available?: undefined;
182
+ confirmed_at?: undefined;
183
+ };
184
+ required: string[];
185
+ };
186
+ } | {
187
+ name: string;
188
+ description: string;
189
+ inputSchema: {
190
+ type: "object";
191
+ properties: {
192
+ agent_name: {
193
+ type: string;
194
+ description: string;
195
+ };
196
+ chain: {
197
+ type: string;
198
+ description: string;
199
+ };
200
+ agent_description: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ api_key?: undefined;
205
+ agent_id?: undefined;
206
+ sandbox?: undefined;
207
+ status?: undefined;
208
+ to?: undefined;
209
+ amount?: undefined;
210
+ token?: undefined;
211
+ memo?: undefined;
212
+ transaction_id?: undefined;
213
+ };
214
+ required: string[];
215
+ };
216
+ outputSchema: {
217
+ type: "object";
218
+ properties: {
219
+ agent_id: {
220
+ type: string;
221
+ };
222
+ agent_name: {
223
+ type: string;
224
+ };
225
+ chain: {
226
+ type: string;
227
+ };
228
+ status: {
229
+ type: string;
230
+ };
231
+ configured?: undefined;
232
+ dashboard_url?: undefined;
233
+ instructions?: undefined;
234
+ success?: undefined;
235
+ message?: undefined;
236
+ agents?: undefined;
237
+ total?: undefined;
238
+ address?: undefined;
239
+ transaction_id?: undefined;
240
+ tx_hash?: undefined;
241
+ available?: undefined;
242
+ confirmed_at?: undefined;
243
+ };
244
+ required: string[];
245
+ };
246
+ } | {
247
+ name: string;
248
+ description: string;
249
+ inputSchema: {
250
+ type: "object";
251
+ properties: {
252
+ status: {
253
+ type: string;
254
+ description: string;
255
+ };
256
+ chain: {
257
+ type: string;
258
+ description: string;
259
+ };
260
+ api_key?: undefined;
261
+ agent_id?: undefined;
262
+ sandbox?: undefined;
263
+ agent_name?: undefined;
264
+ agent_description?: undefined;
265
+ to?: undefined;
266
+ amount?: undefined;
267
+ token?: undefined;
268
+ memo?: undefined;
269
+ transaction_id?: undefined;
270
+ };
271
+ required: never[];
272
+ };
273
+ outputSchema: {
274
+ type: "object";
275
+ properties: {
276
+ agents: {
277
+ type: string;
278
+ items: {
279
+ type: string;
280
+ };
281
+ };
282
+ total: {
283
+ type: string;
284
+ };
285
+ configured?: undefined;
286
+ dashboard_url?: undefined;
287
+ instructions?: undefined;
288
+ success?: undefined;
289
+ agent_name?: undefined;
290
+ message?: undefined;
291
+ agent_id?: undefined;
292
+ chain?: undefined;
293
+ status?: undefined;
294
+ address?: undefined;
295
+ transaction_id?: undefined;
296
+ tx_hash?: undefined;
297
+ available?: undefined;
298
+ confirmed_at?: undefined;
299
+ };
300
+ required: string[];
301
+ };
302
+ } | {
303
+ name: string;
304
+ description: string;
305
+ inputSchema: {
306
+ type: "object";
307
+ properties: {
308
+ chain: {
309
+ type: string;
310
+ description: string;
311
+ };
312
+ api_key?: undefined;
313
+ agent_id?: undefined;
314
+ sandbox?: undefined;
315
+ agent_name?: undefined;
316
+ agent_description?: undefined;
317
+ status?: undefined;
318
+ to?: undefined;
319
+ amount?: undefined;
320
+ token?: undefined;
321
+ memo?: undefined;
322
+ transaction_id?: undefined;
323
+ };
324
+ required: never[];
325
+ };
326
+ outputSchema: {
327
+ type: "object";
328
+ properties: {
329
+ agent_id: {
330
+ type: string;
331
+ };
332
+ address: {
333
+ type: string;
334
+ };
335
+ chain: {
336
+ type: string;
337
+ };
338
+ configured?: undefined;
339
+ dashboard_url?: undefined;
340
+ instructions?: undefined;
341
+ success?: undefined;
342
+ agent_name?: undefined;
343
+ message?: undefined;
344
+ status?: undefined;
345
+ agents?: undefined;
346
+ total?: undefined;
347
+ transaction_id?: undefined;
348
+ tx_hash?: undefined;
349
+ available?: undefined;
350
+ confirmed_at?: undefined;
351
+ };
352
+ required: string[];
353
+ };
354
+ } | {
355
+ name: string;
356
+ description: string;
357
+ inputSchema: {
358
+ type: "object";
359
+ properties: {
360
+ to: {
361
+ type: string;
362
+ description: string;
363
+ };
364
+ amount: {
365
+ type: string;
366
+ description: string;
367
+ };
368
+ token: {
369
+ type: string;
370
+ description: string;
371
+ };
372
+ chain: {
373
+ type: string;
374
+ description: string;
375
+ };
376
+ memo: {
377
+ type: string;
378
+ description: string;
379
+ };
380
+ api_key?: undefined;
381
+ agent_id?: undefined;
382
+ sandbox?: undefined;
383
+ agent_name?: undefined;
384
+ agent_description?: undefined;
385
+ status?: undefined;
386
+ transaction_id?: undefined;
387
+ };
388
+ required: string[];
389
+ };
390
+ outputSchema: {
391
+ type: "object";
392
+ properties: {
393
+ transaction_id: {
394
+ type: string;
395
+ };
396
+ tx_hash: {
397
+ type: string;
398
+ };
399
+ status: {
400
+ type: string;
401
+ };
402
+ configured?: undefined;
403
+ dashboard_url?: undefined;
404
+ instructions?: undefined;
405
+ success?: undefined;
406
+ agent_name?: undefined;
407
+ message?: undefined;
408
+ agent_id?: undefined;
409
+ chain?: undefined;
410
+ agents?: undefined;
411
+ total?: undefined;
412
+ address?: undefined;
413
+ available?: undefined;
414
+ confirmed_at?: undefined;
415
+ };
416
+ required: string[];
417
+ };
418
+ } | {
419
+ name: string;
420
+ description: string;
421
+ inputSchema: {
422
+ type: "object";
423
+ properties: {
424
+ chain: {
425
+ type: string;
426
+ description: string;
427
+ };
428
+ api_key?: undefined;
429
+ agent_id?: undefined;
430
+ sandbox?: undefined;
431
+ agent_name?: undefined;
432
+ agent_description?: undefined;
433
+ status?: undefined;
434
+ to?: undefined;
435
+ amount?: undefined;
436
+ token?: undefined;
437
+ memo?: undefined;
438
+ transaction_id?: undefined;
439
+ };
440
+ required: never[];
441
+ };
442
+ outputSchema: {
443
+ type: "object";
444
+ properties: {
445
+ available: {
446
+ type: string;
447
+ };
448
+ chain: {
449
+ type: string;
450
+ };
451
+ configured?: undefined;
452
+ dashboard_url?: undefined;
453
+ instructions?: undefined;
454
+ success?: undefined;
455
+ agent_name?: undefined;
456
+ message?: undefined;
457
+ agent_id?: undefined;
458
+ status?: undefined;
459
+ agents?: undefined;
460
+ total?: undefined;
461
+ address?: undefined;
462
+ transaction_id?: undefined;
463
+ tx_hash?: undefined;
464
+ confirmed_at?: undefined;
465
+ };
466
+ required: string[];
467
+ };
468
+ } | {
469
+ name: string;
470
+ description: string;
471
+ inputSchema: {
472
+ type: "object";
473
+ properties: {
474
+ transaction_id: {
475
+ type: string;
476
+ description: string;
477
+ };
478
+ api_key?: undefined;
479
+ agent_id?: undefined;
480
+ sandbox?: undefined;
481
+ agent_name?: undefined;
482
+ chain?: undefined;
483
+ agent_description?: undefined;
484
+ status?: undefined;
485
+ to?: undefined;
486
+ amount?: undefined;
487
+ token?: undefined;
488
+ memo?: undefined;
489
+ };
490
+ required: string[];
491
+ };
492
+ outputSchema: {
493
+ type: "object";
494
+ properties: {
495
+ status: {
496
+ type: string;
497
+ };
498
+ tx_hash: {
499
+ type: string;
500
+ };
501
+ confirmed_at: {
502
+ type: string;
503
+ };
504
+ configured?: undefined;
505
+ dashboard_url?: undefined;
506
+ instructions?: undefined;
507
+ success?: undefined;
508
+ agent_name?: undefined;
509
+ message?: undefined;
510
+ agent_id?: undefined;
511
+ chain?: undefined;
512
+ agents?: undefined;
513
+ total?: undefined;
514
+ address?: undefined;
515
+ transaction_id?: undefined;
516
+ available?: undefined;
517
+ };
518
+ required: string[];
519
+ };
520
+ })[];
521
+ };
522
+ interface ToolResult {
523
+ content: Array<{
524
+ type: 'text';
525
+ text: string;
526
+ }>;
527
+ }
528
+ interface ToolRegistration {
529
+ name: string;
530
+ description: string;
531
+ parameters: Record<string, unknown>;
532
+ execute: (id: string, params: Record<string, unknown>) => Promise<ToolResult>;
533
+ }
534
+ interface OpenClawPluginApi {
535
+ registerTool(tool: ToolRegistration): void;
536
+ }
537
+ declare function register(api: OpenClawPluginApi): void;
538
+
539
+ interface StoredConfig {
540
+ apiKey: string;
541
+ agentId: string;
542
+ sandbox?: boolean;
543
+ }
544
+ declare function loadConfig(): StoredConfig | null;
545
+ declare function requireConfig(): StoredConfig;
546
+ declare function saveConfig(config: StoredConfig): void;
547
+ declare function isConfigured(): boolean;
548
+
549
+ export { type CheckBalanceInput, type CheckBalanceOutput, type CreateAgentInput, type CreateAgentOutput, type CreateWalletInput, type CreateWalletOutput, type ListAgentsInput, type ListAgentsOutput, type PayInput, type PayOutput, type StoredConfig, type TxStatusInput, type TxStatusOutput, checkBalance, createAgent, createWallet, isConfigured, listAgents, loadConfig, openClawToolSchema, pay, register, requireConfig, saveConfig, txStatus };