@agentwallex/openclaw 0.0.3 → 0.1.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.
package/dist/index.d.cts CHANGED
@@ -48,9 +48,18 @@ interface PayOutput {
48
48
  interface CheckBalanceInput {
49
49
  chain?: string;
50
50
  }
51
- interface CheckBalanceOutput {
52
- available: string;
51
+ interface BalanceEntry {
53
52
  chain: string;
53
+ available: string;
54
+ locked: string;
55
+ pending_income: string;
56
+ total_deposited: string;
57
+ total_withdrawn: string;
58
+ total_paid: string;
59
+ total_earned: string;
60
+ }
61
+ interface CheckBalanceOutput {
62
+ balances: BalanceEntry[];
54
63
  }
55
64
  interface TxStatusInput {
56
65
  transaction_id: string;
@@ -60,19 +69,68 @@ interface TxStatusOutput {
60
69
  tx_hash?: string;
61
70
  confirmed_at?: string;
62
71
  }
72
+ interface UpdateAgentInput {
73
+ agent_id: string;
74
+ agent_name?: string;
75
+ agent_description?: string;
76
+ }
77
+ interface UpdateAgentOutput {
78
+ agent_id: string;
79
+ agent_name: string;
80
+ chain: string;
81
+ status: string;
82
+ }
83
+ interface DeleteAgentInput {
84
+ agent_id: string;
85
+ }
86
+ interface AgentStatusInput {
87
+ agent_id: string;
88
+ status: string;
89
+ }
90
+ interface AgentStatusOutput {
91
+ agent_id: string;
92
+ status: string;
93
+ }
94
+ interface ListTransactionsInput {
95
+ agent_id?: string;
96
+ status?: string;
97
+ direction?: string;
98
+ }
99
+ interface ListTransactionsOutput {
100
+ transactions: Array<{
101
+ transaction_id: string;
102
+ agent_id: string;
103
+ direction: string;
104
+ status: string;
105
+ amount: string;
106
+ token: string;
107
+ chain: string;
108
+ tx_hash?: string;
109
+ confirmed_at?: string;
110
+ }>;
111
+ total: number;
112
+ }
63
113
 
64
114
  declare function createAgent(client: AgentWallex, input: CreateAgentInput): Promise<CreateAgentOutput>;
65
115
 
66
116
  declare function listAgents(client: AgentWallex, input?: ListAgentsInput): Promise<ListAgentsOutput>;
67
117
 
118
+ declare function updateAgent(client: AgentWallex, input: UpdateAgentInput): Promise<UpdateAgentOutput>;
119
+
120
+ declare function deleteAgent(client: AgentWallex, input: DeleteAgentInput): Promise<void>;
121
+
122
+ declare function agentStatus(client: AgentWallex, input: AgentStatusInput): Promise<AgentStatusOutput>;
123
+
68
124
  declare function createWallet(client: AgentWallex, agentId: string, input?: CreateWalletInput): Promise<CreateWalletOutput>;
69
125
 
70
126
  declare function pay(client: AgentWallex, agentId: string, input: PayInput): Promise<PayOutput>;
71
127
 
72
- declare function checkBalance(client: AgentWallex, agentId: string, input?: CheckBalanceInput): Promise<CheckBalanceOutput>;
128
+ declare function checkBalance(client: AgentWallex, agentId: string, _input?: CheckBalanceInput): Promise<CheckBalanceOutput>;
73
129
 
74
130
  declare function txStatus(client: AgentWallex, agentId: string, input: TxStatusInput): Promise<TxStatusOutput>;
75
131
 
132
+ declare function listTransactions(client: AgentWallex, input?: ListTransactionsInput): Promise<ListTransactionsOutput>;
133
+
76
134
  declare const openClawToolSchema: {
77
135
  name: string;
78
136
  description: string;
@@ -94,6 +152,7 @@ declare const openClawToolSchema: {
94
152
  token?: undefined;
95
153
  memo?: undefined;
96
154
  transaction_id?: undefined;
155
+ direction?: undefined;
97
156
  };
98
157
  required: never[];
99
158
  };
@@ -120,8 +179,9 @@ declare const openClawToolSchema: {
120
179
  address?: undefined;
121
180
  transaction_id?: undefined;
122
181
  tx_hash?: undefined;
123
- available?: undefined;
182
+ balances?: undefined;
124
183
  confirmed_at?: undefined;
184
+ transactions?: undefined;
125
185
  };
126
186
  required: string[];
127
187
  };
@@ -152,6 +212,7 @@ declare const openClawToolSchema: {
152
212
  token?: undefined;
153
213
  memo?: undefined;
154
214
  transaction_id?: undefined;
215
+ direction?: undefined;
155
216
  };
156
217
  required: string[];
157
218
  };
@@ -178,8 +239,9 @@ declare const openClawToolSchema: {
178
239
  address?: undefined;
179
240
  transaction_id?: undefined;
180
241
  tx_hash?: undefined;
181
- available?: undefined;
242
+ balances?: undefined;
182
243
  confirmed_at?: undefined;
244
+ transactions?: undefined;
183
245
  };
184
246
  required: string[];
185
247
  };
@@ -210,6 +272,7 @@ declare const openClawToolSchema: {
210
272
  token?: undefined;
211
273
  memo?: undefined;
212
274
  transaction_id?: undefined;
275
+ direction?: undefined;
213
276
  };
214
277
  required: string[];
215
278
  };
@@ -238,8 +301,9 @@ declare const openClawToolSchema: {
238
301
  address?: undefined;
239
302
  transaction_id?: undefined;
240
303
  tx_hash?: undefined;
241
- available?: undefined;
304
+ balances?: undefined;
242
305
  confirmed_at?: undefined;
306
+ transactions?: undefined;
243
307
  };
244
308
  required: string[];
245
309
  };
@@ -267,6 +331,7 @@ declare const openClawToolSchema: {
267
331
  token?: undefined;
268
332
  memo?: undefined;
269
333
  transaction_id?: undefined;
334
+ direction?: undefined;
270
335
  };
271
336
  required: never[];
272
337
  };
@@ -294,8 +359,176 @@ declare const openClawToolSchema: {
294
359
  address?: undefined;
295
360
  transaction_id?: undefined;
296
361
  tx_hash?: undefined;
297
- available?: undefined;
362
+ balances?: undefined;
363
+ confirmed_at?: undefined;
364
+ transactions?: undefined;
365
+ };
366
+ required: string[];
367
+ };
368
+ } | {
369
+ name: string;
370
+ description: string;
371
+ inputSchema: {
372
+ type: "object";
373
+ properties: {
374
+ agent_id: {
375
+ type: string;
376
+ description: string;
377
+ };
378
+ agent_name: {
379
+ type: string;
380
+ description: string;
381
+ };
382
+ agent_description: {
383
+ type: string;
384
+ description: string;
385
+ };
386
+ api_key?: undefined;
387
+ sandbox?: undefined;
388
+ chain?: undefined;
389
+ status?: undefined;
390
+ to?: undefined;
391
+ amount?: undefined;
392
+ token?: undefined;
393
+ memo?: undefined;
394
+ transaction_id?: undefined;
395
+ direction?: undefined;
396
+ };
397
+ required: string[];
398
+ };
399
+ outputSchema: {
400
+ type: "object";
401
+ properties: {
402
+ agent_id: {
403
+ type: string;
404
+ };
405
+ agent_name: {
406
+ type: string;
407
+ };
408
+ chain: {
409
+ type: string;
410
+ };
411
+ status: {
412
+ type: string;
413
+ };
414
+ configured?: undefined;
415
+ dashboard_url?: undefined;
416
+ instructions?: undefined;
417
+ success?: undefined;
418
+ message?: undefined;
419
+ agents?: undefined;
420
+ total?: undefined;
421
+ address?: undefined;
422
+ transaction_id?: undefined;
423
+ tx_hash?: undefined;
424
+ balances?: undefined;
425
+ confirmed_at?: undefined;
426
+ transactions?: undefined;
427
+ };
428
+ required: string[];
429
+ };
430
+ } | {
431
+ name: string;
432
+ description: string;
433
+ inputSchema: {
434
+ type: "object";
435
+ properties: {
436
+ agent_id: {
437
+ type: string;
438
+ description: string;
439
+ };
440
+ api_key?: undefined;
441
+ sandbox?: undefined;
442
+ agent_name?: undefined;
443
+ chain?: undefined;
444
+ agent_description?: undefined;
445
+ status?: undefined;
446
+ to?: undefined;
447
+ amount?: undefined;
448
+ token?: undefined;
449
+ memo?: undefined;
450
+ transaction_id?: undefined;
451
+ direction?: undefined;
452
+ };
453
+ required: string[];
454
+ };
455
+ outputSchema: {
456
+ type: "object";
457
+ properties: {
458
+ success: {
459
+ type: string;
460
+ };
461
+ configured?: undefined;
462
+ dashboard_url?: undefined;
463
+ instructions?: undefined;
464
+ agent_name?: undefined;
465
+ message?: undefined;
466
+ agent_id?: undefined;
467
+ chain?: undefined;
468
+ status?: undefined;
469
+ agents?: undefined;
470
+ total?: undefined;
471
+ address?: undefined;
472
+ transaction_id?: undefined;
473
+ tx_hash?: undefined;
474
+ balances?: undefined;
475
+ confirmed_at?: undefined;
476
+ transactions?: undefined;
477
+ };
478
+ required: string[];
479
+ };
480
+ } | {
481
+ name: string;
482
+ description: string;
483
+ inputSchema: {
484
+ type: "object";
485
+ properties: {
486
+ agent_id: {
487
+ type: string;
488
+ description: string;
489
+ };
490
+ status: {
491
+ type: string;
492
+ description: string;
493
+ };
494
+ api_key?: undefined;
495
+ sandbox?: undefined;
496
+ agent_name?: undefined;
497
+ chain?: undefined;
498
+ agent_description?: undefined;
499
+ to?: undefined;
500
+ amount?: undefined;
501
+ token?: undefined;
502
+ memo?: undefined;
503
+ transaction_id?: undefined;
504
+ direction?: undefined;
505
+ };
506
+ required: string[];
507
+ };
508
+ outputSchema: {
509
+ type: "object";
510
+ properties: {
511
+ agent_id: {
512
+ type: string;
513
+ };
514
+ status: {
515
+ type: string;
516
+ };
517
+ configured?: undefined;
518
+ dashboard_url?: undefined;
519
+ instructions?: undefined;
520
+ success?: undefined;
521
+ agent_name?: undefined;
522
+ message?: undefined;
523
+ chain?: undefined;
524
+ agents?: undefined;
525
+ total?: undefined;
526
+ address?: undefined;
527
+ transaction_id?: undefined;
528
+ tx_hash?: undefined;
529
+ balances?: undefined;
298
530
  confirmed_at?: undefined;
531
+ transactions?: undefined;
299
532
  };
300
533
  required: string[];
301
534
  };
@@ -320,6 +553,7 @@ declare const openClawToolSchema: {
320
553
  token?: undefined;
321
554
  memo?: undefined;
322
555
  transaction_id?: undefined;
556
+ direction?: undefined;
323
557
  };
324
558
  required: never[];
325
559
  };
@@ -346,8 +580,9 @@ declare const openClawToolSchema: {
346
580
  total?: undefined;
347
581
  transaction_id?: undefined;
348
582
  tx_hash?: undefined;
349
- available?: undefined;
583
+ balances?: undefined;
350
584
  confirmed_at?: undefined;
585
+ transactions?: undefined;
351
586
  };
352
587
  required: string[];
353
588
  };
@@ -384,6 +619,7 @@ declare const openClawToolSchema: {
384
619
  agent_description?: undefined;
385
620
  status?: undefined;
386
621
  transaction_id?: undefined;
622
+ direction?: undefined;
387
623
  };
388
624
  required: string[];
389
625
  };
@@ -410,8 +646,9 @@ declare const openClawToolSchema: {
410
646
  agents?: undefined;
411
647
  total?: undefined;
412
648
  address?: undefined;
413
- available?: undefined;
649
+ balances?: undefined;
414
650
  confirmed_at?: undefined;
651
+ transactions?: undefined;
415
652
  };
416
653
  required: string[];
417
654
  };
@@ -436,17 +673,44 @@ declare const openClawToolSchema: {
436
673
  token?: undefined;
437
674
  memo?: undefined;
438
675
  transaction_id?: undefined;
676
+ direction?: undefined;
439
677
  };
440
678
  required: never[];
441
679
  };
442
680
  outputSchema: {
443
681
  type: "object";
444
682
  properties: {
445
- available: {
446
- type: string;
447
- };
448
- chain: {
683
+ balances: {
449
684
  type: string;
685
+ items: {
686
+ type: string;
687
+ properties: {
688
+ chain: {
689
+ type: string;
690
+ };
691
+ available: {
692
+ type: string;
693
+ };
694
+ locked: {
695
+ type: string;
696
+ };
697
+ pending_income: {
698
+ type: string;
699
+ };
700
+ total_deposited: {
701
+ type: string;
702
+ };
703
+ total_withdrawn: {
704
+ type: string;
705
+ };
706
+ total_paid: {
707
+ type: string;
708
+ };
709
+ total_earned: {
710
+ type: string;
711
+ };
712
+ };
713
+ };
450
714
  };
451
715
  configured?: undefined;
452
716
  dashboard_url?: undefined;
@@ -455,6 +719,7 @@ declare const openClawToolSchema: {
455
719
  agent_name?: undefined;
456
720
  message?: undefined;
457
721
  agent_id?: undefined;
722
+ chain?: undefined;
458
723
  status?: undefined;
459
724
  agents?: undefined;
460
725
  total?: undefined;
@@ -462,6 +727,7 @@ declare const openClawToolSchema: {
462
727
  transaction_id?: undefined;
463
728
  tx_hash?: undefined;
464
729
  confirmed_at?: undefined;
730
+ transactions?: undefined;
465
731
  };
466
732
  required: string[];
467
733
  };
@@ -486,6 +752,7 @@ declare const openClawToolSchema: {
486
752
  amount?: undefined;
487
753
  token?: undefined;
488
754
  memo?: undefined;
755
+ direction?: undefined;
489
756
  };
490
757
  required: string[];
491
758
  };
@@ -513,7 +780,69 @@ declare const openClawToolSchema: {
513
780
  total?: undefined;
514
781
  address?: undefined;
515
782
  transaction_id?: undefined;
516
- available?: undefined;
783
+ balances?: undefined;
784
+ transactions?: undefined;
785
+ };
786
+ required: string[];
787
+ };
788
+ } | {
789
+ name: string;
790
+ description: string;
791
+ inputSchema: {
792
+ type: "object";
793
+ properties: {
794
+ agent_id: {
795
+ type: string;
796
+ description: string;
797
+ };
798
+ status: {
799
+ type: string;
800
+ description: string;
801
+ };
802
+ direction: {
803
+ type: string;
804
+ description: string;
805
+ };
806
+ api_key?: undefined;
807
+ sandbox?: undefined;
808
+ agent_name?: undefined;
809
+ chain?: undefined;
810
+ agent_description?: undefined;
811
+ to?: undefined;
812
+ amount?: undefined;
813
+ token?: undefined;
814
+ memo?: undefined;
815
+ transaction_id?: undefined;
816
+ };
817
+ required: never[];
818
+ };
819
+ outputSchema: {
820
+ type: "object";
821
+ properties: {
822
+ transactions: {
823
+ type: string;
824
+ items: {
825
+ type: string;
826
+ };
827
+ };
828
+ total: {
829
+ type: string;
830
+ };
831
+ configured?: undefined;
832
+ dashboard_url?: undefined;
833
+ instructions?: undefined;
834
+ success?: undefined;
835
+ agent_name?: undefined;
836
+ message?: undefined;
837
+ agent_id?: undefined;
838
+ chain?: undefined;
839
+ status?: undefined;
840
+ agents?: undefined;
841
+ address?: undefined;
842
+ transaction_id?: undefined;
843
+ tx_hash?: undefined;
844
+ balances?: undefined;
845
+ confirmed_at?: undefined;
517
846
  };
518
847
  required: string[];
519
848
  };
@@ -546,4 +875,4 @@ declare function requireConfig(): StoredConfig;
546
875
  declare function saveConfig(config: StoredConfig): void;
547
876
  declare function isConfigured(): boolean;
548
877
 
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 };
878
+ export { type AgentStatusInput, type AgentStatusOutput, type BalanceEntry, type CheckBalanceInput, type CheckBalanceOutput, type CreateAgentInput, type CreateAgentOutput, type CreateWalletInput, type CreateWalletOutput, type DeleteAgentInput, type ListAgentsInput, type ListAgentsOutput, type ListTransactionsInput, type ListTransactionsOutput, type PayInput, type PayOutput, type StoredConfig, type TxStatusInput, type TxStatusOutput, type UpdateAgentInput, type UpdateAgentOutput, agentStatus, checkBalance, createAgent, createWallet, deleteAgent, isConfigured, listAgents, listTransactions, loadConfig, openClawToolSchema, pay, register, requireConfig, saveConfig, txStatus, updateAgent };